diff --git a/power.sh b/power.sh index c3e6d39..f5e7418 100755 --- a/power.sh +++ b/power.sh @@ -12,7 +12,7 @@ then fi has_dgpu=0 -if nvidia-smi &> /dev/null +if nvidia-smi --query-gpu=power.draw,temperature.gpu --format=csv,noheader &> /dev/null then has_dgpu=1 fi