From b504aa05fda416b108888574f548e176d53be6b8 Mon Sep 17 00:00:00 2001 From: Kevin Charpentier Date: Fri, 11 Sep 2026 12:39:48 -0300 Subject: [PATCH] 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. --- hwdb.d/60-keyboard.hwdb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hwdb.d/60-keyboard.hwdb b/hwdb.d/60-keyboard.hwdb index a77c5a5b75..8d04bd0b0d 100644 --- a/hwdb.d/60-keyboard.hwdb +++ b/hwdb.d/60-keyboard.hwdb @@ -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