Comment 1 for bug 1945219

Revision history for this message
Don van der Haghen (avg-don) wrote :

We are running into the same issue, after adding a small delay of only 0.05 seconds the temperature shown will be +/- 20C lower. This is on Ubuntu 22.04.3 LTS.

root@hostname:~# landscape-sysinfo |grep Temperature
  Temperature: 59.0 C

But when I modify landscape-sysinfo from:
---------
if __name__ == "__main__":
    run(sys.argv[1:], reactor)
---------
To:
---------
if __name__ == "__main__":
    import time
    time.sleep(0.05)
    run(sys.argv[1:], reactor)
---------

The temperature shown will then be 21C lower:
root@hostname:~# landscape-sysinfo |grep Temperature
  Temperature: 38.0 C

The temperature shown will then be the same as the temperature shown by the sensors command:
root@hostname:~# sensors
coretemp-isa-0000
Adapter: ISA adapter
Package id 0: +38.0°C (high = +100.0°C, crit = +100.0°C)