]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
Add OrangePi NEO Scancodes
authorDerek J. Clark <derekjohn.clark@gmail.com>
Mon, 17 Jun 2024 18:49:30 +0000 (11:49 -0700)
committerLuca Boccassi <luca.boccassi@gmail.com>
Tue, 18 Jun 2024 09:38:53 +0000 (10:38 +0100)
Adds scancodes for the OrangePi NEO Handheld Gaming computer. This
device ships with an AT Translated Set 2 Keyboard device that
provides two buttons, ~~LC (Top Left) and RC (Top Right)~~
Home (front, bottom left) and Gamepad (front, bottom right). The
scancodes do not properly map in Linux. This change maps these
scancodes to ensure the hardware behaves as the OEM expects.

hwdb.d/60-keyboard.hwdb

index d271f17005fd0d387bffa38418b916b20e997a44..81ffc69fa1be7cba3a50a3c6aefe512405b33e05 100644 (file)
@@ -1657,6 +1657,15 @@ evdev:atkbd:dmi:bvn*:bvr*:bd*:svnOQO*Inc.*:pnOQO*Model*2*:*
  KEYBOARD_KEY_f2=volumedown
  KEYBOARD_KEY_f3=volumeup
 
+###########################################################
+# OrangePi
+###########################################################
+
+# NEO
+evdev:name:AT Translated Set 2 keyboard:dmi:*:svnOrangePi:pnNEO-01:*
+ KEYBOARD_KEY_66=f15                                    # Gamepad (front, bottom right)
+ KEYBOARD_KEY_67=f16                                    # Home (front, bottom left)
+
 ###########################################################
 # Ortek
 ###########################################################