]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
hwdb: Add key mappings for Logitech 27 MHz MX3000 keyboard
authorHans de Goede <hdegoede@redhat.com>
Wed, 3 Apr 2019 20:52:06 +0000 (22:52 +0200)
committerHans de Goede <hdegoede@redhat.com>
Mon, 29 Apr 2019 15:29:08 +0000 (17:29 +0200)
The upcoming kernel enumerates Logitech 27 MHz wireless keyboards and
mice by there wireless-PID, rather then using the PID of the receiver
which is the same for all 27MHz Logitech devices.

This allows us to add per model keymappings for the special keys on these
keyboards. This commit adds such mappings for the MX3000 keyboard
(modelnumber Y-RAM74).

hwdb/60-keyboard.hwdb

index b681107cd47647b47a89c632c7557e9fff0854c1..1c9f03f432c7e3922f6d88440dcba9e282629355 100644 (file)
@@ -900,6 +900,25 @@ evdev:input:b0003v046Dp0045*
  KEYBOARD_KEY_c104b=images
  KEYBOARD_KEY_c104c=audio
 
+# MX3000 keyboard (27 MHz, modelnumber Y-RAM74)
+# We ignore the scroll up / down keypress events since these buttons also
+# generate scroll-wheel events and we do not want to generate duplicate events
+# Note if the "Special Button Function" in the HID++ features register gets
+# cleared then the scroll-wheel events for these buttons go away and then
+# tilting the scrollwheel left/right starts sending c1022 / c1024 events
+evdev:input:b0003v046Dp0057*
+ KEYBOARD_KEY_c1011=channeldown  # Playlist back button
+ KEYBOARD_KEY_c1012=channelup    # Playlist advance button
+ KEYBOARD_KEY_c1019=f14          # Preset 1 → f14 → XF86Launch5
+ KEYBOARD_KEY_c101a=f15          # Preset 2 → f15 → XF86Launch6
+ KEYBOARD_KEY_c101b=f16          # Preset 3 → f16 → XF86Launch7
+ KEYBOARD_KEY_c1041=battery      # Battery icon (Fn + F1)
+
+#KEYBOARD_KEY_c101d=scrolldown   # Button below scrollwheel (see note above)
+#KEYBOARD_KEY_c101e=scrollup     # Button above scrollwheel (see note above)
+#KEYBOARD_KEY_c1022=scrollleft   # Left click on scroll-wheel (see note above)
+#KEYBOARD_KEY_c1024=scrollright  # Right click on scroll-wheel (see note above)
+
 # iTouch
 evdev:input:b0003v046DpC308*
  KEYBOARD_KEY_90001=shop                                # Shopping