From 2ff35a55ef010079ba991b38861f4daa278379e6 Mon Sep 17 00:00:00 2001 From: Quinn Date: Thu, 18 Sep 2025 14:19:38 +0200 Subject: [PATCH] set NVIDIA as primary gpu --- .xinitrc | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.xinitrc b/.xinitrc index c40e451..5a28da8 100755 --- a/.xinitrc +++ b/.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