Audio output changes after sleep

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

Check PulseAudio cards to see the devices connected to GPU

pactl list cards

If the device for audio playback remains connected to hdmi-output-1 after suspend, I suggest:

  • Use alsamixer to mute all HDMI outputs except for the one you want to use

    alsamixer --card=0
    
  • Save ALSA settings

    sudo alsactl store
    
  • Delete PulseAudio user settings that might be causing Port switch problem

    rm ~/.config/pulse/*.tdb  ~/.config/pulse/cookie
    
  • reboot system for PulseAudio to create new user files

1 Like

it doesn’t, the sink and the port both are renamed.
alsa_output.pci-0000_09_00.1.hdmi-stereo-extra1 hdmi-output-1
becomes
alsa_output.pci-0000_09_00.1.hdmi-stereo hdmi-output-0
making the former unavailable, and before the suspend this one was unavailable. and this action causes the ouput to switch to the next available card, avoids this card entirely after waking up until manually switched back.

shows the correct card, but only S/PDIF - S/PDIF6 with 00 in green box, no bars or anything. This is true both before and after a suspend.

HDMI outputs usually only have a switch for unmuted/on [OO] or muted/off [MM] and do not have level controls like analog outputs

Use M to toggle mute state so that all outputs are muted except for the one working output
Then check if most HDMI outputs are detected as not available in PulseAudio

1 Like

even before muting them, all are unavailable except the one in use, none the less muting them, using alsactl and deleting those files, then rebooting had no effect, when it wakes up from the suspend all channels become unmuted and the name of the sink/port is changed.

when it wakes up from the suspend all channels become unmuted

If you run sudo alsactl restore does that restore mute states from saved settings?

Please post responses for both working and non-working states to show more information about PulseAudio and ALSA configuration:

pacmd list-cards
sudo alsa-info.sh --upload

Since both output connections appear to be Displayport, what happens if you plug monitor in to
hdmi-output-0: HDMI / DisplayPort?

Does that device change to hdmi-output-1: HDMI / DisplayPort 2 after suspend ?

Can you use HDMI or DVI connection instead of Displayport?

1 Like

On a fresh reboot, yes, but it won’t change the sink and port back after a suspended state.

i don’t use DisplayPort or DVI, i don’t have the cables for that, and neither as far as im aware have audio capabilities, to be clear im only using HDMI and i haven’t altered any of the physical ports its plugged in to (from the computer or the monitor for that matter). often times im connecting ssh from work to troubleshoot.

the links to the alsa-info are “fresh booted state” and “following a suspended state”

fresh booted state:

3 card(s) available.
    index: 0
	name: <alsa_card.pci-0000_09_00.1>
	driver: <module-alsa-card.c>
	owner module: 6
	properties:
		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 = "0"
		device.description = "GP106 High Definition Audio Controller"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	profiles:
		output:hdmi-stereo: Digital Stereo (HDMI) Output (priority 5900, available: no)
		output:hdmi-surround: Digital Surround 5.1 (HDMI) Output (priority 800, available: no)
		output:hdmi-surround71: Digital Surround 7.1 (HDMI) Output (priority 800, available: no)
		output:hdmi-stereo-extra1: Digital Stereo (HDMI 2) Output (priority 38468, available: unknown)
		output:hdmi-stereo-extra2: Digital Stereo (HDMI 3) Output (priority 5700, available: no)
		output:hdmi-surround-extra2: Digital Surround 5.1 (HDMI 3) Output (priority 600, available: no)
		output:hdmi-surround71-extra2: Digital Surround 7.1 (HDMI 3) Output (priority 600, available: no)
		output:hdmi-stereo-extra3: Digital Stereo (HDMI 4) Output (priority 5700, available: no)
		output:hdmi-surround-extra3: Digital Surround 5.1 (HDMI 4) Output (priority 600, available: no)
		output:hdmi-surround71-extra3: Digital Surround 7.1 (HDMI 4) Output (priority 600, available: no)
		output:hdmi-stereo-extra4: Digital Stereo (HDMI 5) Output (priority 5700, available: no)
		output:hdmi-surround-extra4: Digital Surround 5.1 (HDMI 5) Output (priority 600, available: no)
		output:hdmi-surround71-extra4: Digital Surround 7.1 (HDMI 5) Output (priority 600, available: no)
		output:hdmi-stereo-extra5: Digital Stereo (HDMI 6) Output (priority 5700, available: no)
		output:hdmi-surround-extra5: Digital Surround 5.1 (HDMI 6) Output (priority 600, available: no)
		output:hdmi-surround71-extra5: Digital Surround 7.1 (HDMI 6) Output (priority 600, available: no)
		output:hdmi-stereo-extra6: Digital Stereo (HDMI 7) Output (priority 5700, available: no)
		output:hdmi-surround-extra6: Digital Surround 5.1 (HDMI 7) Output (priority 600, available: no)
		output:hdmi-surround71-extra6: Digital Surround 7.1 (HDMI 7) Output (priority 600, available: no)
		off: Off (priority 0, available: unknown)
	active profile: <output:hdmi-stereo-extra1>
	sinks:
		alsa_output.pci-0000_09_00.1.hdmi-stereo-extra1/#0: GP106 High Definition Audio Controller Digital Stereo (HDMI 2)
	sources:
		alsa_output.pci-0000_09_00.1.hdmi-stereo-extra1.monitor/#0: Monitor of GP106 High Definition Audio Controller Digital Stereo (HDMI 2)
	ports:
		hdmi-output-0: HDMI / DisplayPort (priority 5900, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
		hdmi-output-1: HDMI / DisplayPort 2 (priority 5800, latency offset 0 usec, available: yes)
			properties:
				device.icon_name = "video-display"
				device.product.name = "VG245
       "
		hdmi-output-2: HDMI / DisplayPort 3 (priority 5700, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
		hdmi-output-3: HDMI / DisplayPort 4 (priority 5600, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
		hdmi-output-4: HDMI / DisplayPort 5 (priority 5500, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
		hdmi-output-5: HDMI / DisplayPort 6 (priority 5400, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
		hdmi-output-6: HDMI / DisplayPort 7 (priority 5300, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
    index: 1
	name: <alsa_card.usb-Razer_Razer_Nari_Essential-00>
	driver: <module-alsa-card.c>
	owner module: 7
	properties:
		alsa.card = "2"
		alsa.card_name = "Razer Nari Essential"
		alsa.long_card_name = "Razer Razer Nari Essential at usb-0000:0a:00.3-2, full speed"
		alsa.driver_name = "snd_usb_audio"
		device.bus_path = "pci-0000:0a:00.3-usb-0:2:1.0"
		sysfs.path = "/devices/pci0000:00/0000:00:07.1/0000:0a:00.3/usb5/5-2/5-2:1.0/sound/card2"
		udev.id = "usb-Razer_Razer_Nari_Essential-00"
		device.bus = "usb"
		device.vendor.id = "1532"
		device.vendor.name = "Razer USA, Ltd"
		device.product.id = "051e"
		device.product.name = "RC30-026902, Gaming Headset [Nari Essential, Wireless, Receiver]"
		device.serial = "Razer_Razer_Nari_Essential"
		device.form_factor = "headset"
		device.string = "2"
		device.description = "RC30-026902, Gaming Headset [Nari Essential, Wireless, Receiver]"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-headset-usb"
		device.intended_roles = "phone"
	profiles:
		input:mono-fallback: Mono Input (priority 1, available: unknown)
		output:analog-stereo: Analog Stereo Output (priority 6500, available: unknown)
		output:analog-stereo+input:mono-fallback: Analog Stereo Output + Mono Input (priority 6501, available: unknown)
		output:iec958-stereo: Digital Stereo (IEC958) Output (priority 5500, available: unknown)
		output:iec958-stereo+input:mono-fallback: Digital Stereo (IEC958) Output + Mono Input (priority 5501, available: unknown)
		output:iec958-ac3-surround-51: Digital Surround 5.1 (IEC958/AC3) Output (priority 300, available: unknown)
		output:iec958-ac3-surround-51+input:mono-fallback: Digital Surround 5.1 (IEC958/AC3) Output + Mono Input (priority 301, available: unknown)
		off: Off (priority 0, available: unknown)
	active profile: <output:analog-stereo+input:mono-fallback>
	sinks:
		alsa_output.usb-Razer_Razer_Nari_Essential-00.analog-stereo/#1: RC30-026902, Gaming Headset [Nari Essential, Wireless, Receiver] Analog Stereo
	sources:
		alsa_output.usb-Razer_Razer_Nari_Essential-00.analog-stereo.monitor/#1: Monitor of RC30-026902, Gaming Headset [Nari Essential, Wireless, Receiver] Analog Stereo
		alsa_input.usb-Razer_Razer_Nari_Essential-00.mono-fallback/#2: RC30-026902, Gaming Headset [Nari Essential, Wireless, Receiver] Mono
	ports:
		analog-input-mic: Microphone (priority 8700, latency offset 0 usec, available: unknown)
			properties:
				device.icon_name = "audio-input-microphone"
		analog-output: Analog Output (priority 9900, latency offset 0 usec, available: unknown)
			properties:
				
		iec958-stereo-output: Digital Output (S/PDIF) (priority 0, latency offset 0 usec, available: unknown)
			properties:
				
    index: 2
	name: <alsa_card.pci-0000_0b_00.3>
	driver: <module-alsa-card.c>
	owner module: 8
	properties:
		alsa.card = "1"
		alsa.card_name = "HD-Audio Generic"
		alsa.long_card_name = "HD-Audio Generic at 0xf6800000 irq 59"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:0b:00.3"
		sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:0b:00.3/sound/card1"
		device.bus = "pci"
		device.vendor.id = "1022"
		device.vendor.name = "Advanced Micro Devices, Inc. [AMD]"
		device.product.id = "1457"
		device.product.name = "Family 17h (Models 00h-0fh) HD Audio Controller"
		device.string = "1"
		device.description = "Family 17h (Models 00h-0fh) HD Audio Controller"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	profiles:
		input:analog-stereo: Analog Stereo Input (priority 65, available: no)
		output:analog-stereo: Analog Stereo Output (priority 6500, available: no)
		output:analog-stereo+input:analog-stereo: Analog Stereo Duplex (priority 6565, available: no)
		output:analog-surround-21: Analog Surround 2.1 Output (priority 1300, available: no)
		output:analog-surround-21+input:analog-stereo: Analog Surround 2.1 Output + Analog Stereo Input (priority 1365, available: no)
		output:analog-surround-40: Analog Surround 4.0 Output (priority 1200, available: no)
		output:analog-surround-40+input:analog-stereo: Analog Surround 4.0 Output + Analog Stereo Input (priority 1265, available: no)
		output:analog-surround-41: Analog Surround 4.1 Output (priority 1300, available: no)
		output:analog-surround-41+input:analog-stereo: Analog Surround 4.1 Output + Analog Stereo Input (priority 1365, available: no)
		output:analog-surround-50: Analog Surround 5.0 Output (priority 1200, available: no)
		output:analog-surround-50+input:analog-stereo: Analog Surround 5.0 Output + Analog Stereo Input (priority 1265, available: no)
		output:analog-surround-51: Analog Surround 5.1 Output (priority 1300, available: no)
		output:analog-surround-51+input:analog-stereo: Analog Surround 5.1 Output + Analog Stereo Input (priority 1365, available: no)
		output:iec958-stereo: Digital Stereo (IEC958) Output (priority 38268, available: unknown)
		output:iec958-stereo+input:analog-stereo: Digital Stereo (IEC958) Output + Analog Stereo Input (priority 5565, available: unknown)
		output:iec958-ac3-surround-51: Digital Surround 5.1 (IEC958/AC3) Output (priority 300, available: unknown)
		output:iec958-ac3-surround-51+input:analog-stereo: Digital Surround 5.1 (IEC958/AC3) Output + Analog Stereo Input (priority 365, available: no)
		off: Off (priority 0, available: unknown)
	active profile: <output:iec958-stereo>
	sinks:
		alsa_output.pci-0000_0b_00.3.iec958-stereo/#2: Family 17h (Models 00h-0fh) HD Audio Controller Digital Stereo (IEC958)
	sources:
		alsa_output.pci-0000_0b_00.3.iec958-stereo.monitor/#3: Monitor of Family 17h (Models 00h-0fh) HD Audio Controller Digital Stereo (IEC958)
	ports:
		analog-input-front-mic: Front Microphone (priority 8500, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "audio-input-microphone"
		analog-input-rear-mic: Rear Microphone (priority 8200, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "audio-input-microphone"
		analog-input-linein: Line In (priority 8100, latency offset 0 usec, available: no)
			properties:
				
		analog-output-lineout: Line Out (priority 9000, latency offset 0 usec, available: no)
			properties:
				
		analog-output-headphones: Headphones (priority 9900, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "audio-headphones"
		iec958-stereo-output: Digital Output (S/PDIF) (priority 0, latency offset 0 usec, available: unknown)
			properties:

following a suspended state:

3 card(s) available.
    index: 0
	name: <alsa_card.pci-0000_09_00.1>
	driver: <module-alsa-card.c>
	owner module: 6
	properties:
		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 = "0"
		device.description = "GP106 High Definition Audio Controller"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	profiles:
		output:hdmi-stereo: Digital Stereo (HDMI) Output (priority 38668, available: unknown)
		output:hdmi-surround: Digital Surround 5.1 (HDMI) Output (priority 33568, available: unknown)
		output:hdmi-surround71: Digital Surround 7.1 (HDMI) Output (priority 33568, available: unknown)
		output:hdmi-stereo-extra1: Digital Stereo (HDMI 2) Output (priority 5700, available: no)
		output:hdmi-stereo-extra2: Digital Stereo (HDMI 3) Output (priority 5700, available: no)
		output:hdmi-surround-extra2: Digital Surround 5.1 (HDMI 3) Output (priority 600, available: no)
		output:hdmi-surround71-extra2: Digital Surround 7.1 (HDMI 3) Output (priority 600, available: no)
		output:hdmi-stereo-extra3: Digital Stereo (HDMI 4) Output (priority 5700, available: no)
		output:hdmi-surround-extra3: Digital Surround 5.1 (HDMI 4) Output (priority 600, available: no)
		output:hdmi-surround71-extra3: Digital Surround 7.1 (HDMI 4) Output (priority 600, available: no)
		output:hdmi-stereo-extra4: Digital Stereo (HDMI 5) Output (priority 5700, available: no)
		output:hdmi-surround-extra4: Digital Surround 5.1 (HDMI 5) Output (priority 600, available: no)
		output:hdmi-surround71-extra4: Digital Surround 7.1 (HDMI 5) Output (priority 600, available: no)
		output:hdmi-stereo-extra5: Digital Stereo (HDMI 6) Output (priority 5700, available: no)
		output:hdmi-surround-extra5: Digital Surround 5.1 (HDMI 6) Output (priority 600, available: no)
		output:hdmi-surround71-extra5: Digital Surround 7.1 (HDMI 6) Output (priority 600, available: no)
		output:hdmi-stereo-extra6: Digital Stereo (HDMI 7) Output (priority 5700, available: no)
		output:hdmi-surround-extra6: Digital Surround 5.1 (HDMI 7) Output (priority 600, available: no)
		output:hdmi-surround71-extra6: Digital Surround 7.1 (HDMI 7) Output (priority 600, available: no)
		off: Off (priority 0, available: unknown)
	active profile: <output:hdmi-stereo>
	sinks:
		alsa_output.pci-0000_09_00.1.hdmi-stereo/#6: GP106 High Definition Audio Controller Digital Stereo (HDMI)
	sources:
		alsa_output.pci-0000_09_00.1.hdmi-stereo.monitor/#7: Monitor of GP106 High Definition Audio Controller Digital Stereo (HDMI)
	ports:
		hdmi-output-0: HDMI / DisplayPort (priority 5900, latency offset 0 usec, available: yes)
			properties:
				device.icon_name = "video-display"
				device.product.name = "VG245
       "
		hdmi-output-1: HDMI / DisplayPort 2 (priority 5800, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
		hdmi-output-2: HDMI / DisplayPort 3 (priority 5700, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
		hdmi-output-3: HDMI / DisplayPort 4 (priority 5600, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
		hdmi-output-4: HDMI / DisplayPort 5 (priority 5500, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
		hdmi-output-5: HDMI / DisplayPort 6 (priority 5400, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
		hdmi-output-6: HDMI / DisplayPort 7 (priority 5300, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
    index: 1
	name: <alsa_card.usb-Razer_Razer_Nari_Essential-00>
	driver: <module-alsa-card.c>
	owner module: 7
	properties:
		alsa.card = "2"
		alsa.card_name = "Razer Nari Essential"
		alsa.long_card_name = "Razer Razer Nari Essential at usb-0000:0a:00.3-2, full speed"
		alsa.driver_name = "snd_usb_audio"
		device.bus_path = "pci-0000:0a:00.3-usb-0:2:1.0"
		sysfs.path = "/devices/pci0000:00/0000:00:07.1/0000:0a:00.3/usb5/5-2/5-2:1.0/sound/card2"
		udev.id = "usb-Razer_Razer_Nari_Essential-00"
		device.bus = "usb"
		device.vendor.id = "1532"
		device.vendor.name = "Razer USA, Ltd"
		device.product.id = "051e"
		device.product.name = "RC30-026902, Gaming Headset [Nari Essential, Wireless, Receiver]"
		device.serial = "Razer_Razer_Nari_Essential"
		device.form_factor = "headset"
		device.string = "2"
		device.description = "RC30-026902, Gaming Headset [Nari Essential, Wireless, Receiver]"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-headset-usb"
		device.intended_roles = "phone"
	profiles:
		input:mono-fallback: Mono Input (priority 1, available: unknown)
		output:analog-stereo: Analog Stereo Output (priority 6500, available: unknown)
		output:analog-stereo+input:mono-fallback: Analog Stereo Output + Mono Input (priority 6501, available: unknown)
		output:iec958-stereo: Digital Stereo (IEC958) Output (priority 5500, available: unknown)
		output:iec958-stereo+input:mono-fallback: Digital Stereo (IEC958) Output + Mono Input (priority 5501, available: unknown)
		output:iec958-ac3-surround-51: Digital Surround 5.1 (IEC958/AC3) Output (priority 300, available: unknown)
		output:iec958-ac3-surround-51+input:mono-fallback: Digital Surround 5.1 (IEC958/AC3) Output + Mono Input (priority 301, available: unknown)
		off: Off (priority 0, available: unknown)
	active profile: <output:analog-stereo+input:mono-fallback>
	sinks:
		alsa_output.usb-Razer_Razer_Nari_Essential-00.analog-stereo/#1: RC30-026902, Gaming Headset [Nari Essential, Wireless, Receiver] Analog Stereo
	sources:
		alsa_output.usb-Razer_Razer_Nari_Essential-00.analog-stereo.monitor/#1: Monitor of RC30-026902, Gaming Headset [Nari Essential, Wireless, Receiver] Analog Stereo
		alsa_input.usb-Razer_Razer_Nari_Essential-00.mono-fallback/#2: RC30-026902, Gaming Headset [Nari Essential, Wireless, Receiver] Mono
	ports:
		analog-input-mic: Microphone (priority 8700, latency offset 0 usec, available: unknown)
			properties:
				device.icon_name = "audio-input-microphone"
		analog-output: Analog Output (priority 9900, latency offset 0 usec, available: unknown)
			properties:
				
		iec958-stereo-output: Digital Output (S/PDIF) (priority 0, latency offset 0 usec, available: unknown)
			properties:
				
    index: 2
	name: <alsa_card.pci-0000_0b_00.3>
	driver: <module-alsa-card.c>
	owner module: 8
	properties:
		alsa.card = "1"
		alsa.card_name = "HD-Audio Generic"
		alsa.long_card_name = "HD-Audio Generic at 0xf6800000 irq 59"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:0b:00.3"
		sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:0b:00.3/sound/card1"
		device.bus = "pci"
		device.vendor.id = "1022"
		device.vendor.name = "Advanced Micro Devices, Inc. [AMD]"
		device.product.id = "1457"
		device.product.name = "Family 17h (Models 00h-0fh) HD Audio Controller"
		device.string = "1"
		device.description = "Family 17h (Models 00h-0fh) HD Audio Controller"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	profiles:
		input:analog-stereo: Analog Stereo Input (priority 65, available: no)
		output:analog-stereo: Analog Stereo Output (priority 6500, available: no)
		output:analog-stereo+input:analog-stereo: Analog Stereo Duplex (priority 6565, available: no)
		output:analog-surround-21: Analog Surround 2.1 Output (priority 1300, available: no)
		output:analog-surround-21+input:analog-stereo: Analog Surround 2.1 Output + Analog Stereo Input (priority 1365, available: no)
		output:analog-surround-40: Analog Surround 4.0 Output (priority 1200, available: no)
		output:analog-surround-40+input:analog-stereo: Analog Surround 4.0 Output + Analog Stereo Input (priority 1265, available: no)
		output:analog-surround-41: Analog Surround 4.1 Output (priority 1300, available: no)
		output:analog-surround-41+input:analog-stereo: Analog Surround 4.1 Output + Analog Stereo Input (priority 1365, available: no)
		output:analog-surround-50: Analog Surround 5.0 Output (priority 1200, available: no)
		output:analog-surround-50+input:analog-stereo: Analog Surround 5.0 Output + Analog Stereo Input (priority 1265, available: no)
		output:analog-surround-51: Analog Surround 5.1 Output (priority 1300, available: no)
		output:analog-surround-51+input:analog-stereo: Analog Surround 5.1 Output + Analog Stereo Input (priority 1365, available: no)
		output:iec958-stereo: Digital Stereo (IEC958) Output (priority 38268, available: unknown)
		output:iec958-stereo+input:analog-stereo: Digital Stereo (IEC958) Output + Analog Stereo Input (priority 5565, available: unknown)
		output:iec958-ac3-surround-51: Digital Surround 5.1 (IEC958/AC3) Output (priority 300, available: unknown)
		output:iec958-ac3-surround-51+input:analog-stereo: Digital Surround 5.1 (IEC958/AC3) Output + Analog Stereo Input (priority 365, available: no)
		off: Off (priority 0, available: unknown)
	active profile: <output:iec958-stereo>
	sinks:
		alsa_output.pci-0000_0b_00.3.iec958-stereo/#2: Family 17h (Models 00h-0fh) HD Audio Controller Digital Stereo (IEC958)
	sources:
		alsa_output.pci-0000_0b_00.3.iec958-stereo.monitor/#3: Monitor of Family 17h (Models 00h-0fh) HD Audio Controller Digital Stereo (IEC958)
	ports:
		analog-input-front-mic: Front Microphone (priority 8500, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "audio-input-microphone"
		analog-input-rear-mic: Rear Microphone (priority 8200, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "audio-input-microphone"
		analog-input-linein: Line In (priority 8100, latency offset 0 usec, available: no)
			properties:
				
		analog-output-lineout: Line Out (priority 9000, latency offset 0 usec, available: no)
			properties:
				
		analog-output-headphones: Headphones (priority 9900, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "audio-headphones"
		iec958-stereo-output: Digital Output (S/PDIF) (priority 0, latency offset 0 usec, available: unknown)
			properties:

also I’m not sure if its important, but prior to setting the mutes, the profiles that say
available: unknown
would normally say
available: yes

Data posted is not consistent with comments

PulseAudio data for both states shows most of the GPU output-hdmi profiles are showing available: no except for the connected profile hdmi-stereo or hdmi-stereo-extra1

ALSA data for both states shows all the nVidia GPU HDMI outputs are [on] unmuted

!!-------Mixer controls for card NVidia
Card sysdefault:0 'NVidia'/'HDA NVidia at 0xf6080000 irq 57'
  Mixer name	: 'Nvidia GPU 84 HDMI/DP'
  Components	: 'HDA:10de0084,38426366,00100100'
  Controls      : 49
  Simple ctrls  : 7
Simple mixer control 'IEC958',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'IEC958',1
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'IEC958',2
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'IEC958',3
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'IEC958',4
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'IEC958',5
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'IEC958',6
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]

Copy these commands one at a time to terminal to mute unused ALSA outputs

amixer -c0 sset 'IEC958',0 mute
amixer -c0 sset 'IEC958',2 mute
amixer -c0 sset 'IEC958',3 mute
amixer -c0 sset 'IEC958',4 mute
amixer -c0 sset 'IEC958',5 mute
amixer -c0 sset 'IEC958',6 mute

Responses should confirm each output is [off]

yes, i realised its not the suspend that sets them as un-mute but rather the reboot that unmutes everything until restored. will try this now.

I tried this in both states, and each said “unable to find simple control ‘IEC958’,#” of course the number sign represents the number associated with each one.

Ok i see what you’re talking about with the iec958, this might be part of the problem, because that is the HD-Audio Generic that is unused not part of the HDA NVidia. which explains why the amixer/mute commands were unable to find it, because its NOT -c0

As far as i can tell this is the hdmi power saver bug that goes back a long time. i’ve always disabled blank screen and automatic suspend and and never used those features until recently which is why im just noticing. also as far as i can tell, its never actually been fixed.

Solution:
personally the only option i had to make things work as i expect, was to buy speakers instead of using my monitors built-in.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.