Mic mute hotkey7/6/2023 ![]() ![]() The ACPI mapping is defined in /lib/udev/keymaps/module-lenovo, there you can see if 0x1A is mapped to micmute or F20. The mic mute button will be mapped to F20 (keycode 190), which you should be able to configure normally using the GNOME keyboard settings or similar. ![]() If you have a recent version of udev/systemd (see this patch) the acpi trick will not work. Mic would be another choice, but on some thinkpads it is named Internal Mic.ĪLSA will not remember the state of the led at startup, so one need another small start-up script:Īnd put it in /etc/local.d/lenovo-mutemic.sh. QMK can only implement these keycodes since those are the only ones that the OS on the host computer understands without having to install some additional third party driver. Pressing the button will toggle the state of the ALSA capture device, which is maybe not optimal in all cases as it disables all capture devices. Unfortunately there is no keycode for muting the microphone defined in the USB HID standard.user is the name of the user, which is currently signed in in X11 and notify-send will send a notification to that user.led contain the path to the led in the mute button (see below).Sudo -u $user DISPLAY=":0.0" notify-send -i microphone-sensitivity-high-symbolic "Microphone" "Microphone is now ON" Logger "Microphone is now on (for $user)" Sudo -u $user DISPLAY=":0.0" notify-send -i microphone-sensitivity-muted-symbolic "Microphone" "Microphone is now MUTED" Im installing a custom windows 10 image via MDT and installing the latest drivers and HP software (including HP Hotkey Support v. Logger "Microphone is now muted (for $user) $USER" Im having difficulty getting the mic mute hotkey to work on this computer. Led="/sys/devices/platform/thinkpad_acpi/leds/tpacpi::micmute/brightness" The script ( /etc/acpi/lenovo-mutemic.sh) to toggle the mice look like this: Pressing the mic mute button will generate a acpi eventīutton/micmute MICMUTE 00000080 00000000 Kĭepending on your model and your version of acpid it may generate a different eventĪdd a acpid rule to handle this event in /etc/acpi/events/lenovo-mutemic:Įvent=button/micmute MICMUTE 00000080 00000000 K If you don't have /sys/devices/platform/thinkpad_acpi/leds/tpacpi::micmute, you'll need to patch your kernel with It does not work on Ubuntu, a bug has been reported and a patch has been proposed: Some Thinkpads come with a Microphone Mute Button possibly with an led. ![]()
0 Comments
Leave a Reply. |