diff options
author | Natenom <natenom@natenom.name> | 2013-09-28 11:48:05 +0400 |
---|---|---|
committer | Natenom <natenom@natenom.name> | 2013-09-28 11:48:05 +0400 |
commit | a10914c8019b00d2249dea53d86a96a7fff82cff (patch) | |
tree | b8c7dd27d834efda6fc77ffde9ec13196b19924a | |
parent | 321f7a049073baabb1dfb63e7a73dec05f3f0e6f (diff) |
Add nvidia.sh (for gpu temperature)
-rwxr-xr-x | nvidia.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/nvidia.sh b/nvidia.sh new file mode 100755 index 0000000..05b7e0d --- /dev/null +++ b/nvidia.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +if [ $# -gt 0 ] +then + case $1 in + config) + echo "graph_title NVidia Temperature" + echo "graph_vlabel Temperature" + echo "temp.lablel Temperature in Celsius" + exit 0 + ;; + esac +fi + +TEMPERATURE=$(/usr/bin/nvidia-settings -q GPUCoreTemp | sed -nr -e 's/.*([0-9]{2})\./\1/p'|uniq) +#PERF_LEVEL="" +echo "temp.value $TEMPERATURE" + |