Fix auto-brightness and misc changes

Thanks xda:m4kl4 for pointing it with the logcat 8)