You are not logged in.
I'm going to listen to some music with my computer from my phone via Bluetooth, so I have to use pulseaudio, but I have a problem. My laptop's sound system is so weird, it must have Headphone and Speaker both un-muted in alsamixer to make internal speaker having sound, So I comment "load-module module-switch-on-port-available" in /etc/pulse/default.pa, this stopped mute/un-mute headphone/speaker when I plug in/unplug my earphone, but pluseaudio auto mute the Headphone and set volume to 0 every time when I reboot he computer(the Speaker is set as fallback in pavcontrol), I have to un-mute it and increase volume from alsamixer so that internal speaker can have sound, so is there any way to stop pusleaudio auto muting?
Offline
Found this thread over google, so I'll answer it even though it's super old.
I didn't find a way to toggle the auto-mute mode in pulseaudio yet, so I do it in ALSA with this little script:
#!/bin/sh
# card name
CARD=`sed -n 's/\s\([0-9]*\).*:\s.*Intel PCH/\1/p' /proc/asound/cards`
# check auto-mute state
amixer -c $CARD sget "Auto-Mute Mode" | grep "Item0: 'Disabled'"
# $? is 0 if auto-mute is disabled
# $? is 1 if auto-mute is enabled
if [ "$?" -eq "0" ]; then
amixer -c $CARD sset "Auto-Mute Mode" Enabled
notify-send 'auto-mute enabled' -u low -a ALSA -t 4000 -i audio-volume-muted
else
amixer -c $CARD sset "Auto-Mute Mode" Disabled
notify-send 'auto-mute disabled' -u low -a ALSA -t 4000 -i audio-volume-high
fi
Last edited by k0tb4tzen (2017-05-21 07:54:52)
Offline