Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Hans de Goede and committed by
Jiri Kosina
49429428 c87de33e

+7
+7
drivers/hid/hid-lenovo.c
··· 245 245 } 246 246 } 247 247 248 + /* 249 + * The Ultrabook Keyboard sends a spurious F23 key-press when resuming 250 + * from suspend and it does not actually have a F23 key, ignore it. 251 + */ 252 + if (usage->hid == 0x00070072) 253 + return -1; 254 + 248 255 return 0; 249 256 } 250 257