What happens is that HBM is being turned off in lower level and the node is not being updated.
Writing 0 to node when the screen turns off to go around that.
Service only runs when HBM is turned on.
it stops itself when the screen turns off / HBM is turned off
Also remove some useless code all around and slightly improve...
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
Taken from: 99e6831dc4/DeviceSettings
Edits after:
- Adapted to AndroidX
- Includes all translations from pie cycle
- Remove DisplayModes and Dolby
- Add DC-Dimming, FPS Info tile, Refresh Rate preferences
- Change layout to a cleaner look
- Nuke KeyHandler
- Change KeyHandler class and lib overlays to DeviceSettings
- Make DC-Dimming and HBM QS tile reflect active status
Co-authored-by: darkobas <darkobas@gmail.com>
Co-authored-by: Max Weninger <max.weninger@gmail.com>
Co-authored-by: Vachounet <vachounet@live.fr>
Co-authored-by: kldoc <fred.berbigier@gmail.com>
Co-authored-by: Christian Oder <myself5@carbonrom.org>
Co-authored-by: Josh Fox (XlxFoXxlX) <joshfox87@gmail.com>
Co-authored-by: David Sn <divad.nnamtdeis@gmail.com>
Signed-off-by: Anirudh Gupta <anirudhgupta109@gmail.com>
Signed-off-by: Anirudh Gupta <anirudhgupta109@aosip.dev>