Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/westleyk/pi-backlight
- Owner: WestleyK
- License: mit
- Created: 2018-07-05T17:34:33.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-10-04T18:07:31.000Z (about 6 years ago)
- Last Synced: 2024-10-13T11:42:57.853Z (2 months ago)
- Topics: backlight, backlight-brightness, backlight-dimming, cli, low-power-mode, perl, perl-script, raspberry-pi, raspberry-pi-backlight, rpi, rpi-backlight, rpi-brightness, sleep-mode
- Language: Perl
- Homepage:
- Size: 52.7 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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