GNOME Bugzilla – Bug 336987
Time remaining/time to charge is never displayed.
Last modified: 2020-11-06 19:57:35 UTC
Please describe the problem: The time remaining on the battery and the time until the battery is charged are never displayed. I always see "-:--" no matter how long I let the battery discharge and no matter how many discharge/recharge cycles the battery-status program has seen. Steps to reproduce: 1. Add the battery status to a panel. 2. Turn on showing time remaining/time to charge and let the program run. 3. Watch it never show the time. Actual results: It never shows the time. Expected results: I should see the time remaining on the battery when the system is running from the battery. I should see the time until the battery is charged when I'm running from the mains. Does this happen every time? Yes. Other information: I understand the times are estimates, but the estimate should appear.
Reported at https://launchpad.net/distros/ubuntu/+source/gnome-applets/+bug/38795 with 2.14.x as well. alarm: unsupported present: yes design capacity: 6000 mAh last full capacity: 4288 mAh battery technology: rechargeable design voltage: 14800 mV design capacity warning: 217 mAh design capacity low: 131 mAh capacity granularity 1: 10 mAh capacity granularity 2: 25 mAh model number: JM-6 serial number: 4873013206 battery type: LION OEM info: Hewlett-Packard present: yes capacity state: ok charging state: charged present rate: unknown remaining capacity: 4288 mAh present voltage: unknown
Created attachment 63356 [details] lshal output
battery.charge_level.rate = 0 (0x0) (int) battery.reporting.rate = 0 (0x0) (int) present rate: unknown if we don't know the rate at which the battery is discharging then we can't form an estimate about how much time is remaining. do other operating systems know how long is left? is this an acpi implementation bug? maybe this is a kernel bug.
Another comment from the Ubuntu bug report: "Like I said in the inital report, the icon that shows up in the notification area (turned on under Power Management Preferences) reports the estimated remaining time. Also, Windows XP reports the time. It is just this one applet that doesn't show the time. Even if there is a problem, shouldn't the applet calculate the amount that the battery went down over a period of time (say a minute) and it figure it out from there? It does report the percent remaining correctly. But my main point is that Ubuntu can correctly estimate the remaining time in the Power Management icon tooltip." I'll open a Kernel task for this as well.
I assume this refers to gnome-power-manager. Unless gnome-power-manager has some more smarts in it that I'm not aware of, it is only using HAL as well. So it being working seems highly unlikely.
(In reply to comment #5) > I assume this refers to gnome-power-manager. Unless gnome-power-manager has > some more smarts in it that I'm not aware of, it is only using HAL as well. So > it being working seems highly unlikely. > It is gnome-power-manager that has the correct time.
bugzilla.gnome.org is being replaced by gitlab.gnome.org. We are closing all old bug reports in Bugzilla which have not seen updates for many years. If you can still reproduce this issue in a currently supported version of GNOME (currently that would be 3.38), then please feel free to report it at https://gitlab.gnome.org/GNOME/gnome-applets/-/issues/ Thank you for reporting this issue and we are sorry it could not be fixed.