hhfeuer / nvhda

Linux kernel module to toggle Nvidia HDMI audio device on/off on notebooks
GNU General Public License v2.0
91 stars 12 forks source link

nvhda

General info

should be obsolete for kernels >=5.4 as the HDA device is enabled per pci quirk. If not, use as a make-shift and report a bug to kernel bugzilla

Linux kernel module to turn on/off Nvidia HD audio device on notebooks. Blatantly copied from Lekensteyn's bbswitch module.

Install

# make
# sudo make install

Install using DKMS

# sudo make -f Makefile.dkms

Uninstall

# sudo make uninstall

or

# sudo make -f Makefile.dkms uninstall

Usage

Since its logic is copied from the bbswitch module, it works like that.

Load Module

# sudo modprobe nvhda

Get status:

# cat /proc/acpi/nvhda

Turn audio on/off:

# sudo tee /proc/acpi/nvhda <<<ON
# sudo tee /proc/acpi/nvhda <<<OFF

Check dmesg for messages.

How it works

See:

ToDo