changed command to get gpu temp in script

This commit is contained in:
louis 2015-01-09 00:34:35 +01:00
parent 7da0737bfe
commit abcb357b25

3
scripts/temperatures.default Normal file → Executable file
View File

@ -24,5 +24,6 @@ sensors -A acpitz-virtual-0 | grep "temp1" | awk '{print $2}' | tr -d "+" > ${OU
# nvidia gpu temp # nvidia gpu temp
# nvidia-settings must be run as the user of the x server # nvidia-settings must be run as the user of the x server
GPU=`nvidia-settings -c :0 -t -query GPUCoreTemp | head -n 1` # GPU=`nvidia-settings -c :0 -t -query GPUCoreTemp | head -n 1`
GPU=`nvidia-smi --query-gpu=temperature.gpu --format=csv,noheader`
echo "${GPU}°C" > ${OUTPUTFLDR}/gpu echo "${GPU}°C" > ${OUTPUTFLDR}/gpu