Hi,
as there are many devices, ours included, which still have hardware buttons, there have been mods around for many to inlcude software buttons. I was wondering if there is a possibility to have them on our device? It should be no problem on CM9 or 10, which IIRC has them included (i'd flash one of those if they were availible...), but is it also possible on our stock roms?
So I found a way to add them: Just add to the build.prop
Code:
qemu.hw.mainkeys=0
But still the HW keys also work. Now I need a way to disable them - anyone know a solution for that?
works, but also added the "menu" button at the top right of the application, this is fine except in lg applications that do not include the use of that key .... also you can change the keyboard software also adding other keys (as the menu, change the size, etc.)?
sorry for my English, I used google translate from Italian
Any oportunity to lock the HW keys ?
Sent from my LG-P880 using xda app-developers app
muellersmattes said:
So I found a way to add them: Just add to the build.prop
Code:
qemu.hw.mainkeys=0
But still the HW keys also work. Now I need a way to disable them - anyone know a solution for that?
Click to expand...
Click to collapse
Can you post a screen how it looks with the soft keys?
Found a solution to disable the hard ones?
NoBodysGamer said:
Can you post a screen how it looks with the soft keys?
Found a solution to disable the hard ones?
Click to expand...
Click to collapse
You might as well try it yourself. Use a build.prop editor that can backup and restore the file, so you can easily revert to stock.
I didn't find a solution for the hw keys, but I haven't been looking for one very much.
Gesendet von meinem LG-P880 mit Tapatalk 2
Related
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
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
Hi guys,
I want to use the on screen command (like galaxy nexus) on my Nexus S and for this i use the AOKP JB M1.
But the soft touch buttons are ugly under touch command, there is a way to disable function, vibrate and illumination of the soft touch buttons?
Yea you can, just download NS Tools from the Google Play Store and change the settings. You should be able t disable the soft key's.
bassam3000 said:
Yea you can, just download NS Tools from the Google Play Store and change the settings. You should be able t disable the soft key's.
Click to expand...
Click to collapse
The illumination is resolved by NS Tools, but not the function of soft keys
Xen_0s said:
The illumination is resolved by NS Tools, but not the function of soft keys
Click to expand...
Click to collapse
Use this to disable them: http://db.tt/AyJLDkg1
and use this to enable them: http://db.tt/PhxFyBb3
Let me know if it worked.
Also dont forget to backup your rom before flashing these. Just in case.
bassam3000 said:
Use this to disable them: http://db.tt/AyJLDkg1
and use this to enable them: http://db.tt/PhxFyBb3
Let me know if it worked.
Also dont forget to backup your rom before flashing these. Just in case.
Click to expand...
Click to collapse
Works thank you so much
no problem enjoy
Hi all,
I was looking for a way to make the volume rocker to wake up the screen but with no luck. Anybody knows a way? If yes then please share your knowledge
EDIT: ok, I've found two methods: method 1 and method 2 but my knowledge is too limited... I know nothing about smali and etc. in method 2 I don't know which file should I edit?
Please help!
Thanks in advance
EdisDee said:
Hi all,
I was looking for a way to make the volume rocker to wake up the screen but with no luck. Anybody knows a way? If yes then please share your knowledge
EDIT: ok, I've found two methods: method 1 and method 2 but my knowledge is too limited... I know nothing about smali and etc. in method 2 I don't know which file should I edit?
Please help!
Thanks in advance
Click to expand...
Click to collapse
Try an app from the Google play store called " wake all"i use it too. It will wake up phone with the volume buttons.
Sent from my LG-P880 using xda app-developers app
dante501 said:
Try an app from the Google play store called " wake all"i use it too. It will wake up phone with the volume buttons.
Sent from my LG-P880 using xda app-developers app
Click to expand...
Click to collapse
You can try widget locker - lock screen replacement app, and disable stock lock screen. Another good thing with it is that you will lose lag on answering phone call...
nedooo said:
You can try widget locker - lock screen replacement app, and disable stock lock screen. Another good thing with it is that you will lose lag on answering phone call...
Click to expand...
Click to collapse
widget locker did the thing. but i liked the lg lockscreen alot :-/ thanks nedooo!
btw wake all is working as well but there was a thing a didn't like: when i lock the screen and press the volume rocker buttons, the app showed me my homescreen for a second or two and then the lockscreen. widget locker doesn't do that. anyway thanks to dante501 also!
In CM10 volume rocker wake feature is already there as an option afaik. I wish everyone to have the patience and wait for the bootloader unlock update from LG and the CM port
EdisDee said:
widget locker did the thing. but i liked the lg lockscreen alot :-/ thanks nedooo!
btw wake all is working as well but there was a thing a didn't like: when i lock the screen and press the volume rocker buttons, the app showed me my homescreen for a second or two and then the lockscreen. widget locker doesn't do that. anyway thanks to dante501 also!
In CM10 volume rocker wake feature is already there as an option afaik. I wish everyone to have the patience and wait for the bootloader unlock update from LG and the CM port
Click to expand...
Click to collapse
tried wakeall, all it does it freeze my desktop till i restart my phone
I'm not shure what you w want to achieve cause my volume buttons wake up the screen by default. I'm on the 10H.
Wysyłane z mojego LG-P880 za pomocą Tapatalk 2
---------- Post added at 05:57 PM ---------- Previous post was at 05:54 PM ----------
Ok now I know. If you have disabled lock screen than volume wake the screen up.
Wysyłane z mojego LG-P880 za pomocą Tapatalk 2
method 1:
1.Decompile android.policy.jar
2.Found KeyguardViewMediator.smali
3.Edit the smali and delete
Code:
0x18 -> :sswitch_5
0x19 -> :sswitch_5
method 2:
Edit /system/usr/keylayout/tuna-gpio-keypad.kl
Code:
key [COLOR="Red"]???[/COLOR] VOLUME_DOWN [COLOR="Red"]WAKE[/COLOR]
key [COLOR="red"]???[/COLOR] VOLUME_UP [COLOR="Red"]WAKE[/COLOR]
key [COLOR="red"]???[/COLOR] POWER [COLOR="red"]WAKE[/COLOR]
I don't know the correct number of the key,so I replaced the number to ??? and you just keep the original numbers.
"WAKE" means you can wake up the phone with the button.
Delete the WAKE and it won't work.
Tim_Pan said:
method 1:
1.Decompile android.policy.jar
2.Found KeyguardViewMediator.smali
3.Edit the smali and delete
Code:
0x18 -> :sswitch_5
0x19 -> :sswitch_5
method 2:
Edit /system/usr/keylayout/tuna-gpio-keypad.kl
Code:
key [COLOR="Red"]???[/COLOR] VOLUME_DOWN [COLOR="Red"]WAKE[/COLOR]
key [COLOR="red"]???[/COLOR] VOLUME_UP [COLOR="Red"]WAKE[/COLOR]
key [COLOR="red"]???[/COLOR] POWER [COLOR="red"]WAKE[/COLOR]
I don't know the correct number of the key,so I replaced the number to ??? and you just keep the original numbers.
"WAKE" means you can wake up the phone with the button.
Delete the WAKE and it won't work.
Click to expand...
Click to collapse
1. I don't know how to decompile. what's a smali? I thought someone with the knowledge could make this mod for the O4X.
2. there is no tuna-gpio-keypad.kl file in /system/usr/keylayout/. the closest file name was gpio-keys.kl. I edited it but the phone still doesn't wake.
I know there is google and I could learn it myself. I'd like to learn all these things, but I haven't got the time for it. I work a lot and I have exams at college.
any way to get this feature on stock based rom?
donkanmcklaus said:
any way to get this feature on stock based rom?
Click to expand...
Click to collapse
If rooted, try the Xposed module 'Xposed Additions'. It lets you remap all buttons. Heard it even works as a workaround for the powerbutton bug in CM11!
balloon27 said:
If rooted, try the Xposed module 'Xposed Additions'. It lets you remap all buttons. Heard it even works as a workaround for the powerbutton bug in CM11!
Click to expand...
Click to collapse
xposed additions did the job thx man
How do I disable Capacitive Buttons and Add on screen "buttons"?
I tried to edit system/usr/keylayout/generic.kl and put # in front of keys 158 and 139 but then I can't save the file.
How do I save the edited file?
Then how do I turn on the on screen buttons?
Thanks in advance.
anyone?
macsrock said:
How do I disable Capacitive Buttons and Add on screen "buttons"?
I tried to edit system/usr/keylayout/generic.kl and put # in front of keys 158 and 139 but then I can't save the file.
How do I save the edited file?
Then how do I turn on the on screen buttons?
Thanks in advance.
Click to expand...
Click to collapse
Hi @macsrock,
From what I understand in order to enable the on screen "soft keys" for a TW ROM, the framework would have to be modified (to what extent I do not know). Whereas in an "AOSP" (stock android) based ROM, a simple build.prop edit would do the trick.
theROMinator said:
Hi @macsrock,
From what I understand in order to enable the on screen "soft keys" for a TW ROM, the framework would have to be modified (to what extent I do not know). Whereas in an "AOSP" (stock android) based ROM, a simple build.prop edit would do the trick.
Click to expand...
Click to collapse
Thank you.
theROMinator said:
Hi @macsrock,
From what I understand in order to enable the on screen "soft keys" for a TW ROM, the framework would have to be modified (to what extent I do not know). Whereas in an "AOSP" (stock android) based ROM, a simple build.prop edit would do the trick.
Click to expand...
Click to collapse
Yeah Samsung are dicks and removed the parts of the framework needed for this I'd much prefer this as well but not happening anytime soon.
Sent from my SM-N9005 using XDA Premium 4 mobile app
I was finally able to disable the capacitive buttons which always get pressed accidentally. Im using GMD gestures. But has anyone yet found any mod to make the on screen navbar work?
By the way,You can also download an app, button savior for soft keys but they look a bit sluggish
If i helped,don't forget to hit the THANKS button