We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40f5df9 commit cbe8fe6Copy full SHA for cbe8fe6
1 file changed
root/defaults/startwm.sh
@@ -43,7 +43,7 @@ if [ ! -f "${STARTUP_FILE}" ]; then
43
fi
44
45
# Enable Nvidia GPU support if detected
46
-if which nvidia-smi && [ "${DISABLE_ZINK}" == "false" ]; then
+if which nvidia-smi > /dev/null 2>&1 && ls -A /dev/dri 2>/dev/null && [ "${DISABLE_ZINK}" == "false" ]; then
47
export LIBGL_KOPPER_DRI2=1
48
export MESA_LOADER_DRIVER_OVERRIDE=zink
49
export GALLIUM_DRIVER=zink
0 commit comments