Thread: Keyboard Light
View Single Post
Heman1310's Avatar
Posts: 162 | Thanked: 42 times | Joined on Dec 2009 @ Finland
#15
Originally Posted by noobmonkey View Post
Sorrrrrry - had a bit to drink last night... using a keyboard was not a sane idea!





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.

backlights.sh
Code:
#! /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

Tadaaaaaaaaaaaaa
I can't find that file in in /sys/class/leds/lp5523:kb. Could it be because im using PR1.2 RC?
 

The Following User Says Thank You to Heman1310 For This Useful Post: