Reading the GPU core temperature

Moderator: BarryK

Post Reply
FeodorF
Posts: 161
Joined: Tue Jul 14, 2020 7:52 pm
Has thanked: 8 times
Been thanked: 24 times

Reading the GPU core temperature

Post by FeodorF »

@BarryK, as my Nvidea graphics card is a passive one (w/o fan) I was really interested in the GPU temperature while running EasyOS 3.4.3 .

This little shell script will tell me the temperature right away.

#!/bin/bash
echo $(cat /sys/devices/pci0000:00/0000:00:01.0/0000:06:00.0/hwmon/hwmon1/temp1_input|awk '{print $0/1000 "°C"}')

You can use 'pfind' with 'hwmon*' to find the path to the GPU core data file of your graphics card if available.

Run this script in the console and you will know the temperature.

GPUtemperature.png
GPUtemperature.png (2.32 KiB) Viewed 405 times
Post Reply

Return to “EasyOS”