set NVIDIA as primary gpu
This commit is contained in:
11
.xinitrc
11
.xinitrc
@@ -9,10 +9,15 @@ if [ -d /etc/X11/xinit/xinitrc.d ]; then
|
||||
unset f
|
||||
fi
|
||||
|
||||
#xrandr --setprovideroutputsource modesetting NVIDIA-G0 & # set NVIDIA as primary GPU
|
||||
xrandr --setprivideroutputsource modesetting NVIDIA-0
|
||||
xrandr --auto
|
||||
|
||||
nvidia-settings -l # apply nvidia-settings
|
||||
export __GL_YIELD="USLEEP" # fix for awful diagonal screen tear
|
||||
nvidia-settings -l # apply nvidia-settings
|
||||
export __GL_YIELD="USLEEP" # fix for awful diagonal screen tear
|
||||
export __GL_THREADED_OPTIMIZATIONS=0 # allows gamescope to execute
|
||||
export __GL_SYNC_TO_VBLANK=0 # disable vsync in driver, to aid with some screen tearing
|
||||
#export __GL_MaxFramesAllowed=1 # can reduce lag and maybe stabilise things
|
||||
#export __GL_NextGenCompiler=0 # legacy option, can help with shader compilation
|
||||
|
||||
numlockx on # ensure numlock is on before setting keymap
|
||||
|
||||
|
||||
Reference in New Issue
Block a user