My laptop started randomly shutting down. For example, I'm skyping and then -boom- all of the sudden the screen goes black and it has shut down. Once I restart it, everything seems to work as normal. This has happened a few times now, but I can't spot any pattern. The laptop, at least externally, doesn't seem to overheat and it's a newer model, so I'm not sure what is going on.
Thus I would like to start a process that logs, say, every half a second, everything that there is to log regarding the laptop, meaning, temperature of the CPU, SSD, the memory consumption, all the running processes etc. You name it!
Are the any tools for this?
Thus, when it shuts down again, I hope to figure be able to figure out what happened by looking at the log and hopefully seeing a pattern immediately before the shut down. Thank you!
Normally journal ist stored in /run/log/journal meaning it is not persistent.
but you can enable it. In /etc/systemd/journald.conf
source
show's you how many boots are stored. the previous boot has always number -1
show's you the journal from previous boot.
For more output in /etc/systemd/system.conf set
Or even
very much output