Version: (using KDE 4.2.1) OS: Linux Installed from: Ubuntu Packages Sometimes the power management applet doesn't update the battery status. This happened twice to me: the first time it was showing "Fully charged", even if the battery charger wasn't connected, and the battery was lower than 100%, and the second time it's displaying "charging", again, without the charger attached. I'm not sure, but this may be related to sleeping. I think this happend only after a sleep.
sounds like a problem not with the widget, but with HAL. perhaps the connection between the dataengine and HAL is getting lost (we use Solid for that) or HAL itself is losing its mind after sleeping. am moving it over to Solid to see what they have to say about that.
Actually that might even be a kernel bug, well I'm even almost 100% sure about that. I had the exact same problem and had to downgrade my kernel to get the battery info to reliably work again... No fun.
Created attachment 32360 [details] fix ''battery status does not update' (when charge_level.percentage also changes). I found the bug in solid that does not update some state changes if the there are several changes at the same time. this is because if one type of change is present, the others are not tested.
*** Bug 182389 has been marked as a duplicate of this bug. ***
Ah-ah! Good catch. Minor format nitpick on the patch, could you add an empty line before the ifs? It clearer this way that it's not the same if-else block this way. Could be mistaken for an else if otherwise. If you have commit rights, please commit it right away with the proposed minor change, otherwise just tell me and I'll take care of it.
Kevin, I commited the patch, but it didn't updated this bug report even when the BUG: field was in the commit log. I got a mail saying that I can't close the report, which has some sense. can you close it, please?
Fix committed by Marcos in revision 94713.
Created attachment 36392 [details] Incorrect battery status I could reproduce this bug in 4.3.0 final. My battery was totally discharged. I connected adapter to laptop and I see status as shown in screenshot.
Likely a different issue (if not a bios related problem as I pointed out in the first comment). Please open another bug report (or reopen 182389), don't hijack this one. In any case, please assign it to the battery applet in case it would be at the UI level. Also, don't assign bugs to *you*, except if you step up to investigate and fix it yourself (which would be fine with me but I doubt it was your intent). :-)
I'll check this in detail and do as you suggested. I just reopend it not sure how it was assigned to me. J