Port CyanogenMod autobrightness adjustments
Signed-off-by: Paul Beeler <sparksco@gmail.com>