Bug 185913 - if battery is at critical level prior to turning on the laptop, it suspends to ram/disk even with power adaptor
Summary: if battery is at critical level prior to turning on the laptop, it suspends t...
Status: RESOLVED FIXED
Alias: None
Product: solid
Classification: Frameworks and Libraries
Component: powermanagement-daemon (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Dario Freddi
URL:
Keywords:
: 193047 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-03-01 22:59 UTC by Andrei Nistor
Modified: 2010-11-10 00:30 UTC (History)
5 users (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 Andrei Nistor 2009-03-01 22:59:24 UTC
Version:            (using KDE 4.2.0)
OS:                Linux
Installed from:    SuSE RPMs

Today for some reason I closed the lid on my computer and it didn't suspend to ram as configured (it usually works though) and ran until 5% battery was left and then suspended to ram. A few hours later when I got back home the battery was drained. I plugged in the power adapter and turned it on. Just after loading KDE it suspended again (my guess is that it did so because the battery level was below critical - 1%)
Comment 1 Marcos David 2009-03-11 16:14:55 UTC
Same thing happened to me.
I have powerdevil configured to automatically suspend-to-disk when battery reachs critical. 
After it suspends, when I plug the ac adapter and turn it back on, it suspends-to-disk again.
Comment 2 Dario Freddi 2009-12-01 17:26:44 UTC
Scheduling for a fix, even if maybe I already addressed this
Comment 3 Dario Freddi 2009-12-01 18:26:53 UTC
*** Bug 188687 has been marked as a duplicate of this bug. ***
Comment 4 Dario Freddi 2009-12-01 18:32:11 UTC
*** Bug 193047 has been marked as a duplicate of this bug. ***
Comment 5 Clemens Eisserer 2009-12-01 19:43:12 UTC
Are you sure 188687 is actually a dup?
As far as I understand those two have quite different descriptions.
Comment 6 Dario Freddi 2009-12-01 19:47:21 UTC
Yes, the issue is that the "on critical battery" action is taken regardless of the powercord state.
Comment 7 Dario Freddi 2009-12-08 14:25:05 UTC
I actually did address this, can anybody confirm the issue on 4.3.3+?
Comment 8 Clemens Eisserer 2009-12-08 15:23:47 UTC
I'll have a look
Comment 9 Andrei Nistor 2009-12-08 16:41:01 UTC
On kde 4.4-beta1 it seems after my laptop goes into standby, after I turn it back on it immediately goes to standby(again).

should I file a new bug about this?
Comment 10 Clemens Eisserer 2009-12-20 01:43:22 UTC
I still experience Bug 188687 (on 4.3.3), therefor I un-dupped it again.
Comment 11 Vincent Petry 2010-04-21 14:18:51 UTC
It just happened to me a few minutes ago. I'm using KDE 4.4.2 from the openSUSE 11.2 KDE 4 Factory repository.

It happened to me numerous times. It is annoying because there is another bug, in Powerdevil I believe, that makes it hog the CPU while idle, so sometimes when I let my laptop sitting idle on battery, it will drain the battery pretty quickly and go to hibernate mode. Then, when I plug the AC, I need to wait a few minutes for the battery to load, else if I turn it on too early, it will jump back to hibernate mode.

I guess there might be a priority issue in powerdevil, so that the event "battery low" will be processed before the "AC plugged in" one.
Comment 12 Rolf Eike Beer 2010-05-17 21:50:53 UTC
Confirmed here, 4.4.2 openSuSE i686
Comment 13 Dario Freddi 2010-11-10 00:30:45 UTC
Should be fixed in 4.6 (and in 4.5 as well, IIRC)