NVIDIA: Difference between revisions
imported>User No edit summary |
imported>Eadwu m Bold some issues that seem to be popping up a lot regarding PRIME offload |
||
Line 20: | Line 20: | ||
==== offload mode ==== | ==== offload mode ==== | ||
Currently only in unstable, to be included in 20.09. In this mode nvidia card is only activated on demand when you run program(s) with specific environment variables, i.e., here's a sample script | '''Currently only in unstable, to be included in 20.09'''. In this mode nvidia card is only activated on demand when you run program(s) with specific environment variables, i.e., here's a sample script | ||
{{file|nvidia-offload|bash|<nowiki> | {{file|nvidia-offload|bash|<nowiki> | ||
Line 40: | Line 40: | ||
</nowiki>}} | </nowiki>}} | ||
Note that on certain laptops and/or if you are using a custom kernel version, you may have issues with your NixOS system finding the primary display. In this case you should also specify modesetting in videoDrivers as well, i.e. | Note that on '''certain laptops''' and/or if you are using a custom kernel version, you may have issues with your NixOS system finding the primary display. In this case you should also specify modesetting in videoDrivers as well, i.e. | ||
{{file|/etc/nixos/configuration.nix|nix|<nowiki> | {{file|/etc/nixos/configuration.nix|nix|<nowiki> |