yashsingh1/xdaforums huggingface dataset:
[LG Optimus Black] dcop7:
It works! Great!
[LG Optimus Black] angelox82:
worked perfectly :D :D thx!
[LG Optimus Black] federall:
thank u..

this work
[LG Optimus Black] digezter:
hey, i was followed this method but my Optimus Black can't use it .. when i push my Gesture it can't go to camera .. somebody help me ??
[LG Optimus Black] SnoopyZ:
My phone still on Original ROM.

After modify to Power/Lock mode, it's work.

but into Shutter mode, doesn't work.

Any idea?

SnoopyZ
[LG Optimus Black] yeomond:
did u reboot after making the changes?
[LG Optimus Black] fjsw:
notice you need to long press to start the Camera App. (you should feel the phone vibrate)

or just start the camera app, then press the G button to take a picture to see if it works.

It should be a pretty straight forward modification.
[LG Optimus Black] rgabi88:
Could it be

"key 95 RECOVERY WAKE_DROPPED" ???
[LG Optimus Black] rashad1:
wow, very nice
[LG Optimus Black] pabgar:
Very nice. Thanks.

To all who could not manage get it to work: You must take care of file attributes after modyfing the file content ( otherwise it won't work ). It must be CHMOD 644.

( I use SD Maid for this )
[LG Optimus Black] KrLx_roller:
It doesn't work for me, i am using pays ROM. Can someone upload the file? Thank u!

Enviado desde mi LG-P970 usando Tapatalk
[LG Optimus Black] yabgo:
"key 95 HEADSETHOOK WAKE"

to use headset button
[LG Optimus Black] ciz1k:
I tried modifying the file and saving it ... but the it always comes up as an error and doesn't allow me to save it... any solutions???
[LG Optimus Black] fjsw:
you need to have your phone "root" AND mount system partition as read and write
[LG Optimus Black] ciz1k:
Hey my phone is rooted, how do I mount system partition a read and write ? Sorry I'm a noob :(
[LG Optimus Black] fjsw:
if you use ES File Explorer, goto setting, select 2 checkboxs "Root Explorer" and "Mount File System"

if you use root explorer, change directory to /system, then press "Mount R/W" button
[LG Optimus Black] Kusie:
Sorry to ask but: what is the "headset button" and what is it good for?

Thanks,

Kusie
[LG Optimus Black] vlachaquito:
tried that mut the es file explorer says that test doesnt work and cant check the root explorer checkbox. i am using a original european rom and the cell is rooted. any ideas?
[LG Optimus Black] CalamitySir:
do you know what the other command lines for the other keys, with that info we can greatly mod this phone buttons.:eek::eek::cool::cool:
[LG Optimus Black] Paracetamol100:
Unfortunately waking up my optimus black with g-key didn't work for me. I followed the tutorial carefully, phone is rooted and of course I restarted. I should have add, that I use knzo's Nova Rom.

Any suggestions? Thx

Edit: suddenly, it works fine now
[LG Optimus Black] xxxstar123:
first of all thank you for the info but i couldn't find key 95 with cm7 any ideas
[LG Optimus Black] sugarkitty:
is it possible to configure to launch a different camera app?
[LG Optimus Black] derfandchot:
this works for me. thanks!
[LG Optimus Black] -Ertugrul-:
( I'm sorry for my bad English :) )

I rooted my Lg Optimus Black. I'm using Nova v8 room. Now G key works as camera button. I want to change it to original. It ıs writing '' key 95 CAMERA.....'' now. I tried to change it '' key 95 GESTURE '' but when I try to save it, it says '' Error occured when trying to save the file. It will not be saved. '' Please help me. :(
[LG Optimus Black] cxian:
Be sure to set the folder/file permission to R/W. I do it thru ES File Manager and have to enable "Mount File System as writable" on the settings.

---------- Post added at 12:45 PM ---------- Previous post was at 12:42 PM ----------

I'm using CM7, I can't find it too that's why I just add it, however screen wake up doesn't work.
[LG Optimus Black] gaviii:
Two binds works? Lock and camera ? Long press to camera ON and camera button if camera is ON, short press to lock/unlock. This possible?
[LG Optimus Black] -Ertugrul-:
@cxian

Thank you very much. I saved it and reboot. But G key doesn't work now :( Maybe it doesn't work because of Nova rom. What do you think? ( I hope you understand me :) )
[LG Optimus Black] puni1397:
Try to chek the properties of the File. It as to be exactly like all others files in the directory.
[LG Optimus Black] yeomond:
CM USERS

in the qwerty file,

look for key 212 and change it to 95.

or you could just add the whole line "key 95 camera wake_dropped"
[LG Optimus Black] dikabuzz9447:
great

thanx
[LG Optimus Black] Dubsylva:
Could be really usefull, in fact!!
[LG Optimus Black] sonic997:
Does it work for power wake_dropped ??
[LG Optimus Black] droidA':
I'm not able to switch to R/W mode from R/O, help me how to do it since there is no option to switch the mode(i already touched the R/O but it didn't changed)
[LG Optimus Black] MauricioAedo:
I did that but this only works to open Camera app but not how shutter button.

How can I do that?

Grettings
[LG Optimus Black] Aoffy:
Me too, how can I do?
[LG Optimus Black] agent205:
you can't (i think/for now)

unless you're on stock rom
[LG Optimus Black] Aoffy:
:) THX but for now I'm still ok with CM7.
[LG Optimus Black] ambishop:
In CM7 add and In Other Roms change

key 95 MEDIA_PLAY_PAUSE WAKE

Press Once to start/stop music from current play list. This can be done with the lock screen ON and in Sleep - While Pressing and holding Opens the Music application

OR

key 95 MEDIA_PLAY_PAUSE WAKE_DROPPED

Press Once to start/stop music from current play list when not sleeping. This can be done with the lock screen or the display is on. While Pressing and holding Opens the Music application when the display is on. When the display is OFF press or pressing and holding the button once will not start Music, BUT if pressed again within a few seconds will start Music App.

Not sure which I prefer as the second option will help in accidental key presses.

Using this method and the proper configuration in CM7 you can start your music player with the screen locked and display off and then pressing and holding the volume buttons with the screen off select the previous or next tracks all with the display off
[LG Optimus Black] lux8219:
with gingerbread doesn't work

hello

since I installed gingerbread on my OB, the procedure for changing the key's function g doen't work.

I tried and tried but only works for a few moments, then no more

happens to you?
[LG Optimus Black] klopsik1985:
Hey, what battery level you have, i checked and G button stop working if battery level is low.
[LG Optimus Black] ObiDanKenobi:
I have 71% right now and it is not working after 2 seconds the screen went blank.

Dan
[LG Optimus Black] lux8219:
from what i saw,doesn't depend on battery level...i believe that gingerbread has another layout keyboard gestion...

i continued this thread to see who else has this problem by passing froyo to gingerebread...

---------- Post added at 01:37 PM ---------- Previous post was at 01:30 PM ----------

me too....do you have gingerbread right?
[LG Optimus Black] no14me:
same problem. I'm using v20b!
[LG Optimus Black] OdysS_eus:
It didn't work as camera button. My phone is rooted and i am using V20B orjinal ROM.
[LG Optimus Black] lux8219:
I tried with 20b india and 20n germany but same results...i also tried with zeus by huexxx and same results...camera button it's ok but only as shutter when camera app is open

Inviato dal mio LG-P970 usando Tapatalk
[LG Optimus Black] kingzain900:
I tried the Power options, the camera, and the media key layouts for the G key. All work to some limit.

For the power, it works for about 10-15s after a screen lock. Any time after that the G button will no longer work. I am assuming that since the button on top is hard-wired to the phone, that might be a reason. Maybe some devs can look up on this?
[LG Optimus Black] lux8219:
When i used froyo i haven't this problem,the g key modify worked perfectly...

Inviato dal mio LG-P970 usando Tapatalk
[LG Optimus Black] maludroid:
I've prepared G-button as camera wake up for recovery:

http://dl.dropbox.com/u/4841276/Zeus_G_Camera.zip

Undo: http://dl.dropbox.com/u/4841276/Zeus_G_Camera_Undo.zip
[LG Optimus Black] vincevince55:
What exactly does that???

with this zip we can use g button to take picture and lock scree??

thx!!
[LG Optimus Black] ogremount:
Only to take picture not to unlock
[LG Optimus Black] vincevince55:
how can i unistall it???

when i press to focus i cant' decide when to shot the photo like the softtouch...
[LG Optimus Black] maludroid:
I'll prepare uninstall as soon, as I'll have access to my pc.

Edit: I've updated above post with undo file.
[LG Optimus Black] vincevince55:
thanks for the uninstall....

can u edit it to let me choose when to take the pic??
[LG Optimus Black] maludroid:
Eeeeeeee?

For me the most important is that you can run camera app by pressing G button. Then I take the photo normally.

Wysłane z mojego świata do Twojego przez dziurę w czasoprzestrzeni
[LG Optimus Black] vincevince55:
ah ok i missunderstood the benefit of it...sorry
[LG Optimus Black] misiu9091909:
Is there a way to assign action for holding volume-up or volume-down key? I'd like to change songs this way, when the screen is off (and if it would also work while the screen's on, no matter). This is the thing I miss the most when not using CM7.
[LG Optimus Black] TugaSoulHunter:
I did it on my optimus black. :D It opens the camera app and take the pictures on the G button :D Thanks
[LG Optimus Black] Zaihanzainal:
heh, this might be a stretch..... but im gonna ask anyway.....

is it possible to program the "g" button to open other apps? i tried the "g" to camera and its working perfectly.... but i was wondering if i could prog it to open googles "gesture search" app or any other app for that matter.... =P
[LG Optimus Black] mdfaisal:
Thanks man... I am using zeus v3.2n and now I can use my G button for taking pictures... great job,...
[LG Optimus Black] shafrox:
Thanks. Works great in CM7 build #67 as well.
[LG Optimus Black] OdysS_eus:
Very good. I'll try right now
[LG Optimus Black] woojin214:
this doesn't work on rooted 20b (gingerbread update)

does someone tried it in 20b?
[LG Optimus Black] woojin214:
ok. i managed to make it work in rooted 20b.

i just changed all the permission of that file same as others.

but it only worked at random. sometimes it's working, sometime's not.
[LG Optimus Black] jzetina:
Thanks, it work for me...
[LG Optimus Black] track13:
G remap

Hi to all,

It seems that it does not work on v20f.

Hope you can help us somehow.

Thanks.

After long tries to make it work on 2.3.4 V20F I didn't succeed :(

BUT, I have installed CM7 and it works perfect now. I can wake up the screen and lock the screen perfectly.
[LG Optimus Black] Zaihanzainal:
are you rooted?
[LG Optimus Black] zaxcullen:
thanks its work for me
[LG Optimus Black] vincevince55:
same here

again the same

if in cm7 works editing the qwerty.kl maybe adding the key 95 option power wake dropped in the qwerty.kl it may work???

someone tried it??
[LG Optimus Black] dcop7:
In CM7 works to lock only. It can't wake. I use the volume keys to unlock and the g button to lock
[LG Optimus Black] vincevince55:
someone with cm7 told me that works to unlock too for him......

btw i'm trying...

edit: i tried editing only the qwerty.kl and don't work neither to lock the screen

then i tried editing both qwerty e TWL but can't unlock the same...:(
[LG Optimus Black] jzetina:
Thx, i'm gonna try to do this... :)
[LG Optimus Black] 90amper:
I have latest build of CM7 and its work properly. I'm only add to qwerty.kl "key 95 POWER WAKE_DROPPED". But on #68 or #69 build I had problem with wake phone too. Who have that - try to use other build.

+1, device must be rebooted after changes)
[LG Optimus Black] dflt:
Maybe you didn't reboot?
[LG Optimus Black] AnonymousVie:
Can't save the change

Can any one help me plz =.=

After changing key 95 GESTURE to key 95 POWER WAKE_DROPPED, I cannot save the change cause it says "couldn't save the file".

P/S: whatever the ROM is, it also says so. Now I'm using Zeus ROM v4.02b by Huexxx
[LG Optimus Black] dcop7:
You have root? Did you mount to write (top right button)?
[LG Optimus Black] AnonymousVie:
Of course it is rooted cause I'm using Zeus ROM. Where is the "mount to write" button bro? I'm using Astro explorer and the default file editor. Can you show me step by step?
[LG Optimus Black] dcop7:
Install "Root Explorer", go to the path and on top, there is a button "Mount R/W". After you press that button you will be able to write/edit system files...
[LG Optimus Black] AnonymousVie:
It really works :D, thz very much bro
[LG Optimus Black] Ry Chy®:
Wow..it works! Thanx a lot! This is a nice one!!! :)
[LG Optimus Black] ducanh.do88:
I can lock but can't unlock with G button. I'm using Zues 4.02b.

Dear dcop7, can you show me key code of volume button :)
[LG Optimus Black] dcop7:
I'm not using Zeus, I'm using CM7.

Open the file "TWL4030_Keypad.kl", it's in /system/usr/keylayout/, there will be something like this:

key 115 VOLUME_UP WAKE (at least in CM7).

Is this what you wanted?
[LG Optimus Black] ducanh.do88:
Don't know why but I can't unlock without using power button :(
[LG Optimus Black] dcop7:
Yeah, I tried Zeus and it didn't worked either. Now I'm using CM7 and I use the volume keys to unlock and the G button to lock
[LG Optimus Black] Redpik:
After editing : "/system/usr/keylayout/ TWL4030_Keypad.kl"

Go to "TWL4030_pwrbutton.kl " and change from 116 to 95 This overwrites the first i guess.

.

Edit: It works at the beginning, but after the phone enters deep sleep nothing will wake it up
[LG Optimus Black] dcop7:
Yeah, I tried that and it didn't work :(
[LG Optimus Black] BeleQ:
in zeus lite v5.3, i can lock and unlock my droid with G-key as well as using power button

Sent from my LG-P970
[LG Optimus Black] Redpik:
Funny thing, if you're on stock GB, changing in all files to 95 POWER will unlock from deep sleep only if you press power+G :D. It's like having a new security unlock option. Still no luck to make it work only with G key.
[LG Optimus Black] ducanh.do88:
Yeah, it only works at the first time :D I don't know about marvel but I also hope G button can do more in the next zues version :D

Position of G button on body is very nice :P
[LG Optimus Black] kokayyn:
Thx

Dat help a lot!!:)
[LG Optimus Black] Zaihanzainal:
Actually I kinda prefer the g button as it is now cause now I use it to zoom in and out of my Web browser
[LG Optimus Black] dflt:
So why do you even post? Did you see thread name?
[LG Optimus Black] dcop7:
For those who didn't know (like me a few minutes ago), we can use the G button to wake in CM7!

In the file qwerty.kl, edit the file at the bottom like this:

You have to align the "P" of POWER with the "M" of MENU. Do the same with the "WAKE_DROPPED", keep all align with the line before (I can't align here hehe).

You can disable the wake with the volume keys and this will work!

(credits to vincevince55)
[LG Optimus Black] re4lsk:
Now make it flashable "just kidding" :P

Trolling in the deep
[LG Optimus Black] dcop7:
Hehe... I don't know how to do that... But if I have the time, I will try to do that ;)
[LG Optimus Black] vincevince55:
I put it under the key 155 ENVELOPE without aligning it and letting a blank line under key95.....;)
[LG Optimus Black] Maestrosdt:
It's working, but how can i unlock phone with G button?
[LG Optimus Black] vincevince55:
u can just switch on the display with that modification......not unlock the phone
[LG Optimus Black] Gloxksss:
Tell please on zeus this method works?
[LG Optimus Black] sexation:
works on MARVEL?
[LG Optimus Black] anoopmohan:
It really worked on my zeus 6.11 ... Thanks...
[LG Optimus Black] track13:
It doesn't work on Marvel v7...

I just installed it and tested.

It has to be a way to make it work...

LATER EDIT:

Tell you guys what: give me the "TWL4030_Keypad.kl" so I won't loose time installing Marvel.

I want to compare the stock config with the CM7 config (as in my CM7 the G button works great).

Upload the "TWL4030_Keypad.kl" somewhere for me to download it.
[LG Optimus Black] dcop7:
How did you manage to make the G button work in CM7? You can unlock your phone? What CM7 version do you have?
[LG Optimus Black] track13:
Yes I can unlock and lock the phone from G button, no problems at all.

The version is: update-cm-7-20120313-NIGHTLY-p970-signed.zip. Worked with older versions to.

How to: After the "key 215 ENVELOPE" under it type "key 95 POWER WAKE_DROPPED" and reboot.

Remember to count how many spaces there are between words like in the rest of the file.
[LG Optimus Black] dcop7:
In that nightly it worked for me too... But since SK of RC1, it didn't worked :(
[LG Optimus Black] Paracetamol100:
Thx, worked with cm7 rc1 and Huexxx modified custom kernel.

BTW: there was no " TWL4030_Keypad.kl", just a "qerty.kl". I modified the querty.kl with track13's method and made a copy of this file naming it into TWL4030_Keypad.kl. I don't know which file made the affect but it works. I also deleted the stock key 95 entry.
[LG Optimus Black] dcop7:
But with the audio fix (there isn't yet a official build), this wont work
[LG Optimus Black] atillaahun:
You know any way to mod the soft keys within this file? G is good, but it would be nice to think, thats just the beginning.
[LG Optimus Black] Paracetamol100:
Which Audio fix do you mean?
[LG Optimus Black] chokod9:
I use the new rom MIUI v 1.5 and wake the phone and open the camera but not take picture any ideas?
[LG Optimus Black] TugaSoulHunter:
I don´t know If you can use the G button for both things, but I do know that if you want the G button to open the camera and take pictures you need to put this on key 95:

Key 95 CAMERA WAKE_DROPPED
[LG Optimus Black] dcop7:
This fix: Audio Fix

There isn't an official version yet...
[LG Optimus Black] track13:
tested the new update

Hi guys,

I tested the new update from cm7 ( update-cm-7-20120420-NIGHTLY-p970 ).

The G button does not work on it... I installed back the previous one.

This is wrong, hope they will fix that.

LG Optimus Black

Running: CM7 20120418 NIGHTLY
[LG Optimus Black] dcop7:
I said that in the latest posts... It is related to the audio fix
[LG Optimus Black] Lark987:
Can You share the one that you made for CM7 20120418?
[LG Optimus Black] track13:
Sure:

1. Use ES explorer or otherexplorer to mount system partition as read & write in order to have access for saving the modification.

2. Go to /system/usr/keylayout/ and open "qwerty.kl".

3. After the "key 215 ENVELOPE" under it type "key 95 POWER WAKE_DROPPED", let a enter space under it as it was before and reboot.

Remember to count how many spaces there are between words like in the rest of the file to be aligned.
[LG Optimus Black] dcop7:
It doesn't work. With the audio fix that wont work. The fix is after RC1, so in RC1 this works, after it doesn't :(
[LG Optimus Black] Lark987:
Successfully managed to add the power on and off in G key in CM7 nightly the previous one but in the latest nightly it wont work..
[LG Optimus Black] smithaddy048:
I don't use any

Oscillating Saw Blades
[LG Optimus Black] RomWiz:
Can i still boot into recovery with g-button if i change it into power button?

Skickat från min GT-I9300 via tapatalk 2
[LG Optimus Black] sashabloem:
I did it, but it only open the camera.

It won't shoot.

Running zeus 6.28+ics update
[LG Optimus Black] whiz_gadgetz:
Thank you!!
[LG Optimus Black] chivas1311:
anyone know if you can use to switch to next and previous track for music when in locked screen?

--- LG Optimus Black ---

-- Zeus 6.28 --
[LG Optimus Black] baxı:
It work on Galaxy ace power button or volume up , volume down button works camera button that way

system - usr - keylayout - sec_key.kl - key 107 power wake

erease power write camera - save changes and restart
[LG Optimus Black] dcop7:
For CM7 doesn't work.

By the way, this isn't Galaxy ace forum. The key in Optimus Black isn't 107, it is 95.
[LG Optimus Black] Lark987:
Successfully managed to make my gkey as camera starter and shutter for boype's cm7.. but it only works in LGcamera Pro not the default camera.. since i prefer most the lgcamera pro.. its ok with me.. :)
[LG Optimus Black] engin2yilmaz:
It was woking on Froyo(v10x). But, it doesn't work exactly on Gingerbread.

So,several minutes (about 3-5 min) after the screen light turned off, it doesnt work.

Rom: Stock V20x
[LG Optimus Black] fasondan:
i does not work with supressed rom
[LG Optimus Black] oshima:
mine is working the same way... it works ok for about 5 min and then cant wake up. thing i notest was that if the usb cable was pluged it work without any problem.

if some one could make it work on other rom less cm7 (the wireless is really bad), pleas tell me to test it

EDIT: found a way to make it happen. search for an app called wakelock on market. install it and select the first option.

this app will prevent the cpu to enter deep sleep and the G key will work without any issue.

maybe this will cause a litle more battery drain, still testing. i will let you guys know.
[LG Optimus Black] abhis86:
I also want to use my g key as the screen on/off button. If u guys find smthin pleas let me know..:)
[LG Optimus Black] kundalini_bq:
I already did as you guide, but nothing happen, something wrong from me?. Please support.
[LG Optimus Black] dcop7:
If you are using CM7 based, it wont work waking the screen. Only locking.
[LG Optimus Black] kundalini_bq:
I use Prada rom, now off screen is working but on screen sometime work,alsmost does not work. Thanks.
[LG Optimus Black] oshima:
hi,

as i said before, the problem is on the cpu that goes to deep sleep. to fix this install wakelock from the play store and choose the first option.

them when you hit the G it will turn off the screen, keys but not the cpu. when you hit the G to wake it will work like a charm :)

the down side is that the battery may suffer a litle more drain than usual i think. mine past 12 hours of use (web browsing, calls, sms, games and cpu clocked at 1.2GHZ) still have about 30% left.

i tested this with latest zeus rom, and latest optimus max rom, but it may work with all roms available.
[LG Optimus Black] kidchu:
I can't found TFL4030.Keypad file on my phone.i am using cm7.2 stabl
[LG Optimus Black] mak.3736:
it works

Good work.

Thx

I was searching for this from long time.
[LG Optimus Black] dcop7:
Try to read the previous posts
[LG Optimus Black] vishaldhamnekar:
Thank you so much... It worked for me..

Sent from my LG-P690 Running Zeus v7.01
[LG Optimus Black] crystallogenesis:
cant save the file :/
[LG Optimus Black] asdfasd2:
Anyone got this working in CM10? I read through the thread and only saw posts with CM7. Thanks
[LG Optimus Black] dcop7:
Did anyone successful change the G button to lock/unlock in CM10?

I played a bit with the files and I only ended up with my hardware keys not working hehe
[LG Optimus Black] asdfasd2:
Never mind, I got time to try it myself with the method below and it works (the camera).
[LG Optimus Black] Android_ICS:
Recent Apps

Does anyone know, which command/code would turn the g-button to a "recent-apps"-button. I know that this was a function in one of the roms, but hardly can´t rember in which one... :confused:
[LG Optimus Black] dcop7:
To set the G button to lock/unlock in CM10 do this:

go to /system/usr/keylayout and open Generic.kl

Edit the line that starts with "key 95" and change to this:

key 95 POWER WAKE_DROPPED

Set permissions: rw-r--r-- and reboot :)
[LG Optimus Black] Cazuo:
do you know if the g button can take pictures in cm10 with that edition from first post?
[LG Optimus Black] asdfasd2:
Yes it works for me
[LG Optimus Black] rv0000s:
you can also use G-button for ending and answering call:D........also as home,back or menu button using -

"CALL WAKE_DROPPED"

"ENDCALL WAKE_DROPPED"

"HOME WAKE"

"MENU WAKE_DROPPED"

"BACK WAKE_DROPPED"

Me using g-button for answering calls and power button for ending calls(from accessibility menu in cm10):D:D
[LG Optimus Black] dcop7:
I tried to do the same with the search key, to lock the device, but I didn't have much luck...

Did you manage to do that?
[LG Optimus Black] simaros:
How ı can use on cm10?

sorry for my bad English