You are not logged in.

#1 2012-06-03 05:42:19

Markus00000
Member
Registered: 2011-03-27
Posts: 333

[SOLVED] .xbindkeysrc: Muting works, unmuting stopped working.

I have had these lines in .xbindkeysrc for a long time and they worked fine:

# Mute
"(mute)"  
    m:0x10 + c:121
	Mod2 + XF86AudioMute

# Volume up
"(vol-up)"  
    m:0x10 + c:123
	Mod2 + XF86AudioRaiseVolume

# Volume down
"(vol-down)"  
    m:0x10 + c:122
	Mod2 + XF86AudioLowerVolume

Pressing "mute" would toggle between muted and unmuted. But some time ago, toggling stopped working. Now, I can still mute, but pressing "mute" again will no longer unmute.

Any help appreciated!

Last edited by Markus00000 (2012-06-03 07:03:38)

Offline

#2 2012-06-03 06:08:43

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: [SOLVED] .xbindkeysrc: Muting works, unmuting stopped working.

See wiki:

"amixer set Master toggle"

Rather than (mute)

Offline

#3 2012-06-03 07:03:14

Markus00000
Member
Registered: 2011-03-27
Posts: 333

Re: [SOLVED] .xbindkeysrc: Muting works, unmuting stopped working.

Oh my. I did not notice when posting...

"mute" is script of mine that toggles mute:

amixer -c 0 set Master toggle

But thanks to your reply I was lead to the cause. With "-c 0" amixer succeeds to mute, but fails to unmute. When I don't specify the device number, it works at least for my current sound card. I'll see if it works for my USB card as well.

Thanks, brebs.

PS: Interestingly, "-c 0" works for the volume up/down commands as it does for muting. Just not for unmute.

Last edited by Markus00000 (2012-06-03 07:05:54)

Offline

Board footer

Powered by FluxBB