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