wiki/help/android/fix_gamepad_bluetooth_lag.md

1.9 KiB

I just got myself a powerA bluetooth gamecube controller for the nintendo switch, and I wanted to use it with my new oneplus 7 pro to play dolphin.

The thing is that button mapping for switch pro controllers is now part of android 10, but I still had that horrible 1sec latency from the phone, making it unusable.

I looked for a few days online, finding solutions that required you to modify bluetooth lib files, but nothing for android 10 that was working on oneplus phones.

I finally found it on GBATemp, posted by Dracker on a post about Joycons lag.

You need your phone to be rooted, so you can access system files.

  1. Get a root file manager, I personally used Root File Manager: https://play.google.com/store/apps/details?id=com.acr.rootfilemanager

  2. Get a Hex editor, i used HEX Editor: https://play.google.com/store/apps/details?id=com.myprog.hexedit

  3. With the file manager, navigate to /System/lib64/ and copy the file named libbluetooth_qti.so.

  4. Paste it to another location on your regular storage, that will be your backup file in case you mess up. DO NOT MODIFY IT.

  5. Shutdown bluetooth. Open HEX Editor, Go to settings -> Root options and activate root mode. Close the app and open it again, you will be asked for root permission. Now choose internal storage and go back to /System/lib64 and open libbluetooth_qti.so.

  6. Click the magnifying glass and search for 09648052 (Be sure that you are looking for "Hex fragment".)

  7. It should get highlighted. Click the 64 from 09648053 and use the pen button from the bottom to modify it with 00.

  8. Check that it is correctly modified, and then close everything.

  9. Turn on bluetooth and connect that laggy controller, should work fine!

That might work on other Android 10 phones, or other oneplus phones, I cannot test it, if someone gets it to work somewhere else, post it here :)

Source: https://gbatemp.net/threads/android-joycon-lag.469485/page-6