Open
Bug 519173
Opened 15 years ago
Updated 2 years ago
accelerometer handling should take care about power management.
Categories
(Core :: DOM: Core & HTML, defect, P5)
Tracking
()
NEW
People
(Reporter: romaxa, Unassigned)
References
Details
Accelerometer API implementation should not read accelerometer state all the time, because it will drain battery very fast (device shaking in pocket). Accelerometer checker must be suspended (no timers, no handlers) when browser goes to background, or device goes to IDLE state (screen is off or something like that). Also it should not check values by timer, ionotify or similar API should handle Accelerometer state changes.
Comment 1•15 years ago
|
||
(In reply to comment #0) > Accelerometer API implementation should not read accelerometer state all the > time, because it will drain battery very fast (device shaking in pocket). Well, there may very well be some application which wants to log all to values accelerometer API gives, even when device is "idle". > Also it should not check values by timer, ionotify or similar API should > handle Accelerometer state changes. Sounds reasonable, though we probably don't want to dispatch an event every time ionotify tells that the value has changed. The event dispatch might happen way too often. But perhaps nsIAccelerationListener should be called always. But there are two separate bugs here. ionotify is about the linux implementation, the idle thing is generic. I wonder if OSX has something similar to ionotify.
Comment 2•15 years ago
|
||
Btw, it has been proposed (webapps wg) to add idle state detection, which web apps could use. Unfortunately that brings in some obvious privacy concerns.
Comment 3•6 years ago
|
||
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046 Move all DOM bugs that haven’t been updated in more than 3 years and has no one currently assigned to P5. If you have questions, please contact :mdaly.
Priority: -- → P5
Assignee | ||
Updated•5 years ago
|
Component: DOM → DOM: Core & HTML
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•