systemusage: reorder gpu detection

Try novideo first
Fixes #329
This commit is contained in:
2 * r + 2 * t 2025-08-04 21:23:19 +10:00
parent 350148528b
commit f0ba90d784

View file

@ -142,7 +142,7 @@ Singleton {
id: gpuTypeCheck
running: true
command: ["sh", "-c", "if ls /sys/class/drm/card*/device/gpu_busy_percent 2>/dev/null | grep -q .; then echo GENERIC; elif command -v nvidia-smi >/dev/null; then echo NVIDIA; else echo NONE; fi"]
command: ["sh", "-c", "if command -v nvidia-smi &>/dev/null && nvidia-smi -L &>/dev/null; then echo NVIDIA; elif ls /sys/class/drm/card*/device/gpu_busy_percent 2>/dev/null | grep -q .; then echo GENERIC; else echo NONE; fi"]
stdout: StdioCollector {
onStreamFinished: root.gpuType = text.trim()
}