Microphone mute not supported

Bug #728310 reported by Daniël van Eeden on 2011-03-03
This bug affects 2 people
Affects Status Importance Assigned to Milestone
acpi-support (Ubuntu)
gnome-control-center (Ubuntu)
linux (Ubuntu)

Bug Description

Binary package hint: gnome-control-center

For audio output muting there is /apps/gnome_settings_daemon/keybindings/volume_mute, but there is no input (microphone) mute shortcut gnome-keybinding-properties.

On a Lenovo Thinkpad T410s this is the ACPI event for the microphone mute button.
$ acpi_listen
ibm/hotkey HKEY 00000080 0000101b

This is on Ubuntu 10.10 (Maverick)

1. Please allow a shortcut for microphone mute
2. Bind the ACPI event to that shortcut

There is a XF86AudioMute defined in /usr/share/X11/XKeysymDB, but not something like XF86InputMute

Daniël van Eeden (dveeden) wrote :

The following appears in the dmesg output if I press the microphone mute key once.
[ 5677.782467] keyboard: can't emulate rawmode for keycode 240
[ 5677.782485] keyboard: can't emulate rawmode for keycode 240

Daniël van Eeden (dveeden) wrote :

I've used this as work-around
Added a new keyboard shortcut which executes this:
/usr/bin/pacmd "set-source-mute alsa_input.pci-0000_00_1b.0.analog-stereo 1"

This is binded to 0xf8 (which is the mute key).

The only issue is that this doesn't toggle mute, so it only mutes and never unmutes.

Daniël van Eeden (dveeden) wrote :

To execute a script when the button is pressed:
$ cat /etc/acpi/events/lenovo-mutemic
event=ibm/hotkey HKEY 00000080 0000101b

/usr/share/acpi-support/key-constants is based on /usr/include/linux/input.h

There is a KEY_MUTE defined, but no KEY_MICMUTE...
#define KEY_MUTE 113

Daniël van Eeden (dveeden) wrote :

Three is no microphone mute key defined in /usr/include/linux/input.h

affects: gnome-control-center (Ubuntu) → linux (Ubuntu)
Timothy Gott (gott-spam) wrote :

I'm using Ubuntu 10.04 ... I created both a launcher and a keyboard shortcut for myself. Works for me, thanks.

Mute Mic = "/usr/bin/pacmd "set-source-mute alsa_input.pci-0000_00_1b.0.analog-stereo 1"
UnMute Mic = "/usr/bin/pacmd "set-source-mute alsa_input.pci-0000_00_1b.0.analog-stereo 0"

Timothy Gott (gott-spam) wrote :

Duh ... I just found a better way to do this. ONE launcher and ONE shortcut can be used if I use this.

amixer set Capture toggle

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers