- From: Kenneth Rohde Christiansen via GitHub <sysbot+gh@w3.org>
- Date: Thu, 04 Apr 2019 12:33:51 +0000
- To: public-device-apis-log@w3.org
Brightness wake lock is deprecated in Android. You are supposed to use FLAG_KEEP_SCREEN_ON. ![Screenshot 2019-04-04 at 14 29 17](https://user-images.githubusercontent.com/1101339/55555821-6cd6e400-56e6-11e9-9626-26f15a2c42ef.png) That will keep normal brightness (user set) and not dim or turn off the screen (dimming happens on Android just before the screen turns off) Counting manually, my Pixel screen stays on for 30 seconds, then dims and stays dimmed for 10 seconds then turns off. Something like that. ![Screenshot 2019-04-04 at 14 29 01](https://user-images.githubusercontent.com/1101339/55555846-752f1f00-56e6-11e9-8eaf-5870930e34da.png) I think the conclusion is that we should not have a special "brightness" wake lock, but add some info in the spec that UAs should not dim while the lock is held. That could be non-nominative as well, if we want to be really flexible. -- GitHub Notification of comment by kenchris Please view or discuss this issue at https://github.com/w3c/wake-lock/issues/129#issuecomment-479878380 using your GitHub account
Received on Thursday, 4 April 2019 12:33:52 UTC