Page 1 of 3 123 LastLast
Results 1 to 15 of 35
  1. #1
    offline Itty Bitty Modder
    Join Date
    Aug 2010
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Downloads
    0
    Uploads
    0

    Keyboard Backlight

    A friend of mine has a Cliq that he was a bit unhappy with, using the stock software. I've taken him through the process of rooting and flashing a couple of roms, the latest one I installed for him is j_r0dd-mb200-v1.7.6. I've noticed that ever since giving him custom ROM's, his keyboard backlight hasn't worked at all, and I haven't really seen a definitive answer or fix for this. I tried to follow these directions:
    Quote Originally Posted by angius1 View Post
    I have written a very simple solution to the keyboard backlight issue:

    prerequisites:
    root access
    busybox (possibly)

    The trick is to read from the input device related to the keyboard and turn the light on when any key is pressed.
    As the read call is blocking until any key is pressed there is no CPU consumption (and consequently no battery discharge due to the script itself).
    you have to create a script called for sample backlight.sh and insert these instructions:


    Code:
    while [ 1 ]
    do 
      cat /dev/input/event3|read -n 4
      echo "1"> /sys/class/leds/keyboard-backlight/brightness
      sleep 1
    done
    copy it on sdcard and try to launch it as root from a terminal emulator:

    If you don't want the script has bound to the controlling terminal launch it with:


    Code:
    nohup bash /sdcard/backlight.sh > /dev/null &
    now when you press any key on the keyboard it would light up!

    leave a feedback please!
    But to no avail. If anyone can shed some light on this little script, or perhaps give some more detailed instructions of how to run it (run it through terminal? press return key three times after typing in the command? etc) that would at least be a bit of a head start.

    Thanks.

  2. #2
    Buck Shot's Avatar
    offline Maybe Modder
    Join Date
    May 2010
    Location
    Jersey Shore
    Posts
    27
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Downloads
    6
    Uploads
    0
    i have the same exact problem with my wifes cliq. I started flashing and the keyboard stopped. There was only 1 ROM that it worked on. I hope this works, but can u explain this in noob version. I know how to do some things, but i dont understand half of what u said
    Nexus One : Clockwork - Cyan6.1.1

    Moto Cliq : Amon Ra - J Rodd 1.3.2

  3. #3
    offline Itty Bitty Modder
    Join Date
    Aug 2010
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Downloads
    27
    Uploads
    0
    workkkk in my dext thks brooo
    Last edited by ratezzz; 11-15-2010 at 10:33 AM.

  4. #4
    offline Itty Bitty Modder
    Join Date
    Aug 2010
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Downloads
    0
    Uploads
    0
    Did you follow the directions verbatim or improvise? I'm just wondering if I'm overlooking something or if it just isn't working on his Cliq.

  5. #5
    Buck Shot's Avatar
    offline Maybe Modder
    Join Date
    May 2010
    Location
    Jersey Shore
    Posts
    27
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Downloads
    6
    Uploads
    0
    i havent tried it yet, i just dont understand how to write a script and is the second option via terminal emulator?
    Nexus One : Clockwork - Cyan6.1.1

    Moto Cliq : Amon Ra - J Rodd 1.3.2

  6. #6
    offline Itty Bitty Modder
    Join Date
    Aug 2010
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Downloads
    0
    Uploads
    0
    My guess was to paste the code into a text document and rename it to be .sh instead of .txt, and execute it in the terminal using the commands given. But I may be wrong since it didn't work for me.

  7. #7
    adlx's Avatar
    online Maker of adlxmod
    Join Date
    Jan 2010
    Location
    Madrid, Spain
    Posts
    1,034
    Thanks
    610
    Thanked 1,485 Times in 366 Posts
    Downloads
    30
    Uploads
    0
    I've packed the script in a flasheable patch.

    Requisite: rooted rom with init.d support (all the 2.1 rom except VwE series):

    http://dl.dropbox.com/u/788286/patch...ght-signed.zip
    Download my 1-click Recovery Flasher to flash a custom or stock recovery to your phone: Cliq, CliqXT, Backflip, ...

    Like my work? Support me: & visit my adlxmod site and follow me on Twitter
    Tambien me puedes encontrar en Movilzona (Esp)

  8. #8
    GuanhaoMOTO's Avatar
    offline Itty Bitty Modder
    Join Date
    Jul 2008
    Location
    Singapore
    Posts
    16
    Thanks
    3
    Thanked 1 Time in 1 Post
    Downloads
    133
    Uploads
    0
    Hey Adlx, please see your inbox as i have PM you. Thanks!
    Rooting my DEXT soon!

  9. #9
    angius1's Avatar
    offline Maybe Modder
    Join Date
    Sep 2010
    Posts
    30
    Thanks
    0
    Thanked 2 Times in 2 Posts
    Downloads
    6
    Uploads
    0
    Quote Originally Posted by Buck Shot View Post
    i havent tried it yet, i just dont understand how to write a script and is the second option via terminal emulator?
    wow! I see that my script was successful!!
    no importance if you launch throw terminal emulator or adb shell the last command.
    But with the adlx patched version there is no need to use that command.

    Quote Originally Posted by adlx View Post
    I've packed the script in a flasheable patch.

    Requisite: rooted rom with init.d support (all the 2.1 rom except VwE series):

    http://dl.dropbox.com/u/788286/patch...ght-signed.zip
    ok, you made a good thing to create a patched version of my script.
    But the script produces some messages on the standard error (without any importance), this is the reason I used the redirection to /dev/null in the script launcher (nohup...).
    As you inserted the script in /system/etc/init.d, it needs to test where the standard error messages go.
    Last edited by angius1; 11-16-2010 at 12:19 PM. Reason: Automerged Doublepost

  10. #10
    adlx's Avatar
    online Maker of adlxmod
    Join Date
    Jan 2010
    Location
    Madrid, Spain
    Posts
    1,034
    Thanks
    610
    Thanked 1,485 Times in 366 Posts
    Downloads
    30
    Uploads
    0
    Quote Originally Posted by angius1 View Post
    As you inserted the script in /system/etc/init.d, it needs to test where the standard error messages go.
    yeah good point :-D. The output should now go to logcat.
    Download my 1-click Recovery Flasher to flash a custom or stock recovery to your phone: Cliq, CliqXT, Backflip, ...

    Like my work? Support me: & visit my adlxmod site and follow me on Twitter
    Tambien me puedes encontrar en Movilzona (Esp)

  11. #11
    Buck Shot's Avatar
    offline Maybe Modder
    Join Date
    May 2010
    Location
    Jersey Shore
    Posts
    27
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Downloads
    6
    Uploads
    0
    k. ill try this as soon as i re root the wifes cliq. Stupid me wanted the stock 2.1 so i reverted to stock, upgraded and now i lost root access or at least my recovery. And I come to find out i still cant update the stock 2.1 since her latest version is some ish thats not listed in the requirements
    Nexus One : Clockwork - Cyan6.1.1

    Moto Cliq : Amon Ra - J Rodd 1.3.2

  12. #12
    angius1's Avatar
    offline Maybe Modder
    Join Date
    Sep 2010
    Posts
    30
    Thanks
    0
    Thanked 2 Times in 2 Posts
    Downloads
    6
    Uploads
    0
    Quote Originally Posted by adlx View Post
    I've packed the script in a flasheable patch.

    Requisite: rooted rom with init.d support (all the 2.1 rom except VwE series):

    http://dl.dropbox.com/u/788286/patch...ght-signed.zip
    uhm.. I think the script needs #!/system/bin/sh on the top to work correctly in init.d..can you correct the patch?
    Last edited by angius1; 11-17-2010 at 09:57 AM.

  13. #13
    offline Itty Bitty Modder
    Join Date
    Aug 2010
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Downloads
    27
    Uploads
    0
    Quote Originally Posted by kauthor47 View Post
    Did you follow the directions verbatim or improvise? I'm just wondering if I'm overlooking something or if it just isn't working on his Cliq.
    no, im just created n load script code 1 via Gscript mode.apk

  14. #14
    angius1's Avatar
    offline Maybe Modder
    Join Date
    Sep 2010
    Posts
    30
    Thanks
    0
    Thanked 2 Times in 2 Posts
    Downloads
    6
    Uploads
    0
    Quote Originally Posted by adlx View Post
    I've packed the script in a flasheable patch.

    Requisite: rooted rom with init.d support (all the 2.1 rom except VwE series):

    http://dl.dropbox.com/u/788286/patch...ght-signed.zip
    the script is correct now :-), have you set execution permission to it? As it is invoked throw the program run-parts, it requires execution permissions..

  15. #15
    adlx's Avatar
    online Maker of adlxmod
    Join Date
    Jan 2010
    Location
    Madrid, Spain
    Posts
    1,034
    Thanks
    610
    Thanked 1,485 Times in 366 Posts
    Downloads
    30
    Uploads
    0
    Quote Originally Posted by angius1 View Post
    uhm.. I think the script needs #!/system/bin/sh on the top to work correctly in init.d..can you correct the patch?
    Quote Originally Posted by angius1 View Post
    the script is correct now :-), have you set execution permission to it? As it is invoked throw the program run-parts, it requires execution permissions..
    I've just checked, just in case, but both the script shebang and the script permission were already set correctly in the zip I published.

    The patch is to be flashed! Not extracted and pushed manually :-D.
    Download my 1-click Recovery Flasher to flash a custom or stock recovery to your phone: Cliq, CliqXT, Backflip, ...

    Like my work? Support me: & visit my adlxmod site and follow me on Twitter
    Tambien me puedes encontrar en Movilzona (Esp)

Page 1 of 3 123 LastLast

Posting Permissions

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