Bugzilla – Bug 142382
Battery Notice displays -1 minute remaining
Last modified: 2006-02-15 15:51:40 UTC
SUSE Linux 10.0 installed on a Compaq Presario R3000. When the Gnome "Battery Notice" window comes up it says that there is -1 minutes of battery remaing (15%).
Rodrigo, we didn't use g-p-m in 10.0 right? In which case I think it was pulling the values from the /proc/acpi.
AFAIR, yes, we had gnome-power-manager in 10.0. Jared, is gnome-power-manager process running on your machine? Also, what versions of hal and g-p-m do you have?
hal-0.5.4-6.4 I don't think that g-p-m shipped with 10.0....I can't find it on the install media, or in autobuild. (So it is not running). powersaved is running. I know where I can g-p-m-0.2.8.1-0. Do you want me to try that or should I hold off
Created attachment 65509 [details] adds test for negative time remaing to correct -1 minutes remaing in low battery warning After some more looking, it looks like the problem is two fold. One, ACPI is not getting the right information from the battery. ACPI/the battery is saying that the present rate at which the battery is being discharged is 0 mA. Which, of course, is bogus. Two, the battery low warning is coming from the gnome applet "Battery Charge Monitor". When it does the calculation for time remaining, it ends up with a -1. In most places, the applet reports that this as unknown, except for in the battery low notification. Submiting patch.
Jared, did you submit the patch to autobuild? If so, please close the bug
I haven't. I will do it now.
Its not good to add another translation string like this. Is it too far off the mark if we just set a floor of 0 for the number of minutes? If if minutes < 0, just say 0 in the string.
Note that the string has missing _(" and was untranslatable. On the other hand gnome-patch-translation was not yet sent to translators, so it's easy to add it just now. For more see bug 144946.
Patch submitted to Autobuild with translatable string added. It is not the only string missing in gnome-patch-translation.