Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/charleszlu/murmur-info.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNatenom <natenom@natenom.name>2013-09-28 11:48:05 +0400
committerNatenom <natenom@natenom.name>2013-09-28 11:48:05 +0400
commita10914c8019b00d2249dea53d86a96a7fff82cff (patch)
treeb8c7dd27d834efda6fc77ffde9ec13196b19924a
parent321f7a049073baabb1dfb63e7a73dec05f3f0e6f (diff)
Add nvidia.sh (for gpu temperature)
-rwxr-xr-xnvidia.sh18
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"
+