]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
hwdb: fix keyboard of RedmiBook Pro 15 2022 (#33465)
authoroldherl <oldherl@gmail.com>
Mon, 24 Jun 2024 18:22:37 +0000 (04:22 +1000)
committerGitHub <noreply@github.com>
Mon, 24 Jun 2024 18:22:37 +0000 (03:22 +0900)
Fix two problems of the keyboard of RedmiBook Pro 15 2022.
- Enter key in the main area was mapped to KP_Enter.
- When Fn is locked (to use F1-F12 without pressing Fn),
  Right Ctrl was mapped to Menu. Keeping it as Right Ctrl is more useful.

hwdb.d/60-keyboard.hwdb

index 81ffc69fa1be7cba3a50a3c6aefe512405b33e05..48aa92b433edcc4588bfee542e172c978a18ebbe 100644 (file)
@@ -1753,6 +1753,15 @@ evdev:input:b0003v047FpC006*
 evdev:atkbd:dmi:bvn*:bvr*:bd*:svn*:pn*:pvr*:rvnQuanta:rn30B7:rvr65.2B:*
  KEYBOARD_KEY_88=media                                  # "quick play
 
+###########################################################
+# Redmi
+###########################################################
+
+# RedmiBook Pro 15 2022
+evdev:atkbd:dmi:bvn*:bvr*:bd*:svnTIMI:pnRedmiBookPro152022:pvr*
+ KEYBOARD_KEY_9c=enter                                  # KP_enter in the main area is wrong
+ KEYBOARD_KEY_dd=rightctrl                              # Right Ctrl is preferrable over Menu
+
 ###########################################################
 # Samsung
 ###########################################################