]> git.baikalelectronics.ru Git - kernel.git/commit
toshiba_acpi: Add support for Keyboard functions mode
authorAzael Avalos <coproscefalo@gmail.com>
Wed, 11 Feb 2015 04:09:18 +0000 (21:09 -0700)
committerDarren Hart <dvhart@linux.intel.com>
Thu, 12 Feb 2015 04:40:48 +0000 (20:40 -0800)
commit4d3bf439a6a7c68d1d1ab5b2b705dfc095ac5b7a
treeb5f410b75d12eed9f75964a8cb43a5d23bc69f74
parentf10ced6b90578043e151186b32d5059b62ff92fd
toshiba_acpi: Add support for Keyboard functions mode

Recent Toshiba laptops that come with the new keyboard layout have
the Special Functions (hotkeys) enabled by default, which, in order to
access the F{1-12} keys, you need to press the FN-F{1-12} key to
access such key.

This patch adds support to toggle the Keyboard Functions operation
mode by creating the sysfs entry "kbd_functions_keys", accepting only
two parameters, 0 to set the "Normal Operation" mode and 1 to set the
"Special Functions" mode, however, everytime the mode is toggled, a
restart is needed.

In the "Normal Operation" mode, the F{1-12} keys are as usual and
the hotkeys are accessed via FN-F{1-12}.

In the "Special Functions" mode, the F{1-12} keys trigger the hotkey
and the F{1-12} keys are accessed via FN-F{1-12}.

Signed-off-by: Azael Avalos <coproscefalo@gmail.com>
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
drivers/platform/x86/toshiba_acpi.c