This has been confirmed working in our phone, it's a simple tweak:
to add soft (in the screen) keys follow this:
and8res said:
navigate to system/build.prop
go to the bottom of the page ( document )
add this line
qemu.hw.mainkeys=0
save
reboot
check
Peace
Click to expand...
Click to collapse
to disable hard keys:
maxq1 said:
comment out lines on /system/usr/keylayout/Generic.kl, like so...
Code:
# key 158 BACK
# key 139 MENU
physical home button, however, will still wake up the device (which i prefer) and long pressing on it will bring up s-/google- voice. if you wish otherwise, you can disable it altogether by editing the line on gpio-keys.kl (same directory as above)...
Code:
# key 172 HOME WAKE
then turn off lights via settings/display/touchkey light duration. works on both ics and jb sammy roms. HTH
Click to expand...
Click to collapse
to revert soft keys just make qemu.hw.mainkeys=1
to revert disabled hardware keys take out the #s
Sent from my SPH-L900 using xda app-developers app
Thanks
Nice Work.
Thanks for Sharing.
I think this is also good.
Pretty awesome. Wonder if we csn swap the back key to left side.
Sent from my SCH-I605 using xda app-developers app
reinaldistic said:
This has been confirmed working in our phone, it's a simple tweak:
to add soft (in the screen) keys follow this:
to disable hard keys:
to revert soft keys just make qemu.hw.mainkeys=1
to revert disabled hardware keys take out the #s
Sent from my SPH-L900 using xda app-developers app
Click to expand...
Click to collapse
Sent from my SCH-I605 using xda app-developers app
thankssss
it would be nice if the onscreen keys would pop up automatically when the s-pen is pulled only:good::good:
reinaldistic said:
This has been confirmed working in our phone, it's a simple tweak:
to add soft (in the screen) keys follow this:
to disable hard keys:
to revert soft keys just make qemu.hw.mainkeys=1
to revert disabled hardware keys take out the #s
Sent from my SPH-L900 using xda app-developers app
Click to expand...
Click to collapse
so if you change key 158 to be menu and 159 to be back will the keys change to it as specified?
Great Mods Rein..Worked perfect.
Man, that's killer. Thanks so much. I was actually scared doing that. Never messed around in there before. So, the soft keys are there & I just went into settings & just turned the light off to the hardware keys, but let me get this straight please, all I have to do to take the sofykeys away is turn =0 into =1, that's it (& reboot) TIA & thanks again for this.
Sent from my SPH-L900 using Xparent Blue Tapatalk 2
Question when your watching a video like YouTube does the software keys disappear? I wouldn't like having software keys when I'm watching a video I need full landscape lol
Sent from my SPH-L900 using xda app-developers app
I'm not sure if its a fluke, but I can't take screenshots anymore?
Hello if i enable the softkeys everything works after the first reboot but after the second reboot the softkeys and the line inside build.prop is gone!
Is there a way i could set it permanently?
I thought i could use a .SH script wich adds "qemu.hw.mainkeys=0" to the build.prop every boot? But i don't know what to write?
Would something like this work?
Placed in init.d as 999softkey.sh
Code:
#!/system/bin/sh
chown 0.0 /system/build.prop
echo "qemu.hw.mainkeys=0" > /system/build.prop
dclarolh said:
so if you change key 158 to be menu and 159 to be back will the keys change to it as specified?
Click to expand...
Click to collapse
the hardware ones will, the software ones won't care
Sent from my SPH-L900 using xda app-developers app
wooki said:
Hello if i enable the softkeys everything works after the first reboot but after the second reboot the softkeys and the line inside build.prop is gone!
Is there a way i could set it permanently?
I thought i could use a .SH script wich adds "qemu.hw.mainkeys=0" to the build.prop every boot? But i don't know what to write?
Would something like this work?
Placed in init.d as 999softkey.sh
Code:
#!/system/bin/sh
chown 0.0 /system/build.prop
echo "qemu.hw.mainkeys=0" > /system/build.prop
Click to expand...
Click to collapse
you need to be rooted to do this and you have to do it with a root explorer, my favorite is total commander in the play store, it automatically detects you are trying to save onto a routed folder and asks for permissions
Sent from my SPH-L900 using xda app-developers app
is it true that this will disable screenshots?
reinaldistic said:
you need to be rooted to do this and you have to do it with a root explorer, my favorite is total commander in the play store, it automatically detects you are trying to save onto a routed folder and asks for permissions
Sent from my SPH-L900 using xda app-developers app
Click to expand...
Click to collapse
I am rooted otherwise it wouldn't function at all or?
I works at the first reboot but at second reboot the softkeys are missing again! Maybe its caused by my custom rom?
For more info, there is a detailed discussion on this, over at the themes and mods forum that started a couple of weeks ago:
[How to] Enable on screen buttons
I found that, with the on-screen mod, the camera shutter is cut off.
Here is an ongoing thread in the same forum on modifying the hard keys, including the Home button...
[Mod] Change Home button wake mode
reinaldistic said:
This has been confirmed working in our phone, it's a simple tweak:
to add soft (in the screen) keys follow this:
to disable hard keys:
to revert soft keys just make qemu.hw.mainkeys=1
to revert disabled hardware keys take out the #s
Sent from my SPH-L900 using xda app-developers app
Click to expand...
Click to collapse
thnaks for posting this, will be linked to a lot
So if I want to go back to normal, do I have to write something there or can I just delete the line I put there & reboot. And will that bring screenshots back?
Sent from my SPH-L900 using Xparent Blue Tapatalk 2
Related
Hi,
Is there any way to enable on screen buttons on note 2 ? I just need back and home button on it.
Thanks
Not at the moment. you can edit build.prop but things get all messed up.
Just download button savior for now. I have it setup where back and home pops out of the left side and goes bck in withiin a second once used. very convenient and minimal. Doesn't take up much space like all the other wannabe button apps.
OPPAN NOTE 2 STYLE!!!
You can I do its throws a couple of things out of wack. Tw launcher. I use apex though. The camera, cuts of half of the shoot button and the diailer also call log your last call ........ im used to it the buttons are of more help to me then the problems are trouble...." qemu.hw.mainkeys=0"
Sent from my SGH-T889 using xda premium
So how did you do this?
Sent from my SGH-T889 using xda app-developers app
DarthPiggie said:
So how did you do this?
Sent from my SGH-T889 using xda app-developers app
Click to expand...
Click to collapse
qemu.hw.mainkeys=0 use ROM toolbox paste in at the end of build prop reboot
Sent from my SGH-T889 using xda premium
Not sure why anyone would want to edit the build.prop, it messes up all the dimensions. Here is a pic of what i am talking about. Button Savior simple clean and works. Everything is configurable, from button locations, size, numbers of them, how long before it goes away etc ..
hi guys, i fixed 2 keys on my keyboard tonight.
i know this is probably not the way to do it but, i modified a few things in /system/usr/keylayouts/Generic.KL
what you need
cm10 of course
root access
a text editor
i am not responsible if you break your device following the instructions here, please make a backup of your Generic.kl file before modifying it
To fix the backspace key, scroll to the line : key 111 FORWARD_DEL
replace FORWARD_DEL with DEL
To fix the blue Alt key, scroll to the line : key 464 FUNCTION
replace FUNCTION with ALT_LEFT or ALT_RIGHT, both are working
i will try to fix the other keys soon, especially the ? key
now as i said this is probably not the right way to do it, the number keys seems to toggle search in cm10 stock internet browser, i havent checked with other ones yet, everything is working fine everywhere else though
Thanks to dman3285 for all the work he has done bringing cm10 to our devices
Numbers keys are working fine in Firefox
Sent from my SGH-I927 using xda app-developers app
math_green20 said:
hi guys, i fixed 2 keys on my keyboard tonight.
i know this is probably not the way to do it but, i modified a few things in /system/usr/keylayouts/Generic.KL
what you need
cm10 of course
root access
a text editor
i am not responsible if you break your device following the instructions here, please make a backup of your Generic.kl file before modifying it
To fix the backspace key, scroll to the line : key 111 FORWARD_DEL
replace FORWARD_DEL with DEL
To fix the blue Alt key, scroll to the line : key 464 FUNCTION
replace FUNCTION with ALT_LEFT or ALT_RIGHT, both are working
i will try to fix the other keys soon, especially the ? key
now as i said this is probably not the right way to do it, the number keys seems to toggle search in cm10 stock internet browser, i havent checked with other ones yet, everything is working fine everywhere else though
Thanks to dman3285 for all the work he has done bringing cm10 to our devices
Click to expand...
Click to collapse
It doesn't work btw... I tried this a lonnng time ago.
Doesn't Work!
Rawr0w0 said:
It doesn't work btw... I tried this a lonnng time ago.
Click to expand...
Click to collapse
Yes it does work.. tested it myself.. will be in the next cm10 release.
Nice work
Sent from my SGH-I927 using xda premium
dbrannon79 said:
Doesn't Work!
Click to expand...
Click to collapse
It works and works well... I assure you
Sent from my SGH-I927 using xda premium
I can also confirm this works using dmans PAC rom
Sent from my PACman device
I forgot to say, a reboot is required for the changes to work
Sent from my SGH-I927 using xda app-developers app
math_green20 said:
I forgot to say, a reboot is required for the changes to work
Sent from my SGH-I927 using xda app-developers app
Click to expand...
Click to collapse
. . . now it works
---------- Post added at 09:30 AM ---------- Previous post was at 09:21 AM ----------
ever since i did that... Android Keyboard (AOSP) has stopped. keeps flashing...and I lost mobile service somehow...
Whenever I try to edit this file, on reboot, I lose function of my power button and none my keys work on the hard keyboard...any ideas?
Sent from my i927 PACman JB
I will upload my keyboard layout file later today, maybe even 2 layouts, i got most keys working by now.
If you lose your hardware buttons it means you screwed something up while modifying the file. Keep the tabulations right, double check after modifying
Key 464 LEFT_ALT disabled every buttons
Key 464 ALT_LEFT will work
If this happens you can either restore your original generic.kl backup, reboot via an application like rom manager or something
If you had no backup you can flash back dman's rom, it did work for me after i screwed the file up the first time
Sent from my SGH-I927 using xda app-developers app
I am not sure what is going wrong? I have done it as you have explained but I keep losing the keyboard, power and volume keys? I must have something installed that is conflicting but can't figure out what
I had to reinstall dman's ROM again as the backup wouldn't get the Keys working again...I tried to edit the file again with the same results? This time at least the backup of the file restores function to the keys
Thanks again for your work, I guess I just have to wait! XD
Cheers
Sent from my i927 JB PACman
I did the two edits and nothing, even after a reboot the alt button still acts as the caps lock key!
I'm running PAC Rom with covenant kernel!
Sent from my SGH-I927 using Tapatalk 2
Make sure your device does not insert a . after 2 consecutive spaces at the end of a word, that made screw me up a few times. But as i said i will upload my layout file later today when i get back from work
Sent from my SGH-I927 using xda app-developers app
math_green20 said:
Make sure your device does not insert a . after 2 consecutive spaces at the end of a word, that made screw me up a few times. But as i said i will upload my layout file later today when i get back from work
Sent from my SGH-I927 using xda app-developers app
Click to expand...
Click to collapse
My apologies! I was making the edits using root explorer and it was not saving them! Got droid edit from the market. Works great !
Thank you
Sent from my SGH-I927 using Tapatalk 2
I too had to use a different editor. Root explorer and ones in phone wouldn't work. I typed this with the keyboard! XD I was thinking that was the problem, not smart enough to figure it out myself I guess
Thanks again!!!
Sent from my i927 JB PACman
Has anyone gotten the number keys working?
Thanks
Sent from my SGH-I927 using Tapatalk 2
1234567890. All typed holding 'blue Alt + numbers'. So yes they are working for me now!
Sent from my i927 JB PACman
thescot33 said:
1234567890. All typed holding 'blue Alt + numbers'. So yes they are working for me now!
Sent from my i927 JB PACman
Click to expand...
Click to collapse
How did you go about the edits? Wasn't sure since I couldn't get the right key numbers with the tracker app!
Sent from my SGH-I927 using Tapatalk 2
That's weird, i used root explorer editor and everything worked fine, i used KeyEventDisplay to get the codes.
Sent from my SGH-I927 using xda app-developers app
I have the At&t version of Optimus G E970, I think this will work for any Optimus G.
Not responsible for bricked phones.
This is a mod how to enable navigation bar(on screen buttons) , its very simple and easy...
Add the following line at the end of buid.prop file
qemu.hw.mainkeys=0
now on reboot we will have nav-bar like on nexus 4
To disable hardware keys, I used root explorer go to system/usr/keylayout click and hold on kaypad.nl and choose from menu open in text editor and 139,158,172 edit the home to hom and do the same on all 3 lines and hit save and reboot,
Plus I went and deleted all the 139, 158, 172 lines from external_kbd.kl, Generic.kl, MHLRCP.kl, osp3-input.kl and qwerty.kl. I dont know if that helps because I deleted them first then edited the lines in kaypad.nl.
Sent from my LG-E970 using xda premium
Sent from my LG-E970 using xda premium
what for????
why do i need to decrease screen size?
agurzhiy said:
what for????
why do i need to decrease screen size?
Click to expand...
Click to collapse
Well some people might want to play with it and get the nexus 4 feeling. Plus its feels smoother in my opinion.
Sent from my SGH-T999 using xda premium
Its the beauty of Android you can make it how ever you like, some don't mind hardware keys other may want the soft keys.
Sent From my "Slick" Optimus G
For what it is worth I find the software keys more ergonomic
The hardware keys on this phone are to low and causes strain to hit them
Sent from my LG-E971 using xda app-developers app
trincisor said:
For what it is worth I find the software keys more ergonomic
The hardware keys on this phone are to low and causes strain to hit them
Sent from my LG-E971 using xda app-developers app
Click to expand...
Click to collapse
That's how I feel its in the right spot. The hw keys are too low.
Sent from my LG-E970 using xda premium
it works thanks but is there any way you can make the navigation bar smaller. i think it takes too much screen
You have to change values in framework-res.apk
Sent from my GT-I9100 using xda premium
---------- Post added at 04:08 PM ---------- Previous post was at 04:07 PM ----------
phillip_viado said:
it works thanks but is there any way you can make the navigation bar smaller. i think it takes too much screen
Click to expand...
Click to collapse
Sent from my GT-I9100 using xda premium
How do I do it though?
this worked out good for me because my back button stopped working but the problem i have now is my camera freezes and crashes or acts like it takes a picture but doesnt save an image does anyone else have this problem
Thanks for the tip!
Would this work on ics?
Sent from my LG-E975 using xda app-developers app
how to turn off the lights hardware keys?
Its work to disable hw keys but the lights not turn off..
Sent from my LG-E975 using xda premium
HELP! I tried this and got the nexus 4 buttons working. However, once I got to the disabling hardware buttons part, it all went to hell.
I think I may have screwed up the key map file because now my phone's power button is not working.
I can't lock the phone, I can't wake the screen.
However, once I offed the phone using an app, I can turn it on using the power button, so it definitely isn't broken.
Is there a solution to this? I don't have any warrenty and I'm freaking out!!!
Oh and yes, I've done a factory reset and no that didn't solve the issue.
Please help! Thanks in advance! :crying:
kdz restore?
Sent from my LG-E975 using Tapatalk 2
kimitza said:
kdz restore?
Sent from my LG-E975 using Tapatalk 2
Click to expand...
Click to collapse
Yeah that's what I'm trying to avoid... The process seems really risky and the instructions are not very clear..
The menu key brings up task manager is there a way to change that?
jwade0825 said:
The menu key brings up task manager is there a way to change that?
Click to expand...
Click to collapse
Should be possible by editing duno what files in system/usr/keylayout folder.
Quantity not too big, so try find yourself...
On RootBox I only needed to comment out 158, 172 and 139 (by putting a "#" in front) on keypad_8064.kl
I have the At&t version of Optimus G E970, I think this will work for any Optimus G.
Not responsible for bricked phones.
This is a mod how to enable navigation bar(on screen buttons) , its very simple and easy...
To edit build.prop, on root explorer navigate to system press and hold on build.prop and open in text editor.
Add the following line at the end of build.prop file
qemu.hw.mainkeys=0
now on reboot we will have nav-bar like on nexus 4
To disable hardware keys, I used root explorer go to system/usr/keylayout click and hold on kaypad.nl and choose from menu open in text editor and 139,158,172 edit the home to hom and do the same on all 3 lines and hit save and reboot,
Plus I went and deleted all the 139, 158, 172 lines from external_kbd.kl, Generic.kl, MHLRCP.kl, osp3-input.kl and qwerty.kl. I dont know if that helps because I deleted them first then edited the lines in kaypad.nl.
Sent from my LG-E970 using xda premium
Why would I want to do this??
Sent from my LG-LS970 using xda premium
mrjasenr said:
Why would I want to do this??
Sent from my LG-LS970 using xda premium
Click to expand...
Click to collapse
Why would you discourage people from being helpful? If it is not your cup of tea, read and move on.
Sent from my Transformer Prime TF201 using Tapatalk HD
epeereboom said:
Why would you discourage people from being helpful? If it is not your cup of tea, read and move on.
Sent from my Transformer Prime TF201 using Tapatalk HD
Click to expand...
Click to collapse
I'm sorry, you misunderstood. I mean why? As in how would it benefit me. I wasn't being a d*ck. Like I want to know how it is of benefit vs. Hw keys.
Sent from my LG-LS970 using xda premium
mrjasenr said:
I'm sorry, you misunderstood. I mean why? As in how would it benefit me. I wasn't being a d*ck. Like I want to know how it is of benefit vs. Hw keys.
Sent from my LG-LS970 using xda premium
Click to expand...
Click to collapse
My apologies. I think it is more for aestetics.
Sent from my Transformer Prime TF201 using Tapatalk HD
Build.prop in system?
Never mind, got it
Sent from my LG-LS970 using xda app-developers app
Can someone post a picture of build.prop of where the line is supposed to be at? This may be a silly question but I'm new to root, and I really wanna get a nexus 4 feel to my LGOG.
wewooo said:
Can someone post a picture of build.prop of where the line is supposed to be at? This may be a silly question but I'm new to root, and I really wanna get a nexus 4 feel to my LGOG.
Click to expand...
Click to collapse
You just add a separate line to the bottom. Just a new line below everything that reads "qemu.hw.mainkeys=0"
Sent from my LG-LS970 using xda app-developers app
easytheezy said:
You just add a separate line to the bottom. Just a new line below everything that reads "qemu.hw.mainkeys=0"
Sent from my LG-LS970 using xda app-developers app
Click to expand...
Click to collapse
Like right under the last line which is Davik.vm.stack?
EDIT: Nvm got it, but the only problem is that the stock launcher
and keyboard don't have the right resolution.
How does one edit the build.prop?
Never mind! Got it
Sent from my LG-LS970 using Tapatalk 2
The easiest way to disable the default navigation buttons is by going to
system/usr/keylayout/keypad_8064.kl When you open the file you'll find
key 158 BACK VIRTUAL
key 172 HOME VIRTUAL
key 139 MENU VIRTUAL
add a # in the begging of each one like
#key 158 BACK VIRTUAL
#key 172 HOME VIRTUAL
#key 139 MENU VIRTUAL
Reboot and they should be disabled, but the buttons still light up. To fix this go the settings/display/front key light Then uncheck
Turn on Front Key Light.
wewooo said:
The easiest way to disable the default navigation buttons is by going to
system/usr/keylayout/keypad_8064.kl When you open the file you'll find
key 158 BACK VIRTUAL
key 172 HOME VIRTUAL
key 139 MENU VIRTUAL
add a # in the begging of each one like
#key 158 BACK VIRTUAL
#key 172 HOME VIRTUAL
#key 139 MENU VIRTUAL
Reboot and they should be disabled, but the buttons still light up. To fix this go the settings/display/front key light Then uncheck
Turn on Front Key Light.
Click to expand...
Click to collapse
This did the trick for the hard ware keys, now all I have is the soft keys
Sent From my "Slick" Optimus G
Odd, when I do this I cant pull the notification bar down ad the notifications show. It still shows the icons in the top bar. but not when I pull it down?
Also noticed that when I reboot my phone the first notification I get shows up normally, then they stop showing. It notifys me and everything, just cant pull down the blind to access them.
Also noticed that my menu button isnt integrated with the menu bar at the bottom. Ideas on how to do this?
Afteraffekt said:
Odd, when I do this I cant pull the notification bar down ad the notifications show. It still shows the icons in the top bar. but not when I pull it down?
Also noticed that when I reboot my phone the first notification I get shows up normally, then they stop showing. It notifys me and everything, just cant pull down the blind to access them.
Also noticed that my menu button isnt integrated with the menu bar at the bottom. Ideas on how to do this?
Click to expand...
Click to collapse
I can't answer the notification issue, but I believe for the menu button a lot of apps have a built in menu button (usually in an action bar on the top right) now that they display (it is more of a tablet display, but given the resolution it probably still shows up that way).
You can still get to the menu in apps right?
Would there be anyway to disable the softkeys while the lockscreen is on? Because with stock lg lockscreen, it jus shows a black bar
Sent from my LG-LS970 using xda premium
kayslay21 said:
Would there be anyway to disable the softkeys while the lockscreen is on? Because with stock lg lockscreen, it jus shows a black bar
Sent from my LG-LS970 using xda premium
Click to expand...
Click to collapse
That is how it is on my JB tablet with onscreen buttons, I think that is just how it works, but I could be wrong.
How hard is it to make this into a flash able ZIP?
Sent from my LG-LS970 using xda premium
_Epic said:
How hard is it to make this into a flash able ZIP?
Sent from my LG-LS970 using xda premium
Click to expand...
Click to collapse
They have it on the att forum, a zip to enable and one to disable, im pretty sure it'll probably work on our phones too
Sent from my LG-LS970 using xda premium
kayslay21 said:
They have it on the att forum, a zip to enable and one to disable, im pretty sure it'll probably work on our phones too
Sent from my LG-LS970 using xda premium
Click to expand...
Click to collapse
I'll be the test dummy and let y'all know.
EDIT: Don't flash the ZIP, kills the whole alignment of the icons and widgets.
Sent from my LG-LS970 using xda premium
_Epic said:
I'll be the test dummy and let y'all know.
EDIT: Don't flash the ZIP, kills the whole alignment of the icons and widgets.
Sent from my LG-LS970 using xda premium
Click to expand...
Click to collapse
Are you using stock lg launcher? They said it messes that all up unless your using a different one like nova or apex
Sent from my LG-LS970 using xda premium
Is this possible?
lee714 said:
Is this possible?
Click to expand...
Click to collapse
Anything is possible. If you wanted to add a full size dish antenna to your phone, it is possible. If you wanted a 800mm telephoto lens on your phone, it is possible.
More info?
Are you asking if you can change which actions occur when pressing the hardware keys.
IE: Menu is home, home is back, back is search, search is menu?
Sent from my Slim E4GT using xda premium
Mattix724 said:
Are you asking if you can change which actions occur when pressing the hardware keys.
IE: Menu is home, home is back, back is search, search is menu?
Sent from my Slim E4GT using xda premium
Click to expand...
Click to collapse
yes!
lee714 said:
yes!
Click to expand...
Click to collapse
Go on setting/system/hardware keys if using ROMs that have cm10 in it.
Sent from my SPH-D710 using xda premium
lee714 said:
yes!
Click to expand...
Click to collapse
I read a thread that enabled me to go in and disable the keys in the usr folder using a text editor. Was having serious ghosting issues and wanted to try something new. I would think it would be possible to change the usr key character code to execute whatever you want it to do, or am I way off base here? Just my thoughts. Just do a backup and give it a shot!
Sent from my SPH-D710 using xda premium
jdsingle76 said:
I read a thread that enabled me to go in and disable the keys in the usr folder using a text editor. Was having serious ghosting issues and wanted to try something new. I would think it would be possible to change the usr key character code to execute whatever you want it to do, or am I way off base here? Just my thoughts. Just do a backup and give it a shot!
Sent from my SPH-D710 using xda premium
Click to expand...
Click to collapse
Yes you could remap keys in the sec/keylayout files. If you just want the same 4 but rearranged then just move the target around in the existing file. If you want other commands it'll be a bit more tricky since you'll need to locate the execution command for the new target which can involve decompiling the apk and searching the trigger word for the app you want called.
☆SoA: Son's of Android™☆
I like to break stuff!
Oddly enough, I just updated my androidforums guide on how to do exactly this immediately before finding your thread right here.... so I have copied my tutorial to a thread in this forum. Please check it out:
[GUIDE] [UPDATED] Phantom menu keypress EASY FIX!!! (with NO-FLASH ROOT instructions)