You are not logged in.
I think I have seen on the forum a post header describing a similar problem but cannot find that post. I'm using Pulseaudio and have the problem that I can mute the sound with the Mute keyboard key, but next presses of the key don't unmute the sound.
I found in the Internet a recipe to solve the problem by assigning to the Mute key the command:
amixer -D pulse sset Master toggle
and it works OK when run from the terminal. But it doesn't work with the Mute key. I'm using XFCE and assigned the command to the XF86AudioMute key in the "Keyboard/Application Shortcuts" settings dialog.
I have Pavuc installed and the sound can only be unmuted through it. Unmuting through the XFCE "Audio Mixer" GUI app doesn't work.
I tried to create a script with the command and call that script with the Mute key, but this hasn't help.
How can the Mute key be configured so that it toggle the sound?
Thanks.
Last edited by nbd (2017-09-24 01:08:19)
bing different
Offline
Does using pulseaudio-ctl instead of amixer work? It's what I use for my keybinds in herbstluftwm...
...
hc keybind XF86AudioMute spawn pulseaudio-ctl mute
hc keybind XF86AudioRaiseVolume spawn pulseaudio-ctl up
hc keybind XF86AudioLowerVolume spawn pulseaudio-ctl down
...
Ignore everything up to and including spawn for your use case, you only need the pulseaudio-ctl command.
Last edited by Slithery (2017-09-23 09:10:48)
Offline
Is using 341 line script from AUR really the only way to make (de-facto standard) PA work with keyboard buttons? Or it's just for some marginal cases?
Last edited by nbd (2017-09-24 00:34:37)
bing different
Offline
You can also use
pactl set-sink-volume @DEFAULT_SINK@ +5% #Or whatever increment you want
pactl set-sink-volume @DEFAULT_SINK@ -5%
pactl set-sink-mute @DEFAULT_SINK@ toggle
ultimately that xfce plugins don't catch this is imo a bug in xfce plugins. Normally whatever is controlling the pulse mixer should be handling these as well. And did you make sure that you use xfce4-pulseaudio-plugin and not the old mixer applet?
Last edited by V1del (2017-09-24 01:04:09)
Offline
And did you make sure that you use xfce4-pulseaudio-plugin and not the old mixer applet?
I was indeed using the old applet. Many thanks!
bing different
Offline
Yes that one is unmaintained and relied on mixer functionality in gstreamer 0.10 which is also unmaintained, so it doesn't surprise me you ran into issues with that.
Last edited by V1del (2017-09-24 01:11:01)
Offline