-
-
Save Denommus/a288372935ad1292f1244353edf6a8b6 to your computer and use it in GitHub Desktop.
Nvidia prime configuration and result
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ pkgs, ... }: | |
{ | |
hardware.opengl.driSupport32Bit = true; | |
hardware.opengl.enable = true; | |
hardware.opengl.extraPackages32 = [ pkgs.pkgsi686Linux.libva ]; | |
hardware.nvidia.prime = { | |
offload.enable = true; | |
nvidiaBusId = "PCI:1:0:0"; | |
intelBusId = "PCI:0:2:0"; | |
}; | |
hardware.nvidia.modesetting.enable = true; | |
hardware.nvidia.nvidiaPersistenced = true; | |
services.xserver.videoDrivers = [ "nvidia" "modesetting" ]; | |
services.xserver.dpi = 96; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/nix/store/6737cq9nvp4k5r70qcgf61004r0l2g3v-bash-4.4-p23/bin/bash | |
export __NV_PRIME_RENDER_OFFLOAD=1 | |
export __NV_PRIME_RENDER_OFFLOAD_PROVIDER=NVIDIA-G0 | |
export __GLX_VENDOR_LIBRARY_NAME=nvidia | |
export __VK_LAYER_NV_optimus=NVIDIA_only | |
exec -a "$0" "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name of display: :0 | |
X Error of failed request: BadValue (integer parameter out of range for operation) | |
Major opcode of failed request: 152 (GLX) | |
Minor opcode of failed request: 24 (X_GLXCreateNewContext) | |
Value in failed request: 0x0 | |
Serial number of failed request: 39 | |
Current serial number in output stream: 40 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+-----------------------------------------------------------------------------+ | |
| NVIDIA-SMI 450.66 Driver Version: 450.66 CUDA Version: 11.0 | | |
|-------------------------------+----------------------+----------------------+ | |
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC | | |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. | | |
| | | MIG M. | | |
|===============================+======================+======================| | |
| 0 GeForce GTX 960M On | 00000000:01:00.0 Off | N/A | | |
| N/A 45C P8 N/A / N/A | 0MiB / 4046MiB | 0% Default | | |
| | | N/A | | |
+-------------------------------+----------------------+----------------------+ | |
+-----------------------------------------------------------------------------+ | |
| Processes: | | |
| GPU GI CI PID Type Process name GPU Memory | | |
| ID ID Usage | | |
|=============================================================================| | |
| No running processes found | | |
+-----------------------------------------------------------------------------+ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Providers: number : 2 | |
Provider 0: id: 0x44 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 3 outputs: 2 associated providers: 0 name:modesetting | |
Provider 1: id: 0xc7 cap: 0x0 crtcs: 0 outputs: 0 associated providers: 0 name:modesetting |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment