Sound output device dropdown empty after unplugging HDMI
In some situations, the sound output device dropdown can end up in a state with no active selection, even though:
- An output device exists
- It is present in the list
- It is being used for sound output despite not being visually selected
Steps to reproduce:
- Open GNOME Settings
- Go to "Sound" tab
- Ensure the device's primary output device is present, selected, and working (this is a built-in laptop speaker in my case)
- Plug in a monitor via HDMI
- Output may or may not automatically swich to the HDMI device - ensure it is selected and working either way
- Unplug the HDMI device
- Sound is using the previous output device again, which is still present in the dropdown list but no longer selected
- Additionally, the "Test" window shows "(null)" and is not functional
- When plugging in the HDMI again, the second output device appears in the dropdown list and sound is using the HTML output, and yet the selection remains empty
Versions:
$ rpm -qa | grep gnome
[...]
gnome-control-center-42.3-1.fc36.x86_64
gnome-settings-daemon-42.2-1.fc36.x86_64
gnome-session-42.0-1.fc36.x86_64
$ rpm -qa | grep pulseaudio
pulseaudio-libs-15.0-5.fc36.x86_64
pulseaudio-utils-15.0-5.fc36.x86_64
pulseaudio-libs-glib2-15.0-5.fc36.x86_64
pipewire-pulseaudio-0.3.55-2.fc36.x86_64
$ cat /etc/os-release
NAME="Fedora Linux"
VERSION="36.20220721.0 (Silverblue)"
ID=fedora
VERSION_ID=36
VERSION_CODENAME=""
PLATFORM_ID="platform:f36"
PRETTY_NAME="Fedora Linux 36.20220721.0 (Silverblue)"
ANSI_COLOR="0;38;2;60;110;180"
LOGO=fedora-logo-icon
CPE_NAME="cpe:/o:fedoraproject:fedora:36"
HOME_URL="https://fedoraproject.org/"
DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora-silverblue/"
SUPPORT_URL="https://ask.fedoraproject.org/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=36
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=36
PRIVACY_POLICY_URL="https://fedoraproject.org/wiki/Legal:PrivacyPolicy"
VARIANT="Silverblue"
VARIANT_ID=silverblue
OSTREE_VERSION='36.20220721.0'
Hardware:
- Framework Laptop
- LG TV
Screenshots: