No sound over HDMI after Nvidia driver update

It’s pretty lengthy:

$ mhwd -lh -d --pci
06: PCI 17.0: 0106 SATA controller (AHCI 1.0)
  SysFS ID: /devices/pci0000:00/0000:00:17.0
  SysFS BusID: 0000:00:17.0
  Hardware Class: storage
  Device Name: "Onboard - SATA"
  Model: "Intel Cannon Lake Mobile PCH SATA AHCI Controller"
  Vendor: pci 0x8086 "Intel Corporation"
  Device: pci 0xa353 "Cannon Lake Mobile PCH SATA AHCI Controller"
  SubVendor: pci 0x1028 "Dell"
  SubDevice: pci 0x0886 
  Revision: 0x10
  Driver: "ahci"
  Driver Modules: "ahci"
  Memory Range: 0xed320000-0xed321fff (rw,non-prefetchable)
  Memory Range: 0xed326000-0xed3260ff (rw,non-prefetchable)
  I/O Ports: 0x5090-0x5097 (rw)
  I/O Ports: 0x5080-0x5083 (rw)
  I/O Ports: 0x5060-0x507f (rw)
  Memory Range: 0xed325000-0xed3257ff (rw,non-prefetchable)
  IRQ: 125 (85603 events)
  Module Alias: "pci:v00008086d0000A353sv00001028sd00000886bc01sc06i01"

07: PCI 3b00.0: 0200 Ethernet controller
  SysFS ID: /devices/pci0000:00/0000:00:1d.0/0000:3b:00.0
  SysFS BusID: 0000:3b:00.0
  Hardware Class: network
  Model: "Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller"
  Vendor: pci 0x10ec "Realtek Semiconductor Co., Ltd."
  Device: pci 0x8168 "RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller"
  SubVendor: pci 0x1028 "Dell"
  SubDevice: pci 0x0886 
  Revision: 0x15
  Driver: "r8169"
  Driver Modules: "r8169"
  Device File: enp59s0
  I/O Ports: 0x3000-0x30ff (rw)
  Memory Range: 0xed204000-0xed204fff (rw,non-prefetchable)
  Memory Range: 0xed200000-0xed203fff (rw,non-prefetchable)
  IRQ: 17 (581 events)
  HW Address: 3c:2c:30:99:09:d6
  Permanent HW Address: 3c:2c:30:99:09:d6
  Link detected: yes
  Module Alias: "pci:v000010ECd00008168sv00001028sd00000886bc02sc00i00"
  Driver Info #0:
    Driver Status: r8169 is active
    Driver Activation Cmd: "modprobe r8169"
  Attached to: #22 (PCI bridge)

08: PCI 08.0: 0880 System peripheral
  SysFS ID: /devices/pci0000:00/0000:00:08.0
  SysFS BusID: 0000:00:08.0
  Hardware Class: unknown
  Device Name: "Onboard - Other"
  Model: "Intel Xeon E3-1200 v5/v6 / E3-1500 v5 / 6th/7th/8th Gen Core Processor Gaussian Mixture Model"
  Vendor: pci 0x8086 "Intel Corporation"
  Device: pci 0x1911 "Xeon E3-1200 v5/v6 / E3-1500 v5 / 6th/7th/8th Gen Core Processor Gaussian Mixture Model"
  SubVendor: pci 0x1028 "Dell"
  SubDevice: pci 0x0886 
  Memory Range: 0xed32c000-0xed32cfff (rw,non-prefetchable,disabled)
  IRQ: 255 (no events)
  Module Alias: "pci:v00008086d00001911sv00001028sd00000886bc08sc80i00"

09: PCI 15.1: 0c80 Serial bus controller
  SysFS ID: /devices/pci0000:00/0000:00:15.1
  SysFS BusID: 0000:00:15.1
  Hardware Class: unknown
  Device Name: "Onboard - Other"
  Model: "Intel Cannon Lake PCH Serial IO I2C Controller #1"
  Vendor: pci 0x8086 "Intel Corporation"
  Device: pci 0xa369 "Cannon Lake PCH Serial IO I2C Controller #1"
  SubVendor: pci 0x1028 "Dell"
  SubDevice: pci 0x0886 
  Revision: 0x10
  Driver: "intel-lpss"
  Driver Modules: "intel_lpss_pci"
  Memory Range: 0x7f801000-0x7f801fff (rw,non-prefetchable)
  IRQ: 17 (581 events)
  Module Alias: "pci:v00008086d0000A369sv00001028sd00000886bc0Csc80i00"
  Driver Info #0:
    Driver Status: intel_lpss_pci is active
    Driver Activation Cmd: "modprobe intel_lpss_pci"

10: PCI 1f.0: 0601 ISA bridge
  SysFS ID: /devices/pci0000:00/0000:00:1f.0
  SysFS BusID: 0000:00:1f.0
  Hardware Class: bridge
  Device Name: "Onboard - Other"
  Model: "Intel HM470 Chipset LPC/eSPI Controller"
  Vendor: pci 0x8086 "Intel Corporation"
  Device: pci 0xa30d "HM470 Chipset LPC/eSPI Controller"
  SubVendor: pci 0x1028 "Dell"
  SubDevice: pci 0x0886 
  Revision: 0x10
  Module Alias: "pci:v00008086d0000A30Dsv00001028sd00000886bc06sc01i00"

11: PCI 01.0: 0604 PCI bridge (Normal decode)
  SysFS ID: /devices/pci0000:00/0000:00:01.0
  SysFS BusID: 0000:00:01.0
  Hardware Class: bridge
  Model: "Intel Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor PCIe Controller (x16)"
  Vendor: pci 0x8086 "Intel Corporation"
  Device: pci 0x1901 "Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor PCIe Controller (x16)"
  SubVendor: pci 0x1028 "Dell"
  SubDevice: pci 0x0886 
  Revision: 0x07
  Driver: "pcieport"
  IRQ: 122 (no events)
  Module Alias: "pci:v00008086d00001901sv00001028sd00000886bc06sc04i00"

12: PCI 04.0: 1180 Signal processing controller
  SysFS ID: /devices/pci0000:00/0000:00:04.0
  SysFS BusID: 0000:00:04.0
  Hardware Class: unknown
  Device Name: "Onboard - Other"
  Model: "Intel Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Thermal Subsystem"
  Vendor: pci 0x8086 "Intel Corporation"
  Device: pci 0x1903 "Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Thermal Subsystem"
  SubVendor: pci 0x1028 "Dell"
  SubDevice: pci 0x0886 
  Revision: 0x07
  Memory Range: 0xed310000-0xed317fff (rw,non-prefetchable)
  IRQ: 16 (3 events)
  Module Alias: "pci:v00008086d00001903sv00001028sd00000886bc11sc80i00"
  Driver Info #0:
    Driver Status: processor_thermal_device is active
    Driver Activation Cmd: "modprobe processor_thermal_device"

13: PCI 14.3: 0200 Ethernet controller
  SysFS ID: /devices/pci0000:00/0000:00:14.3
  SysFS BusID: 0000:00:14.3
  Hardware Class: network
  Device Name: "Onboard - Ethernet"
  Model: "Intel Wireless-AC 9560 [Jefferson Peak]"
  Vendor: pci 0x8086 "Intel Corporation"
  Device: pci 0xa370 "Wireless-AC 9560 [Jefferson Peak]"
  SubVendor: pci 0x8086 "Intel Corporation"
  SubDevice: pci 0x42a4 
  Revision: 0x10
  Driver: "iwlwifi"
  Driver Modules: "iwlwifi"
  Device File: wlo1
  Memory Range: 0xed31c000-0xed31ffff (rw,non-prefetchable)
  IRQ: 16 (3 events)
  HW Address: e6:4d:1f:49:df:ca
  Permanent HW Address: b4:69:21:52:16:d8
  Link detected: no
  Module Alias: "pci:v00008086d0000A370sv00008086sd000042A4bc02sc80i00"
  Driver Info #0:
    Driver Status: iwlwifi is active
    Driver Activation Cmd: "modprobe iwlwifi"

14: PCI 16.0: 0780 Communication controller
  SysFS ID: /devices/pci0000:00/0000:00:16.0
  SysFS BusID: 0000:00:16.0
  Hardware Class: unknown
  Device Name: "Onboard - Other"
  Model: "Intel Cannon Lake PCH HECI Controller"
  Vendor: pci 0x8086 "Intel Corporation"
  Device: pci 0xa360 "Cannon Lake PCH HECI Controller"
  SubVendor: pci 0x1028 "Dell"
  SubDevice: pci 0x0886 
  Revision: 0x10
  Driver: "mei_me"
  Driver Modules: "mei_me"
  Memory Range: 0xed327000-0xed327fff (rw,non-prefetchable)
  IRQ: 128 (39 events)
  Module Alias: "pci:v00008086d0000A360sv00001028sd00000886bc07sc80i00"
  Driver Info #0:
    Driver Status: mei_me is active
    Driver Activation Cmd: "modprobe mei_me"

15: PCI 100.0: 0302 3D controller
  SysFS ID: /devices/pci0000:00/0000:00:01.0/0000:01:00.0
  SysFS BusID: 0000:01:00.0
  Hardware Class: graphics card
  Model: "nVidia GP106M [GeForce GTX 1060 Mobile]"
  Vendor: pci 0x10de "nVidia Corporation"
  Device: pci 0x1c20 "GP106M [GeForce GTX 1060 Mobile]"
  SubVendor: pci 0x1028 "Dell"
  SubDevice: pci 0x0886 
  Revision: 0xa1
  Driver: "nvidia"
  Driver Modules: "nvidia"
  Memory Range: 0xec000000-0xecffffff (rw,non-prefetchable)
  Memory Range: 0xc0000000-0xcfffffff (ro,non-prefetchable)
  Memory Range: 0xd0000000-0xd1ffffff (ro,non-prefetchable)
  I/O Ports: 0x4000-0x407f (rw)
  Memory Range: 0xed000000-0xed07ffff (ro,non-prefetchable,disabled)
  IRQ: 127 (458726 events)
  Module Alias: "pci:v000010DEd00001C20sv00001028sd00000886bc03sc02i00"
  Driver Info #0:
    Driver Status: nouveau is not active
    Driver Activation Cmd: "modprobe nouveau"
  Driver Info #1:
    Driver Status: nvidia_drm is active
    Driver Activation Cmd: "modprobe nvidia_drm"
  Driver Info #2:
    Driver Status: nvidia is active
    Driver Activation Cmd: "modprobe nvidia"
  Attached to: #11 (PCI bridge)

16: PCI 1b.0: 0604 PCI bridge (Normal decode)
  SysFS ID: /devices/pci0000:00/0000:00:1b.0
  SysFS BusID: 0000:00:1b.0
  Hardware Class: bridge
  Model: "Intel Cannon Lake PCH PCI Express Root Port #21"
  Vendor: pci 0x8086 "Intel Corporation"
  Device: pci 0xa32c "Cannon Lake PCH PCI Express Root Port #21"
  SubVendor: pci 0x1028 "Dell"
  SubDevice: pci 0x0886 
  Revision: 0xf0
  Driver: "pcieport"
  IRQ: 123 (no events)
  Module Alias: "pci:v00008086d0000A32Csv00001028sd00000886bc06sc04i00"

17: PCI 1f.5: 0c80 Serial bus controller
  SysFS ID: /devices/pci0000:00/0000:00:1f.5
  SysFS BusID: 0000:00:1f.5
  Hardware Class: unknown
  Device Name: "Onboard - Other"
  Model: "Intel Cannon Lake PCH SPI Controller"
  Vendor: pci 0x8086 "Intel Corporation"
  Device: pci 0xa324 "Cannon Lake PCH SPI Controller"
  SubVendor: pci 0x1028 "Dell"
  SubDevice: pci 0x0886 
  Revision: 0x10
  Driver: "intel-spi"
  Driver Modules: "intel_spi_pci"
  Memory Range: 0xfe010000-0xfe010fff (rw,non-prefetchable)
  Module Alias: "pci:v00008086d0000A324sv00001028sd00000886bc0Csc80i00"
  Driver Info #0:
    Driver Status: intel_spi_pci is active
    Driver Activation Cmd: "modprobe intel_spi_pci"

18: PCI 1f.3: 0403 Audio device
  SysFS ID: /devices/pci0000:00/0000:00:1f.3
  SysFS BusID: 0000:00:1f.3
  Hardware Class: sound
  Device Name: "Onboard - Sound"
  Model: "Intel Cannon Lake PCH cAVS"
  Vendor: pci 0x8086 "Intel Corporation"
  Device: pci 0xa348 "Cannon Lake PCH cAVS"
  SubVendor: pci 0x1028 "Dell"
  SubDevice: pci 0x0886 
  Revision: 0x10
  Driver: "snd_hda_intel"
  Driver Modules: "snd_hda_intel"
  Memory Range: 0xed318000-0xed31bfff (rw,non-prefetchable)
  Memory Range: 0xed100000-0xed1fffff (rw,non-prefetchable)
  IRQ: 145 (879 events)
  Module Alias: "pci:v00008086d0000A348sv00001028sd00000886bc04sc03i00"
  Driver Info #0:
    Driver Status: snd_hda_intel is active
    Driver Activation Cmd: "modprobe snd_hda_intel"
  Driver Info #1:
    Driver Status: snd_soc_skl is active
    Driver Activation Cmd: "modprobe snd_soc_skl"
  Driver Info #2:
    Driver Status: snd_sof_pci is active
    Driver Activation Cmd: "modprobe snd_sof_pci"

19: PCI 00.0: 0600 Host bridge
  SysFS ID: /devices/pci0000:00/0000:00:00.0
  SysFS BusID: 0000:00:00.0
  Hardware Class: bridge
  Device Name: "Onboard - Other"
  Model: "Intel 8th Gen Core Processor Host Bridge/DRAM Registers"
  Vendor: pci 0x8086 "Intel Corporation"
  Device: pci 0x3ec4 "8th Gen Core Processor Host Bridge/DRAM Registers"
  SubVendor: pci 0x1028 "Dell"
  SubDevice: pci 0x0886 
  Revision: 0x07
  Driver: "skl_uncore"
  Driver Modules: "intel_uncore"
  Module Alias: "pci:v00008086d00003EC4sv00001028sd00000886bc06sc00i00"

20: PCI 12.0: 1180 Signal processing controller
  SysFS ID: /devices/pci0000:00/0000:00:12.0
  SysFS BusID: 0000:00:12.0
  Hardware Class: unknown
  Device Name: "Onboard - Other"
  Model: "Intel Cannon Lake PCH Thermal Controller"
  Vendor: pci 0x8086 "Intel Corporation"
  Device: pci 0xa379 "Cannon Lake PCH Thermal Controller"
  SubVendor: pci 0x1028 "Dell"
  SubDevice: pci 0x0886 
  Revision: 0x10
  Driver: "intel_pch_thermal"
  Driver Modules: "intel_pch_thermal"
  Memory Range: 0xed32b000-0xed32bfff (rw,non-prefetchable)
  IRQ: 16 (3 events)
  Module Alias: "pci:v00008086d0000A379sv00001028sd00000886bc11sc80i00"
  Driver Info #0:
    Driver Status: intel_pch_thermal is active
    Driver Activation Cmd: "modprobe intel_pch_thermal"

21: PCI 15.0: 0c80 Serial bus controller
  SysFS ID: /devices/pci0000:00/0000:00:15.0
  SysFS BusID: 0000:00:15.0
  Hardware Class: unknown
  Device Name: "Onboard - Other"
  Model: "Intel Cannon Lake PCH Serial IO I2C Controller #0"
  Vendor: pci 0x8086 "Intel Corporation"
  Device: pci 0xa368 "Cannon Lake PCH Serial IO I2C Controller #0"
  SubVendor: pci 0x1028 "Dell"
  SubDevice: pci 0x0886 
  Revision: 0x10
  Driver: "intel-lpss"
  Driver Modules: "intel_lpss_pci"
  Memory Range: 0x7f800000-0x7f800fff (rw,non-prefetchable)
  IRQ: 16 (3 events)
  Module Alias: "pci:v00008086d0000A368sv00001028sd00000886bc0Csc80i00"
  Driver Info #0:
    Driver Status: intel_lpss_pci is active
    Driver Activation Cmd: "modprobe intel_lpss_pci"

22: PCI 1d.0: 0604 PCI bridge (Normal decode)
  SysFS ID: /devices/pci0000:00/0000:00:1d.0
  SysFS BusID: 0000:00:1d.0
  Hardware Class: bridge
  Model: "Intel Cannon Lake PCH PCI Express Root Port #14"
  Vendor: pci 0x8086 "Intel Corporation"
  Device: pci 0xa335 "Cannon Lake PCH PCI Express Root Port #14"
  SubVendor: pci 0x1028 "Dell"
  SubDevice: pci 0x0886 
  Revision: 0xf0
  Driver: "pcieport"
  IRQ: 124 (no events)
  Module Alias: "pci:v00008086d0000A335sv00001028sd00000886bc06sc04i00"

23: PCI 14.2: 0500 RAM memory
  SysFS ID: /devices/pci0000:00/0000:00:14.2
  SysFS BusID: 0000:00:14.2
  Hardware Class: unknown
  Device Name: "Onboard - Other"
  Model: "Intel Cannon Lake PCH Shared SRAM"
  Vendor: pci 0x8086 "Intel Corporation"
  Device: pci 0xa36f "Cannon Lake PCH Shared SRAM"
  SubVendor: pci 0x1028 "Dell"
  SubDevice: pci 0x0886 
  Revision: 0x10
  Memory Range: 0xed322000-0xed323fff (rw,non-prefetchable,disabled)
  Memory Range: 0xed32a000-0xed32afff (rw,non-prefetchable,disabled)
  Module Alias: "pci:v00008086d0000A36Fsv00001028sd00000886bc05sc00i00"

24: PCI 02.0: 0300 VGA compatible controller (VGA)
  SysFS ID: /devices/pci0000:00/0000:00:02.0
  SysFS BusID: 0000:00:02.0
  Hardware Class: graphics card
  Device Name: "Onboard - Video"
  Model: "Intel UHD Graphics 630 (Mobile)"
  Vendor: pci 0x8086 "Intel Corporation"
  Device: pci 0x3e9b "UHD Graphics 630 (Mobile)"
  SubVendor: pci 0x1028 "Dell"
  SubDevice: pci 0x0886
  Driver: "i915"
  Driver Modules: "i915"
  Memory Range: 0xeb000000-0xebffffff (rw,non-prefetchable)
  Memory Range: 0x80000000-0x8fffffff (ro,non-prefetchable)
  I/O Ports: 0x5000-0x503f (rw)
  Memory Range: 0x000c0000-0x000dffff (rw,non-prefetchable,disabled)
  IRQ: 129 (795 events)
  Module Alias: "pci:v00008086d00003E9Bsv00001028sd00000886bc03sc00i00"
  Driver Info #0:
    Driver Status: i915 is active
    Driver Activation Cmd: "modprobe i915"

25: PCI 14.0: 0c03 USB Controller (XHCI)
  SysFS ID: /devices/pci0000:00/0000:00:14.0
  SysFS BusID: 0000:00:14.0
  Hardware Class: usb controller
  Device Name: "Onboard - Other"
  Model: "Intel Cannon Lake PCH USB 3.1 xHCI Host Controller"
  Vendor: pci 0x8086 "Intel Corporation"
  Device: pci 0xa36d "Cannon Lake PCH USB 3.1 xHCI Host Controller"
  SubVendor: pci 0x1028 "Dell"
  SubDevice: pci 0x0886
  Revision: 0x10
  Driver: "xhci_hcd"
  Driver Modules: "xhci_pci"
  Memory Range: 0xed300000-0xed30ffff (rw,non-prefetchable)
  IRQ: 126 (268093 events)
  Module Alias: "pci:v00008086d0000A36Dsv00001028sd00000886bc0Csc03i30"
  Driver Info #0:
    Driver Status: xhci_pci is active
    Driver Activation Cmd: "modprobe xhci_pci"

26: PCI 1f.4: 0c05 SMBus
  SysFS ID: /devices/pci0000:00/0000:00:1f.4
  SysFS BusID: 0000:00:1f.4
  Hardware Class: unknown
  Device Name: "Onboard - Other"
  Model: "Intel Cannon Lake PCH SMBus Controller"
  Vendor: pci 0x8086 "Intel Corporation"
  Device: pci 0xa323 "Cannon Lake PCH SMBus Controller"
  SubVendor: pci 0x1028 "Dell"
  SubDevice: pci 0x0886
  Revision: 0x10
  Driver: "i801_smbus"
  Driver Modules: "i2c_i801"
  Memory Range: 0xed324000-0xed3240ff (rw,non-prefetchable)
  I/O Ports: 0xefa0-0xefbf (rw)
  IRQ: 16 (3 events)
  Module Alias: "pci:v00008086d0000A323sv00001028sd00000886bc0Csc05i00"
  Driver Info #0:
    Driver Status: i2c_i801 is active
    Driver Activation Cmd: "modprobe i2c_i801"

18: PCI 1f.3: 0403 Audio device
  SysFS ID: /devices/pci0000:00/0000:00:1f.3
  SysFS BusID: 0000:00:1f.3
  Hardware Class: sound
  Device Name: "Onboard - Sound"
  Model: "Intel Cannon Lake PCH cAVS"
  Vendor: pci 0x8086 "Intel Corporation"
  Device: pci 0xa348 "Cannon Lake PCH cAVS"
  SubVendor: pci 0x1028 "Dell"
  SubDevice: pci 0x0886 
  Revision: 0x10
  Driver: "snd_hda_intel"
  Driver Modules: "snd_hda_intel"
  Memory Range: 0xed318000-0xed31bfff (rw,non-prefetchable)
  Memory Range: 0xed100000-0xed1fffff (rw,non-prefetchable)
  IRQ: 145 (879 events)
  Module Alias: "pci:v00008086d0000A348sv00001028sd00000886bc04sc03i00"
  Driver Info #0:
    Driver Status: snd_hda_intel is active
    Driver Activation Cmd: "modprobe snd_hda_intel"
  Driver Info #1:
    Driver Status: snd_soc_skl is active
    Driver Activation Cmd: "modprobe snd_soc_skl"
  Driver Info #2:
    Driver Status: snd_sof_pci is active
    Driver Activation Cmd: "modprobe snd_sof_pci"
15: PCI 100.0: 0302 3D controller
  SysFS ID: /devices/pci0000:00/0000:00:01.0/0000:01:00.0
  SysFS BusID: 0000:01:00.0
  Hardware Class: graphics card
  Model: "nVidia GP106M [GeForce GTX 1060 Mobile]"
  Vendor: pci 0x10de "nVidia Corporation"
  Device: pci 0x1c20 "GP106M [GeForce GTX 1060 Mobile]"
  SubVendor: pci 0x1028 "Dell"
  SubDevice: pci 0x0886 
  Revision: 0xa1
  Driver: "nvidia"
  Driver Modules: "nvidia"
  Memory Range: 0xec000000-0xecffffff (rw,non-prefetchable)
  Memory Range: 0xc0000000-0xcfffffff (ro,non-prefetchable)
  Memory Range: 0xd0000000-0xd1ffffff (ro,non-prefetchable)
  I/O Ports: 0x4000-0x407f (rw)
  Memory Range: 0xed000000-0xed07ffff (ro,non-prefetchable,disabled)
  IRQ: 127 (458726 events)
  Module Alias: "pci:v000010DEd00001C20sv00001028sd00000886bc03sc02i00"
  Driver Info #0:
    Driver Status: nouveau is not active
    Driver Activation Cmd: "modprobe nouveau"
  Driver Info #1:
    Driver Status: nvidia_drm is active
    Driver Activation Cmd: "modprobe nvidia_drm"
  Driver Info #2:
    Driver Status: nvidia is active
    Driver Activation Cmd: "modprobe nvidia"
  Attached to: #11 (PCI bridge)

It normally is lol.

One of those is probably the problem.

Try these commands:

modprobe -r snd_hda_intel

and

modprobe -r snd_soc_skl

and see if you can see the audio device.

If not, restart your system to reload the modules.

Results:

$ sudo modprobe -r snd_soc_intel
modprobe: FATAL: Module snd_soc_intel not found.
$ sudo modprobe -r snd_soc_skl
$

Sorry, the first one should have been:

modprobe -r snd_hda_intel
$ sudo modprobe -r snd_hda_intel
modprobe: FATAL: Module snd_hda_intel is in use.

Whenever I run systemctl --user restart pulseaudio.service it always falls back to laptop speakers.

If you have the hybrid config installed in mhwd: open /etc/udev/rules.d/90-mhwd-prime-powermanagement.rules and put # in front of this line:

ACTION=="add", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x040300", ATTR{remove}="1"

and then reboot.

11 Likes

Bingo, that was it. )
thanks!

1 Like

If you don’t mind me asking, what does this do? I am trying to learn as much as I can about linux.

1 Like

@ldhacker, thanks for trying help, appreciate it.

1 Like

That udev rule removes the nvidia audio device from the PCI bus. This rule is there because it is a suggested workaround by NVIDIA itself because that audio device (or rather, the driver in the kernel) may prevent the nvidia gpu from going to sleep.

There is a known issue with the audio driver due to which the audio PCI function remains in an active state from the kernel version 4.19 and up. (from commit id: 37a3a98ef601f89100e3bb657fb0e190b857028c ). Upstream kernel changes are being done to fix the issue. In the interim, the Audio PCI function needs to be disabled by using the following command.

https://download.nvidia.com/XFree86/Linux-x86_64/450.66/README/dynamicpowermanagement.html

1 Like

Thank you!

Out of curiosity, would

sed -r '/ACTION==\"add\", SUBSYSTEM==\"pci\", ATTR{vendor}==\"0x10de\", ATTR{class}==\"0x040300\", ATTR{remove}=\"1\"/ s/ACTION==\"add\", SUBSYSTEM==\"pci\", ATTR{vendor}==\"0x10de\", ATTR{class}==\"0x040300\", ATTR{remove}=\"1\"/#ACTION==\"add\", SUBSYSTEM==\"pci\", ATTR{vendor}==\"0x10de\", ATTR{class}==\"0x040300\", ATTR{remove}=\"1\"/' /etc/udev/rules.d/90-mhwd-prime-powermanagement.rules

work in this instance?

I apologize, I know it’s long lol

I don’t know, you could try it. The contents of the file are available in the “Automated Setup” section.

So, it does work you just have to:

mv /etc/udev/rules.d/90-mhwd-prime-powermanagement.rules /etc/udev/rules.d/90-mhwd-prime-powermanagement.rules.old

then

sed -r '/ACTION==\"add\", SUBSYSTEM==\"pci\", ATTR\{vendor\}==\"0x10de\", ATTR\{class\}==\"0x040300\", ATTR\{remove\}=\"1\"/ s/ACTION==\"add\", SUBSYSTEM==\"pci\", ATTR\{vendor\}==\"0x10de\", ATTR\{class\}==\"0x040300\", ATTR\{remove\}=\"1\"/#ACTION==\"add\", SUBSYSTEM==\"pci\", ATTR\{vendor\}==\"0x10de\", ATTR\{class\}==\"0x040300\", ATTR\{remove\}=\"1\"/' /etc/udev/rules.d/90-mhwd-prime-powermanagement.rules.old > /etc/udev/rules.d/90-mhwd-prime-powermanagement.rules
1 Like

About to make a script to do it automatically for people.

Don’t have time to test it at the moment, but this is what I came up with:

#!/bin/sh
FILE1=/etc/udev/rules.d/90-mhwd-prime-powermanagement.rules
FILE2=/etc/udev/rules.d/90-mhwd-prime-powermanagement.rules.old
FILE3=./sample.txt
if test -f "$FILE1"; then
    mv $FILE1 $FILE2
    sed -r '/ACTION==\"add\", SUBSYSTEM==\"pci\", ATTR\{vendor\}==\"0x10de\", ATTR\{class\}==\"0x040300\", ATTR\{remove\}=\"1\"/ s/ACTION==\"add\", SUBSYSTEM==\"pci\", ATTR\{vendor\}==\"0x10de\", ATTR\{class\}==\"0x040300\", ATTR\{remove\}=\"1\"/#ACTION==\"add\", SUBSYSTEM==\"pci\", ATTR\{vendor\}==\"0x10de\", ATTR\{class\}==\"0x040300\", ATTR\{remove\}=\"1\"/' $FILE2 > $FILE1
else
    mv $FILE3 $FILE1
fi

where FILE3 would be a text file in the same directory as the script containing:

# Remove NVIDIA USB xHCI Host Controller devices, if present
ACTION=="add", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x0c0330", ATTR{remove}="1"

# Remove NVIDIA USB Type-C UCSI devices, if present
ACTION=="add", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x0c8000", ATTR{remove}="1"

# Remove NVIDIA Audio devices, if present
#ACTION=="add", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x040300", ATTR{remove}="1"

# Enable runtime PM for NVIDIA VGA/3D controller devices on driver bind
ACTION=="bind", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x030000", TEST=="power/control", ATTR{power/control}="auto"
ACTION=="bind", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x030200", TEST=="power/control", ATTR{power/control}="auto"

# Disable runtime PM for NVIDIA VGA/3D controller devices on driver unbind
ACTION=="unbind", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x030000", TEST=="power/control", ATTR{power/control}="on"
ACTION=="unbind", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x030200", TEST=="power/control", ATTR{power/control}="on"

I have the same problem with my laptop and now my hdmi sound work perfectly.

Thanks a lot :grinning:

2 Likes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.