My audio device switches after a sleep, I have tried quite a few of the solutions in similar posts and none have seemed to work for me. I would really like to use the HDMI audio without it changing its name and therefore also changing devices after computer goes into a sleep.
(edited to include and update information and remove rambling.)
System:
Kernel: 5.15.21-1-MANJARO x86_64 bits: 64 compiler: gcc v: 11.1.0
parameters: BOOT_IMAGE=/boot/vmlinuz-5.15-x86_64
root=UUID=5f260149-3345-4169-a59a-bba599714723 rw quiet splash apparmor=1
security=apparmor udev.log_priority=3
Desktop: GNOME 41.3 tk: GTK 3.24.31 wm: gnome-shell dm: GDM 41.3
Distro: Manjaro Linux base: Arch Linux
Machine:
Type: Desktop Mobo: ASUSTeK model: PRIME X370-PRO v: Rev X.0x
serial: <superuser required> UEFI: American Megatrends v: 5603
date: 07/28/2020
Battery:
Message: No system battery data found. Is one present?
Memory:
RAM: total: 15.62 GiB used: 1.61 GiB (10.3%)
RAM Report:
permissions: Unable to run dmidecode. Root privileges required.
CPU:
Info: model: AMD Ryzen 7 1700 bits: 64 type: MT MCP arch: Zen
family: 0x17 (23) model-id: 1 stepping: 1 microcode: 0x8001138
Topology: cpus: 1x cores: 8 tpc: 2 threads: 16 smt: enabled cache:
L1: 768 KiB desc: d-8x32 KiB; i-8x64 KiB L2: 4 MiB desc: 8x512 KiB
L3: 16 MiB desc: 2x8 MiB
Speed (MHz): avg: 1618 high: 3198 min/max: 1550/3000 boost: enabled
scaling: driver: acpi-cpufreq governor: schedutil cores: 1: 1375 2: 1352
3: 1353 4: 1343 5: 1416 6: 3198 7: 1272 8: 1275 9: 2035 10: 1363 11: 1356
12: 1373 13: 1425 14: 3194 15: 1283 16: 1278 bogomips: 95849
Flags: 3dnowprefetch abm adx aes aperfmperf apic arat avic avx avx2 bmi1
bmi2 bpext clflush clflushopt clzero cmov cmp_legacy constant_tsc cpb cpuid
cr8_legacy cx16 cx8 de decodeassists extapic extd_apicid f16c flushbyasid
fma fpu fsgsbase fxsr fxsr_opt ht hw_pstate ibpb irperf lahf_lm lbrv lm
mca mce misalignsse mmx mmxext monitor movbe msr mtrr mwaitx nonstop_tsc
nopl npt nrip_save nx osvw overflow_recov pae pat pausefilter pclmulqdq
pdpe1gb perfctr_core perfctr_llc perfctr_nb pfthreshold pge pni popcnt pse
pse36 rapl rdrand rdseed rdtscp rep_good sep sev sha_ni skinit smap smca
sme smep ssbd sse sse2 sse4_1 sse4_2 sse4a ssse3 succor svm svm_lock
syscall tce topoext tsc tsc_scale v_vmsave_vmload vgif vmcb_clean vme
vmmcall wdt xgetbv1 xsave xsavec xsaveerptr xsaveopt xsaves
Vulnerabilities:
Type: itlb_multihit status: Not affected
Type: l1tf status: Not affected
Type: mds status: Not affected
Type: meltdown status: Not affected
Type: spec_store_bypass
mitigation: Speculative Store Bypass disabled via prctl and seccomp
Type: spectre_v1
mitigation: usercopy/swapgs barriers and __user pointer sanitization
Type: spectre_v2 mitigation: Full AMD retpoline, IBPB: conditional, STIBP:
disabled, RSB filling
Type: srbds status: Not affected
Type: tsx_async_abort status: Not affected
Graphics:
Device-1: NVIDIA GP106 [GeForce GTX 1060 6GB] vendor: eVga.com.
driver: nvidia v: 510.47.03 alternate: nouveau,nvidia_drm bus-ID: 09:00.0
chip-ID: 10de:1c03 class-ID: 0300
Display: x11 server: X.Org 1.21.1.3 compositor: gnome-shell driver:
loaded: nvidia display-ID: :0 screens: 1
Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x286mm (20.0x11.3")
s-diag: 583mm (23")
Monitor-1: HDMI-0 res: 1920x1080 hz: 60 dpi: 92
size: 531x299mm (20.9x11.8") diag: 609mm (24")
OpenGL: renderer: NVIDIA GeForce GTX 1060 6GB/PCIe/SSE2
v: 4.6.0 NVIDIA 510.47.03 direct render: Yes
Audio:
Device-1: NVIDIA GP106 High Definition Audio vendor: eVga.com.
driver: snd_hda_intel v: kernel bus-ID: 09:00.1 chip-ID: 10de:10f1
class-ID: 0403
Device-2: AMD Family 17h HD Audio vendor: ASUSTeK driver: snd_hda_intel
v: kernel bus-ID: 0b:00.3 chip-ID: 1022:1457 class-ID: 0403
Device-3: Razer USA RC30-026902 Gaming Headset [Nari Essential Wireless
Receiver]
type: USB driver: hid-generic,snd-usb-audio,usbhid bus-ID: 5-2:2
chip-ID: 1532:051e class-ID: 0300
Sound Server-1: ALSA v: k5.15.21-1-MANJARO running: yes
Sound Server-2: JACK v: 1.9.20 running: no
Sound Server-3: PulseAudio v: 15.0 running: yes
Sound Server-4: PipeWire v: 0.3.45 running: no
Network:
Device-1: Intel I211 Gigabit Network vendor: ASUSTeK driver: igb v: kernel
port: e000 bus-ID: 07:00.0 chip-ID: 8086:1539 class-ID: 0200
IF: enp7s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
IP v4: <filter> type: dynamic noprefixroute scope: global
broadcast: <filter>
IP v6: <filter> type: dynamic noprefixroute scope: global
IP v6: <filter> type: dynamic noprefixroute scope: global
IP v6: <filter> type: noprefixroute scope: link
WAN IP: <filter>
Bluetooth:
Message: No bluetooth data found.
Logical:
Message: No logical block device data found.
RAID:
Message: No RAID data found.
Drives:
Local Storage: total: 931.51 GiB used: 9.38 GiB (1.0%)
SMART Message: Required tool smartctl not installed. Check --recommends
ID-1: /dev/sda maj-min: 8:0 vendor: Toshiba model: HDWD110
size: 931.51 GiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
type: HDD rpm: 7200 serial: <filter> rev: A8J0 scheme: GPT
Optical-1: /dev/sr0 vendor: ATAPI model: DVD A DH16A1L rev: KH1A
dev-links: cdrom
Features: speed: 40 multisession: yes audio: yes dvd: yes
rw: cd-r,cd-rw,dvd-r,dvd-ram state: running
Partition:
ID-1: / raw-size: 452.83 GiB size: 444.65 GiB (98.19%) used: 9.33 GiB (2.1%)
fs: ext4 dev: /dev/sda7 maj-min: 8:7 label: N/A
uuid: 5f260149-3345-4169-a59a-bba599714723
ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
used: 288 KiB (0.1%) fs: vfat dev: /dev/sda5 maj-min: 8:5 label: N/A
uuid: F309-4652
ID-3: /home raw-size: 19.53 GiB size: 19.06 GiB (97.57%)
used: 45.4 MiB (0.2%) fs: ext4 dev: /dev/sda8 maj-min: 8:8 label: N/A
uuid: 8650d73e-bff6-478e-b4f1-958a274a6f5a
Swap:
Kernel: swappiness: 60 (default) cache-pressure: 100 (default)
ID-1: swap-1 type: partition size: 15.62 GiB used: 0 KiB (0.0%)
priority: -2 dev: /dev/sda6 maj-min: 8:6 label: N/A
uuid: 751bbc2e-6c3a-4a26-a133-6924ec32e1dd
Unmounted:
ID-1: /dev/sda1 maj-min: 8:1 size: 529 MiB fs: ntfs label: Recovery
uuid: 2ED6D842D6D80BC9
ID-2: /dev/sda2 maj-min: 8:2 size: 100 MiB fs: vfat label: N/A
uuid: D228-650B
ID-3: /dev/sda3 maj-min: 8:3 size: 16 MiB fs: <superuser required>
label: N/A uuid: N/A
ID-4: /dev/sda4 maj-min: 8:4 size: 442.6 GiB fs: ntfs label: N/A
uuid: 9C50DEF850DED85A
USB:
Hub-1: 1-0:1 info: Hi-speed hub with single TT ports: 14 rev: 2.0
speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
Hub-2: 2-0:1 info: Super-speed hub ports: 8 rev: 3.1 speed: 10 Gb/s
chip-ID: 1d6b:0003 class-ID: 0900
Hub-3: 3-0:1 info: Hi-speed hub with single TT ports: 2 rev: 2.0
speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
Hub-4: 4-0:1 info: Super-speed hub ports: 2 rev: 3.1 speed: 10 Gb/s
chip-ID: 1d6b:0003 class-ID: 0900
Hub-5: 5-0:1 info: Hi-speed hub with single TT ports: 4 rev: 2.0
speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
Device-1: 5-2:2
info: Razer USA RC30-026902 Gaming Headset [Nari Essential Wireless Receiver]
type: Audio,HID driver: hid-generic,snd-usb-audio,usbhid interfaces: 4
rev: 1.1 speed: 12 Mb/s power: 100mA chip-ID: 1532:051e class-ID: 0300
Device-2: 5-3:3 info: Dell RT7D50 Keyboard type: Keyboard
driver: hid-generic,usbhid interfaces: 1 rev: 1.1 speed: 1.5 Mb/s
power: 100mA chip-ID: 413c:2005 class-ID: 0301
Device-3: 5-4:4 info: Logitech M105 Optical Mouse type: Mouse
driver: hid-generic,usbhid interfaces: 1 rev: 2.0 speed: 1.5 Mb/s
power: 100mA chip-ID: 046d:c077 class-ID: 0301
Hub-6: 6-0:1 info: Super-speed hub ports: 4 rev: 3.0 speed: 5 Gb/s
chip-ID: 1d6b:0003 class-ID: 0900
Sensors:
System Temperatures: cpu: N/A mobo: N/A gpu: nvidia temp: 42 C
Fan Speeds (RPM): N/A gpu: nvidia fan: 0%
Info:
Processes: 321 Uptime: 5m wakeups: 0 Init: systemd v: 250 tool: systemctl
Compilers: gcc: N/A Packages: pacman: 1122 lib: 299 flatpak: 0 Shell: Bash
v: 5.1.16 running-in: gnome-terminal inxi: 3.3.12
--- sinks-boot 2022-02-21 19:47:20.805094789 -0600
+++ sinks-sleep 2022-02-21 19:48:30.473332797 -0600
@@ -1,55 +1,3 @@
-Sink #0
- State: SUSPENDED
- Name: alsa_output.pci-0000_09_00.1.hdmi-stereo-extra1
- Description: GP106 High Definition Audio Controller Digital Stereo (HDMI 2)
- Driver: module-alsa-card.c
- Sample Specification: s16le 2ch 44100Hz
- Channel Map: front-left,front-right
- Owner Module: 6
- Mute: no
- Volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB
- balance 0.00
- Base Volume: 65536 / 100% / 0.00 dB
- Monitor Source: alsa_output.pci-0000_09_00.1.hdmi-stereo-extra1.monitor
- Latency: 0 usec, configured 0 usec
- Flags: HARDWARE DECIBEL_VOLUME LATENCY SET_FORMATS
- Properties:
- alsa.resolution_bits = "16"
- device.api = "alsa"
- device.class = "sound"
- alsa.class = "generic"
- alsa.subclass = "generic-mix"
- alsa.name = "HDMI 1"
- alsa.id = "HDMI 1"
- alsa.subdevice = "0"
- alsa.subdevice_name = "subdevice #0"
- alsa.device = "7"
- alsa.card = "0"
- alsa.card_name = "HDA NVidia"
- alsa.long_card_name = "HDA NVidia at 0xf6080000 irq 57"
- alsa.driver_name = "snd_hda_intel"
- device.bus_path = "pci-0000:09:00.1"
- sysfs.path = "/devices/pci0000:00/0000:00:03.1/0000:09:00.1/sound/card0"
- device.bus = "pci"
- device.vendor.id = "10de"
- device.vendor.name = "NVIDIA Corporation"
- device.product.id = "10f1"
- device.product.name = "GP106 High Definition Audio Controller"
- device.string = "hdmi:0,1"
- device.buffering.buffer_size = "352768"
- device.buffering.fragment_size = "176384"
- device.access_mode = "mmap+timer"
- device.profile.name = "hdmi-stereo-extra1"
- device.profile.description = "Digital Stereo (HDMI 2)"
- device.description = "GP106 High Definition Audio Controller Digital Stereo (HDMI 2)"
- module-udev-detect.discovered = "1"
- device.icon_name = "audio-card-pci"
- Ports:
- hdmi-output-1: HDMI / DisplayPort 2 (type: HDMI, priority: 5800, available)
- Active Port: hdmi-output-1
- Formats:
- pcm
-
Sink #1
State: SUSPENDED
Name: alsa_output.usb-Razer_Razer_Nari_Essential-00.analog-stereo
@@ -157,3 +105,55 @@
Active Port: iec958-stereo-output
Formats:
pcm
+
+Sink #7
+ State: SUSPENDED
+ Name: alsa_output.pci-0000_09_00.1.hdmi-stereo
+ Description: GP106 High Definition Audio Controller Digital Stereo (HDMI)
+ Driver: module-alsa-card.c
+ Sample Specification: s16le 2ch 44100Hz
+ Channel Map: front-left,front-right
+ Owner Module: 6
+ Mute: no
+ Volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB
+ balance 0.00
+ Base Volume: 65536 / 100% / 0.00 dB
+ Monitor Source: alsa_output.pci-0000_09_00.1.hdmi-stereo.monitor
+ Latency: 0 usec, configured 0 usec
+ Flags: HARDWARE DECIBEL_VOLUME LATENCY SET_FORMATS
+ Properties:
+ alsa.resolution_bits = "16"
+ device.api = "alsa"
+ device.class = "sound"
+ alsa.class = "generic"
+ alsa.subclass = "generic-mix"
+ alsa.name = "HDMI 0"
+ alsa.id = "HDMI 0"
+ alsa.subdevice = "0"
+ alsa.subdevice_name = "subdevice #0"
+ alsa.device = "3"
+ alsa.card = "0"
+ alsa.card_name = "HDA NVidia"
+ alsa.long_card_name = "HDA NVidia at 0xf6080000 irq 57"
+ alsa.driver_name = "snd_hda_intel"
+ device.bus_path = "pci-0000:09:00.1"
+ sysfs.path = "/devices/pci0000:00/0000:00:03.1/0000:09:00.1/sound/card0"
+ device.bus = "pci"
+ device.vendor.id = "10de"
+ device.vendor.name = "NVIDIA Corporation"
+ device.product.id = "10f1"
+ device.product.name = "GP106 High Definition Audio Controller"
+ device.string = "hdmi:0"
+ device.buffering.buffer_size = "352768"
+ device.buffering.fragment_size = "176384"
+ device.access_mode = "mmap+timer"
+ device.profile.name = "hdmi-stereo"
+ device.profile.description = "Digital Stereo (HDMI)"
+ device.description = "GP106 High Definition Audio Controller Digital Stereo (HDMI)"
+ module-udev-detect.discovered = "1"
+ device.icon_name = "audio-card-pci"
+ Ports:
+ hdmi-output-0: HDMI / DisplayPort (type: HDMI, priority: 5900, available)
+ Active Port: hdmi-output-0
+ Formats:
+ pcm