]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
toshiba_acpi: Support alternate hotkey interfaces
authorSeth Forshee <seth.forshee@canonical.com>
Wed, 18 Jan 2012 19:44:09 +0000 (13:44 -0600)
committerMatthew Garrett <mjg@redhat.com>
Thu, 22 Mar 2012 13:31:51 +0000 (09:31 -0400)
commit29cd293f9f8cd76444657622980010b9364b1de6
treef39a927d66951f13d031dfa45f3558a689ac0575
parent3e2abc5a35d25442821e1733687b7abbc83b5072
toshiba_acpi: Support alternate hotkey interfaces

There are two types of problems that prevent hotkeys from working
on many of the machines supported by toshiba_acpi. The first of
these is the lack of a functioning SCI for hotkey events. For these
machines it is possible to filter the Fn keypresses from the
keyboard and generate a notification by executing the ACPI NTFY
method.

The second problem is a lack of support for HCI_SYSTEM_EVENT, which
is used for reading the hotkey scancodes. On these machines the
scancodes can be read by executing the ACPI NTFY method.

This patch fixes both problems by installing an i8042 filter when
the NTFY method is present to generate notifications and by
detecting which of INFO or HCI_SYSTEM_EVENT is supported for
reading scancodes. If neither method of reading scancodes is
supported, the hotkey input device is not registered.

Signed-off-by: Azael Avalos <coproscefalo@gmail.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
drivers/platform/x86/toshiba_acpi.c