diff options
author | John Hughes <john@calvaedi.com> | 2011-11-16 13:51:57 -0500 |
---|---|---|
committer | Matthew Garrett <mjg@redhat.com> | 2012-03-20 12:02:03 -0400 |
commit | 747a562f342895bbb6cfdfcb82104b4b2ae566e6 (patch) | |
tree | c21379baf0b872266a4f11ad5364a38d57baf42a /Documentation | |
parent | 4d6446628a92a2cf706c256606b3031fc72a763e (diff) |
to fix scancodes returned by sony-laptop driver
Fix scancodes returned by driver to match scancodes used to remap keys.
(Before the patch FN/E returned scancode 0x1B, but to remap scancode
0x14 had to be used).
The scancodes returned by the sony-laptop driver for function keys did not
match the scancodes used to remap keys. Also, since the scancode was sent
to the input subsystem after the mapped keysym the /lib/udev/keymap
utility was confused about which scancode to report for which keysym.
This patch fixes the driver so the correct scancode is shown for each
key. It also adds to the documentation a description of where to find
the scancodes.
Signed-off-by: John Hughes <john@calva.com>
Acked-by: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/laptops/sony-laptop.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Documentation/laptops/sony-laptop.txt b/Documentation/laptops/sony-laptop.txt index 2bd4e82e5d9f..0d5ac7f5287e 100644 --- a/Documentation/laptops/sony-laptop.txt +++ b/Documentation/laptops/sony-laptop.txt | |||
@@ -17,6 +17,11 @@ subsystem. See the logs of acpid or /proc/acpi/event and | |||
17 | devices are created by the driver. Additionally, loading the driver with the | 17 | devices are created by the driver. Additionally, loading the driver with the |
18 | debug option will report all events in the kernel log. | 18 | debug option will report all events in the kernel log. |
19 | 19 | ||
20 | The "scancodes" passed to the input system (that can be remapped with udev) | ||
21 | are indexes to the table "sony_laptop_input_keycode_map" in the sony-laptop.c | ||
22 | module. For example the "FN/E" key combination (EJECTCD on some models) | ||
23 | generates the scancode 20 (0x14). | ||
24 | |||
20 | Backlight control: | 25 | Backlight control: |
21 | ------------------ | 26 | ------------------ |
22 | If your laptop model supports it, you will find sysfs files in the | 27 | If your laptop model supports it, you will find sysfs files in the |