Sound source changes after screensaver becomes active

Hello,

I have 3 devices connected to my pc for playing sounds. The first one is a headset and it’s the default output device, the second is a tv, the third are 5.1 speakers. Whenever i’m using the tv to watch something i select it as output audio device but after the screensaver get activated the output device always switches back to the headset. How can i stop it from switching automatically?

:+1: Welcome to Manjaro! :+1:

  1. Please read this:
    How to provide good information
    and post some more information so we can see what’s really going on. Now we know the symptom of the disease, but we need some more probing to know where the origin lies…
  2. An inxi --admin --verbosity=7 --filter --no-host --width would be the minimum required information… (Personally Identifiable Information like serial numbers and MAC addresses will be filtered out by the above command)
    Also, please copy-paste that output in-between 3 backticks ``` at the beginning and end of the code/text.
  3. the output to alsa-info before and after the switch would be helpful as well.

:+1:

Hello,

inxi output:

System:
  Kernel: 5.10.34-1-MANJARO x86_64 bits: 64 compiler: gcc v: 10.2.0 
  parameters: BOOT_IMAGE=/boot/vmlinuz-5.10-x86_64 
  root=UUID=66110cf4-67b3-44da-8a2a-f94cf60a85f9 rw quiet apparmor=1 
  security=apparmor udev.log_priority=3 
  Desktop: Xfce 4.16.0 tk: Gtk 3.24.24 info: xfce4-panel wm: xfwm4 vt: 7 
  dm: LightDM 1.30.0 Distro: Manjaro Linux base: Arch Linux 
Machine:
  Type: Desktop Mobo: ASUSTeK model: PRIME X470-PRO v: Rev X.0x 
  serial: <filter> UEFI: American Megatrends v: 5843 date: 03/11/2021 
Battery:
  Message: No system battery data found. Is one present? 
Memory:
  RAM: total: 15.6 GiB used: 3.59 GiB (23.0%) 
  RAM Report: permissions: Unable to run dmidecode. Root privileges required. 
CPU:
  Info: 8-Core model: AMD Ryzen 7 2700X bits: 64 type: MT MCP arch: Zen+ 
  family: 17 (23) model-id: 8 stepping: 2 microcode: 800820D cache: L2: 4 MiB 
  bogomips: 118391 
  Speed: 1901 MHz min/max: 2200/3700 MHz boost: enabled Core speeds (MHz): 
  1: 1901 2: 2100 3: 2190 4: 2059 5: 3805 6: 1984 7: 2068 8: 1848 9: 1904 
  10: 1893 11: 3569 12: 1844 13: 2002 14: 1722 15: 1900 16: 2190 
  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 
  rdrand rdseed rdtscp rep_good sep sev sev_es 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: ASUSTeK driver: nvidia 
  v: 460.73.01 alternate: nouveau,nvidia_drm bus-ID: 08:00.0 
  chip-ID: 10de:1c03 class-ID: 0300 
  Device-2: Oculus VR Rift CV1 Sensor type: USB driver: uvcvideo 
  bus-ID: 1-5.2:3 chip-ID: 2833:0211 class-ID: ef00 serial: <filter> 
  Display: x11 server: X.Org 1.20.11 driver: loaded: nvidia display-ID: :0.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: 70 size: 700x390mm (27.6x15.4") 
  diag: 801mm (31.5") 
  Monitor-2: DP-2 res: 1920x1080 hz: 60 dpi: 92 size: 531x298mm (20.9x11.7") 
  diag: 609mm (24") 
  OpenGL: renderer: GeForce GTX 1060 6GB/PCIe/SSE2 v: 4.6.0 NVIDIA 460.73.01 
  direct render: Yes 
Audio:
  Device-1: NVIDIA GP106 High Definition Audio vendor: ASUSTeK 
  driver: snd_hda_intel v: kernel bus-ID: 08: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: 0a:00.3 chip-ID: 1022:1457 class-ID: 0403 
  Device-3: Kingston HyperX 7.1 Audio type: USB 
  driver: hid-generic,snd-usb-audio,usbhid bus-ID: 5-1:2 chip-ID: 0951:16a4 
  class-ID: 0300 serial: <filter> 
  Sound Server-1: ALSA v: k5.10.34-1-MANJARO running: yes 
  Sound Server-2: JACK v: 0.125.0 running: no 
  Sound Server-3: PulseAudio v: 14.2 running: yes 
  Sound Server-4: PipeWire v: 0.3.26 running: no 
Network:
  Device-1: Intel I211 Gigabit Network vendor: ASUSTeK driver: igb v: kernel 
  port: e000 bus-ID: 06:00.0 chip-ID: 8086:1539 class-ID: 0200 
  IF: enp6s0 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: 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: 9.89 TiB used: 1.56 TiB (15.8%) 
  SMART Message: Required tool smartctl not installed. Check --recommends 
  ID-1: /dev/sda maj-min: 8:0 vendor: Western Digital model: WD2500AAKS-00F0A0 
  size: 232.89 GiB block-size: physical: 512 B logical: 512 B speed: 3.0 Gb/s 
  rotation: 7200 rpm serial: <filter> rev: 1B02 scheme: MBR 
  ID-2: /dev/sdb maj-min: 8:16 vendor: Seagate model: ST2000DM001-1CH164 
  size: 1.82 TiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s 
  rotation: 7200 rpm serial: <filter> rev: CC27 scheme: GPT 
  ID-3: /dev/sdc maj-min: 8:32 vendor: Western Digital model: WD80EDAZ-11TA3A0 
  size: 7.28 TiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s 
  rotation: 5400 rpm serial: <filter> rev: 0A81 scheme: GPT 
  ID-4: /dev/sdd maj-min: 8:48 vendor: Samsung model: SSD 860 EVO 500GB 
  size: 465.76 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s 
  rotation: SSD serial: <filter> rev: 3B6Q scheme: GPT 
  ID-5: /dev/sde maj-min: 8:64 vendor: Samsung model: SSD 840 EVO 120GB 
  size: 111.79 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s 
  rotation: SSD serial: <filter> rev: DB6Q scheme: MBR 
  Message: No optical or floppy data found. 
Partition:
  ID-1: / raw-size: 102.02 GiB size: 99.92 GiB (97.94%) 
  used: 23.55 GiB (23.6%) fs: ext4 dev: /dev/sde1 maj-min: 8:65 label: N/A 
  uuid: 66110cf4-67b3-44da-8a2a-f94cf60a85f9 
  ID-2: /boot/efi raw-size: 100 MiB size: 96 MiB (96.00%) 
  used: 25.1 MiB (26.2%) fs: vfat dev: /dev/sdd2 maj-min: 8:50 label: N/A 
  uuid: DAB9-73D2 
  ID-3: /home raw-size: 230.88 GiB size: 226.26 GiB (98.00%) 
  used: 182.45 GiB (80.6%) fs: ext4 dev: /dev/sda2 maj-min: 8:2 label: N/A 
  uuid: 8eb4fff3-11ac-4b1c-88e7-ce4a156cb980 
  ID-4: /mnt/bbbefa25-41c5-4f5d-80f9-f61d928b816e raw-size: 6.68 TiB 
  size: 6.63 TiB (99.20%) used: 1.36 TiB (20.5%) fs: ext4 dev: /dev/sdc1 
  maj-min: 8:33 label: N/A uuid: bbbefa25-41c5-4f5d-80f9-f61d928b816e 
Swap:
  Alert: No swap data was found. 
Unmounted:
  ID-1: /dev/sda1 maj-min: 8:1 size: 2 GiB fs: swap label: N/A 
  uuid: 5d3d3c30-3240-4556-b3cc-59ddbf02b3a0 
  ID-2: /dev/sdb1 maj-min: 8:17 size: 1.82 TiB fs: ntfs label: HDD 2 
  uuid: 8270881A708816D7 
  ID-3: /dev/sdc2 maj-min: 8:34 size: 611.06 GiB fs: ntfs label: N/A 
  uuid: 597C2350610CBFD9 
  ID-4: /dev/sdd1 maj-min: 8:49 size: 499 MiB fs: ntfs label: Recovery 
  uuid: DCC6B887C6B86384 
  ID-5: /dev/sdd3 maj-min: 8:51 size: 16 MiB fs: <superuser required> 
  label: N/A uuid: N/A 
  ID-6: /dev/sdd4 maj-min: 8:52 size: 465.16 GiB fs: ntfs label: N/A 
  uuid: 0096C6B396C6A88C 
USB:
  Hub-1: 1-0:1 info: Full speed (or root) Hub ports: 14 rev: 2.0 
  speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900 
  Hub-2: 1-5:2 info: Genesys Logic Hub ports: 4 rev: 2.0 speed: 480 Mb/s 
  power: 100mA chip-ID: 05e3:0608 class-ID: 0900 
  Device-1: 1-5.2:3 info: Oculus VR Rift CV1 Sensor type: Video 
  driver: uvcvideo interfaces: 2 rev: 2.1 speed: 480 Mb/s power: 200mA 
  chip-ID: 2833:0211 class-ID: ef00 serial: <filter> 
  Hub-3: 2-0:1 info: Full speed (or root) Hub ports: 8 rev: 3.1 speed: 10 Gb/s 
  chip-ID: 1d6b:0003 class-ID: 0900 
  Hub-4: 3-0:1 info: Full speed (or root) Hub ports: 2 rev: 2.0 
  speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900 
  Device-1: 3-1:2 info: Endor AG Clubsport Pedals type: HID 
  driver: hid-generic,usbhid interfaces: 1 rev: 2.0 speed: 12 Mb/s 
  power: 100mA chip-ID: 0eb7:1839 class-ID: 0300 
  Hub-5: 4-0:1 info: Full speed (or root) Hub ports: 2 rev: 3.1 speed: 10 Gb/s 
  chip-ID: 1d6b:0003 class-ID: 0900 
  Hub-6: 5-0:1 info: Full speed (or root) Hub ports: 4 rev: 2.0 
  speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900 
  Device-1: 5-1:2 info: Kingston HyperX 7.1 Audio type: Audio,HID 
  driver: hid-generic,snd-usb-audio,usbhid interfaces: 4 rev: 2.0 
  speed: 12 Mb/s power: 100mA chip-ID: 0951:16a4 class-ID: 0300 
  serial: <filter> 
  Device-2: 5-2:3 info: Microdia Redragon Mitra RGB Keyboard 
  type: Keyboard,Mouse driver: hid-generic,usbhid interfaces: 2 rev: 2.0 
  speed: 12 Mb/s power: 400mA chip-ID: 0c45:5004 class-ID: 0301 
  Device-3: 5-4:4 info: Logitech G502 Mouse type: Mouse,HID 
  driver: hid-generic,usbhid interfaces: 2 rev: 2.0 speed: 12 Mb/s 
  power: 300mA chip-ID: 046d:c07d class-ID: 0300 serial: <filter> 
  Hub-7: 6-0:1 info: Full speed (or root) Hub ports: 4 rev: 3.0 speed: 5 Gb/s 
  chip-ID: 1d6b:0003 class-ID: 0900 
Sensors:
  System Temperatures: cpu: 37.1 C mobo: 0 C gpu: nvidia temp: 38 C 
  Fan Speeds (RPM): N/A gpu: nvidia fan: 0% 
Info:
  Processes: 318 Uptime: 18h 45m wakeups: 0 Init: systemd v: 247 
  tool: systemctl Compilers: gcc: 10.2.0 Packages: 1415 pacman: 1410 lib: 445 
  flatpak: 0 snap: 5 Shell: Bash v: 5.1.4 running-in: xfce4-terminal 
  inxi: 3.3.04 

Also-info output: (2nd command was a double press of tab key)

[nick@manjaro ~]$ alsa-info
bash: alsa-info: command not found
[nick@manjaro ~]$ alsa
alsabat          alsa_delay       alsaloop         alsa_out
alsabat-test.sh  alsa_in          alsa_loopback    alsatplg
alsactl          alsa-info.sh     alsamixer        alsaucm
[nick@manjaro ~]$ alsa-info.sh 
ALSA Information Script v 0.4.65
--------------------------------

This script visits the following commands/files to collect diagnostic
information about your ALSA installation and sound related hardware.

  dmesg
  lspci
  aplay
  amixer
  alsactl
  rpm, dpkg
  /proc/asound/
  /sys/class/sound/
  ~/.asoundrc (etc.)

See '/usr/bin/alsa-info.sh --help' for command line options.

Newer version detected: 0.5.0
To view the ChangeLog, please visit http://www.alsa-project.org/alsa-info.sh.changelog
ALSA-Info script has been downloaded /tmp/alsa-info.uqvEag8aoI.
Please, re-run it from new location.
[nick@manjaro ~]$ cd /tmp/alsa-info.uqvEag8aoI
bash: cd: /tmp/alsa-info.uqvEag8aoI: Not a directory

I’m not sure if i did anything wrong with the alsa-info command. I don’t think it matters anyways as i dont plug anything in or out. After i wake up my screen from sleep/standby-mode all the same devices are still there but sound plays through the hyperx headset instead of hdmi. Hdmi is what i had selected via xfce panel sound icon before my screen went into sleepmode. I want the sound output to stop switching back to the hyperx-HS by itself whenever my screen goes into sleep.

You did not: it just detected that a new version exists and downloaded that and told you to execute the new one

so instead of:

just:

chmod a+x /tmp/alsa-info.uqvEag8aoI  #this command gives 'a'll users the additional '+' right to e'x'ecute that script
/tmp/alsa-info.uqvEag8aoI #executes the newly downloaded script 

Before and after sleep so we can see what changed automatically, so we can make what you want the default.

Hello again,

I ran the script here are the results.

before:

chmod a+x /tmp/alsa-info.uqvEag8aoI  #this command gives 'a'll users the additional '+' right to e'x'ecute that script
/tmp/alsa-info.uqvEag8aoI #executes the newly downloaded script 
ALSA Information Script v 0.5.0
--------------------------------

This script visits the following commands/files to collect diagnostic
information about your ALSA installation and sound related hardware.

  dmesg
  lspci
  aplay
  amixer
  alsactl
  rpm, dpkg
  /proc/asound/
  /sys/class/sound/
  ~/.asoundrc (etc.)

See '/tmp/alsa-info.uqvEag8aoI --help' for command line options.

/tmp/alsa-info.uqvEag8aoI: line 661: tree: command not found
/tmp/alsa-info.uqvEag8aoI: line 661: tree: command not found
/tmp/alsa-info.uqvEag8aoI: line 661: tree: command not found
dmesg: read kernel buffer failed: Operation not permitted
Automatically upload ALSA information to www.alsa-project.org? [y/N] : y
Uploading information to www.alsa-project.org ... Done!

Your ALSA information is located at http://alsa-project.org/db/?f=8a6f12a5cd5d88be5a6c3f48248d67fdd83824fc
Please inform the person helping you.

After waking up display:

chmod a+x /tmp/alsa-info.uqvEag8aoI  #this command gives 'a'll users the additional '+' right to e'x'ecute that script
/tmp/alsa-info.uqvEag8aoI #executes the newly downloaded script 
ALSA Information Script v 0.5.0
--------------------------------

This script visits the following commands/files to collect diagnostic
information about your ALSA installation and sound related hardware.

  dmesg
  lspci
  aplay
  amixer
  alsactl
  rpm, dpkg
  /proc/asound/
  /sys/class/sound/
  ~/.asoundrc (etc.)

See '/tmp/alsa-info.uqvEag8aoI --help' for command line options.

/tmp/alsa-info.uqvEag8aoI: line 661: tree: command not found
/tmp/alsa-info.uqvEag8aoI: line 661: tree: command not found
/tmp/alsa-info.uqvEag8aoI: line 661: tree: command not found
dmesg: read kernel buffer failed: Operation not permitted
Automatically upload ALSA information to www.alsa-project.org? [y/N] : y
Uploading information to www.alsa-project.org ... Done!

Your ALSA information is located at http://alsa-project.org/db/?f=419bafa6feb831ae53d3c11bb604f75f84edd885
Please inform the person helping you.

OK, no differences found. (You didn’t change from headset to HDMI manually after coming back from sleep, and before providing the second output, did you???)

Can I have a pacmd dump before and after, please?

:thinking:

No i didn’t, before running the command the first time i had hdmi as sound output. Before running the command a second time the sound output was put back to hyperx automatically i didn’t touch anything.
Maybe it’s worth mentioning that i use a pc screen and a tv which i have configured to mirror each other. I did change the hdmi source on the tv to watch cable tv while waiting for the display to sleep.

Also before creating this topic i tried the solution in this post: (it didn’t work)

I added this to line #34

load-module module-switch-on-connect

This is what the last 3 lines look like in /etc/pulse/default.pa

### Make some devices default
set-default-sink alsa_output.pci-0000_08_00.1.hdmi-stereo
#set-default-source input

pacmd dump before sleep with hdmi active:

[nick@manjaro ~]$ pacmd dump
### Configuration dump generated at Wed May 19 19:46:47 2021

load-module module-device-restore
load-module module-stream-restore
load-module module-card-restore
load-module module-augment-properties
load-module module-switch-on-port-available
load-module module-switch-on-connect
load-module module-udev-detect
load-module module-alsa-card device_id="0" name="pci-0000_08_00.1" card_name="alsa_card.pci-0000_08_00.1" namereg_fail=false tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes avoid_resampling=no card_properties="module-udev-detect.discovered=1"
load-module module-alsa-card device_id="2" name="usb-Kingston_HyperX_Virtual_Surround_Sound_00000000-00" card_name="alsa_card.usb-Kingston_HyperX_Virtual_Surround_Sound_00000000-00" namereg_fail=false tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes avoid_resampling=no card_properties="module-udev-detect.discovered=1"
load-module module-alsa-card device_id="1" name="pci-0000_0a_00.3" card_name="alsa_card.pci-0000_0a_00.3" namereg_fail=false tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes avoid_resampling=no card_properties="module-udev-detect.discovered=1"
load-module module-jackdbus-detect channels=2
load-module module-bluetooth-policy
load-module module-bluetooth-discover
load-module module-bluez5-discover
load-module module-dbus-protocol
load-module module-native-protocol-unix
load-module module-gsettings
load-module module-default-device-restore
load-module module-always-sink
load-module module-intended-roles
load-module module-suspend-on-idle
load-module module-console-kit
load-module module-systemd-login
load-module module-position-event-sounds
load-module module-role-cork
load-module module-filter-heuristics
load-module module-filter-apply
load-module module-x11-publish display=:0.0 xauthority=/home/nick/.Xauthority
load-module module-x11-xsmp display=:0.0 xauthority=/home/nick/.Xauthority session_manager=local/manjaro:@/tmp/.ICE-unix/1258,unix/manjaro:/tmp/.ICE-unix/1258
load-module module-cli-protocol-unix

set-sink-volume alsa_output.usb-Kingston_HyperX_Virtual_Surround_Sound_00000000-00.analog-stereo 0x128f5
set-sink-mute alsa_output.usb-Kingston_HyperX_Virtual_Surround_Sound_00000000-00.analog-stereo no
suspend-sink alsa_output.usb-Kingston_HyperX_Virtual_Surround_Sound_00000000-00.analog-stereo yes
set-sink-volume alsa_output.pci-0000_0a_00.3.analog-surround-51 0x10000
set-sink-mute alsa_output.pci-0000_0a_00.3.analog-surround-51 no
suspend-sink alsa_output.pci-0000_0a_00.3.analog-surround-51 yes
set-sink-volume alsa_output.pci-0000_08_00.1.hdmi-stereo 0x10000
set-sink-mute alsa_output.pci-0000_08_00.1.hdmi-stereo no
suspend-sink alsa_output.pci-0000_08_00.1.hdmi-stereo yes

set-source-volume alsa_output.usb-Kingston_HyperX_Virtual_Surround_Sound_00000000-00.analog-stereo.monitor 0x10000
set-source-mute alsa_output.usb-Kingston_HyperX_Virtual_Surround_Sound_00000000-00.analog-stereo.monitor no
suspend-source alsa_output.usb-Kingston_HyperX_Virtual_Surround_Sound_00000000-00.analog-stereo.monitor yes
set-source-volume alsa_input.usb-Kingston_HyperX_Virtual_Surround_Sound_00000000-00.analog-stereo 0x10000
set-source-mute alsa_input.usb-Kingston_HyperX_Virtual_Surround_Sound_00000000-00.analog-stereo yes
suspend-source alsa_input.usb-Kingston_HyperX_Virtual_Surround_Sound_00000000-00.analog-stereo yes
set-source-volume alsa_output.pci-0000_0a_00.3.analog-surround-51.monitor 0x10000
set-source-mute alsa_output.pci-0000_0a_00.3.analog-surround-51.monitor no
suspend-source alsa_output.pci-0000_0a_00.3.analog-surround-51.monitor yes
set-source-volume alsa_output.pci-0000_08_00.1.hdmi-stereo.monitor 0x10000
set-source-mute alsa_output.pci-0000_08_00.1.hdmi-stereo.monitor no
suspend-source alsa_output.pci-0000_08_00.1.hdmi-stereo.monitor yes

set-card-profile alsa_card.pci-0000_08_00.1 output:hdmi-stereo
set-card-profile alsa_card.usb-Kingston_HyperX_Virtual_Surround_Sound_00000000-00 output:analog-stereo+input:analog-stereo
set-card-profile alsa_card.pci-0000_0a_00.3 output:analog-surround-51

set-default-sink alsa_output.pci-0000_08_00.1.hdmi-stereo
set-default-source alsa_input.usb-Kingston_HyperX_Virtual_Surround_Sound_00000000-00.analog-stereo

### EOF

pacmd dump after waking up display: (tv was off when i woke my screen this time. I think it doesn’t make a difference because it always goes to hyperx-HS regardless of whether the tv is on or off when waking the display.

[nick@manjaro ~]$ pacmd dump
### Configuration dump generated at Wed May 19 20:35:04 2021

load-module module-device-restore
load-module module-stream-restore
load-module module-card-restore
load-module module-augment-properties
load-module module-switch-on-port-available
load-module module-switch-on-connect
load-module module-udev-detect
load-module module-alsa-card device_id="0" name="pci-0000_08_00.1" card_name="alsa_card.pci-0000_08_00.1" namereg_fail=false tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes avoid_resampling=no card_properties="module-udev-detect.discovered=1"
load-module module-alsa-card device_id="2" name="usb-Kingston_HyperX_Virtual_Surround_Sound_00000000-00" card_name="alsa_card.usb-Kingston_HyperX_Virtual_Surround_Sound_00000000-00" namereg_fail=false tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes avoid_resampling=no card_properties="module-udev-detect.discovered=1"
load-module module-alsa-card device_id="1" name="pci-0000_0a_00.3" card_name="alsa_card.pci-0000_0a_00.3" namereg_fail=false tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes avoid_resampling=no card_properties="module-udev-detect.discovered=1"
load-module module-jackdbus-detect channels=2
load-module module-bluetooth-policy
load-module module-bluetooth-discover
load-module module-bluez5-discover
load-module module-dbus-protocol
load-module module-native-protocol-unix
load-module module-gsettings
load-module module-default-device-restore
load-module module-always-sink
load-module module-intended-roles
load-module module-suspend-on-idle
load-module module-console-kit
load-module module-systemd-login
load-module module-position-event-sounds
load-module module-role-cork
load-module module-filter-heuristics
load-module module-filter-apply
load-module module-x11-publish display=:0.0 xauthority=/home/nick/.Xauthority
load-module module-x11-xsmp display=:0.0 xauthority=/home/nick/.Xauthority session_manager=local/manjaro:@/tmp/.ICE-unix/1258,unix/manjaro:/tmp/.ICE-unix/1258
load-module module-cli-protocol-unix

set-sink-volume alsa_output.usb-Kingston_HyperX_Virtual_Surround_Sound_00000000-00.analog-stereo 0x128f5
set-sink-mute alsa_output.usb-Kingston_HyperX_Virtual_Surround_Sound_00000000-00.analog-stereo no
suspend-sink alsa_output.usb-Kingston_HyperX_Virtual_Surround_Sound_00000000-00.analog-stereo yes
set-sink-volume alsa_output.pci-0000_0a_00.3.analog-surround-51 0x10000
set-sink-mute alsa_output.pci-0000_0a_00.3.analog-surround-51 no
suspend-sink alsa_output.pci-0000_0a_00.3.analog-surround-51 yes
set-sink-volume alsa_output.pci-0000_08_00.1.hdmi-stereo 0x10000
set-sink-mute alsa_output.pci-0000_08_00.1.hdmi-stereo no
suspend-sink alsa_output.pci-0000_08_00.1.hdmi-stereo yes

set-source-volume alsa_output.usb-Kingston_HyperX_Virtual_Surround_Sound_00000000-00.analog-stereo.monitor 0x10000
set-source-mute alsa_output.usb-Kingston_HyperX_Virtual_Surround_Sound_00000000-00.analog-stereo.monitor no
suspend-source alsa_output.usb-Kingston_HyperX_Virtual_Surround_Sound_00000000-00.analog-stereo.monitor yes
set-source-volume alsa_input.usb-Kingston_HyperX_Virtual_Surround_Sound_00000000-00.analog-stereo 0x10000
set-source-mute alsa_input.usb-Kingston_HyperX_Virtual_Surround_Sound_00000000-00.analog-stereo yes
suspend-source alsa_input.usb-Kingston_HyperX_Virtual_Surround_Sound_00000000-00.analog-stereo yes
set-source-volume alsa_output.pci-0000_0a_00.3.analog-surround-51.monitor 0x10000
set-source-mute alsa_output.pci-0000_0a_00.3.analog-surround-51.monitor no
suspend-source alsa_output.pci-0000_0a_00.3.analog-surround-51.monitor yes
set-source-volume alsa_output.pci-0000_08_00.1.hdmi-stereo.monitor 0x10000
set-source-mute alsa_output.pci-0000_08_00.1.hdmi-stereo.monitor no
suspend-source alsa_output.pci-0000_08_00.1.hdmi-stereo.monitor yes

set-card-profile alsa_card.pci-0000_08_00.1 output:hdmi-stereo
set-card-profile alsa_card.usb-Kingston_HyperX_Virtual_Surround_Sound_00000000-00 output:analog-stereo+input:analog-stereo
set-card-profile alsa_card.pci-0000_0a_00.3 output:analog-surround-51

set-default-sink alsa_output.usb-Kingston_HyperX_Virtual_Surround_Sound_00000000-00.analog-stereo
set-default-source alsa_input.usb-Kingston_HyperX_Virtual_Surround_Sound_00000000-00.analog-stereo

### EOF

@nikgnomic Can you have a look, please? I’m not making heads nor tails of this one…

:sob:

1 Like

@fabby
This is a tricky one
The HDMI audio to the TV must be suspended or not available in some way when the screensaver is active, but no way to get terminal data to know exactly whilst the screensaver is active

@Nick1402
Try this first for working around the screensaver

In Xfce the screensaver can be disabled whilst watching TV
Left click the Power Manager icon in the panel and turn on Presentation Mode

PresentationModeOn

The Presentation Mode orange indicator icon might need to be turned on in the Power Manager plugin settings

That will prevent the screensaver being activated and audio will continue to play to HDMI

But audio streams would still switch from HDMI when Presentation Mode is turned off

Try unloading the Pulseaudio module most likely to be causing this

pacmd unload-module module-suspend-on-idle

The module will only be unloaded temporarily. If it works Pulseaudio can be reconfigured to remove the module permanently

If it does not work, it will likely require changing ALSA configuration to disable power saving

1 Like

@nikgnomic @Fabby

Thanks for the help. I’m just going to leave it like it is as it only a minor annoycance.