Raspberry Pi Official Touch Screen
From ipswichmakerspace
In 2015 the Raspberry Pi foundation brought out an official 7" touch screen device that uses the DSI interface.
This entry will describe several uses and tips.
Switch the backlight
pi@raspberrypi ~ $ uname -a Linux raspberrypi 4.1.12-v7+ #824 SMP PREEMPT Wed Oct 28 16:46:35 GMT 2015 armv7l GNU/Linux
If you have an older version you can upgrade:
sudo rpi-update
When finished reboot.
off: echo 1 > /sys/class/backlight/rpi_backlight/bl_power on echo 0 > /sys/class/backlight/rpi_backlight/bl_power
If you get permission errors
sudo chmod 777 /sys/devices/platform/rpi_backlight/backlight/rpi_backlight/bl_power