yashsingh1/xdaforums huggingface dataset:
[Nexus 7 General] Cybore:
Playing like 2.5 hours of dead trigger with the wireless controller and brightness at low dropped caused my battery life to go from 50% all the way to zero. The N7 suddenly said powering off, which I thought was weird since it never showed the popup warning of low battery. In the battery stats, it said dead trigger consumed 17% of the battery. I also had high battery usage for media server about 15%, i wonder if that's related to the otg setup?

How much battery life are you guys getting on dead trigger with the wireless 360 controller setup?
[Nexus 7 General] vzwty:
I noticed the same while playing. I'm pretty sure the media server is the otg USB as that's what mine said was using a lot of battery.
[Nexus 7 General] eawooten:
Nvm. Off topic.
[Nexus 7 General] Mindemon:
hey i was wondering if you can help me i did excatly as you said in the guide unfortunately i didn't have 0291.kl file so i downloaded in the link you provided managed to copy it to the folder but when i try the command: chmod 644 Vendor_045e_Product_0719.kl it says no file or dictionary which is weird because i can see the file getting created when i type ls nothing seems to work

here the log:

u0_a116@android:/ $ export PATH=/data/local/bin:$PATH

u0_a116@android:/ $ su

u0_a116@android:/ # cd /system/usr/keylayout/

u0_a116@android:/system/usr/keylayout # mount -o remount,rw /system

u0_a116@android:/system/usr/keylayout # ls

AVRCP.kl

Generic.kl

Vendor_045e_Prodcut_0719.kl

Vendor_045e_Product_028e.kl

Vendor_045e_Product_0291.kl

Vendor_046d_Product_c216.kl

Vendor_046d_Product_c294.kl

Vendor_046d_Product_c299.kl

Vendor_046d_Product_c532.kl

Vendor_054c_Product_0268.kl

Vendor_05ac_Product_0239.kl

Vendor_22b8_Product_093d.kl

gpio-keys.kl

qwerty.kl

tegra-kbc.kl

u0_a116@android:/system/usr/keylayout # chmod 644 Vendor_045e_Product_0719.kl

Unable to chmod Vendor_045e_Product_0719.kl: No such file or directory

10|u0_a116@android:/system/usr/keylayout #
[Nexus 7 General] sleeplessninja:
if you type in the terminal : cat Vendor_045e_Product_0719.kl

do you see the text of the file?
[Nexus 7 General] AsymmetrySeven:
Hi Sleepless,

I'm hoping you can help with this particular issue with the wireless dongle and Dead Trigger (I don't have any other Tegra games to test with -- I'm assuming the issue persists for them as well). I'm using an Acer Iconia A700 (rooted), ICS 4.0.4.

This problem doesn't exist on emulators, only Dead Trigger (and presumably other Tegra games where you can't explicitly map the input).

Ok, so the first time I plugged in the dongle, the "created profile xxx_0791.kl" popped up quickly and I booted up Dead Trigger. I was able to use the controller without having to root or do anything special. Both sticks worked, all buttons worked, with the exception of the game recognizing the D-Pad as the same buttons as the X,Y,A,B. Not a big deal, I was just happy it worked.

Second run of the game, the right analog stick stopped working. I tried re-pairing, different controllers, no good. I was planning on rooting anyway, so I went ahead and rooted it.

After rooting, I started up Dead Trigger, and lo and behold, I had both analog sticks working again.

I started it a second time and the right stick stopped working again.

I then followed your steps, first making the xxx_0791.kl file just like the default; I got the 180 spin error (as expected). After that, I replaced it with the version of the file you posted. The right analog stick didn't register for aiming control.

Notice, the stick still provided input. This is what Dead Trigger reported (in the customize gamepad section):

Right stick Up = Joystick Axis 4+

Right stick Down = Joystick Axis 4-

Right stick Left = Joystick Axis 3+

Right stick Right = Joystick Axis 3-

Left stick Up = Joystick Up

Left stick Down = Joystick Down

Left stick Right = Joystick Right

Left stick Left = Joystick Left

Left Trigger = Joystick Axis 5-

Right Trigger = Joystick Axis 6-

This jibes with the key layout file's description for sticks, but the right analog never seemed to be picked up properly.

Do you have any idea as to why this might be happening? Is there a way to figure out what Dead Trigger is expecting for right analog stick input and re-map it?

Thanks for any help you can provide.
[Nexus 7 General] SWFlyerUK:
Where can I can the OTG cable please?
[Nexus 7 General] sleeplessninja:
If you go to /system/usr/keychars (make sure /system is remounted just like the /system/usr/keylayout ) Do you have a Vendor_045e_Product_0719.kcm . What could be the case is .kcm generic file is a little bit different an interpreting the controls differently (this is a hunch). I will attach the file in the OP so you can add it. Please let me know if it works. You need to apply the permissions with chmod for this just like the keylayout file.
[Nexus 7 General] black_eagle5000:
Will it work with wire gamepad, like Nazar, Xbox 360 Wire or chinese gamepad?
[Nexus 7 General] sleeplessninja:
Amazon is your best bet. If you search for OTG cable many kinds should show up. There are threads for OTG cables that are confirmed working, so check that though in the Nexus 7 Accessory thread. But my motorola OTG cable works wonderful but is one of the more expensive.
[Nexus 7 General] sleeplessninja:
the .KL file i have attached is for the official xbox wired gamepad. It seems like a hit or miss from seeing the forum members post on whether your system has it. But you should be able to plug in play with the wired controller ( I was able to ) however if the file isn't there, you need to root and manually place it. At least for this solution to work.
[Nexus 7 General] potentiality:
Does this have something to do with the otg USB cord as well? I have tried 2 controllers. One being the Xbox wireless the other being a wired Thrust master Run N Drive. BOTH have the second analog stick up/down axis viewpoint stuck down in ShadowGun. Even though their site lists the Xbox as being compatible. I don't have a spinning viewport, though if it was the other axis I'm sure it would be.
[Nexus 7 General] AsymmetrySeven:
I put the files in their corresponding places and it still didn't work.

The buttons had no effect, but the sticks were reported as working. From the customize gamepad window, the sticks and triggers still showed input (I could still assign actions such as fire and reload to the triggers and sticks) but I was still unable to aim. The buttons were unassignable (and the D-Pad, as they are just buttons).

However, I did find a solution -- temporarily.

Microsoft was being tricky, it appears. There is another product ID that the controller corresponds to; Product_028e (in the layout file it's listed as Xbox 360 USB Controller).

I copied your file to xxx_product_028e.kcm and xxx._028e.kl, and rebooted. The first boot of Dead Trigger worked; I assigned every button (except for the D-Pad, it didn't work), and I was able to play properly.

I quit Dead Trigger. I then unplugged the wireless dongle, plugged it back in, and tried Dead Trigger again. The right analog stick stopped working.

I checked the gamepad customization menu, and all the settings were cleared, as if I had reset to default (but I didn't).

I'm kind of at a loss. I have kcm and kl files for three models of controllers; the 0291, 0719 and 028e, all are the same (kcm and kl respectively), all with appropriate permissions.

The fact that it worked, once, after a reboot, and then not, really irks me. I'm kind of at a loss here.
[Nexus 7 General] SWFlyerUK:
So do you have to have the Xbox 360 Dongle?
[Nexus 7 General] shadowmonkey1974:
From what I have heard yes.Microsoft use there own stuff to send and receive a signal so nexus WiFi or Bluetooth won't work.I was hoping that I could just pair up my 360 controller and good to go. Shame such a shame
[Nexus 7 General] Southrncomfortjm:
Work with Onlive?

OP, thanks putting this together!

A few questions:

(1) How does using the receiver affect battery life? I've read that its a real battery drainer.

(2) I want to use an Xbox controller with Onlive. Can anyone confirm that this setup will work with Onlive games like Saints Row The 3rd? (Currently on sale for $12.50 by the way).

(3) If this system doesn't work with onlive, does anyone know if the I can connect a wireless controller with with the play and charge kit USB charger and OTG connector?

(4) If not any of the above, will a regular wireless controller work with Onlive on android?

Thanks!

Soco
[Nexus 7 General] BrianDigital:
Just a wired 360 controller or the onlive controller will work with it

However there is a modified apk for onlive that accepts any gamepad. I'd link but at work and don't have the time to pull it up. If I remember I'll either link or attach the apk later
[Nexus 7 General] Southrncomfortjm:
I think the difference in choosing for me will be whether the receiver drains the N7's battery too much. I guess I'll just stick with the wired controller since my main source for gaming on the N7 will be Onlive.
[Nexus 7 General] ult_nrg:
Mine is just refusing to work altogether.

I have just a generic JB tab and had the 028e.kl file as Xbox controller. I now have all three; 0291, 0719 and 028e (both .kl and .kcm) in appropriate folders with all permissions set. Multiple reboots and the tab just not recognise the controller at all. (Even tried the USB/BT Joystick Center 6 app from market; I do a scan and just nothing comes up).

The OTG cable works fine (have it on a kb/mouse without a problem) and the xbox controller works in my pc, so nothing appears faulty.

When I plug the wireless adapter in USB the solid light comes up and if I sync the controller it pairs, android just refuses to acknowledge the device
[Nexus 7 General] spengineer:
oh man, gonna have to try this out. right after i can get a wireless adapter. :P
[Nexus 7 General] Chris Sweetapple:
How to copy Vendor ID

Hi

I have got all the things I need. Wireless Xbox Controller, Reciever, OTG Cable. Galaxy tab 10.1 Rooted. , I have done all the steps in terminal but. I am unsure on how to get your vendor file that I'm missing. ( 0291 ) copied into the system folder. Or do the permission thing. I have the file on my tablet and unzipped.

Any help would be greatly appreciated.

Cheers
[Nexus 7 General] injection18:
D-pad, triggers and Right stick not recognized in emulators

Hello, thank you for this topic, I played Dead Trigger with my Wireless Xbox 360 controller, and it works perfeclty !

All buttons, both analog sticks, d-pad and triggers work.

However, I'd like to use it to play emulators (Snesoid, N64oid, FPSE ...), but only the Left stick, A,B,X,Y,LB,RB are recognized.

I can't use the D-pad, analog triggers or Right stick ...

Is there a solution ?

Could these controls be remmaped to keyboard or something like that by an existing app ?

Thank you.
[Nexus 7 General] AdyCarter:
Hmmm it looks like we might be able to re-purpose this solution for the OnLive Universal Controller.

It works fine in Onlive (obviously) but it too suffers from the spinning issues in titles like Shadowgun,

If memory serves the OnLive pad uses Vendor_2378_Product_100a.kl hypothetically overwriting this with your Vendor_045e_Product_0291.kl might well fix this issue.

I'll give it a shot when I get home, unless of course anyone feels like trying in the mean time?
[Nexus 7 General] AdyCarter:
OK that doesn't quite work.

Logcat when connecting an OnLive Pad:

D/BluetoothService( 347): allowIncomingProfileConnect: 00:24:1C:9A:13:83 : true
: 1727203784
D/BluetoothEventLoop( 347): onAgentAuthorize(/org/bluez/3231/hci0/dev_00_24_1C_
9A_13_83, 00001124-0000-1000-8000-00805f9b34fb) = true
D/EventHub( 347): No input device configuration file found for device 'OnLive W
ireless Controller'.
D/BluetoothEventLoop( 347): Input Device : Name of Property is: Connected
D/CachedBluetoothDevice(23966): onProfileStateChanged: profile HID newProfileSta
te 2
I/EventHub( 347): New device: id=9, fd=315, path='/dev/input/event3', name='OnL
ive Wireless Controller', classes=0x80000141, configuration='', keyLayout='/syst
em/usr/keylayout/Generic.kl', keyCharacterMap='/system/usr/keychars/Generic.kcm'
, builtinKeyboard=false, usingSuspendBlockIoctl=true, usingClockIoctl=false
I/InputReader( 347): Device added: id=9, name='OnLive Wireless Controller', sou
rces=0x01000511
I/BluetoothDeviceProfileState( 347): Entering ACL Connected state with: 102
D/BluetoothInputProfileHandler( 347): InputDevice state : device: 00:24:1C:9A:1
3:83 State:0->2

Its not giving me any clue as to the Vendor/Product ID i'd need?
[Nexus 7 General] Dazzy040989:
I had the same problem as Mindemon and have tried "cat Vendor_045e_Product_0719.kl" and do see text from the file
[Nexus 7 General] fabien774:
Works perfectly, very good job! Thanks a lot!!

(Galaxy S3 Cyanogenmod9)
[Nexus 7 General] mousemeat:
Xbox 360 wireless receiver

For those like me that uses the xbox 360 wireless receiver :

The wireless receiver used to work perfectly on gingerbread 2.3 , but i doesnt work on Ice Cream Sandwich .

I found the file " Xbox_360_Wireless_Receiver.gl " Gingerbread and copied and pasted on the same location on the Icecream.

You can do this on any custom roms.

I found this easier to do than the procedure on this thread.

Now all the buttons work , like it did on Gingerbread. (both analogs too)

Xbox_360_Wireless_Receiver.gl can be found on /system,usr,keylayout on Gingerbread.

I can't post links to download the file or attach files yet sorry.
[Nexus 7 General] ppmeis:
I couldn't found this file in any GingerBread Rom I donwloaded :/.
[Nexus 7 General] mousemeat:
Xbox 360 wireless receiver

Here is the file , I hope you all manage to work it out!Any question just ask man...
[Nexus 7 General] ppmeis:
OK I try this one and it doesn't work, camera issue and digital pad doesn't work.
[Nexus 7 General] shizomou:
Went over this again and again and wasn't able to get it working. Gave up and just use my ps3 controller.
[Nexus 7 General] Visa Declined:
I've found that just using a wired xbox controller works so well that I have been sticking with that. Games like Asphalt 7: Heat are so much better with a controller!
[Nexus 7 General] SteppingSplash:
Does it have to be an official Microsoft branded wireless adapter? Amazon has one for cheap, but it's definitely a third party. I have the official wireless controller that came with my Xbox, just hoping this will work!
[Nexus 7 General] grogcw:
A'right, so I couldn't make it work. :laugh:

I followed all the tutorial on my "rooted and everything" Jelly Bean Galaxy S3, but failed. :cool:

I also tried the others methods with the kcm and gl files, but as I was searching around, I noticed that I have a "[...]_Product_028e.kl" file wich is already a xbox controller declaration. :silly:

Isn't here any workaround on the peripheral ID "file-renaming process" specific for the S3 to do by logcating or something ? (couldnt read it / too many infos :crying:) [I need a tuto / n00b detected / sorry...]
[Nexus 7 General] south69_dallas:
I have wireless controllers and I have the charge and play cable that plugs into the USB on the Xbox when my batteries are dead. So anyways if I follow the instructions on post 1 can I plug the charge n play cable into the otg and play as a"wired controller"?
[Nexus 7 General] indbeegee:
No. Play&Charge Kit has no data function. Just loading
[Nexus 7 General] ComputersWelcome:
Nice job, I assume that this is a lot easier with a wired Xbox controller, as I own bother wireless and wired. But thanks for info and video.
[Nexus 7 General] ghori1989:
Would this work on the htc one x?
[Nexus 7 General] ashclepdia:
That would bE great

If i could even get THAT toeo work

I am going insane

What exactly do i need to get this working

I feel like I'm missing a file somewhere for it to even recognize that my controller is even plugged into the otg on the nexus 7

IF ANYONE Is willing to help me out here, please please please!!!! Let me know.

I've been going insane googling, watching YouTube vids and trying to find out

What exactly I'm missing to even be able to use this controller hooked up to NY nexus 7 through usb otg cable.

I see EVERYWHERE people saying to just plug it in and go. But that doesn't work for me. On any game. At all

If ANYONE can hit me with some tips I'd be greatly appreciative.

I don't need someone to hold my hand step by step AT ALL

i just cannot figure this out and it is KILLING ME

Thanks, and sorry for slight hijack, figured y'all would know the best what i need to do here
[Nexus 7 General] lukems:
Afterglow AX1 controller

Hello all,

Many thanks to OP, got my *unofficial* controller working just fine!

A bit more info:

- I bought an unofficial, Afterglow AX.1 controller (exactly same layout as xbox controller)

- I connected it to PC and used USBView to check its Product ID and Vendor ID

(I couldn't get any logcat to work at all)

- I copied the original xbox controller .kl file (see OP), renamed it to suit my controller

Vendor_045e_Product_0291.kl to Vendor_0e6f_Product_0113.kl

- Copied both files into /system/usr/keylayout/

- Changed priv's to 644

- Rebooted and worked fine!

Note, when playing Shadowgun, I could not start the app with controller connected as it would not open, I had to connect the controller just before the loading screen (:s)

---------- Post added at 05:56 PM ---------- Previous post was at 05:50 PM ----------

What controller are you using?

I suggested downloading USBView and checking the Product ID and Vendor ID just to be certain.

Once you have those, take the original .kl file from OP, make a copy and rename it to reflect your controller.

Put them both in /system/usr/keylayout/ and give them chmod 644 (as per OP instructions)

Reboot device.
[Nexus 7 General] zulu99:
If you want more information, directly from Google, on how to customize your keylayout, read this http://source.android.com/tech/input/key-layout-files.html

If you want same customizations for same games you can read in the DroidMote thread http://xdaforums.com/showthread.php?t=1292627

You can customize the DroidMote keylayout file, the Wireless Xbox 360 Controller keylayout file and all other controllers keylayout file likewise. ;)
[Nexus 7 General] Sten1234:
any other devices

Does this work on any android phones or is it only for tablets
[Nexus 7 General] krazeecracker:
This :thumbup:
[Nexus 7 General] 18th.abn:
Way awesome!!!! Thank you!!!
[Nexus 7 General] dragontology:
Is this N7 specific?

I have (basically) a Photon 4G. I have the HD dock, which has 3 USB ports, but when I connect my wired 360 controller, the ring lights just flash like it's not paired. I don't know how to pair it, if I can at all.

I don't have the wireless controller dongle. It's $60 last I checked, but a PS3 controller (or a knock-off, I don't care if it says Sony on it) plus the Sixaxis app is cheaper. I would prefer to use a wired controller, though.
[Nexus 7 General] psycho2097:
I play games mostly on my laptop,so I own a logitech f710 controller. Its the very best pc controller out there, emulates both the xbox controller(for "games for windows" titles) and is programmable for legacy games. Now I recently thought of trying it out on shadowgun on my gnex, n guess wat? works﻿ perfectly n natively on my gnex n n7(both 4.1.2). no camera spin, no file modification, not even root required, heck not even any app required, android does everything by itself. perfect huh? hell android even had options for touch mapping...havent tried it out yet, gonna try it with mc3.

Just fyi, not an advertisement.
[Nexus 7 General] czonin:
I have a wired 360 controller and am getting the spin bug as well. Is the process to fix it the same?
[Nexus 7 General] ashclepdia:
I must be going insane cuz i cant even get the controller to work AT ALL plugged in......Lol

---------- Post added at 10:39 AM ---------- Previous post was at 10:33 AM ----------

I'm using xbox 360 controller(black one) plugged into usb OTG

Everything i read says it should just work by plugging it in like that.

Didn't see your response, thanks, I'll give this a shot, i don't think my device is even seeing that the controller is hooked up tho. it charges the controller and nothing else lol. I'm thinking maybe something wrong with my cables now.

Thanks
[Nexus 7 General] lukems:
Mine was the same, nothing came up with logcat, no indication that it had a controller, however i did get the camera spin within games, if the solution proposed by OP doesn't work, I would try find a test to check your USB OTG cable works.
[Nexus 7 General] ashclepdia:
I hooked it up to my computer, and did lsusb, and it shows up, but with 028f as the device id, i tried renaming to match, but still doesn't respond as if i have a controller plugged in.

I'm now almost 99% certain it's my OTG cable.

Thanks guys!
[Nexus 7 General] lukems:
Very odd, OTG cables being as cheap as they are on eBay, I'd try another!
[Nexus 7 General] szteto:
Could you upload your Vendor_045e_Product_0719.kl file please? I have the F310 and I cannot get this to work for the life of me. As I understand it the F710 and the F310 are basically the same controller, just the 710 is wireless and has vibration. If you can't find the files, uploading the entire keychars/keylayout should do and I'll just merge it with mine.

Thanks :D
[Nexus 7 General] mr.gonzoo:
Hello guys,

I'm considering buying a USB Receiver dongle, but the original receiver's prize from Microsoft (about 30$ with shipping to Poland&tax) really bothers me. Well, I've done some research and found a chinese alternative that costs much more lower. Now I'm wondering if that one works well on Nexus7. Has anyone tried it already?
[Nexus 7 General] tangfj:
Does anyone know if the Xbox 360 Play and Charge cable will work? (http://amzn.com/B0011E4J7O) It's only about $4-5 on Amazon so I was wondering if this might be a cheaper alternative for those already owning a wireless controller?
[Nexus 7 General] AdyCarter:
It will not, it conveys no data
[Nexus 7 General] Garridon:
Does anyone know how to get the wireless mic working? The old one. My phone gets hot sometimes so the mic would be nice without spending money
[Nexus 7 General] blott:
Do i have to buy a wireless dongle designed to be used with a pc or can i use the wireless networking adapter thingy that i go with my xbox?
[Nexus 7 General] sayeef:
Can anyone help me out with camera spin on my PS2 controller?

I have the logcats in the thread I made

http://xdaforums.com/showthread.php?t=1959506
[Nexus 7 General] adirbenavi3:
problem...

thanks for the guide!

but still, i have a problem. i got a new tog cable, and checked it with a mouse, and it works and respondes great.

when i connect the reciever via the otg cable, it lights up, sync with the controller in seconds, but the controller

doesn't do anything. in your videos you can move the screen, and when i press anything on the controller

it doesn't do anything on the device itself.

any ideas?

thanks a lot!
[Nexus 7 General] FrancoRM:
thanks to your post I was able to succesfully use my wireless xbox controller with my nexus 7, but I'm struggling with LT and RT buttons in fpse, they do not seem to be set on the pad configuration menu... did any of you manage to do it?
[Nexus 7 General] ryanrudolf:
Thanks for the share. If ever i come across a friend with xbox 360 issues this will be helpful.

I also have the logitech f710, works ok out of the box. No camera spin, all buttons are working, including all the shoulder buttons. No camera spin. On ICS i did encounter the camera spin, didnt know how to fix it and when I got the N7 running JB camera spin is not an issue. F710 works flawlessly, GTA, shadowgun and a lot of the .EMUs. :)
[Nexus 7 General] BTr_RJ:
It worked for me, but there are some flaws...

1- It is less responsive mainly in analog sticks than using USB XBOX controller (yes, i have one here and i´m comparing, it runs WELL better on analogs)

2- It restarts my N7 if i put the receiver off the otg cable.

Is there any way to fix that?
[Nexus 7 General] eldigio:
sleeplessninja :good:

Thanks Thanks Thanks...!!!

Its working amazing in my mini android MK808

My video review is in my youtube channel eldigio

Thanks for your excellent job...!!! :good: