Skip to content

Commit 59b21bb

Browse files
committed
update nvidia detection to handle hosts that use runtime with no GPU
1 parent 0846969 commit 59b21bb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

root/defaults/startwm.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
# Enable Nvidia GPU support if detected
4-
if which nvidia-smi; then
4+
if which nvidia-smi > /dev/null 2>&1 && ls -A /dev/dri 2>/dev/null && [ "${DISABLE_ZINK}" == "false" ]; then
55
export LIBGL_KOPPER_DRI2=1
66
export MESA_LOADER_DRIVER_OVERRIDE=zink
77
export GALLIUM_DRIVER=zink

0 commit comments

Comments
 (0)