You are not logged in.

#1 2021-02-09 09:09:37

thypthon
Member
Registered: 2018-05-22
Posts: 7

[SOLVED] No sound from chromium with pulseaudio-alsa

Hello. I have been doing some testing with pipewire to replace pulseaudio as I have used PulseEffects alot. For me however pipewire-pulse did not work and I will at some point raise this issue with the pipewire team. I uninstalled pipewire and went back to PulseAudio. The problem now is that chromium is not producing any output via PulseAudio. I'm not familiar with what ALSA, PulseAudio, PCM and so on mean or how to debug it. I have pulseaudio 14.2 and pulseaudio-alsa installed. PulseAudio is running and I have no custom asoundrc or /etc/alsa/alsa.conf files.

Some outputs:

 ~ ᐅ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC887-VD Analog [ALC887-VD Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 1: ALC887-VD Digital [ALC887-VD Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 10: HDMI 4 [HDMI 4]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 11: HDMI 5 [HDMI 5]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 12: HDMI 6 [HDMI 6]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 3: HD [USB Sound Blaster HD], device 0: USB Audio [USB Audio]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 3: HD [USB Sound Blaster HD], device 1: USB Audio [USB Audio #1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 3: HD [USB Sound Blaster HD], device 2: USB Audio [USB Audio #2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 4: Microphone [Yeti Stereo Microphone], device 0: USB Audio [USB Audio]
  Subdevices: 0/1
  Subdevice #0: subdevice #0

chromium is playing a youtube video and firefox is playing music.

 ~ ᐅ sudo fuser -v /dev/snd/*
                     USER        PID ACCESS COMMAND
/dev/snd/controlC0:  user       591 F.... polybar
                     user      5065 F.... pulseaudio
                     user     18328 F.... chromium
/dev/snd/controlC1:  user      5065 F.... pulseaudio
/dev/snd/controlC2:  user      5065 F.... pulseaudio
/dev/snd/controlC3:  user      5065 F.... pulseaudio
/dev/snd/controlC4:  user      5065 F.... pulseaudio
/dev/snd/pcmC0D0p:   user     18328 F...m chromium
/dev/snd/pcmC1D3p:   user      5065 F...m pulseaudio
/dev/snd/pcmC2D0c:   user      5065 F...m pulseaudio
/dev/snd/pcmC3D0c:   user      5065 F...m pulseaudio
/dev/snd/pcmC3D0p:   user      5065 F...m pulseaudio
/dev/snd/pcmC4D0c:   user      5065 F...m pulseaudio
/dev/snd/pcmC4D0p:   user      5065 F...m pulseaudio
/dev/snd/timer:      user     18328 f.... chromium
 ~ ᐅ stat /home/user/.asoundrc
stat: cannot statx '/home/user/.asoundrc': No such file or directory
 ~ ᐅ stat /etc/alsa/alsa.conf  
stat: cannot statx '/etc/alsa/alsa.conf': No such file or directory
 ~ ᐅ stat /etc/alsa/conf.d/99-pulseaudio-default.conf 
  File: /etc/alsa/conf.d/99-pulseaudio-default.conf -> /usr/share/alsa/alsa.conf.d/99-pulseaudio-default.conf
  Size: 54        	Blocks: 0          IO Block: 4096   symbolic link
Device: 10306h/66310d	Inode: 863         Links: 1
Access: (0777/lrwxrwxrwx)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2021-02-09 10:01:21.329578739 +0100
Modify: 2020-05-13 12:16:12.000000000 +0200
Change: 2021-02-09 10:01:18.512945579 +0100
 Birth: 2021-02-09 10:01:18.512945579 +0100

Any help is really appreciated. smile

Last edited by thypthon (2021-02-09 12:13:11)

Offline

#2 2021-02-09 09:44:12

thypthon
Member
Registered: 2018-05-22
Posts: 7

Re: [SOLVED] No sound from chromium with pulseaudio-alsa

I installed arch recently on my new laptop and sound works there. After comparing some files I noticed a directory from 2017 in my home directory "/home/user/.pulse" so I deleted it and I got sound to work.. The problems I was having with pipewire also seems fixed after removing the old configuration files. Hurray!

Offline

#3 2021-02-09 09:56:58

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,707

Re: [SOLVED] No sound from chromium with pulseaudio-alsa

Chromium should use pulse without going via pulseaudio-alsa

What's your surrounding environment?

systemctl --user status pulseaudio
systemctl --user status pipewire{,-pulse}

Edit: Ah whoops that's what happens if you leave an unfinished post lingering, glad to hear, please mark as [SOLVED] by editing the title in your first post.

Last edited by V1del (2021-02-09 09:58:08)

Offline

Board footer

Powered by FluxBB