diff options
author | Manuel Lauss <manuel.lauss@googlemail.com> | 2011-09-26 09:04:54 -0400 |
---|---|---|
committer | Matthew Garrett <mjg@redhat.com> | 2011-10-24 10:52:37 -0400 |
commit | bd038080c70b70a5b31c48af774fada36eacc834 (patch) | |
tree | 8d909a6fe5ce34863bba55d584da986f1d1bdeed /drivers/platform/x86 | |
parent | ac2dad886d9fae561fe53d693e1b6c33fb0ad674 (diff) |
topstar-latop: ignore 0x82 event
Event 0x82 is emitted whenever a backlight event happens (brightness
change, backlight on/off). For instance, when display is switched
off after a timeout, event 0x82 is emitted, and along with it a keypress
which switches the display back on again.
This patch adds 0x82 to the event ignore list so that the display stays
off when it is automatically switched off.
Signed-off-by: Manuel Lauss <manuel.lauss@googlemail.com>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
Diffstat (limited to 'drivers/platform/x86')
-rw-r--r-- | drivers/platform/x86/topstar-laptop.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/platform/x86/topstar-laptop.c b/drivers/platform/x86/topstar-laptop.c index 4c20447ddbb7..d528daa0e81c 100644 --- a/drivers/platform/x86/topstar-laptop.c +++ b/drivers/platform/x86/topstar-laptop.c | |||
@@ -41,6 +41,7 @@ static const struct key_entry topstar_keymap[] = { | |||
41 | { KE_KEY, 0x8c, { KEY_MEDIA } }, | 41 | { KE_KEY, 0x8c, { KEY_MEDIA } }, |
42 | 42 | ||
43 | /* Known non hotkey events don't handled or that we don't care yet */ | 43 | /* Known non hotkey events don't handled or that we don't care yet */ |
44 | { KE_IGNORE, 0x82, }, /* backlight event */ | ||
44 | { KE_IGNORE, 0x8e, }, | 45 | { KE_IGNORE, 0x8e, }, |
45 | { KE_IGNORE, 0x8f, }, | 46 | { KE_IGNORE, 0x8f, }, |
46 | { KE_IGNORE, 0x90, }, | 47 | { KE_IGNORE, 0x90, }, |