Hi,
after weeks of trying to figure out out the kernel works, I finally managed to have a working USB gamepad on my Galaxy SII !
It's quite buggy/unstable for now but N64oid detected my buttons
It's only working on the official firmware, I'm using 2.3.3 KG1 and only tested on this firmware.
I tested many different gamepads and the only one that I got working is the "Thrustmaster Firestorm digital 3" USB gamepad (it only cost 7 € here !!!)
So what's the steps now ?
- as root "insmod joydev.ko"
- plug your gamepad and type "dmesg" to get more infos about the gamepad detected
- now the gamepad device must have been created : /dev/input/js0
- type "cat /dev/input/js0" in a terminal and when you press your gamepad buttons some weird characters should appear, if not your gamepad is not supported!
- now type "chmod 777 /dev/input/js0"
- install my modified GamepadIME apk
- In Android settings, language and keyboard, check gamepad then select the gamepad IME as the main input method.
- if you're lucky, you'll be notified that your gamepad is detected.
- Your gamepad is simulating a key press so you can see it working in an input area.
A video showing my gamepad in action : http://www.youtube.com/watch?v=6XEqaqum_PE
It doesn't recognize my dualshock 2 at all and my old WingMan is recognized but the buttons presses aren't.
Great work nonetheless. I hope someone (or you ) can expand on your great work and add more gamepad compatibility.
dualshock 2 is not USB ? I also compiled the full joystick kernel modules (xpad, gamepad,iforce,sidewinder, tmdc etc) so it may help with other ones but as I don't have the hardware I can't check the code.
Anyway, only generic gamepads may work, I really tried hard on the Xbox360 one but failed again and again...
Well... USB devices are supported native in 2.3.4
Sent from my GT-I9100 using XDA App
jknvv13 said:
Well... USB devices are supported native in 2.3.4
Sent from my GT-I9100 using XDA App
Click to expand...
Click to collapse
No, joystick support is added to Android 3 only. Also USB device is a generic word for something that uses USB so only a small part of the whole USB devices is really supported by Android for now (keyboards and mice mainly).
alx5962 said:
dualshock 2 is not USB ?
Click to expand...
Click to collapse
I obviously used an adapter
My PS3 recognizes both the WingMan and the DS2, so I suppose they are generic in some way.
FPRobber said:
I obviously used an adapter
My PS3 recognizes both the WingMan and the DS2, so I suppose they are generic in some way.
Click to expand...
Click to collapse
That kind of adapter uses the gamepad kernel module, not the joydev one so that's why it doesn't work.
alx5962 said:
- install my modified GamepadIME apk
Click to expand...
Click to collapse
What did you modify?
I investigated a bit: It's possible to detect button presses without the module and my GamepadIME. But the events are a bit strange. From Activity.onKeyDown() with neither joydev.ko nor GamepadIME:
Code:
KeyEvent{action=0 code=0 repeat=0 meta=0 scancode=306 mFlags=8}
"code=0" might lead to the strange effects I have with NESoid: single button presses seem to activate all buttons at once.
So if the emulator/game developers take care for this and analyze also "scancode" and not only "code",
- it's possible to play games without root/module/GamepadIME with the buttons of a gamepad
- it's possible to play games with root/module/GamepadIME with the sticks of a gamepad or with one of those retro adapters for old digital joysticks.
Can anyone compile joydev.ko for AOSP based roms like MIUI and CM7? Or mabye someone can guide me in compiling this?
My experience:
1- copy files (joydev.ko and GamepadIMEAlex.apk) to galaxy S2
2-open root explorer in galaxy S2 and select joydev.ko and copy
open lib folder
open modules folder
click on mounted r/w and now you can see mounted r/o
3- pasted into modules the file joydev.ko
4-open android terminal in galaxy S2
write su (now have super user permissions)
write :
cd lib
cd modules
insmod joydev.ko (and ok 0 errors, terminal do not say nothing)
5- to plug a gamepad and wait 5-8 seconds
6- write: dmesg in terminal and you will can see gamepad detected or not
7- write: cat /dev/input/joydev.ko and press gamepad buttons ,
two things can happen: Nothing or Yes it is running
8- Install GamepadIMEAlex.apk
9- now into ajustements ,
look into keyboard/language and mark gamepad option
and in select input method (select gamepad)
10- good lucky
Ps3 original gamepad Only run bluetooth mode thanks sixaxis 0.32 apk in original stock rom 2.3.4 ,Are not running with usb mode
Ps3 clone-copy gamepad, are not running (not bluetooth, not usb mode)
MAXFIRE G-08XU GENIUS 8 BUTTON USB GAMEPAD Are running ok ,Yes
Any possibility to use this with ps3 sixaxis?
Sent from my GT-I9100 using xda premium
you can already use a wireless ps3 controller with our phone using sixaxis bluetooth protocol/driver.
equlizer said:
you can already use a wireless ps3 controller with our phone using sixaxis bluetooth protocol/driver.
Click to expand...
Click to collapse
Where can i get thw driver? Didnt know
Sent from my GT-I9100 using xda premium
sixaxis is in the market. Get the free one first to make sure it works (just in case)
zylor said:
Where can i get thw driver? Didnt know
Sent from my GT-I9100 using xda premium
Click to expand...
Click to collapse
i think u have to use cyanogen or miui cause the bluetooth stacks are missing in the original/custom rom i tried it with the wiimote and it worked only on CM and miui.dunno if sixaxis are using the same stacks.try it out
haieb said:
i think u have to use cyanogen or miui cause the bluetooth stacks are missing in the original/custom rom i tried it with the wiimote and it worked only on CM and miui.dunno if sixaxis are using the same stacks.try it out
Click to expand...
Click to collapse
It works with the official ROMs now too.
nothing person readed my post?????
I said in page 1,
Ps3 original gamepad Only run bluetooth mode thanks sixaxis 0.32 apk in original stock rom 2.3.4 ,Are not running with usb mode
and in cyanogen roms ,it was running before.
In new android sandwich I think that all gamepads will be working
Will this work on Galaxy Note Stock ROM (2.3.6)?
Brgds... /Tubgirl
Tubgirl said:
Will this work on Galaxy Note Stock ROM (2.3.6)?
Brgds... /Tubgirl
Click to expand...
Click to collapse
Just try and keep us informed
Can you compile the kernel module also for the CyanogenMod Kernel?
ive tried to get it to work on my rooted smasung galxy s2 tmobile but wont give me the bluetooth address
http://www.dancingpixelstudios.com/contact.html
Have a problem?
Don't forget to check the FAQ for answers to the most commonly asked questions.
Email
Please send all support emails, feature requests & general enquiries to [email protected]
artojeda1988 said:
ive tried to get it to work on my rooted smasung galxy s2 tmobile but wont give me the bluetooth address
Click to expand...
Click to collapse
1.First off install Sixaxis Controller Checker app from market
2.Run it and after some errors and saying your phone is compatible it should give
you an adress - write it down
3.Install Sixaxis Pair Tool (SPT in further text) from dancing pixel studios website
4.Connect your PS3 controller via usb you got with your PS3
5.Wait until the drivers install
6.SPT will show your current bluetooth master adress - WRITE it down ( so you
can restore it when you want to use it with your PS3)
7.Enter a new adress ( the one you got in step 2) - disconnect after this
8.Install Sixaxis Controller app and run it
9.Turn on your controller
10. It should now connect, the only thing remaining is to change default input to
PS3 controller in settings
11.Thats it!
The t-mobile version has issues with the current version of the app. I have a fix for this which should be up within a week.
Hello,
I've used my tablet with flash drives etc. with the OTG cable. Before few days the OTG stopped working.
I though it's from ES File Manager because I use this app very often and I have clicked somewhere and disabled the OTG function.
So, I made decision to pre-install my android firmware and clear everything. > I did this.
And then I put the OTG cable with the flash drive connected and then a USB mouse - the flash drive does not connect, the optic ot the mouse only lights up and then it goes off and the mouse does not work too. I tried the OTG cable on my phone (SGS 2) and it's working perfectly.
Can you guys help me to solve this problem?
dear all android developer and user , i've some curiosity regarding OTG and usb host.
-> is there any difference between OTG and USB Host? i run a portable usb speaker. it can detect that. some OTG suported device does support only pen drive/flash drive+Mouse+KyBrd. does not detect any HDD/USB speaker (eg Moto E 2nd/ local Chinese brand). i just want to know the difference of their OTG system. or usb host system.
-> My moto G gives over 4 volt through OTG and that can fluently run any portable HDD without any extra power (any rom). its tested and i use a portable HDD. did you found any other set with this feature? i didnt found any.
sorry for my long post. hope u'll share ur knowledge if got enough time to reply. thanks.
Is OTG support releated to hardware or software, kn other words can OTG be enabled with only adding that feature to kernel or I need some hardware requirements beside usb flash and otg cable?
Professor Woland said:
Is OTG support releated to hardware or software, kn other words can OTG be enabled with only adding that feature to kernel or I need some hardware requirements beside usb flash and otg cable?
Click to expand...
Click to collapse
OTG support requires both hardware and software support. If your android is rooted then you can enable OTG support using USB OTG helper
You require OTG cable when enabling OTG support.
Ashwinrg said:
OTG support requires both hardware and software support. If your android is rooted then you can enable OTG support using USB OTG helper
You require OTG cable when enabling OTG support.
Click to expand...
Click to collapse
So I can enable OTG support no matter what is chipset?
Professor Woland said:
Is OTG support releated to hardware or software, kn other words can OTG be enabled with only adding that feature to kernel or I need some hardware requirements beside usb flash and otg cable?
Click to expand...
Click to collapse
You can enable OTG support on any chipset. You required rooted android.
Professor Woland said:
So I can enable OTG support no matter what is chipset?
Click to expand...
Click to collapse
No you cant.
First lets understand how otg works.
First of all , for Pendrive or Storage to work , you need power for it to function.
There are two eays to power up the pendrive.
i)Power from your phone's battery
ii)External Power
No matter how much you tweak your software , without providing power to the pendrive , you cannot run an otg.
You can always google and find out if your chipset supports otg or not.
If your chipset supports otg and your device doesnt , you can always root your device and try StickMount or USB Otg Helper , but if your chipset doesnt support otg , you need to power up pendrive externally , using a usb Y cable.
After you've acquired the cable you may try the above mentioned root applications to try out your luck.
I am 90% sure that your device wont support otg even after providing external power because of your kernel.
Your kernel is the one which controls all mounting point and hardware devices in your phone.
Good luck/
akash14darshan said:
No you cant.
First lets understand how otg works.
First of all , for Pendrive or Storage to work , you need power for it to function.
There are two eays to power up the pendrive.
i)Power from your phone's battery
ii)External Power
No matter how much you tweak your software , without providing power to the pendrive , you cannot run an otg.
You can always google and find out if your chipset supports otg or not.
If your chipset supports otg and your device doesnt , you can always root your device and try StickMount or USB Otg Helper , but if your chipset doesnt support otg , you need to power up pendrive externally , using a usb Y cable.
After you've acquired the cable you may try the above mentioned root applications to try out your luck.
I am 90% sure that your device wont support otg even after providing external power because of your kernel.
Your kernel is the one which controls all mounting point and hardware devices in your phone.
Good luck/
Click to expand...
Click to collapse
So, if I understood it, if my device doesn't support OTG by hardware, I still can make it work using Y cable, and if it still doesn't work than I need to add kernel support?
Professor Woland said:
So, if I understood it, if my device doesn't support OTG by hardware, I still can make it work using Y cable, and if it still doesn't work than I need to add kernel support?
Click to expand...
Click to collapse
Its worth giving a try , usb y cable is available for less than $5 now a days.
For mounting ntfs , USB Otg Helper is mandatory though , even after kernel modifications.
Or maybe libraries can be manually installed
Anyway , Cheers
I need otg support badly
akash14darshan said:
No you cant.
First lets understand how otg works.
First of all , for Pendrive or Storage to work , you need power for it to function.
There are two eays to power up the pendrive.
i)Power from your phone's battery
ii)External Power
No matter how much you tweak your software , without providing power to the pendrive , you cannot run an otg.
You can always google and find out if your chipset supports otg or not.
If your chipset supports otg and your device doesnt , you can always root your device and try StickMount or USB Otg Helper , but if your chipset doesnt support otg , you need to power up pendrive externally , using a usb Y cable.
After you've acquired the cable you may try the above mentioned root applications to try out your luck.
I am 90% sure that your device wont support otg even after providing external power because of your kernel.
Your kernel is the one which controls all mounting point and hardware devices in your phone.
Good luck/
Click to expand...
Click to collapse
I needed a tab for my car dash entertainment/navigation so i ended up buying a cheap verizon ellipsis 8 (model QTAQZ3). Its perfect for runing multimedia and navigation but it dnt have Otg support which i need to attach rear view cam. I rooted it with kingroot 4.1 and installed root explorer. I have placed android.hardware.usb.host.xml and updated vx.core.hardwarwe.xml. now now i used all otg diagnotics and mounting apps but all are showing otg and usb host active but Linux kernel 3.10.0 (andoid 4.2.2) is not otg supported and no usb flash or usb cam is geting recognized by ellipsis 8. Is there any patch for kernal that will do the job? Wht should be next step??