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

Thread: Liberty Flashed, keyboard lights?

  1. Junior Droid
    na8flush's Avatar
    Member #
    174840
    Join Date
    Feb 2011
    Posts
    9
    Phone
    Droid 2 Global
    #1

    Liberty Flashed, keyboard lights?

    So, I flashed my D2G to Liberty 1.5, and I'm loving it. The Get-r-done tool worked great, awesome to see some support for the global.

    However, I've run into a few snags. Mainly, the sensors. Which I know is an issue, and has been talked to death, but the only problem I'm having with it is the keyboard backlight. I can do without bluetootk and all, I would just need to have the keyboard and soft keys light up. It's pretty damn impossible to use in the dark without em.

    So, I flashed the sensors.zip, and now the keys work great again, but the phone reboots itself all the time. I know this is an known issue, I'm just wondering if there's simply a solution for just the backlight issue, or does Fission not have this problem, because I'd be willing to switch to that if so. Thanks.
  2.  
     
     
     
  3. Junior Droid
    na8flush's Avatar
    Member #
    174840
    Join Date
    Feb 2011
    Posts
    9
    Phone
    Droid 2 Global
    #2
    So, answering my own question. There's a lot to read in these forums, and sometimes the 22 page thread answers a question you didn't think it would.

    Guess the backlight can't be fixed till the sensor issue is, and get-r-done is working hard on that.

    However, I found a temp solution for the soft keys not lighting up. This app will enable them manually, but not the keyboard.

    https://market.android.com/details?i....adjbrightness
  4. Junior Droid
    baker1md's Avatar
    Member #
    177288
    Join Date
    Mar 2011
    Posts
    11
    Phone
    Enter Current Phone Model Here
    #3
    Here is my work around for lights. From terminal or script run as root.

    (To turn on)
    echo 1 > /sys/class/leds/keyboard-backlight/brightness
    echo 1 > /sys/class/leds/button-backlight/brightness

    (To turn off)
    echo 0 > /sys/class/leds/keyboard-backlight/brightness
    echo 0 > /sys/class/leds/button-backlight/brightness

    You can create a shortcut on your screen with an ap like "Gscript " and just toggle them on and off as needed. I still miss the sensors but at least I can see what I'm doing now.

    from D2G duh..
  5. Junior Droid
    na8flush's Avatar
    Member #
    174840
    Join Date
    Feb 2011
    Posts
    9
    Phone
    Droid 2 Global
    #4
    Awesome, that worked perfectly. A toggle makes it not so bad at all, I may go back to liberty now since fission isn't so good after trying liberty.

    You should message your fix to buryboi, the guy who's been trying to crack the sensor issue

    Sent from my DROID2 GLOBAL using DroidForums App
  6. Junior Droid
    baker1md's Avatar
    Member #
    177288
    Join Date
    Mar 2011
    Posts
    11
    Phone
    Enter Current Phone Model Here
    #5
    I did a little more tweaking and got it so my lights come on for 15 +- seconds after keypress. This way I don't have to toggle the backlight anymore. You'll want to create a shell script on your sdcard or use an ap like "Gscript". Run this script once as root after boot. Change "sleep" value to keep the lights on longer. The script reads the keyboard press event "event4" and turns the lights on for 15 seconds.

    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
    Not sure what toll this may take on the battery. But I doubt its much. Hope this helps. I look forward to seeing a final fix soon.

    from D2G duh..
    Last edited by baker1md; 03-15-2011 at 04:11 PM.
  7. Junior Droid
    Lunatics's Avatar
    Member #
    152944
    Join Date
    Dec 2010
    Posts
    12
    Phone
    Droid 2 Global
    #6
    Hey baker, just wondering if we use that does the phone not reboot itself constantly and we can always have the keyboard lights without having to constantly toggle on/off? If so I will totally be going to liberty because I can live without all of the other sensors.
  8. Junior Droid
    baker1md's Avatar
    Member #
    177288
    Join Date
    Mar 2011
    Posts
    11
    Phone
    Enter Current Phone Model Here
    #7
    Yes. Just flash Liberty, flash Romer, flash sensor toggle ( to turn off sensors ). Then create a shell script and run it from terminal or Gscript as my post describes. You will need to run the script every time you reboot your phone. I'm sure there is a way to run it at startup but it would probably require you to remout your /system files and change things. So its safe to just run the script manually. I don't want to be the guy that tells you to mess up your phone . If you are curious you can also create scripts for other input events useing this method.

    Try soft keys.

    Code:
    while [ 1 ]
        do 
            echo 0 > /sys/class/leds/button-backlight/brightness
            cat /dev/input/event3|read -n 4
            echo 1 > /sys/class/leds/button-backlight/brightness
        sleep 15
    done
    Again this fixes just the keyboard and softkey lights on the phone. It does not fix your sensors. so toggle them off when you flash your Rom with GET-R-DONE tools. That way you don't reboot every time the phone gets tired.
    Last edited by baker1md; 03-15-2011 at 03:26 PM.
  9. Junior Droid
    Lunatics's Avatar
    Member #
    152944
    Join Date
    Dec 2010
    Posts
    12
    Phone
    Droid 2 Global
    #8
    I copied your script but get an error when I try and run it and it doesn't work. "While[1] not found" and "syntax error do unexpected".
    Last edited by Lunatics; 03-15-2011 at 02:33 PM.
  10. Junior Droid
    baker1md's Avatar
    Member #
    177288
    Join Date
    Mar 2011
    Posts
    11
    Phone
    Enter Current Phone Model Here
    #9
    Lunatics sory for the error change it to ( while [ 1 ] ) at the start of the script that should do it. I think it just needs a space between while and braces.

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

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 rom keyboard light
,
led off gscript
,
liberty rom soft keys light
Click on a term to search our site for related topics.
Find us on Google+