summaryrefslogtreecommitdiff
path: root/hwdb/60-keyboard.hwdb
diff options
context:
space:
mode:
authorHui Wang <hui.wang@canonical.com>2016-01-06 10:37:53 +0800
committerHarald Hoyer <harald@redhat.com>2016-01-06 04:02:32 +0100
commit0319812234919b38cf4c29d02f0ba107b91b3141 (patch)
tree1428fab4056864a29fc4ee6642902028b07211d4 /hwdb/60-keyboard.hwdb
parent79a4c0160af9496e0aff92e12ff61dae0f169625 (diff)
keymap: remap microphone mute keycode for Lenovo Thinkcentre M800z
This Lenovo machine use codec Line2 to implement a microphone mute button, it depends on the unsolicited interrupt to generate key event, the scan code for this button is assigned to 0x00 in the linux kernel driver, and the keycode is KEY_MICMUTE(248), we need to remap this keycode to KEY_F20 to make this hotkey work in X11. BugLink: https://bugs.launchpad.net/bugs/1531362 Signed-off-by: Hui Wang <hui.wang@canonical.com>
Diffstat (limited to 'hwdb/60-keyboard.hwdb')
-rw-r--r--hwdb/60-keyboard.hwdb5
1 files changed, 5 insertions, 0 deletions
diff --git a/hwdb/60-keyboard.hwdb b/hwdb/60-keyboard.hwdb
index 94906abcbf..69a1e8fa37 100644
--- a/hwdb/60-keyboard.hwdb
+++ b/hwdb/60-keyboard.hwdb
@@ -652,6 +652,11 @@ evdev:atkbd:dmi:bvn*:bvr*:svnLENOVO*:pn*IdeaPad*Z370*:pvr*
evdev:atkbd:dmi:bvn*:bvr*:bd*:svnLENOVO*:pn*Lenovo*V480*:pvr*
KEYBOARD_KEY_f1=f21
+# Lenovo Thinkcentre M800z AIO machine
+# key_scancode 00 is KEY_MICMUTE
+keyboard:name:Microphone Mute Button:dmi:bvn*:bvr*:bd*:svnLENOVO*:pn*
+ KEYBOARD_KEY_00=f20
+
# enhanced USB keyboard
evdev:input:b0003v04B3p301B*
KEYBOARD_KEY_90001=prog1 # ThinkVantage