maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   Keyboard Light (https://talk.maemo.org/showthread.php?t=50766)

noobmonkey 2010-04-28 17:13

Re: Keyboard Light
 
i have some code , but on my pc.

will test the lights individually......

will try n find it later.

MohammadAG 2010-04-28 19:25

Re: Keyboard Light
 
Quote:

Originally Posted by evil_m0nkey (Post 631830)
anyone?
i really want keyboard backlight working again without flashing my N900

mce controls the backlight, so unless you tinkered with the /etc/mce/mce.ini file and removed the keypad from modules they wouldn't turn off easily.

Might be a hardware problem, I'll leave noobmonk3y to figure out the code that tests the keypad light.

(Just had an idea, R&D mode activates the backlight from bootup on two sides of the keyboard (to indicate system activity), try to enable R&D mode and see if the backlight goes on, if not, it's a hardware problem. Search for R&D in the wiki)

noobmonkey 2010-04-28 19:33

Re: Keyboard Light
 
hehe wont be home for a good few hours :)

noobmonkey 2010-04-29 10:49

Re: Keyboard Light
 
Sorrrrrry - had a bit to drink last night... using a keyboard was not a sane idea!

Quote:

The backlight under the keyboard is provided via 6 indepedent lights. Control and status information for those lights are found in /sys/class/leds/lp5523:kb*
Quote:

oslo:~# ls -l /sys/class/leds/lp5523:kb1/
-rw-r--r-- 1 root root 4096 Dec 20 02:34 brightness
lrwxrwxrwx 1 root root 0 Dec 20 02:21 device -> ../../i2c-adapter/i2c-2/2-0032
-rw-rw-rw- 1 root root 4096 Dec 20 02:22 led_current
drwxr-xr-x 2 root root 0 Dec 20 02:21 power
lrwxrwxrwx 1 root root 0 Dec 20 02:21 subsystem -> ../../leds
-rw-r--r-- 1 root root 4096 Dec 20 02:21 trigger
-rw-r--r-- 1 root root 4096 Dec 20 02:21 uevent
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

Heman1310 2010-05-03 04:36

Re: Keyboard Light
 
Quote:

Originally Posted by noobmonkey (Post 632950)
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?

naturegodtm 2010-08-19 02:20

Re: Keyboard Light
 
i have the same problem with heman1310 any idea? my lkeyboard lights went off

naturegodtm 2010-08-19 12:33

Re: Keyboard Light
 
i rm mce.ini in order to install it again with apt-get install mce ,but now i cant find it. i tried to rm it cause after ./mce.ini i got 490 lines not found . plzzzz any help ? i ve tried everything

thnx in advance

naturegodtm 2010-08-19 12:45

Re: Keyboard Light
 
i think that the problem happened after playing with fcam or changing theme (not a costum one). i unistalled the fcam but still nothing

GameboyRMH 2010-08-19 13:05

Re: Keyboard Light
 
I got the script to run (I called mine "lightcycle" :D) and it didn't give any errors but the keyboard lights just acted normal.

naturegodtm 2010-08-19 13:11

Re: Keyboard Light
 
Quote:

Originally Posted by GameboyRMH (Post 791783)
I got the script to run (I called mine "lightcycle" :D) and it didn't give any errors but the keyboard lights just acted normal.

can u plz tell me how to make it run? i just copied and pasted in the terminal as root. or how to instal the mce drivers again .i tried apt-get --reinstall install mce

and then copied and paste the script and got 490 lines with not found :(


All times are GMT. The time now is 15:25.

vBulletin® Version 3.8.8