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 83287ff commit a0982f4Copy full SHA for a0982f4
1 file changed
root/defaults/startwm.sh
@@ -1,7 +1,7 @@
1
#!/usr/bin/with-contenv 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