Reply
Thread Tools
Posts: 617 | Thanked: 338 times | Joined on Mar 2011
#1
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 ?
 

The Following 2 Users Say Thank You to Dragoss91 For This Useful Post:
Erazor's Avatar
Posts: 160 | Thanked: 33 times | Joined on May 2010
#2
want this too O.O
 
ossipena's Avatar
Posts: 3,159 | Thanked: 2,023 times | Joined on Feb 2008 @ Finland
#3
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...
__________________
Want to know something?
K.I.S.S. approach:
wiki category:beginners. Browse it through and you'll be much wiser!
If the link doesn't help, just use
Google Custom Search
 
dr_frost_dk's Avatar
Posts: 1,503 | Thanked: 2,688 times | Joined on Oct 2010 @ Denmark
#4
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
 

The Following User Says Thank You to dr_frost_dk For This Useful Post:
Erazor's Avatar
Posts: 160 | Thanked: 33 times | Joined on May 2010
#5
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

Last edited by Erazor; 2011-04-30 at 15:51.
 

The Following 3 Users Say Thank You to Erazor For This Useful Post:
dr_frost_dk's Avatar
Posts: 1,503 | Thanked: 2,688 times | Joined on Oct 2010 @ Denmark
#6
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
 

The Following User Says Thank You to dr_frost_dk For This Useful Post:
Erazor's Avatar
Posts: 160 | Thanked: 33 times | Joined on May 2010
#7
Originally Posted by dr_frost_dk View Post
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's Avatar
Posts: 1,503 | Thanked: 2,688 times | Joined on Oct 2010 @ Denmark
#8
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
 

The Following User Says Thank You to dr_frost_dk For This Useful Post:
Erazor's Avatar
Posts: 160 | Thanked: 33 times | Joined on May 2010
#9
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's Avatar
Posts: 1,503 | Thanked: 2,688 times | Joined on Oct 2010 @ Denmark
#10
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
 
Reply


 
Forum Jump


All times are GMT. The time now is 05:57.