]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
hwdb: Add key mappings for Logitech 27 MHz S520 keyboard
authorHans de Goede <hdegoede@redhat.com>
Fri, 5 Apr 2019 12:47:04 +0000 (14:47 +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 S520 keyboard
(modelnumber Y-RBA97).

hwdb/60-keyboard.hwdb

index b8ea8b66b21257e2f74695dbfc13ff230a5830c6..b328d341e910e3916acb8eee364c9c2af116d9b5 100644 (file)
@@ -941,6 +941,23 @@ evdev:input:b0003v046Dp0065*
  KEYBOARD_KEY_c104b=battery         # Battery icon (Fn + F11)
  KEYBOARD_KEY_c104c=ejectcd         # Eject icon (Fn + F12)
 
+# S520 keyboard (27 MHz, modelnumber Y-RBA97)
+# Note this one uses non-standard codes for FN + F9 - Fn + F12?
+evdev:input:b0003v046Dp0066*
+ KEYBOARD_KEY_c100e=prog4           # Smartkey D (Fn + F12) → XF86Launch4
+ KEYBOARD_KEY_c1019=prog1           # Smartkey A (Fn + F9)  → XF86Launch1
+ KEYBOARD_KEY_c101a=prog2           # Smartkey B (Fn + F10) → XF86Launch2
+ KEYBOARD_KEY_c101b=prog3           # Smartkey C (Fn + F11) → XF86Launch3
+ KEYBOARD_KEY_c1041=wordprocessor   # Word icon (Fn + F1)
+ KEYBOARD_KEY_c1042=spreadsheet     # Excel icon (Fn + F2)
+ KEYBOARD_KEY_c1043=presentation    # Presentation icon (Fn + F3)
+ KEYBOARD_KEY_c1044=calendar        # Calendar icon (Fn + F4)
+ KEYBOARD_KEY_c1045=homepage        # Home icon (Fn + F5)
+ KEYBOARD_KEY_c1046=email           # Letter icon (Fn + F6)
+ KEYBOARD_KEY_c1047=search          # Magnifying glass icon (Fn + F7)
+ KEYBOARD_KEY_c1048=config          # Window with gear icon (Fn + F8)
+ KEYBOARD_KEY_c106f=battery         # Battery icon
+
 # iTouch
 evdev:input:b0003v046DpC308*
  KEYBOARD_KEY_90001=shop                                # Shopping