No audio after long suspend (lid closed)
Hardware
Lenovo Legion 5 15ARH05H
ADM Ryzen 7 4800H
Software
- PipeWire version (
pipewire --version
):
❯ pipewire --version
pipewire
Compiled with libpipewire 0.3.80
Linked with libpipewire 0.3.80
- Distribution and distribution version (
PRETTY_NAME
from/etc/os-release
):
Fedora Linux 39.20231028.n.0 (Silverblue)
- Desktop Environment:
Gnome 45.0 (WM: Wayland)
- Kernel version (
uname -r
):
6.5.6-300.fc39.x86_64
Description of Problem:
When I close the lid of the laptop and go to sleep, the next day I open the lid I don't have sound. This doesn’t happen if the suspension time is short. The weird thing is that sometimes it doesn't happen at all. Currently I rebased to FC39 but in FC38 also happened (and I have two dumps from that - see below)
How Reproducible:
- Close the lid of your laptop
- The system goes to suspension mode
- The next day open the lid
- Test playing a local audio file (in my case
$ mpv test.mp3
) or any other sound (like the sound the system makes when you turn up or down the volume) - You'll get no sound
- If you restart the service (
$ systemctl --user restart pipewire
) the audio comes back.
Notes:
I haven't tested it with the same apps opened all the time this happens. I usually keep Firefox (flatpak) and Terminator (layered/native) open. I will test it with and without them just in case.
Additional Info (as attachments):
2023-10-29 (FC39)
- No Sound: pw-dump_2023-10-29_no-sound.log
- After restarting the service, now with sound: pw-dump_2023-10-29_after-restart.log
2023-10-13 (FC38)
- No Sound: pw-dump_2023-10-13_no-sound.log
- After restarting the service, now with sound: pw-dump_2023-10-13_after-restart.log
Diff bewteen both logs
FC39 BaseCommit: 8e86f7115f5210f74309481180facb85f7157f8a4f62bc5b28d89b43cc6971fc
FC39 BaseCommit: 47f696a1af532ec01243e412f728a6c7ff7f217096b64af5c514d5ccb5ffd972
❯ rpm-ostree db diff 8e86f7115f5210f74309481180facb85f7157f8a4f62bc5b28d89b43cc6971fc 47f696a1af532ec01243e412f728a6c7ff7f217096b64af5c514d5ccb5ffd972 | grep pipewire
pipewire 0.3.80-1.fc39 -> 0.3.83-2.fc38
pipewire-alsa 0.3.80-1.fc39 -> 0.3.83-2.fc38
pipewire-gstreamer 0.3.80-1.fc39 -> 0.3.83-2.fc38
pipewire-jack-audio-connection-kit 0.3.80-1.fc39 -> 0.3.83-2.fc38
pipewire-jack-audio-connection-kit-libs 0.3.80-1.fc39 -> 0.3.83-2.fc38
pipewire-libs 0.3.80-1.fc39 -> 0.3.83-2.fc38
pipewire-pulseaudio 0.3.80-1.fc39 -> 0.3.83-2.fc38
pipewire-utils 0.3.80-1.fc39 -> 0.3.83-2.fc38
(FC39 has been on a freeze for the past month)
rpm-ostree status
❯ rpm-ostree status
State: idle
Deployments:
● fedora:fedora/39/x86_64/silverblue
Version: 39.20231028.n.0 (2023-10-28T08:04:15Z)
BaseCommit: 8e86f7115f5210f74309481180facb85f7157f8a4f62bc5b28d89b43cc6971fc
GPGSignature: Valid signature by E8F23996F23218640CB44CBE75CF5AC418B8E74C
RemovedBasePackages: firefox firefox-langpacks 118.0.1-7.fc39 gnome-software gnome-software-rpm-ostree 45.0-1.fc39
LayeredPackages: akmod-nvidia android-tools distrobox gnome-tweaks kernel-tools pipewire-codec-aptx printer-driver-brlaser rpmfusion-free-release rpmfusion-nonfree-release starship steam-devices tailscale terminator xboxdrv
xorg-x11-drv-nvidia
fedora:fedora/38/x86_64/silverblue
Version: 38.20231028.0 (2023-10-28T02:35:21Z)
BaseCommit: 47f696a1af532ec01243e412f728a6c7ff7f217096b64af5c514d5ccb5ffd972
GPGSignature: Valid signature by 6A51BBABBA3D5467B6171221809A8D7CEB10B464
RemovedBasePackages: firefox firefox-langpacks 119.0-1.fc38 gnome-software gnome-software-rpm-ostree 44.5-1.fc38
LayeredPackages: akmod-nvidia android-tools distrobox gnome-tweaks kernel-tools pipewire-codec-aptx printer-driver-brlaser rpmfusion-free-release rpmfusion-nonfree-release starship steam-devices tailscale terminator xboxdrv
xorg-x11-drv-nvidia
Pinned: yes