]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
hwdb: Fix Pinebook Pro's brightness up/down and sleep keys
authorJian-Hong Pan <jhp@endlessos.org>
Thu, 5 Nov 2020 04:22:08 +0000 (12:22 +0800)
committerLennart Poettering <lennart@poettering.net>
Fri, 6 Nov 2020 09:50:40 +0000 (10:50 +0100)
Pinebook Pro's display brightness up & down keys do not work until the
keys are mapped to the corresponding codes.

Also, the sleep key is mapped to KEY_POWER code originally. This quirk
maps the sleep key to the KEY_SLEEP code.

This idea comes from the pinebookpro-post-install package [1] of Manjaro
ARM, which is the preloaded OS on Pinebook Pro.

[1]: https://gitlab.manjaro.org/manjaro-arm/packages/community/pinebookpro-post-install/-/commit/7ab1a134ea9d5b55d99de567d1ebee4ebd6f6640

hwdb.d/60-keyboard.hwdb

index 8cb41ec0939bafe1aa8e5194c384d5b1c1a510b0..0fe3e3f1d8f46e0817d2d9153129e967410b7a75 100644 (file)
@@ -1395,6 +1395,16 @@ evdev:input:b0003v05A4p9735*
  KEYBOARD_KEY_c00bb=prog2        # Key labeled "pf2"
  KEYBOARD_KEY_c00b8=prog3        # Key labeled "pf3"
 
+###########################################################
+# Pine64
+###########################################################
+
+# Pinebook Pro
+evdev:input:b0003v258Ap001E*
+ KEYBOARD_KEY_700a5=brightnessdown
+ KEYBOARD_KEY_700a6=brightnessup
+ KEYBOARD_KEY_70066=sleep
+
 ###########################################################
 # Plantronics
 ###########################################################