From 7983b4d9c61e961c69aae51a7f9c06bbb1b741f8 Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Sat, 14 Nov 2020 18:16:12 +0100 Subject: [PATCH] hwdb: 60-keyboard: Update Logitech MX5000 key mappings 2 updates to the Logitech MX5000 key mappings: 1. Fix Logitech MX5000 Media key mapping: The MX5000 has a key clearly marked "media" (in text) and when they gets pressed the keyboards LCD briefly shows "MEDIA" in a big font. Yet the keyboard sends a HID usage code which according to the HUTT is config/control-panel. Map this to media so that the key behaves as labeled. 2. Add mapping for the scan-code send by the Fn on/off toggle key --- hwdb.d/60-keyboard.hwdb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hwdb.d/60-keyboard.hwdb b/hwdb.d/60-keyboard.hwdb index 87e6c4e2cb..670442b7c0 100644 --- a/hwdb.d/60-keyboard.hwdb +++ b/hwdb.d/60-keyboard.hwdb @@ -1029,6 +1029,7 @@ evdev:input:b0003v046Dp00FE* # MX5000 keyboard (HID proxy mode and bluetooth matches) evdev:input:b0003v046DpB305* evdev:input:b0005v046DpB305* + KEYBOARD_KEY_c0183=media # HUT says config, kbd says Media KEYBOARD_KEY_c0230=zoomreset # HUT says fullscreen, kbd says 100% KEYBOARD_KEY_c1004=send # Send and receive / sync button KEYBOARD_KEY_c1006=coffee # Status (online/away) button @@ -1041,6 +1042,7 @@ evdev:input:b0005v046DpB305* KEYBOARD_KEY_c1039=prog2 # Smartkey B → XF86Launch2 KEYBOARD_KEY_c103a=prog3 # Smartkey C → XF86Launch3 KEYBOARD_KEY_c103b=prog4 # Smartkey D → XF86Launch4 + KEYBOARD_KEY_c1040=fn_esc # Fn mode on/off toggle # Dinovo Edge (HID proxy mode and bluetooth matches) evdev:input:b0003v046DpB309*