From 3008f07e026da6c175746502797d824670330aea Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Wed, 3 Apr 2019 22:52:06 +0200 Subject: [PATCH] hwdb: Add key mappings for Logitech 27 MHz MX3000 keyboard 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 | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/hwdb/60-keyboard.hwdb b/hwdb/60-keyboard.hwdb index b681107cd4..1c9f03f432 100644 --- a/hwdb/60-keyboard.hwdb +++ b/hwdb/60-keyboard.hwdb @@ -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