NVIDIA: Difference between revisions

imported>Srestegosaurio
Recommends checking out the NixosHardware project since their modules usually take care of GPU drivers.
imported>Onny
Add note on disable Nvidia dGPU
Line 301: Line 301:
boot.kernelParams = [ "module_blacklist=amdgpu" ];
boot.kernelParams = [ "module_blacklist=amdgpu" ];
</syntaxHighlight>
</syntaxHighlight>
= Disable Nvidia dGPU completley =
Completley disable dGPU, saving battery. Propably not all configurations and module blacklists are required but this worked successfully
{{file|/etc/nixos/configuration.nix|nix|<nowiki>
boot.extraModprobeConfig = ''
  blacklist nouveau
  options nouveau modeset=0
'';
 
services.udev.extraRules = ''
  # 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"
'';
boot.blacklistedKernelModules = [ "nouveau" "nvidia" "nvidia_drm" "nvidia_modeset" ];
</nowiki>}}


[[Category:Video]]
[[Category:Video]]