If AC power is disconnected while suspended, on resume the "on AC" icon is shown

Bug #51269 reported by Vincenzo Ciancia
6
Affects Status Importance Assigned to Milestone
gnome-power-manager (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: gnome-power-manager

If AC power is disconnected while suspended, on resume the "on AC" icon is shown, even if the popup correctly says that the laptop is on battery. Connecting and disconnecting AC makes the "on battery" icon correctly come back.

Revision history for this message
Vincenzo Ciancia (vincenzo-ml) wrote :

this bug is still there on feisty, can I do anything to help finding the problem? How do I debug the hibernate/resume process?

Revision history for this message
Vincenzo Ciancia (vincenzo-ml) wrote :

And this can make a mess if unnoticed, since the user will not be notified on battery low, and the laptop will not be hibernated on battery critical, so this can lead to data loss where gnome-power-manager is designed to prevent this.

gmlion (gm-l)
Changed in gnome-power-manager:
status: Unconfirmed → Confirmed
Revision history for this message
Vincenzo Ciancia (vincenzo-ml) wrote :

Let's try a better description, i use ubuntu feisty, kernel 2.6.20-15-generic.

If I suspend my laptop (toshiba M400, centrino duo) while on AC power, and then disconnect AC, on resume the "on AC" icon is shown in gnome-power-manager. By investigating the problem deeper, I found the following

:~$ cat /proc/acpi/ac_adapter/ADP1/state
state: on-line

:~$ cat /proc/acpi/battery/BAT1/state
present: yes
capacity state: ok
charging state: charging
present rate: 17895 mW
remaining capacity: 34495 mWh
present voltage: 11260 mV

removing the "ac" module and inserting it again shows in dmesg:

[21497.780000] ACPI: AC Adapter [ADP1] (on-line)

Finally, if I suspend to ram, then everything goes in the right state, and the "on battery power" icon is shown in gnome-power-manager after a short delay. This is also obtained by plugging and unplugging the AC adaptor.

Revision history for this message
Vincenzo Ciancia (vincenzo-ml) wrote :

And this bug has been fixed in feisty without being noticed it seems.

Changed in gnome-power-manager:
status: Confirmed → Fix Released
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.