]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
hwdb: fix warning "atkbd serio0: Unknown key pressed" (#5772)
authorFranck Bui <fbui@suse.com>
Thu, 20 Apr 2017 19:09:13 +0000 (21:09 +0200)
committerMartin Pitt <martinpitt@users.noreply.github.com>
Thu, 20 Apr 2017 19:09:13 +0000 (21:09 +0200)
At each time pressing the WiFi Fn key on Dell Latitude E7270 laptop, the system
reports the following error/warning messages:

  atkbd serio0: Unknown key pressed (translated set 2, code 0x88 on isa0060/serio0).
  atkbd serio0: Use 'setkeycodes e008 ' to make it known.

This is due to commit 0e33634 which was added to fix
https://bugs.launchpad.net/ubuntu/+source/udev/+bug/1441849.

However on Dell Latitude E7* models, we need to restore the old generic
behavior which consists in ignoring the key event since it's already done by
the HW.

Indeed the hardware has a specific driver (dell_wmi) to handle rfkill in the
hardware level. So, as long as the hardware handles, the best is to leave as
is.

This patch was originally written by Takashi Iwai.

Fixes #5047

hwdb/60-keyboard.hwdb

index dc87cd9708fe825144a96266a335e88f77d2e448..c35b90707df11725664e286a5af3ce7a26dc6713 100644 (file)
@@ -314,6 +314,10 @@ evdev:atkbd:dmi:bvn*:bvr*:bd*:svnDell*:pnPrecision*:pvr*
  KEYBOARD_KEY_88=!                                      # wireless switch
  KEYBOARD_KEY_9e=!f21
 
+# Dell Latitude E7*
+evdev:atkbd:dmi:bvn*:bvr*:bd*:svnDell*:pnLatitude*E7*:pvr*
+ KEYBOARD_KEY_88=unknown                                # Fn-PrtScr rfkill - handled in HW
+
 # Dell XPS
 evdev:atkbd:dmi:bvn*:bvr*:bd*:svnDell*:pnXPS*:pvr*
  KEYBOARD_KEY_8c=!unknown