HOW TO: Setup Xbox 360 Controller quickly in XBMC Live

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
waituna Offline
Junior Member
Posts: 9
Joined: Feb 2010
Reputation: 0
Post: #21
Had a few issues getting the above instructions to work, basically josephdyland's xboxdrv.sh when added to /etc/rc.local didn't appear to start soon enough for me - would only work if I restarted XBMC once my system had booted.

Next I tried draggy's init script, which initially didn't work either. Turns out that the script requires the screen command and my XBMCbuntu install didn't have the screen command installed, so

apt-get install screen

resolved my issue.
find quote
joeranjensen Offline
Senior Member
Posts: 256
Joined: Aug 2010
Reputation: 0
Location: Norway
Post: #22
Hi Im trying to follow this guide to set up my xbox 360 wireless controller. Im at the step where im supposed to Create a bash script that will start on system startup in a few steps.

Code:
touch ~xbmc/xboxdrv.sh

This is not working, I get "can not touch `~xbmc/xboxdrv.sh : No such file or directory..

Would the code be different since Im on xbmcbuntu and this guide is ment for xbmc live? Or, what else do I do wrong?

Thanks
find quote
draggy Offline
Member
Posts: 71
Joined: May 2008
Reputation: 0
Post: #23
~xbmc/xboxdrv.sh assumes that xbmc is the user that you use to run xbmc with. If you use a different user, change it to "~<user>/xboxdrv.sh" This also effects the last step "/home/xbmc/xboxdrv.sh" should be "/home/<user>/xboxdrv.sh"
(This post was last modified: 2012-05-03 22:21 by draggy.)
find quote
joeranjensen Offline
Senior Member
Posts: 256
Joined: Aug 2010
Reputation: 0
Location: Norway
Post: #24
(2012-05-03 22:01)draggy Wrote:  ~xbmc/xboxdrv.sh assumes that xbmc is the user that you use to run xbmc with. If you use a different user, change it to "~<user>/xboxdrv.sh" This also effects the last step "/home/xbmc/xboxdrv.sh" should be "/home/<user>/xboxdrv.sh"

thanksSmile That makes sense... Il try tomorrow, to drunk now.....
find quote
Samba123 Offline
Junior Member
Posts: 5
Joined: Mar 2011
Reputation: 0
Post: #25
Just a quick question on this.

If I wanted to just use my wired xbox360 controller to control emulators using advanced launcher and not xbmc at all do I just follow the install instructions installing the driver and start up but remove the step to map to the keymap?

So my xboxdrv.sh script would look like this?

Code:
#!/bin/bash
rmmod xpad
modprobe uinput
modprobe joydev
find quote
alexpigment Offline
Senior Member
Posts: 297
Joined: Jan 2009
Reputation: 8
Post: #26
(2012-05-10 18:24)Samba123 Wrote:  Just a quick question on this.

If I wanted to just use my wired xbox360 controller to control emulators using advanced launcher and not xbmc at all do I just follow the install instructions installing the driver and start up but remove the step to map to the keymap?

So my xboxdrv.sh script would look like this?

Code:
#!/bin/bash
rmmod xpad
modprobe uinput
modprobe joydev

No, you want to keep your script the same. You'll need to remove your keymap (joystick.Microsoft.Xbox.360.Controller.xml) IF you want to go down that route. Still, I think you might find that navigating around XBMC with the controller is nice, especially in large folders. If I recall, advanced launcher has a specific option for automatically suspending XBMC while in an emulator. Other tutorials I've seen make a script for killing XBMC and resuming it seemless when entering/exiting an emulator.
find quote
JaniSan Offline
Junior Member
Posts: 2
Joined: Apr 2011
Reputation: 0
Post: #27
Hi.

Could somebody tell me what button is ok/enter in dvd/bluray menu in eden.
In dharma i enable dvd-menu, make my selection and press A-button
In eden a-button enable pause.

press by press tutorial and/or issue fixing Keymap would be awesome Smile
find quote
alexpigment Offline
Senior Member
Posts: 297
Joined: Jan 2009
Reputation: 8
Post: #28
(2012-05-13 16:03)JaniSan Wrote:  Hi.

Could somebody tell me what button is ok/enter in dvd/bluray menu in eden.
In dharma i enable dvd-menu, make my selection and press A-button
In eden a-button enable pause.

Actually, this has been a problem with XBOX360 controllers since at least Dharma:

"PPS - KNOWN BUG : DVD Menus do not appear to work properly with this setup, UNLESS you hit left shoulder button first to bring up the "now playing" on screen display. LEAVE THE DISPLAY UP and you can navigate through menus, but if you drop the display you appear to lose control again."
- from this old thread: http://forum.xbmc.org/showthread.php?tid=57304

Not sure if that workaround works anymore, but it's proof that it's a long-standing issue. For what it's worth, it does make sense why this issue happens. There's probably no special keymapping for DVD menus when compared to DVD playback.
find quote
haywire Offline
Junior Member
Posts: 13
Joined: Sep 2010
Reputation: 0
Post: #29
I'm using this xboxdrv method with xbox 360 wireless controller and following fresh install of
http://xbmcfreak.binkey.nl/xbmcbuntu-12....a01-v1.iso

Everything seems to work perfectly with the provided instructions with one exception.

The triggers don't work properly
1. they don't work at all when scrolling through menus
2. Trying to fast forward/rewind in movies and music. Once the left or right trigger pressed never goes back to play and stays stuck on FF/RW (if i pull it hard it goes to 32x, upon release it drops down to 8x. - but never back to play. Pressing the trigger in the opposite direction does the same thing, but in reverse and never goes back to play)



i suspect i need to alter either the deadzone or the filter settings. (is this correct?)


at the bottom of the /usr/share/doc/xboxdrv/examples/xbmc.xboxdrv file i noticed the below code

# The resp filter moves the neutral position to zero to work around a
# bug in XBMC, that causes bogus events when neutral position is
# elsewhere. It loses a bit of precision in the trigger as result, but
# that isn't noticable.
LT^resp:127:255=ABS_Z
RT^resp:127:255=ABS_RZ

I suspect modifying these may be able to resolve my trigger issues?
the manual reads

resp, response:VALUES:...
The response curve filter allows you to completely change the
way an axis reacts. The filter takes a list of VALUES that are
then linearly interpolated and spread across the full range of
the axis. An example would look like this:

xboxdrv \
--ui-axismap x1^resp:-32768:-4000:0:4000:32767

Here the X1 axis is manipulated so that it will have a lower
sensitivity in the center and a higher one on the outside.
(This post was last modified: 2012-11-13 07:21 by haywire.)
find quote
Firas.AlShafei Offline
Junior Member
Posts: 34
Joined: Apr 2011
Reputation: 0
Post: #30
@Draggy - there's an error in your init script

if [ -z "$(lsmod | grep uinputl)" ]; then

It's looking for uinputl not uinput - this causes that if statement to always be true

Smile

Like my post? please up my reputation, it faced the wrath of X3lectric over this post
[HOW-TO][FRODO] Configure XBOX 360 Wireless Controller
[HOW-TO][Frodo] XBOX DVD Remote/Dongle
find quote
Post Reply