![]() |
[Request] Status-menu plugin to enable/disable the hardware keyboard's backlight
There are times when I want to use the hwkb but often worried that it would use up battery power due to the backlight leds being lighted up for some time. So a status menu plugin to enable/disable it would be really helpful.
I want to pop out the hwkb and not have the backlight lit up, and when I need it to light up, I can easily enable it through the status-menu. I hope it is possible. TIA! :) |
Re: [Request] Status-menu plugin to enable/disable the hardware keyboard's backlight
the kbd backlight is controlled via mce process and lp5523 kernel driver in /sys/class/leds/lp5523:kb?/* and engine3.
Possible hooks are: /etc/mce/mce.ini ([KeyPad] BacklightTimeout=30) problem: mce needs a restart to read in new values from mce.ini /sys/class/leds/lp5523:kb?/led_current /sys/class/leds/lp5523:kb?/brightness /sys/class/i2c-adapter/i2c-2/2-0032/engine3_mode see http://wiki.maemo.org/N900_Hardware_LED and http://wiki.maemo.org/LED_patterns#Low_Level for details. Code:
for L in /sys/class/leds/lp5523:kb?; do echo 0 >$L/led_current; done Beware! Values >50 for led_current may instantly kill your LEDs! Anyway I hope it helps you with some suggestions where to start. /jOERG [edit] ps.: please notice your kbd backlight will get turned off when ambient light is bright enough |
Re: [Request] Status-menu plugin to enable/disable the hardware keyboard's backlight
thanks doc!
|
Re: [Request] Status-menu plugin to enable/disable the hardware keyboard's backlight
Hello to all I just have a question it would be possible just leave some of the keyboad lights on, for example; when we are using an emulator and we have the keyboard mapped just leave the mapped keys with lights on! do you guys think this possible??
Just an ideia. Bruno |
Re: [Request] Status-menu plugin to enable/disable the hardware keyboard's backlight
MAG did a proof-of-concept program that turned certain diodes beneath keyboard on demand (there are 6 diodes total out there), so it's probably perfecdtly achievable.
Yet, You guys are overrating effect on battery life, generated by kb diodes - they're not like backlight of screen, so don't expect noticeable powersaving, even by disabling them totally. OZr I just don't feel it using 3000 mAh battery, which seems to be much more effective way of extending runtime :p /Estel |
Re: [Request] Status-menu plugin to enable/disable the hardware keyboard's backlight
Quote:
Bruno |
Re: [Request] Status-menu plugin to enable/disable the hardware keyboard's backlight
Quote:
|
Re: [Request] Status-menu plugin to enable/disable the hardware keyboard's backlight
with those 6 diodes you hardly can illuminate particular keys while keeping others dark.
For Mohammad's POC (actually iirc I posted him how to do it ;-D), you simply add a Code:
sleep 1 regarding power consumption: 6 * 5mA * ~2V = ~60mW screen backlight is using up to 15 times that, iirc and my math still works /j |
All times are GMT. The time now is 08:35. |
vBulletin® Version 3.8.8