maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   General (https://talk.maemo.org/forumdisplay.php?f=7)
-   -   Increase keyboard leds power ? (https://talk.maemo.org/showthread.php?t=72639)

Dragoss91 2011-04-29 21:24

Increase keyboard leds power ?
 
Today I installed nitdroid on my n900 and I noticed my keyboard lights was much brighter in nitdoid than in maemo . Anyone knows how chould I make them to illuminate like in nitrdoid ?

Erazor 2011-04-30 11:17

Re: Increase keyboard leds power ?
 
want this too O.O
:D

ossipena 2011-04-30 11:24

Re: Increase keyboard leds power ?
 
http://wiki.maemo.org/LED_patterns#N900

that could help.. if it doesn't then you probably need to have knowledge about compiling drivers for led controller...

dr_frost_dk 2011-04-30 11:48

Re: Increase keyboard leds power ?
 
you can also try my custom brightness, the simple mod first, it makes the indicator led more bright, maybe also the keypad, i can't tell since i have been using my custom brightness mod and then simple mod since a few weeks after i got my N900

Erazor 2011-04-30 15:46

Re: Increase keyboard leds power ?
 
changed in the file "led_current" "50" to "100" (im now on 2000.. don't know how much is good for the leds)
in the following dirs

/sys/class/leds/lp5523:kb1#
/sys/class/leds/lp5523:kb2#
/sys/class/leds/lp5523:kb3#
/sys/class/leds/lp5523:kb4#
/sys/class/leds/lp5523:kb5#
/sys/class/leds/lp5523:kb6#

now the keyboard is brighter :)


edit
after closing and open the N again, the value is 50 again.
But whe are cloooooooooose :D

dr_frost_dk 2011-04-30 15:58

Re: Increase keyboard leds power ?
 
look to my custom brightness, the init scripts might help you here, it will tell the os to turn the light to a specific level everytime the keypad light comes on

Erazor 2011-04-30 16:03

Re: Increase keyboard leds power ?
 
Quote:

Originally Posted by dr_frost_dk (Post 997863)
look to my custom brightness, the init scripts might help you here, it will tell the os to turn the light to a specific level everytime the keypad light comes on

can you give me/us a walktrough/how-to-do in this thread?

whould be nice when you make this ;)

Greetz
Erazor

dr_frost_dk 2011-04-30 16:17

Re: Increase keyboard leds power ?
 
download the zip, look at init.d and see what you "script" does an change the settings to only use the keypad

REMEMBER: DON'T INSTALL, JUST USE THE INIT & EVENT

event.d
Code:

start on started hildon-desktop
exec /etc/init.d/custom_brightness_init.d

init.d
Code:

#! /bin/sh

cat /home/user/custom_brightness_settings >/sys/class/backlight/acx565akm/brightness
dbus-monitor --system type='signal',interface='com.nokia.mce.signal',member='display_status_ind' | while grep -q '"on"'
do
tide=0
while [ $tide -lt 5 ]
do
tide=$(expr $tide + 1)
done
cat /home/user/custom_brightness_settings >/sys/class/backlight/acx565akm/brightness   
done


Erazor 2011-04-30 19:18

Re: Increase keyboard leds power ?
 
copied

"custom_brightness_init.d" to "/etc/init.d/"
and
"custom_brightness_event.d" to "/etc/event.d"


changed "custom_brightness_init.d" to
Code:

#! /bin/sh

dbus-monitor --system type='signal',interface='com.nokia.mce.signal',member='display_status_ind' | while grep -q '"on"'
do
echo "5000" >> /sys/class/leds/lp5523:kb1/led_current
echo "5000" >> /sys/class/leds/lp5523:kb2/led_current
echo "5000" >> /sys/class/leds/lp5523:kb3/led_current
echo "5000" >> /sys/class/leds/lp5523:kb4/led_current
echo "5000" >> /sys/class/leds/lp5523:kb5/led_current
echo "5000" >> /sys/class/leds/lp5523:kb6/led_current
done


is this right?

dr_frost_dk 2011-04-30 22:33

Re: Increase keyboard leds power ?
 
i think we need more Geniuses in here to help

by doing
Code:

lshal -m
i can see that the function that controls the keypad leds are 'platform_slide property button.state.value'
Here 'true' is keypad closed (off) and 'false' is keypad open (on)

I don't know how to link this to dbus-monitor, when using dbus-monitor it reacts to open and close but displays the same, of course even if the echo "5000" ... is used when keypad is closed, the leds don't light up.

'Erazor' if you want to try yourself the relevant commands are
Code:

lshal -m
Code:

dbus-monitor --system


All times are GMT. The time now is 04:48.

vBulletin® Version 3.8.8