Skip to content
Simple program for controlling backlight of the official Raspberry Pi Touchscreen.
Branch: master
Clone or download
Latest commit 946ec2e Jul 27, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
LICENSE
Makefile Added documentation. Apr 29, 2016
README.md Update README.md Jul 27, 2018
rpi-backlight.c Forgot an escaping %... May 12, 2016

README.md

rpi-backlight

Simple program for controlling backlight of the official Raspberry Pi Touchscreen.

COMPLETE FUNCTIONALITY ON DISPLAY BOARDS V2.0 AND V1.1 ONLY!

DISPLAY BOARD V1.0 ONLY "on" AND "off" WORKING (need to verify)

Make sure you execute following commands to be able to access config files as a regular user:

sudo su -c 'echo SUBSYSTEM==\"backlight\", RUN+=\"/bin/chmod 0666 /sys/class/backlight/%k/brightness /sys/class/backlight/%k/bl_power\" > /etc/udev/rules.d/99-backlight.rules'
sudo reboot

Installation

git clone https://github.com/jakeh12/rpi-backlight.git
cd rpi-backlight
make
sudo make install

Usage

rpi-backlight [option]

	up:		increases brightness by 10%
	down:	decreases brightness by 10%
	max:	sets brightness to 100%
	min:	sets brightness to 0%
	on:		turns the screen on
	off:	turns the screen off

Thanks for using this program. Feel free to modify, improve, and share. Open source spirit.

You can’t perform that action at this time.