summarylogtreecommitdiffstats
path: root/prime
blob: e5a4c27f104cbda47acdbbb2e2b900a50cb2b07c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash

case "$@" in
	""|"--help"|"-help"|"-h")
		cat <<DOC
This script only launches the command you write after.
Example:
	prime glxinfo | grep OpenGL
It should show you video driver in use.

Notice!
To work this you sould have patched X server. Just install package xorg-server-git.

If this does not help, verify that the NVIDIA driver has loaded correctly:
	grep /var/log/Xorg.0.log -e "EE" -e "WW"
Also, the xrandr --listproviders command should output as a minimum 2 providers, for example, like this:
	Providers: number : 2
	Provider 0: id: 0x29b cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 3 outputs: 2 associated providers: 0 name:modesetting
	Provider 1: id: 0x277 cap: 0x0 crtcs: 0 outputs: 0 associated providers: 0 name:NVIDIA-G0

If you need help, you can write me on AUR or in telegram @Feresey
DOC
exit 0
esac

__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME="nvidia" __VK_LAYER_NV_optimus="NVIDIA_only" exec "$@"