Sound only after reconnect HDMI cable on NVIDIA-card

Hi,
OS: Manjaro XFCE
NVIDIA video card(GTX1060) HDMI interface.

I have no sound when playing any audio files…streaming, saved/stored etc.

I have tried multiple kernels with the same result.

When I disconnect and reconnect the HDMI cable, everything works fine…

Does anybody have any ideas?

Thanks

This will help you help us to know more about your system [HowTo] Provide System Information

inxi --admin --verbosity=7 --filter --width

System:
  Kernel: 5.15.25-1-MANJARO x86_64 bits: 64 compiler: gcc v: 11.2.0
    parameters: BOOT_IMAGE=/boot/vmlinuz-5.15-x86_64
    root=UUID=a50c54d7-246c-462a-abd3-710239d7ed2f rw quiet apparmor=1
    security=apparmor resume=UUID=0a79cb12-388a-4272-87df-0e5849f9bc25
    udev.log_priority=3
  Desktop: Xfce 4.16.0 tk: Gtk 3.24.29 info: xfce4-panel wm: xfwm 4.16.1
    vt: 7 dm: LightDM 1.30.0 Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Desktop Mobo: ASRock model: B450M Pro4 serial: <superuser required>
    UEFI-[Legacy]: American Megatrends v: P3.90 date: 12/09/2019
Battery:
  Device-1: hidpp_battery_0 model: Logitech M570 serial: <filter> charge: 90%
    rechargeable: yes status: Discharging
  Device-2: hidpp_battery_1 model: Logitech K350 serial: <filter>
    charge: 70% (should be ignored) rechargeable: yes status: Discharging
Memory:
  RAM: total: 31.28 GiB used: 2.35 GiB (7.5%)
  RAM Report:
    permissions: Unable to run dmidecode. Root privileges required.
CPU:
  Info: model: AMD Athlon 3000G with Radeon Vega Graphics bits: 64
    type: MT MCP arch: Zen/Zen+ note: check family: 0x17 (23)
    model-id: 0x18 (24) stepping: 1 microcode: 0x8108109
  Topology: cpus: 1x cores: 2 tpc: 2 threads: 4 smt: enabled cache:
    L1: 192 KiB desc: d-2x32 KiB; i-2x64 KiB L2: 1024 KiB desc: 2x512 KiB
    L3: 4 MiB desc: 1x4 MiB
  Speed (MHz): avg: 1590 high: 1839 min/max: 1600/3500 boost: enabled
    scaling: driver: acpi-cpufreq governor: schedutil cores: 1: 1475 2: 1532
    3: 1839 4: 1515 bogomips: 27956
  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 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: Gigabyte
    driver: nvidia v: 510.54 alternate: nouveau,nvidia_drm pcie: gen: 2
    speed: 5 GT/s lanes: 4 link-max: gen: 3 speed: 8 GT/s lanes: 16
    bus-ID: 01:00.0 chip-ID: 10de:1c03 class-ID: 0300
  Display: x11 server: X.Org v: 1.21.1.3 compositor: xfwm v: 4.16.1 driver:
    X: loaded: nvidia gpu: 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: 46
    size: 1060x626mm (41.7x24.6") diag: 1231mm (48.5")
  Message: Unable to show GL data. Required tool glxinfo missing.
Audio:
  Device-1: NVIDIA GP106 High Definition Audio vendor: Gigabyte
    driver: snd_hda_intel v: kernel pcie: gen: 2 speed: 5 GT/s lanes: 4
    link-max: gen: 3 speed: 8 GT/s lanes: 16 bus-ID: 01:00.1
    chip-ID: 10de:10f1 class-ID: 0403
  Device-2: AMD Family 17h HD Audio vendor: ASRock driver: snd_hda_intel
    v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16 bus-ID: 08:00.6
    chip-ID: 1022:15e3 class-ID: 0403
  Sound Server-1: ALSA v: k5.15.25-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.47 running: yes
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: ASRock driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1
    port: e000 bus-ID: 05:00.0 chip-ID: 10ec:8168 class-ID: 0200
  IF: enp5s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
  IP v4: <filter> type: dynamic noprefixroute scope: global
    broadcast: <filter>
  IP v6: <filter> type: noprefixroute scope: link
  IF-ID-1: wg-mullvad state: unknown speed: N/A duplex: N/A mac: N/A
  IP v4: <filter> scope: global
  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: 1.83 TiB used: 31.37 GiB (1.7%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Crucial model: CT1000P1SSD8
    size: 931.51 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s
    lanes: 4 type: SSD serial: <filter> rev: P3CR020 temp: 33.9 C scheme: MBR
  ID-2: /dev/sda maj-min: 8:0 vendor: Crucial model: CT1000MX500SSD1
    size: 931.51 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
    type: SSD serial: <filter> rev: 033 scheme: MBR
  ID-3: /dev/sdb maj-min: 8:16 type: USB vendor: SanDisk model: Ultra Fit
    size: 14.32 GiB block-size: physical: 512 B logical: 512 B type: N/A
    serial: <filter> rev: 1.00 scheme: MBR
  Message: No optical or floppy data found.
Partition:
  ID-1: / raw-size: 922.71 GiB size: 907.15 GiB (98.31%)
    used: 31.37 GiB (3.5%) fs: ext4 dev: /dev/nvme0n1p1 maj-min: 259:1
    label: N/A uuid: a50c54d7-246c-462a-abd3-710239d7ed2f
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default)
  ID-1: swap-1 type: partition size: 8.8 GiB used: 0 KiB (0.0%) priority: -2
    dev: /dev/nvme0n1p2 maj-min: 259:2 label: swap
    uuid: 0a79cb12-388a-4272-87df-0e5849f9bc25
Unmounted:
  ID-1: /dev/sda1 maj-min: 8:1 size: 50 MiB fs: ntfs label: System Reserved
    uuid: D424008B240072B2
  ID-2: /dev/sda2 maj-min: 8:2 size: 930.93 GiB fs: ntfs label: N/A
    uuid: 5626033226031323
  ID-3: /dev/sda3 maj-min: 8:3 size: 548 MiB fs: ntfs label: N/A
    uuid: 0EE40A0AE409F52D
  ID-4: /dev/sdb1 maj-min: 8:17 size: 2.96 GiB fs: iso9660
  ID-5: /dev/sdb2 maj-min: 8:18 size: 4 MiB fs: vfat label: N/A
    uuid: 84B3-1470
  ID-6: /dev/sdb3 maj-min: 8:19 size: 11.36 GiB fs: ext4 label: writable
    uuid: 7ccf816c-4421-4506-ac2f-dc621c680ef7
USB:
  Hub-1: 1-0:1 info: Hi-speed hub with single TT ports: 10 rev: 2.0
    speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
  Device-1: 1-6:2 info: Logitech Unifying Receiver type: Keyboard,Mouse,HID
    driver: logitech-djreceiver,usbhid interfaces: 3 rev: 2.0 speed: 12 Mb/s
    power: 98mA chip-ID: 046d:c52b class-ID: 0300
  Hub-2: 2-0:1 info: Super-speed hub ports: 4 rev: 3.1 speed: 10 Gb/s
    chip-ID: 1d6b:0003 class-ID: 0900
  Device-1: 2-3:2 info: SanDisk Ultra Fit type: Mass Storage
    driver: usb-storage interfaces: 1 rev: 3.0 speed: 5 Gb/s power: 896mA
    chip-ID: 0781:5583 class-ID: 0806 serial: <filter>
  Hub-3: 3-0:1 info: Hi-speed hub with single TT ports: 6 rev: 2.0
    speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
  Device-1: 3-2:2 info: Logitech Unifying Receiver type: Keyboard,Mouse,HID
    driver: logitech-djreceiver,usbhid interfaces: 3 rev: 2.0 speed: 12 Mb/s
    power: 98mA chip-ID: 046d:c52b class-ID: 0300
  Device-2: 3-4:3 info: CH Products Flight Sim Pedals type: HID
    driver: hid-generic,usbhid interfaces: 1 rev: 1.0 speed: 1.5 Mb/s
    power: 32mA chip-ID: 068e:00f2 class-ID: 0300
  Device-3: 3-5:4 info: CH Products Flight Sim Yoke type: HID
    driver: hid-generic,usbhid interfaces: 1 rev: 1.0 speed: 1.5 Mb/s
    power: 32mA chip-ID: 068e:00ff class-ID: 0300
  Hub-4: 4-0:1 info: Super-speed hub ports: 4 rev: 3.1 speed: 10 Gb/s
    chip-ID: 1d6b:0003 class-ID: 0900
Sensors:
  System Temperatures: cpu: N/A mobo: N/A gpu: nvidia temp: 37 C
  Fan Speeds (RPM): N/A gpu: nvidia fan: 0%
Info:
  Processes: 242 Uptime: 9m wakeups: 5 Init: systemd v: 250 tool: systemctl
  Compilers: gcc: 11.2.0 clang: 13.0.1 Packages: 1288 pacman: 1283 lib: 318
  flatpak: 5 Shell: Bash v: 5.1.16 running-in: xfce4-terminal inxi: 3.3.13

Hi
I have posted the output of “inxi --admin --verbosity=7 --filter --width”

Additionally, Windows 11 is running on the same computer with the same HDMI cable flawlessly, therefore, the cable is fine.

I have tried many flavors of Linx(Ubuntu, Debian, Manjaro, PopOS, Mint, MXLinux) and I don’t have any sound on any of these distros until I disconnect, and then reconnect the hdmi cable.
Thanks for any help

I would suggest to install manjaro-pipewire and see if after reboot that helps.

You should consider updating motherboard BIOS - ASRock > B450M Pro4

I suspect system is using onboard analog audio as default-sink for audio output
and reconnecting HDMI cable is probably causing PulseAudio module module-switch-on-port-available to switch audio streams to HDMI output

Please post response to this command to show configuration of PulseAudio output sinks

pacmd list-sinks

the default-sink will be marked with an asterisk *

Thanks for your suggestion bogdancovaciu.
I installed “manjaro-pipewire” but, no change.

nikgnomic: thanks for your reply.
I ran “pacmd list-sinks” “bash: pacmd: command not found” was output.
I’m assuming this is because I installed “manjaro-pipewire”, which uninstalls “pulseaudio”

I ran “pipewire list-sinks” in terminal, the ouput is:

[E][01463.630418] mod.protocol-native | [module-protocol-: 609 lock_socket()] server 0x55a943dff440: unable to lock lockfile ‘/run/user/1000/pipewire-0.lock’: Resource temporarily unavailable (maybe another daemon is running)
[E][01463.630596] pw.conf | [ conf.c: 560 load_module()] 0x55a943dc1ea0: could not load mandatory module “libpipewire-module-protocol-native”: Resource temporarily unavailable
[E][01463.630635] pw.conf | [ conf.c: 647 create_object()] can’t find factory spa-node-factory

I’m not sure what this means, or if it is relevant?
Thanks for any help

AT THE TIME OF RUNNING THIS COMMAND IN TERMINAL, THE SOUND WAS WORKING FINE, AS I ALREADY DISONNECTED/RECONNECTED HDMI CABLE.