Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    keyboard light in rd mode

    Reply
    Vento | # 1 | 2011-07-13, 13:00 | Report

    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

    Edit | Forward | Quote | Quick Reply | Thanks

     
    techno2001 | # 2 | 2011-07-13, 14:14 | Report

    Edit /etc/pmconfig and change "sleep_ind 1" to "sleep_ind 0", then reboot

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 2 Users Say Thank You to techno2001 For This Useful Post:
    Estel, Vento

     
    Vento | # 3 | 2011-07-13, 14:29 | Report

    thanks!!!! works!

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Mentalist Traceur | # 4 | 2011-07-13, 14:55 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks

    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, techno2001

     
    Estel | # 5 | 2013-06-07, 00:41 | Report

    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

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to Estel For This Useful Post:
    reinob

     
vBulletin® Version 3.8.8
Normal Logout