What do I need to do to enable wake by volume buttons?
With other devices editing correct keylayout file in /system/usr/keylayout/ has done the job.
I have tried to add WAKE after VOLUME UP and VOLUME DOWN in every layout file, but still can't get it to work.
Any advice?
Found a solution. Xposed module called "Xposed Additions" did the job.
Related
hey I read this article about changing the key value of "search" key to "power".
According to the auther, the file /sysstem/usr/keylayout/qwerty.kl is to change. But his device is an HTC with certain ROM.
I'm wondering which file is to change for Defy, and which two key values are to change in order to achieve replacing the power key for both "long press" and "press" actions.
Plz help
firstly thanks to kenjilucas19 for finding this
CAUTION:- 1. the button you will make virtual can not be used on lockscreen
2. do not use this for power button else you will not be able to wake up your screen
you will need root for this
1. open any file manager with root access
2. go to /system/usr/keylayout
3. open aries-keypad.kl with text editor
4. change the word WAKE with VIRTUAL
5. save the file and reboot
you are done
it was done originally on galaxy mini, thread link:- http://forum.xda-developers.com/showthread.php?t=1667694
Its usr, not use .
sorry my keyboard app auto correct words
Hi,
Just had navbar (with soft key) editing build.prop but I can't disable hardkey even by editing /system/usr/keylayout/Generic.kl
Did someone found a way ?
Thanks
You would need for someone to develop a custom kernel to disable that. Atleast thats how it is on the galaxy tab s
OK I solve that. You need to disable key number 158 and key number 254 in /system/usr/keylayout/Generic.kl file.
The CM devs are unable to include this functionality for our device (it is against CM design guidelines to enable soft keys, because zenfone's hard keys are not backlit and therefore cannot be hidden), so I thought I'd share my findings on a simple method to do it yourself.
(Disclaimer: while this does not involve anything difficult, you do have to make minor changes to important system files. Please proceed with caution and at your own risk. I cannot be held responsible for any problems that may result in following this guide.)
First, open the CM file manager and if you haven't done so already, give it root access (open the sidebar, press the gear icon at the bottom, then open "general settings" and scroll down to "advanced" and you'll find "Access Mode", which you set to root access).
To enable soft keys:
Use the file manager to navigate to the system folder, where you'll find the build.prop file. Tap it and select to use editor to open it. Then scroll down to the end of the file and add this line:
qemu.hw.mainkeys=0
Then click the disk icon up top to save the edited file. Reboot your device and you should have the soft keys.
If you want to turn them off temporarily just open the build.prop file again and add a # in front of qemu.hw.mainkeys=0 then save and reboot.
Next, how to disable the hard capacitive keys:
Again using file manager, navigate to system-usr-keylayout. Open the ftxxxx_ts.kl file with editor. Add a # to the front of the first three lines. They should look like this:
#key 158 BACK VIRTUAL
#key 102 HOME VIRTUAL
#key 139 APP_SWITCH VIRTUAL
Now save the file and reboot your device, and the hard keys should now be disabled.
If you want to enable them again just go back to the ftxxxx_ts.kl file and remove the three # marks that you added, and as usual save and reboot.
I have not tried this on rooted stock firmware, so don't know if the method is the same. Would be good if someone on stock could try and let us know. Think you need a 3rd party file explorer (something like ES Explorer) to do it in stock?
I find the capacitive buttons hard to use so after a bit of trial and error i found a way to enable software keys and disable the capacitive buttons.
To enable software keys :-
With root file editor, edit the build.prop and add the following to the very bottom
qemu.hw.mainkeys=0
Reboot and the soft keys should now now be showing! They auto-hide as well when required.
WARNING: If you install a ROM update that changes the build prop it will disable the softkeys.
You can usually still navigate to edit the build prop again and then save and reboot though.
To disable capacitative buttons
Use root file explorer and navigate to /system/usr/keylayout
edit the mtk-tpd file and put a # in front of the lines for home, back, menu, app switch
e.g
# key 172 HOME VIRTUAL
# key 139 MENU VIRTUAL
# key 158 BACK VIRTUAL
# key 580 APP_SWITCH VIRTUAL
Reboot and the capacitive buttons no longer work!
tested working on Androium rom so far
f1ux said:
I find the capacitive buttons hard to use so after a bit of trial and error i found a way to enable software keys and disable the capacitive buttons.
To enable software keys :-
With root file editor, edit the build.prop and add the following to the very bottom
qemu.hw.mainkeys=0
Reboot and the soft keys should now now be showing! They auto-hide as well when required.
WARNING: If you install a ROM update that changes the build prop it will disable the softkeys.
You can usually still navigate to edit the build prop again and then save and reboot though.
To disable capacitative buttons
Use root file explorer and navigate to /system/usr/keylayout
edit the mtk-tpd file and put a # in front of the lines for home, back, menu, app switch
e.g
# key 172 HOME VIRTUAL
# key 139 MENU VIRTUAL
# key 158 BACK VIRTUAL
# key 580 APP_SWITCH VIRTUAL
Reboot and the capacitive buttons no longer work!
tested working on Androium rom so far
Click to expand...
Click to collapse
thanks for the tip.
please i want to know if it is possible to change the arrangement of the soft keys, possible switch the back soft key and the recent task soft keys
becleanstayclean said:
thanks for the tip.
please i want to know if it is possible to change the arrangement of the soft keys, possible switch the back soft key and the recent task soft keys
Click to expand...
Click to collapse
I haven't found a way, but I haven't looked either so far.
A quick Google says xposed can modify the nav bar