diff options
author | Hans de Goede <hdegoede@redhat.com> | 2020-07-04 23:10:59 +0300 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2020-07-07 13:42:27 +0300 |
commit | 49429428381b1f52c0b17abbbb4e4e8617fca96e (patch) | |
tree | 7423481a70f7fa8448bd7d73c067661f6868a7aa /drivers | |
parent | c87de33ed43a89ae8f32ccd40bd0b540244012d6 (diff) | |
download | linux-49429428381b1f52c0b17abbbb4e4e8617fca96e.tar.xz |
HID: lenovo: Fix spurious F23 key press report during resume from suspend
The Ultrabook Keyboard sends a spurious F23 key-press when resuming
from suspend. GNOME uses F23 to toggle the touchpad on/off so this causes
the OSD graphics for the touchpad toggle to show on resume.
The keyboard does not actually have a F23 key, se we can simple fix it
by marking the 0x00070072 HID usage, which normally is F23, to be ignored.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/hid/hid-lenovo.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/hid/hid-lenovo.c b/drivers/hid/hid-lenovo.c index b5122ee46801..c6c8e20f3e8d 100644 --- a/drivers/hid/hid-lenovo.c +++ b/drivers/hid/hid-lenovo.c @@ -245,6 +245,13 @@ static int lenovo_input_mapping_tp10_ultrabook_kbd(struct hid_device *hdev, } } + /* + * The Ultrabook Keyboard sends a spurious F23 key-press when resuming + * from suspend and it does not actually have a F23 key, ignore it. + */ + if (usage->hid == 0x00070072) + return -1; + return 0; } |