PipeWire fails to restore HDMI audio sink after screensaver deactivation due to device name change in Ubuntu 24.10
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.
- New HDMI device name after unlock: alsa_output.
- 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/
default.
$ pactl get-default-sink
alsa_output.
$ pactl list sinks short
67 alsa_output.
262 alsa_output.
```
ProblemType: Bug
DistroRelease: Ubuntu 24.10
Package: gnome-settings-
ProcVersionSign
Uname: Linux 6.11.0-13-generic x86_64
ApportVersion: 2.30.0-0ubuntu4
Architecture: amd64
CasperMD5CheckR
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-
UpgradeStatus: Upgraded to oracular on 2024-12-17 (13 days ago)