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

Erazor 2011-05-01 01:03

Re: Increase keyboard leds power ?
 
Quote:

Originally Posted by dr_frost_dk (Post 998029)
i think we need more Geniuses in here to help

I'm not amused -.-
:P

xD

im not the scripting kid btw.. ^^

Quote:

Originally Posted by dr_frost_dk (Post 998029)
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

yeah
i'll test somethig.


!!!
AND YES

WE NEED A DEVELOPER / SCRIPTER TO HELP US WITH THE KEYBOARD LIGHTS !!!


perhabs a app would be nice to change the brightness like this in the settings for the display.

Did i hear a CSSU Devoloper to integrate this in the "Firmware-Update"

:D

hawaii 2011-05-01 04:28

Re: Increase keyboard leds power ?
 
Quite easily done using dbuscron or dbus-scripts to trigger when the KB is slid running a script to echo in higher values.

Unsure what the hardware repercussions of this are, though.

Erazor 2011-05-02 09:35

Re: Increase keyboard leds power ?
 
any help yet? :(

hope we get some who can write us the script/program whtaever.


i try do get some attention to this thread.

Greetz
Erazor

Erazor 2011-05-07 09:22

Re: Increase keyboard leds power ?
 
*PUSH*

sry for the double post!


but i don't want to get this thread into oblivian.

anapospastos 2011-05-07 09:30

Re: Increase keyboard leds power ?
 
Did you try Keyboard LEDs?

stew-b 2011-05-07 12:14

Re: Increase keyboard leds power ?
 
Quote:

Originally Posted by anapospastos (Post 1001577)
Did you try Keyboard LEDs?


this does nothing other than light up some keys as you move the bar,it offers no control that the OP was asking for?

Erazor 2011-05-07 14:13

Re: Increase keyboard leds power ?
 
jep so it is.

The Tool is nice ;) but we need a deamon or something else that starts on the boot and let they keyboard shine like the sun xD

ddwwf1 2011-05-09 01:06

Re: Increase keyboard leds power ?
 
also would like this as keyboard backlighting seems so dull compared to brightness in NITDroid

IZSkiSurfer 2011-05-31 15:09

Re: Increase keyboard leds power ?
 
1 Attachment(s)
You could try the attached file.
It moves a "kbdled" program which I coded to /opt/maemo/usr/bin

Now you have to create a file in /etc/dbus-scripts.d/ with the following content:

Code:

#:Kbdled slider
/opt/maemo/usr/bin/kbdled * * org.freedesktop.Hal.Device Condition ButtonPressed cover

#:Kbdled inactivity
/opt/maemo/usr/bin/kbdled * * com.nokia.mce.signal system_inactivity_ind

(And of course you have to have dbus-scripts installed :D reboot)

Program should fade when you open up the keyboard from 50 up to 255 led_current and the same when your keyboard is still open but N900 is inactive and gets reactivated.

Hope it works (is my first program so please be gentle :) ).

Erazor 2011-06-05 09:53

Re: Increase keyboard leds power ?
 
Quote:

Originally Posted by IZSkiSurfer (Post 1019464)
You could try the attached file.
It moves a "kbdled" program which I coded to /opt/maemo/usr/bin

Now you have to create a file in /etc/dbus-scripts.d/ with the following content:

Code:

#:Kbdled slider
/opt/maemo/usr/bin/kbdled * * org.freedesktop.Hal.Device Condition ButtonPressed cover

#:Kbdled inactivity
/opt/maemo/usr/bin/kbdled * * com.nokia.mce.signal system_inactivity_ind


(And of course you have to have dbus-scripts installed :D reboot)

Program should fade when you open up the keyboard from 50 up to 255 led_current and the same when your keyboard is still open but N900 is inactive and gets reactivated.

Hope it works (is my first program so please be gentle :) ).

thxfor your program
sry that i have to say!
but doesn't work for me : /

F2thaK 2011-06-05 10:05

Re: Increase keyboard leds power ?
 
Quote:

Originally Posted by IZSkiSurfer (Post 1019464)
You could try the attached file.
It moves a "kbdled" program which I coded to /opt/maemo/usr/bin

Now you have to create a file in /etc/dbus-scripts.d/ with the following content:

Code:

#:Kbdled slider
/opt/maemo/usr/bin/kbdled * * org.freedesktop.Hal.Device Condition ButtonPressed cover

#:Kbdled inactivity
/opt/maemo/usr/bin/kbdled * * com.nokia.mce.signal system_inactivity_ind

(And of course you have to have dbus-scripts installed :D reboot)

Program should fade when you open up the keyboard from 50 up to 255 led_current and the same when your keyboard is still open but N900 is inactive and gets reactivated.

Hope it works (is my first program so please be gentle :) ).

what name should the file in "/etc/dbus-scripts.d/" have?

I went with 'kbdled'


edit: dont think it works for me either, when i open kb lights come on for a sec then go to 50 then increases brightness. but doesnt seem any brighter

Erazor 2011-06-05 10:42

Re: Increase keyboard leds power ?
 
Quote:

Originally Posted by F2thaK (Post 1022533)
what name should the file in "/etc/dbus-scripts.d/" have?

I went with 'kbdled'


edit: dont think it works for me either, when i open kb lights come on for a sec then go to 50 then increases brightness. but doesnt seem any brighter

saved it with kbdled, too.

i play with it.
perhabs i find a solution

F2thaK 2011-06-05 11:00

Re: Increase keyboard leds power ?
 
seems to work but doesnt increase brightness

Erazor 2011-06-05 13:24

Re: Increase keyboard leds power ?
 
Quote:

Originally Posted by F2thaK (Post 1022559)
seems to work but doesnt increase brightness

same 4 me

*working in progress*

//edit:

:D it works....

OMFG big thx..

i hope to see this in the repository soon :D


i have restartet the N900 a few times and now it works

when i slide up, it grows up, than goes darker and than shiny xD


thx so much ;)

F2thaK 2011-06-07 13:03

Re: Increase keyboard leds power ?
 
1 Attachment(s)
yes was just going to post that it works

:D

edit: guess which one has the MOD

Erazor 2011-06-07 13:13

Re: Increase keyboard leds power ?
 
Quote:

Originally Posted by F2thaK (Post 1024076)
yes was just going to post that it works

:D

edit: guess which one has the MOD

let me try let me try let me try let me try let me try let me try let me try let me try let me try let me try let me try let me try let me try let me try

iiiii sayyyy the right one

0.0

im right yes?!



:D :D :D :D :D :D :D :D

the app is awesome ;)


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

vBulletin® Version 3.8.8