Kodi Community Forum

Full Version: 360 Controller Setup in Ubuntu
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi. I've got the 360 controller working nicely using the xboxdrv usermode driver. Unfortunately, I have to run it as sudo, which is no good since I'd like to script it to run at XBMC startup.

I googled and found this:


Which suggests giving root access to uinput via rules.d. However even with this:

KERNEL=="uinput", MODE="0660", GROUP="root"
KERNEL=="uinput", MODE="0660", GROUP="mike"
KERNEL=="uinput", MODE="0660", GROUP="xbmc"

in /etc/udev/rules.d/45-permissions-xboxdrv.rules

I still cannot run xboxdrv without sudo as mike or xbmc. What am I doing wrong?
I managed to figure out the rules to set permissions (only give one user ownership), but I'm still not clear on how best to start to the driver automatically so that I don't have to pull up the console on every boot and run it manually.
add it to the end of /etc/rc.local ?
I appended it to rc.local, however it doesn't seem to run. Putting "echo test > afile" works, so I'm sure its being run, but presumably its crashing somehow. Is it possible to run a script later in the startup process? Perhaps something the driver needs isn't running at that point in startup. Running the script manually after startup gives me a working driver . . .