4

I'm running the testing branch of with codename Jessie and as desktop environment on a Lenovo ThinkPad T410. When I press the mute-button, it mutes pulse-audio and alsa, but when I press the mute-button again it unmutes pulse-audio but not alsa. I can happily mute and unmute in the terminal by

amixer set Master toggle

Now I'd like to set this command to be executed when pressing the mute button. has a setting for that, it works for other buttons, but not the mute button. In .config/xfce4/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml I have the line

<property name="XF86AudioMute" type="string" value="amixer set Master toggle"/>

but to no avail. Does anyone know how I can either turn off the mute button or overwrite what happens when I press it?

pfnuesel
  • 5,837

3 Answers3

3

Uncommenting

load-module module-alsa-sink
load-module module-alsa-source device=hw:1,0

in /etc/pulse/default.pa did the trick.

Edit: However, after uncommenting the lines mentioned above, I ran into all sorts of problems, for example started crashing. I now removed the complete folder /etc/pulse/ and now everything seems to work fine, including sound and mute button.

pfnuesel
  • 5,837
1

I found this solution on a blog to work on my Debian Jessie / XFCE machine.

In brief, the problem seems to be a missing "gstreamer0.10-pulseaudio" package. This causes a behavior where you can mute all audio using the keyboard button, but to unmute it you have to go into alsamixer and press M to unmute; the unmute action apparently doesn't get communicated by default.

  1. sudo apt-get install gstreamer0.10-pulseaudio
  2. Reboot (might be sufficient to restart X, but I just rebooted)
  3. Verify the output of xfconf-query -lc xfce4-mixer to ensure that PlaybackBuiltinAudioAnalogStereoPulseAudioMixer is listed.
  4. The author recommends running xfconf-query -c xfce4-mixer -p /active-card -s PlaybackBuiltinAudioAnalogStereoPulseAudioMixer to set Pulseaudio as the "active card", but this doesn't seem to be necessary and throws an error for me when I tried ("Property "/active-card" does not exist on channel "xfce4-mixer".)

Note that I previously implemented the first part of Michael Tomkins' proposed solution (mapping amixer set Master toggle to the keyboard mute button in the xfce4-menu settings control), so that may be related and is worth a try. I did not remove any of the gstreamer components, and don't recommend doing so given the number of things in Jessie that are (apparently) dependent on them.

James
  • 111