The Cookie Machine - Click here to drag window

DUMMY TEXT - Real text set in assets/js/theCookieMachine.js

If you can read me, I'm broken!

Views: 7,473โ€…    Votes:  2โ€…
Tags: drivers   nvidia   17.10   nvidia-optimus   nvidia-prime  
Link: ๐Ÿ” See Original Answer on Ask Ubuntu โง‰ ๐Ÿ”—

Title: No Audio Over HDMI on NVIDIA GeForce GTX 1050 Ti
ID: /2018/08/06/No-Audio-Over-HDMI-on-NVIDIA-GeForce-GTX-1050-Ti
Created: August 6, 2018    Edited:  September 26, 2018
Upload: September 20, 2023    Layout:  post
TOC: false    Navigation:  false    Copy to clipboard:  false

Note this is for a GTX 970M but applies to 1060 and others.

The problem for me with the setpci route is multiple screen resets as lightdm is reloaded. Perhaps because I have three monitors:

The larger problem is complexity of setting up systemd and bash scripts.

The c language, kernel based solution found on this link: is far superior. Iโ€™ve included the bulk of the link below with some modifications to my platform.

My system specs:

i7-6700HQ + GTX 970M
Linux kernel version: 4.13.0-26-generic
Nvidia driver Version: 384.130
OS: Ubuntu 16.04.5 LTS

I can confirm that kernel module, posted by Maik Freudenberg [Comment 27], is working fine on my system. Thank you for the fix. The HDMI audio device now works as it should.

I download and extracted the file nvhda.tar.xz. I created the directory ~/nVidia for extraction.

Run commands in terminal:

cd ~/nVidia
sudo make install
echo nvhda | sudo tee -a /etc/initramfs-tools/modules
echo "options nvhda load_state=1" | sudo tee /etc/modprobe.d/nvhda.conf
sudo update-initramfs -u # This updated newest kernel 4.15.0-26
sudo update-initramfs -u -k `uname -r` # Update booted 4.13.0-36

With this fix, I did not notice any problems with power management or system stability. HDMI audio works at system startup, after resume from sleep, after plugging/unplugging HDMI cable.

โ‡ง Typing guillemets (angle quotes, ยซยป) in Russian and English keyboards Which temperature belongs to which sensor?  โ‡ฉ