summaryrefslogtreecommitdiff
path: root/hwdb.d/60-keyboard.hwdb
diff options
context:
space:
mode:
authorJian-Hong Pan <jhp@endlessos.org>2020-11-05 12:22:08 +0800
committerLennart Poettering <lennart@poettering.net>2020-11-06 10:50:40 +0100
commitf25e30dec4958ba3ab972b823210fcbc9dd231da (patch)
tree0188d19dd638d149cd7fbfbca79e82c2ed13ad63 /hwdb.d/60-keyboard.hwdb
parentce8f6d478e3f6c6a313fb19615aa5029bb18f86d (diff)
downloadsystemd-f25e30dec4958ba3ab972b823210fcbc9dd231da.tar.gz
hwdb: Fix Pinebook Pro's brightness up/down and sleep keys
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
Diffstat (limited to 'hwdb.d/60-keyboard.hwdb')
-rw-r--r--hwdb.d/60-keyboard.hwdb10
1 files changed, 10 insertions, 0 deletions
diff --git a/hwdb.d/60-keyboard.hwdb b/hwdb.d/60-keyboard.hwdb
index 8cb41ec093..0fe3e3f1d8 100644
--- a/hwdb.d/60-keyboard.hwdb
+++ b/hwdb.d/60-keyboard.hwdb
@@ -1396,6 +1396,16 @@ evdev:input:b0003v05A4p9735*
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
###########################################################