No sound with HDMI

Hi everyone, I’m not managing to get audio on my tv through HDMI.
I’ve checked various other threads on the topic, but haven’t found anything that clearly matches my setup (a lot of them do things with pulse-audio while I’m using pipewire and others talk about issues with audio through their nvidia card, which I have, but I’m not sure if I’m supposed to be using it).

garuda-inxi:

System:
  Kernel: 6.5.2-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 13.2.1
    clocksource: tsc available: hpet,acpi_pm
    parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
    root=UUID=220d401c-e739-49f7-b37b-c9837e340ce5 rw rootflags=subvol=@
    quiet quiet rd.udev.log_priority=3 vt.global_cursor_default=0 loglevel=3
    pci=noaer ibt=off
  Desktop: KDE Plasma v: 5.27.7 tk: Qt v: 5.15.10 info: latte-dock
    wm: kwin_x11 vt: 2 dm: SDDM Distro: Garuda Linux base: Arch Linux
Machine:
  Type: Laptop System: HP product: HP Pavilion Gaming Notebook
    v: Type1ProductConfigId serial: <superuser required> Chassis: type: 10
    serial: <superuser required>
  Mobo: HP model: 816B v: 91.1E serial: <superuser required> UEFI: Insyde
    v: F.91 date: 08/20/2019
Battery:
  ID-1: BAT0 charge: 23.7 Wh (100.0%) condition: 23.7/23.7 Wh (100.0%)
    volts: 11.9 min: 14.8 model: Hewlett-Packard Primary type: Li-ion
    serial: N/A status: full
  Device-1: hidpp_battery_0 model: Logitech Wireless Keyboard
    serial: <filter> charge: 55% (should be ignored) rechargeable: yes
    status: discharging
CPU:
  Info: model: Intel Core i7-6700HQ bits: 64 type: MT MCP arch: Skylake-S
    gen: core 6 level: v3 note: check built: 2015 process: Intel 14nm family: 6
    model-id: 0x5E (94) stepping: 3 microcode: 0xF0
  Topology: cpus: 1x cores: 4 tpc: 2 threads: 8 smt: enabled cache:
    L1: 256 KiB desc: d-4x32 KiB; i-4x32 KiB L2: 1024 KiB desc: 4x256 KiB
    L3: 6 MiB desc: 1x6 MiB
  Speed (MHz): avg: 3157 high: 3296 min/max: 800/3500 scaling:
    driver: intel_pstate governor: performance cores: 1: 3122 2: 3126 3: 3123
    4: 3103 5: 3127 6: 3296 7: 3265 8: 3101 bogomips: 41599
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3
  Vulnerabilities: <filter>
Graphics:
  Device-1: Intel HD Graphics 530 vendor: Hewlett-Packard driver: i915
    v: kernel arch: Gen-9 process: Intel 14n built: 2015-16 ports:
    active: HDMI-A-1,eDP-1 empty: none bus-ID: 00:02.0 chip-ID: 8086:191b
    class-ID: 0300
  Device-2: NVIDIA GM107M [GeForce GTX 950M] vendor: Hewlett-Packard
    driver: nvidia v: 535.104.05 alternate: nouveau,nvidia_drm non-free: 535.xx+
    status: current (as of 2023-08) arch: Maxwell code: GMxxx
    process: TSMC 28nm built: 2014-19 pcie: gen: 3 speed: 8 GT/s lanes: 8
    link-max: lanes: 16 bus-ID: 01:00.0 chip-ID: 10de:139a class-ID: 0302
  Device-3: Intel RealSense 3D Camera (Front F200) driver: uvcvideo
    type: USB rev: 3.0 speed: 5 Gb/s lanes: 1 mode: 3.2 gen-1x1 bus-ID: 2-3:2
    chip-ID: 8086:0a66 class-ID: 0e02 serial: <filter>
  Display: x11 server: X.Org v: 21.1.8 with: Xwayland v: 23.2.0
    compositor: kwin_x11 driver: X: loaded: modesetting,nvidia dri: iris
    gpu: i915 display-ID: :0 screens: 1
  Screen-1: 0 s-res: 4480x1440 s-dpi: 96 s-size: 1182x380mm (46.54x14.96")
    s-diag: 1242mm (48.88")
  Monitor-1: HDMI-A-1 mapped: HDMI-1-1 pos: primary,top-right
    model: Dell S2722DGM serial: <filter> built: 2021 res: 2560x1440 hz: 60
    dpi: 109 gamma: 1.2 size: 597x336mm (23.5x13.23") diag: 685mm (27")
    ratio: 16:9 modes: max: 2560x1440 min: 720x400
  Monitor-2: eDP-1 mapped: eDP-1-1 pos: bottom-l model: Samsung 0x5844
    built: 2015 res: 1920x1080 hz: 60 dpi: 142 gamma: 1.2
    size: 344x194mm (13.54x7.64") diag: 395mm (15.5") ratio: 16:9
    modes: 1920x1080
  API: OpenGL v: 4.6.0 NVIDIA 535.104.05 renderer: NVIDIA GeForce GTX
    950M/PCIe/SSE2 direct-render: Yes
Audio:
  Device-1: Intel 100 Series/C230 Series Family HD Audio
    vendor: Hewlett-Packard driver: snd_hda_intel v: kernel
    alternate: snd_soc_avs bus-ID: 00:1f.3 chip-ID: 8086:a170 class-ID: 0403
  API: ALSA v: k6.5.2-zen1-1-zen status: kernel-api
    tools: alsactl,alsamixer,amixer
  Server-1: PipeWire v: 0.3.79 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    4: pw-jack type: plugin tools: pactl,pw-cat,pw-cli,wpctl
Network:
  Device-1: Realtek RTL8723BE PCIe Wireless Network Adapter
    vendor: Hewlett-Packard driver: rtl8723be v: kernel pcie: gen: 1
    speed: 2.5 GT/s lanes: 1 port: 4000 bus-ID: 08:00.0 chip-ID: 10ec:b723
    class-ID: 0280
  IF: wlo1 state: up mac: <filter>
  Device-2: Realtek RTL810xE PCI Express Fast Ethernet
    vendor: Hewlett-Packard driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s
    lanes: 1 port: 3000 bus-ID: 09:00.0 chip-ID: 10ec:8136 class-ID: 0200
  IF: eno1 state: up speed: 100 Mbps duplex: full mac: <filter>
  IF-ID-1: br-6d1386589274 state: down mac: <filter>
  IF-ID-2: docker0 state: down mac: <filter>
Bluetooth:
  Device-1: Realtek Bluetooth Radio driver: btusb v: 0.8 type: USB rev: 2.1
    speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 1-7:3 chip-ID: 0bda:b006
    class-ID: e001 serial: <filter>
  Report: btmgmt ID: hci0 rfk-id: 0 state: down bt-service: enabled,running
    rfk-block: hardware: no software: yes address: <filter> bt-v: 4.0 lmp-v: 6
    status: discoverable: no pairing: no
Drives:
  Local Storage: total: 1.03 TiB used: 904.67 GiB (86.1%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/sda maj-min: 8:0 vendor: Samsung model: MZNLF128HCHP-000H1
    size: 119.24 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
    tech: SSD serial: <filter> fw-rev: 1H1Q scheme: GPT
  ID-2: /dev/sdb maj-min: 8:16 vendor: Toshiba model: MQ01ABD100
    size: 931.51 GiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
    tech: HDD rpm: 5400 serial: <filter> fw-rev: 2C scheme: GPT
Partition:
  ID-1: / raw-size: 117.12 GiB size: 117.12 GiB (100.00%)
    used: 87.73 GiB (74.9%) fs: btrfs dev: /dev/sda5 maj-min: 8:5
  ID-2: /boot/efi raw-size: 260 MiB size: 256 MiB (98.46%)
    used: 74.5 MiB (29.1%) fs: vfat dev: /dev/sda1 maj-min: 8:1
  ID-3: /home raw-size: 117.12 GiB size: 117.12 GiB (100.00%)
    used: 87.73 GiB (74.9%) fs: btrfs dev: /dev/sda5 maj-min: 8:5
  ID-4: /var/log raw-size: 117.12 GiB size: 117.12 GiB (100.00%)
    used: 87.73 GiB (74.9%) fs: btrfs dev: /dev/sda5 maj-min: 8:5
  ID-5: /var/tmp raw-size: 117.12 GiB size: 117.12 GiB (100.00%)
    used: 87.73 GiB (74.9%) fs: btrfs dev: /dev/sda5 maj-min: 8:5
Swap:
  Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default) zswap: no
  ID-1: swap-1 type: zram size: 15.46 GiB used: 175.2 MiB (1.1%)
    priority: 100 comp: zstd avail: lzo,lzo-rle,lz4,lz4hc,842 max-streams: 8
    dev: /dev/zram0
  ID-2: swap-2 type: partition size: 4.88 GiB used: 0 KiB (0.0%)
    priority: -2 dev: /dev/sdb5 maj-min: 8:21
Sensors:
  System Temperatures: cpu: 54.0 C pch: 48.5 C mobo: N/A gpu: nvidia
    temp: 51 C
  Fan Speeds (rpm): N/A
Info:
  Processes: 279 Uptime: 1h 47m wakeups: 11 Memory: total: 16 GiB
  available: 15.46 GiB used: 3.88 GiB (25.1%) Init: systemd v: 254
  default: graphical tool: systemctl Compilers: gcc: 13.2.1 clang: 16.0.6
  Packages: 2332 pm: nix-default pkgs: 50 pm: nix-sys pkgs: 0 pm: nix-usr
  pkgs: 504 libs: 152 pm: pacman pkgs: 1778 libs: 422 tools: octopi,pamac,yay
  pm: flatpak pkgs: 0 Shell: fish v: 3.6.1 running-in: konsole inxi: 3.3.29
Garuda (2.6.16-1):
  System install date:     2022-04-24
  Last full system update: 2023-09-13 ↻
  Is partially upgraded:   No
  Relevant software:       snapper NetworkManager dracut nvidia-dkms
  Windows dual boot:       Probably (Run as root to verify)
  Failed units:            systemd-networkd-wait-online.service

pactl list sinks

Sink #161
        State: RUNNING
        Name: alsa_output.pci-0000_00_1f.3.hdmi-stereo
        Description: Built-in Audio Digital Stereo (HDMI)
        Driver: PipeWire
        Sample Specification: s32le 2ch 48000Hz
        Channel Map: front-left,front-right
        Owner Module: 4294967295
        Mute: no
        Volume: front-left: 37233 /  57% / -14,73 dB,   front-right: 37233 /  57% / -14,73 dB
                balance 0,00
        Base Volume: 65536 / 100% / 0,00 dB
        Monitor Source: alsa_output.pci-0000_00_1f.3.hdmi-stereo.monitor
        Latency: 0 usec, configured 0 usec
        Flags: HARDWARE DECIBEL_VOLUME LATENCY SET_FORMATS
        Properties:
                alsa.card = "0"
                alsa.card_name = "HDA Intel PCH"
                alsa.class = "generic"
                alsa.device = "3"
                alsa.driver_name = "snd_hda_intel"
                alsa.id = "HDMI 0"
                alsa.long_card_name = "HDA Intel PCH at 0x94328000 irq 131"
                alsa.name = "PHILIPS FTV"
                alsa.resolution_bits = "16"
                alsa.subclass = "generic-mix"
                alsa.subdevice = "0"
                alsa.subdevice_name = "subdevice #0"
                api.alsa.card.longname = "HDA Intel PCH at 0x94328000 irq 131"
                api.alsa.card.name = "HDA Intel PCH"
                api.alsa.path = "hdmi:0"
                api.alsa.pcm.card = "0"
                api.alsa.pcm.stream = "playback"
                audio.channels = "2"
                audio.position = "FL,FR"
                card.profile.device = "7"
                device.api = "alsa"
                device.class = "sound"
                device.id = "46"
                device.profile.description = "Digital Stereo (HDMI)"
                device.profile.name = "hdmi-stereo"
                device.routes = "1"
                factory.name = "api.alsa.pcm.sink"
                media.class = "Audio/Sink"
                device.description = "Built-in Audio"
                node.name = "alsa_output.pci-0000_00_1f.3.hdmi-stereo"
                node.nick = "PHILIPS FTV"
                node.pause-on-idle = "false"
                object.path = "alsa:pcm:0:hdmi:0:playback"
                priority.driver = "696"
                priority.session = "696"
                factory.id = "18"
                clock.quantum-limit = "8192"
                client.id = "34"
                node.driver = "true"
                factory.mode = "merge"
                audio.adapt.follower = ""
                library.name = "audioconvert/libspa-audioconvert"
                object.id = "56"
                object.serial = "161"
                node.max-latency = "16384/48000"
                api.alsa.period-size = "1024"
                api.alsa.period-num = "32"
                api.alsa.headroom = "0"
                api.acp.auto-port = "false"
                api.acp.auto-profile = "false"
                api.alsa.card = "0"
                api.alsa.use-acp = "true"
                api.dbus.ReserveDevice1 = "Audio0"
                device.bus = "pci"
                device.bus_path = "pci-0000:00:1f.3"
                device.enum.api = "udev"
                device.form_factor = "internal"
                device.icon_name = "audio-card-analog-pci"
                device.name = "alsa_card.pci-0000_00_1f.3"
                device.nick = "HDA Intel PCH"
                device.plugged.usec = "5066963"
                device.product.id = "0xa170"
                device.product.name = "100 Series/C230 Series Chipset Family HD Audio Controller"
                device.subsystem = "sound"
                sysfs.path = "/devices/pci0000:00/0000:00:1f.3/sound/card0"
                device.vendor.id = "0x8086"
                device.vendor.name = "Intel Corporation"
                device.string = "0"
        Ports:
                hdmi-output-0: HDMI / DisplayPort (type: HDMI, priority: 5900, availability group: Legacy 5, available)
        Active Port: hdmi-output-0
        Formats:
                pcm

Everything works fine when using windows and I thought I had it working with pulseaudio before garuda switched to pipewire, but I’m not sure.
I have been able to get some noise out of the tv with speaker-test -D plug:hdmi.
I have also tried switching to hybrid mode in optimus-manager, but that did not help.

Any suggestions for a fix?

Hi @cdfa.
On my Garuda KDE audio doesn’t automatically switch to the HDMI output.

Have you tried going into settings -> audio?
You should be able to change audio output through the dropdown list of “Analog Output”

Let me know if it worked!

1 Like

Yes I tried that and it does switch the sink reported by pactl, but still no audio.

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