I need to activate my output device in pavucontrol very often

Hey,

this used to work just fine in previous versions of my system. But now it is often the case that I expect to get audio feedback of my computer, as my audio is not muted, but it just does not play any audio. The only fix in this case (alsamixer does not help) is to open pavucontrol and click on mute audio in the Output Devices tab.
This issue happens very frequently to me, often after I put my laptop to hybrid-sleep and wake it up again, but I am not really sure - I did not understand the pattern yet, how this happens and it does not happen always.

Maybe you guys know some help? if there is no fix, maybe there is at least a command that toggles or unmutes my Built-in Audio Analog Stereo as it is called in pavucontrol. :slight_smile:

inxi -F
System:
  Host: tillmann-pc Kernel: 4.19.56-1-MANJARO x86_64 bits: 64 
  Desktop: i3 4.16.1 Distro: Manjaro Linux 
Machine:
  Type: Laptop System: Apple product: MacBookPro10,2 v: 1.0 
  serial: <root required> 
  Mobo: Apple model: Mac-AFD8A9D944EA4843 v: MacBookPro10,2 
  serial: <root required> UEFI: Apple v: 274.0.0.0.0 
  date: 09/17/2018 
Battery:
  ID-1: BAT0 charge: 66.5 Wh condition: 66.9/73.9 Wh (90%) 
CPU:
  Topology: Dual Core model: Intel Core i5-3210M bits: 64 
  type: MT MCP L2 cache: 3072 KiB 
  Speed: 1197 MHz min/max: 1200/3100 MHz Core speeds (MHz): 
  1: 1197 2: 1197 3: 1197 4: 1197 
Graphics:
  Device-1: Intel 3rd Gen Core processor Graphics driver: i915 
  v: kernel 
  Display: x11 server: X.Org 1.20.5 driver: intel 
  resolution: 2560x1600~60Hz 
  OpenGL: renderer: Mesa DRI Intel Ivybridge Mobile 
  v: 4.2 Mesa 19.1.1 
Audio:
  Device-1: Intel 7 Series/C216 Family High Definition Audio 
  driver: snd_hda_intel 
  Sound Server: ALSA v: k4.19.56-1-MANJARO 
Network:
  Device-1: Broadcom and subsidiaries NetXtreme BCM57786 Gigabit 
  Ethernet PCIe 
  driver: N/A 
  Device-2: Broadcom and subsidiaries BCM4331 802.11a/b/g/n 
  driver: bcma-pci-bridge 
  IF-ID-1: wlp3s0b1 state: up mac: 3e:19:2c:ed:b9:e6 
Drives:
  Local Storage: total: 113.00 GiB used: 78.93 GiB (69.8%) 
  ID-1: /dev/sda vendor: Apple model: SSD SM128E size: 113.00 GiB 
Partition:
  ID-1: / size: 93.87 GiB used: 78.86 GiB (84.0%) fs: ext4 
  dev: /dev/sda2 
  ID-2: swap-1 size: 16.83 GiB used: 73.7 MiB (0.4%) fs: swap 
  dev: /dev/sda3 
Sensors:
  System Temperatures: cpu: 63.0 C mobo: N/A 
  Fan Speeds (RPM): N/A 
Info:
  Processes: 211 Uptime: 1d 1h 00m Memory: 7.67 GiB 
  used: 3.27 GiB (42.6%) Shell: zsh inxi: 3.0.34 

EDIT:
I think I found out, where the bad vibes are coming from:
I use this Volume Icon tool (Version 0.5.1) that comes by default in manjaroI3 and for some reason when I use its mute toggling function it will mute my sound but will not unmute it - whereas it displays it as unmuted. The only way to unmute my sound is through pactl or pavucontrol .

Seems like this is to be solved with a hook but this is more of a challenge to @tbg and other specialists than me :wink:

1 Like

may help to clear old user configuration for Pulseaudio:

Delete Pulseaudio cookie and card/volume database files:
rm ~/.config/pulse/cookie ~/.config/pulse/*.tdb

Restart Pulseaudio and it will create new set of clean files
systemctl --user restart pulseaudio

Restart command above may also work to reset Pulseaudio after standby/sleep

for unmute command
need to get the correct Pulseaudio card number from:
pactl list sinks
for Pulseaudio unmute command (replace X with card number):
pactl set-sink-mute X 0

2 Likes

Hey been a bit busy, sorry for the late response.

pactl set-sink-mute 0 0

works for me. Thanks :slight_smile:
Oddly clearing cookies and restarting pulseaudio lead to the effect of muting the sink as well.

I think I found out, where the bad vibes are coming from:
I use this Volume Icon tool (Version 0.5.1) that comes by default in manjaroI3 and for some reason when I use its mute toggling function it will mute my sound but will not unmute it - whereas it displays it as unmuted. The only way to unmute my sound is through pactl or pavucontrol.
Would there be an easy way to fix that then?

I had similar issues with xfce panel plug-in that would mute but not un-mute
found most panel controls to have limited value use so don't use any
(occasionally use pasystray to check Pulseaudio configuration, but don't need it much for daily use)

now i have a launcher on panel to pavucontrol playback tab
pavucontrol --tab 1

but also previously had another launcher to mute/unmute
pactl set-sink-mute 0 toggle

1 Like