(I've asked about this on the
other thread, but it get buried into other topics discussed there, so I hope it's OK to start a new thread specifically about this problem.)
So let's say I start from vanilla PulseAudio setup from -current, and I want make my volume buttons, more precisely just mute button, work. So I run "acpi_listen" and press mute button, and the output is as follows:
Code:
button/mute MUTE 00000080 00000000 K
Then I run "pamixer --list-sinks" and the output is as follows:
Code:
Sinks:
0 "alsa_output.pci-0000_01_00.1.hdmi-stereo" "GF106 High Definition Audio Controller Digital Stereo (HDMI)"
1 "alsa_output.pci-0000_00_1b.0.analog-stereo" "Built-in Audio Analog Stereo"
So I create /etc/acpi/events/vol-m file, and I put following in:
Code:
event=button/mute
action=pamixer --sink 1 -t
Then I restart ACPI daemon through "/etc/rc.d/rc.acpid restart". I try to press mute button several times, and it seems to be working, as LED showing mute status goes on and back off as expected.
Now I open say Firefox, logged under X as an ordinary user, and start playing some video on YouTube. At some point, I want to mute sound, and I press mute button, but nothing happens - the sound doesn't get muted, and mute button LED indicator doesn't change its status. When I run "pamixer --list-sinks" again, only sink #0 from above appears in the list.
So my question is: is PulseAudio supposed to "grab" sound device for single user, and how to make volume buttons to work in this scenario?
Thanks.