Thanks so much Renate!
Might just be me, but I still find this too bright. At the lowest setting (warmest colour, 5% brightness) adb shows me the levels as:
Code:
Poke3:/ $ cat /sys/class/backlight/warm/brightness
64
Poke3:/ $ cat /sys/class/backlight/white/brightness
0
Hope you don't mind, but I disassembled your app and hardcoded a version to set the levels to the following:
Code:
Poke3:/ $ cat /sys/class/backlight/warm/brightness
5
Poke3:/ $ cat /sys/class/backlight/white/brightness
0
4 is too dark even for me, and [0,1,2,3] actually turn off the light.
I find this hacky solution perfect when reading at night in the pitch dark, and if I ever need more brightness at other times I'll use the built in controls.
Thanks massively for sharing the original app anyhow!