Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/westleyk/pi-backlight

A simple cli script for crude sleep mode and to adjust your raspberry pi backlight
https://github.com/westleyk/pi-backlight

backlight backlight-brightness backlight-dimming cli low-power-mode perl perl-script raspberry-pi raspberry-pi-backlight rpi rpi-backlight rpi-brightness sleep-mode

Last synced: about 1 month ago
JSON representation

A simple cli script for crude sleep mode and to adjust your raspberry pi backlight

Awesome Lists containing this project

README

        

# 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 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 \



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