NVIDIA: Difference between revisions

imported>User
No edit summary
imported>User
m sync mode
Line 31: Line 31:
Official solution by nvidia.
Official solution by nvidia.


==== static mode ====
==== sync mode ====


In this mode nvidia card is turned on constantly, having impact on laptop battery and health.
Old solution by nvidia. In this mode nvidia card is turned on constantly, having impact on laptop battery and health.


* Pros:
Possible issues:
** better performance than Bumblebee
* Hangs of applications after resume from suspend
** out of box experience
* Wrong DPI calculation (in this case provide dpi manually <syntaxHighlight lang="nix">services.xserver.dpi = 96;</syntaxHighlight>)
** works under existing X11 server
* Black screen after system upgrade
 
* Cons:
** nvidia is turned on constantly
** no wayland support


Firstly you need to enable the proprietary nvidia driver
Firstly you need to enable the proprietary nvidia driver
Line 80: Line 76:


<nowiki>PCI:9:31:0</nowiki>
<nowiki>PCI:9:31:0</nowiki>
{{file|/etc/nixos/configuration.nix|nix|<nowiki>
  ...
  hardware.nvidia.prime.sync.enable = true;
  # Bus ID of the NVIDIA GPU. You can find it using lspci, either under 3D or VGA
  hardware.nvidia.prime.nvidiaBusId = "PCI:1:0:0";
  # Bus ID of the Intel GPU. You can find it using lspci, either under 3D or VGA
  hardware.nvidia.prime.intelBusId = "PCI:0:2:0";
}
</nowiki>}}


An example of a final configuration is below  
An example of a final configuration is below