auto hibernate / auto shutdown doesn't work when battery power is critical or the battery is totally empty before

Bug #136777 reported by Fabien Lusseau
4
Affects Status Importance Assigned to Milestone
gnome-power-manager (Ubuntu)
Confirmed
Undecided
Unassigned
Nominated for Gutsy by Sitsofe Wheeler

Bug Description

Binary package hint: gnome-power-manager

It is the same problem in all my laptops (a dell inspiron 640m, an ASUS A6K and a Gericom Webgine)

And can you add a system to set the percentage of the battery when it auto shutdown/hibernate the GUI ?

It is a critical bug because it can cause damages to the lithium in the battery when the power is less than 5 % and reduce the battery uptime

Tags: laptop
description: updated
description: updated
Revision history for this message
TJ (tj) wrote :

Confirmed. I thought it was my imagination but since an update about a week ago (so, around 20th September 2007) gnome-power-manager doesn't hibernate the PC when battery level gets to critical. This had been working fine up to then and was in regular use.

I did a manual hibernate test from a fresh start, and it also fails. Screen goes blank immediately, there's no hard disk activity as you'd expect, and there is no way to interact with the PC (Ctrl+Alt+SysRq+K tried to restart GDM).

There's not much in the log files for the battery-critical event. syslog and daemon.log just show NetworkManager releasing and then re-establishing the network lease, kern.log just shows the restart, auth.log seems to show an hourly cron process at about the same time, but I think that is coincidence. Here's what could be found:

=== auth.log ===
Sep 26 03:17:01 hephaestion CRON[11416]: pam_unix(cron:session): session opened for user root by (uid=0)
Sep 26 03:17:01 hephaestion CRON[11416]: pam_unix(cron:session): session closed for user root

=== acpid ====
[Wed Sep 26 03:11:02 2007] executing action "/etc/acpi/power.sh"
[Wed Sep 26 03:11:02 2007] BEGIN HANDLER MESSAGES
[Wed Sep 26 03:11:02 2007] END HANDLER MESSAGES
[Wed Sep 26 03:11:02 2007] action exited with status 0
[Wed Sep 26 03:11:02 2007] completed event "battery BAT0 00000080 00000001"
[Wed Sep 26 03:14:09 2007] received event "battery BAT0 00000080 00000001"
[Wed Sep 26 03:14:09 2007] notifying client 5379[107:115]
[Wed Sep 26 03:14:09 2007] notifying client 5928[0:0]
[Wed Sep 26 03:14:09 2007] notifying client 5928[0:0]
[Wed Sep 26 03:14:09 2007] executing action "/etc/acpi/power.sh"
[Wed Sep 26 03:14:09 2007] BEGIN HANDLER MESSAGES
[Wed Sep 26 03:14:09 2007] END HANDLER MESSAGES
[Wed Sep 26 03:14:09 2007] action exited with status 0
[Wed Sep 26 03:14:09 2007] completed event "battery BAT0 00000080 00000001"
[Wed Sep 26 03:17:54 2007] received event "battery BAT0 00000080 00000001"
[Wed Sep 26 03:17:54 2007] notifying client 5379[107:115]
[Wed Sep 26 03:17:54 2007] notifying client 5928[0:0]
[Wed Sep 26 03:17:54 2007] notifying client 5928[0:0]
[Wed Sep 26 03:17:54 2007] executing action "/etc/acpi/power.sh"
[Wed Sep 26 03:17:54 2007] BEGIN HANDLER MESSAGES
[Wed Sep 26 03:17:54 2007] END HANDLER MESSAGES
[Wed Sep 26 03:17:54 2007] action exited with status 0
[Wed Sep 26 03:17:54 2007] completed event "battery BAT0 00000080 00000001"
[Wed Sep 26 05:53:04 2007] starting up
[Wed Sep 26 05:53:04 2007] 72 rules loaded
[Wed Sep 26 05:53:05 2007] client connected from 5375[107:115]
[Wed Sep 26 05:53:05 2007] 1 client rule loaded
[Wed Sep 26 05:53:20 2007] client connected from 5923[0:0]
[Wed Sep 26 05:53:20 2007] 1 client rule loaded
[Wed Sep 26 05:53:22 2007] client connected from 5923[0:0]
[Wed Sep 26 05:53:22 2007] 1 client rule loaded
[Wed Sep 26 05:54:40 2007] received event "battery BAT0 00000080 00000001"
[Wed Sep 26 05:54:40 2007] notifying client 5375[107:115]
[Wed Sep 26 05:54:40 2007] notifying client 5923[0:0]
[Wed Sep 26 05:54:40 2007] notifying client 5923[0:0]
[Wed Sep 26 05:54:40 2007] executing action "/etc/acpi/power.sh"

Changed in gnome-power-manager:
status: New → Confirmed
Revision history for this message
Fabien Lusseau (fabien-beosfrance) wrote :

For me Hibernation work manually, but auto hibernate doesn't work at all ...

For your manual hibernate fail, it is an other problem.

Revision history for this message
Fabien Lusseau (fabien-beosfrance) wrote :

hurry up !!!

Please correct this bug before the stable release, it appear in all the laptops computers ... Dell include ...

Revision history for this message
Sitsofe Wheeler (sitsofe) wrote :

I've seen this too on a Lenovo Thinkpad T60. On openSUSE 10.3 using KDE3 the laptop shuts down when the battery is critical and the BIOS is sounding an alarm. On Ubuntu Gutsy, the laptop keeps on going until it smashes down as the machine finally runs completely out of power. I've tried the hibernate, shutdown and suspend options and all had the same result - nothing happened.

Revision history for this message
Sitsofe Wheeler (sitsofe) wrote :

(I'm really sorry about nominating this bug but I don't want to spam this on the mailing lists and this issue can lead to data loss. If this is not the right thing to do PLEASE post a reply indicating the better thing to do - don't just let it slide!).

Revision history for this message
Sitsofe Wheeler (sitsofe) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. This particular bug has already been reported and is a duplicate of bug #135548, so it is being marked as such. Please look at the other bug report to see if there is any missing information that you can provide, or to see if there is a workaround for the bug. Additionally any further discussion regarding the bug should occur in the other report. Feel free to continue to report any other bugs you may find.

(Let's see if we can round up all the people seeing this into one place)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.