]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
hwdb: Add generic key mapping for Logitech 27 MHz keyboards
authorHans de Goede <hdegoede@redhat.com>
Thu, 4 Apr 2019 20:39:24 +0000 (22:39 +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 will allow us to add per model keymappings for the special keys on
these keyboards, which may differ per model.

This commit adds a default / fallback mapping, assigning the most common
meaning of the custom Logitech c10XX keycodes.

hwdb/60-keyboard.hwdb

index 4762c68a1b2e65c83ec7f331fcb79622263ed3db..f55f2766cb5adbc257e62b2b7321824612b3b283 100644 (file)
@@ -837,6 +837,42 @@ evdev:input:b0003v04B3p301B*
 # Logitech
 ###########################################################
 
+# 27MHz wireless keyboards, these all have a PID of 00?? and all send c10xx
+# logitech custom consumer usage-page codes. The mappings below are the most
+# common, but some mapping may differ, especially the Fn F1-F12 mappings
+evdev:input:b0003v046Dp00*
+ KEYBOARD_KEY_c0183=media           # HUT:config, kbd:Media/Music player button
+ KEYBOARD_KEY_c1001=chat            # Messenger button
+ KEYBOARD_KEY_c1003=audio           # Music Browser button
+ KEYBOARD_KEY_c1004=video           # Video Browser button
+ KEYBOARD_KEY_c1005=images          # Image Browser button
+ KEYBOARD_KEY_c100a=documents       # Document Browser button
+ KEYBOARD_KEY_c1013=camera          # Webcam button
+ KEYBOARD_KEY_c1014=coffee          # Status button
+ KEYBOARD_KEY_c1015=record          # Record symbol button
+ KEYBOARD_KEY_c1016=sound           # Flame/CD burning → sound → XF86AudioPreset
+ KEYBOARD_KEY_c1017=ejectcd         # Eject button
+ KEYBOARD_KEY_c1018=config          # Remote-control ico
+ KEYBOARD_KEY_c101c=cyclewindows    # 2 overlapping windows icon
+ KEYBOARD_KEY_c101f=zoomout         # zoom - button / - side of zoomrocker
+ KEYBOARD_KEY_c1020=zoomin          # zoom + button / + side off zoom rocker
+ KEYBOARD_KEY_c1021=zoomreset       # 100% symbol on kbd left side
+ KEYBOARD_KEY_c1023=close           # [x] symbol on kbd left side
+ KEYBOARD_KEY_c1029=shuffle         # Shuffle button
+ KEYBOARD_KEY_c102d=www             # www text + magnifierglass icon
+ KEYBOARD_KEY_c1041=help            # Help text or icon (Fn + F1)
+ KEYBOARD_KEY_c1042=wordprocessor   # Word icon (Fn + F2)
+ KEYBOARD_KEY_c1043=spreadsheet     # Excel icon (Fn + F3)
+ KEYBOARD_KEY_c1044=presentation    # Presentation icon (Fn + F4)
+ KEYBOARD_KEY_c1045=undo            # Undo Icon (Fn + F5)
+ KEYBOARD_KEY_c1046=redo            # Redo Icon (Fn + F6)
+ KEYBOARD_KEY_c1047=print           # Printer Icon (Fn + F7)
+ KEYBOARD_KEY_c1048=save            # Floppy Icon (Fn + F8)
+ KEYBOARD_KEY_c1049=prog1           # Smartkey A (Fn + F9)  → XF86Launch1
+ KEYBOARD_KEY_c104a=prog2           # Smartkey B (Fn + F10) → XF86Launch2
+ KEYBOARD_KEY_c104b=prog3           # Smartkey C (Fn + F11) → XF86Launch3
+ KEYBOARD_KEY_c104c=prog4           # Smartkey D (Fn + F12) → XF86Launch4
+
 # iTouch
 evdev:input:b0003v046DpC308*
  KEYBOARD_KEY_90001=shop                                # Shopping