I noticed that after changing the brightness to near 0 or 0 using a custom app on android and returning to the home screen, the LCD brightness returns to 20? Why is this happening? I am not sure if other android devices does this, but it seems like the DM3730 android 2.3.4 build is doing it. Is there a way to prevent it from doing this? Where would I look in the kernel or what-not to prevent this from happening.
I also noticed it slowly returns to 0.
By the way, I am writing to the /sys/class/backlight/omap3logic/brightness and this still doesn't help.
I can always do a delay timer to do a system write to the variable above after 2 seconds or so after returning to home screen using onPause or onDestory, but I was wondering if there is a better solution.