dimanche 24 janvier 2016

Adding gamepads support to MXQ S805 Android TV box

I recently bought an Android TV BOX from a chinese vendor for less than 30 euros. The model is the MXQ one, embedding an Amlogic S805 quad core UC under Android 4.4 (kitkat).
Board model is "m201".

Connected via HDMI to a Samsung flat screen, I can say it does the job. I can browse my LAN with the 10/100M ethernet to watch HD movies , and that is much faster than using any WIFI connection. It also supports external NTFS USB2 hard drive.
Specifications :
  • Chipset: Am logic S805 Quad-Core Cortex-A5 at 1.5GHz
  • GPU: Quad-Core Mali-450 at 600MHz+
  • FLASH: 8GB NAND FLASH / RAM: 1GB DDR3
  • USB host: 4 High speed USB 2.0,support U DISK and USB HDD
  • Card reader: SD/SDHC/MMC cards
  • High Definition video output: SD/HD max.1920×1080 pixel
  • LAN: Ethernet:10/100M, standard RJ-45 / Wireless: Built in WiFi
  • HDMI: HDMI 1.4b with CEC / AV: Support / SPDIF/IEC958: Coaxial
I have installed the Archos Video Player app from the Google market. This small piece of software is perfect for the box, and much faster and simplier than the XBMC app on Android. It allows me to browse my SMB shares with a really cool GUI, designed especially for TV.

I own 2 PC Logitech cordless rumble pad,

so I wanted to use them with MAME, to play retro-games. But no luck. The Linux kernel of the beast doesn't include any game pad drivers, so Android apps can't see them. I tested also my Xbox 360 game pad : same result.

After a full kernel recompilation, I have now full gamepad support for both Logitech and Xbox gamepads !!

Hopefully, the box is pre-rooted, so you don't have to hack it to get superuser permissions.
Drivers can be loaded as module with the "insmod" shell command, in a terminal session (use adb or a terminal Android app). You must be in su mode.
for instance:  

insmod ff-memless.ko
insmod xpad.ko
insmod hid-logitech.ko

will load Xbox gamepads support (ff-memless is the force feedback driver) + HID Logitech support.

You have to install some "keylayout" to the /system/usr/keylayout directory if you want to use the gamepad to navigate in Android menu and applications.  The kl file maps gamepad events to keys events that Android will interpret. You can edit the mapping to build you customized controls.
To copy theses files , you must remount the system partition as writeable.

I made a zip pack containing all games pads drivers as ko modules I was able to compile with the kernel,  a set of keylayout. and a script to launch modules. I recommend to unzip on the /sdcard and to not modify system/lib.  Modules can be loaded from the sdcard.

To launch modules at each boot, you can use SManager (Script manager), an app on the market, and making the sh script to be "boot" and "root".  It is the most easy and safe way.

Download here
Enjoy !!



55 commentaires:

  1. Réponses
    1. Techies Expedition: Adding Gamepads Support To Mxq S805 Android Tv Box >>>>> Download Now

      >>>>> Download Full

      Techies Expedition: Adding Gamepads Support To Mxq S805 Android Tv Box >>>>> Download LINK

      >>>>> Download Now

      Techies Expedition: Adding Gamepads Support To Mxq S805 Android Tv Box >>>>> Download Full

      >>>>> Download LINK 7q

      Supprimer
    2. Techies Expedition: Adding Gamepads Support To Mxq S805 Android Tv Box >>>>> Download Now

      >>>>> Download Full

      Techies Expedition: Adding Gamepads Support To Mxq S805 Android Tv Box >>>>> Download LINK

      >>>>> Download Now

      Techies Expedition: Adding Gamepads Support To Mxq S805 Android Tv Box >>>>> Download Full

      >>>>> Download LINK Cr

      Supprimer
  2. Hi
    Thank you for the modules.
    Could you do hid.dr.ko modules please
    Kind regards
    Stacy

    RépondreSupprimer
  3. Check your hardware : modules are for a 32 bits platform (S805only). Or, check the path...copy all .ko modules in the same directory.

    RépondreSupprimer
  4. Try with adb shell first. You must be root.

    RépondreSupprimer
  5. I have a Dual PSX Adaptor .
    Could you compile hid-pl.ko module.
    Thank you.

    RépondreSupprimer
  6. I have a SNES USB gamepad (http://tinyurl.com/gvkrpv7) would it work? Would a usb PC gamepad type playstation work? I wanted to buy this box to play emulators then saw that there wasn't bluetooth. What module should i load?

    RépondreSupprimer
  7. Some additional modules
    http://www.mediafire.com/download/70sak2bv3vs0fni/driverjoystick3.10.33.zip

    RépondreSupprimer
  8. Additional files:
    hid-pl.ko,
    hid-gaff.ko,
    and Vendor_0810_Product_0001.kl

    RépondreSupprimer
  9. for 64 bit modules go here
    http://freaktab.com/forum/tv-player-support/amlogic-based-tv-players/s802/others/14924-s802-xbox-support-installer/page12

    RépondreSupprimer
  10. Thank you so much. It works. But when playing MAME. 2 gamepad same function. If you enable autodetect, button(1.2.3.4) dont work.
    How to map keylayout.
    I have worked since 2day to it run. Now What had I to do next?

    RépondreSupprimer
    Réponses
    1. Hi,

      Could you help me to install it? I run the script but it doesn't work.

      Supprimer
  11. I cant install the modules i dont know what im i doing wrong is there any tutorial explained step by step?? I cant find anything

    RépondreSupprimer
  12. Ce commentaire a été supprimé par un administrateur du blog.

    RépondreSupprimer
  13. Thanks for all your help! Any ideas where I can get 64bit drivers for hid-logitech.ko?

    RépondreSupprimer
  14. Hi does this work on S905 im having problems with the gamepads and hoping this would help

    RépondreSupprimer
  15. You can find the S905 Xbox drivers in the link above.

    RépondreSupprimer
  16. Hello – Just got the Mad Catz for Android and works well.
    There is a real concern that the drone keeps flyng /drifting in the last direction you sent it, even when joy stick is recentered. Is there a way to fix this .
    Also, can controls be added fro android to control the camera
    https://twitter.com/latestonecom

    RépondreSupprimer
  17. Yes your 3D games graphics along with crystal clear 4K UHD video and GOSTREAMER G8 runs on Android 4.2 Kit-Kat and allows you to install and run some of the most popular Android apps direct from the Google Play Store. This box gives you everything and more with quality at affordable prices .

    RépondreSupprimer
  18. would this method work for any box? Does it include drivers for the Dual Shock 3?

    RépondreSupprimer
  19. I'm also having trouble installing this, left a message for you on XDA with screenshots, would be great if you could help.
    Thanks

    RépondreSupprimer
  20. Isn't there any " easier" way to fix this problem on s905 boxes? Like a flashable zip or something? My knowledge of coding and the whereabouts or android are far from a power user ( or coder), but since the firmware lacks a set of proper files, wouldn't it be easier ( with less user errors) to properly flash it, since most of these boxes come pre rooted only lacking a recovery. Again i apologise if what i am saying is too much work to make, and i never meant to make the effort you've done so far pointless. Thank you for the good work.

    RépondreSupprimer
  21. It says 'xpad.ko' failed (Exec format error)

    RépondreSupprimer
  22. Hi,

    Do you think it will work for MXQ Pro 4K S905? I got same problem with this.

    Kim Son

    RépondreSupprimer
    Réponses
    1. non so se t puo' interessare visto il tuo post datato ma si funziona io l'ho appena messo

      Supprimer
  23. Any news ? I mean like did you lanage to find a solution for less tech-savvy people , or people who don't have access to a computer to follow your tutorial? Thank you for your hard work by the way. Have a nice day

    RépondreSupprimer
  24. request: hid-dr.ko for dragonrise controllers

    RépondreSupprimer
  25. Can you help me to load the bluetooth modules, because the s805 dont load bluetooth dongle, thank you in advanced

    RépondreSupprimer
  26. How about a youtube tutorial? That would really help out

    RépondreSupprimer
  27. Hi!! Same problem here, i've bougth an mxq tv box but mine came with amlogic s905 processor and kernel 3.14.29. I can't get it to work, a little help will be MUCH apreciatted

    RépondreSupprimer
    Réponses
    1. Check the link above for 64 bits

      Supprimer
    2. Hi, thanks for your answer. I've suscripted into that forum and downloaded the modules, but when i try to execute the insmod command (after SU command) it says "insmod failed no such file or directory" and the file is there, i'm sure...but it didn't find it...i don't understand

      Supprimer
    3. those modules are for the s905x (android 6.0) and my mxq console is s905 (5.1) so that could be the problem why they don't work

      Supprimer
    4. Remember : modules for 64 bits will not work on a 32 bits.
      The Android version could play a role, but the insmod is a totally low level trick, not Android dependant...

      Supprimer
  28. if you want root your mxq s805,you can do it with app root 360.

    RépondreSupprimer
  29. (Exec format error) on android 4.4.2
    in some sites they said it might be due to kernel differences,,i dont know how this can be solved..may be some one have to repack those modules againfor different kernel versions

    RépondreSupprimer
  30. Can i use Nyko Playpad bluetooth android controller for TV box as well as fo my Phone?

    RépondreSupprimer
  31. Hi, could create apk to joystick Power Fast USB. Similar to playstation 2 controller.

    RépondreSupprimer
  32. Do i just download to file and im ready to go, or do i do more than that, also will this work with the Logitech f710 gamepad?

    RépondreSupprimer
  33. You gotta help me out, man. I have the exact same setup - MXQ Pro+ with 3GB RAM and a Logitech Rumblepad 2. I can't get this to work. I don't have to be able to navigate Android UI automatically. I can do whichever action is necessary to detect the gamepad only when I wanna play a game. Is there a simple solution? I see the device listed using the USB Device Info app, so the gamepad is connected ok but nothing works

    RépondreSupprimer
  34. did you install keylayout files ? To copy theses files , you must remount the system partition as writeable.

    RépondreSupprimer
  35. grazie mille finalmente uso il mio controller xbox 360 wireless sul mio mxqpro 4k s905 , l'unica cosa che non riesco a fare e' rendere automatico il caricamento nel kernel ...smanager mi da' errore ....mi sapresti indicare cosa devo fare nel dettaglio e ne sarei grato. GRAZIE you are the best

    RépondreSupprimer
  36. thank you very much I finally use my xbox 360 wireless controller on my mxqpro 4k s905, the only thing that I can't do is to make the upload automatic in the kernel ... smanager gives me an error .... would you be able to indicate what should i do it in detail and I would be grateful. THANK YOU you are the best

    RépondreSupprimer
    Réponses
    1. k2o, can you help me? I do not understand anything of that language. Can you say to me what i have to do to make the gamepads work?

      Supprimer
  37. Hi.

    I have installed the lollipop version. When trying to run the command 'insmod xpad.ko' in the modules folder via cmd, the following message occurs.

    'unknown symbol in module or invalid parameter'

    RépondreSupprimer
  38. Hi my friend? For mxq, do you have some kind of tip about the driver bluetooth usb dongle? I would like use bluetooth usb dongle pluged on usb, with this may we can play headphone and gamepad wireless... Where I must to start?

    RépondreSupprimer
  39. Techies Expedition: Adding Gamepads Support To Mxq S805 Android Tv Box >>>>> Download Now

    >>>>> Download Full

    Techies Expedition: Adding Gamepads Support To Mxq S805 Android Tv Box >>>>> Download LINK

    >>>>> Download Now

    Techies Expedition: Adding Gamepads Support To Mxq S805 Android Tv Box >>>>> Download Full

    >>>>> Download LINK

    RépondreSupprimer
  40. Techies Expedition: Adding Gamepads Support To Mxq S805 Android Tv Box >>>>> Download Now

    >>>>> Download Full

    Techies Expedition: Adding Gamepads Support To Mxq S805 Android Tv Box >>>>> Download LINK

    >>>>> Download Now

    Techies Expedition: Adding Gamepads Support To Mxq S805 Android Tv Box >>>>> Download Full

    >>>>> Download LINK Iu

    RépondreSupprimer
  41. I have a Logitech f710 wireless gamepad, but the phone does not detect the gamepad at all. can you help me

    RépondreSupprimer

Do you need a cheap USB midi /din converter ?

KonverterMidiUSB Host USB to Serial Midi bidrectionnal converter This project based on Arduino Uno allows you to get a very economical USB M...