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

nvidia.sh - github.com/charleszlu/murmur-info.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 1b9098e68bd720d0ed50eeca1d4f4eb03bb3e523 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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 -c 0.0 -q GPUCoreTemp | sed -nr -e 's/.*([0-9]{2})\./\1/p'|uniq)
#PERF_LEVEL=""
echo "temp.value $TEMPERATURE"