NVIDIA: Difference between revisions
Artoria2e5 (talk | contribs) →Laptop configuration: hybrid graphics (Nvidia Optimus PRIME): Shorten headings |
Artoria2e5 (talk | contribs) No edit summary |
||
Line 2: | Line 2: | ||
* Nouveau is the stable 3rd-party open-source driver. You probably have it by default. | * Nouveau is the stable 3rd-party open-source driver. You probably have it by default. | ||
* Nvidia's proprietary kernel module. | * Nvidia's proprietary kernel module. Better 3D performance than nouveau. | ||
* Nvidia's open-source kernel module, which is beta-quality and x11-only. | * Nvidia's open-source kernel module, which is beta-quality and x11-only. | ||
* Nvidia's mesa-nvk. | * Nvidia's mesa-nvk. | ||
Line 8: | Line 8: | ||
This article aims to explain how to use all three of the non-default drivers, and how to disable the Nvidia GPU if you don't want it to make heat. | This article aims to explain how to use all three of the non-default drivers, and how to disable the Nvidia GPU if you don't want it to make heat. | ||
= | = The proprietary driver = | ||
NixOS uses a functional package management approach – this section, like many others, will tell you how to change your <code>configuration.nix</code> to define what kind of environment you want on your system. | NixOS uses a functional package management approach – this section, like many others, will tell you how to change your <code>configuration.nix</code> to define what kind of environment you want on your system. | ||
Line 383: | Line 383: | ||
boot.kernelParams = [ "module_blacklist=amdgpu" ]; | boot.kernelParams = [ "module_blacklist=amdgpu" ]; | ||
</syntaxHighlight> | </syntaxHighlight> | ||
= The nvidia-open driver = | |||
The Nvidia open driver is enabled via: | |||
<pre> | |||
services.xserver.videoDrivers = [ "nvidia" ]; | |||
hardware.nvidia.open = true; | |||
</pre> | |||
Really, just copy over the proprietary config above and toggle the "open" option. A lot of the userspace parts are shared, so you still need to enable unfree. | |||
Not everything will work, and it will probably not be as stable as its proprietary sibling. Performance may be lower. | |||
= Disable Nvidia dGPU completely = | = Disable Nvidia dGPU completely = |