yashsingh1/xdaforums huggingface dataset:
[Android General] x_berzerker:
SIXAXIS on MTK6577 (MT6620/6628 bluetooth chip)

Guys, i know in this forum we have rookies and experts. this post is from a rookie to other non android dev users.

please let me tell what i think after all research about the subject:

- sixaxis needs a /system/lib/libbt-hci.so file, which is not present on mtk6577 roms, raising the "Could not load HCI library" like in attached screenshot

- so if you copy any other bluetooth related .so as the file mentioned above (as any noob like me would try), the file is found, although incorrect. So the error becomes "Could not find bluetooth interface in library" like in attached screenshot

- Since i heard that CM10 roms supports sixaxis, maybe we should follow the following steps:

1. Find CM10 build for a phone with bluetooth chips MT6620/MT6628 (my NEOBOX TUNA mtk6577 says MT6620), or in the last case use the file from any other cm10 build.

2. Take /system/lib/libbt-hci.so, probably there will be one, and test sixaxis using it on our roms.

3. Repeat the above steps with different libbt-hci.so files.

4. Tell all the advance here until someone reach the goal, or some expert embrace our cause.

Sorry for any mistake, just trying to point a direction, since i am seeing so few support for phones with this chip.

---EDIT----

My friend Andy (idk his nick@xda) provided me an update.zip to enable HCI on these phones, allowing sixaxis to run properly. but since my controller (paired properly, and tested on my motorola quench) did not connected, we have to check what else is missing.

i checked that bt icon did not appeared in the top bar, so i am afraid these libs are not turning bluetooth on properly, just a thought.

so, if somebody could test these files and tell the result i would greatly appreciate.

good luck to us all, so we will be able to play snes, psx and other classics on our phones and die smiling.
[Android General] christof666:
Hey, I have a MTK6589 device that had the same problem as your's, and I just tested your HCI installer, and reached the exact same result, it seems to work fine, says that is listening to devices but it won't connect to my controller (bluetooth address properly set with the address shown in the app). Also no BT icon on the top bar here :(
[Android General] hajiborojobo:
yes, if anybody have time to fix on legendary mtk6589, i supp $ and respect
[Android General] gjimenez:
Android 4.3 google edition

Hi guys I have good news.

I installed android 4.3 Google edition for HTC one and now USB otg works by default and sixaxis controller with Bluetooth works as well.

As 4.3 introduce a new Bluetooth 4 LE driver it looks like HTC is using it. I'm really happy with this and not having to install custom kernels and any other modification.

This is the thread for the conversion to 4.3 http://xdaforums.com/showthread.php?t=2358781
[Android General] michael13162:
This thread needs more love. Does anyone know if this asp will work with the 2012 nexus 7 running 4.3? It should be the same driver that HTC is using.

I've tried a fake controller on the nexus 7 running cm10.1.2 and it doesn't work. It also doesn't work on stock 4.3 but that might be because it's a fake.

How do you tell if the fake is a gasia???
[Android General] x_berzerker:
i keep checking this forum everyday, hoping to find some news about mtk phones. so sad that it seems that nobody is working on it.
[Android General] michael13162:
I have confirmed that my controller is a fake made by Gasia. I'm running cm10.1.2 on a rooted nexus 7 first generation. Do why isn't it working? Here's a screenshot of the dmseg output. Yup, it's Gasia.

It tries to use connection type 1 but hangs at the listening for controllers part. I'm seriously getting desperate here. This was the only reason I even rooted my nexus.

Anyone that can help will by GREATLY appreciated! Thanks!
[Android General] michael13162:
It is confirmed working with an original controller so its definetly my fakes fault. So even though its a gasia, it still doesn't work. Oh well....
[Android General] TingTingin:
ps3 controller wont turn on when i press ps button tried charging on pc i dont have a ps3 to test there all i wanna know is will a otg cable fix this im getting one later this week so it doesnt matter all that much
[Android General] aeriobi:
Im also an MT6577 device user, it would be great if we can use PS3 controller on our device, even though it is cheap :(

Dev, please solve this problem :(
[Android General] fma965:
Im using a geniatech atv1200 (well technically its a sumvision cyclone but thats a clone of the geniatech atv1200 and its even running atv1200 firmware) and am getting stuck at "Attempting connection type 2..." Any ideas?

EDIT: got further now its on "listening for controllers" but it won't find my controller which afaik is official.

EDIT2: working on my xperia play though so its obviously something different with the geniatech atv1200 (sumvision cyclone android x2)

And ofcourse i have set the mac to match the bt adapter :)

i am capable of building modules so what modules do i need to make connection type 1 work?

Here is hid-sony.ko for "3.0.8-g525c782"

https://www.dropbox.com/s/pgpf4un1nbzrmol/hid-sony.ko
[Android General] Redcherry:
Hello,

I've got a problem with your app. When i plugged my unofficial ps3 wireless controller with your app, only dead trigger and protoxyde worked. I create profile but it's don't work. Can you help me?

PS: My controller is pluged on my nexus 7 all the time. Does i have to pair? This really surprised me because my controller haven't got bluetooth option. Thanks.

Envoyé depuis mon googlephone
[Android General] cheuslacerda:
anybody know how can connect fake sixaxis?
[Android General] Redcherry:
Yes with USB/BT joystick center ;)

Envoyé depuis mon Nexus 7 en utilisant Tapatalk 4
[Android General] kahuna028:
Getting Segmentation faults...
[Android General] mihhru:
Again about MTK65xx

Unfortunately, I am the owner of the device on MTK6575. Like so many others:

Couln't load HCI library

Error.

I have the original controller. I want to buy the program, but it does not work on my device. :(
[Android General] x_berzerker:
your mac is being showed on the bottom? if not, you can install this zip on page 135

http://xdaforums.com/attachment.php?attachmentid=2137604&d=1374593866

this will get you past mentioned error, but it is far from being a solution.

you will get ~listening for devices~ message, but your bluetooth will apparently be off.

just test and see what you get!
[Android General] omarrana:
hello

I tried your method it says listening for controller but it never connects.damn this mtk chip
[Android General] sir_earl:
Hi guys, I'd like to add support for the MTK chipsets that appear to be getting more popular, but I need a device to reverse engineer, debug and test with. I'd prefer to find a cheap device, such as a TV stick that exhibits the issue, so if any of you know of any such cheap hardware, please let me know.
[Android General] onthebridge:
Nice to hear that from you sir_earl, if i am not wrong mtk chipsets are not used in tv sticks, but instead widely used in phones. A good example would be the Jiayu G2, a fairly cheap phone with dualcore and 512 mb or 1 gb of ram. Hope that helps you!
[Android General] copystring:
I've tried the latest version today and I was pleased and surprised that the controller got detected by Asphalt 8 as the moga controller. It works well apart from the analog stick used for steering. It isn't analog at all. It works more like a button for left and right. Is there anything I can do? Seems to be an issue of the app though.
[Android General] x_berzerker:
oh god i cant believe this is true! i bought a neobox tuna mtk6577, sixaxis app and even a gameklip acessory.

tried a lot of things since then but still got no luck.

please [MENTION=4183459]sir_earl[/MENTION], if we can help somehow please let us know!
[Android General] raylgo:
My Droid Bionic with Avatar ROM on 4.2.1 can't seem to connect to the controller. I have changed the MAC address the controller seeks, I have checked with Six Axis Controller Compatibility, and have the newest version (0.7.0? ) but every time I press start it just says listening for controllers and it never connects. The controller flashes its 4 lights but never connects.

Can't be the controller since I have used it on my Nexus 7 2012 with zero problems... Does a different kernel help?
[Android General] Djaxar:
Maybe

Gesendet von meinem GT-I9300 mit Tapatalk
[Android General] sir_earl:
Just a quick update - I've found a little time to work on the 'Listening for controllers' (but never connecting) issue, and have been able to reproduce the issue on my old HTC Desire running CM 10.2, so with any luck I'll be able to figure out why the stack isn't accepting any connections. No promises at this stage, but having a device with a reproducible problem is usually 80% of the way toward a solution.

As a side note, if I can fix this, it will presumably allow the MTK devices to work using the bluetooth module posted earlier.
[Android General] sir_earl:
Ok, I think I've figured out a solution to the issue of getting stuck at 'Listening for controllers' (although this may break compatibility with other devices, so testing will be required, and a way of switching between modes may be necessary, as it is controlled by a compiler flag).

Anyone with this issue is encouraged to test out the attached version of the compatibility checker to see if it resolves the issue - the more reports I get, the better. It would also be interesting to see if the attached apk works alright on devices that do not have the issue, so feel free to try it out and let me know how it goes.

For those technically inclined, the fix was to enable LPM (low power mode) on the bluetooth chip, which apparently seems to be required on some chips. I'd be curious to know whether LPM mode affects responsiveness of input in any way - with any luck it will not!
[Android General] x_berzerker:
Kested this new checker on my mtk6577 with same "listening" problem, just for peace of mind. No go.

Keeps listening but never detects, not even shows bluetooth icon on top bar.
[Android General] sir_earl:
That's a pity - now I still need an MTK device for debugging! Any chance you can send me a logcat output after starting the latest app? Has the bluetooth lib your friend compiled been confirmed to work with any other devices?

P.S. It is normal that the bluetooth icon does not show in the taskbar, because the bluetooth stack is being used without Android knowing.
[Android General] x_berzerker:
Before using the lib my friend compiled, there were no bt address on the bottom, and all methods used to fail. After installing the libs, the address showed up, and method 1 started to advance to ~listening~ state.

It was not tested on any device except mine actually. That is the closer to any progress we got so far.

I can send the logcat, but i dont know how to make a clean one.

Whenever i run logcat (i already know how to do it via adb or terminal) i get so many lines that i simply miss what i want to log.

Please teach how to create an useful logcat.

best regards.
[Android General] sir_earl:
You can clear the log with 'logcat -c', but it doesn't matter if it's 100 pages long really - I'll find what I need :)

The easiest way is probably just to use an app from Google Play called 'Cat Log', which will generate the logs and email them to you I believe.
[Android General] x_berzerker:
mtk new checker logs

in the meantime i was creating the logs the way i used to do, -v long.

There are two logs: BEFORE installing libs, and AFTER installing libs.

note that i cleaned the data of checker app so that it could restart process from the beginning.

hope it helps. crossing fingers.
[Android General] sir_earl:
Can you run this version and let me know what output you get within the app? I've jut enabled a few debugging messages.
[Android General] x_berzerker:
here we go:
[Android General] sir_earl:
As I suspected, the preload is failing, which most likely means the firmware isn't being loaded correctly. I took a look in the HCI libraries you posted, and it appears they're for a broadcom chipset. For the libraries to work, they're going to need to be written specifically for the MTK chipset. So the only remaining options are either waiting for someone to write the bluetooth libraries for the MTK chipset (probably someone getting Cyanogenmod working on an MTK device), or I write another connection method specifically for the MTK bluetooth stack.

I've found a couple of cheap (ish) MTK phones on our local online auction site, so hopefully I can got hold of one for reverse engineering soon.
[Android General] x_berzerker:
Man i really want to help you on helping us. If there is something else i can do, like bricking my phone sometimes on testing, just let me know,
[Android General] zyto74:
lenovo s6000

Anyway to get this working on my s6000 10.1
[Android General] Mysterion1:
Works like a charm on my LG Optimus 4X HD! I had no problems in configuring everything. Thanks a lot!
[Android General] cash_back:
Same for me, I dont have psx4droid, but I know it doesn't work in FPse.
[Android General] sir_earl:
Just to be sure, has anyone used the DualShock 3 controller successfully? Just hoping to narrow the field a little.
[Android General] sir_earl:
Also, can I get confirmation from anyone who can't get the Square, Circle, Cross and Triangle buttons to work that the key presses don't show up in the Sixaxis Compatibility Checker app also?
[Android General] cash_back:
Im on droid x2 and all the buttons work on compatibility checker but only some of the dpad buttons work in psx4droid, and no other emulators, Dualshock3 sixaxis
[Android General] sir_earl:
Just tried with psx4droid and was able to make it work by enabling Settings -> User Settings -> Use input method.

It is the same with the other *oid emulators. In them, I believe it's Settings -> Other Settings -> Use input method.
[Android General] jiro711:
Works in Samsung Galaxy Mini :)) Although I have yet to configure it for any game/emulator.
[Android General] wyldstallyn:
on droid x2, with these setting checked, occasionally the dpad will work but nothing else... and in psx4droid only. (ive also tired with snes n64 genesis and fpse - all do nothing) but all buttons register in sixaxis app.

thanks for your work on this!

tried with sixaxis and dualshock3 originals
[Android General] tinglez:
Hi guys,

I got the comparability tool and it gave me the go ahead saying it was compatible. Paired on my computer with no troubles.

I followed the steps in a previous post ( thanks!) and it says connection established without any problems, but the lights on my controller still don't sync to 1 port, they just continue flashing then turn off...

I'm on a rooted galaxy tab 10.1v, and as far as I can tell there wasn't any issues in setup, but still doesn't want to do the final syncing.

Any ideas??
[Android General] holysec:
First of all: Great stuff ;)

Working on SGS II with MIUI Rom.

However, managed to move around the Character in Zenonia3, but unfortunately i am not able to do any other action ;)

Would be great if you could control PES 2011 :D

any suggestions? :)
[Android General] Fr0stbyteX:
Just installed this yesterday, great app! I was almost ready to buy a Wii Classic Controller, but hated how you had to run a cable to another controller for it to work. Glad I found this instead. Works perfect for Snes9x EX on a Samsung Vibrant (with CM7) with a DualShock 3. (although I did tweak the key mappings a bit). I used sixpair on Ubuntu to get it paired up.

Thanks for the great work, can't wait to see what you do in future updates!
[Android General] arcmanov:
Doesn't work on my Samsung Galaxy S GT-I9000 (running Darkys ROM).

Real bummer though. :( Android Market said it was compatible.
[Android General] equlizer:
try MIUI or CM7.

I always go back to CM7 after trying other roms;)
[Android General] dbzfanatic:
Couldn't connect at first but after checking the buttons with the compatibility version it started working out of the blue. Great app! Working fine with myTouch 3G Slide and CM7.
[Android General] tinglez:
Has anyone got this working with a Galaxy Tab 10.1 / 10.1v?

I still can't seem to get it to sync properly. There aren't any issues or errors, but it just won't connect to a controller port, even though the app says it's got a connection established with 1 client.

halp anyone?
[Android General] Darkimmortal:
Same here, pity as I really wanted to try this :<
[Android General] VoodooXTC:
Same here, has anyone gotten this to work with the OG Galaxy Tab?
[Android General] joseamc91:
I have HTC HD2...but my problem is with PC.

I have drivers error in SixaxisPairTool.

It works with Win7 x64 ??
[Android General] wyldstallyn:
yes im running it on win7 x64 no problems
[Android General] razor_blade:
The compatibility app checks out for my phone, I was more than able to change the master MAC address, but now that I am trying to get them to pair, they never see each other. It just flashes forever. Inspire 4G on CM7 nightly build 150, fyi. I can occasionally see the controller in the bluetooth settings page.
[Android General] sir_earl:
I think I may have worked out the commonality between phones that are having problems with only some buttons working.

Can everyone with this problem confirm that they have a phone with hardware keys (i.e. A physical QWERTY keyboard)?
[Android General] sir_earl:
I have an MTK device on order now, so hopefully won't be long!
[Android General] x_berzerker:
can't wait to have my US$150 phone become a $99999... phone!! :victory:
[Android General] zyto74:
lenovo s6000

If you need a dump or any such just post a reply with instruction. I have full root. As well as some knowledge of what I'm doing. Still working on cm10 for this device. Seems Devs are not interested in the lenovo line. Same price as the Nexus 7 but I went for bigger. Guess bigger is not always better. Thx again if I had an otg I could just maybe plug and play.
[Android General] fabry20:
I have a problem with Sixaxis and the software.

The gamepad pairs fine and all keys work BUT analogs act strange.

They move jerky, this is is especially noticeable in GTA games, and changing Analog poll rate doesn't help.
[Android General] xtort:
ftwarn town

i need to try this
[Android General] sir_earl:
I noticed jerky movement in GTA too (sort of steppy), but I'm fairly sure I tried it via USB without the app, and saw the same thing. Other than that, it shouldn't be jerky at all. Can you describe in more detail what you mean exactly by jerky? Does this also occur when creating a touch profile with the analogs mapped?

Edit: If you're using a fake or after market controller, these tend to have much worse analog response (the ones I tried anyway), and can be slightly jerky.
[Android General] sir_earl:
My new THL W8 Beyond arrived yesterday. It's actually a pretty decent device and will be replacing my Galaxy S3 for now. It'll be much nicer once custom ROM support gets better though! Anyway - let's just say I should have something for testing very soon ;)
[Android General] sir_earl:
Good news to report. MTK devices should now be supported! This will all depend on other MTK devices using the same libraries, but everything I've seen so far indicates it's fairly standard across devices. Please try the attached compatibility checker and let me know your findings. Hopefully we can get a high compatibility rate on the first try! :)

I should also mention that if you installed the libbt_hci.so and related modules posted earlier in the thread, please be sure to remove these first, as they will stop the app from moving past connection type 1.
[Android General] hajiborojobo:
I havent gamepad at school,but app load and say device is ok,ty,i will send you some donate at home..

Odesláno z mého C2
[Android General] ismailsorku9191:
its working

heres the result on my zopo c2.

after seeing it i purchased your app from google play. when will you update it in google play.
[Android General] sir_earl:
Looks good. Did you try pressing any buttons on the controller? These button presses should show up in the output. Should have the update ready for Google Play within a couple of days. I'm hoping to get a bit more feedback too.
[Android General] ismailsorku9191:
yes buttons working too
[Android General] x_berzerker:
suck it expensive devices!!! Now we have perfect mtk phones by a quarter of the price!

ty [MENTION=4183459]sir_earl[/MENTION]!! you have no idea of how i am happy! had bought already, donating more asaic!

ty mtk, sixaxis, gameklip.com!!

...

MTK6577 on NEOBOX TUNA w/ ics 4.0.4 OK!

keep the feedback rolling dudes!
[Android General] peterhugelberg:
Thank YOU Sir Earl !!

It works excellent on my XiaoCai X9 !
[Android General] hajiborojobo:
With fake sixaxis gamepad not working :( (with pc no problem..)

Odesláno z mého C2

---------- Post added at 06:16 PM ---------- Previous post was at 06:14 PM ----------

XiaoCai is over usb otg?

Odesláno z mého C2
[Android General] peterhugelberg:
No via bluetooth

XiaoCai doesnt support USB OTG

there is an option for it but it doesnt work
[Android General] vl.maksime:
Hello.

I have Chines gamepad, image in attachment.

This gamepad works perfect on my miniPC with RK3066.

My smartphone THL v9 with MTK6575 on Android 4.0.3.

The program has received the MAC address of my Bluetooth. Gamepad was connected to smartphoone. After i pressed a few buttons controller and sixaxis server was hovered.

Logcat file in attachment.

Sorry for bad English. :o
[Android General] chronos4000:
good evening

works very well with acer a1-810

is awaiting the day to play on google

thank you to France :good:
[Android General] sir_earl:
Can you clarify what you mean by "server was hovered"? Does the controller simply disconnect, or does the server stop running completely? i.e. Can you connect the controller again without having to stop and start the server?
[Android General] zyto74:
Working on my tablet now to buy the app when it's updated thanks.
[Android General] vl.maksime:
The controller hangs up. Didn't turns off by long hold PS button, only the reset button on the controller.

After reset it doesn't connect to the server until the press the Stop button, and then Start.
[Android General] sir_earl:
Hmmm. You mentioned you tried the controller successfully on another device. Was this using the Sixaxis app, or just over USB?
[Android General] vl.maksime:
I play using SixAxis app from play market. On PC with MotionJoy its work perfect over Bluetooth too.
[Android General] sir_earl:
I see. On you MTK device, do the lights continue to blink once the controller connects, or do they change to a single solid light?
[Android General] vl.maksime:
First led changed to a single solid light.

When i press buttons on gamepad, SixAxis checker displays them on the screen, before it hangs. It hangs on a different number of clicks, from 5 to 20.
[Android General] sir_earl:
Thanks for that. Any chance you an get access to a genuine Sony controller to test whether the same issue occurs? I'm still trying to determine for sure whether bluetooth is faiing completely, or whether the fake controller is causing the problem.
[Android General] vl.maksime:
I haven't access to original PS3 gamepad. I asked users on russian forum check it on original gamepad, maybe they can help us.
[Android General] x_berzerker:
i have a controller that i believe it is genuine.

i kept pressing all the buttons for a long period. the app didn't crashed. led 1 kept solid.

after holding PS button, got controller disconnected. after pressing again got not reconnect. had to stop and start service to work again.
[Android General] vl.maksime:
I tried to connect my gamepad to another device with MTK6589, it also hangs.

Four member tested SixAxis checker on their devices, it's okay. Tested with Chinese and original gamepad.

It seems that the problem in compatibility of MTK and my gamepad.
[Android General] Bamboori:
working fine on my xiaocai x9, using a chinaware controller (unbranded) :)

cant wait for the update!