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.
|