Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Headset Controls Not Working #48

Open
crxssrazr93 opened this issue Apr 7, 2019 · 4 comments
Open

Fix: Headset Controls Not Working #48

crxssrazr93 opened this issue Apr 7, 2019 · 4 comments

Comments

@crxssrazr93
Copy link

crxssrazr93 commented Apr 7, 2019

The Problem: The Volume Up and Volume Down Keys of my Headset; Xiaomi Earphone Mi Hybrid Pro HD 2, did not work on my Redmi 5 Plus build.

Using KeyTest App, I identified that the keys were not mapped to any function.

How to fix;

In /system/usr/keylayout/Generic.kl

Change:

key 257   BUTTON_2
key 258   BUTTON_3

To

#key 257   BUTTON_2
#key 258   BUTTON_3
key 257   VOLUME_UP
key 258   VOLUME_DOWN

Save and reboot.

Should work here after.

@crxssrazr93
Copy link
Author

@crxssrazr93 Isn't this device related
No as I checked the base keylayout files and did not find any with those mappings so it shipped right into device roms.

@simrat39
Copy link

simrat39 commented Apr 7, 2019

Nah I was asking since you opened the issue in fw_b and I didn't mean to comment here anyways , it was supposed to be in telegram 😅

@crxssrazr93
Copy link
Author

fw_b

Lol I opened here since it is related to fw_b itself.

@simrat39
Copy link

simrat39 commented Apr 7, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants