parent
350148528b
commit
f0ba90d784
1 changed files with 1 additions and 1 deletions
|
|
@ -142,7 +142,7 @@ Singleton {
|
||||||
id: gpuTypeCheck
|
id: gpuTypeCheck
|
||||||
|
|
||||||
running: true
|
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 {
|
stdout: StdioCollector {
|
||||||
onStreamFinished: root.gpuType = text.trim()
|
onStreamFinished: root.gpuType = text.trim()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue