From b0a3a3ff5d80d1605926fbba1d25a0f2448e383c Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Sat, 14 Nov 2020 17:23:54 +0100 Subject: [PATCH 1/3] hwdb: 60-keyboard: Add Fn key mapping for Logitech wireless keyboards Some Logitech wireless keyboards report when there Fn key is pressed, add a mapping for this. While it also fix identiation of 2 adjescent key-maps to use tabs like the other Logitech entries --- hwdb.d/60-keyboard.hwdb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hwdb.d/60-keyboard.hwdb b/hwdb.d/60-keyboard.hwdb index 42abc1ccc0..2d4f6dbb82 100644 --- a/hwdb.d/60-keyboard.hwdb +++ b/hwdb.d/60-keyboard.hwdb @@ -926,6 +926,7 @@ evdev:input:b0003v046Dp00* KEYBOARD_KEY_c1029=shuffle # Shuffle button KEYBOARD_KEY_c102a=back # Back button KEYBOARD_KEY_c102b=cyclewindows # Empty window icon + KEYBOARD_KEY_c102c=fn # Fn key KEYBOARD_KEY_c102d=www # www text + magnifierglass icon KEYBOARD_KEY_c1031=connect # Pickup phone button → connect → XF86Go KEYBOARD_KEY_c1032=cancel # Hangup phone button → cancel → Cancel @@ -1045,8 +1046,9 @@ evdev:input:b0005v046DpB305* evdev:input:b0003v046DpB30B* evdev:input:b0005v046DpB30B* KEYBOARD_KEY_c0183=media # HUT says consumer control configuration, kbd says Media Center - KEYBOARD_KEY_c100e=images # Camera icon, "Photo Gallery" - KEYBOARD_KEY_c100f=config # Window with gear icon + KEYBOARD_KEY_c100e=images # Camera icon, "Photo Gallery" + KEYBOARD_KEY_c100f=config # Window with gear icon + KEYBOARD_KEY_c102c=fn # Fn key KEYBOARD_KEY_c1038=prog1 # Smartkey A → XF86Launch1 KEYBOARD_KEY_c1039=prog2 # Smartkey B → XF86Launch2 KEYBOARD_KEY_c103a=prog3 # Smartkey C → XF86Launch3 From d46c0febab86d5d597226e0d1272e63b9f3ded84 Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Wed, 4 Nov 2020 10:36:09 +0100 Subject: [PATCH 2/3] hwdb: 60-keyboard: Add Logitech Dinovo Edge special key key-mappings The Logitech Dinovo Edge has 5 special hotkeys, one with a phone symbol and the 4 usual Logitech A-D smartkeys. These send custom Logitech 0xc10xx keycodes, add mappings for these. --- hwdb.d/60-keyboard.hwdb | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/hwdb.d/60-keyboard.hwdb b/hwdb.d/60-keyboard.hwdb index 2d4f6dbb82..87e6c4e2cb 100644 --- a/hwdb.d/60-keyboard.hwdb +++ b/hwdb.d/60-keyboard.hwdb @@ -1042,6 +1042,16 @@ evdev:input:b0005v046DpB305* KEYBOARD_KEY_c103a=prog3 # Smartkey C → XF86Launch3 KEYBOARD_KEY_c103b=prog4 # Smartkey D → XF86Launch4 +# Dinovo Edge (HID proxy mode and bluetooth matches) +evdev:input:b0003v046DpB309* +evdev:input:b0005v046DpB309* + KEYBOARD_KEY_c102c=fn # Fn key + KEYBOARD_KEY_c1038=prog1 # Fn + F9 Smartkey A → XF86Launch1 + KEYBOARD_KEY_c1039=prog2 # Fn + F10 Smartkey B → XF86Launch2 + KEYBOARD_KEY_c103a=prog3 # Fn + F11 Smartkey C → XF86Launch3 + KEYBOARD_KEY_c103b=prog4 # Fn + F12 Smartkey D → XF86Launch4 + KEYBOARD_KEY_c1050=phone # Fn + F1 Phone button + # MX5500 keyboard (HID proxy mode and bluetooth matches) evdev:input:b0003v046DpB30B* evdev:input:b0005v046DpB30B* From 7983b4d9c61e961c69aae51a7f9c06bbb1b741f8 Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Sat, 14 Nov 2020 18:16:12 +0100 Subject: [PATCH 3/3] 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*