public inbox for linux-pm@vger.kernel.org
 help / color / mirror / Atom feed
* How to get "wake up reason" for Suspend-to-Idle
@ 2022-08-17  7:08 Kai-Heng Feng
  2022-08-17 10:30 ` Mika Westerberg
  0 siblings, 1 reply; 5+ messages in thread
From: Kai-Heng Feng @ 2022-08-17  7:08 UTC (permalink / raw)
  To: Rafael J. Wysocki; +Cc: Mika Westerberg, Linux PM

We are seeing laptops wake up when Thunderbolt dock gets plugged, or
even wake up on AC plugging.

On Windows these events are logged with "Wakeup Reason", and if the
wakeup event is from unplugging AC, the system will be put to suspend
again.

So I wonder if it's possible to get the "Wakeup Reason" under Linux?

'/sys/power/wakeup_count' seems to be insufficient for this purpose.

Kai-Heng

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-08-17 14:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-17  7:08 How to get "wake up reason" for Suspend-to-Idle Kai-Heng Feng
2022-08-17 10:30 ` Mika Westerberg
2022-08-17 12:53   ` Kai-Heng Feng
2022-08-17 13:35     ` Mika Westerberg
2022-08-17 14:36       ` Kai-Heng Feng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox