Battery graph removes/ignores valid data points
Bug #1419810 reported by
Pat McGowan
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-system-settings (Ubuntu) |
Invalid
|
Low
|
Pat McGowan |
Bug Description
There seems to be some heuristic in use to try to eliminate faulty data. I see correct graphs where the phone has run out of battery on a steep curve. then after a recharge and some further use, the graph is smoothed out and the low battery level data points are no longer used. This is hiding some valid events in the history.
Changed in ubuntu-system-settings (Ubuntu): | |
assignee: | nobody → Pat McGowan (pat-mcgowan) |
To post a comment you must log in.
Thanks, could you describe a bit more the values of the data points that are ignored?
One thing that we do is
" /* TODO: find better way to filter out suspend/resume buggy values, item_get_ state(item) == UP_DEVICE_ STATE_EMPTY && currentValue > 3)
continue; "
* we get empty charge report when that happens, in practice batteries don't run flat often,
* if charge was over 3% before it's likely a bug so we ignore the value */
if (up_history_
The reason we do that is that on suspend/resume upower sometimes give us a point stating that the battery is empty, even if it's charged to 90%, if we don't filter those out we have "pits" in the graph around suspend/resume times sometimes