You are not logged in.

#1 2022-02-19 19:22:12

merc68k
Member
Registered: 2011-08-07
Posts: 25

[SOLVED] Pipewire stops working after suspend/resume

Hi,

  Ever since upgrading to kernel 5.16.x, pipewire has stopped working on my system when I resume from suspend.  When this happens, I can usually start one audio stream but after that nothing else works, pavucontrol fails to connect to pulseaudio (pipewire), and nothing audio-related works.

After resuming, pipewire seems to be in a 'D' state:

[root@archie64 pipewire]# ps aux | grep pipewire
masonj       990  0.0  0.1 117824 16556 ?        D<sl 13:57   0:00 /usr/bin/pipewire
masonj       991  0.0  0.1  58596 16324 ?        Ssl  13:57   0:00 /usr/bin/pipewire-media-session
masonj       992  0.1  0.1  34500 16760 ?        S<sl 13:57   0:00 /usr/bin/pipewire-pulse

Also in the journal I've noticed these messages:

[   35.265505] snd-usb-audio 1-6.1.2:1.0: resume error -22
...
[   48.242688] i915 0000:00:02.0: [drm] *ERROR* Sending link address failed with -5

While typing this post I just had the idea to try unplugging my USB headset after resuming and that actually fixes it!  This is a little inconvenient but less annoying that rebooting for the time being, at least.

I looked around online and did found a lot of threads about resume issues on kernel 5.16 which sound very similar, but no obvious solutions that worked for me.  I also found https://forum.artixlinux.org/index.php? … ic=3532.15 which describes a very similar issue  (even running Xfce as I am) but in this case it seems to have been solved by disabling bluetooth, and that didn't resolve it in my case.

By any chance could anyone shed any light on this? 

I am running 5.16.10-arch1-1 on a GA-Z170x-ud5 (i915) and i5-6660.

Thanks in advance,

Last edited by merc68k (2022-02-20 13:26:47)

Offline

#2 2022-02-20 04:35:49

bulletmark
Member
From: Brisbane, Australia
Registered: 2013-10-22
Posts: 692

Re: [SOLVED] Pipewire stops working after suspend/resume

Already discussed in this thread and raised as a bug on kernel 5.16. A patch to fix it has been queued. A temporary work-around is to run the LTS kernel (5.15.*), or apply the (small) patch yourself to the current 5.16 Arch kernel.

Last edited by bulletmark (2022-02-20 04:39:41)

Offline

#3 2022-02-20 13:25:43

merc68k
Member
Registered: 2011-08-07
Posts: 25

Re: [SOLVED] Pipewire stops working after suspend/resume

Oh great, thanks for that.  I should have searched the forums again when I realized it was related to the snd-usb-audio message!

Offline

Board footer

Powered by FluxBB