Public bug reported:

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)

** Affects: gnome-settings-daemon (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug oracular wayland-session

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-settings-daemon in Ubuntu.
https://bugs.launchpad.net/bugs/2092725

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-settings-daemon/+bug/2092725/+subscriptions


-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Reply via email to