My Xbox 360 Wireless config - As you have configured - AkelarreZ - 14th Apr, 2013 08:03 AM
Hello.
First of all. This is the accessory I have. And I want to share my config. And you see how you have it configured.
![Image: http://ic.tweakimg.net/ext/i/productsurvey/8087/8930.jpg](http://ic.tweakimg.net/ext/i/productsurvey/8087/8930.jpg)
I created a folder called xbox in /home/pi/ with the following contents:
loadxbox.sh -- Run chmod 777 loadxbox.sh
mapping2
Inside loadxbox.sh:
xboxdrv --config /home/xbian/xbox/mapping --silent &
Inside mapping:
# XBMC Configuration
# ==================
#
# This configuration file that with XBMC by emulating a wireless
# Xbox360 controller connected to the xpad kernel driver. It uses the
# configuration files that come with XBMC, so it should work out of
# the box without any further configuration of XBMC.
#
#
[xboxdrv]
ui-clear = true
extra-devices=false
extra-events=false
deadzone=6000
device-name = "Microsoft Xbox 360 Wireless Controller (PC)"
[ui-buttonmap]
A=KEY_K
B=KEY_L
X=KEY_J
Y=KEY_I
DU=KEY_UP
DD=KEY_DOWN
DL=KEY_LEFT
DR=KEY_RIGHT
START=KEY_O
GUIDE=KEY_M
BACK=KEY_U
RB=KEY_Y
LB=KEY_R
TL=KEY_S
TR=KEY_G
RT=KEY_E
LT=KEY_Q
[ui-axismap]
x1=KEY_A:KEY_D
x2=KEY_F:KEY_H
y1=KEY_W:KEY_X
y2=KEY_T:KEY_B
# 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
# EOF #
Next Step modify rc.local:
nano /etc/rc.local
Above exit 0, paste: sh /home/pi/xbox/loadxbox.sh
Create a file named keyboard.xml and put in /usr/local/share/xbmc/system/keymaps:
<!-- This file contains the mapping of keys (gamepad, remote, and keyboard) to actions within XBMC -->
<!-- The <global> section is a fall through - they will only be used if the button is not -->
<!-- used in the current window's section. Note that there is only handling -->
<!-- for a single action per button at this stage. -->
<!-- For joystick/gamepad configuration under linux/win32, see below as it differs from xbox -->
<!-- gamepads. -->
<!-- The format is: -->
<!-- <device> -->
<!-- <button>action</button> -->
<!-- </device> -->
<!-- To map keys from other remotes using the RCA protocol, you may add <universalremote> blocks -->
<!-- In this case, the tags used are <obc#> where # is the original button code (OBC) of the key -->
<!-- You set it up by adding a <universalremote> block to the window or <global> section: -->
<!-- <universalremote> -->
<!-- <obc45>Stop</obc45> -->
<!-- </universalremote> -->
<!-- Note that the action can be a built-in function. -->
<!-- eg <B>XBMC.ActivateWindow(MyMusic)</B> -->
<!-- would automatically go to My Music on the press of the B button. -->
<!-- Joysticks / Gamepads: -->
<!-- See the sample PS3 controller configuration below for the format. -->
<!-- -->
<!-- Joystick Name: -->
<!-- Do 'cat /proc/bus/input/devices' or see your xbmc log file to find the names of -->
<!-- detected joysticks. The name used in the configuration should match the detected name. -->
<!-- -->
<!-- Button Ids: -->
<!-- 'id' is the button ID used by SDL. Joystick button ids of connected joysticks appear -->
<!-- in xbmc.log when they are pressed. Use your log to map custom buttons to actions. -->
<!-- -->
<!-- Axis Ids / Analog Controls -->
<!-- Coming soon. -->
<keymap>
<global>
<keyboard>
<k>Select</k>
<l>Back</l>
<j>FullScreen</j>
<i>Queue</i>
<r>ContextMenu</r>
<y/>
<o>XBMC.ActivateWindow(PlayerControls)</o>
<u>PreviousMenu</u>
<left>Left</left>
<right>Right</right>
<up>Up</up>
<down>Down</down>
<s>Screenshot</s>
<g>XBMC.ActivateWindow(ShutdownMenu)</g>
<q>ScrollUp</q>
<e>ScrollDown</e>
<f>AnalogSeekBack</f>
<h>AnalogSeekForward</h>
<t>VolumeUp</t>
<b>VolumeDown</b>
</keyboard>
</global>
<Home>
<keyboard>
<y>XBMC.Skin.ToggleSetting(HomeViewToggle)</y>
</keyboard>
</Home>
<MyFiles>
<keyboard>
<i>Highlight</i>
</keyboard>
</MyFiles>
<MyMusicPlaylist>
<keyboard>
<i>Delete</i>
<y>Back</y>
</keyboard>
</MyMusicPlaylist>
<MyMusicPlaylistEditor>
<keyboard>
<i>Queue</i>
</keyboard>
</MyMusicPlaylistEditor>
<MyMusicFiles>
<keyboard>
<i>Queue</i>
<y>Playlist</y>
</keyboard>
</MyMusicFiles>
<MyMusicLibrary>
<keyboard>
<i>Queue</i>
<y>Playlist</y>
</keyboard>
</MyMusicLibrary>
<FullscreenVideo>
<keyboard>
<k>Pause</k>
<l>Stop</l>
<i>AspectRatio</i>
<y>CodecInfo</y>
<r>Info</r>
<u>SmallStepBack</u>
<o>OSD</o>
<q>AnalogRewind</q>
<e>AnalogFastForward</e>
<left>StepBack</left>
<right>StepForward</right>
<up>BigStepForward</up>
<down>BigStepBack</down>
</keyboard>
</FullscreenVideo>
<FullscreenLiveTV>
<keyboard>
<left>PreviousChannelGroup</left>
<right>NextChannelGroup</right>
<up>ChannelUp</up>
<down>ChannelDown</down>
</keyboard>
</FullscreenLiveTV>
<FullscreenInfo>
<keyboard>
<o>OSD</o>
<y>CodecInfo</y>
<r>Back</r>
<q>AnalogRewind</q>
<e>AnalogFastForward</e>
</keyboard>
</FullscreenInfo>
<PlayerControls>
<keyboard>
<o>Back</o>
</keyboard>
</PlayerControls>
<Visualisation>
<keyboard>
<k>Pause</k>
<l>Stop</l>
<i>XBMC.ActivateWindow(VisualisationPresetList)</i>
<y>CodecInfo</y>
<r>Info</r>
<o>OSD</o>
<u>LockPreset</u>
<q>AnalogRewind</q>
<e>AnalogFastForward</e>
<left>SkipPrevious</left>
<right>SkipNext</right>
<up>NextPreset</up>
<down>PreviousPreset</down>
</keyboard>
</Visualisation>
<MusicOSD>
<keyboard>
<o>Back</o>
<y>CodecInfo</y>
<r>Info</r>
<q>AnalogRewind</q>
<e>AnalogFastForward</e>
</keyboard>
</MusicOSD>
<VisualisationSettings>
<keyboard>
<o>Back</o>
<q>AnalogRewind</q>
<e>AnalogFastForward</e>
</keyboard>
</VisualisationSettings>
<VisualisationPresetList>
<keyboard>
<o>Back</o>
<i>Back</i>
<q>AnalogRewind</q>
<e>AnalogFastForward</e>
</keyboard>
</VisualisationPresetList>
<SlideShow>
<keyboard>
<k>Pause</k>
<l>Stop</l>
<i>Rotate</i>
<j>ZoomNormal</j>
<y>CodecInfo</y>
<r>Info</r>
<e>NextPicture</e>
<q>PreviousPicture</q>
<left>PreviousPicture</left>
<right>NextPicture</right>
<up>ZoomIn</up>
<down>ZoomOut</down>
<!--<leftthumbstick>AnalogMove</leftthumbstick>-->
<u>Stop</u>
</keyboard>
</SlideShow>
<ScreenCalibration>
<keyboard>
<!--<leftthumbstick>AnalogMove</leftthumbstick>-->
<k>NextCalibration</k>
<y>ResetCalibration</y>
<r>NextResolution</r>
</keyboard>
</ScreenCalibration>
<GUICalibration>
<keyboard>
<!--<leftthumbstick>AnalogMove</leftthumbstick>-->
<k>NextCalibration</k>
<y>ResetCalibration</y>
</keyboard>
</GUICalibration>
<VideoOSD>
<keyboard>
<o>Back</o>
<y>CodecInfo</y>
<r>Info</r>
<q>AnalogRewind</q>
<e>AnalogFastForward</e>
</keyboard>
</VideoOSD>
<VideoMenu>
<keyboard>
<i>AspectRatio</i>
<l>Stop</l>
<o>OSD</o>
<r>Info</r>
<y>CodecInfo</y>
<q>AnalogRewind</q>
<e>AnalogFastForward</e>
</keyboard>
</VideoMenu>
<OSDVideoSettings>
<keyboard>
<j/>
<i>AspectRatio</i>
<o>Back</o>
<y>CodecInfo</y>
<r>Info</r>
<q>AnalogRewind</q>
<e>AnalogFastForward</e>
</keyboard>
</OSDVideoSettings>
<OSDAudioSettings>
<keyboard>
<j/>
<i>AspectRatio</i>
<o>Back</o>
<y>CodecInfo</y>
<r>Info</r>
<q>AnalogRewind</q>
<e>AnalogFastForward</e>
</keyboard>
</OSDAudioSettings>
<VideoBookmarks>
<keyboard>
<j/>
<i>Delete</i>
<o>Back</o>
<q>AnalogRewind</q>
<e>AnalogFastForward</e>
</keyboard>
</VideoBookmarks>
<MyVideoLibrary>
<keyboard>
<y>Delete</y>
</keyboard>
</MyVideoLibrary>
<MyVideoFiles>
<keyboard>
<i>Queue</i>
<y>Playlist</y>
</keyboard>
</MyVideoFiles>
<MyVideoPlaylist>
<keyboard>
<i>Delete</i>
<y>Back</y>
</keyboard>
</MyVideoPlaylist>
<VirtualKeyboard>
<keyboard>
<o>Enter</o>
<l>BackSpace</l>
<i>Shift</i>
<j>Symbols</j>
<q>CursorLeft</q>
<e>CursorRight</e>
</keyboard>
</VirtualKeyboard>
<ContextMenu>
<keyboard>
<r>Back</r>
</keyboard>
</ContextMenu>
<Scripts>
<keyboard>
<y>info</y>
</keyboard>
</Scripts>
<NumericInput>
<keyboard>
<l>BackSpace</l>
<o>Enter</o>
<q>SkipPrevious</q>
<e>SkipNext</e>
</keyboard>
</NumericInput>
<GamepadInput>
<keyboard>
<o>Stop</o> <!-- Enter Password -->
</keyboard>
</GamepadInput>
<LockSettings>
<keyboard>
<o>Back</o>
</keyboard>
</LockSettings>
<ProfileSettings>
<keyboard>
<o>Back</o>
</keyboard>
</ProfileSettings>
<PictureInfo>
<keyboard>
<left>PreviousPicture</left>
<right>NextPicture</right>
</keyboard>
</PictureInfo>
</keymap>
This is how it works on my xbox controller. I could not make it work with keymaps. If you put your settings would help.
Thank you very much. And sorry for my English.
PD.: I do not add files in the post, will not let me.
RE: My Xbox 360 Wireless config - As you have configured - Oddw1re - 3rd May, 2013 12:21 PM
Thanks for the help. I've tried numerous ways to get my Xbox 360 Wireless controller connected to xbian but they don't work. The controller connects when loading xbian but when xbian has loaded the green lights start spinning and controller doesn't work. Can anyone help?
RE: My Xbox 360 Wireless config - As you have configured - kolbasa - 30th May, 2013 07:32 AM
Hi,
I have written a small script (see attachment) to add Xbox-Controller-support for xbian.
Instructions:
1: connect the Xbox USB-Adapter to your Pi and sync it with your Controller
2: copy extracted folder ("xbox") to xbians home folder,
so you have this structure "/home/xbian/xbox"
3: make sure you have an internet-connection
(no need for that, if you have already installed "xboxdrv")
4: execute this command: "sudo chmod u+x ~/xbox/install && sudo ~/xbox/install"
5: enter your password
--> xbian is going to restart --> now you can use your controller as a remote
If you don't like the Controller mapping, just edit the file "/home/xbian/xbox/mapping_xbox" and restart your Pi.
I hope this helps.
RE: My Xbox 360 Wireless config - As you have configured - whateverme - 26th Jan, 2014 07:07 AM
(30th May, 2013 07:32 AM)kolbasa Wrote: Hi,
I have written a small script (see attachment) to add Xbox-Controller-support for xbian.
Instructions:
1: connect the Xbox USB-Adapter to your Pi and sync it with your Controller
2: copy extracted folder ("xbox") to xbians home folder,
so you have this structure "/home/xbian/xbox"
3: make sure you have an internet-connection
(no need for that, if you have already installed "xboxdrv")
4: execute this command: "sudo chmod u+x ~/xbox/install && sudo ~/xbox/install"
5: enter your password
--> xbian is going to restart --> now you can use your controller as a remote
If you don't like the Controller mapping, just edit the file "/home/xbian/xbox/mapping_xbox" and restart your Pi.
I hope this helps. ![Smile Smile](images/smilies/smile.gif)
This works awesome! Thanks
RE: My Xbox 360 Wireless config - As you have configured - g0t.milk - 14th Jun, 2014 10:28 PM
(30th May, 2013 07:32 AM)kolbasa Wrote: [...]
A big thanks ! It was just what I was looking for, and it works perfectly ! Thanks again !
RE: My Xbox 360 Wireless config - As you have configured - Zenthos - 10th Jan, 2015 07:46 AM
I realise that this thread is a bit old but I have come into a little bit of a problem. Whenever I plug in my controller after the pi has already been powered on, it doesn't seem to work. If I SSH into it and run the start.sh script it starts working again. Does anyone have any idea how I would go about designing a script to run start.sh whenever a USB is plugged in or the controller itself?
RE: My Xbox 360 Wireless config - As you have configured - f1vefour - 10th Jan, 2015 04:33 PM
You will need to use udev.
RE: My Xbox 360 Wireless config - As you have configured - erikkallenberg - 16th Jan, 2015 05:32 AM
(10th Jan, 2015 04:33 PM)f1vefour Wrote: You will need to use udev.
Can you be more precise, im a bit of a noob with linux/xbianmc.
I got it to work using your tutorial. However my controller only works after 2 or 3 min, when the 'screensaver' starts running (when the screen turns a bit darker). Any idea why?
RE: My Xbox 360 Wireless config - As you have configured - SteZZz - 6th Jan, 2016 02:29 AM
Dude this script works amazing!
Thnxs for all the effort!
I went from openelec to xbian just because i couldn't get the xbox360 controller working on it.
A side note:
When copying make sure you have right permissions set in the files.
I dont things from root. so make sure to do this as the user xbian or as root:
chown xbian:xbian /home/xbian -R
#this will set all files inside /home/xbian to xbian:xbian
passwd xbian
#set the xbian password
su xbian
#will let you become xbian
now just run the sudo command:
sudo chmod u+x ~/xbox/install && sudo ~/xbox/install
Cheers
RE: My Xbox 360 Wireless config - As you have configured - Imad Safieddine - 16th May, 2016 02:03 AM
Hi, I tried following the steps in this guide, but actually, I think I'm missing something at the very beginning.
The guide starts by 1. connect the Xbox USB-Adapter to your Pi and sync it with your Controller.
When I plug my USB receiver and try to sync it with my controller, it's not working, the green ring continues blinking.
When I plug my receiver to a Windows computer, it syncs automatically and the first "quarter" of the ring lights up (up left quarter)
When I stop the service lirc and run mode2 (as I saw in different threads/forums), I get nothing at all.
Anyone can help with that please?
RE: My Xbox 360 Wireless config - As you have configured - Imad Safieddine - 16th May, 2016 05:30 AM
By running sudo xboxdrv --wid 0 -s -l 2 --dpad-as-button --deadzone 12000, ( I had ro run sudo rmmod xpad first, I was able to get the flashing green circle to stop blinking and it's synched with the receiver.
I rerun the steps in this guide, but I still don't see any reaction on my kodi from the controller, and nothing shows up with the mode2 command
(16th May, 2016 02:03 AM)Imad Safieddine Wrote: Hi, I tried following the steps in this guide, but actually, I think I'm missing something at the very beginning.
The guide starts by 1. connect the Xbox USB-Adapter to your Pi and sync it with your Controller.
When I plug my USB receiver and try to sync it with my controller, it's not working, the green ring continues blinking.
When I plug my receiver to a Windows computer, it syncs automatically and the first "quarter" of the ring lights up (up left quarter)
When I stop the service lirc and run mode2 (as I saw in different threads/forums), I get nothing at all.
Anyone can help with that please?
RE: My Xbox 360 Wireless config - As you have configured - totheogreat - 1st Jul, 2017 02:53 AM
(26th Jan, 2014 07:07 AM)whateverme Wrote: (30th May, 2013 07:32 AM)kolbasa Wrote: Hi,
I have written a small script (see attachment) to add Xbox-Controller-support for xbian.
Instructions:
1: connect the Xbox USB-Adapter to your Pi and sync it with your Controller
2: copy extracted folder ("xbox") to xbians home folder,
so you have this structure "/home/xbian/xbox"
3: make sure you have an internet-connection
(no need for that, if you have already installed "xboxdrv")
4: execute this command: "sudo chmod u+x ~/xbox/install && sudo ~/xbox/install"
5: enter your password
--> xbian is going to restart --> now you can use your controller as a remote
If you don't like the Controller mapping, just edit the file "/home/xbian/xbox/mapping_xbox" and restart your Pi.
I hope this helps. ![Smile Smile](images/smilies/smile.gif)
This works awesome! Thanks
Perfect!!! this works like charm (took a while before I found this post, but this did it for me). I used with my logitech F710 gamepad on xbian with kodi 17.4
thanks!
|