Volume key wake - Sony Xperia M2

hello, can you know which file in system / usr / keylayout to edit the volume buttons to wake tel? I know that just add to wake in line with the volume but it occurs in several files. just do not write that you can do in gravity box or similar, sry 4 my eng

Related

[Q] volume key wake??

Anyone know the build.prop tweak for waking the phone with volume keys?

[Q] Galaxy S2 Power Button Failure

My sprint epic power button failed and I am trying to fix it by moving the function of the power key to the volume up or down key and setting the power key function to null. I have several questions on how to do this.
1. I know that I will have to gain root access but is there a way to do this without installing a custom kernel?
2. If i do end up having to root hte thing how do I get into download mode if the power key is not working?
3. My current /system/usr/keylayout/ has several files in it and am I right to assume that I should be editing the gpio-keys.kl file?
4. Is the 116 button assigned the power button value and 115 volume up?
5. Currently the file looks like this
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
key 116 POWER WAKE
so if i edited it to something like
key 115 POWER WAKE
key 114 VOLUME_DOWN WAKE
key 116
would it still work? I want to leave the power key funciton blank as it looks like it is stuck and I dont want it to get stuck performing volume up the whole time.
That is all. Any help would be extremely appreciated by me and as you can see I am new to this whole process so if you have any pointers or better ways of doing this I would be extremely grateful for any input.
Bump
Bump
sacaAf unto
Any suggestions would def help

[Q] Enable volume keys to wake device?

Could someone assist me in enabling the volume keys to wake the screen?
I have root access and tried this method:
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.
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=2484185
And I changed
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
in both files and rebooted.
But it did not work. I noticed this while I was searching: https://github.com/SomethingExplosi...mmit/d18879528bc4de75d03620ee7636acd404bfcdf9
Does WAKE_DROPPED mean anything?
Edit: WAKE_DROPPED apparent means to turn the screen on and forget the keypress.
What's odd is that many of the keylayout .kl files already have VOLUME_UP WAKE already...

Lock the device on longpress vol down

Hi all
I made some searches but didn't find any answer, hope some of you could help me.
I want to edit the system/usr/keylayout/device-keypad.kl to make my device go to sleep when screen on & longpress vol down.
Here is the original file content :
Code:
key 116 POWER WAKE_DROPPED
key 114 VOLUME_DOWN WAKE
key 115 VOLUME_UP WAKE
In fact, I don't know the keycode and keyevent name of a vol down longpress.
Can someone know this ? Or at least how to get it ? (Already tried KeyCode Display but it doesn't work as expected).
NB : I already tried Xposed Additions module, and it made the job quite well (device goes to sleep when longpress the right key), but all other keys seems to be messed up (double vibrate, sometimes some keys doesn't even work) so I decided not to use this module anymore and make it manually by editing the right file.
Thx for reading

Headset volume button not working [Oppo x9009/R9/F1 Plus and probably all other]

Oppo R9 detects headset volume down button as volume up
I have checked the .kl files in /system/usr/keylayout/ and they are alright. Specifically, generic.kl has:
key 114 VOLUME_DOWN
key 115 VOLUME_UP
which is the standard in Android...
I modified keys 114 and 115 on generic.kl, but it did not change anything. (meaning ColorOS does not care about /system/usr/keylayout/generic.kl )
I then tried to freeze a bunch of system apps that could interfere with the headset (music, voice assistance, etc...) but that changed nothing either, volume down still detected as volume up.
using Key Test app and pressing headset volume down key:
keyCode=KEYCODE_VOLUME_UP,scancode=115
Any hint on how to fix this bug? Thanks

Categories

Resources