Since the update to 435.21 the Nvidia audio device gets no longer detected on my machine (GTX 1080 on a Gigabyte GA-X99-UD4P with Fedora 30, Kernel 5.2.13).
lspci | grep Audio
00:1b.0 Audio device: Intel Corporation C610/X99 series chipset HD Audio Controller (rev 05)
04:00.0 Multimedia video controller: Conexant Systems, Inc. CX23885 PCI Video and Audio Decoder (rev 04)
Though strangely (as root)
lspci -H1 | grep Audio
00:1b.0 Audio device: Intel Corporation C610/X99 series chipset HD Audio Controller (rev 05)
02:00.1 Audio device: NVIDIA Corporation GP104 High Definition Audio Controller (rev a1)
04:00.0 Multimedia video controller: Conexant Systems, Inc. CX23885 PCI Video and Audio Decoder (rev 04)
#!/bin/sh
set -e
setpci -s 02:00.0 0x488.l=0x2000000:0x2000000
rmmod nvidia-uvm nvidia-drm nvidia-modeset nvidia
sh -c 'echo 1 > /sys/bus/pci/devices/0000:02:00.0/remove'
sh -c 'echo 1 > /sys/bus/pci/devices/0000:00:03.0/rescan'
modprobe nvidia
I can see the audio devices but somehow something is still wrong:
kernel: input: HDA NVidia HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:03.0/0000:02:00.1/sound/card1/input24
kernel: input: HDA NVidia HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:03.0/0000:02:00.1/sound/card1/input25
kernel: input: HDA NVidia HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:03.0/0000:02:00.1/sound/card1/input26
kernel: input: HDA NVidia HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:03.0/0000:02:00.1/sound/card1/input27
systemd-udevd[734]: controlC1: Failed to open ATTR{/sys/devices/pci0000:00/0000:00:03.0/0000:02:00.1/sound/card1/controlC1/../uevent} for writing: No such file or directory
I have very similar problem, no Nvidia HDMI/DP sound due to all devices missing as seen in messages. In my case no sound started on Sept 08, 2019 (Seems 435.21 was installed on Sept 07 as shown by “dnf history nvidia-driver”). I am using DisplayPort Monitor with sound and Fedora 30 always fully updated. I have never had problem with sound in years until now. I run latest kernels including "-rc"s.
This rather sounds like the packages you’re using installing udev rules to remove all nvidia subdevices which are meant for render offload power management on Turing Optimus notebooks
[url]http://download.nvidia.com/XFree86/Linux-x86_64/435.17/README/dynamicpowermanagement.html[/url]
See the “Known Issues And Workarounds” “Automated Setup” part. If those udev rules exist, complain to the maintainer of the repo.
in file /lib/udev/rules.d/60-nvidia.rules and now sound is working again!
First I had tried the above “dynamicpowermanagement.html” suggestion and made a file “80-nvidia-pm.rules” as given in the “Automatic” section plus the other tiny file. This did not work.