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 0846969 commit 59b21bbCopy full SHA for 59b21bb
1 file changed
root/defaults/startwm.sh
@@ -1,7 +1,7 @@
1
#!/bin/bash
2
3
# Enable Nvidia GPU support if detected
4
-if which nvidia-smi; then
+if which nvidia-smi > /dev/null 2>&1 && ls -A /dev/dri 2>/dev/null && [ "${DISABLE_ZINK}" == "false" ]; then
5
export LIBGL_KOPPER_DRI2=1
6
export MESA_LOADER_DRIVER_OVERRIDE=zink
7
export GALLIUM_DRIVER=zink
0 commit comments