Bug 514275 - Booting with a dead battery results in immediate shutdown
Summary: Booting with a dead battery results in immediate shutdown
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: gnome-power-manager
Version: 11
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Richard Hughes
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-07-28 16:36 UTC by Jonathan Steffan
Modified: 2009-08-20 20:57 UTC (History)
3 users (show)

Fixed In Version: 2.26.4-1.fc11
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-08-20 20:57:39 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Jonathan Steffan 2009-07-28 16:36:58 UTC
Description of problem:
If you boot your laptop with a dead battery, as soon as GDM starts an alert is raised the battery is critical and the system shuts down. This even happens if the AC is plugged in.

Version-Release number of selected component (if applicable):
gnome-power-manager-2.26.3-1.fc11.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Drain battery.
2. Boot
3. Fail.
  
Actual results:
System shutsdown.

Expected results:
System stays booted, it has AC power.

Comment 1 Richard Hughes 2009-08-02 08:52:42 UTC
Already fixed in rawhide:

/* check to see if the batteries have not noticed we are on AC */
if (type == DKP_DEVICE_TYPE_BATTERY) {
	if (!manager->priv->on_battery) {
		egg_warning ("ignoring critically low message as we are not on battery power");
		goto out;
	}
}

So even if the battery is empty and marked as discharging, we don't do the action as the system on-battery state is FALSE. I'll look at backporting this to 2.26.4.

Comment 2 Richard Hughes 2009-08-03 16:15:23 UTC
commit 17fd06bf0c43a9a002a3de47f4f1b9fa6457b911
Author: Richard Hughes <richard>
Date:   Mon Aug 3 17:11:20 2009 +0100

    Backport a fix from master to fix notification on AC power

Comment 3 Fedora Update System 2009-08-03 16:39:15 UTC
gnome-power-manager-2.26.4-1.fc11 has been submitted as an update for Fedora 11.
http://admin.fedoraproject.org/updates/gnome-power-manager-2.26.4-1.fc11

Comment 4 Fedora Update System 2009-08-05 00:28:46 UTC
gnome-power-manager-2.26.4-1.fc11 has been pushed to the Fedora 11 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update gnome-power-manager'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F11/FEDORA-2009-8260

Comment 5 Michael Monreal 2009-08-09 18:32:02 UTC
This test releases acted weird for me (showed a warning icon instead of the battery etc) until I upgraded DeviceKit-power to the 010-0.2.20090721git.fc11 build.

Comment 6 Fedora Update System 2009-08-20 20:57:34 UTC
gnome-power-manager-2.26.4-1.fc11 has been pushed to the Fedora 11 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.