Comment 20 for bug 558627

Revision history for this message
Alfrenovsky (alfredo-fing) wrote :

Peter:

Forget my script. I didn't know that "upower -d" gives you the same information. cooked.

I had the same strange remaining times with karmic just after plug/unplug, I didn't report it as a bug before cause I had my hibernation support broken I disable it and I didn't notice the problem.

I was testing to achieve a reasonable timeout after a pluging/unpluging event, and the time needed are up to 15 seconds sometimes. So the wait after reading is not a feasible solution.

The key is to ignore the very high rates. But the rates may vary in different notebooks.
The batteries are supposed to be designed to last some hours.
I think we can ignore the rates that will lead the "design capacity" to drain in less than 10 minutes.
In my case the "desing capacity" is 57720 mWh so I whould ignore 346320mW or up (My strange readings are all about 700000mW)
and its far from my standard real rates 30000 in charging and 5000 to 13000 discharging.

does the arbitrary "drain in less than 10 minutes" fits to all?