USB gamepad driver for PS3 controller

steev

Senior Member
Developer
Sep 3, 2011
370
236
This should work on all the Gingerbread firmwares for the x024 (maybe others too?)

http://dl.dropbox.com/u/17126237/coby/ps3-controller.zip

Instructions (requires root):
-Download and unzip
-Push hid-sony.ko to /system/utmodules on your tablet
Code:
adb push hid-sony.ko /system/utmodules/
-Load the module (or just reboot):
Code:
adb shell insmod /system/utmodules/hid-sony.ko
-Install GamepadIMEMod.apk on your tablet (If you have the original GamepadIME installed, uninstall it first)

How to use PS3 Controller:

1. Go to any app that needs text entry and press the textbox until it pops up a dialog to choose keyboard. Then select GamepadIMEMod.
2. The PS3 Controller needs to be OFF. ie none of the four LEDs are red.
3. Connect the PS3 Controller to your tablet via usb
4. Enable USB host mode (Settings>Advanced Settings>USB Bus Mode)
5. Press the PS button on the controller to start. If you don't press the PS button first, the other buttons will not respond.

Thanks:

cheeyee, who modded GamepadIME to support the PS3 controller
Novo8 Gamepad Support Added - GamepadIMEMod V3 PS3 Controller support added : Ainol MID

Asure, for the open-source Dropad kernel (which I used to compile the driver)
https://github.com/Asure/Dropad-kernel-2.6.35.7
 
Last edited:
I think the Sixaxis app requires bluetooth. With this driver all you need is a USB cable.
I believe this GamepadIME Mod still supports other gamepads, but I haven't tested.

If it does, it will be nice. I will test it and report back. ;)
.
.
.
Confirmed: modded gamepad IME also works with "normal" gamepads. I tested it with an USB controller I have and got the same results.

Also I think the kernel modules was load during but. Altought I didn't find any reference in the dmesg, trying to load it using isnmod in Terminal gives "can't insert 'hid-sony.ko': File exists".

Good work, congrats!
 
Last edited:
Thanks for confirming.
Yeah I don't see anything in dmesg until I actually plug in a PS3 controller.

Also, here's how I built the module (on Linux). Can probably used to add support for things like other Gamepads or Bluetooth dongles.

Download Asures kernel source
Code:
$ git clone git://github.com/Asure/Dropad-kernel-2.6.35.7.git

Download the code sourcery toolchain:
Code:
$ wget https://sourcery.mentor.com/sgpp/lite/arm/portal/package5383/public/arm-none-linux-gnueabi/arm-2009q3-67-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2
$ tar xvf arm-2009q3-67-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2

Now to build the module:
Code:
$ cd Dropad-kernel-2.6.35.7
$ echo "../arm-2009q3" > .cross_compile
$ make ARCH=arm mrproper
$ make ARCH=arm dropad_defconfig
$ make ARCH=arm menuconfig
(Go to Device drivers>HID Devices>Special HID Drivers>Sony and type "m" to compile it as a module)
$ make ARCH=arm modules

The driver will be in drivers/hid/hid-sony.ko
 
Thanks for this tip, but when I try to use insmod, I got an "exec format error". I'm trying to install it on Kyros 7022.

Did you have any clue how can I get it working on my tablet?

Best regards,

Afonso Lage.
 
Thanks for this tip, but when I try to use insmod, I got an "exec format error". I'm trying to install it on Kyros 7022.

Did you have any clue how can I get it working on my tablet?

What happens if you type just "insmod" or just "lsmod"?

I think your tablet doesn't have busybox installed or the module provided only works for Samsung CPUs because of the "dropad" in the config.
 
What happens if you type just "insmod" or just "lsmod"?

I think your tablet doesn't have busybox installed or the module provided only works for Samsung CPUs because of the "dropad" in the config.

insmod:
# insmod hid-sony.ko
insmod hid-sony.ko
insmod: init_module 'hid-sony.ko' failed (Exec format error)

lsmod:
# lsmodlsmod
ar6000 240758 0 - Live 0xbf238000
mali 182740 4 - Live 0xbf1fc000
ump 39583 19 mali, Live 0xbf1ea000
ufsd 362999 0 - Live 0xbf17f000 (P)
tcc_nand 1448057 0 - Live 0xbf006000 (P)
tcc_mtd_lib 3418 0 - Live 0xbf000000 (P)

I have busybox. But my CPU isn't samsung :(

There is anyway to compile it to Telechips Cortex A8 CPU?

Best regards,

Afonso Lage.
 
Yeah it must be the CPU.

You can set the CPU type in menuconfig under System Type>ARM system type

I'm not sure which option to choose for your Telechips Cortex A8, the output of the following command might help:
Code:
cat /proc/cpuinfo

edit: a little googling shows "TCC8803".

Try this one:
http://dl.dropbox.com/u/17126237/coby/hid-sony.ko
 
Last edited:
Steev...I'm new to this but have installed your Mod to my Coby...would it be possible for you to add this new gamepad to your rom....since we have to delete the one that's there...thanx in advance
 
Steev...I'm new to this but have installed your Mod to my Coby...would it be possible for you to add this new gamepad to your rom....since we have to delete the one that's there...thanx in advance

It's already included in the latest version of his AllDro2 CFW as far as I know, as well as oin my CFW for MID1024.
 
Yeah, it was added to the Alldro2 CFW in version 1.0

It's also in TsunamiMod
 
I am a bit confused because in his instructions for the gamepad ..Steev states "Install GamepadIMEMod.apk on your tablet (If you have the original GamepadIME installed, uninstall it first).
 
CFW Alldro2 versions before 1.0 came with an app called "GamepadIME." In 1.0 it was replaced with a modified version called "GamepadIMEMod."

So what I meant was if your ROM has the older unmodified version of GamepadIME, uninstall it first.

If you're running my latest ROM then all you need to do is follow these instructions:
How to use PS3 Controller:

1. Go to any app that needs text entry and press the textbox until it pops up a dialog to choose keyboard. Then select GamepadIMEMod.
2. The PS3 Controller needs to be OFF. ie none of the four LEDs are red.
3. Connect the PS3 Controller to your tablet via usb
4. Enable USB host mode (Settings>Advanced Settings>USB Bus Mode)
5. Press the PS button on the controller to start. If you don't press the PS button first, the other buttons will not respond.
 
Back
Top