Views:
7,603โ
Votes: 2โ
Tags:
drivers
nvidia
17.10
nvidia-optimus
nvidia-prime
Link:
๐ See Original Answer on Ask Ubuntu โง ๐
URL:
https://askubuntu.com/q/1062956
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 15, 2024
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:
- 50โ TV attached via built-in HDMI hardwired to nVidia card
- 17โ internal display driven by Intel iGPU
- 32โ TV attached via Thunderbolt and driven by Intel iGPU
The larger problem is complexity of setting up systemd
and bash scripts.
The c
language, kernel based solution found on this link: https://bugs.freedesktop.org/show_bug.cgi?id=75985#c333 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
make
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
reboot
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.