Audio/video shuts off when opening any type of browser

Hi all,

As soon as I start a browser or any other type of application that uses Chromium (Spotify), the audio and video shut off. They do still work over bluetooth but not on my laptop speakers.

Needless to say, I have tried to figure it out by myself using this guide from the Manjaro forums hinting at a similar issue. The solution appeared to be switching to Pipewire instead of Pulseaudio which I did, or at least tried to do using this guide from the EOS forums.

However both Pipewire and Pulseaudio appear to be giving exactly the same issue. As soon as I open any type of application that utilizes any browser, the audio/video stops and my microphone stops working. I tried going back to older kernel versions but the issue still prevails. The error Pipewire gives when trying to run it in the terminal is:

[E][01929.528434] mod.protocol-native | [module-protocol-:  708 lock_socket()] server 0x5585eb203740: unable to lock lockfile '/run/user/1000/pipewire-0.lock': Resource temporarily unavailable (maybe another daemon is running)
[E][01929.528565] pw.conf      | [          conf.c:  560 load_module()] 0x5585eb1c6340: could not load mandatory module "libpipewire-module-protocol-native": Resource temporarily unavailable
[E][01929.528628] default      | [      pipewire.c:  125 main()] failed to create context: Resource temporarily unavailable

Pulseaudio gives something more readable:

pa_pid_fille_create() failed

Journalctl output related to audio gives me this(around 22:41 I manually restarted the Pipewire service)

may 20 22:16:16 user kernel: ACPI: Added _OSI(Linux-Lenovo-NV-HDMI-Audio)
may 20 22:16:19 user kernel: sof-audio-pci-intel-cnl 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040100
may 20 22:16:19 user kernel: sof-audio-pci-intel-cnl 0000:00:1f.3: Digital mics found on Skylake+ platform, using SOF driver
may 20 22:16:19 user kernel: sof-audio-pci-intel-cnl 0000:00:1f.3: enabling device (0000 -> 0002)
may 20 22:16:19 user kernel: sof-audio-pci-intel-cnl 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if 0x040100
may 20 22:16:19 user kernel: sof-audio-pci-intel-cnl 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
may 20 22:16:19 user kernel: sof-audio-pci-intel-cnl 0000:00:1f.3: use msi interrupt mode
may 20 22:16:19 user kernel: sof-audio-pci-intel-cnl 0000:00:1f.3: hda codecs found, mask 5
may 20 22:16:19 user kernel: sof-audio-pci-intel-cnl 0000:00:1f.3: using HDA machine driver skl_hda_dsp_generic now
may 20 22:16:19 user kernel: sof-audio-pci-intel-cnl 0000:00:1f.3: DMICs detected in NHLT tables: 2
may 20 22:16:19 user kernel: sof-audio-pci-intel-cnl 0000:00:1f.3: Firmware info: version 2:1:1-3964a
may 20 22:16:19 user kernel: sof-audio-pci-intel-cnl 0000:00:1f.3: Firmware: ABI 3:21:0 Kernel ABI 3:18:0
may 20 22:16:19 user kernel: sof-audio-pci-intel-cnl 0000:00:1f.3: warn: FW ABI is more recent than kernel
may 20 22:16:19 user kernel: sof-audio-pci-intel-cnl 0000:00:1f.3: unknown sof_ext_man header type 3 size 0x30
may 20 22:16:19 user kernel: sof-audio-pci-intel-cnl 0000:00:1f.3: Firmware info: version 2:1:1-3964a
may 20 22:16:19 user kernel: sof-audio-pci-intel-cnl 0000:00:1f.3: Firmware: ABI 3:21:0 Kernel ABI 3:18:0
may 20 22:16:19 user kernel: sof-audio-pci-intel-cnl 0000:00:1f.3: warn: FW ABI is more recent than kernel
may 20 22:16:19 user kernel: sof-audio-pci-intel-cnl 0000:00:1f.3: Topology: ABI 3:21:0 Kernel ABI 3:18:0
may 20 22:16:19 user kernel: sof-audio-pci-intel-cnl 0000:00:1f.3: warn: topology ABI is more recent than kernel
may 20 22:16:19 user kernel: snd_hda_codec_realtek ehdaudio0D0: autoconfig for ALC285: line_outs=1 (0x17/0x0/0x0/0x0/0x0) type:speaker
may 20 22:16:19 user kernel: snd_hda_codec_realtek ehdaudio0D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
may 20 22:16:19 user kernel: snd_hda_codec_realtek ehdaudio0D0:    hp_outs=1 (0x21/0x0/0x0/0x0/0x0)
may 20 22:16:19 user kernel: snd_hda_codec_realtek ehdaudio0D0:    mono: mono_out=0x0
may 20 22:16:19 user kernel: snd_hda_codec_realtek ehdaudio0D0:    inputs:
may 20 22:16:19 user kernel: snd_hda_codec_realtek ehdaudio0D0:      Mic=0x19
may 20 22:16:20 user kernel: snd_hda_codec_realtek ehdaudio0D0: ASoC: sink widget AIF1TX overwritten
may 20 22:16:20 user kernel: snd_hda_codec_realtek ehdaudio0D0: ASoC: source widget AIF1RX overwritten
may 20 22:16:26 user systemd[1231]: Listening on PipeWire PulseAudio.
may 20 22:16:34 user systemd[1292]: Listening on PipeWire PulseAudio.
may 20 22:16:39 user systemd[1292]: Started PipeWire PulseAudio.
may 20 22:16:44 user systemd[1231]: Closed PipeWire PulseAudio.
may 20 22:29:07 user konsole[2350]: kf.notifications: Audio notification requested, but sound file from notifyrc file was not found, aborting aud>
may 20 22:33:49 user konsole[2350]: kf.notifications: Audio notification requested, but sound file from notifyrc file was not found, aborting aud>
may 20 22:41:26 user systemd[1292]: Stopping PipeWire PulseAudio...
may 20 22:41:26 user systemd[1292]: Stopped PipeWire PulseAudio.
may 20 22:41:26 user systemd[1292]: Started PipeWire PulseAudio.
may 20 22:43:41 user wireplumber[4334]: <WpSiAudioAdapter:0x5614bb384c20> Object activation aborted: proxy destroyed
may 20 22:43:41 user wireplumber[4334]: <WpSiAudioAdapter:0x5614bb384c20> failed to activate item: Object activation aborted: proxy destroyed
may 20 22:44:00 user wireplumber[4334]: <WpSiAudioAdapter:0x5614bb3fa610> Object activation aborted: proxy destroyed
may 20 22:44:00 user wireplumber[4334]: <WpSiAudioAdapter:0x5614bb3fa610> failed to activate item: Object activation aborted: proxy destroyed
may 20 22:44:00 user wireplumber[4334]: <WpSiAudioAdapter:0x5614bb384c20> Object activation aborted: proxy destroyed
may 20 22:44:00 user wireplumber[4334]: <WpSiAudioAdapter:0x5614bb384c20> failed to activate item: Object activation aborted: proxy destroyed
may 20 22:44:00 user wireplumber[4334]: <WpSiAudioAdapter:0x5614bb3fa610> Object activation aborted: proxy destroyed
may 20 22:44:00 user wireplumber[4334]: <WpSiAudioAdapter:0x5614bb3fa610> failed to activate item: Object activation aborted: proxy destroyed
may 20 22:44:25 user systemd[1292]: Started PulseAudio Volume Control - Volume Control.
may 20 22:48:19 user wireplumber[4334]: <WpSiAudioAdapter:0x5614bb3fa230> Object activation aborted: proxy destroyed
may 20 22:48:19 user wireplumber[4334]: <WpSiAudioAdapter:0x5614bb3fa230> failed to activate item: Object activation aborted: proxy destroyed

Whenever I restart both services the sound and video work, but are still a little off. The microphone is just not functioning and will only work again whenever I reboot my system. Is there someone who has any idea how to troubleshoot this further?

Many thanks!

My suspicion is that you are running on both pipewire and pulseaudio. I think you would need to pick one or the other.

What is the output of

pactl -info

inxi -aA

and

pacman -Ss pipewire | grep installed

?

1 Like

There are some traces of pulseaudio yes. However I don’t know if it causes a problem, it appears it is fully inactive.

pactl info

Server String: /run/user/1000/pulse/native
Library Protocol Version: 35
Server Protocol Version: 35
Is Local: yes
Client Index: 670
Tile Size: 65472
User Name: name
Host Name: host
Server Name: PulseAudio (on PipeWire 0.3.51)
Server Version: 15.0.0
Default Sample Specification: float32le 2ch 48000Hz
Default Channel Map: front-left,front-right
Default Sink: alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp__sink
Default Source: alsa_input.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp_6__source
Cookie: a55e:f707

Funny thing, calling inxi -aA completely shut off my audio and video.

inxi -aA

Audio:
  Device-1: Intel Cannon Lake PCH cAVS vendor: Lenovo
    driver: sof-audio-pci-intel-cnl
    alternate: snd_hda_intel,snd_soc_skl,snd_sof_pci_intel_cnl
    bus-ID: 00:1f.3 chip-ID: 8086:a348 class-ID: 0401
  Sound Server-1: ALSA v: k5.17.9-arch1-1 running: yes
  Sound Server-2: JACK v: 1.9.21 running: no
  Sound Server-3: PulseAudio v: 15.0 running: no
  Sound Server-4: PipeWire v: 0.3.51 running: yes

pacman -Ss pipewire | grep installed

extra/gst-plugin-pipewire 1:0.3.51-1 [installed]
extra/pipewire 1:0.3.51-1 [installed]
extra/pipewire-pulse 1:0.3.51-1 [installed]
extra/wireplumber 0.4.10-3 [installed]

You seem to be lacking:

pipewire-alsa

and

pipewire-jack

according to the wiki article:

2 Likes

Installed, rebooted, problem persists sadly.

1 Like

Not OP, but I have been having sound issues as well from time to time in Gnome 42, that I didn’t have any issues for in Gnome 41. Issues are present in linux and linux-lts kernels. I don’t quite have the exact same issue as OP, but something similar. I’ll use Vivaldi (with a bluetooth speaker) and watch a video. Then pause the video to play some music/podcast in Rhythmbox or Gnome Podcast. Then pause the music and go back to Vivaldi and the video has no sound. It doesn’t happen often, but it does happen still and I can’t replicate it at all sadly. My “fix” for it currently, as annoying as it is, is to go to Gnome Settings, under the Sound tab, and change the Output Configuration from codec SBC to anything else, and then back to codec SBC and the audio will come back.

If that doesn’t work, if I close and reopen the browser, or the music app, then it “reconnects” to the intended bluetooth audio output. Or another “fix” if I turn my bluetooth off and on again in Gnome Settings, that sometimes fixes it as well. Other times when I’m playing a Youtube video with my bluetooth speaker, then I go to Gnome Podcasts to continue listening to a podcast, it won’t play from my bluetooth speaker, it’ll play the podcast from my laptop speakers. To fix that, I have to close Gnome Podcast and reopen it so it “reconnects” back to the bluetooth speaker. I honestly never had this issue before Gnome 42, its been honestly annoying as ever, but I’ve just been dealing with it because it only happens maybe once a day or a few times a day, it’s an inconsistent issue to say the least.

In any case here’s some of my terminal outputs if it helps OP or myself, who knows!

[scott@endeavourOS ~]$ pactl -info
pactl: invalid option -- 'i'
[scott@endeavourOS ~]$ inxi -aA
Audio:
  Device-1: Intel Sunrise Point-LP HD Audio vendor: Acer Incorporated ALI
    driver: snd_hda_intel v: kernel alternate: snd_soc_skl bus-ID: 00:1f.3
    chip-ID: 8086:9d71 class-ID: 0403
  Sound Server-1: ALSA v: k5.17.9-arch1-1 running: yes
  Sound Server-2: PulseAudio v: 15.0 running: no
  Sound Server-3: PipeWire v: 0.3.51 running: yes
[scott@endeavourOS ~]$ pacman -Ss pipewire | grep installed
extra/gst-plugin-pipewire 1:0.3.51-1 [installed]
extra/pipewire 1:0.3.51-1 [installed]
extra/pipewire-alsa 1:0.3.51-1 [installed]
extra/pipewire-jack 1:0.3.51-1 [installed]
extra/pipewire-media-session 1:0.4.1-2 [installed]
extra/pipewire-pulse 1:0.3.51-1 [installed]
[scott@endeavourOS ~]$ 

Edit: I may have to open a separate thread if the issues aren’t related, which I may just have to do, we’ll see :wink:

1 Like

Have a look at the following post by @joekamprad and see if getting old configs out of the way might help:

1 Like

Checked my volume control, everything is enabled and listed as functioning. Moved the old files to a new folder and rebooted. Problem is still there.

1 Like

However, we are getting somewhere I believe. It appears that if I open a browser, the audio/video capabilites freeze, but they recover after say a minute or 2 without me manually trying to restart the service.

1 Like

For the sake of testing, you might want to switch from wireplumber to pipewire-media session:

sudo pacman -Syu pipewire-media-session

This will remove wireplumber. Also:

mv ~/.config/pulse ~/.config/original-pulse
mv ~/.local/state/wireplumber  ~/.local/state/original-wireplumber

And reboot.

4 Likes

That did the trick, changing from wireplumber to pipewire-media-session. Thank you so very much for your help!

1 Like

You are welcome!
Happy you got it working!

:enos_flag:

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.