Latest product reviews
ARCHOS 50 Diamond
ARCHOS GamePad2
ARCHOS
Smartphones
ARCHOS
TV Connect
ARCHOS 101 XS

A A A
Avatar

Please consider registering
Guest

Search

— Forum Scope —






— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

Register Lost password?

ClockworkMod (CWM) Recovery easy install for RK3066 and RK3188 -- TWRP/CWM Flash-Tool and root for RK3288

 Please donate to support OMA and CrewRKTablets firmware work, thank you !

sp_Feed sp_TopicIcon
Adding XBOX 360 controller support to your v972
Avatar
braindonor23
New Member
Forum Posts: 5
Member Since:
2013/03/03
sp_UserOfflineSmall Offline

Thanks Received: 2
1
2013/08/27 - 10:39
sp_Permalink sp_Print

Hi everyone, this is my first post, usually I'm just lurking around looking for info but I figured I would share this since we're all looking for as much functionality as possible from our tabs. I figured this out after reading that android supported the xbox 360 controller, but was disapointed that my v972 (ver1 with kasty3.2 rom) didn't recognize it. I didn't want to reflash to another rom that might support it, I just wanted to add that ability.  It wasn't too hard to figure out but I figured I would post to make it easier on anyone else intersted.  I know this will work for the v972 with kasty 3.2 rom, and I suspect it will work for v973 also and may work for v812 or v972 or v973 with other firmware versions as well.

What you need:

-An onda (v972) tablet (v3.2 tested)

-Terminal Emulator ( https://play.google.com/store/apps/details?id=jackpal.androidterm&hl=en ) or similar installed (free on play store)

-I'm pretty sure you need to be rooted with super su installed but if anyone wants to try without please post if it worked

-A USB OTG cable

-A wired xbox 360 conroller (wireless dongle, modded original xbox controller, or 3rd party controller can also work, more on that later)

-An internet connection

First we'll find the files we need and unpack them (I used my pc for this but someone who's more android-saavy might do this all on their tablet).  over at the xda-developers forum http://forum.xda-developers.com/showthread.php?t=1792531 scroll down a little and you'll find 2 files Vendor_045e_Product_0291.kl.zip and Vendor_045e_Product_0719.kcm.zip download these and inside one you will find a file called Vendor_045e_Product_0291.kl and in the other a file called Vendor_045e_Product_0719.kcm. put these 2 files in the /sdcard/ directory of your tab (this is the top level if copying by usb).  Next we'll head over to slatedroid where Christian Troy has been working on a version of CyanogenMod for a31 based devices and we'll grab the xpad he compiled for that project so go here: http://www.slatedroid.com/topic/77425-rom-cyanogenmod-101-for-allwinner-a31-sdk-32-devices-2013-07-26-update/ and scroll down in his post to where it says "compatibilty zips" (you don't need to download the rom file) and click Onda v972 (or 812 if you want to try with the 812). this will get you a file called jb_4.2-v972_v1-compatibility-3.2_rc1.zip. inside of that we only need the xpad.ko file in the /system/lib/modules directory.  put that file also in the /sdcard/ directory of your tablet.

 

Now, onto the installation!  we'll install the keychars and keylayout files before the actual xpad module, since if we do it afterwards, we'll have to restart the module anyways.  It may be that the xbox specific keylayouts are not really necessary and the generic ones will suffice but I didn't want any surprises. So on the tab, open the Terminal Emulator app.

Now Type:

su (enter) (this should change the prompt from a $ to a #)

cd /system/usr/keylayout (enter)

mount -o remount,rw /system (enter)

cp /sdcard/Vendor_045e_Product_0291.kl /system/usr/keylayout/Vendor_045e_Product_0291.kl (enter)

chmod 644 Vendor_045e_Product_0291.kl (enter)

cd /system/usr/keychars (enter)

cp /sdcard/Vendor_045e_Product_0719.kcm /system/usr/keychars/Vendor_045e_Product_0291.kcm (enter) (note we are changing the name slightly as we copy here)

chmod 644 Vendor_045e_Product_0291.kcm (enter) (the layout file are now where they are supposed to be)

 Now, still inside the terminal, we'll load the actual xpad module that provides the gamepad compatibility:

type:

insmod /sdcard/xpad.ko (enter)

if this fails, try typing:

insmod -f /sdcard/xpad.ko (enter) (the -f is for "force")

now type exit and hit enter and then type exit and hit enter again ( the first time is to exit superuser mode and the second time is to exit the terminal)

Note that if you reboot your tablet you will have to go back to the terminal and use the insmod command again to re-load the xpad module.  It is possible to edit the init.sh to include this so you don't have to but I won't get into that here. You should now be set to plug in your xbox controller and use it on your v972. Here you can find a list of games that support it : http://www.droidgamers.com/index.php/game-news/android-game-news/5992-like-using-a-controller-here-s-a-huge-list-of-games-you-can-play 

(you can also use the left analog stick to scroll thru system menus and in the web browser and some other apps)

Note the following section is probably not necessary:

If you are using something other than the wired xbox 360 controller and it still does not work, it may be necessary to copy the keylayout and keychars files and rename them with the vendor and product numbers of your actual controller. You can get this information from your tablet's logcat. There is some nice information on logcatting here: http://forum.xda-developers.com/showthread.php?t=1726238  but the easiest way will be to use catlog ( https://play.google.com/store/apps/details?id=com.nolanlawson.logcat&hl=en ). just open it and then plug your controller. You should see a bunch of usb events with little green boxes with the letter "I" in them.  2 times there will be one that starts with VID and then one that starts with PID.  The second pair of these are the ones to look at.  at the end of the string one says ",VID 'vvvv'" and the other says ",PID 'pppp'" , where 'vvvv' is the actual vendor number of your controller and 'pppp' is the actual product number. write down those 4 digit numbers (they are hex so they might actually be a mix of numbers and letters).

Now open the terminal app again and type:

su (enter)

cd /system/usr/keylayout (enter)

mount -o remount,rw /system (enter)

cp Vendor_045e_Product_0291.kl Vendor_vvvv_Product_pppp.kl (enter) (again, where vvvv was the actual vendor number and pppp the actual product number that you logcatted)

chmod 644 Vendor_vvvv_Product_pppp.kl (enter)

cd /system/usr/keychars (enter)

cp Vendor_045e_Product_0291.kcm Vendor_vvvv_Product_pppp.kcm (enter)

chmod 644 Vendor_vvvv_Product_pppp.kcm (enter)

exit (enter)

exit (enter)

Remember to use your actual vendor and product numbers when you type in your new filenames.  for example to use the usb dongle for wireless xbox 360 controllers, you would type "Vendor_045e_Product_0719.kl" and the controller I actually used was a modified madcatz microcon wireless controller for the original xbox, it ended up being "Vendor_0738_Product_4556.kl".

I hope this has been helpful to some of you! comments/correction/feedback/additional info are welcome and encouraged!

The following users say thank you to braindonor23 for this useful post:

admin
Avatar
admin

admin
Forum Posts: 5872
Member Since:
2010/09/11
sp_UserOfflineSmall Offline

Thanks Received: 3163
2
2013/08/27 - 11:51
sp_Permalink sp_Print

That's interesting, thanks for your post braindonor23.

Is there interest to other forum members in having this kind of XBOX 360 controller support in our future custom firmwares ?

Cheers.

If you like our web site, applications and firmwares, feel free to support our site. Donations are used to pay the bills for our server hosting costs, development tools and purchase new tablets to support.

Avatar
braindonor23
New Member
Forum Posts: 5
Member Since:
2013/03/03
sp_UserOfflineSmall Offline

Thanks Received: 2
3
2013/08/28 - 09:26
sp_Permalink sp_Print

Hi again, I just wanted to add/clarify a few things:

1) I have uploaded a zip file with just the 3 files I used to make things a little easier http://www30.zippyshare.com/v/65992963/file.html

2) 99% of all controllers will work without copying the .kl and .kcm files with the vendor and product id's and will work as soon as you plug them in.

3) You can use the controller to navigate the homescreen, system menus, and the menus in almost every app, and the buttons have actions too.

4) of the handful of controllers I tested, the original xbox's "rev b" controller (the smaller one) had the least effect on battery discharge.  Note that original xbox controllers (non-360) must be modded with a usb connector in order to use them.

5) If you reboot your tablet after following these instructions, all you have to do to get it working again is go to the terminal and type: su (enter) insmod /sdcard/xpad.ko (enter)

that's all, thanks.

The following users say thank you to braindonor23 for this useful post:

Donkman
Avatar
braindonor23
New Member
Forum Posts: 5
Member Since:
2013/03/03
sp_UserOfflineSmall Offline

Thanks Received: 2
4
2013/08/30 - 09:27
sp_Permalink sp_Print

Ok, round 3!  How to make this mod persistent (so it survives rebooting on it's own) the easy way without having to know about the android system.  You can do this using an app called SManager https://play.google.com/store/apps/details?id=os.tools.scriptmanager&hl=en  

It requires root.

 

1) First install the app and open it

2) Then tap the menu icon, and choose "New Script"

3) It will ask you to name the file, I named mine "xpadinsmod"

4) It might ask you which app you want to use to edit the file, choose your preferred text editor or use the supplied SM Editor.

5) A file will open that just says "#!/system/bin/sh". leave the first line alone. On the next line type "insmod /sdcard/xpad.ko" (or if you had put the xpad.ko file somewhere else use that path)

6) Now choose save from the menu and then exit (the SM Editor will probably exit automatically when you save but if not you can just tap the back button)

7) You should be back in the SManager. Tap the file you just created and it will bring up the configuration screen. Activate the icons that say "su" and "boot". this will make it so the script has superuser permission and runs at boot.  tap save and then exit.

8) I don't know why you have to do this but it didn't work for me until I did; find and tap the xpad.ko file, bringing up the config screen again, make sure the "su" and "boot" icons are active for that too, and again save and exit.

9) Now you can exit the SManager app and your controller should still work after you reboot without having to manually insmod again.  Note that there is a slight delay from when the tablet boots to when the xpad.ko module is actually loaded.  If you watch your notification bar an icon that looks like a terminal prompt will pop up momentarily and it will say "running in the background" or something like that. That is the SManager running your script. Once that happens your controller is ready to use again.

10) Have fun!


Avatar
bogg
New Member
Forum Posts: 6
Member Since:
2013/05/02
sp_UserOfflineSmall Offline

Thanks Received: 2
5
2013/09/15 - 02:59
sp_Permalink sp_Print

Thanx a ton for that.. I own a Wireless X-Box 360 controller with the USB connector that I use on my PC and I did try unsuccessfully with my v972 tablet. Thanx to you it now works great  ;D

 

And in answer to the Admin.. for sure it would be great to have this setup already part of any future system updates that come out in here for the v972. That would let us avoid to go thru that whole process to make it work.

 

  Thanx again for this

Avatar
admin

admin
Forum Posts: 5872
Member Since:
2010/09/11
sp_UserOfflineSmall Offline

Thanks Received: 3163
6
2013/11/06 - 21:43
sp_Permalink sp_Print

Just a quick update to let you know I have added support for the XBOX 360 Gamepad on our Onda V972 custom firmware. Other firmwares should follow soon.

See here: http://www.arctablet.com/blog/forum/onda-v972/onda-v972-v1-hardware-android-4-2-2-jelly-bean-root-custom-firmware-v3-2-1-final-2013-07-26/page-5/#p32511

If you like our web site, applications and firmwares, feel free to support our site. Donations are used to pay the bills for our server hosting costs, development tools and purchase new tablets to support.

Avatar
weaver792
New Member
Forum Posts: 4
Member Since:
2013/11/26
sp_UserOfflineSmall Offline
7
2013/12/02 - 22:11
sp_Permalink sp_Print

I followed the procedure step by step but it didn't work to me :(

Did anyone make a PS3 wired controller work on the onda v972?

Avatar
Magic99
New Member
Forum Posts: 3
Member Since:
2013/11/25
sp_UserOfflineSmall Offline
8
2014/01/16 - 08:06
sp_Permalink sp_Print

This is great to ad xbox controller support on future firmware realse

Avatar
fbartosz
New Member
Forum Posts: 3
Member Since:
2013/07/06
sp_UserOfflineSmall Offline
9
2014/01/23 - 19:53
sp_Permalink sp_Print

Didn't work for me  🙁
I've got a message
sh: /mnt/sdcard/xpad.ko: can't execute: permission denied

 

Avatar
braindonor23
New Member
Forum Posts: 5
Member Since:
2013/03/03
sp_UserOfflineSmall Offline

Thanks Received: 2
10
2014/01/24 - 04:09
sp_Permalink sp_Print

fbartosz said
Didn't work for me  🙁
I've got a message
sh: /mnt/sdcard/xpad.ko: can't execute: permission denied

 

at what point in the process do you get this message?  when manually invoking or after it is setup with smanager? a message like this could mean that you weren't in superuser mode if manually invoking, or that the "su" and "boot" permissions are not active on the file when using smanager.

Forum Timezone: Europe/Paris

Most Users Ever Online: 749

Currently Online: Cusco, tokecin, Paveo
224 Guest(s)

Currently Browsing this Page:
1 Guest(s)


Devices in use: Desktop (188), Phone (37), Tablet (2)

Top Posters:

Oma7144: 5790

globula_neagra: 2424

finless: 604

DarthJabba: 551

exelletor: 450

JochenKauz: 450

cracktech: 432

maikal: 394

Newest Members:

Paveo

Pierre77777

Krikke46

gilesrm

CrunCher

Topgun777

Forum Stats:

Groups: 10

Forums: 185

Topics: 5917

Posts: 58879

 

Member Stats:

Guest Posters: 43

Members: 256585

Moderators: 5

Admins: 1

Administrators: admin

Moderators: globula_neagra, exelletor, JochenKauz, Oma7144, cracktech


CrewRKTablets moderators: JochenKauz and Astralix