Has anyone figured out how to turn on on-screen buttons instead of using the capacitive/physical buttons? In the control center, there's option to turn on "virtual button" and it allows you to disable the capacitive/physical buttons, but nothing shows up on the screen.
It's under accessibility
LeEco Pro3
toanau said:
It's under accessibility
LeEco Pro3
Click to expand...
Click to collapse
That only allows you to disable the hard buttons though, doesn't enable soft ones (on screen nav buttons). There's a way to enable them by default editing the build.prop but people were saying it didn't work on emui for some reason. One guy said it works fine, so I don't know. Requires root too though. No root in sight for US variants so far.
I got it working by adding qemu.hw.mainkeys=0 on build.prop.
From there, I got physical buttons to not work by modifying synaptics_dsx.kl file in /System/USR/KEYLAYOUT.
You simply put # in front of all the listed entries (e.g., # key 158 BACK VIRTUAL.)
From there, I also disabled button back light by modifying an another system file. I forgot which file it is.
After those three steps, it is as if it came with soft keys without physical buttons.
4K2K said:
I got it working by adding qemu.hw.mainkeys=0 on build.prop.
From there, I got physical buttons to not work by modifying synaptics_dsx.kl file in /System/USR/KEYLAYOUT.
You simply put # in front of all the listed entries (e.g., # key 158 BACK VIRTUAL.)
From there, I also disabled button back light by modifying an another system file. I forgot which file it is.
After those three steps, it is as if it came with soft keys without physical buttons.
Click to expand...
Click to collapse
Are you rooted? Do you have the US model?
Sent from my SM-P600 using XDA-Developers mobile app
toanau said:
Are you rooted? Do you have the US model?
Sent from my SM-P600 using XDA-Developers mobile app
Click to expand...
Click to collapse
I can answer for him lol. Yes, hes rooted, otherwise it wouldnt be possible, and no, because us model cant be rooted atm
4K2K said:
I got it working by adding qemu.hw.mainkeys=0 on build.prop.
From there, I got physical buttons to not work by modifying synaptics_dsx.kl file in /System/USR/KEYLAYOUT.
You simply put # in front of all the listed entries (e.g., # key 158 BACK VIRTUAL.)
From there, I also disabled button back light by modifying an another system file. I forgot which file it is.
After those three steps, it is as if it came with soft keys without physical buttons.
Click to expand...
Click to collapse
Please remember, I'd like to extend the button backlight time
Klara Kaiser said:
Please remember, I'd like to extend the button backlight time
Click to expand...
Click to collapse
If I understood that correctly, then you don't need to use softkeys. After the latest update, if you go to accessibility, there is an option for enabling the button backlight as long as the phone screen is on. I attached a picture clearly showing the option if it might help.
p_pal2000 said:
If I understood that correctly, then you don't need to use softkeys. After the latest update, if you go to accessibility, there is an option for enabling the button backlight as long as the phone screen is on. I attached a picture clearly showing the option if it might help.
Click to expand...
Click to collapse
Was exactly what I'm looking for, but I haven't this setting option. Are you at 5.8.0.19S? I'm still on 18S.
So I have to wait
Yep I'm on 19S. I thought all US models had gotten the update, but I forgot that this phone came out in other countries previously ( -_- ). So I suppose you just have to wait a few more days/weeks and hopefully you get the update.
4K2K said:
I got it working by adding qemu.hw.mainkeys=0 on build.prop.
From there, I got physical buttons to not work by modifying synaptics_dsx.kl file in /System/USR/KEYLAYOUT.
You simply put # in front of all the listed entries (e.g., # key 158 BACK VIRTUAL.)
From there, I also disabled button back light by modifying an another system file. I forgot which file it is.
After those three steps, it is as if it came with soft keys without physical buttons.
Click to expand...
Click to collapse
DANG...WORK FOR ME, US VERSION CONVERTED TO CHINESE AND whammmmm.:good:
THANKS A LOT.
johnkchiu said:
Has anyone figured out how to turn on on-screen buttons instead of using the capacitive/physical buttons? In the control center, there's option to turn on "virtual button" and it allows you to disable the capacitive/physical buttons, but nothing shows up on the screen.
Click to expand...
Click to collapse
Like this?
Install SimpleControl
OR you can Flash CM13 rom they have option for on screen navigation key and disable the hardware one, or you can keep the hardware as stock rom.
This rom I was using it I found it best CM13 rom by far: CM13 LEX720 by Team Superluminal
Nova Launcher also can show the software buttons
Tonnex said:
Nova Launcher also can show the software buttons
Click to expand...
Click to collapse
Where is the option in Nova Launcher? I can't find it.
4K2K said:
I got it working by adding qemu.hw.mainkeys=0 on build.prop.
From there, I got physical buttons to not work by modifying synaptics_dsx.kl file in /System/USR/KEYLAYOUT.
You simply put # in front of all the listed entries (e.g., # key 158 BACK VIRTUAL.)
From there, I also disabled button back light by modifying an another system file. I forgot which file it is.
After those three steps, it is as if it came with soft keys without physical buttons.
Click to expand...
Click to collapse
so far this worked, did you remember what file the backlight keys are controlled by?
Klara Kaiser said:
Please remember, I'd like to extend the button backlight time
Click to expand...
Click to collapse
There isn't a file. He said "he cant remember" because he is lying
The backlight controls are driven by two files in /sys/class/leds/button-backlight. Files in the /sys folder are pseudo files created at runtime from the kernal. You would need to mod the kernal to permanently turn the lights off.
Related
I know a lot of people out there are doing this already, but it didn't seem like there was a guide or anything out there for the NS. So, here we go.
(Please, make sure you know what you're doing BEFORE you apply this modification. I can't be responsible if you somehow manage to brick, or make brick-like your phone while following this guide.)
-You can do this using either adb, Terminal, or apps like Root Explorer. Since I'm trying to make this as easy as possible, I'll explain how to do this using the "File Manager" app, which can be installed via Market for FREE.
First, you need a rooted phone. If your phone is not rooted, there is extensive existing literature on how to get this done. (It's awfully easy on our Nexus S )
Run File Manager, hit Menu > More > Settings, scroll way~~ down, and make sure that "Root Explorer" and "Mount System Folders" are checked.
Navigate your way to
/system/usr/keylayout
(you'll have to move Up a step or two to find 'system' folder at root level.)
[BACKUP THE ORIGNIAL FILE WE'RE ABOUT TO MODIFY]
Long-press the file 'cypress-touchkey.kl'
Select 'Copy'
Hit 'Paste', on the upper left corner of app.
You'll be asked to rename the file. Rename it to something reasonable. (like, cypress-touchkey.kl.bakup)
Hit 'Ok'
Make sure the file you just created exists.
[START MODIFICATION]
Long-press 'cypress-touchkey.kl' (again)
Hit 'Permissions'
Make sure that ALL THREE boxed under "Write" are checked, and hit OK.
Hit 'cypress-touchkey.kl' (yet, again)
Select Text > Text Editor
Here, you'll see something like,
Code:
key 139 MENU VIRTUAL
key 102 HOME VIRTUAL
key 158 BACK VIRTUAL
key 217 SEARCH VIRTUAL
as you've guessed, the first part,
Code:
key ###
is telling which key this command (event) is for.
So we can intuitively tell that the number for our capacitive 'Back' button is probably 158.
the next section, 'MENU, HOME, BACK, SEARCH' tells Android what these buttons should actually do.
And a pretty good list of what an Android CAN do on a key-press is listed here: http://goo.gl/vrCvJ
From the list, lookup anything that starts with KEYCODE_ and you'll find a pretty good description of what that command ('event') makes Android do.
Just add this keycode, WITHOUT the KEYCODE_ part of the code, to where the current cypress-touchkey.kl reads 'MENU, HOME, BACK, SEARCH' (according to what you want which button to do, that is)
So, for example, I've remapped my 'Search' button to bring up the App Switcher (Recent Apps). (Long-pressing the Home button just didn't cut it for me )
So, my 'cypress-touchkey.kl' looks like this:
Code:
key 139 MENU VIRTUAL
key 102 HOME VIRTUAL
key 158 BACK VIRTUAL
key 217 APP_SWITCH VIRTUAL
Now, save your modified 'cypress-touchkey.kl' by selecting,
Menu > Save, and the exit by selecting Menu > Exit.
To be safe, let's set the permissions back to what they were.
From the File Manager App, long-press 'cypress-touchkey.kl' > Permissions,
and un-check the lower two check-boxes under the 'Write' column, and hit "OK"
Now, reboot your phone, and see if all went well
I actually tried this mod on a ICS rom, expecting the ICS app switcher to pop up, but somehow, the APP_SWITCH event seems to bring out the GB Recent App thingy.
Functionally, it still works pretty well for me. But if there's anyone out there who has any information on how to bring out the all-new ICS App switcher with a key-event, I'd really appreciate it
Hope this makes someone's life easier!
Thanks for the post.
I've tried to remap my search key as you described, but the APP_SWITCH command doesn't seem to work? Nothing happens for me. When I switch the value back to "search" that command works again, so I know the have edited the file correctly.
Any ideas? Does the kernel/rom affect this? I'm running oxygen + franco kernel.
Thanks!
Edit: Spelling.
Thanks for this, will definitely try out soon!
Follow the leader @corythug
Any idea what the app switch command is on ICS
Sent from my Nexus S 4G using xda premium
The ICS app-switch is, in my opinion, the best way to use search button key on Nexus S with ICS rom.
Hope someone will be able to find the correct command ot for that and someother creates a flashable zip to do the mod easily from recovery
Is there any way to remap the longpress on capacitive buttons?
Sent from my Google Nexus S using XDA App
cahir_cz said:
Is there any way to remap the longpress on capacitive buttons?
Sent from my Google Nexus S using XDA App
Click to expand...
Click to collapse
That's what were trying to figure out
Sent from my Nexus S 4G using xda premium
Thanks for the guide, I'll try it soon. My last few phones were from HTC and I love (or rather am so accustomed to) their button layout.
Sent from my Nexus S 4G using XDA App
Zorrich said:
Thanks for the post.
I've tried to remap my search key as you described, but the APP_SWITCH command doesn't seem to work? Nothing happens for me. When I switch the value back to "search" that command works again, so I know the have edited the file correctly.
Any ideas? Does the kernel/rom affect this? I'm running oxygen + franco kernel.
Thanks!
Edit: Spelling.
Click to expand...
Click to collapse
I don't think neither rom nor kernel should affect how this trick works ... unless maybe the rom dev. explicitly made changes to how the key events work ... which is highly unlikely ;;;;
are you sure you changed ONLY the key-event part? (HOME, BACK, etc.)
you shouldn't change the number that comes after the 'key' part of the script.
... I can't seem to think of any other reason this wouldn't work for you. :'(
Tried this, doesnt work on my kellmsking miui 2.8.1 with francos kernel :/ Changing the file does not change the button behaviour
olorin86 said:
I don't think neither rom nor kernel should affect how this trick works ... unless maybe the rom dev. explicitly made changes to how the key events work ... which is highly unlikely ;;;;
are you sure you changed ONLY the key-event part? (HOME, BACK, etc.)
you shouldn't change the number that comes after the 'key' part of the script.
... I can't seem to think of any other reason this wouldn't work for you. :'(
Click to expand...
Click to collapse
Yes, I've only changed the key-event to APP_SWITCH. Actually, I even tried copy/pasting your code into the file, still didn't work.
Thanks anyways. At least I now know how to do it, just have to figure out why it doesn't work, haha.
When using this the old recent apps comr up, meh.
Sent from my Nexus S using Tapatalk
we need to find the correct keyword for triggering the new ics app switch and it will be great
Anyone got a configuration to recommend to complement the ICS on screen buttons?
brrip said:
Anyone got a configuration to recommend to complement the ICS on screen buttons?
Click to expand...
Click to collapse
I tried logcat to see what happens when it's brought up but i'm not a dev, I know some code buy don't have a computer to try and implement for testing
Sent from my Nexus S 4G using xda premium
I tried alogcat from the market. It didn't show anything of worth after a key press.
Sent from my Nexus S 4G using xda premium
any news about that?
provolinoo said:
any news about that?
Click to expand...
Click to collapse
+1!!!
Sent from my Nexus S
Would be pretty sweet idd
Greenthy said:
Would be pretty sweet idd
Click to expand...
Click to collapse
Agreed, would love to get this working on ICS.
Hey guys
I was trying to make my S4 look like the Nexus.
Got the soft nav bar but couldn't find a way to disable the button lights.
http://forum.xda-developers.com/showthread.php?p=43256528
Use this app to disable button lights (lights only). Be sure to thank the Original Poster!!
jhong91 said:
Hey guys
I was trying to make my S4 look like the Nexus.
Got the soft nav bar but couldn't find a way to disable the button lights.
http://forum.xda-developers.com/showthread.php?p=43256528
Use this app to disable button lights (lights only). Be sure to thank the Original Poster!!
Click to expand...
Click to collapse
I have probably the same setup. Would be nice if we had the Touch Key Light Duration option in Settings like the S3 had (or maybe it's part of TouchWiz). That would be far easier than running another app just to turn the lights off.
I also use SoftKeyZ from the Play Store to customize the on screen buttons.
Nav bar
Can you help with how you got the nav bar? I found some links on xda, but looking for more.
Thanks
Matt
jhong91 said:
Hey guys
I was trying to make my S4 look like the Nexus.
Got the soft nav bar but couldn't find a way to disable the button lights.
http://forum.xda-developers.com/showthread.php?p=43256528
Use this app to disable button lights (lights only). Be sure to thank the Original Poster!!
Click to expand...
Click to collapse
mattalter said:
Can you help with how you got the nav bar? I found some links on xda, but looking for more.
Thanks
Matt
Click to expand...
Click to collapse
add
Make sure you're rooted.
go to a file manager that can edit text files ( I used root manager),
go to system/ and find build.prop. open it with an editor,
add the line
qemu.hw.mainkeys=0
at the bottom of your build prop, save/exit, reboot.
jhong91 said:
add
Make sure you're rooted.
go to a file manager that can edit text files ( I used root manager),
go to system/ and find build.prop. open it with an editor,
add the line
qemu.hw.mainkeys=0
at the bottom of your build prop, save/exit, reboot.
Click to expand...
Click to collapse
Yup. This is also what I did. I just used Root Explorer. A long press on the file lets you edit in a text editor.
Any idea how to disable both the menu and back key? Not just turning the backlight off but actually disabling them.
androidsavage23 said:
Any idea how to disable both the menu and back key? Not just turning the backlight off but actually disabling them.
Click to expand...
Click to collapse
System/usr/keylayout and put a # sign before the keys?
Sent from my SAMSUNG-SGH-I337 using XDA Premium 4 mobile app
Could you actually do me a huge favor and try it out? I did exactly that but I don't know if it worked see my menu and back keys are messed up so they would randomly click. Now idk if it works or not. You have to go to system/usr/keylayout and open general.kl as a text file the numbers are 139 and 158.
androidsavage23 said:
Could you actually do me a huge favor and try it out? I did exactly that but I don't know if it worked see my menu and back keys are messed up so they would randomly click. Now idk if it works or not. You have to go to system/usr/keylayout and open general.kl as a text file the numbers are 139 and 158.
Click to expand...
Click to collapse
They would be disabled... That's how you know it works. They would not function.
You do it. You asked for it. Now either do it or don't do it. Don't ask another person to test what YOU asked for.
Sent from my SAMSUNG-SGH-I337 using xda premium
Hello,
Holding down the volume up brings up quickmemo. Unfortunately I use Google Keep and was wondering if the keymapping for volume up could be changed to launch Google Keep.
You can't draw in Google keep...
Sent from my LG-D803 using Tapatalk 4
Brava27 said:
You can't draw in Google keep...
Sent from my LG-D803 using Tapatalk 4
Click to expand...
Click to collapse
When did he say you can draw. ..
Sent from my LG-D800 using Tapatalk 4
trh1341 said:
When did he say you can draw. ..
Sent from my LG-D800 using Tapatalk 4
Click to expand...
Click to collapse
lol...
I'd be curious about remapping the volume buttons also.
spinedoc said:
I'd be curious about remapping the volume buttons also.
Click to expand...
Click to collapse
Seems like there is no way right now. I'm hoping future ROM developers do implement this.
diffstyle said:
Seems like there is no way right now. I'm hoping future ROM developers do implement this.
Click to expand...
Click to collapse
I would soo love this feature
spinedoc said:
I'd be curious about remapping the volume buttons also.
Click to expand...
Click to collapse
I was able to remap the buttons (short press and long press) with the Xposed module called : Xposed Additions. It even lets you remap what they do while in sleep, and do something different when awake.
Install Root Explorer (only one I advise for this).
Root.
Go into \system\usr\keylayout
Edit generic.kl and gpio-keys.kl (I recommend taking backups first).
Find key 115 and 114 in both files.
Remap as you wish. I have mine set to Menu and Home.
Save and reboot.
V
spinedoc said:
I was able to remap the buttons (short press and long press) with the Xposed module called : Xposed Additions. It even lets you remap what they do while in sleep, and do something different when awake.
Click to expand...
Click to collapse
I tried it and mapped next/previous track to up and down volume buttons. Also mapped power button to pause and play when double tapping
vijay555 said:
Install Root Explorer (only one I advise for this).
Root.
Go into \system\usr\keylayout
Edit generic.kl and gpio-keys.kl (I recommend taking backups first).
Find key 115 and 114 in both files.
Remap as you wish. I have mine set to Menu and Home.
Save and reboot.
V
Click to expand...
Click to collapse
Is there a way to change/remap the soft Keys?
Slide said:
Is there a way to change/remap the soft Keys?
Click to expand...
Click to collapse
Not without framework mods, AFAIK, but I hate softkeys. Use AutoHideSoftKeys and get the best of both worlds.
V
vijay555 said:
Install Root Explorer (only one I advise for this).
Root.
Go into \system\usr\keylayout
Edit generic.kl and gpio-keys.kl (I recommend taking backups first).
Find key 115 and 114 in both files.
Remap as you wish. I have mine set to Menu and Home.
Save and reboot.
V
Click to expand...
Click to collapse
Very cool, but for a noob on this, any more direction? Want to change the up button to something else besides memo.
friguy3 said:
Very cool, but for a noob on this, any more direction? Want to change the up button to something else besides memo.
Click to expand...
Click to collapse
I highly recommend using xposed additions above. It is fantastic. My method it's quite universal though. You can remap any hardware key to any other although be weary of remapping your power key and losing the ability to switch on! Look through the generic doc I listed and you can see pretty much any key to remap to. 114 and 115 are the hardware keys for volume up and down. You can change them to camera, home, back or whatever.
V
vijay555 said:
I highly recommend using xposed additions above. It is fantastic. My method it's quite universal though. You can remap any hardware key to any other although be weary of remapping your power key and losing the ability to switch on! Look through the generic doc I listed and you can see pretty much any key to remap to. 114 and 115 are the hardware keys for volume up and down. You can change them to camera, home, back or whatever.
V
Click to expand...
Click to collapse
Downloaded and installed xposed but no idea what the hell im doing. lol looked in downloads but not sure whats going on...Think Ill back off now before I screw something up.
friguy3 said:
Downloaded and installed xposed but no idea what the hell im doing. lol looked in downloads but not sure whats going on...Think Ill back off now before I screw something up.
Click to expand...
Click to collapse
@Friguy, I don't want to hijack the thread, but if you're worried about messing anything up, get yourself clockwork mod or twpm installed so that you can make a full backup and restore. It gives you so much freedom!
Download xposed, find the apk and install it.
Find xposed in your apps and run that. Install the framework, and then goto downloads, find the module you want and download it. Go to modules and put a tick next to the module to enable it, and then reboot your phone to enable everything.
After that, find xposed additions in your apps and run that to configure it. My way is easier but additions gives you more flexibility.
V
vijay555 said:
@Friguy, I don't want to hijack the thread, but if you're worried about messing anything up, get yourself clockwork mod or twpm installed so that you can make a full backup and restore. It gives you so much freedom!
Download xposed, find the apk and install it.
Find xposed in your apps and run that. Install the framework, and then goto downloads, find the module you want and download it. Go to modules and put a tick next to the module to enable it, and then reboot your phone to enable everything.
After that, find xposed additions in your apps and run that to configure it. My way is easier but additions gives you more flexibility.
V
Click to expand...
Click to collapse
Oh I have twrp installed (been flashing for years my old gnex) just had no idea which thing to download. A lot said for xperia, so didn't know if it was for any phone. I'll give it a go this weekend. Thx.
Sent from my VS980 4G using Tapatalk 4
Thanks for the responses, I'll be trying out Exposed when I get the chance.
vijay555 said:
I highly recommend using xposed additions above. It is fantastic. My method it's quite universal though. You can remap any hardware key to any other although be weary of remapping your power key and losing the ability to switch on! Look through the generic doc I listed and you can see pretty much any key to remap to. 114 and 115 are the hardware keys for volume up and down. You can change them to camera, home, back or whatever.
V
Click to expand...
Click to collapse
Any way to remap the power button only when the device is on? i.e. only allow it to turn the device on, but not off.
No, you need the ability turn the phone off. if You get caught stuck our locked up you need the button combination get your phone to shut down
Sent from my LG-D800 using Tapatalk
Posted this in the T-Mo GS4 section but I've gotten no replies so I'll ask here
Basically what's happening here is that I want to use on screen nav keys. OK cool. Enabled them through Gravitybox I shut off the capacitive LEDs and was able to disable to menu and back buttons all together by editing the generic.kl file in /system/usr/ file.
Now, I'm trying to change the home buttons function to menu instead of home but it isn't working. I reboot and the button is still functioning as home.
I edited key 103 and 172 and replace MOVE_HOME with MENU WAKE_DROPPED. It isn't working.
Anyone got any ideas on what to do?
H3adru5H said:
Posted this in the T-Mo GS4 section but I've gotten no replies so I'll ask here
Basically what's happening here is that I want to use on screen nav keys. OK cool. Enabled them through Gravitybox I shut off the capacitive LEDs and was able to disable to menu and back buttons all together by editing the generic.kl file in /system/usr/ file.
Now, I'm trying to change the home buttons function to menu instead of home but it isn't working. I reboot and the button is still functioning as home.
I edited key 103 and 172 and replace MOVE_HOME with MENU WAKE_DROPPED. It isn't working.
Anyone got any ideas on what to do?
Click to expand...
Click to collapse
NEVERMIND! I figured it out.
If anyone is interested in remapping their hardware buttons, the file to edit is the gpio-keys.kl file in /system/usr/keylayout/ folder.
H3adru5H said:
NEVERMIND! I figured it out.
If anyone is interested in remapping their hardware buttons, the file to edit is the gpio-keys.kl file in /system/usr/keylayout/ folder.
Click to expand...
Click to collapse
There is XPOSED.
Then there are WANAM EXPOSED.
Press Thanks if I helped
Sent from my Samsung Galaxy S4 via XDA app.
DeepankarS said:
There is XPOSED.
Then there are WANAM EXPOSED.
Press Thanks if I helped
Sent from my Samsung Galaxy S4 via XDA app.
Click to expand...
Click to collapse
Unfortunately I'm a stock Google kind of guy so Wanam wouldn't work and gravity box has no settings to change hardware butting single press functions.
It's OK though. Editing the file I posted above works well enough.
H3adru5H said:
Unfortunately I'm a stock Google kind of guy so Wanam wouldn't work and gravity box has no settings to change hardware butting single press functions.
It's OK though. Editing the file I posted above works well enough.
Click to expand...
Click to collapse
Ohh..stock android no root you mean?
Because even I use a rooted stock rom and wanam xposed works like a charm..
Anyways to each his own ^_^
Glad you found something that might help many.
Thanks for sharing
Press Thanks if I helped
Sent from my Samsung Galaxy S4 via XDA app.
DeepankarS said:
Ohh..stock android no root you mean?
Because even I use a rooted stock rom and wanam xposed works like a charm..
Anyways to each his own ^_^
Glad you found something that might help many.
Thanks for sharing
Press Thanks if I helped
Sent from my Samsung Galaxy S4 via XDA app.
Click to expand...
Click to collapse
Oh I'm definitely rooted I'm just using a Google Edition ROM instead of TW. Thanks for your input though dude. When I was using TW Wanam worked like a charm for me too.