4

I'm using Ubuntu Studio 13.04 on a Thinkpad T420s. I haven't customised the mute/volume scripts etc. The mute key mutes my audio but doesn't unmute it. When I run alsamixer I see the effect of the mute key on alsa: it mutes both the "Master" and the "Headphone"/"Speaker" channels, but then on un-mute it only un-mutes the "Master" channel.

I can manually un-mute the component channels in alsamixer, and my sound comes back. But of course I shouldn't have to.

How do I fix it so that mute-unmute works via the key?

(My problem seems similar to question 118675 but not the same, and the accepted answer there doesn't affect my situation.)

(I was using older Ubuntu Studio 11.10 until recent upgrade, and the mute key was configured fine.)

1
  • I think this bug might be what's going on, and this particular explanatory comment: bug 878986 comment 29 - commenter says "by controlling PulseAudio instead of amixer, your keyboard shortcuts will work correctly" - how?
    – danstowell
    Aug 30, 2013 at 6:41

2 Answers 2

8

Thanks so much! This helped me with my Arch/LXDE setup - the mute button xml that is recommended on the LXDE wiki mutes all of the channels in alsamixer and doesn't unmute them (at least not for my sound card).

How I got it fixed:

I changed the XF86AudioMute command value to:

amixer -q -D pulse sset Master toggle
1
0

OK I believe I have solved it: the important thing to know is I'm using Ubuntu Studio, which means the window manager is openbox. So what I need to do is edit the keybindings defined in ~/.config/openbox/lxde-rc.xml - you can see the option defined here:

  <keybind key="XF86AudioMute">       <action name="Execute">        <command>amixer -q sset Master toggle</command>     </action>   </keybind>

which I edit to become:

<keybind key="XF86AudioMute"> <action name="Execute"> <command>amixer -q -D pulse sset Master toggle</command> </action> </keybind>

and then after logout-login, the mute key works as expected.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .