[Q] Using an xbox 360 controller w/ pershoot's kernel and stock 3.1 - Galaxy Tab 10.1 Q&A, Help & Troubleshooting

Hi, so I'm trying to use an xbox 360 for pc controller. I have a galaxy tab 10.1 running stock 3.1 (w/ touchwiz). It is rooted and I flashed pershoot's kernel (http://forum.xda-developers.com/showthread.php?t=1138167). It says it supports 360 controllers, so I'm not sure what the problem is. Do i have to flash a custom rom?
When I attach the usb receiver to the tab through the usb adapter, it lights up, stays lit up, and it seems like the controller can even connect to it, but the controller doesn't work at all. Nothing shows up in the input settings area either.
Thanks for any help
edit:
In case anyone finds this through searching and is having a similar problem, reddit user misfeasor answered the question for me, here is his response/solution:
"It does support it, unlike the stock kernel, but the modules (or drivers in other words) aren't built-in to the kernel but have to be installed so to speak after every reboot. Some roms have init.d support which would allow you to create a script that can run the commands at startup.
I believe the two modules you would need are ff-memless.ko and xpad.ko and both are in the lib-2636.4.tar.gz at http://droidbasement.com/db-blog/. You need to put these files somewhere on your tablet storage. Then, to insmod the modules run these commands in a terminal app or adb shell:
insmod <path-to-file>/ff-memless.ko
insmod <path-to-file>/xpad.ko
Finally, plug in your controller receiver and it should hopefully work.
Edit: You might need to run "su" before the commands above depending on if you are executing commands as root by default or not."

Related

[DEV] USB gamepad on official ROM

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?

[Q] Customized Keylayout For Gamepad

Greetings!
I Have created a gamelayout for my ps2 usb adapter controller, the problem is that it doesn't get detected in Android, it's detected under linux (I attach some images) and the .kl file -It's inside "Vendor_12bd_Product_e002.zip" yes it's codified in UNIX, not MAC or DOS-.
I followed the tutorial from here.
I don't know if this has to anything but my tablet is a chinese Pipo S1 dual core Rockhip 1.6ghz gpu mali 400 with the stock software -Jellybean 4.1.1-.
As I stated, the controller gets detected, but the problem is that I want it to get detected as it should -Since it has plug for 2 usb controllers- in "Android" not in "Linux", hence, the .kl I used is not being detected and doesn't apply my mapping.
Any ideas?
PS: I already did the changes for r w r r, I used the terminal too -command ls -l /system/usr/keylayout- (image attached) Do I need to declare this new Keylayout somewhere?
Edit: The new configuration does get dettected though, the device isn't is because the modules are lacking due to the kernel source is not released and haven't compiled the .ko for generic gamepads
So finally is the Customised layout working?? If yes please let me know how?? Because for me it's not working.
Yes for games with native support, I havn't been able to make it work with USB Joystick center due to the lack of modules for generic gamepads

Xbox 360 on yank555 kernel

Was anyone able to get the xbox360 controller working on their phone? I've loaded yank555 kernel with the xbox360 modules enabled, but when I plug in the controller via usb otg the xbox orb just flashes and the phone is unable to pick up the controller.
I tried enabling the ntfs module on the kernelas well, and that doesn't seem to work either. I'm not too sure what I'm doing wrong. How do I get the modules to load successfully? I am currently on Grisza Monster Beam v3.1 MR2 yank555.lu v3.3.

Off-Brand Wired Xbox 360 Controller Setup How To

First off, all of this info is available elsewhere, I just thought I would condense it into a single step by step guide that anyone could use. Major thanks to sleeplessninja who solved the problem here: http://forum.xda-developers.com/showthread.php?t=1792531
So you got an xbox 360 controller from gamestop or some other third party manufacturer. Unfortunately when you started trying to use it, it almost works, but not quite. Maybe you're spinning in circles in an FPS like Dead Trigger, or a game like SoulCraft is just acting weird. The problem is that your controller's analog stick is missmaped to the triggers. This is happening because while the Transformer Prime has a button map for genuine Microsoft xbox 360 controllers, it does not have ones for all of the various generic or third party brand controllers. The solution is that you can copy the genuine keymap to use with your off-brand controller.
The steps required are thus:
1. Root you tablet.
2. Install utilities.
3. Perform terminal operations.
ONE: Rooting
Do a search for Kingo, and follow their instructions on how to root.
If you do not have the necessary driver for your pc you can get that here: http://forum.xda-developers.com/showthread.php?t=1426502
TWO: Utilities
After you have successfully rooted your tablet you will need to get a couple utilities to make the necessary changes. Fortunately they are both available from the play store.
1. A terminal emulator. Any of the ones available in the play store will probably work. I searched for "terminal" and installed the first one.
2. BusyBox. This includes the commands we need to get the job done. I got one from the play store called BusyBox Free that worked just fine.
When these are installed we can move on to actually fixing the problem.
THREE: The Terminal
So what we are trying to do is create a copy of a file called Vendor_045e_Product_0291.kl but rename it so that the vendor and product IDs match the controller you are using. To do this we will use the command lsusb.
1. Open your terminal emulator and with the controller unplugged type lsusb and press enter. You will get an output that looks like this:
Code:
Bus 001 Device 001: ID 1d6b:0002
Bus 001 Device 009: ID 05e3:0610
Then plug in your controller and use lsusb again. This time you will get an output that in my case looked like this:
Code:
Bus 001 Device 001: ID 1d6b:0002
Bus 001 Device 009: ID 05e3:0610
Bus 001 Device 011: ID 1bad:f902
The new device is the controller that you just plugged in, and the eight digits at the end are the vendor and product IDs that we need. In my case it is a GameStop branded controller, Vendor ID: 1bad Product ID: f902. I will use these throughout the rest of this guide, but you should use the ones that match your device.
2. Enter the following commands, pressing the enter key after each line.
Code:
su
cd /system/usr/keylayout/
mount -o remount,rw /system
cp Vendor_045e_Product_0291.kl Vendor_1bad_Product_f902.kl
chmod 644 Vendor_045e_Product_0291.kl
chmod 644 Vendor_1bad_Product_f902.kl
exit
exit
You will have to authorize root access for your terminal app after you enter the su command, but everything should go smoothly after that. In the world of terminal commands, no output is the norm, so don't freakout if you just get a new prompt after pressing enter.
3. That's it! Reboot your tablet and you should be good to go!
Note that I have only tested this with my GameStop wired xbox 360 controller, but it should work with any controller made for the 360, or even the Microsoft wireless usb receiver.
I hope this helps!
wont work
its not working for my galaxy s5 on lollipop. it keeps saying the "Vendor_045e_Product_0291.kl" there is no such file in directory when i moved the file to sustem/usr/keylayout/folder please help ???
Your doing it wrong i can tell u how to fix it for android if anybody needs to know just msg me on here it takes a little while to explain I've already gone over it on another thread and the reason why is saying that has to do with permissioning but i dont even do it on terminal if yall need to know msg me
GameStop 360 wired
PhoneNoobs said:
Your doing it wrong i can tell u how to fix it for android if anybody needs to know just msg me on here it takes a little while to explain I've already gone over it on another thread and the reason why is saying that has to do with permissioning but i dont even do it on terminal if yall need to know msg me
Click to expand...
Click to collapse
Have GameStop controller and would love to know how to do this easier. Do not have a computer, just a tablet and an otg cable. Any help would be greatly appreciated.

Kindle Fire 2 CM 11-XXX USB OTG

Hi guys I am new here and new to this whole rooting, custom ROM thing. This all started from a need of an android device to run an app for a motorcycle efi tuner. It connects through a USB cable and allows me to change some tuning parameters in the module. I have never owned an android device, but I did own a Kindle Fire 2. After doing some research I stumbled across tutorials on how to install CM and make it an android device....and that where I am at now.
I have successfully rooted and installed CM 11-20160815-NIGHTLY-otter2, android 4.4.4, Kernal version 3.0.72+
Now the problem I am facing is the use of the usb cable to link the tablet and module. I have a USB OTG cable and after some research it looked like I needed a powered cable, so I made one of those too. I have installed Stickmount, USB OTG helper and USB OTG Checker. Running the checker I see that my device has the USB OTG API.
The interesting part now is when I connect the powered cable to the module and Kindle it will open the app automatically but it says not connected. The weird part is that it detects it enough to open up the app. Also I have not been able to mount through stickmount.
I am not a developer and not familiar with a lot of the lingo so at this point I am stuck. I don't know what else to try its over my head at this point. A google search turns up very little on this, although I have seen youtube movies of it working so I guess its possible.
Any help would be greatly appreciated!
Anybody have any ideas? I don't have enough post to put this in the kindle forums is it possible for someone to move it there?
back to the top

Categories

Resources