CM9 G Button remap - LG Optimus Black

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

Related

[APP] Instant Screen Off (for rooted phones only)

I have make small app, which switching off screen.
Instant, without any waits or faking switching off by set brightness to zero.
It's simulate pressing of power button.
Maybe this one will be interest for somebody
root needed
Nice! I'd be more interested if you could do unlock via soft keys as we had in Hero , i.e. home and menu, as I find the power button is too recessed for easy access.
Not sure if softkeys would be too easy to trigger by mistake tho ??
pinn___________ said:
Nice! I'd be more interested if you could do unlock via soft keys as we had in Hero , i.e. home and menu, as I find the power button is too recessed for easy access.
Not sure if softkeys would be too easy to trigger by mistake tho ??
Click to expand...
Click to collapse
There is a hack for this but the menu key etc on the hd are not active when the screen is locked so it doesn't work. I did it today but you have to press power then the keys become active and you can use menu etc to unlock. Pointless as you still need to use power button first. The hero's keys were hard buttons as is the desire. It worked great on the desire. Unless anyone knows a way to have them active while locked? My power buttons a nightmare as it's not very clicky and really recessed. My wife's hd power button is much easier to use. Anyone know a way to have the soft keys active all the time?
Sent from my Desire HD using Tapatalk
Thanks for this app, i was waiting for.
Power button isn't as practical as your app to power down the phone.
Thank you mate.
Very Nice.... I like it.
But can you please Chance the Icon for me?
Im not able to do this myself.
I would like something like that.
Back and white with a bit gray or shaded would be very nice
Hi,
does it possible to work on unrooted phones?
thx
gervasius said:
Hi,
does it possible to work on unrooted phones?
Click to expand...
Click to collapse
No, only rooted. Su permission requried :-(
Korny89 said:
But can you please Chance the Icon for me
Click to expand...
Click to collapse
I can, but i'm need final icon in resolution 72x72px, can you draw it?
Srry, but can someone explain to me in technical terms how this actually works and what are its benefits. Thank you.
r0cky.Da.3v0.SU.
r0cky0790 said:
Srry, but can someone explain to me in technical terms how this actually works and what are its benefits. Thank you.
r0cky.Da.3v0.SU.
Click to expand...
Click to collapse
In technical terms,yes- it would circumvent the process of having to use one's digit to find aforementioned hard power button and then depress said button.
pinn___________ said:
In technical terms,yes- it would circumvent the process of having to use one's digit to find aforementioned hard power button and then depress said button.
Click to expand...
Click to collapse
Lol, maybe I didn't want the technical version after all. Dumb it down so I can understand. I'm have it installed but I don't see it doing anything. I have an Evo. How does this work (explain normal).
r0cky.Da.3v0.SU.
Its just a app to lock the phone and turn the screen off. Not sure if it works on evo
Ok thanks buddy, Uninstalling.
r0cky.Da.3v0.SU.
Dunno if this is doable but have you seen the screen lock on the new nexus that was seen at recent web 2.0 summit. Its kinda like the effect you get when u turn off an old crt TV. Could you implement that instead of the current fade effect? Ta
here i send you the perfect icon for me.
I hope you can do this. This would be very great.
Can you make the white corners transparent?
If you cant please make it black...
Im looking forward to you work
Korny89 said:
here i send you the perfect icon for me.
Click to expand...
Click to collapse
Done.
Look first post for update.
Hello, thanks a lot. its look very very sexy.
The only problem i have is with the "More Icons Widget"
That shows me the old symbol.
I think thats not you Problem. So i will check that.
thanks!
Thank you exidler for this useful app. I am just wondering if you can make use of the accelerometer sensor to turn off the screen ( for example by putting the phone upside down) . Thanks again.
Sent from my Desire HD using XDA App
"Thank you exidler for this useful app. I am just wondering if you can make use of the accelerometer sensor to turn off the screen ( for example by putting the phone upside down) . Thanks again."
i also agree ! that would be a perfect app and since most people do not check their sms upside down it would also be extremely practical
+1
Benjyk said:
I am just wondering if you can make use of the accelerometer sensor to turn off the screen ( for example by putting the phone upside down)
Click to expand...
Click to collapse
I'm busy now, but will look for your feature request in few days. Most of everything is possible

CM7 "N" Key / Back - best options?

I'm not running any extra virtual key apps... What I want to do... is have the physical N button do a BACK on 1 click, and HOME on 2 clicks... Or normal click BACK, and LONG click HOME...
I've looked through some of the settings - can't tell how to set that up (if at all).
Any thoughts?
Why not use the soft keys built in to CM7?
Sometimes the status bar is gone... either because something causes it to hide, or because I hide it.
MHotovec said:
Why not use the soft keys built in to CM7?
Click to expand...
Click to collapse
The best setup so far (imho), is to set the soft keys show up at volume button press.
Since the power button or N button tend to fail sometimes.
By doing that, you can hide soft keys with no fear and just presse volume button to bring they back to the screen, flawless.
@blauson
I hate doing that because if I need to change volume I need to leave the app, go into settings, and change it manually. :/
Somehow my "n" button got turned into a back button. Weird. Would much rather haave it be a menu button. but I dont even know how it changed in the first place! lol
DiscoPh3v3r said:
@blauson
I hate doing that because if I need to change volume I need to leave the app, go into settings, and change it manually. :/
Somehow my "n" button got turned into a back button. Weird. Would much rather haave it be a menu button. but I dont even know how it changed in the first place! lol
Click to expand...
Click to collapse
I run phiremod so it's in: settings, phiremod settings, tablet tweaks, choose unhide button
DiscoPh3v3r said:
@blauson
I hate doing that because if I need to change volume I need to leave the app, go into settings, and change it manually. :/
Click to expand...
Click to collapse
My volume still works when I use it to recall the status bar.
Rodney
rhester72 said:
My volume still works when I use it to recall the status bar.
Rodney
Click to expand...
Click to collapse
Really? Then I will have to see what's up, last time I was always running around the settings and stuff to change the volume.
Blue6IX said:
I run phiremod so it's in: settings, phiremod settings, tablet tweaks, choose unhide button
Click to expand...
Click to collapse
I am using Rooted Stock 1.2, way better battery life IMO.
rhester72 said:
My volume still works when I use it to recall the status bar.
Rodney
Click to expand...
Click to collapse
I second on that.
I'm running nightly 131.
No problem to change the volume neither to show up soft keys.
I use the N key to cancel full screen. Its more comfortable to use than the volume keys for me.
Hrm.. that would work... Where do I configure what the N key does?
dalingrin said:
I use the N key to cancel full screen. Its more comfortable to use than the volume keys for me.
Click to expand...
Click to collapse
dalingrin said:
I use the N key to cancel full screen. Its more comfortable to use than the volume keys for me.
Click to expand...
Click to collapse
This is how I've been doing it as well, but sometimes it brings me all the way back to home after showing the status bar. Do you ever experience that? Any tips if so?
Regardless, I like my volume buttons to be... well... volume buttons.
You could use button savior to have a never-hide home only option button located on the very right side by the N button, leaving that slot unused on adw launcher and treat it as a "permanent" home button.
TheAmazingDave said:
This is how I've been doing it as well, but sometimes it brings me all the way back to home after showing the status bar. Do you ever experience that? Any tips if so?
Click to expand...
Click to collapse
That's precisely why I haven't used the n button - if there is a way to avoid it, that would be fantastic!
Rodney
The best thing I ever did was install zMooth. Its a gesture bar that lets you draw the buttons. Almost like my old pre.
Sent from my NookColor using XDA Premium App
jeremymahoney said:
The best thing I ever did was install zMooth. Its a gesture bar that lets you draw the buttons. Almost like my old pre.
Click to expand...
Click to collapse
Looks interesting, but the only gesture I can manage to make it recognize is home. Any special tricks to this?
Rodney
It has always worked well for me. Have you used the nook screen recalibrate app? Before I ran that I had a really hard time getting the lower part of my screen to recognize my touch. I think there are some sensitivity settings in the zMooth app you can play around with too.
Sent from my NookColor using XDA Premium App

No More POWER (Button), please?

I'm rooted with stock ROM. I'd rather not go with another ROM at the moment, but I'm forever hitting the power button by accident and it's driving me crazy. At this point, I'm ready to lose function of the power button all together. Is there a mod for this? Please and thanks.
ThaiM said:
I'm rooted with stock ROM. I'd rather not go with another ROM at the moment, but I'm forever hitting the power button by accident and it's driving me crazy. At this point, I'm ready to lose function of the power button all together. Is there a mod for this? Please and thanks.
Click to expand...
Click to collapse
Open /system/usr/keylayout/sec_key.kl with a text editor, and delete the WAKE that's in line with POWER
Make sure system is mounted as rw
Sent from my GT-I9100
soyef said:
Open /system/usr/keylayout/sec_key.kl with a text editor, and delete the WAKE that's in line with POWER
Make sure system is mounted as rw
Sent from my GT-I9100
Click to expand...
Click to collapse
Worked! You're my hero.

[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///

[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