U bent hier

Raspberry Pi Touchscreen Brightness Control

Door egbert op vr, 04/06/2018 - 11:20

Using the "echo" command
echo %n% > /sys/class/backlight/rpi_backlight/brightness

%n% represents value between 0 - 255

Change the file permission for /sys/class/backlight/rpi_backlight/brightness to 666. This is not saved on reboot!

To make a permanent change:
1. sudo nano /etc/rc.local
2. Add 1 line above the "exit" line
3. Type in "sudo chmod 666 /sys/class/backlight/rpi_backlight/brightnes"

This is my crontab file:
45 17 * * * echo 255 > /sys/class/backlight/rpi_backlight/brightness
00 19 * * * echo 25 > /sys/class/backlight/rpi_backlight/brightness
00 21 * * * echo 15 > /sys/class/backlight/rpi_backlight/brightness
30 07 * * * echo 200 > /sys/class/backlight/rpi_backlight/brightness