battery charge refreshproblem afetr plugging AC

Bug #21662 reported by Nicolò Chieffo
26
Affects Status Importance Assigned to Milestone
gnome-applets (Ubuntu)
Fix Released
Medium
Daniel Holbach

Bug Description

using latest ubuntu breezy updated. in the battery applet
(/usr/lib/gnome-applets/mixer_applet2) I chose to show remaining time. if I
unplug the AC, the time is shown correctly, but if I replug it the time remains!
(e.g. 3:26). Normally -:-- is shown. If I disable and re-enable the feature wich
shows remaining time, the correct view appears (-:--)!!! So I think this is a
refresh problem... What should I do to help you? Could you suggest some debug I
can do?

package version: 2.12.0-0ubuntu1
mixer_applet2 --version: Gnome battstat 0

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks for your bug. That's probably an hal issue, Ccing upstream which probably
has a good idea on that :)

Revision history for this message
Allison Karlitskaya (desrt) wrote :

Is disabling the time indicator and reenabling it the only action you perform to
cause it to revert from showing the (incorrect) time to showing -:--?

Can you always get it to happen like this?

An idea of what might have happened if it just happened one time: the HAL ACPI
refresh interval is 30 seconds. If your laptop failed to send an ACPI event
(which many do) then HAL will fix it up after 30 seconds (which might have
randomly occured between the time you disabled the time indicator and re-enabled
it). There are other reasons that ACPI events might be missed -- for example,
of hald-addon-acpi wasn't running for some reason or if acpid wasn't running.

If you can get the bug to happen every time as you describe, though, it's
probably not related to HAL but some other very odd bug inside the applet itself.

Revision history for this message
Allison Karlitskaya (desrt) wrote :

Note: acpi-support was just upgraded to 0.31 in breezy. This results in a
restart of ACPId.

If you're still running an older version of HAL (which you would be if your
uptime is more than a few days, since HAL doesn't get restarted on updates) then
that means you were running a version of hald-addon-acpi that wasn't able to
tollerate an ACPId restart (and it probably exited).

See bug 21081 for more information about that (if you think it might be the
problem).

Revision history for this message
Nicolò Chieffo (yelo3) wrote :

ok, now I've just apt-get update && apt-get dist-upgrade using official server
(not mirrors) and rebooted, so everything reguarding versions and restarting
should be ok.
this is what happens (every time!)
I unpulg the AC, after a 2-3 secs the icon changes to a battery and shows 3:30
Now I replug the AC, and after a few seconds the battery changes into a plug
(correctly) but the 3:30 is still there.
Now I right-click on it, preference, uncheck and rechech "show time/percentage"
and now everything is ok
again EVERY time, (tried a dozen of times)
(I remember this bug wasn't present in hoary)
So it might be "some other very odd bug inside the applet itself" as you suggested!

Revision history for this message
Sebastien Bacher (seb128) wrote :

*** Bug 22194 has been marked as a duplicate of this bug. ***

Revision history for this message
Pedro Côrte-Real (pedrocr) wrote :

I can reproduce this bug. The only strange thing about my setup is that I have a
self compiled 2.6.13 kernel. Maybe the submitter also has this difference from
stock ubuntu?

Revision history for this message
Allison Karlitskaya (desrt) wrote :

There's a small chance that attachment #4163 in bug #20290 (comment #12) might
also fix this problem. If someone had the time to check this out it would be
appreciated.

Revision history for this message
Nicolò Chieffo (yelo3) wrote :

I have the ubuntu official kernel! anyway somthing's changed now! if I plug the
AC, i can see "remaining time to complete battery charge" but the time is stuck
even when the battery is completely charged.
well if someone could attach the compiled deb it should be better for me to test!

Revision history for this message
Daniel Holbach (dholbach) wrote :

If you're on Breezy, could you test these packages and see if they make it work:
http://people.ubuntu.com/~dholbach/gnome-applets/packages/ ?

Revision history for this message
Nicolò Chieffo (yelo3) wrote :

tested! working! great job!

Revision history for this message
Daniel Holbach (dholbach) wrote :

*** Bug 23543 has been marked as a duplicate of this bug. ***

Revision history for this message
Daniel Holbach (dholbach) wrote :

Unfortunately, it's a bit too late in the process to change the behaviour for
the next release. The patch will be re-evaluated for Dapper.

Revision history for this message
Nicolò Chieffo (yelo3) wrote :

new unwanted behaivour in official package: when battery is full and if AC is
plugged, in some strange situations icon becomes red and 0% is shown. then after
20-30 seconds it returns green with 100% of charge

Revision history for this message
Nicolò Chieffo (yelo3) wrote :

shouldn't we close this bug?

Revision history for this message
Sebastien Bacher (seb128) wrote :

Is that fixed for you with dapper?

Revision history for this message
Nicolò Chieffo (yelo3) wrote :

well, dapper is using gnome power manager, not the same breezy applet. and yes, it seems working with gnome-power-manager

Revision history for this message
Sebastien Bacher (seb128) wrote :

Closing as fixed so. Feel free to reopen if you get the issue again

Changed in gnome-applets:
status: Unconfirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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