Active Topics

 


Reply
Thread Tools
noobmonkey's Avatar
Posts: 3,203 | Thanked: 1,391 times | Joined on Nov 2009 @ Worthing, England
#11
i have some code , but on my pc.

will test the lights individually......

will try n find it later.
__________________
----------- Follow me on Twitter here
----------- My Photography Website and Blog is here
----------- Author of the N900 Health Check Application ----------- New Version in Extras Devel (Dec 2010 - 2.9.10)
----------- Are you on the N900 World Map? - http://pininthemap.com/maemo - masterpin: shotgun
----------- What apps do you want to see on the n900 or in MeeGo in the future? -
 
MohammadAG's Avatar
Posts: 2,473 | Thanked: 12,265 times | Joined on Oct 2009 @ Jerusalem, PS/IL
#12
Originally Posted by evil_m0nkey View Post
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)
 

The Following User Says Thank You to MohammadAG For This Useful Post:
noobmonkey's Avatar
Posts: 3,203 | Thanked: 1,391 times | Joined on Nov 2009 @ Worthing, England
#13
hehe wont be home for a good few hours
__________________
----------- Follow me on Twitter here
----------- My Photography Website and Blog is here
----------- Author of the N900 Health Check Application ----------- New Version in Extras Devel (Dec 2010 - 2.9.10)
----------- Are you on the N900 World Map? - http://pininthemap.com/maemo - masterpin: shotgun
----------- What apps do you want to see on the n900 or in MeeGo in the future? -
 
noobmonkey's Avatar
Posts: 3,203 | Thanked: 1,391 times | Joined on Nov 2009 @ Worthing, England
#14
Sorrrrrry - had a bit to drink last night... using a keyboard was not a sane idea!

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*
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
__________________
----------- Follow me on Twitter here
----------- My Photography Website and Blog is here
----------- Author of the N900 Health Check Application ----------- New Version in Extras Devel (Dec 2010 - 2.9.10)
----------- Are you on the N900 World Map? - http://pininthemap.com/maemo - masterpin: shotgun
----------- What apps do you want to see on the n900 or in MeeGo in the future? -
 
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:
Posts: 107 | Thanked: 4 times | Joined on Jun 2010
#16
i have the same problem with heman1310 any idea? my lkeyboard lights went off
 
Posts: 107 | Thanked: 4 times | Joined on Jun 2010
#17
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
 
Posts: 107 | Thanked: 4 times | Joined on Jun 2010
#18
i think that the problem happened after playing with fcam or changing theme (not a costum one). i unistalled the fcam but still nothing
 
Posts: 692 | Thanked: 264 times | Joined on Dec 2009
#19
I got the script to run (I called mine "lightcycle" ) and it didn't give any errors but the keyboard lights just acted normal.
__________________
"Impossible is not in the Maemo vocabulary" - Caballero

Last edited by GameboyRMH; 2010-08-19 at 13:07.
 
Posts: 107 | Thanked: 4 times | Joined on Jun 2010
#20
Originally Posted by GameboyRMH View Post
I got the script to run (I called mine "lightcycle" ) 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

Last edited by naturegodtm; 2010-08-19 at 13:23.
 
Reply


 
Forum Jump


All times are GMT. The time now is 21:24.