diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-08-04 21:23:19 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-08-04 21:23:19 +1000 |
| commit | f0ba90d784d2455778c260e0bd2d707af76358fc (patch) | |
| tree | 4613e5921d72655776f147577fc9fd2042331762 /services/SystemUsage.qml | |
| parent | dashboard: fix tab desync (diff) | |
| download | caelestia-shell-f0ba90d784d2455778c260e0bd2d707af76358fc.tar.gz caelestia-shell-f0ba90d784d2455778c260e0bd2d707af76358fc.tar.bz2 caelestia-shell-f0ba90d784d2455778c260e0bd2d707af76358fc.zip | |
systemusage: reorder gpu detection
Try novideo first
Fixes #329
Diffstat (limited to 'services/SystemUsage.qml')
| -rw-r--r-- | services/SystemUsage.qml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/SystemUsage.qml b/services/SystemUsage.qml index 18921e7..a3b92e4 100644 --- a/services/SystemUsage.qml +++ b/services/SystemUsage.qml @@ -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() } |