[TUTORIAL] "Change the use of your Button G"

Search This thread

abhinavmalik96

New member
Jan 4, 2014
2
0
NEW DELHI
Power button not working on lg p970

:crying:
HI DEV...nyc work..as i have written my power button is broken...so plz if u can give me steps to remap my "G" key to takeover all the functions of power button...
thnx in advance:good:
 

Mypp

New member
Feb 26, 2014
1
0
I have the same problem, the power button is not working.

key 95 POWER WAKE_DROPPED can't wake up phone from deep sleep
how to turn on phone?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 17
    Hello everyone, I am starting writing in xda but I have some knowledge because I read a lot in HTCMania.
    I see that many people dont know what to do with the famous "Button G" of our LG Optimus Black.
    Play/Pause
    Explanation for GB:
    The file that you have got to modify is in the next directory: /system/usr/keylayout. The file ''TWL4030_Keypad.kl'' has got to be changed. In the third line beginning for the end, you can see:
    key 95 GESTURE
    And you have got to write this:
    key 95 HEADSETHOOK WAKE_DROPPED

    Here you can see a picture of how it has to be:
    20121201214134.png


    If you dont want to change it by yourself, here is the zip that you have got to flash in CWM (make a backup for any thing):
    https://www.box.com/s/yb9bjkr542juq0e5f13u

    Warning! If you choose to do it by yourself (manually), you have goto to reboot your phone to see the change.

    Explanation for ICS:
    The file that you have got to modify is in the next directory: /system/usr/keylayout. The file ''TWL4030_Keypad.kl'' (with capital letters, no “twl4030_keypad.kl") has got to be changed. You can see:
    key 95 GESTURE
    And you have got to write this:
    key 95 MEDIA_PLAY_PAUSE WAKE_DROPPED

    Here you can see a picture of how it has to be:
    screenshot2013012721374.png


    If you dont want to change it by yourself, here is the zip that you have got to flash in CWM (make a backup for any thing):
    https://www.box.com/s/yty2ir4sh0b7kzb8q19d

    Warning! If you choose to do it by yourself (manually), you have goto to reboot your phone to see the change.

    Explanation for CM10:
    The file that you have got to modify is in the next directory: /system/usr/keylayout. The file ''Generic.kl'' has got to be changed. You can see:
    key 95 NUMPAD_COMMA
    And you have got to write this:
    key 95 HEADSETHOOK WAKE_DROPPED

    Here you can see a picture of how it has to be:
    20130530131001.jpg


    If you dont want to change it by yourself, here is the zip that you have got to flash in CWM (make a backup for any thing):
    https://www.box.com/s/flqy5u3eharedaa7udy2

    Warning! If you choose to do it by yourself (manually), you have goto to reboot your phone to see the change.


    Lock/Unlock
    Explanation for GB:
    (THIS OPTION DOESN'T UNLOCK YOUR PHONE IF YOUR PHONE IS IN DEEP SLEEP)
    The file that you have got to modify is in the next directory: /system/usr/keylayout. The file ''TWL4030_Keypad.kl'' has got to be changed. In the third line beginning for the end, you can see:
    key 95 GESTURE
    And you have got to write this:
    key 95 POWER WAKE_DROPPED

    Here you can see a picture of how it has to be:
    20130530150805.jpg


    If you dont want to change it by yourself, here is the zip that you have got to flash in CWM (make a backup for any thing):
    https://www.box.com/s/jexhn14tg24lai40djhm

    Warning! If you choose to do it by yourself (manually), you have goto to reboot your phone to see the change.

    Explanation for ICS:
    The file that you have got to modify is in the next directory: /system/usr/keylayout. The file ''TWL4030_Keypad.kl'' (with capital letters, no “twl4030_keypad.kl") has got to be changed. You can see:
    key 95 GESTURE
    And you have got to write this:
    key 95 POWER WAKE_DROPPED

    Here you can see a picture of how it has to be:
    20130530150935.jpg


    If you dont want to change it by yourself, here is the zip that you have got to flash in CWM (make a backup for any thing):
    https://www.box.com/s/la4xugjvncgzaax7wnx5

    Warning! If you choose to do it by yourself (manually), you have goto to reboot your phone to see the change.

    Explanation for CM10:
    The file that you have got to modify is in the next directory: /system/usr/keylayout. The file ''Generic.kl'' has got to be changed. You can see:
    key 95 NUMPAD_COMMA
    And you have got to write this:
    key 95 POWER WAKE_DROPPED

    Here you can see a picture of how it has to be:
    20130530150553.jpg


    If you dont want to change it by yourself, here is the zip that you have got to flash in CWM (make a backup for any thing):
    https://www.box.com/s/ndv0d0m73u8ff4dzz7d3

    Warning! If you choose to do it by yourself (manually), you have goto to reboot your phone to see the change.


    Take photos with the Camera
    Explanation for GB:
    The file that you have got to modify is in the next directory: /system/usr/keylayout. The file ''TWL4030_Keypad.kl'' has got to be changed. In the third line beginning for the end, you can see:
    key 95 GESTURE
    And you have got to write this:
    key 95 CAMERA WAKE_DROPPED

    Here you can see a picture of how it has to be:
    20130530150832.jpg


    If you dont want to change it by yourself, here is the zip that you have got to flash in CWM (make a backup for any thing):
    https://www.box.com/s/yfbn2oo4ityseno398bv

    Warning! If you choose to do it by yourself (manually), you have goto to reboot your phone to see the change.

    Explanation for ICS:
    The file that you have got to modify is in the next directory: /system/usr/keylayout. The file ''TWL4030_Keypad.kl'' (with capital letters, no “twl4030_keypad.kl") has got to be changed. You can see:
    key 95 GESTURE
    And you have got to write this:
    key 95 CAMERA WAKE_DROPPED

    Here you can see a picture of how it has to be:
    20130530151012.jpg


    If you dont want to change it by yourself, here is the zip that you have got to flash in CWM (make a backup for any thing):
    https://www.box.com/s/jg6emxu0injhyi33eyf9

    Warning! If you choose to do it by yourself (manually), you have goto to reboot your phone to see the change.

    Explanation for CM10:
    The file that you have got to modify is in the next directory: /system/usr/keylayout. The file ''Generic.kl'' has got to be changed. You can see:
    key 95 NUMPAD_COMMA
    And you have got to write this:
    key 95 CAMERA WAKE_DROPPED

    Here you can see a picture of how it has to be:
    20130530150711.jpg


    If you dont want to change it by yourself, here is the zip that you have got to flash in CWM (make a backup for any thing):
    https://www.box.com/s/l1hornfnp2g5z96c5dds

    Warning! If you choose to do it by yourself (manually), you have goto to reboot your phone to see the change.

    Thanks to Jes0411 because he made some zips. Greetings!
    3
    where can i find a list of functions to remap this G key?

    http://source.android.com/devices/tech/input/keyboard-devices.html#keyboard-classification

    Check this section: HID Keyboard and Keypad Page (0x07)
    In the column Android Key Code Name, it is KEYCODE_<function>.

    For an example,

    KEYCODE_POWER
    1
    Waiting your comments!

    Good post.

    If you can, post how to remap the "G"/"search button" for other functions, like "lock/unlock", "app switch"
    1
    does your explanation for CM10 also work for CM10.1?
    1
    :crying:
    HI DEV...nyc work..as i have written my power button is broken...so plz if u can give me steps to remap my "G" key to takeover all the functions of power button...
    thnx in advance:good:

    Read the first post, you will find the steps.

    Enviado desde mi Nexus 5 mediante Tapatalk