DroidForums.net is the original Verizon Android Forum! Registered Users do not see these ads. Please Register - It's Free!
Page 2 of 2 FirstFirst 1 2
Results 11 to 20 of 20

Thread: Liberty Flashed, keyboard lights?

  1. Junior Droid
    Lunatics's Avatar
    Member #
    152944
    Join Date
    Dec 2010
    Posts
    12
    Phone
    Droid 2 Global
    #11
    I still get the same 2 errors with a space, only the first one says "While [ not found".
  2. Junior Droid
    baker1md's Avatar
    Member #
    177288
    Join Date
    Mar 2011
    Posts
    11
    Phone
    Enter Current Phone Model Here
    #12
    I've fixed the errors in the script above
    Try to copy/paste that again. "The first one for keyboard"
    Then reboot before you run it.

    from D2G duh..
  3. Junior Droid
    baker1md's Avatar
    Member #
    177288
    Join Date
    Mar 2011
    Posts
    11
    Phone
    Enter Current Phone Model Here
    #13
    Quote Originally Posted by buryboi View Post
    Great job! I'll incorporate this into the Romer and set it to run on boot.
    Awesome! if you do. use the fixed one it works better to have the light off command before the event check.
    Last edited by baker1md; 03-15-2011 at 03:24 PM.
  4. Junior Droid
    Lunatics's Avatar
    Member #
    152944
    Join Date
    Dec 2010
    Posts
    12
    Phone
    Droid 2 Global
    #14
    Hm, now the soft button lights are coming on but getting an error "read Illegal option -n" and the keyboard doesn't light up.
  5. Junior Droid
    baker1md's Avatar
    Member #
    177288
    Join Date
    Mar 2011
    Posts
    11
    Phone
    Enter Current Phone Model Here
    #15
    ok Lunatics stick with it I swear it works lol. here do this one.

    Code:
    while [ 1 ]
        do
            echo 0 > /sys/class/leds/keyboard-backlight/brightness
            cat /dev/input/event4|read -n 4
            echo "1" > /sys/class/leds/keyboard-backlight/brightness
        sleep 15
    done
    also are you running from a terminal or from Gscript ?
  6. Junior Droid
    Lunatics's Avatar
    Member #
    152944
    Join Date
    Dec 2010
    Posts
    12
    Phone
    Droid 2 Global
    #16
    Error message still comes up for whatever reason with that one however both lights work now, thanks a lot. Also I'm using Gscript.
  7. Junior Droid
    baker1md's Avatar
    Member #
    177288
    Join Date
    Mar 2011
    Posts
    11
    Phone
    Enter Current Phone Model Here
    #17
    Excellent. The error is probably because Gscript is executing before its granted root. Make sure the box for use root is checked. You can also ad the command "su" at the start of the sript to be sure.

    from D2G duh..
  8. Beta Team
    buryboi's Avatar
    Member #
    17603
    Join Date
    Dec 2009
    Posts
    234
    Liked
    3 times
    Phone
    Droid
    DroidForums.net Developer
    Premium Member
    #18
    @baker,

    What I've got is a script that starts the two light scripts, it looks like this:

    Code:
    #!/system/bin/sh
    keyboardlights.sh
    
    softkeylights.sh
    Because each of the light scripts are open ended while scripts, the first one starts, but never loads the second one.

    You seem like you know a bit about scripts, what can I do to make it start the first light script and then continue on to the next one.

    Edit: Nevermind,

    Code:
    nohup keyboardlights.sh &
    nohup softkeylights.sh &
    fixed it!

    Romer_v7 released in the original Thread Here
  9. Junior Droid
    baker1md's Avatar
    Member #
    177288
    Join Date
    Mar 2011
    Posts
    11
    Phone
    Enter Current Phone Model Here
    #19
    Nice solution! I'm happy I could help out with romer 7. This is great stuff.

    My fix incapsulated both events in functions of the same script droped that into /system/etc/init.d and created a config file for timeout variable adjustment I'm working on a script to change config values from terminal so I can keep the files on the ro mount. If you want ill upload them once I'm sure they are bugless. wow! great day off for me hacking out my droid.


    from D2G duh..
  10. Beta Team
    buryboi's Avatar
    Member #
    17603
    Join Date
    Dec 2009
    Posts
    234
    Liked
    3 times
    Phone
    Droid
    DroidForums.net Developer
    Premium Member
Page 2 of 2 FirstFirst 1 2

Links

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Similar Threads

  1. Keyboard lights
    By Snare in forum Motorola Droid 2 Global
    Replies: 4
    Last Post: 01-03-2011, 02:10 PM
  2. LED and Keyboard lights not working
    By BrianV in forum Android General Discussions
    Replies: 2
    Last Post: 08-24-2010, 06:58 PM
  3. Keyboard lights won't work...
    By JoeeDB in forum Android General Discussions
    Replies: 8
    Last Post: 01-25-2010, 07:54 PM
  4. keyboard lights
    By wallstreet123456 in forum Android General Discussions
    Replies: 6
    Last Post: 12-21-2009, 08:30 AM

Search tags for this page

/sys/class/leds/button-backlight/brightness
,

droid 2 global keyboard backlight

,
droid 2 global keyboard backlight rom
,
droid 2 global keyboard light
,
droid 2 keyboard backlight on then off
,

droid 2 keyboard light

,
droid 2 keyboard light disable
,
droid 3 keyboard light liberty
,
droid rom keyboard light
,
echo 1> /sys/class/leds/keyboard-backlight/brightness
,
how to off keypad lights in android
,
is there a way to change the color of the keyboard on the dr
,
keyboard light up keys droid2
,
led off gscript
,
liberty rom soft keys light
Click on a term to search our site for related topics.
Find us on Google+