From 2028a65409ab0651463a74307f6c5aee8c7095cc Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Thu, 2 Feb 2023 03:32:19 +0100 Subject: [PATCH] Add udev rules for disabling nvidia --- root/etc/udev/rules.d/00-remove-nvidia.rules | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 root/etc/udev/rules.d/00-remove-nvidia.rules diff --git a/root/etc/udev/rules.d/00-remove-nvidia.rules b/root/etc/udev/rules.d/00-remove-nvidia.rules new file mode 100644 index 0000000..4dcea8b --- /dev/null +++ b/root/etc/udev/rules.d/00-remove-nvidia.rules @@ -0,0 +1,11 @@ +# Remove NVIDIA USB xHCI Host Controller devices, if present +ACTION=="add", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x0c0330", ATTR{power/control}="auto", ATTR{remove}="1" + +# Remove NVIDIA USB Type-C UCSI devices, if present +ACTION=="add", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x0c8000", ATTR{power/control}="auto", ATTR{remove}="1" + +# Remove NVIDIA Audio devices, if present +ACTION=="add", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x040300", ATTR{power/control}="auto", ATTR{remove}="1" + +# Remove NVIDIA VGA/3D controller devices +ACTION=="add", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x03[0-9]*", ATTR{power/control}="auto", ATTR{remove}="1"