View Single Post
Old 05-07-2014, 06:24 PM   #1141
Haqqax
Member
Haqqax began at the beginning.
 
Posts: 11
Karma: 10
Join Date: May 2010
Device: DR800S
I do not want to fiddle with the buttons every time I touch the reader. And if I don't, the light stays on when I leave the reader. I think that's a bug. I expected to find a configuration setting for the frontlight, but I did not. For the time being, I have added a powerd:toggleFrontlight() in the reader.lua immediately after it turns the light on. Now it flashes shortly on startup, but at least it does not get turned on, which I definitely do not want by default. By default it should be off to avoid draining the battery.

It's the first time in my life when I see Lua code, but I have just decided to learn it starting today ;-). Hopefully I will manage to find a proper way to change the current application default. I was afraid to comment out the block referncing frontlight_intensity in reader.lua, because I did not know whether it is needed for proper initialization.

Now I need to setup an emulator for this. Connecting and disconnecting the device to test the change is... frustrating.
Haqqax is offline   Reply With Quote