title: XBox 360 Wireless Controller not working with Kodi / XBMC
body: <p><strong>System:</strong></p>
  
  <ul>
  <li>Ubuntu 14.04.2 LTS (kernel: 3.13.0-45-generic)</li>
  <li>Kodi (14.2-BETA1 Git:2259d0b). Platform: Linux x86 64-bit</li>
  <li>Original XBOX 360 wireless controller with Xbox 360 USB Wireless Adapter</li>
  </ul>
  
  <p><strong>What I did:</strong></p>
  
  <p>Install <code>ubuntu-xboxdrv</code>:</p>
  
  <pre><code>sudo apt-add-repository -y ppa:rael-gc/ubuntu-xboxdrv
  sudo apt-get update
  sudo apt-get install ubuntu-xboxdrv
  </code></pre>
  
  <p><strong>Tested if it works with:</strong></p>
  
  <ul>
  <li>jstest: YES</li>
  <li>sdl-jstest: YES</li>
  <li>retroarch and mupen64plus playing N64 Mario Kart: YES</li>
  <li><strong>Kodi: NOOOO ????</strong></li>
  </ul>
  
  <p>I enabled extensive logging for kodi and uploaded a logfile here: <a href="http://xbmclogs.com/psky8dtse" rel="nofollow">http://xbmclogs.com/psky8dtse</a> (until 20. March '15)</p>
  
  <p>Kodi does not detect the joystick even though it is available over SDL and <code>/dev/input/js0</code></p>
  
  <p><strong>UPDATE:</strong> Running Kodi as root fixes the problem. So it seems there are permission issues. Still don't know how to fix this...</p>
  
  <p><strong>UPDATE2 / FIX:</strong> I wrote a NodeJS-bridge between Kodi and the Xbox Controller: <a href="https://github.com/cgrossde/XboxControllerKodiBridge" rel="nofollow">https://github.com/cgrossde/XboxControllerKodiBridge</a>
  This way only the Bridge needs to run as root and Kodi can continue to run as an unprivileged user. It includes an upstart script that it starts/stops with Kodi.</p>