FORUMS
Remove All Ads from XDA

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

166 posts
Thanks Meter: 42
 
By nestoor23, Senior Member on 30th May 2013, 12:22 PM
Post Reply Email Thread
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:


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:


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:


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:


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:


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:


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:


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:


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:


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!
The Following 17 Users Say Thank You to nestoor23 For This Useful Post: [ View ] Gift nestoor23 Ad-Free
 
 
30th May 2013, 12:30 PM |#2  
OP Senior Member
Thanks Meter: 42
 
More
Waiting your comments!
30th May 2013, 12:35 PM |#3  
dcop7's Avatar
Senior Member
Flag Leiria
Thanks Meter: 1,871
 
Donate to Me
More
Quote:
Originally Posted by nestoor23

Waiting your comments!

Good post.

If you can, post how to remap the "G"/"search button" for other functions, like "lock/unlock", "app switch"
The Following User Says Thank You to dcop7 For This Useful Post: [ View ] Gift dcop7 Ad-Free
30th May 2013, 12:36 PM |#4  
OB-bob's Avatar
Member
Flag Wiesbaden
Thanks Meter: 2
 
More
does your explanation for CM10 also work for CM10.1?
The Following User Says Thank You to OB-bob For This Useful Post: [ View ] Gift OB-bob Ad-Free
30th May 2013, 12:47 PM |#5  
OP Senior Member
Thanks Meter: 42
 
More
Quote:
Originally Posted by OB-bob

does your explanation for CM10 also work for CM10.1?

I think that it must work without any problem.

Sent from my LG-P970 using Tapatalk.
30th May 2013, 02:33 PM |#6  
OP Senior Member
Thanks Meter: 42
 
More
Edit the first post to add more options.
Greetings!
31st May 2013, 12:32 PM |#7  
no14me's Avatar
Senior Member
Flag HaNoi
Thanks Meter: 153
 
More
Notice that key 95 POWER WAKE_DROPPED not fully working in GB
It can't wake up phone from deep sleep
The Following User Says Thank You to no14me For This Useful Post: [ View ] Gift no14me Ad-Free
31st May 2013, 12:42 PM |#8  
OP Senior Member
Thanks Meter: 42
 
More
Quote:
Originally Posted by no14me

Notice that key 95 POWER WAKE_DROPPED not fully working in GB
It can't wake up phone from deep sleep

Yes, its true, I forgot to put it in the first post, sorry.
2nd June 2013, 08:00 PM |#9  
Senior Member
Thanks Meter: 24
 
More
can u explain for ending calls the same tut plzz?

i mean in cm there is option to end call with power button

can that be done with the gesture key?

Please do explain
2nd June 2013, 08:23 PM |#10  
OP Senior Member
Thanks Meter: 42
 
More
Quote:
Originally Posted by e1forall

can u explain for ending calls the same tut plzz?

i mean in cm there is option to end call with power button

can that be done with the gesture key?

Please do explain

I dont know how to do it, and now I've got to many exams... When I've got free time, I will try to do it.

Sent from my LG Optimus Black (P970) using Tapatalk
4th June 2013, 12:14 PM |#11  
Senior Member
Thanks Meter: 24
 
More
Wink
Quote:
Originally Posted by nestoor23

I dont know how to do it, and now I've got to many exams... When I've got free time, I will try to do it.

Sent from my LG Optimus Black (P970) using Tapatalk

yeah.. i also had my examz

i did find it

we have to put
key 95 CALL WAKE_DROPPED

and its done!

we can answer phone calls directly by pressing the gesture key
The Following User Says Thank You to e1forall For This Useful Post: [ View ] Gift e1forall Ad-Free
Post Reply Subscribe to Thread

Tags
button g, lg optimus black, music, p970

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes