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:
-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"
+