[SOLVED] CPU temperature

jbaptistejbaptiste New Member Posts: 8
edited January 18 in CPU

Hello,

How can we retrieve the current CPU temperature of the UP Board through linux command line? Is there any information into /sys/?

Regards,

Comments

  • ccaldeccalde Administrator, Moderator, Emutex Posts: 281 admin

    Hi @jbaptiste ,

    One easy way is to install lm-sensors and check your current temperature for the cores:

    sudo apt-get install lm-sensors

    Then, run 'sensors' command and see something like that:

    acpitz-virtual-0
    Adapter: Virtual device
    temp1: +0.0°C (crit = +90.0°C)

    coretemp-isa-0000
    Adapter: ISA adapter
    Core 0: +50.0°C (high = +90.0°C, crit = +90.0°C)
    Core 1: +51.0°C (high = +90.0°C, crit = +90.0°C)
    Core 2: +49.0°C (high = +90.0°C, crit = +90.0°C)
    Core 3: +47.0°C (high = +90.0°C, crit = +90.0°C)

  • rchauvinrchauvin New Member Posts: 10

    Hi,
    Alternatively, you can also do:
    cat /sys/devices/platform/coretemp.0/hwmon/hwmon0/*_input

  • ccaldeccalde Administrator, Moderator, Emutex Posts: 281 admin

    Hi @rchauvin ,

    Thanks for the alternative!

Sign In or Register to comment.