Skip to content

WestleyK/pi-backlight

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Simple perl script for crude sleep mode/low power mode and for adjusting backlight

Designed and tested for raspberry pi with official 7 inch touchdcreen.

Install, update and uninstall:

To install:

cd ~/
mkdir raspberrypi-backlight
cd raspberrypi-backlight/
git clone https://github.com/WestleyK/pi-backlight.git
cd pi-backlight/
sudo ./make.sh install

Update:

Updating instructions comming soon!

nothing

To uninstall:

sudo rm /usr/local/bin/pi-backlight


Usage:


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!


End README