diff --git a/root/defaults/startwm.sh b/root/defaults/startwm.sh index 8f598c45..56010daa 100755 --- a/root/defaults/startwm.sh +++ b/root/defaults/startwm.sh @@ -1,3 +1,11 @@ #!/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 /usr/bin/openbox-session > /dev/null 2>&1