No sound trough NVIDIA HDMI (SOLVED)

This is an annoying issue i’ve been facing, thankfully a guy namedĀ Fludizz on nvidia devtalk provided a clean solution in thisĀ devtalk post.

Create a new service file /etc/systemd/system/fix-hdmi-audio.service:

Description=nVidia HDMI Audio Fixer
Before=systemd-logind.service display-manager.service

Create the script the service will run /root/

setpci -s 01:00.0 0x488.l=0x2000000:0x2000000
rmmod nvidia-uvm nvidia-drm nvidia-modeset nvidia
sh -c 'echo 1 > /sys/bus/pci/devices/0000:01:00.0/remove'
sh -c 'echo 1 > /sys/bus/pci/devices/0000:00:01.0/rescan'
modprobe nvidia nvidia-modeset nvidia-drm nvidia-uvm

make the script executable, enable the service and reboot!

chmod +x /root/
systemctl enable fix-hdmi-audio.service

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.