View Single Post
Old 09-16-2023, 10:55 AM   #1130
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
Quote:
Originally Posted by Aleron Ives View Post
Based on the KOReader code, it looks like you can also do something like:

echo 10 > /sys/class/backlight/mxc_msp430.0/brightness

to set the backlight to 10%
On recent devices, yes (assuming the right sysfs path is used ;p). On older devices, not so much. The ioctl has the advantage of (currently) working *everywhere* .

But, if you happen to also be changing the color, then going full sysfs looks mildly cleaner .

Last edited by NiLuJe; 09-16-2023 at 10:58 AM.
NiLuJe is offline   Reply With Quote