I'm having a problem with my notebook suspending, but then waking up when I don't want it to (either immediately, or much later when in the bag - I may have two issues to solve here). But for the moment this question is about troubleshooting: is there a command I can run that will tell me what the trigger was for the last
resume action? E.g. whether a key was pressed, or the power button, whether it was a wake-on-lan signal, whether it was switching from AC power to batter, etc, etc.
It appears that on Windows you can type
powercfg -lastwake to find this out. So I'm looking for the Linux equivalent of that command.
If there is no such command, what do I need to look for, in which log file?
(Mint 16, xfce, Lenova Thinkpad, kernel 3.11.0-12-generic)