Jump to content

otalado

Members
  • Posts

    10
  • Joined

  • Last visited

Reputation Activity

  1. Like
    otalado got a reaction from laibsch in Measuring CPU temperature   
    I searched the github.com looking for possible answers to my problem. WendySanarwanto published a few scripts under the title arm-cpu-temp.  I just looked for the one dedicated to Banana Pi M3 and it turned out that the folders are about the same as for the RPI5B. For anyone interested, I have included a sample bash script below:
    #!/bin/bash echo 'Temperature: '$((`cat /sys/class/thermal/thermal_zone0/temp` /1000)) ' °C' echo "CPU-0 Frequency: "$((`sudo cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq` /1000)) ' Mhz' echo "CPU-1 Frequency: "$((`sudo cat /sys/devices/system/cpu/cpu1/cpufreq/cpuinfo_cur_freq` /1000)) ' Mhz' echo "CPU-2 Frequency: "$((`sudo cat /sys/devices/system/cpu/cpu2/cpufreq/cpuinfo_cur_freq` /1000)) ' Mhz' echo "CPU-3 Frequency: "$((`sudo cat /sys/devices/system/cpu/cpu3/cpufreq/cpuinfo_cur_freq` /1000)) ' Mhz'  
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines