I use wiringpi to control the backlight it is also possible to write direct to the hardware see : http://odroid.com/dokuwiki/doku.php?id=en:xu4_cloudshell_lcd_backlight
1. Dietpi-software
select software additional
under Development / Programming add :
Build-essentials
Git client
select go to install the software
2. install wiringpi
git clone https://github.com/hardkernel/wiringPi
cd wiringPi
./build
3. add to /etc/lirc/lircmd.conf
# backlight OFF
begin
prog = irexec
button = KEY_VOLUMEDOWN
config = gpio write 7 0
end
# backlight ON
begin
prog = irexec
button = KEY_VOLUMEUP
config = gpio write 7 1
end
If you want, you can use other remote keys, adjust the button keyword in the config.