NVIDIA: Difference between revisions

imported>Boundless-thread
added more information about PRIME and external displayports for dGPUS
imported>User
No edit summary
Line 16: Line 16:
=== Nvidia PRIME ===
=== Nvidia PRIME ===


Official solution by nvidia.  Currently, reverse PRIME does not work. The consequence of this is that if you have external display ports that are only exposed to the dedicated GPU, then running in offload mode  [https://forum.manjaro.org/t/nvidia-render-offloading-help-getting-external-monitor-working/99430/23 will not allow you to use those display ports for external monitors].  If you wish to use the external monitors, you have to use sync mode.
Official solution by nvidia.  Currently, reverse PRIME does not work. The consequence of this is that if you have a special laptop configuration where external display ports are only exposed to the dedicated GPU, then running in offload mode  [https://forum.manjaro.org/t/nvidia-render-offloading-help-getting-external-monitor-working/99430/23 will not allow you to use those display ports for external monitors].  If you wish to use the external monitors in that particular case, you have to use sync mode.


==== offload mode ====
==== offload mode ====
Line 30: Line 30:
</nowiki>}}
</nowiki>}}


Firstly you need to enable the proprietary nvidia driver (or
You need to setup the Bus ID's of the cards as seen below.  
{{file|/etc/nixos/configuration.nix|nix|<nowiki>
{
  services.xserver.videoDrivers = [ "nvidia" ];
  ...
</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.
 
{{file|/etc/nixos/configuration.nix|nix|<nowiki>
{
  services.xserver.videoDrivers = [ "modesetting" "nvidia" ];
  ...
</nowiki>}}
 
Then you need to setup the Bus ID's of the cards as seen below.  


''Note: Bus ID is important and needs to be formatted properly''
''Note: Bus ID is important and needs to be formatted properly''
Line 84: Line 69:
   environment.systemPackages = [ nvidia-offload ];
   environment.systemPackages = [ nvidia-offload ];


  services.xserver.videoDrivers = [ "modesetting" "nvidia" ];
   hardware.nvidia.prime.offload.enable = true;
   hardware.nvidia.prime.offload.enable = true;
   hardware.nvidia.prime = {
   hardware.nvidia.prime = {