linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] fix spurious wake from suspend to freeze caused by ACPI battery driver
@ 2014-05-28  7:23 Zhang Rui
  2014-05-28  7:23 ` [PATCH 1/4] PM: unregister the wakeup source when disabling a device' wakeup capability Zhang Rui
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Zhang Rui @ 2014-05-28  7:23 UTC (permalink / raw)
  To: linux-pm; +Cc: rafael.j.wysocki, anton, Zhang Rui

Hi, all,

There is a bug report complaining about spurious wake from suspend to freeze.
And I can reproduce the problem on a Toshiba PORTEGE Z830 ultrabook.
https://bugzilla.kernel.org/show_bug.cgi?id=76221

The root cause is that,
1. ACPI battery device receives an ACPI notification about battery remaining
capacity change every 10 seconds.
2. commit 948dcf96622814d2a850a12851d27824530a9747 registers a wakeup source
for every power supply device, to prevent the system from sleeping when there
is a power supply event.

And this results in that the ACPI notification wakes the system up from
suspend-to-freeze shortly.

As ACPI battery driver has the knowledge of whether an important battery change
happens, e.g. battery remaining capacity critical low, etc, it is reasonable
to have its own wakeup source and wakeup the system only when necessary.
And this patch set is made to fix the problem in this way.

Any comments are welcome.

thanks,
rui

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

end of thread, other threads:[~2014-05-28  7:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-28  7:23 [PATCH 0/4] fix spurious wake from suspend to freeze caused by ACPI battery driver Zhang Rui
2014-05-28  7:23 ` [PATCH 1/4] PM: unregister the wakeup source when disabling a device' wakeup capability Zhang Rui
2014-05-28  7:23 ` [PATCH 2/4] ACPI battery: introduce support for POWER_SUPPLY_PROP_CAPACITY_LEVEL Zhang Rui
2014-05-28  7:23 ` [PATCH 3/4] Power_supply: allow power supply devices registered w/o wakeup source Zhang Rui
2014-05-28  7:23 ` [PATCH 4/4] ACPI battery: wakeup the system only when necessary Zhang Rui

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).