09-19-2018, 09:27 PM
(This post was last modified: 09-19-2018, 09:55 PM by romtorwator.)
In an unloaded state,
date, time, cores frequency, temperature, PWM:
2018-09-20,00:06:43,408,408,408,408,816,816,39,0
2018-09-20,00:06:44,408,408,408,408,816,816,40,0
2018-09-20,00:06:45,408,408,408,408,816,816,39,190
2018-09-20,00:06:46,408,408,408,408,816,816,40,190
2018-09-20,00:06:47,408,408,408,408,816,816,40,115
2018-09-20,00:06:48,408,408,408,408,408,408,40,115
2018-09-20,00:06:49,408,408,408,408,816,816,39,115
2018-09-20,00:06:50,408,408,408,408,816,816,39,115
2018-09-20,00:06:51,408,408,408,408,816,816,40,115
2018-09-20,00:06:52,408,408,408,408,816,816,40,0
2018-09-20,00:06:53,408,408,408,408,816,816,40,0
2018-09-20,00:06:54,408,408,408,408,816,816,39,0
2018-09-20,00:06:55,408,408,408,408,816,816,39,0
date, time, cores frequency, temperature, PWM:
2018-09-20,00:06:43,408,408,408,408,816,816,39,0
2018-09-20,00:06:44,408,408,408,408,816,816,40,0
2018-09-20,00:06:45,408,408,408,408,816,816,39,190
2018-09-20,00:06:46,408,408,408,408,816,816,40,190
2018-09-20,00:06:47,408,408,408,408,816,816,40,115
2018-09-20,00:06:48,408,408,408,408,408,408,40,115
2018-09-20,00:06:49,408,408,408,408,816,816,39,115
2018-09-20,00:06:50,408,408,408,408,816,816,39,115
2018-09-20,00:06:51,408,408,408,408,816,816,40,115
2018-09-20,00:06:52,408,408,408,408,816,816,40,0
2018-09-20,00:06:53,408,408,408,408,816,816,40,0
2018-09-20,00:06:54,408,408,408,408,816,816,39,0
2018-09-20,00:06:55,408,408,408,408,816,816,39,0
Code:
#!/bin/sh
while true :
do
now=$(date "+%F,%H:%M:%S")
temp=$(cat /sys/devices/virtual/thermal/thermal_zone0/temp)
freq0=$(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq)
freq1=$(cat /sys/devices/system/cpu/cpu1/cpufreq/scaling_cur_freq)
freq2=$(cat /sys/devices/system/cpu/cpu2/cpufreq/scaling_cur_freq)
freq3=$(cat /sys/devices/system/cpu/cpu3/cpufreq/scaling_cur_freq)
freq4=$(cat /sys/devices/system/cpu/cpu4/cpufreq/scaling_cur_freq)
freq5=$(cat /sys/devices/system/cpu/cpu5/cpufreq/scaling_cur_freq)
pwm1=$(cat /sys/class/hwmon/hwmon0/pwm1)
echo $now,$(( freq0 /1000 )),$(( freq1 /1000 )),$(( freq2 /1000 )),$(( freq3 /1000 )),$(( freq4 /1000 )),$(( freq5 /1000 )),$(( temp / 1000 )),$(( pwm1 )) >> /var/log/temperature.log
sleep 1
done
_____________________________________________________________________________________________________________________________________________
my SOHO NAS RockPro64 4GB v2.1 / eMMC 32GB / PCIe -> 4*SATA Marvell 88SE9235 / SD-card 64 GB / NAS Casing / image Debian Stretch Minimal / Kernel 4.4.xxx ayufan
my Multimedia desktops: ASUS H310T G5500, ODROIDs -XU4, -XU3, -C2, -C1;
my trash BananaPi; RPi B, B+; ODROID-W
my SOHO NAS RockPro64 4GB v2.1 / eMMC 32GB / PCIe -> 4*SATA Marvell 88SE9235 / SD-card 64 GB / NAS Casing / image Debian Stretch Minimal / Kernel 4.4.xxx ayufan
my Multimedia desktops: ASUS H310T G5500, ODROIDs -XU4, -XU3, -C2, -C1;
my trash BananaPi; RPi B, B+; ODROID-W