[SOLVED] CPU temperature

jbaptiste
jbaptiste New Member Posts: 8
edited January 2019 in UP Board Linux

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

  • ccalde
    ccalde New Member Posts: 348 ✭✭✭

    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)

  • rchauvin
    rchauvin New Member Posts: 14

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

  • ccalde
    ccalde New Member Posts: 348 ✭✭✭

    Hi @rchauvin ,

    Thanks for the alternative!