Designed and tested for raspberry pi with official 7 inch touchdcreen.
cd ~/
mkdir raspberrypi-backlight
cd raspberrypi-backlight/
git clone https://github.com/WestleyK/pi-backlight.git
cd pi-backlight/
sudo ./make.sh install
Updating instructions comming soon!
nothing
sudo rm /usr/local/bin/pi-backlight
pi@raspberrypi:~ $ pi-backlight -help
Usage: pi-backlight [option]
-h | -help | --help (print help menu)
[15-255] (adjust from: 15 to: 255)
-u | -up (brighter by: 25)
-d | -down (lower by: 25)
-s | -sleep (enter sleep mode, press <ENTER> to exit this mode)
-c (print currnt brightness, scale:[15-255])
-n | -on (turns backlight on to: 200)
-i | -info (print script info)
-v | -version | --version (print version)
source code: https://github.com/WestleyK/pi-backlight
pi@raspberrypi:~ $
Quick brightness adjust:
$ pi-backlight XXX
Where XXX
is any whole number from 15
to 255
, for example:
$ pi-backlight 200
And of corse, sleep mode:
$ pi-backlight -s
Sleep mode will turn off the display backlight until you push <ENTER>
You can also use the -up
and -down
option:
$ pi-backlight -u
Or:
$ pi-backlight -up
To adjust backlight highter,
And to adjust backlight down:
$ pi-backlight -d
Or:
$ pi-backlight -down
To adjust backlight lower.
Feel free to modify this :)
Any issues or feature request please let me know!