Temperature logging on manjaro?


My system frozen 2 times in last 24 hours (first freeze network was working, so probably CPU etc also; but display nor keyboard was responding). On next freeze, the display was working, but frozen and keyboard and network not working while cpu, disk activity was shown as zero on display). I do not know if any logs persist computer reset, what is that log path. dmesg shows since boot only.


I had kernel linux 5.11 + XFCE and i read that i can monitor the temperature of the hardware so i have tried:

$ systemctl start sensord

Job for sensord.service failed because the control process exited with error code.
See “systemctl status sensord.service” and “journalctl -xe” for details.

$ journalctl -xe

systemd[1]: Starting Log hardware monitoring data…
sensord[3886449]: /usr/sbin/sensord: error while loading shared libraries: librrd.so.8: cannot open shared object file: No such file or directory
systemd[1]: sensord.service: Control process exited, code=exited, status=127/n/a

$ pamac search rrd
$ pamac install rrdtool

$ systemctl start sensord
OK, no error

Decreased logging interval:

sudo sed -i “s|LOG_INTERVAL=30m|LOG_INTERVAL=1m|g” /etc/conf.d/sensord

Can this help something? Where it is logged/is preserved after computer reset?

I do not see it:
sudo grep -Ri sensor /var/log 2>/dev/null

At least it is in: journalctl -u sensord

btw. another way to log temperatures to file is: https://askubuntu.com/a/637483

As far as I can see, it logs to the syslog:

journalctl -u sensord

create a temp.sh in your ~/bin folder. put:
echo "<txt>$(sensors | head -n 3 | tail -1 | sed 's/[.].*//' | sed 's/[^+]*+//')°C</txt>"

add generic sensor to your xfce-panel, point it to the temp.sh file.