Action on critical battery isn't triggered
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gnome-power |
Fix Released
|
Medium
|
|||
gnome-power-manager (Baltix) |
Fix Released
|
Undecided
|
Unassigned | ||
gnome-power-manager (Ubuntu) |
Fix Released
|
Medium
|
Martin Pitt | ||
Karmic |
Fix Released
|
Medium
|
Martin Pitt |
Bug Description
Binary package hint: gnome-power-manager
I am using Gutsy Tribe 5. On Feisty, everything works as expected.
I am using a Dell Inspiron 510m. Apparently it has two battery bays, although I have only ever had one battery in it.
I have set the preference to shut down on critical and to hibernate on critical. In both cases it just runs down to nothing and powers off.
Related branches
MattJ (mwild1) wrote : | #1 |
Sitsofe Wheeler (sitsofe) wrote : | #2 |
(Could be seen as related to Bug #64751 / Bug #61201 )
Sitsofe Wheeler (sitsofe) wrote : | #3 |
(Might also be related to Bug #113244 )
Oliver Grawert (ogra) wrote : | #4 |
can you check if thats still the case with the most recent version of gnome-power-manager ?
Changed in gnome-power-manager: | |
status: | New → Incomplete |
Fabien Lusseau (fabien-beosfrance) wrote : | #5 |
Same with the last version, see the Bug #136777
It as been nominated for gutsy, but it as been marked as duplicate of this ... -> please nominate it for gutsy !
This bug is critical and confirmed, not incomplete ...
Changed in gnome-power-manager: | |
status: | Incomplete → Confirmed |
MattJ (mwild1) wrote : | #6 |
Yes, same issue with the latest version.
I think I can maybe offer some explanation for (at least my) part of the problem.
The critical_action in gconf is set to 120 seconds of time remaining. As I wrote previously the lowest my remaining time indicator in the g-p-a tooltip never goes below 5 minutes... it disappears after that (it also seems to go in 5-minute steps, ie. 10min, 5min, disappeared). So I am guessing it never internally reaches 120 seconds.
I changed the critical action to 300 seconds (5 minutes), no luck. However when I set it to 360, it now works as it should, hibernating when there are 6 minutes remaining. Switching to percentage-based thresholds is also a workaround for the problem.
This bug is critical as Fabien said, simply because it exists in the default setup and has a very high risk of data loss for unsuspecting users.
Fabien Lusseau (fabien-beosfrance) wrote : | #7 |
Hurry up !!!!
You can't forget this critical bug !!
Jerry McVey (jerrymcvey) wrote : | #8 |
I can confirm this happens on a Thinkpad R50p. Laptop will suspend and hibernate manually, and suspend on lid close (my setting) so power management seems to work. However, saw this problem in the RC and earlier series and wanted to check if it was fixed in the final. In a test run on my system, GPM reported that the battery was critical and it would hibernate in a few minutes (this with under 5 minutes of power left). I was expecting it to do so but instead it simply allowed the entire system to crash. The BIOS power alarm came on as well but GPM didn't do anything other than warn it was going to hibernate, then failed to do so.
Chad Bernier (berniercr) wrote : | #9 |
So that's any easy fix. Just switch it to default to percentages rather than percent. Is there something wrong with that? IT's probably easier than fixing the time reported issue. mine is now set to be critical at 3 and hibernate at 2%, the default percentages. Seeing how i get somewhere between 2-3 minutes per percent when using my big battery, and light load as typical, and I don't use the small one often, this seems very reasonable.
I can't believe one check box fixes this problem, yet no fix has been released. Now i have to fix my bad attempt at fixing this problem. My computer has been hibernating itself very often, haha.
Jurgis Pralgauskis (jurgis-pralgauskis) wrote : | #10 |
Asus Z99H
suspend_to_ram works but suspend_to_disk didn't work on edgy and feysty either (gutsy also :( )
I can see, that battery level is critical, in power-management applet on panel
Where (in what exactly files should I change the settings?)
I found /etc/laptop-
# Should laptop mode tools perform auto-hibernation?
ENABLE_
AUTO_HIBERNATIO
AUTO_HIBERNATIO
I tried to set
ENABLE_
AUTO_HIBERNATIO
AUTO_HIBERNATIO
but no luck :\
still I found sth about hibernate /etc/default/
# Set the following to "platform" if you want to use ACPI to shut down
# your machine on hibernation
HIBERNATE_
costales (costales) wrote : | #11 |
Same problem in nx7300 HP laptop (1,8 Mhz, 1GB Ram, 1GB Swap, 80 GB HD) :(
I can hibernate in System / Quit.
But It doesn't hibernate when the battery is critical.
I change the Configuration Editor changed time for policy, and the percentages. Not works :(
Version: Ubuntu 7.10 Final.
Andrea Corbellini (andrea.corbellini) wrote : | #13 |
I can confirm this bug is critical.
Changed in gnome-power-manager: | |
importance: | Undecided → Critical |
Bart Samwel (bart-samwel) wrote : | #14 |
Note that the laptop-mode.conf settings won't help. Ubuntu has taken the laptop-mode-tools package from Debian, ripped its guts out (the part that listens on ACPI events) and failed to mention this anywhere in the config files. By default, the whole thing is even disabled. Again, no mention in the laptop-mode.conf config file. You have to go into /etc/default/
ubuntu_demon (ubuntu-demon) wrote : | #15 |
to Bart Samwel :
Does Ubuntu's default laptop-mode set commit intervals and such things back to the default to prevent losing 10 minutes of data when battery is critical ? If not we should definitely file a bug for that.
Andreas Fey (info-andreas-fey) wrote : | #16 |
Same on IBM Thinkpad R60 and R60e - when battery is low, nothing happens except the textual notice from power manager. The PC does not shutdown and runs until the battery is absolutely empty.
Daniel Lombraña González (teleyinex) wrote : | #17 |
The same here, my laptop doesn't shutdown when the battery is critical. I have tried to search for those gconf keys that you mention here and in my system they don't exist, at least battery_critical_*.
Anyone can help us?
Daniel Lombraña González (teleyinex) wrote : | #18 |
Hi
I have been checking again all the gconf keys and now it's working. The problem is that the keys are different named, so I couldn't find them. The solution has been to unchecked the use_time_policy. I don't know why is not working with the time policy, but now everything is running.
The thresholds are in a sub folder and there you can change them as you want (time policy and percentage policy thresholds).
Daniel
Andreas Fey (info-andreas-fey) wrote : | #19 |
Hi,
i recently unchecked the gconf key
gnome-power-manager -> general -> use_time_for_policy
on my Thinkpad R60 and R60e; now it seems to work again.
I did this utilizing the application gconf-editor (for those who want to change this value, too).
Andreas
nichri (nichri) wrote : | #20 |
I own a Lenovo 3000V100 which I have now upgraded to Gutsy and faced the same problem (while this was not a problem in the prev version).
I read your comments and noticed that in the file /etc/laptop-
I changed this as below and I am now waiting for my battery to drain to see if it works:
# HIBERNATE_
HIBERNATE_
FYI the /etc/acpi/
I will let u know of the outcome however you can try it yourselves as well.
Nicolas
nichri (nichri) wrote : | #21 |
Unfortunately no luck on the above; the laptop went dead as usual... :(
Ted Gould (ted) wrote : | #22 |
Could you please try to see if the gnome-power-manager commands working for you on your laptop? Specifically:
gnome-power-cmd.sh suspend
That sends the DBUS message to the GNOME Power Manager and uses it's suspend routine.
Daniel Lombraña González (teleyinex) wrote : Re: [Bug 135548] Re: [Gutsy] Action on critical battery isn't triggered - regression | #23 |
I have tried it and it's working, but I'm using s2disk instead of linux
kernel suspend commands because they don't work on my laptop.
Daniel
On Dec 20, 2007 12:54 AM, Ted Gould <email address hidden> wrote:
> Could you please try to see if the gnome-power-manager commands working
> for you on your laptop? Specifically:
>
> gnome-power-cmd.sh suspend
>
> That sends the DBUS message to the GNOME Power Manager and uses it's
> suspend routine.
>
> --
> [Gutsy] Action on critical battery isn't triggered - regression
> https:/
> You received this bug notification because you are a direct subscriber
> of the bug.
>
--
·······
PhD Candidate
Cátedra Ceta-Ciemat de la Universidad de Extremadura
Universidad de Extremadura
·······
Por favor, NO utilice formatos de archivo propietarios para el
intercambio de documentos, como DOC y XLS, sino HTML, RTF, TXT, CSV
o cualquier otro que no obligue a utilizar un programa de un
fabricante concreto para tratar la información contenida en él.
·······
Nicola Gallo (nicola-ga) wrote : Re: [Gutsy] Action on critical battery isn't triggered - regression | #24 |
same bug on dell xps m1330 with gutsy updated daily.
scicane (nicos-scicane) wrote : Re: [Bug 135548] Re: [Gutsy] Action on critical battery isn't triggered - regression | #25 |
Mine also works with either suspend or hibernate; it also works with the
laptop lid closed (goes to sleep mode).
The problem is with sleep when on battery or hibernate when on critical
battery.
On 20/12/2007, Ted Gould <email address hidden> wrote:
>
> Could you please try to see if the gnome-power-manager commands working
> for you on your laptop? Specifically:
>
> gnome-power-cmd.sh suspend
>
> That sends the DBUS message to the GNOME Power Manager and uses it's
> suspend routine.
>
> --
> [Gutsy] Action on critical battery isn't triggered - regression
> https:/
> You received this bug notification because you are a direct subscriber
> of the bug.
>
--
Nicos Christodoulou
SciCane Ltd.
1A Technis Str.
CY-3055 Limassol
Tel. (+357)70006670
Fax (+357)25821239
<email address hidden>
<email address hidden>
This email and its attachments may be confidential and are intended solely
for the use of the individual to whom it is addressed. Any views or opinions
expressed are solely those of the author and do not necessarily represent
those of Scicane Ltd.
If you are not the intended recipient of this email and its attachments, you
must take no action based upon them, nor must you copy or show them to
anyone.
Please contact the sender if you believe you have received this email in
error.
franute (franute) wrote : Re: [Gutsy] Action on critical battery isn't triggered - regression | #26 |
Same problem here with Gutsy on a Quanta mw1.
Doing:
killall -9 gnome-power-
when battery has 11% of power.
as seen in:
http://
http://
got me the file attached.
Should get low power notification at 10%, critical at 3% and action (shutdown) at 2%, but no notification with anyone and no action too.
But executing "gnome-power-cmd.sh shutdown" in a terminal works perfect.
Hope this could help.
Kaur Männamaa (kaurman) wrote : | #27 |
I messed with /etc/laptop-
My config:
#
# Should laptop mode tools perform auto-hibernation?
#
ENABLE_
#
# The hibernation command that is to be executed when auto-hibernation
# is triggered.
#
HIBERNATE_
#
# Auto-hibernation battery level threshold, in percentage of the battery's
# total capacity.
#
AUTO_HIBERNATIO
#
# Enable this to auto-hibernate if the battery reports that its level is
# "critical".
#
AUTO_HIBERNATIO
Gnome-power manager notifies me about the low power and critical status of the battery so maybe it (and not laptop mode) starts the hibernation. In that case the bug has probably been fixed...
Timmie (timmie) wrote : | #28 |
I have the same problem.
Notebook: Asus Z92J (kinda AJ6 series).
I am really missing a comment from the developers here. This is a data loss issue!
scicane (nicos-scicane) wrote : Re: [Bug 135548] Re: [Gutsy] Action on critical battery isn't triggered - regression | #29 |
I used the gconf-editor to turn 'use time-policy' to false as mentioned in
previous comment and the issue was sorted out for me (i.e. no sleeping
automatically on battery and not hibernating on critical battery). However
another minor problem is that when it turned to sleep while left unattended
in battery mode, it went to hibernate as soon as I turned it on. Some
configuration must be there to tell hibernate not to count time when in
sleep mode.
FYI, I own a Lenovo 3000V100.
cheers,
Nicolas
On 14/01/2008, Tim <email address hidden> wrote:
>
> I have the same problem.
> Notebook: Asus Z92J (kinda AJ6 series).
>
> I am really missing a comment from the developers here. This is a data
> loss issue!
>
> --
> [Gutsy] Action on critical battery isn't triggered - regression
> https:/
> You received this bug notification because you are a direct subscriber
> of the bug.
>
--
Nicos Christodoulou
SciCane Ltd.
Changed in gnome-power-manager: | |
assignee: | nobody → ted-gould |
loci (nagy-papa) wrote : Re: [Gutsy] Action on critical battery isn't triggered - regression | #30 |
The same problem on HP nx8220, Gutsy.
No notifications, no actions, notebook discharges to death, even if I unset "use time for policy".
On feisty everything went perfectly.
nmcaramelo (nmcaramelo) wrote : | #31 |
Same problem on Lenovo T61, Gutsy Gibbon.
I have all the notifications but no actions are performed by Power Manager. If I try the commands manually they work.
Cheers,
nmtsunami
scicane (nicos-scicane) wrote : Re: [Bug 135548] Re: [Gutsy] Action on critical battery isn't triggered - regression | #32 |
check earlier comments about gconf-editor changes.
I managed to make it work through that.
chees,
Nicos
On 27/01/2008, nmcaramelo <email address hidden> wrote:
> Same problem on Lenovo T61, Gutsy Gibbon.
>
> I have all the notifications but no actions are performed by Power
> Manager. If I try the commands manually they work.
>
> Cheers,
> nmtsunami
>
> --
> [Gutsy] Action on critical battery isn't triggered - regression
> https:/
> You received this bug notification because you are a direct subscriber
> of the bug.
>
Jakob Unterwurzacher (jakobunt) wrote : Re: [Gutsy] Action on critical battery isn't triggered - regression | #33 |
I also experience this bug, on a Benq Joybook R55.
Unchecking use_time_for_policy did *not* fix this for me.
Raising the time thresholds and checking use_time_for_policy did not either.
I guess confirming the upstream bug ( http://
Changed in gnome-power: | |
status: | Unknown → New |
Spyros Theodoritsis (madmetal) wrote : | #34 |
i have the same problem from gutsy beta until now.
gnome power shows 3 batteries although i have only one and the other two appearing batteries are empty.
so when the battery is low system doesn't suspend as i have set.
system is Compaq Armada E500 laptop with Gutsy latest updates.
appearing to have 3 batteries instead of one
madmetal@
present: no
madmetal@
present: no
madmetal@
present: yes
capacity state: ok
charging state: charged
present rate: 0 mW
remaining capacity: 43000 mWh
present voltage: 16626 mV
maris382 (maris382) wrote : | #35 |
I have the same problem - on an LG T1 Express Dual.
If use_time_for_policy is true it doesn't hibernate before the computer shuts off hard (the power-manager applet runs down to 0% charge and stops showing time estimates before that happends)
Setting use_time_for_policy to false solves the problem.
Thomas Novin (thomasn80) wrote : | #36 |
I have set my system to stand by if power is critical. However, it does nothing, the battery just runs out. I have Hardy Heron, can this be the same bug or should I look elsewhere?
nmcaramelo (nmcaramelo) wrote : Re: [Bug 135548] Re: [Gutsy] Action on critical battery isn't triggered - regression | #37 |
It's the same bug.
This bug have's two problems related, the recognition of the battery status,
it recognizes two or more battery's when you have only one (solved with
Hardy Heron Alpha5 release), and it doesn't trigger any action when the
battery is in critical status (not solved yet).
I hope for a correction as quick as possible.
Best regards,
nmcaramelo
On Fri, Feb 22, 2008 at 10:07 AM, ThomasNovin <email address hidden> wrote:
> I have set my system to stand by if power is critical. However, it does
> nothing, the battery just runs out. I have Hardy Heron, can this be the
> same bug or should I look elsewhere?
>
> --
> [Gutsy] Action on critical battery isn't triggered - regression
> https:/
> You received this bug notification because you are a direct subscriber
> of the bug.
>
Thomas Novin (thomasn80) wrote : Re: [Gutsy] Action on critical battery isn't triggered - regression | #38 |
I've written in my duplicate bug that the workaround with use_time_for_policy did not work for me. This was only true before I had rebooted. Now I got notification about low power, critical power and then also a automatic suspend. Wow! :)
Chad Bernier (berniercr) wrote : Re: [Bug 135548] Re: [Gutsy] Action on critical battery isn't triggered - regression | #39 |
good, you always should reboot. linux will let you reboot just the relevant
portion of the system, but only if you know how. Why do you want it to
suspend on low power? It will just continue to draw power in suspend mode.
It'll then turn off without shutting down properly. I'd rather set the
limits lower and use hibernate mode. It's not like the computer can do
anything useful while suspended. I pretty much never use suspend because it
stops downloads.
On Sun, Feb 24, 2008 at 11:49 AM, ThomasNovin <email address hidden> wrote:
> I've written in my duplicate bug that the workaround with
> use_time_for_policy did not work for me. This was only true before I had
> rebooted. Now I got notification about low power, critical power and
> then also a automatic suspend. Wow! :)
>
> --
> [Gutsy] Action on critical battery isn't triggered - regression
> https:/
> You received this bug notification because you are a direct subscriber
> of the bug.
>
Sense Egbert Hofstede (sense) wrote : Re: [Gutsy] Action on critical battery isn't triggered - regression | #40 |
The same kind of errors are coming back in hardy: bug #194719 and gutsy: bug #154003
Although they're not exactly the same they reporters are complaining about double batteries. Could it have the same cause?
Martin Erik Werner (arand) wrote : | #41 |
I had this error on Gutsy, and in Hardy up to alpha5, on an Acer Travelmate 2451LCi Laptop
The time_policy workaround did nothing for me.
However.
The new alpha 6 has completely solved this issue for me, I get all notifications and computer shuts down automatically.
(Joy!)
manuel (manuel-soto) wrote : | #42 |
Related Bug #61201, first reported on 2006-09-18
Mia Alexiou (efthimia) wrote : | #43 |
I'm running Gutsy Gibbon on a Toshiba Satellite M50.
I found that changing ENABLE_LAPTOP_MODE from false to true in the /etc/default/
Ted Gould (ted) wrote : | #44 |
Marking as fixed. With updated HAL and GPM in Hardy I am no longer seeing this bug.
Changed in gnome-power-manager: | |
status: | Confirmed → Fix Released |
Changed in gnome-power: | |
status: | New → Fix Released |
Martin Erik Werner (arand) wrote : | #45 |
Latest updates for Hardy (alpha6), 3-4 days ago has broken this again for me, no notifications, no actions on low/crit battery.
Martin Erik Werner (arand) wrote : | #46 |
I can also confirm that this is not working for me on the Hardy Beta, fully updated as of now.
Guido Conaldi (guido-conaldi) wrote : | #47 |
Same for me. Hardy beta 64bit on a dell xps m1330. Not working at the moment.
Ted Gould (ted) wrote : | #48 |
For those who are still getting this bug, could you please confirm that GPM is receiving the power button event. If it is not, that is a HAL issue. If GPM is receiving it an not acting this bug should be reopened. To confirm whether GPM is getting the event please follow the instructions here:
https:/
Martin Erik Werner (arand) wrote : | #49 |
I am not completely sure which of the debugging tasks you're after but here goes two (which I'm not too sure how to interpret, either)...
$ dbus-monitor --session "type='
- Gives me no event acknowledgements at all in the terminal, neither on AC (un)plugging, nor on low battery
$ gnome-power-cmd.sh suspend
- Suspends nicely and gives output:
Suspending
Error org.freedesktop
Carsten Schmidt (carsten-sc) wrote : | #50 |
If you have this problem, then try it with unchecking the following keys via gconf-editor:
/apps/gnome-
/apps/gnome-
Martin Erik Werner (arand) wrote : | #51 |
Above suggestion (profile/
Carsten Schmidt (carsten-sc) wrote : | #52 |
You're right. It's still not working here on hardy.
Changed in gnome-power-manager: | |
status: | Fix Released → Confirmed |
Ted Gould (ted) wrote : | #53 |
@arand
Specifically I'm looking for the events that GPM is getting and the debug output from GPM. Under the title "Getting Info from GPM".
https:/
Martin Erik Werner (arand) wrote : | #54 |
- gpm.debug.log.txt Edit (477.7 KiB, text/plain)
Oh sorry, first time I followed that link from my mail client and it didn't jump to the right header.
Anyways, I'm attaching the full gory output of gpm-debug from 100% charge to computer death.
Hope it says something.
Martin Erik Werner (arand) wrote : | #55 |
- gpm.debug.external.events.txt Edit (627 bytes, text/plain)
I'm also attaching a summary of some of the "external" events which took place.
Ted Gould (ted) wrote : Re: [Bug 135548] Re: [Gutsy] Action on critical battery isn't triggered - regression | #56 |
@arand
Thanks for all of the data, that helps a lot. From looking at the log
it looks like the last time that GPM gets notified of a battery level
that it's at 8 percent and that the discharge rate doesn't make it
"action level". This is likely caused by the battery being old.
What I'd recommend is adjusting your thresholds so that actions happen
sooner on your battery. The values that are probably most useful are
the GConf keys:
/apps/
/apps/gnome-
/apps/gnome-
For you it seems like 10, 15 and 20 would probably be good values.
Ted Gould (ted) wrote : Re: [Gutsy] Action on critical battery isn't triggered - regression | #57 |
I'm going to mark this bug as "Incomplete" right now as asac's problem seems to be caused by hardware (old battery).
If there are other people still seeing this on Hardy (which has the upstream fix) could you please post similar logs and reopen the bug.
Thank you. Ted.
Changed in gnome-power-manager: | |
status: | Confirmed → Incomplete |
Chad Bernier (berniercr) wrote : Re: [Bug 135548] Re: [Gutsy] Action on critical battery isn't triggered - regression | #58 |
its a good idea to buy a new battery every 18 months or so.
On Fri, Apr 4, 2008 at 7:49 PM, Ted Gould <email address hidden> wrote:
> I'm going to mark this bug as "Incomplete" right now as asac's problem
> seems to be caused by hardware (old battery).
>
> If there are other people still seeing this on Hardy (which has the
> upstream fix) could you please post similar logs and reopen the bug.
>
> Thank you. Ted.
>
>
> ** Changed in: gnome-power-manager (Ubuntu)
> Status: Confirmed => Incomplete
>
> --
> [Gutsy] Action on critical battery isn't triggered - regression
> https:/
> You received this bug notification because you are a direct subscriber
> of the bug.
>
Martin Erik Werner (arand) wrote : Re: [Gutsy] Action on critical battery isn't triggered - regression | #59 |
- gpm.debug.log2excerpt.txt Edit (32.0 KiB, text/plain)
Alright, changing threshold percent levels AND profile/time/policy did the trick for me, so presumably the problem for me lies in the inability to use time policy
- This DID work for me somewhere on alpha6 (see former comment by me [2008-03-31]), and since I have values set to low=1200, crit=300, act=120, then before going down to 8% (time=89) and freezing it should pass all or at least the low and crit thresholds, which should give a notification.
Also, I'm getting a slightly weird output from the debug when using only percentage, it seems to drop from 19% to 6% all of a sudden.
The computer also has trouble hibernating but that I blame on the debugging, since when doing the same thing without debug it hibernates fine.
I'm attaching part of this log, if anybody's interested (which also shows failed hibernation attempts and percentage going down to 0% [which seems to upset gpm a bit])
@Chad Bernier: Holding out until I buy a new laptop.
Chad Bernier (berniercr) wrote : Re: [Bug 135548] Re: [Gutsy] Action on critical battery isn't triggered - regression | #60 |
ok wish you luck. Mine was fixed a long time ago back in this bug. I just
set it to 2% instead of time, and it works great. My sister's windows
laptop doesn't even warn you, it will just fall asleep. My hardy warns me
several times before actually hibernating.
I don't think i will be getting a new laptop for almost a year, and even
with a new one, the old one would be good for plenty of things. good luck
with whatever your plan is, hope you find a good deal.
On Fri, Apr 4, 2008 at 10:23 PM, arand <email address hidden> wrote:
> Alright, changing threshold percent levels AND profile/time/policy did
> the trick for me, so presumably the problem for me lies in the inability
> to use time policy
>
> - This DID work for me somewhere on alpha6 (see former comment by me
> [2008-03-31]), and since I have values set to low=1200, crit=300,
> act=120, then before going down to 8% (time=89) and freezing it should
> pass all or at least the low and crit thresholds, which should give a
> notification.
>
> Also, I'm getting a slightly weird output from the debug when using only
> percentage, it seems to drop from 19% to 6% all of a sudden.
>
> The computer also has trouble hibernating but that I blame on the
> debugging, since when doing the same thing without debug it hibernates
> fine.
>
> I'm attaching part of this log, if anybody's interested (which also
> shows failed hibernation attempts and percentage going down to 0% [which
> seems to upset gpm a bit])
>
> @Chad Bernier: Holding out until I buy a new laptop.
>
> ** Attachment added: "gpm.debug.
> http://
>
> --
> [Gutsy] Action on critical battery isn't triggered - regression
> https:/
> You received this bug notification because you are a direct subscriber
> of the bug.
>
Jurgis Pralgauskis (jurgis-pralgauskis) wrote : Re: [Gutsy] Action on critical battery isn't triggered - regression | #61 |
no luck again -- no ballon messages (they appeared at least in gutsy)
and no luck with all of the suggestions (log's will be attached)
hardy beta (upgraded as of 2007 04 06)
Gnome Power Manager 2.22.1
Jurgis Pralgauskis (jurgis-pralgauskis) wrote : | #62 |
- gpm.debug.log.GPM_oncritical=Hibernate---ENABLE_AUTO_HIBERNATION=0.txt Edit (187.0 KiB, text/plain)
with standart config
(Asus Z99H series)
Jurgis Pralgauskis (jurgis-pralgauskis) wrote : | #63 |
- gpm.debug.log.GPM_oncritical=Hibernate---ENABLE_AUTO_HIBERNATION=1.txt Edit (92.4 KiB, text/plain)
changed laptop-mode.conf
ENABLE_
HIBERNATE_
AUTO_HIBERNATIO
AUTO_HIBERNATIO
but no luck
Jurgis Pralgauskis (jurgis-pralgauskis) wrote : | #64 |
- gpm.debug.log.GPM_oncritical=Suspend.txt Edit (35.0 KiB, text/plain)
in gpm applet Preferences changed on critical to "suspend (to ram)",
as much as I remember it worked in gutsy
no luck
Jurgis Pralgauskis (jurgis-pralgauskis) wrote : | #65 |
- gpm.debug.log.use_time_for_policy=off.txt Edit (326.3 KiB, text/plain)
via gconf-editor
gnome-power-manager -> general -> use_time_for_policy = off
the same sad ending...
Ted Gould (ted) wrote : Re: [Bug 135548] Re: [Gutsy] Action on critical battery isn't triggered - regression | #66 |
@Jurgis
Could you please dump your gconf keys also:
https:/
Thank you. Ted.
Jurgis Pralgauskis (jurgis-pralgauskis) wrote : Re: [Gutsy] Action on critical battery isn't triggered - regression | #67 |
Angelo Lisco (angystardust-gmail) wrote : | #68 |
Hi Ted,
this is a serious regression!
I can confirm that in Gutsy worked. No matter if my battery is broken (30% capacity)...I expect that g-p-m warns me and shuts my laptop down gracefully (just like it did in gutsy).
If I can help somehow, let me know.
Changed in gnome-power-manager: | |
status: | Incomplete → Confirmed |
Jurgis Pralgauskis (jurgis-pralgauskis) wrote : | #69 |
this is little OT, but i must admit, that "low battery" notification still appears, but quite early (todai it appeared at ~17% = 19 minutes), but I hibernated yesterday with non full battery, so the numbers might misrepresent full battery capacity)
still, where can I set the limit for "low battery" message?
Aaron Whitehouse (aaron-whitehouse) wrote : | #70 |
Ted,
I have tested each milestone of Hardy. The RC worked for me but the final does not. My battery is fairly old. Did anything change between the RC and the final, or is it just a coincidence that things aren't working for me now?
Aaron Whitehouse (aaron-whitehouse) wrote : | #71 |
Aaron Whitehouse (aaron-whitehouse) wrote : | #72 |
- Output of gnome-power-bugreport.sh Edit (2.5 KiB, text/plain)
I'm currently logging all gpm output as per:
https:/
and running down the battery - I'll attach this when it is complete.
Aaron Whitehouse (aaron-whitehouse) wrote : | #73 |
Here is a side thought that may solve this problem for some: why not increase the frequency of battery polling as the level gets lower? There is probably not a huge advantage in knowing each percent point change between 90% and 80%, but it sounds as though it would make a difference under 20%.
Aaron Whitehouse (aaron-whitehouse) wrote : | #74 |
Aaron Whitehouse (aaron-whitehouse) wrote : | #75 |
- gpm.debug.log_light-use.txt Edit (194.4 KiB, text/plain)
This is the log of the battery running out when I am hardly using it (to keep the CPU at 600MHz). I still get no warnings or anything and the machine just dies.
This makes me think that something has changed since the RC. The RC gave me several warnings before Hibernating. I doubt that my battery has deteriorated that much over that time.
nmcaramelo (nmcaramelo) wrote : Re: [Bug 135548] Re: [Gutsy] Action on critical battery isn't triggered - regression | #76 |
Everything is working now with the last version of Hardy.
nmcaramelo
On Sun, Apr 27, 2008 at 2:35 AM, Aaron Whitehouse <email address hidden>
wrote:
> Ted,
>
> I have tested each milestone of Hardy. The RC worked for me but the
> final does not. My battery is fairly old. Did anything change between
> the RC and the final, or is it just a coincidence that things aren't
> working for me now?
>
> --
> [Gutsy] Action on critical battery isn't triggered - regression
> https:/
> You received this bug notification because you are a direct subscriber
> of the bug.
>
scicane (nicos-scicane) wrote : | #77 |
To be honest this is the last time I upgrade to a new version of ubuntu as
soon as it's released. I face a lot of problems (like I did when I switched
to 'gutsy').
The worst of all problems comes to sleep/hibernate. I was satisfied with
gutsy on this (after ofcourse spending a lot of time fixing it) and as soon
as I did the upgrade to hardy, the problems came back. Sleep and hibernate
go well but when when resuming the screen was black and while the keyboard
was not frozen there was not much to do but to just severely shut it down
and start again.
I just now after deciding to remove everything related to apm package, I
search on the repository and came up to uswsusp. After removing apm (don't
know if helped removing) and installing this package, I run the
configuration package and selected /dev/sda2 (which is my swap partition)
and voila! I tried both suspend and hibernate and work like a charm. And
guess what! it's faster on sleeping / resuming than it was when working on
gutsy.
FYI, my system is a lenovo 3000 V1000 laptop with 1.83GHz, 100Gb SATA HDD,
12" tft.
if you do a mistake on configuration of uswsusp you can re-run the
configuration with 'sudo dpkg-reconfigure uswsusp'.
regards,
Nicolas
2008/5/4 nmcaramelo <email address hidden>:
> Everything is working now with the last version of Hardy.
>
> nmcaramelo
>
> On Sun, Apr 27, 2008 at 2:35 AM, Aaron Whitehouse <<email address hidden>
> >
> wrote:
>
> > Ted,
> >
> > I have tested each milestone of Hardy. The RC worked for me but the
> > final does not. My battery is fairly old. Did anything change between
> > the RC and the final, or is it just a coincidence that things aren't
> > working for me now?
> >
> > --
> > [Gutsy] Action on critical battery isn't triggered - regression
> > https:/
> > You received this bug notification because you are a direct subscriber
> > of the bug.
> >
>
>
> ** Attachment added: "unnamed"
> http://
>
> --
> [Gutsy] Action on critical battery isn't triggered - regression
> https:/
> You received this bug notification because you are a direct subscriber
> of the bug.
>
--
Nicos Christodoulou
SciCane Ltd.
P.O. Box 70214
CY-4162 K. Polemidia
Limassol Cyprus
Tel. (+357)70006670
Fax (+357)25821239
<email address hidden>
<email address hidden>
This email and its attachments may be confidential and are intended solely
for the use of the individual to whom it is addressed. Any views or opinions
expressed are solely those of the author and do not necessarily represent
those of Scicane Ltd.
If you are not the intended recipient of this email and its attachments, you
must take no action based upon them, nor must you copy or show them to
anyone.
Please contact the sender if you believe you have received this email in
error.
manuel (manuel-soto) wrote : Re: [Gutsy] Action on critical battery isn't triggered - regression | #78 |
- gnome-power-bugreport.sh Edit (2.4 KiB, text/plain)
The problem persist in 8.04. Thins that I've notice recently
1.- gnome-power-
2.- Just few secunds before the laptop turn off the estimated remaining time graph raise up like a "charge recovered"
Jurgis Pralgauskis (jurgis-pralgauskis) wrote : | #79 |
I tried it last week and it worked ok forme - wow, thanks! :)
probably the problem consists of several things, as manuel still experiences it
Florian Zeitz (florian-zeitz) wrote : | #80 |
- gpm.debug.log.txt Edit (1.4 MiB, text/plain)
Shutting down on low battery hasn't ever worked for me in hardy.
This is the output of g-p-m while on batterie till the system turns of because the batterie is completely drained.
Roberto Scelzo (robertoscelzo) wrote : | #81 |
Everything always worked for me (after some charge/discharge cycles enough to create a battery profile...) but, after i've enabled laptop-mode-tools something changed: I get some notifications about my battery discharge but, after I get the critical warning notification the system simply doesn't hibernate and when the battery is empty the system powers off :-(
I tried several solutions but now I'm starting to think that something goes weird when one has laptop-mode-tools running together with g-p-m...
Should I tell laptop-mode-tools to manage the critical battery level event?
And, if I enable the above in laptop-mode-tools, will the "hibernate when lid closed" event work?
Robbie
Aaron Whitehouse (aaron-whitehouse) wrote : Re: [Bug 135548] Re: [Gutsy] Action on critical battery isn't triggered - regression | #82 |
Things seem to fluctuate for me in Hardy. As far as I can tell, it
sometimes works and sometimes doesn't. I would love to have somebody
help us isolate the problem.
Roberto Scelzo (robertoscelzo) wrote : Re: [Gutsy] Action on critical battery isn't triggered - regression | #83 |
The other day I tried a debug as often suggested here and I found that g-p-m was configured to trigger the "critical action" when 2 minutes was left but g-p-m keeps on showing 5 minutes even when acpi tells that the battery percentage is 0%
So I adjusted the thresholds to fit what I think is correct for my battery/laptop and now, when I have less than 5 minutes remaining my machine gets hibernated.
manuel (manuel-soto) wrote : Re: [Bug 135548] Re: [Gutsy] Action on critical battery isn't triggered - regression | #84 |
2008/5/26 Roberto Scelzo <email address hidden>:
> The other day I tried a debug as often suggested here and I found that g-p-m was configured to trigger the "critical action" when 2 minutes was left but g-p-m keeps on showing 5 minutes even when acpi tells that the battery percentage is 0%
> So I adjusted the thresholds to fit what I think is correct for my battery/laptop and now, when I have less than 5 minutes remaining my machine gets hibernated.
>
> --
> [Gutsy] Action on critical battery isn't triggered - regression
> https:/
> You received this bug notification because you are a direct subscriber
> of the bug.
>
Hello List,
I did increase the threshold and now the machine take the action
before the critical and insuperable time. Unfortunately my Acer is not
hibernating any more in 8.04 but this is another thread. I did setup
to shutdown and it works.
Later,
Manuel Soto
Anoop P B (anoop-pb) wrote : Re: [Gutsy] Action on critical battery isn't triggered - regression | #85 |
This works for me now on Gutsy with all updates. I have use_profile_time and use_time_for_policy both enabled (default).
I also raised the time thresholds (low, critical, action) to 1560, 960 and 660.
For me, the solution was to go through a couple of charge/discharge cycles without letting it drain through. This helped it to build up a profile of my battery. I think this point should be mentioned somewhere in g-p-m so that the user knows that it doesn't work well until a profile is built up. Alternatively, the system should use a higher threshold value by default (err on the safe side) until a profile is built up.
st33med (st33med) wrote : | #86 |
For me, it also does not trip at 10%. It might be because it is monitoring the time until it reaches the trip point. Highlighting the battery shows about 20-20 minutes less time than the battery actually has, according to the output from acpi.
st33med (st33med) wrote : | #87 |
Sorry, 20-30 minutes less time
Joakim Andersson (jocke) wrote : | #88 |
As far as I could tell from the code, Anoop P B has the correct solution (which I can see from the output of my g-p-m).
If the battery profile of the (primary) battery isn't good enough (accuracy less than 40%), no action will be taken, and no warnings will be shown. This is true even if use_time_for_policy is disabled, which is just plain stupid. It's also quite unacceptable for most cases, since it can cause both data loss and file system corruption if the user doesn't shut down manually in time.
I'm going to make an attempt to fix this later tonight (I'm at work right now) by adding two things:
1. A check that takes actions even with a "bad" profile when use_time_for_policy is disabled.
2. A fallback that will use the percentage instead of time if the profile isn't good enough yet.
If I'm successful, of course I will submit my patch.
I think this bug is actually quite critical since it only affects new users. (New users of gnome, that is. I recently switched from KDE.)
Joakim Andersson (jocke) wrote : | #89 |
- gnome-power-manager_2.22.1-1ubuntu5~ja1.diff.gz Edit (14.3 KiB, text/plain)
As I said in my last comment, I would submit my patch when I was done with it, and here it is.
Cited from the changelog of my patched package:
* Added 11_policy_
fall back to per-percent policy if the battery profile is not good
enough yet. It also ignores the accuracy of the battery profile when
the GCONF key 'use_time_
* Added 12_fix_
notification messages for critical battery. These messages would
always show 0% battery remaining, since the cell unit object was
reset while generating one of the strings used in the message.
(yup, the second point means I found another bug as well)
I'm attaching the .diff.gz file generated by dpkg-build package, since that is the simplest way for me to attach all my changes in one file.
A small disclaimer: I'm no C guru, and this was actually the first thing I did with GTK based code. That means my solutions may not be "correct", but they work for me, as far as I could tell.
5of0 (cincodenada+ubuntu) wrote : | #90 |
I'm running Hardy, upgraded via package manager, with all updates applied, and my computer wasn't hibernating (or notifying) on critical power. I unchecked the "use time" box in gconf, and it's working fine.
Just FYI - it was an issue on my Hardy install.
5of0 (cincodenada+ubuntu) wrote : | #91 |
I would also note that my "time" indication never dropped below 10 minutes (I have a battery that lasts ~4.5 hours), which may explain the lack of warning or action with the time settings.
manuel (manuel-soto) wrote : Re: [Bug 135548] Re: [Gutsy] Action on critical battery isn't triggered - regression | #92 |
2008/6/27 5of0 <<email address hidden>
>:
> I'm running Hardy, upgraded via package manager, with all updates
> applied, and my computer wasn't hibernating (or notifying) on critical
> power. I unchecked the "use time" box in gconf, and it's working fine.
>
> Just FYI - it was an issue on my Hardy install.
>
> --
> [Gutsy] Action on critical battery isn't triggered - regression
> https:/
> You received this bug notification because you are a direct subscriber
> of the bug.
>
As far as I understand Power Manager learn so you have to learn how the
battery works. My Laptop is working now.
This problem exist in Ubuntu and Lenny and was solved in both letting power
manager to learn. Plug the power cord or manually hibernate for a while.
Later,
Manuel Soto
Felipe Figueiredo (philsf) wrote : Re: [Gutsy] Action on critical battery isn't triggered - regression | #93 |
Upstream bug report says it's solved. Why is the solution not patched in Ubuntu?
BTW, the workaround in comment 18 works for me, on a Lenovo 3000 v100 (Ubuntu 8.04).
Jo Vermeulen (jozilla) wrote : | #94 |
I have the same problem on a HP Compaq 8510p. I found it strange that the default settings were to "Do nothing" when battery power is critically low, so I changed it to "Hibernate".
Unfortunately this does not work, it just keeps going until the battery is drained.
I'm running the latest Ubuntu 8.04 x86_64 with kernel 2.6.24-19-generic.
Any ideas on how to solve this? Is this a known issue?
By the way, I also set the action to "Suspend" when the laptop lid is closed. This does not work either.
Jo Vermeulen (jozilla) wrote : | #95 |
Forgot to mention it, but the gnome-power-cmd.sh suspend commands do work (both for suspend and hibernate).
5of0 (cincodenada+ubuntu) wrote : | #96 |
Jo Vermeulen: Have you tried unchecking "use time" in gconf-editor, as mentioned above (https:/
Joakim Andersson (jocke) wrote : | #97 |
5of0,
My bet is that "use time" doesn't help, because gnome-power-manager is coded to work just like this (I've read the code).
Like I've said in a previous comment (https:/
As I've also mentioned above (https:/
Jo Vermeulen (jozilla) wrote : Re: [Bug 135548] Re: [Gutsy] Action on critical battery isn't triggered - regression | #98 |
Done, will see what it does when the battery runs out again. Is this caused
by a broken ACPI as suggested by gconf-editor, or a bug in Gnome Power
Manager? Should I reset this value once the bug gets fixed?
-- Jo
Jo Vermeulen (jozilla) wrote : Re: [Gutsy] Action on critical battery isn't triggered - regression | #99 |
@joakim, so in fact I can just wait for a few days and then it should work again? So it's then probably also better to check use_time_for_policy again.
Or do I need your patch to get this working?
If this is true, then probably this is not a bug after all (and it should be marked as such).
Joakim Andersson (jocke) wrote : | #100 |
Jo,
Well make it a week or two. Running the computer with the electrical cord in place does not count (although it does add data about how the battery charges). You can check the progress by right clicking g-p-m in the system tray, selecting "power history" and then in that box (near the bottom), select "discharge time accuracy profile". when the average value of that graph is over 40%, stuff will start working.
What my patch does it fix the gap before it starts working. First and foremost, caring about the profile even when use_time_for_policy is disabled is just weird, since the profile doesn't add anything to the mix at that point. Then, not telling the user anything about this thing with ignoring actions is just a bad idea, there's no warning anywhere. I actually "fell into the trap" myself a few days ago, after installing ubuntu on my new laptop. Thank god no data was lost, because I was in the middle of doing quite a lot.
I still think this is a bug, since a developer put in this accuracy check for a good cause (some broken ACPI's could make the computer hibernate way too early, according to the changelog), but probably didn't think about what would happen until the accuracy profile was good enough.
And yes, you can enable use_time_for_policy again.
Jo Vermeulen (jozilla) wrote : | #101 |
Joakim, thank you very much for the detailed reply.
I also found out suspend after closing the lid does work after all (I just didn't wait long enough).
I hope your patch (or maybe a more polished version) will get integrated in the next release. Do you have a package for this, or is there an easy way to apply it (sorry, I'm a dpkg rookie)? Otherwise I'll just wait for a while, I can live with it if will work eventually.
But you are right, it is really bad for new Ubuntu or Gnome users, so it should be resolved as soon as possible. In my opinion the fix should even be pushed as an update in the official Hardy Ubuntu repositories.
Launchpad Janitor (janitor) wrote : | #102 |
This bug was fixed in the package gnome-power-manager - 2.23.91-0ubuntu2
---------------
gnome-power-manager (2.23.91-0ubuntu2) intrepid; urgency=low
* Added two patches from Joakim Andersson <email address hidden> his
comments on the patches are below.
* Added 18_policy_
fall back to per-percent policy if the battery profile is not good
enough yet. It also ignores the accuracy of the battery profile when
the GCONF key 'use_time_
* Added 19_fix_
notification messages for critical battery. These messages would
always show 0% battery remaining, since the cell unit object was
reset while generating one of the strings used in the message.
* 18_policy_
make cleaner and smaller. Now keeps most prototypes intact.
* I updated 18_policy_
to make it apply cleanly on 2.23.91.
gnome-power-manager (2.23.91-0ubuntu1) intrepid; urgency=low
* Upstream release:
* Handle "unknown" battery technology in HAL
* Bug fixes (LP: #260314)
* 75-ignore-
indicating failed suspends when they were >= 6 hours. (LP: #242713)
From Mario Limonciello <email address hidden>
* 14_inhibit_
use the inhibit DBus interface easily.
* 17_icon_
directory.
* 50-r2882-
-- Ted Gould <email address hidden> Wed, 10 Sep 2008 09:36:40 -0500
Changed in gnome-power-manager: | |
status: | Confirmed → Fix Released |
arturj (arturj-freenet) wrote : | #103 |
Using Inrepid I still have the problem on a Thinkpad T43 (g-p-m version is 2.24.0-0ubuntu8). I think the problem is, that g-p-m recalculates remaining time and percentage only if battery changes by 1%. Let me explain this:
- Reading /proc/acpi/
- Now g-p-m only recalculates if battery changes by 1% no recalculation happens for that time. As 4% is calculated to 10-15 minutes remaining time no automatic shutdown is triggered, no matter if use_time_for_policy is true or false, as both thresholds are much lower (2% or 120 seconds).
- Near complete crash of the system the battery state begins to change again, but drops from 1800 mWh to near ZERO. The remaining time is not enough to let g-p-m trigger anything and the system crashes.
Suggestions: raise all thresholds or change the way g-p-m is polling or beeing notified about battery state changes.
arturj (arturj-freenet) wrote : | #104 |
Addendum: things seem to be more complicated.
Using "use_time_
Disabling "use_time_
Generally there is additionally a problem when my battery suddenly dropps from 3% to 0% directly. In this case g-p-m does not react to this change and again noting happens. So if 3% was calculated to 5 minutes remaining time than jumping to 0% directly g-p-m still shows 5 minutes remaining time.
arturj (arturj-freenet) wrote : | #105 |
Tested in Ubuntu Intrepid - not working!
Changed in gnome-power-manager: | |
status: | Fix Released → In Progress |
Jurgis Pralgauskis (jurgis-pralgauskis) wrote : | #106 |
also still problem on Intrepid with Asus Z99H
martin (mbvlist) wrote : | #107 |
Same problem on a NEC P550. I hope changing the GConf-value helps.
Guido Conaldi (guido-conaldi) wrote : | #108 |
I can confirm the regression on my ubuntu up-to-date 8.10 64bit on a dell xps m1330.
I can also confimrm the behaviour described by arturj in comment 104. For me as well raising the critical action threshold to at least 360 seconds was working as a workaround in ubuntu 8.04.
No bios updates happend in the mean time.
Endolith (endolith) wrote : | #109 |
Yesterday the Gnome Power tool warned me that I had 1 minute remaining. Although a 1 minute warning is useless, it at least seems to be warning me now.
8.10 with proposed updates
Dell Inspiron 8600
huiii (a00ps) wrote : | #110 |
this is very bad:
i got it too!
Sony VAIO FZ31M, ubuntu intrepid
the first time, after installation it worked automatically; gpm warned me and 1min later hibernated as set.
i was so happy, the first time it ever worked out of the box.
so i never thought about it anymore.. BUT since then it never worked again, meaning, i am trusting the gpm to do his job and suddenly, BUZZ laptop dead.
since then i tried gconf-manager, changing settings like mentioned above, but nothing works.
what works is the warning "you have one minute remaining before hibernation" and after 5min BUZZ dead.
in Hardy i helped myself by adjustin laptop-mode.conf, but those options are gone in Intrepid!
what can we do?
Endolith (endolith) wrote : | #111 |
> gpm warned me and 1min later hibernated as set.
Well this is a problem on its own. One minute is not nearly enough. Should we file a separate bug about this? Where is the 1 minute limit determined?
Jurgis Pralgauskis (jurgis-pralgauskis) wrote : | #112 |
wow, it worked for me (still don't believe it, maybe recent updates helped)
the LCD was in "off" mode, and the Totem and Vlc were playing parallely
(well after resume I have sound problems, but that's differnent story)
(Asus laptop Z99H -- 82801G (ICH7 Family))
pruch (diogo-pruch) wrote : | #113 |
I'm using ubuntu 8.10 and I did this to solve the problem:
On Configuration Editor (gconf-editor)
I've set the followed keys:
/apps/gnome-
/apps/gnome-
/apps/gnome-
/apps/gnome-
/apps/gnome-
This means that when my battery reaches 15% GPM will show a "low battery warning", at 12% it will show a "Critical battery warning" and at 10% it will put my system to hibernate. I have a li-ion battery and use 10% to prevent damage to it.
I think that there should be a way to set these values directly on GPM, not just via gconf-editor
marco.pallotta (marco-pallotta) wrote : | #114 |
The configuration of which pruch wrote solve the problem in Hardy too.
marco.pallotta (marco-pallotta) wrote : | #115 |
I spoke to quickly. In fact, after having set the "pruch" configuration, today the system automatically went into shutdown (and this is ok) but without warning about the remaining battery charge and, moreover, it went into halt at the battery remaining level corresponding to the first warning.
huiii (a00ps) wrote : | #116 |
i solved this: i installed kde. it just works.
Henrik Nilsen Omma (henrik) wrote : | #117 |
As there is a partial work-around I'm lowering the priority from Critical to High. Also assigning it to the desktop team where it should be tracked. Ted is no longer on that team.
Could some one experiencing this please give the latest status on updated Jauntu and run 'apport-collect gnome-power-
Changed in gnome-power-manager (Ubuntu): | |
assignee: | Ted Gould (ted-gould) → Canonical Desktop Team (canonical-desktop-team) |
importance: | Critical → High |
status: | In Progress → Confirmed |
Changed in gnome-power-manager (Baltix): | |
status: | New → Invalid |
Sitsofe Wheeler (sitsofe) wrote : | #118 |
I happened to go to a near out of battery condition on my EeePC 900 with a recent Jaunty (as of a week ago) and the system correctly suspended to RAM.
Gregory Gleason (gsgleason) wrote : | #119 |
this has never worked for me. Started with 8.04 LTS then upgraded to 8.10, then installed 8.10 x86_64. Lenovo Thinkpad R61. I get the warning form gpm that my laptop will be shutdown, but it never shuts down - just dies when power is low. If any logs are required I will provide.
Clemens Wehrmann (cwehrmann) wrote : | #120 |
Thinkpad T61. This worked in gutsy and hardy, but not in intrepid and now jaunty. The fancy new status floaty warns at 4 minutes that it will hibernate in 2. 4-5 minutes later the laptop crashes... Manual hibernation works great.
Nick Steeves (nick-0) wrote : | #121 |
Thinkpad X32. Upgraded-
Which logs do I need to attach to debug this?
Thanks,
Nick
Nick Steeves (nick-0) wrote : | #122 |
- hal_and_gpm_logs.tar.gz Edit (2.2 KiB, application/x-tar)
Here are what seem like the relevant logs based on this document:
https:/
Please note that that my laptop *did* successfully hibernate, and return from hibernation from the "gnome-power-cmd hibernate" command.
Josh Zenker (jzenker) wrote : | #123 |
pruch's solution (https:/
Raúl Núñez de Arenas Coronado (dervishd) wrote : | #124 |
- discharge-time-profile.png Edit (35.2 KiB, image/png)
My laptop does indeed hibernate (or suspend) succesfully, but last night I forgot to plug the AC power and let the laptop on. It didn't hibernate.
The problem, just in case anybody is having it, is that the time profiles are very optimistic in my machine, probably due to the fact that I haven't let the battery drain fully, ever. So, last night GPM thought that there were still time left when in fact the battery was empty.
I wasn't there (but I'm making the test right now) but I'm more or less sure that GPM issued the "low battery" warning because I swear I've seen it at some point in the past. I'm not so sure about the "critical" warning, since it should happen when only 5 minutes of battery remains. Given that the time profile was so optimistic, the laptop probably had the battery empty when GPM thought that there was half an hour left :(((
I don't know if people usually drains their batteries, but if they don't, time profiles are going to be very optimistic. Using time left for taking actions is, in that case, dangerous. Battery percentages should be much safer unless the battery lies about the percentages (which looks like it is very common...).
The solution is to tweak by hand threshold values using gconf-editor and use percentage instead of time left if profiles are way too optimistic.
I'm now carrying a test to see if time left reported by GPM has to do anything with reality in my laptop.
BTW, anybody knows where to go to know how to interpret discharge-
Scott Howard (showard314) wrote : | #125 |
@DervishD: discharge-
Could you test this with a Karmic LiveCD? Sometimes, when upgrading or changing batteries, GPM doesn't keep track of the batteries properly.
Upstream claims that this particular bug has been fixed. Could someone test a clean Karmic system (or LiveCD) to see if your computer will shut down when the battery is critical?
Changed in gnome-power-manager (Ubuntu): | |
status: | Confirmed → Incomplete |
Changed in gnome-power-manager (Ubuntu): | |
assignee: | Canonical Desktop Team (canonical-desktop-team) → Canonical Foundations Team (canonical-foundations) |
Changed in gnome-power-manager (Ubuntu): | |
assignee: | Canonical Foundations Team (canonical-foundations) → Canonical Desktop Team (canonical-desktop-team) |
Martin Pitt (pitti) wrote : | #126 |
time_critical is set to 5 minutes by default nowadays, which ought to be enough. If you can still reproduce this in current karmic, please do so, reboot, and then
tar czf /tmp/gpm-log.tar.gz /var/lib/
Attach /tmp/gpm-log.tar.gz then. Thanks!
Changed in gnome-power-manager (Ubuntu): | |
assignee: | Canonical Desktop Team (canonical-desktop-team) → Martin Pitt (pitti) |
summary: |
- [Gutsy] Action on critical battery isn't triggered - regression + Action on critical battery isn't triggered |
Changed in gnome-power-manager (Ubuntu Karmic): | |
importance: | High → Medium |
Josh Zenker (jzenker) wrote : | #127 |
I watched what happens as the battery runs down on my ThinkPad X61. Gnome-power-manager seems to accurately measure the remaining charge until it reaches about 5 percent. After that, it doesn't significantly change. Maybe whatever gpm relies on for its information isn't reporting well…?
If I set the threshold in gconf to 6 percent, hibernation occurs as advertised.
Once again, this is on Ubuntu 9.04 with gpm version 2.24.2-2ubuntu8 and the 2.6.28-13-generic kernel.
Changed in gnome-power-manager (Ubuntu Karmic): | |
status: | Incomplete → Triaged |
Aleksandr Panzin (jalexoid) wrote : | #128 |
+1 On the bug in Jaunty. No action is triggered. A notification is triggered claiming to hibernate/suspend in 1 minute, but nothing happens.
Changed in gnome-power-manager (Ubuntu Karmic): | |
milestone: | none → ubuntu-9.10 |
Changed in gnome-power-manager (Baltix): | |
status: | Invalid → Confirmed |
gidantribal (aedo999) wrote : | #129 |
same problem on Acer Aspire 6920G + Ubuntu 9.04 (kernel *.15, AMD64)
Martin Pitt (pitti) wrote : | #130 |
In Karmic we changed from hal to devicekit-power. Nobody confirmed that this bug still happens in Karmic, after the call for testing below.
I just tested it myself on my Dell Latitude D430, and I get all the "low"/"
Closing now for Karmic (hardy/jaunty are still open, since confirmed several times). Please yell if it still does not work for you in Karmic.
Changed in gnome-power-manager (Ubuntu Karmic): | |
status: | Triaged → Fix Released |
Changed in gnome-power-manager (Ubuntu Jaunty): | |
status: | New → Confirmed |
Changed in gnome-power-manager (Ubuntu Hardy): | |
status: | New → Confirmed |
live (sean-colaco) wrote : | #131 |
i have a toshiba laptop but when the battery is critical it does not go on hibernate but it just goes off without shutting down or hibernating
Martin Pitt (pitti) wrote : Re: [Bug 135548] Re: Action on critical battery isn't triggered | #133 |
live [2009-10-15 18:13 -0000]:
> i have a toshiba laptop but when the battery is critical it does not go
> on hibernate but it just goes off without shutting down or hibernating
Can you please open a new bug with "ubuntu-bug gnome-power-
and do the following:
killall gnome-power-manager
gnome-
then let it drain the battery until it's down to 1% or less (it
regularly shows). Then press ^C, and attach ~/gpm.log to the bug.
Thanks!
Martin
--
Martin Pitt | http://
Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org)
Changed in gnome-power-manager (Ubuntu Karmic): | |
status: | Fix Released → Fix Committed |
status: | Fix Committed → Fix Released |
David (liradavid84) wrote : | #134 |
I still have this bug in Karmic ( on dell vostro 1310 ). I tested 8.10 and 9.10 and this dont works in both.
nameiner (nameiner) wrote : | #135 |
Maciej Strzelecki (mstrzele) wrote : | #136 |
This bug still occurs in Karmic, even if I set use_time_for_policy to false.
Maciej Strzelecki (mstrzele) wrote : | #137 |
Bug is still appearing in current g-p-m (2.28.1-0ubuntu1) in Karmic.
Changed in gnome-power-manager (Ubuntu Karmic): | |
status: | Fix Released → Confirmed |
Martin Pitt (pitti) wrote : | #138 |
Maciej Strzelecki [2009-11-12 8:15 -0000]:
> Bug is still appearing in current g-p-m (2.28.1-0ubuntu1) in Karmic.
>
> ** Changed in: gnome-power-manager (Ubuntu Karmic)
> Status: Fix Released => Confirmed
Closing again. This bug report became fairly useless because there
were so many different issues mixed together. Can you please open a
new one with "ubuntu-bug gnome-power-
killall -9 gnome-power-manager
gnome-
then reproduce the problem, and attach /tmp/gpm.log to the new bug.
Martin
--
Martin Pitt | http://
Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org)
Changed in gnome-power-manager (Ubuntu Karmic): | |
status: | Confirmed → Fix Released |
nameiner (nameiner) wrote : | #139 |
created a new bug report: 481576
https:/
Changed in gnome-power: | |
importance: | Unknown → Medium |
JC Hulce (soaringsky) wrote : | #140 |
Thank you for taking the time to report this bug. This issue has been fixed in newer versions of Ubuntu, and Jaunty is EOL. Thus, I am closing this bugtask.
Changed in gnome-power-manager (Ubuntu Jaunty): | |
status: | Confirmed → Invalid |
Ben Gamari (bgamari) wrote : | #141 |
Has there been a new bug filed along these lines? I still seem to be running into this in Precise.
Ivan Zorin (iaz) wrote : | #142 |
To whom it may concern: bug report with similar issue - https:/
no longer affects: | gnome-power-manager (Ubuntu Hardy) |
no longer affects: | gnome-power-manager (Ubuntu Jaunty) |
Changed in gnome-power-manager (Baltix): | |
status: | Confirmed → Fix Released |
Toshiba A100-062, one battery, one frustrated user :|
Same here. It also worked fine for me in Feisty. In Gutsy this actually caused me to lose data.
It seems to work if you disable using the time for actions (somewhere in gconf). I do not see why, however, since the estimated time remaining seems quite correct.
However when it reaches ~5 minutes (also the threshold for critical battery) the time remaining is *no longer shown* in the tooltip over the red battery icon. I only see the percentage. As far as I know I am receiving no low battery warnings either (other than the tray icon changing).
This bug should be increased in priority/severity, especially since the workaround can only be accessed through gconf, and not through the UI.
If there is any data I can provide, please let me know.