===== Debugging the keyboard slide switch / keyboard backlight =====
sudo gainroot
cat /proc/kmsg
As you open and close the keyboard, you'll see messages appear on screen:
slide (GPIO 71) is now closed
slide (GPIO 71) is now open
The following loop sequentially sets the brightness of each of the 6 lights located under the keyboard to 255 (i.e. on) and then back to 0 (i.e. off). If you do it in the dark, you should see the position of each light.
#! /bin/sh
for i in 1 2 3 4 5 6 ; do
echo 255 > /sys/class/leds/lp5523:kb${i}/brightness ;
sleep 1 ;
echo 0 > /sys/class/leds/lp5523:kb${i}/brightness ;
done