USB gamepad driver for PS3 controller

Discussion in 'Coby Generation 2 Development' started by steev, Nov 16, 2011.

  1. steev

    steev Senior Member Developer

    Joined:
    Sep 3, 2011
    Messages:
    370
    Likes Received:
    236
    Trophy Points:
    132
    Tablet / Device:
    Coby Kyros MID7024
    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: Nov 16, 2011
  2. flxrms

    flxrms Senior Member Developer

    Joined:
    Mar 23, 2011
    Messages:
    365
    Likes Received:
    52
    Trophy Points:
    102
    Location:
    Manila
    Tablet / Device:
    epad
    Thanks a lot!!!

    Sent from my typewriter.
     
  3. lfom

    lfom Senior Member Developer

    Joined:
    Sep 12, 2011
    Messages:
    1,387
    Likes Received:
    240
    Trophy Points:
    162
    Location:
    Brasil
    Last edited: Nov 16, 2011
  4. steev

    steev Senior Member Developer

    Joined:
    Sep 3, 2011
    Messages:
    370
    Likes Received:
    236
    Trophy Points:
    132
    Tablet / Device:
    Coby Kyros MID7024
    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.
     
  5. lfom

    lfom Senior Member Developer

    Joined:
    Sep 12, 2011
    Messages:
    1,387
    Likes Received:
    240
    Trophy Points:
    162
    Location:
    Brasil
    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: Nov 16, 2011
    • Like Like x 2
  6. steev

    steev Senior Member Developer

    Joined:
    Sep 3, 2011
    Messages:
    370
    Likes Received:
    236
    Trophy Points:
    132
    Tablet / Device:
    Coby Kyros MID7024
    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
     
    • Like Like x 4
  7. afonsolage

    afonsolage Member

    Joined:
    Oct 27, 2011
    Messages:
    21
    Likes Received:
    6
    Trophy Points:
    62
    Location:
    Fortaleza, CE - Brasil
    Tablet / Device:
    Coby Kyros MID 7022
    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.
     
  8. lfom

    lfom Senior Member Developer

    Joined:
    Sep 12, 2011
    Messages:
    1,387
    Likes Received:
    240
    Trophy Points:
    162
    Location:
    Brasil
    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.
     
  9. afonsolage

    afonsolage Member

    Joined:
    Oct 27, 2011
    Messages:
    21
    Likes Received:
    6
    Trophy Points:
    62
    Location:
    Fortaleza, CE - Brasil
    Tablet / Device:
    Coby Kyros MID 7022
    insmod:
    lsmod:
    I have busybox. But my CPU isn't samsung :(

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

    Best regards,

    Afonso Lage.
     
  10. steev

    steev Senior Member Developer

    Joined:
    Sep 3, 2011
    Messages:
    370
    Likes Received:
    236
    Trophy Points:
    132
    Tablet / Device:
    Coby Kyros MID7024
    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: Dec 5, 2011
    • Like Like x 4
  11. padeez

    padeez Member

    Joined:
    Dec 8, 2011
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    60
    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
     
  12. lfom

    lfom Senior Member Developer

    Joined:
    Sep 12, 2011
    Messages:
    1,387
    Likes Received:
    240
    Trophy Points:
    162
    Location:
    Brasil
    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.
     
  13. steev

    steev Senior Member Developer

    Joined:
    Sep 3, 2011
    Messages:
    370
    Likes Received:
    236
    Trophy Points:
    132
    Tablet / Device:
    Coby Kyros MID7024
    Yeah, it was added to the Alldro2 CFW in version 1.0

    It's also in TsunamiMod
     
  14. padeez

    padeez Member

    Joined:
    Dec 8, 2011
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    60
    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).
     
  15. steev

    steev Senior Member Developer

    Joined:
    Sep 3, 2011
    Messages:
    370
    Likes Received:
    236
    Trophy Points:
    132
    Tablet / Device:
    Coby Kyros MID7024
    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:
     

Share This Page

Search tags for this page
android gamepad github
,
apk ps3 controller usb
,
busynox ps3 controller
,

can you install a usb ps3 controller to work on a android tablet

,
free ps3 games for kyros tablet
,
gamepad ps3 apk
,
gamepad ps3 usb apk
,
gingerbread joystik
,
how to install gamepad driver in android
,
ps gamepad for android install
,
ps3 android driver
,
ps3 controller apk
,
ps3 controller driver
,
ps3 controller driver tablet
,

ps3 controller for usb driver for android

,
ps3 usb kernel tablet
,
ps3 usb pad drivers android
,
sony gamepad driver apk
,
usb cable through ps3 control apk
,
usb ps3 controller apk for tablet