maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   keyboard light in rd mode (https://talk.maemo.org/showthread.php?t=74887)

Vento 2011-07-13 13:00

keyboard light in rd mode
 
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

techno2001 2011-07-13 14:14

Re: keyboard light in rd mode
 
Edit /etc/pmconfig and change "sleep_ind 1" to "sleep_ind 0", then reboot

Vento 2011-07-13 14:29

Re: keyboard light in rd mode
 
thanks!!!! works!

Mentalist Traceur 2011-07-13 14:55

Re: keyboard light in rd mode
 
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.

Estel 2013-06-07 00:41

Re: keyboard light in rd mode
 
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


All times are GMT. The time now is 06:36.

vBulletin® Version 3.8.8