Bug 208853 - PowerDevil does suspend-to-ram after power adaptor unplugging
Summary: PowerDevil does suspend-to-ram after power adaptor unplugging
Status: RESOLVED DUPLICATE of bug 210389
Alias: None
Product: solid
Classification: Frameworks and Libraries
Component: powermanagement-daemon (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Dario Freddi
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-29 10:43 UTC by Frederick Alexander Thomssen
Modified: 2010-10-02 12:50 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Frederick Alexander Thomssen 2009-09-29 10:43:04 UTC
Version:            (using KDE 4.3.1)
Compiler:          gcc (Gentoo 4.4.1 p1.0) 4.4.1 
OS:                Linux
Installed from:    Gentoo Packages

When I have my laptop runnning for quite some time (I guess for at least the "When the system is idle for more than ... min" time) and then unplug the power cord, it will be sent to suspend-to-ram.

I guess the problem is that the timer is running all the time - even when a power cord is plugged in. My suggestion is to only start the timer when the power cord is unplugged.
Comment 1 Hector Martin 2009-10-10 21:04:10 UTC
I can confirm this.

The timer needs to run at all times because the profiles can be configured to do different things after the idle time. This is actually very easy to fix: AC adapter events should reset the idle time timer. More generally, I think any profile switch should cause this timer to be reset.
Comment 2 Dario Freddi 2009-12-01 17:13:17 UTC
Duplicate of another bug. Will be fixed soon anyway

*** This bug has been marked as a duplicate of bug 210389 ***