Suspend/Battery Problems: Commands for Testing

For limiting journalctl, see: Reclaim disk space - #11 by Rhodez-x (other threads too but this seems best)

journalctl | grep <something> is what you need. Just replace “<something>” with relevant keywords or strings. Like “suspend” or “max170xx_battery” or “error” etc. you may find some interesting tidbits in those strings that it spits out and may want to check those too.

If it’s too much/long, use for example:
journalctl | grep "error" > something.txt

edit to add: another way to go about this is to grep for time if you know when you were suspending and waking up: journalctl | grep 11:25 (or something; or see what time your “error” line has)

2 Likes