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

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

Related

Volume up/down don't work correctly anymore

Hi,
My Touch Pro's volume buttons suddently aren't working correctly anymore. When I press one of the buttons, the volume screen is displayed correctly, but when i press the volume up/down key, the volume doesn't go up/down, instead it works as an arrow up/down on the currently running program.
What can I do to restore the volume keys function?
/Carl
Bump - no one with an idea?
Sounds like you have remapped its function either with a mapping app, tweaker or reg edit. Basically undo what you did to get back to "normal" operation.

[Q] Remap Buttons?

Hello,
I have a friend with a Droid 2 and their power button is on the way out. Is there a way to remap the camera button to be the power button?
I have tried editing the "cdma_droid2-keypad.kl" file, but it doesn't seem to change anything...
Code:
key 116 POWER GRAVE
key 211 FOCUS POWER WAKE
key 212 CAMERA POWER WAKE
does this code look correct? I just can't seem to get it to change anything. After pushing the file it doesn't change the button behavior at all.
They are rooted and on CM7

[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

Categories

Resources