Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xbox360 wired Controller - Right Config #145

Closed
BoBBer446 opened this issue Mar 18, 2017 · 6 comments
Closed

xbox360 wired Controller - Right Config #145

BoBBer446 opened this issue Mar 18, 2017 · 6 comments
Labels

Comments

@BoBBer446
Copy link

All Versions up to Day: Today
How i can config Xbox360 wired Controller?
There many different ways to config...
have i do step one this:
https://github.com/irtimmer/moonlight-embedded/wiki/Controllers-set-up

and step two:
https://github.com/wackerl91/luna/wiki/Controller-Configuration

or only one of the configs?

@wackerl91
Copy link
Owner

@BoBBer446
The controller config posted on Luna's Wiki is kind of outdated since it aimed at setting up the controller to work in both Kodi and moonlight. With OSMC / Kodi having a controller config tool on their own now, that's not necessary anymore.

In short, for any installations where you don't need controller hot-plugging just follow the steps listed in moonlight-embedded's Wiki and you should be fine.

@BoBBer446
Copy link
Author

Thank you for quick response!
Okay, I have to set up controller like descripted on moonlight-embedded right?
Then i config the input in Kodi direct.

But often the button x and y is not right.
On no man's sky is x=y and y=x
That's at Skyrim special edition too

Hitman runs great.

What I have to do on Luna controller setup mapping? Leaving it or run moonlight map one.map and press the buttons ?

Sorry for many questions

@wackerl91
Copy link
Owner

Either configure the X/Y swap directly when starting the driver like mchrbn did (note that you might need to re-run Kodi's controller configuration) or shut down Kodi, use moonlight's mapping command, start Kodi again and add the created mapping file to your controller using Luna's controller configuration screen.

I'm usually doing the latter since it always produced the desired outcome for me so far and moonlight takes care of any button translations necessary. Plus I can use the mapping file for all my X360 controllers without needing to remember to append any necessary button swaps.

As a general note, Luna's 'Create mapping' functionality is broken right now, so if you want to create one you should stick to moonlight's CLI. Only general controller configuration (selecting controllers, adding already created mapping files) works.

@BoBBer446
Copy link
Author

I have to add this:
xboxdrv --detach-kernel-driver --buttonmap du=dl,dl=du,dd=dr,dr=dd,x=y,y=x --silent
to
/etc/rc.local
?

I do this:

Clean OSM Install
config KODI/OSMC
sudo modprobe -r xpad
sudo nano /etc/modprobe.d/gamepad.conf and ADD this: blacklist xpad
sudo apt-get install xboxdrv

Then i type sudo xboxdrv, result:

osmc@osmc:~$ sudo xboxdrv
xboxdrv 0.8.5 - http://pingus.seul.org/~grumbel/xboxdrv/
Copyright © 2008-2011 Ingo Ruhnke <[email protected]>
Licensed under GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it under certain conditions; see the file COPYING for details.

Controller:        Microsoft Xbox 360 Controller
Vendor/Product:    045e:028e
USB Path:          001:004
Controller Type:   Xbox360

-- [ ERROR ] ------------------------------------------------------
 Error couldn't claim the USB interface: LIBUSB_ERROR_BUSY
Try to run 'rmmod xpad' and then xboxdrv again or start xboxdrv with the option --detach-kernel-driver.
osmc@osmc:~$ rmmod xpad
rmmod: ERROR: Module xpad is not currently loaded
osmc@osmc:~$

i try then
moonlight map xbox360.map

i config and i set this mapping to luna settings.

But for now i try to read manpage and find a solution that work for me :)

Thank you for helping me :)

@BoBBer446
Copy link
Author

Although the error comes, the controller works.

But also if I moonligt map four.map entries and instead of x then press y and instead of y then x it is exactly the same in the game. X=Y and Y=x

If i run
sudo xboxdrv --detach-kernel-driver --buttonmap du=dl,dl=du,dd=dr,dr=dd,x=y,y=x --silent

i geht the same issue:

xboxdrv 0.8.5 - http://pingus.seul.org/~grumbel/xboxdrv/
Copyright © 2008-2011 Ingo Ruhnke <[email protected]>
Licensed under GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it under certain conditions; see the file COPYING for details.

Controller:        Microsoft Xbox 360 Controller
Vendor/Product:    045e:028e
USB Path:          001:004
Controller Type:   Xbox360

-- [ ERROR ] ------------------------------------------------------
 Error couldn't claim the USB interface: LIBUSB_ERROR_BUSY
Try to run 'rmmod xpad' and then xboxdrv again or start xboxdrv with the option --detach-kernel-driver.
osmc@osmc:~$ rmmod xpad
rmmod: ERROR: Module xpad is not currently loaded

Do you know why this is so?

@wackerl91
Copy link
Owner

This discussion continues in #148.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants