PipeWire fails to restore HDMI audio sink after screensaver deactivation due to device name change in Ubuntu 24.10

Bug #2092725 reported by PabloRQ
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gnome-settings-daemon (Ubuntu)
New
Undecided
Unassigned

Bug Description

When using an HDMI audio output, PipeWire fails to properly restore the audio sink after the screensaver is deactivated. This occurs because the HDMI device is temporarily disconnected during screensaver activation, and upon reconnection, the device name changes slightly. PipeWire fails to recognize the renamed device as the previously configured sink.

Steps to reproduce
1. Set audio output to HDMI device
2. Allow screensaver to activate
3. Unlock session
4. Audio output reverts to internal/USB audio instead of HDMI

Key observations:
- Original HDMI device name: alsa_output.pci-0000_00_1f.3.hdmi-stereo
- New HDMI device name after unlock: alsa_output.pci-0000_00_1f.3.hdmi-stereo.2
- PipeWire fails to map the old device name to the new one
- Affect after upgrading from Ubuntu 24.04 to Ubuntu 24.10

System Information
- Ubuntu 24.10
- Gnome 47
- PipeWire 1.2.4

Impact
- Users must manually reselect HDMI audio output after every screensaver activation
- Affects media playback continuity
- Disrupts user experience in presentation/media center setups

Test done:
```
$ cat ~/.local/state/wireplumber/default-nodes | grep default.configured.audio.sink=
default.configured.audio.sink=alsa_output.pci-0000_00_1f.3.hdmi-stereo

$ pactl get-default-sink
alsa_output.usb-Generic_USB_Audio_201604140001-00.iec958-stereo

$ pactl list sinks short
67 alsa_output.usb-Generic_USB_Audio_201604140001-00.iec958-stereo PipeWires16le 2ch 48000Hz RUNNING
262 alsa_output.pci-0000_00_1f.3.hdmi-stereo.2 PipeWire s32le 2ch 48000Hz IDLE
```

ProblemType: Bug
DistroRelease: Ubuntu 24.10
Package: gnome-settings-daemon 47.1-1ubuntu1
ProcVersionSignature: Ubuntu 6.11.0-13.14-generic 6.11.0
Uname: Linux 6.11.0-13-generic x86_64
ApportVersion: 2.30.0-0ubuntu4
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Mon Dec 30 17:02:17 2024
InstallationDate: Installed on 2023-06-04 (575 days ago)
InstallationMedia: Ubuntu 23.04 "Lunar Lobster" - Release amd64 (20230418)
SourcePackage: gnome-settings-daemon
UpgradeStatus: Upgraded to oracular on 2024-12-17 (13 days ago)

Revision history for this message
PabloRQ (pablo-romeroquinteros) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.