From ddb6db7d713eb311eea69c68327f35f29ba70bb5 Mon Sep 17 00:00:00 2001 From: thelamer Date: Thu, 23 May 2024 16:03:37 -0400 Subject: [PATCH] nvidia compat --- root/defaults/startwm.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/root/defaults/startwm.sh b/root/defaults/startwm.sh index b23f5322..4d62bfbb 100755 --- a/root/defaults/startwm.sh +++ b/root/defaults/startwm.sh @@ -1,5 +1,13 @@ #!/bin/bash +# Enable Nvidia GPU support if detected +if which nvidia-smi; then + export LIBGL_KOPPER_DRI2=1 + export MESA_LOADER_DRIVER_OVERRIDE=zink + export GALLIUM_DRIVER=zink +fi + +# Launch DE setterm blank 0 setterm powerdown 0 /usr/bin/icewm-session > /dev/null 2>&1