Closed Bug 1178599 Opened 9 years ago Closed 9 years ago

Improve the user experience of estimate provided when device is being charged.

Categories

(Firefox OS Graveyard :: Hardware, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1163867

People

(Reporter: isandu, Unassigned)

References

Details

(Keywords: foxfood, Whiteboard: [bzlite][triagr])

User Story

Improve the user experience of estimate provided when device is being charged.
User-Agent: Mozilla/5.0 (Mobile; rv:41.0) Gecko/41.0 Firefox/41.0 My battery is 9% charged and I get different times for when it will finish charging ranging from 13 minutes to 5 hours. The phone is plugged via USB to a computer.
This is fairly normal when plugged into a computer. You will get better results when plugged into a high current wall USB adapter.
Status: NEW → UNCONFIRMED
Component: Gaia::Feedback → Hardware
Ever confirmed: false
Whiteboard: [bzlite] → [bzlite][triagr]
The range between 13 min to 5 hours is really big, though. Shouldn't we try to give the user a better estimate, even though it's plugged into a computer? If we can't give an estimate, then we shouldn't show it all, because it is not useful.
Since the OTA update it doesn't show an estimate on my phone anymore, though, just the % that is already charged. Is that how it's intended?
Flags: needinfo?(drs)
I take that back, now it does show me an estimate for long until fully charged. We need to work on this experience.
I'm changing the summary of this bug based on comment 4. Gregor, is this the right component?
Status: UNCONFIRMED → NEW
User Story: (updated)
Component: Hardware → Gaia::System::Status bar, Utility tray, Notification
Ever confirmed: true
Flags: needinfo?(firefoxos-ux-bugzilla)
Flags: needinfo?(drs)
Flags: needinfo?(anygregor)
Summary: time to finish charging battery not consistent → Improve the user experience of estimate provided when device is being charged.
Jon, Tim, any idea who implemented this feature?
Flags: needinfo?(timdream)
Flags: needinfo?(jhylands)
Flags: needinfo?(anygregor)
I have no idea, sorry - haven't been involved in any code on the device in a long time...
Flags: needinfo?(jhylands)
I spent around 5 min digging into the code and it look like we are doing naive linear math on Gonk HAL: https://dxr.mozilla.org/mozilla-central/source/hal/gonk/GonkHal.cpp#638 I don't believe user of Battery API is responsible of finding the best curve to fit. Even if we only want to implement linear math, it should wait for more data points before giving out an estimation...
Component: Gaia::System::Status bar, Utility tray, Notification → Hardware
Flags: needinfo?(timdream)
Blocks: 1116368
(In reply to Zibi Braniecki [:gandalf][:zibi] from comment #9) > It may be a dupe of bug 1163867. > > Also, see bug 1116368 comment 18. That's a very complete proposal, way better than my 5 min comment. I am for anything that does not involve implementing an algorithm in Gaia and to consistently monitor the current level there.
I tried to get people's attention to our naive implementation and how it limits UX. Unfortunately it seems that a) it's hard to find someone to work on that (bug 1163867 comment 2). I'm resolving as a dupe, and if you know anyone who can take it, please, NI them in that bug.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
Thank you, will follow and comment in https://bugzilla.mozilla.org/show_bug.cgi?id=1163867
removing flag
Flags: needinfo?(firefoxos-ux-bugzilla)
You need to log in before you can comment on or make changes to this bug.