[Q] G-button to wake up on gingerbread - LG Optimus Black

As we know, G-button on OB is working to wake up the screen on any Froyo ROM.. but, in Gingerbread, waking up the screen not working anymore.. I'm getting frustrated using power button..
Any solution guys? I really need that g-button wake.. I can't find any solutions in the internet.. or should I degrade to Froyo? what's the drawback of Froyo then?
Many thanks for help..

If you come with official/cooked GB, not CM7
Just edit /system/usr/keylayout/ TWL4030_Keypad.kl
Edit the
95 GESTURE
into
95 POWER WAKE_DROPPED
That should work
Sent from derp-mobile

agent205 said:
If you come with official/cooked GB, not CM7
Just edit /system/usr/keylayout/ TWL4030_Keypad.kl
Edit the
95 GESTURE
into
95 POWER WAKE_DROPPED
That should work
Sent from derp-mobile
Click to expand...
Click to collapse
i've tried that method in some GB rom, but not working.. indeed that's working in froyo, but not in GB.. any ideas?

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

In CM7, edit /system/usr/keylayout/qwerty.kl
add this: "key 95 POWER WAKE" and reboot.
now you can use G button to lock or wake up the phone.
its work for me, perfect.

no14me said:
In CM7, edit /system/usr/keylayout/qwerty.kl
add this: "key 95 POWER WAKE" and reboot.
now you can use G button to lock or wake up the phone.
its work for me, perfect.
Click to expand...
Click to collapse
Its not working in 2.3.4...
Sent from my LG-P970

with cm7 works.....

Did anyone try on Marvel v6 and Zeus v6?
I tried on Zeus v4.02b but it only can lock. Later, I will try on Zeus v6 Hope report to you soon

duke_dreadmoore said:
i've tried that method in some GB rom, but not working.. indeed that's working in froyo, but not in GB.. any ideas?
Click to expand...
Click to collapse
It's working for me! I'm using Echelon ROM.
It SHOULD work... Maybe there was a typo. The letter must also be capital letters.

I'm on Zeus V6 and I can say that it partially works. Same on other versions of Zeus which I have tried.
Seems that it locks the phone and occasionally it will wake it up. Like immediately after I get an sms and the screen fades to black if you press it then it will most likely wake up.
It appears to me at least that after a while the phone goes into a deep sleep of some sort and ignores the G key.

Related

[Q] How to turn the G button to power key and other function key?

Hi! I Have an Optimus Black P970.
But I found that the G button on the Internet can be change to Power Key, Lock Key or even Camera Slot key. However, it always said need rooting.
However, I found that the procedure quite hard for me as i am new to android.
So, is there any means with NOT rooting? any widgets? any apps to do so?
Sorry for my poor English...
Thanks a lot.
sonicpeter said:
So, is there any means with NOT rooting? any widgets? any apps to do so?
Sorry for my poor English...
Thanks a lot.
Click to expand...
Click to collapse
No way without root. You may want to explore your abilities to root the phone, since CM and then MIUI are coming to our LG. These are far superior goods than GingerBread from LG.
Sent from my LG-P970 using Tapatalk
You need root to do that, because it's change the configuration at read-only system partition /system/usr/keylayout, which mean that you must mount R/W to change that.
and AFAIK that G for power button is just for standby/wake, it can't press to power up from off position.
CMIIW.
maludroid said:
No way without root. You may want to explore your abilities to root the phone, since CM and then MIUI are coming to our LG. These are far superior goods than GingerBread from LG.
Sent from my LG-P970 using Tapatalk
Click to expand...
Click to collapse
sorry, I DO care about with the battery and RAM problem. Can these problem solved after custom ROM release?
Now...I play with the game called "mega jump" and "cookie dozer"is so lag. however, the situation is totally different from Samsung i9003. i just want to know the changes from custom ROM.Thanks
So, my phone is rooted, but how can I change the g-key function now? I want it to just wake up on press. Thx a lot!
Sent from my LG-P970 using Tapatalk
Paracetamol100 said:
So, my phone is rooted, but how can I change the g-key function now? I want it to just wake up on press. Thx a lot!
Click to expand...
Click to collapse
The guide: http://forum.xda-developers.com/showthread.php?t=1194058
redy2006 said:
You need root to do that, because it's change the configuration at read-only system partition /system/usr/keylayout, which mean that you must mount R/W to change that.
and AFAIK that G for power button is just for standby/wake, it can't press to power up from off position.
CMIIW.
Click to expand...
Click to collapse
I think I've managed to power off from G key by long pressing it. I copied the configs on the power button.
Sent from my Optimus Black using xda premium
gabwerkz said:
I think I've managed to power off from G key by long pressing it. I copied the configs on the power button.
Click to expand...
Click to collapse
Perhaps it can power off, but not power on. Because the real button is wired hardware to switch on, and the G button accessible via software.
CMIIW.
Thx redy!
Sent from my LG-P970 using Tapatalk
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
Ps: I wasn't able to post in the related thread, I think I haven't enough userrights yet.
Sent from my LG-P970 using Tapatalk
Sent from my LG-P970 using Tapatalk
Paracetamol100 said:
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
Click to expand...
Click to collapse
You cant wake up phone with g button
Paracetamol100 said:
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.
Click to expand...
Click to collapse
Wake up from what? G button can set to standby/sleep and wake up. But it CAN'T "wake up" from off/dead position, because the main power button is hardwired to the hardware, and G button only accessed with Android system.
CMIIW.
To unlock the phone. Suddenly it works perfectly. Thx!
///lg P970 optimus black///

[Q] Working screen capture app for CM7

does anyone have any success with this? I've read in other device forums that the only way to screen capture in CM7 is with DDMS, true? I used screenshot with NOVA but both it and drocap just give a black image. Hard to believe something so simple cannot be done.
I don't have any problem using the CM7 build in screenshot functionnality
quyTam said:
I don't have any problem using the CM7 build in screenshot functionnality
Click to expand...
Click to collapse
are you using one of the 2 apps i mentioned, or something else?
no, "built-in" screenshot (with the menu when long press power button)
Only click the power button
ok, i am a COMPLETE and utter idiot, thanks!
actually CM7 already has a "printscreen" doesn't it? just press power button for about 2~3 secs and theres the option, or pressing power+home is the same as stock rom
first one...

[Q] Disable Capacitive Buttons With CM9 Installed

Is there a way to disable the four capacitive buttons on the Tab with CM9 installed? I downloaded Tab Button Remapper from the market, but it only FC after giving it root permission.
Not yet at the moment. Perhaps you could try disabling the soft buttons instead. That's why I did for now anyways.
Sent from a Galaxy S 2 Far Away
Yes u can, install this zip with recovery mod in your external sd. This fix and remove soft bottoms and enable usb mass storage when u conect to pc
Excellent! Thank you both for the reply and tavooluis for the file!
EDIT-Ah well I guess I wasn't clear enough on the buttons i wanted disabled--the four buttons on the bottom of the Tab (menu, home, back, search) not the onscreen buttons, but, hey, it IS great to have USB working!
lambstone said:
Not yet at the moment. Perhaps you could try disabling the soft buttons instead. That's why I did for now anyways.
Sent from a Galaxy S 2 Far Away
Click to expand...
Click to collapse
Ok, figured it out......I'm not a DEV, so especially [insert standard disclaimers here].
I used ES File Explorer to go to /system/usr/keylayout/ and I commented out (#) all four of the following entries in AT42QT602240_Touchscreen.kl:
key 139 MENU WAKE_DROPPED VIRTUAL
key 102 HOME WAKE_DROPPED VIRTUAL
key 158 BACK WAKE_DROPPED VIRTUAL
key 217 SEARCH WAKE_DROPPED VIRTUAL
I, personally, like using just the onscreen buttons. Now to get the LEDs to stay off. For now I'm using Button Brightness Widget from the market to turn them off while I'm using it.
ICS Soft buttons only (disabled & dim-able capacitive buttons!)
NovaChief said:
Ok, figured it out......I'm not a DEV, so especially [insert standard disclaimers here].
I used ES File Explorer to go to /system/usr/keylayout/ and I commented out (#) all four of the following entries in AT42QT602240_Touchscreen.kl:
key 139 MENU WAKE_DROPPED VIRTUAL
key 102 HOME WAKE_DROPPED VIRTUAL
key 158 BACK WAKE_DROPPED VIRTUAL
key 217 SEARCH WAKE_DROPPED VIRTUAL
I, personally, like using just the onscreen buttons. Now to get the LEDs to stay off. For now I'm using Button Brightness Widget from the market to turn them off while I'm using it.
Click to expand...
Click to collapse
Thanks a ton for this info... maybe this tidbit will help you a bit -
Did you know that there is a button back-light on/off function built in the ICS CM9 kernel for our Tabs !
koxudaxi developed this in his own kernel and yes it is in there
To use, simply tap and hold the menu key for like 3 seconds then release !
Do the same to toggle back on.
***Edit - I got to thinking....that with the buttons disabled then ofcourse koxudaxi's switcher wouldn't work right?
BUT to my surprise now I have CM9, soft buttons only, with capacitive buttons disabled, and press menu for 3 secs - lights out !
I am now super happy with ICS on tab
Thanks to koxudaxi, humberos for kernel, and NovaChief for this missing puzzle piece.
-peace-
nadiros said:
Thanks a ton for this info... maybe this tidbit will help you a bit -
Did you know that there is a button back-light on/off function built in the ICS CM9 kernel for our Tabs !
koxudaxi developed this in his own kernel and yes it is in there
To use, simply tap and hold the menu key for like 3 seconds then release !
Do the same to toggle back on.
***Edit - I got to thinking....that with the buttons disabled then ofcourse koxudaxi's switcher wouldn't work right?
BUT to my surprise now I have CM9, soft buttons only, with capacitive buttons disabled, and press menu for 3 secs - lights out !
I am now super happy with ICS on tab
Thanks to koxudaxi, humberos for kernel, and NovaChief for this missing puzzle piece.
-peace-
Click to expand...
Click to collapse
Is usb storage working for you? The stock cm9 usb storage I mean. I flashed the zip provided to remove the soft buttons and it worked. So if you did not flash the particular "fix" and instead just disabled the capacitive buttons, does the usb storage work?
lambstone said:
Is usb storage working for you? The stock cm9 usb storage I mean. I flashed the zip provided to remove the soft buttons and it worked. So if you did not flash the particular "fix" and instead just disabled the capacitive buttons, does the usb storage work?
Click to expand...
Click to collapse
No it's not working ATM. I did flash the zip, but when I noticed that the onscreen buttons were gone I flashed back. I did copy/paste the "volds" that was posted in the DEV thread to switch the mount points, but have not gotten usb to pc to work yet. Not a big deal for me right now because i can use BT to transfer files to/from the pc. Takes a bit longer than USB, but it works.
nadiros said:
Did you know that there is a button back-light on/off function built in the ICS CM9 kernel for our Tabs !
koxudaxi developed this in his own kernel and yes it is in there
To use, simply tap and hold the menu key for like 3 seconds then release !
Do the same to toggle back on.
***Edit - I got to thinking....that with the buttons disabled then ofcourse koxudaxi's switcher wouldn't work right?
BUT to my surprise now I have CM9, soft buttons only, with capacitive buttons disabled, and press menu for 3 secs - lights out !
I am now super happy with ICS on tab
Thanks to koxudaxi, humberos for kernel, and NovaChief for this missing puzzle piece.
-peace-
Click to expand...
Click to collapse
That, plus BLN Control Free keeps the lights off perfectly. Thanks for that tip!
oh dear , how i install Cm9 ??? help me and please got it screen shoot in topic
lambstone said:
Is usb storage working for you? The stock cm9 usb storage I mean. I flashed the zip provided to remove the soft buttons and it worked. So if you did not flash the particular "fix" and instead just disabled the capacitive buttons, does the usb storage work?
Click to expand...
Click to collapse
Eh - There appears to be conflicting info in this thread.... OP wanted capacitive "hard" buttons disabled.
The "sbradymobile_fixes.zip" that was posted to help removes the soft buttons entirely
and that is just counter productive
***in short DO NOT flash the zip if you wish to achieve what the OP wanted***
Posts #5 & #6 have all the info needed
-peace-
IT WORKS! Thank you so much. Finally,a great ICS experience on my old Tab.
Nice!
What roms are you guys using?
Maybe we could get the chefs to cook this in as activated by default?
Sent from my GX-I9932 using XDA App

CM9 G Button remap

hi, I open this thread to show you how to remap the G button, on the FOP rom it is assigned as a comma so it's totally useless, but all you have to do is using root explorer go to:
system\usr\keylayout
and modify the files "generic.kl" and "TWL4030_Keypad.kl" and search for "key 95".
On the "generic.kl" it will say something like insert comma, change that to one of this options:
APP_SWITCH it will make the g button open the recent apps
CAMERA well it's obvious it will open the camera
and on the "TWL4030_Keypad.kl" it will say "POWER WAKE_DROPPED", just erase that and type one of the options I said (you MUST assign the same option to BOTH files)
Hope it would be usefull ^^ I recomend using the button for the recent apps, since the camera can be accessed from the lockscreen and the camera isnt working right now
If you need to, I can make a CWM flashable zip to modify those 2 files, I didn't did that because this is way too easy to do manually...
Remember to mount R/w so you can edit the files
After doing that just reboot
You should mount r/w not r/o
Sent from my phone via tapatalk
A flashable file would be great!
You forgot reboot...neway thanks m8..it worked just fine :highfive:
RomWiz said:
You should mount r/w not r/o
Click to expand...
Click to collapse
thanks, for correcting me
strider2023 said:
You forgot reboot...neway thanks m8..it worked just fine :highfive:
Click to expand...
Click to collapse
ohh right jeje sry
Already there but imcomplete:
http://forum.xda-developers.com/showthread.php?t=1194058
koila33 said:
Already there but imcomplete:
http://forum.xda-developers.com/showthread.php?t=1194058
Click to expand...
Click to collapse
I saw this one when trying to do this, and it is really weird the tutorial so I decided to do this one, also it only says how to use as camera and lock button... could you consider adding this to the FOP rom?
Melin Leos said:
I saw this one when trying to do this, and it is really weird the tutorial so I decided to do this one, also it only says how to use as camera and lock button... could you consider adding this to the FOP rom?
Click to expand...
Click to collapse
If you guys find it useful we can add that feature, but it is easy to add this feature, so if you guys want, you guys can add by yourself.
koila33 said:
If you guys find it useful we can add that feature, but it is easy to add this feature, so if you guys want, you guys can add by yourself.
Click to expand...
Click to collapse
I know it's easy to add but the thing is that right now the g button on fop rom is completely useless
This works on CM7?
zortheck said:
This works on CM7?
Click to expand...
Click to collapse
Yep, tecnically it works on all roms, but I can't say exactly since Idont know which file you have to modify on cm7
zortheck said:
This works on CM7?
Click to expand...
Click to collapse
On cm7, you have to edit /system/usr/keylayout/qwerty.kl - delete key 212 line and add key 95 POWER WAKE_DROPPED or the line about camera - save and reboot
Sent from my LG Optimus Black using xda premium
My Power button is dead and i cannot turn on the phone manually. Ineed to use usb cable,enter the battery charging state and need to push the button frequently(hopefully it detect) till it reboot.Then i try to remap the power button to G button. still cannot on even at battery charging state... This phone is screwed.. wonder if anyone want to buy my phone.. haha..
My power button is not in the best condition too. First I remaped G button (key 95 POWER WAKE_DROPPED) and then I use SoftPower app to wake it because it even has sometimes problems to wake up with the remaped G button and I'm fine. OK that doesn't help when it's completly switched off but then it seems to work rather good and I nearly never switch it off anyway. I use AnReboot for some time, it is fast for reboot and good for getting in recovery.
SaschaKH said:
My power button is not in the best condition too. First I remaped G button (key 95 POWER WAKE_DROPPED) and then I use SoftPower app to wake it because it even has sometimes problems to wake up with the remaped G button and I'm fine. OK that doesn't help when it's completly switched off but then it seems to work rather good and I nearly never switch it off anyway. I use AnReboot for some time, it is fast for reboot and good for getting in recovery.
Click to expand...
Click to collapse
Getting to the recovery is not the problem as i can use the adb command. The worst part is when i want to call someone urgently and the phone cannot wake the screen. So softpower app can help in these kind of situation? As when the phone is completely dead, there nothing we can do to turn it on as some people said that the power button is hardwire.
Yes SoftPower wakes my phone up all the time without any problem. I haven't even activatet the adminstrator, because it is only needed for turning the screen off and I use G button for that. (Need the search button for something else anyway.)
BTW if you remap the G button it even shows the power menu like you get it for long pressing power button (at least with some ROMs).
Thanks man, i will try that software. I just open this phone and found out that the usb port and the power button is integrated with each other. So, it's kinda hard to repair it.
Thanks.... I modify G Button as Camera and its working awesome on CM10..
Sent from my LG-P970 using xda premium
Please
And if I want both answering and ending a call with G button, how can I add that to the file?
Maybe for wake up and turn off the device too? I guess it's applicable for multiple actions, isn't it?
atillaahun said:
And if I want both answering and ending a call with G button, how can I add that to the file?
Maybe for wake up and turn off the device too? I guess it's applicable for multiple actions, isn't it?
Click to expand...
Click to collapse
I tested it.I modify G button as CALL WAKE_DROPPED
With this I can receive the call but can't end call with G Button.
And also
Device wakes but can't turn off.
Sent from my LG-P970 using xda premium

[MOD]Enabled soft keys/Disabled Cap buttons **7.29 update posted**

This mod enables onscreen soft keys (THANKS TO LEONARDOARAUJO for the modded framework-res) and disables all cap keys except for menu. cap keys still are illuminated, but home, back, and search are disabled as well as haptic feedback for the 3. as i cannot as of yet get a search key remap working i decided to try n make this.I kinda like it btr even tho i lose a lil real estate cuz soft keys are cool..tested and working fine.
25b/27
http://db.tt/xgjybJJi
7.29
http://db.tt/MTzyaNk7
7.29
disable ALL cap keys by quetzalcoat12345 (Does not include the framework files, just the keymap files, so it should be good for all future releases.)
DisableAllCapacitiveKeys.zip"]https://dl.dropbox.com/u/19567156/DisableAllCapacitiveKeys.zip"]DisableAllCapacitiveKeys.zip
here is a flashable zip to reverse the mod (25b/27 only) by leonardoaraujo:
http://www.mediafire.com/?ch4kxk9heylr0v5
Until the backlight params editing is backported to CM10, you might want to try Screen Filter. I used that app since CM9 to disable the backlights on the capacitive buttons. Cheers!
Edit: Scrap that. It seems that it doesn't work (yet) on CM10. I'll try searching for something else.
Edit 2: Success! Adjbrightness works flawlessly!
quetzalcoatl2435 said:
Until the backlight params editing is backported to CM10, you might want to try Screen Filter. I used that app since CM9 to disable the backlights on the capacitive buttons. Cheers!
Edit: Scrap that. It seems that it doesn't work (yet) on CM10. I'll try searching for something else.
Edit 2: Success! Adjbrightness works flawlessly!
Click to expand...
Click to collapse
imma try it now, although i may leave them on only cuz my.menu key is active still..thx for the tip!
edit..works great.wish i could kill all but menu..but i suppose people in hell want icewater too
[m]atRix
Yeah, I noticed you left the menu button enabled. I've edited mine to disable the menu button as well, so it's all off for me.
quetzalcoatl2435 said:
Yeah, I noticed you left the menu button enabled. I've edited mine to disable the menu button as well, so it's all off for me.
Click to expand...
Click to collapse
i left mine on cuz there are times and places i need to enter menu but the 3 dots aren't there. maybe leo can add menu to the soft keys, ill ask.
In what app(s) does that occur? I haven't checked every app on my phone, but it's all good so far. The 3 dots show up either next to the soft buttons or on the actionbar.
quetzalcoatl2435 said:
In what app(s) does that occur? I haven't checked every app on my phone, but it's all good so far. The 3 dots show up either next to the soft buttons or on the actionbar.
Click to expand...
Click to collapse
actually now tht im paying attn, i think its mainly from home screen using apex. i can set a shortcut but i jus kinda like having menu access rt there. works for me
edit: ur right..menu 3 dots thing is there anytime there is a menu to access, EXCEPT apex home screen. but sometimes its up on top. i thought about disabling menu but decided to keep it as its nice to have rt there, i guess for the same reason i like the search key to recents remap..more easily accessible.
What if we want to revert back to using the softkeys after flashing this? is there a way to reverse it?
zefir738 said:
What if we want to revert back to using the softkeys after flashing this? is there a way to reverse it?
Click to expand...
Click to collapse
just reflash CM10 without wiping data, should bring everything back to stock.
need not apply the full rom, to undo everything (including navigation buttons):
http://www.mediafire.com/?ch4kxk9heylr0v5
ps: op, add to the 1st post ..
is the softkeys able to change functions? such as adding screen lock button or other applications in the nav bar
and can we enable the 4 capactivie buttons in the modded framework?
bu14 said:
is the softkeys able to change functions? such as adding screen lock button or other applications in the nav bar
and can we enable the 4 capactivie buttons in the modded framework?
Click to expand...
Click to collapse
not as of now. well i cant anyway, maybe leo can..
as far as screen lock button, i use widgetsoid for tht
rickriego said:
not as of now. well i cant anyway, maybe leo can..
as far as screen lock button, i use widgetsoid for tht
Click to expand...
Click to collapse
how can i contact him?
bu14 said:
how can i contact him?
Click to expand...
Click to collapse
search the forums for leonardoaraujo his profile will pop up a few lines down. u can pm from there
I hope you update your zip to the new epinter
Sent from my MB860 on CM10
i will, already talked to leo abt the framework..
[m]atRix
mod works w/ epinters current release!
[m]atRix
rickriego said:
mod works w/ epinters current release!
[m]atRix
Click to expand...
Click to collapse
Update the OP.
Sent from my Nexus 7
Soldier-2Point0 said:
Update the OP.
Sent from my Nexus 7
Click to expand...
Click to collapse
aye aye captain!
edit: done
[m]atRix
Soldier-2Point0 said:
Update the OP.
Sent from my Nexus 7
Click to expand...
Click to collapse
Geez soldier lol
Sent from my MB860 using Tapatalk 2

Categories

Resources