Reply
Thread Tools
Posts: 178 | Thanked: 91 times | Joined on May 2011 @ Mira (Venice) - Italy
#1
hi I put my N900 in RD mode there is a way use the keyboard light normaly, like in non-Rd mode?

sorry for my bad english i'm italian
 
Posts: 6 | Thanked: 5 times | Joined on Jan 2010 @ Azerbaijan / tabriz
#2
Edit /etc/pmconfig and change "sleep_ind 1" to "sleep_ind 0", then reboot
 

The Following 2 Users Say Thank You to techno2001 For This Useful Post:
Posts: 178 | Thanked: 91 times | Joined on May 2011 @ Mira (Venice) - Italy
#3
thanks!!!! works!
 
Posts: 2,225 | Thanked: 3,822 times | Joined on Jun 2010 @ Florida
#4
Does the above method persist through a reboot? I do it by commenting out this line in /sbin/preinit:

Code:
       echo active > /sys/devices/platform/gpio-switch/sleep_ind/state      
       awk '/sleep_ind/{ if ($2 == 1) { VALUE="active"; } else { VALUE="inactive"; } print VALUE > "/sys/devices/platform/gpio-switch/sleep_ind/state"  }' < /etc/pmconfig
My approach does persist through a reboot, but if yours does too, cool.

Last edited by Mentalist Traceur; 2011-07-13 at 17:10. Reason: Forgot piece of second line.
 

The Following 2 Users Say Thank You to Mentalist Traceur For This Useful Post:
Estel's Avatar
Posts: 5,028 | Thanked: 8,613 times | Joined on Mar 2011
#5
I know it's a bit of thread-necromacy, but, as I just used it, managed to bring typo into /sbin/preinit, get unbootable device, and fix it, thanks to Mentalist Traceur's recovery shell, I think I'll put this info here (even if only for myself, if I ever need to re-find it again):

Yes, changing sleep_ind from 1 to 0 in /etc/pmconfig persist through reboots, there is no need to comment out things in /sbin/preinit.

Even more - /sbin/preinit does something strange here. If R&D mode is enabled, it enables indicator leds, then, in very next line, it checks /etc/pmconfig. If sleep_ind is enabled, it keep it that way, if it's disabled, it disables LED's (that were enabled just a line ago!).

Why it does this, instead of checking /etc/pmconfig only, it's beyond me. Maybe it's some leftover from times, where they planned to allow keyboard activity flickering even without R&D mode?

In fact, by little tweak to /sbin/preinit, one may take check of /etc/pmconfig out of IF, and make LED flickering depending *only* on entry in /etc/pmconfig, R&D mode or not. It sounds like more sane approach, all-together.

/Estel
__________________
N900's aluminum backcover / body replacement
-
N900's HDMI-Out
-
Camera cover MOD
-
Measure battery's real capacity on-device
-
TrueCrypt 7.1 | ereswap | bnf
-
Hardware's mods research is costly. To support my work, please consider donating. Thank You!
 

The Following User Says Thank You to Estel For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 16:09.