How to determine what hardware initiated a wake? Better tools required?

From: Malcolm Hoar
Date: Fri Mar 20 2015 - 12:28:59 EST



I have been struggling to solve a problem with a system that
unexpectedly wakes up (from an S5 state).

I have searched the log files to no avail. Mr Google reveals
others will the same problem, but no meaningful solutions as
far as I can tell.

Even when I intentionally wake the system from S5 (via WOL for
example) I am unable to find that event reflected anywhere in
the logs. Booting with acpi.debug_layer=0xffffffff and
acpi.debug_level=0x2 didn't seem to help either.

It seems to me that we need a better diagnostic tool for
tracing the source of wake events; something akin to the
Windows powercfg -lastwake command.

--
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
| Malcolm Hoar "The more I practice, the luckier I get". |
| malch@xxxxxxxxx Gary Player. |
| http://www.malch.com/ |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/