Fix nvidia-smi check when in hybrid graphics mode

This commit is contained in:
Jeremy Soller 2020-06-16 10:24:13 -06:00
parent f1f46a0400
commit 5a8653ef08
No known key found for this signature in database
GPG Key ID: E988B49EE78A7FB1

View File

@ -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