You are not logged in.

#1 2024-03-13 04:41:01

TheDcoder
Member
Registered: 2020-06-06
Posts: 116
Website

Audio over DisplayPort doesn't work with dedicated Nvidia GPU

I am aware of the "No audio over HDMI" section in the troubleshooting wiki article, the issue described there matches mine perfectly, but the workaround unfortunately does not work. Here's the output from aplay:

$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC897 Analog [ALC897 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

card 0 is the inbuilt motherboard audio output. My monitor has speakers which I have confirmed to work in Windows but they don't show up on Linux.

This is the PCI topology of my system for reference: (I couldn't make head or tails out of it)

# lspci -t
-[0000:00]-+-00.0
           +-01.0-[01]----00.0
           +-06.0-[02]----00.0
           +-14.0
           +-14.2
           +-14.3
           +-15.0
           +-16.0
           +-17.0
           +-1c.0-[03]----00.0
           +-1f.0
           +-1f.3
           +-1f.4
           \-1f.5

And the exact script I ran for testing:

# cat nvidia-audio-rescan.sh
#!/bin/sh
# Source: https://forums.developer.nvidia.com/t/gtx-1060-no-audio-over-hdmi-only-hda-intel-detected-azalia/53463/2
setpci -s 01:00.0 0x488.l=0x2000000:0x2000000
rmmod nvidia-drm nvidia-modeset nvidia_uvm nvidia
echo 1 > /sys/bus/pci/devices/0000:01:00.0/remove
echo 1 > /sys/bus/pci/devices/0000:00:01.0/rescan
modprobe nvidia-drm nvidia

Can anyone help me figure out how to get audio working via the Nvidia GPU?

Offline

#2 2024-03-13 10:09:29

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,996

Re: Audio over DisplayPort doesn't work with dedicated Nvidia GPU

That should generally speaking just work. Can you post

sudo journalctl -k | grep -iE 'snd|nvidia|i915'

Offline

#3 2024-03-15 11:44:43

TheDcoder
Member
Registered: 2020-06-06
Posts: 116
Website

Re: Audio over DisplayPort doesn't work with dedicated Nvidia GPU

Sure thing: https://paste.rs/MOp6D

I don't see any obvious errors.

Offline

#4 2024-03-16 10:20:04

Lone_Wolf
Forum Moderator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 12,080

Re: Audio over DisplayPort doesn't work with dedicated Nvidia GPU

Mar 15 16:33:03 arch kernel: WARNING: CPU: 4 PID: 2890 at /var/lib/dkms/nvidia/550.54.14/build/nvidia-drm/nvidia-drm-gem-user-memory.c:138 __nv_drm_gem_user_memory_handle_vma_fault+0x92/0xa0 [nvidia_drm]
Mar 15 16:33:03 arch kernel: Modules linked in: rfcomm snd_seq_dummy snd_hrtimer snd_seq ccm nft_chain_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 ip6t_REJECT nf_reject_ipv6 ipt_REJECT nf_reject_ipv4 xt_multiport xt_cgroup xt_mark xt_owner xt_tcpudp nft_compat uhid cmac algif_hash algif_skcipher af_alg nf_tables libcrc32c joydev mousedev bnep btusb btrtl btintel btbcm btmtk snd_usb_audio bluetooth hid_generic snd_usbmidi_lib snd_ump snd_rawmidi usbhid snd_seq_device ecdh_generic intel_rapl_msr intel_rapl_common nls_iso8859_1 intel_uncore_frequency vfat intel_uncore_frequency_common fat snd_sof_pci_intel_tgl snd_sof_intel_hda_common soundwire_intel snd_sof_intel_hda_mlink x86_pkg_temp_thermal soundwire_cadence snd_sof_intel_hda intel_powerclamp snd_sof_pci coretemp snd_sof_xtensa_dsp snd_sof kvm_intel snd_sof_utils snd_soc_hdac_hda iwlmvm snd_hda_codec_realtek snd_hda_ext_core snd_soc_acpi_intel_match kvm snd_hda_codec_generic snd_soc_acpi soundwire_generic_allocation mac80211 ledtrig_audio soundwire_bus irqbypass
Mar 15 16:33:03 arch kernel:  snd_soc_core crct10dif_pclmul ntfs3 crc32_pclmul snd_compress libarc4 polyval_clmulni ac97_bus polyval_generic snd_pcm_dmaengine ptp gf128mul snd_hda_intel ghash_clmulni_intel pps_core snd_intel_dspcfg sha512_ssse3 snd_intel_sdw_acpi sha256_ssse3 snd_hda_codec sha1_ssse3 aesni_intel snd_hda_core crypto_simd snd_hwdep cryptd mei_pxp iwlwifi mei_hdcp snd_pcm iTCO_wdt rapl intel_pmc_bxt snd_timer iTCO_vendor_support intel_cstate cfg80211 spi_nor mei_me snd intel_lpss_pci i2c_i801 intel_uncore mei intel_lpss soundcore mtd intel_pmc_core rfkill acpi_pad i2c_smbus pcspkr wmi_bmof idma64 acpi_tad mac_hid vboxnetflt(OE) vboxnetadp(OE) vboxdrv(OE) v4l2loopback(OE) videodev mc i2c_dev ntsync(OE) sg crypto_user fuse loop dm_mod nfnetlink zram ip_tables x_tables ext4 crc32c_generic crc16 mbcache jbd2 nvme spi_intel_pci nvme_core crc32c_intel spi_intel xhci_pci xhci_pci_renesas nvme_auth nvidia_drm(POE) nvidia_uvm(POE) nvidia_modeset(POE) video wmi nvidia(POE)
Mar 15 16:33:03 arch kernel: RIP: 0010:__nv_drm_gem_user_memory_handle_vma_fault+0x92/0xa0 [nvidia_drm]
Mar 15 16:33:03 arch kernel:  ? __nv_drm_gem_user_memory_handle_vma_fault+0x92/0xa0 [nvidia_drm f22c89a105353459741880eeab92814baaca70d7]
Mar 15 16:33:03 arch kernel:  ? __nv_drm_gem_user_memory_handle_vma_fault+0x92/0xa0 [nvidia_drm f22c89a105353459741880eeab92814baaca70d7]
Mar 15 16:33:03 arch kernel:  ? __nv_drm_gem_user_memory_handle_vma_fault+0x92/0xa0 [nvidia_drm f22c89a105353459741880eeab92814baaca70d7]
Mar 15 16:33:03 arch kernel:  ? os_alloc_mem+0xc8/0xe0 [nvidia 1f6481e64efc83b83632e317b9a4dd89c0e3668b]
Mar 15 16:33:03 arch kernel:  ? os_alloc_mem+0xc8/0xe0 [nvidia 1f6481e64efc83b83632e317b9a4dd89c0e3668b]
Mar 15 16:33:03 arch kernel:  os_lock_user_pages+0xc6/0x1b0 [nvidia 1f6481e64efc83b83632e317b9a4dd89c0e3668b]
Mar 15 16:33:03 arch kernel:  _nv000662rm+0x67/0x110 [nvidia 1f6481e64efc83b83632e317b9a4dd89c0e3668b]
Mar 15 16:33:03 arch kernel:  _nv000731rm+0xb61/0xeb0 [nvidia 1f6481e64efc83b83632e317b9a4dd89c0e3668b]
Mar 15 16:33:03 arch kernel:  rm_ioctl+0x58/0xb0 [nvidia 1f6481e64efc83b83632e317b9a4dd89c0e3668b]
Mar 15 16:33:03 arch kernel:  nvidia_unlocked_ioctl+0x865/0xb20 [nvidia 1f6481e64efc83b83632e317b9a4dd89c0e3668b]

For clarity : are you setting nvidia_drm.modeset=1 as a kernel parameter ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

Board footer

Powered by FluxBB