View Single Post
Old 07-29-2011, 11:50 AM   #21
yelloguy
Enthusiast
yelloguy is fluent in JavaScript as well as Klingon.yelloguy is fluent in JavaScript as well as Klingon.yelloguy is fluent in JavaScript as well as Klingon.yelloguy is fluent in JavaScript as well as Klingon.yelloguy is fluent in JavaScript as well as Klingon.yelloguy is fluent in JavaScript as well as Klingon.yelloguy is fluent in JavaScript as well as Klingon.yelloguy is fluent in JavaScript as well as Klingon.yelloguy is fluent in JavaScript as well as Klingon.yelloguy is fluent in JavaScript as well as Klingon.yelloguy is fluent in JavaScript as well as Klingon.
 
Posts: 30
Karma: 4698
Join Date: Jan 2011
Device: none
Quote:
Originally Posted by pruss View Post
Here is the functioning I envisage. When the lock function is on, SuperDim locks the brightness control after exiting. It then unlocks it when the device has turned its screen off (I hope it won't block the screen from turning off; from what you said, it only blocks the screen turning on; but that may differ from device to device maybe). And it then re-locks it when the device has turned off.
Not sure I follow. Technically you don't need to do anything when the device turns itself off or on. I suspect AdjBrightness does that to retain the brightness setting across sleep sessions. Every time I wake up the device I get a notification that AdjBrightness has been granted root permissions.

I am not sure if the device resets brightness on every wake up. If so, you need to make sure you set brightness on every wake up but unlike AdjBrightness, your app overrides the lock anyway. So you don't need to do anything extra if you set it on every wake up already.
yelloguy is offline   Reply With Quote