hwdb: ignore duplicate mic mute key on Lenovo ThinkBook 14 G7 ARP
On the ThinkBook 14 G7 ARP (21MV), ideapad-laptop is bound to both the ACPI
device (VPC2004:00) and the WMI device
(8FC0DE0C-B4E4-43FD-B0F3-8871711C1294) at the same time, and both report the
mic mute key into the same input device ("Ideapad extra buttons") a few
milliseconds apart, with different scan codes: 0x8 from the ACPI path and
0x13e from the WMI path.
Userspace applies the toggle twice, so the microphone returns to its previous
state and the key appears not to work at all. Unmapping the WMI scan code
leaves a single event per keypress, and the key then toggles the microphone
reliably, mic mute LED included.
Note this differs from the ThinkBook 16p G5 IRX entry above, where the
duplicate comes from the AT keyboard; here both events originate from
"Ideapad extra buttons" itself.
This was discussed on platform-driver-x86, where the hwdb approach was
suggested in preference to unbinding the WMI driver.
This commit is contained in:
committed by
Yu Watanabe
parent
ba50cd0583
commit
b504aa05fd
@@ -1171,6 +1171,11 @@ evdev:atkbd:dmi:bvn*:bvr*:bd*:svnLENOVO:pn21N5*:pvrThinkBook16pG5IRX:*
|
||||
KEYBOARD_KEY_a1=!calc
|
||||
KEYBOARD_KEY_d7=unknown # Fn+F4 mic mute, also emitted by "Ideapad extra buttons", ignore
|
||||
|
||||
# Lenovo ThinkBook 14 G7 ARP
|
||||
# Both mic mute events come from this device: 0x8 (ACPI) and 0x13e (WMI)
|
||||
evdev:name:Ideapad extra buttons:dmi:*:svnLENOVO:pn21MV:pvrThinkBook14G7ARP:*
|
||||
KEYBOARD_KEY_13e=unknown # Fn+F4 mic mute, also emitted as scan code 0x8, ignore
|
||||
|
||||
evdev:atkbd:dmi:*:svnLENOVO:*:pvrLenovoYoga300-11IBR:*
|
||||
KEYBOARD_KEY_62=unknown # Touchpad on, also emitted by "Ideapad extra buttons", ignore
|
||||
KEYBOARD_KEY_63=unknown # Touchpad off, also emitted by "Ideapad extra buttons", ignore
|
||||
|
||||
Reference in New Issue
Block a user