Bug 208853

Summary: PowerDevil does suspend-to-ram after power adaptor unplugging
Product: [Frameworks and Libraries] solid Reporter: Frederick Alexander Thomssen <mail>
Component: powermanagement-daemonAssignee: Dario Freddi <drf>
Status: RESOLVED DUPLICATE    
Severity: normal CC: marcan
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:

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 ***