07-27-2011, 01:43 PM | #16 | |
Evangelist
Posts: 461
Karma: 819417
Join Date: Nov 2004
|
Quote:
|
|
07-27-2011, 09:28 PM | #17 | |
Enthusiast
Posts: 30
Karma: 4698
Join Date: Jan 2011
Device: none
|
Quote:
The brightness lock works across all apps. I tried it. Most apps don't adjust brightness so the setting is moot. But almost all the ereaders save their own brightness and after I lock it, none of them can change it. I wish there was an unlock button. So I could lock, read, unlock and sleep. |
|
Advert | |
|
07-28-2011, 11:08 AM | #18 |
Evangelist
Posts: 461
Karma: 819417
Join Date: Nov 2004
|
You don't need an SDK. Just download a terminal app from the Market or some other place, and type the commands in.
I'll make you a deal. You try it for me, and I'll look into adding a lock feature to SuperDim, with a pre-sleep unlocker. Last edited by pruss; 07-28-2011 at 04:03 PM. |
07-29-2011, 09:28 AM | #19 |
Enthusiast
Posts: 30
Karma: 4698
Join Date: Jan 2011
Device: none
|
pruss, the command did the trick. And I don't need the button now since changing the brightness again in your app resets the read-only flag and I can sleep the device properly.
So, I downloaded your app. Set the brightness to 10%. Then I went to the terminal app and entered the command you gave. Then I tried nook app and it did not adjust brightness. Just to be sure, I tried the Kindle app and that behaved the same. The brightness slider did not change the brightness. Now I panicked because I did not know how to unlock the brightness. I thought I will look up the man page for chmod but before that, I tried changing the brightness in your app. And it worked. Now the two readers could change brightness too. Next, I tried to lock the brightness in AdjBrightness and it worked like it always has. But it could not change it after the lock. So I guess I will need your app to do the unlock. When you add the lock button, I would not need AdjBrightness anymore. -- BTW, I guess I have sleep of death because AdjBrightness tries to set brightness every time I wake up the device from sleep. But if the brightness file is readonly (due to the brightness lock set by AdjBrightness itself) it is unable to set it. You can code around that. Last edited by yelloguy; 07-29-2011 at 10:33 AM. |
07-29-2011, 10:34 AM | #20 | |
Evangelist
Posts: 461
Karma: 819417
Join Date: Nov 2004
|
Quote:
Anyway, I will be happy to add a lock button, if I can find a place on the screen to fit it! (No problem on your Nook, but some people have smaller screens.) 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. You can always do an emergency unlock by rebooting, since SuperDim does not start up on boot. (That's a deliberate choice in case someone sets brightness to a level so low that nothing can be seen on the screen.) |
|
Advert | |
|
07-29-2011, 11:50 AM | #21 | |
Enthusiast
Posts: 30
Karma: 4698
Join Date: Jan 2011
Device: none
|
Quote:
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. |
|
07-29-2011, 02:26 PM | #22 |
Evangelist
Posts: 461
Karma: 819417
Join Date: Nov 2004
|
Well, didn't you say that if you turn it off with the lock activated, the device doesn't turn back on? If I understood that correctly, it means we need to deactivate the lock whenever the device turns off, to prevent the device from getting stuck in a screen-off state, right?
|
07-29-2011, 05:53 PM | #23 |
Evangelist
Posts: 461
Karma: 819417
Join Date: Nov 2004
|
There is locking in 1.31pre1. http://code.google.com/p/superdim/downloads/list
It tries to unlock at power-off, so you shouldn't get the locked-off problem. |
08-01-2011, 01:40 PM | #24 |
Enthusiast
Posts: 30
Karma: 4698
Join Date: Jan 2011
Device: none
|
pruss, this works very well indeed! I can now lock the screen brightness in SuperDim and then switch to a reading app. After I am done reading, I can jump back to SuperDim and unlock the screen brightness before putting the device to sleep. If I forget (or intentionally, as I experimented once) to unlock the brightness, the device fails to wake up. But that was expected. I can now get rid of the AdjBrightness.
Thanks so much for doing this. This makes Nook Color perfect for me: thanks to ezPdf for reading PDF's, Nook App and your app for reading epubs. |
08-01-2011, 04:04 PM | #25 | |
Evangelist
Posts: 461
Karma: 819417
Join Date: Nov 2004
|
Quote:
Hook your Nook to your PC. Make sure you can connect to it with adb (type "adb devices" on your PC to see if it's listed). Type "adb logcat > log.txt" on the PC. Set the lock. Exit SuperDim. Press the powerbutton to turn off. Wait 15 seconds. Press it again to turn on. I assume it won't turn on. Wait 15 seconds. Press CTRL-C on the PC. Email me log.txt (arpruss@gmail.com). |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Nook App on CM7 - Cannot Get Into Settings (upper-right icon) | spedinfargo | Nook Developer's Corner | 7 | 08-25-2011 04:00 PM |
$5 adjustable reader stand | lamoe | Introduce Yourself | 13 | 09-17-2010 05:54 PM |
Day or Night Mode? | Lemurion | General Discussions | 11 | 03-17-2010 10:47 PM |
Other Fiction Woolf, Virginia: Night and Day. v1. 09 Aug. 07 | Dr. Drib | BBeB/LRF Books | 0 | 08-09-2007 10:31 PM |
Swords of Night and Day by Gemmel | Colin Dunstan | Reading Recommendations | 0 | 03-10-2005 01:22 PM |