Skip to main content
Topic: Getting xboxdrv to work (Read 729 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Getting xboxdrv to work

I'm trying to get my Xbox360 controllers to work. xboxdrv requires a systemd service and I don't know how to proceed because I have openrc. I have only found a package for runit.

Re: Getting xboxdrv to work

Reply #1
can you place the following on a file /etc/init.d/xboxdrvd and start it?

Code: [Select]
#!/usr/bin/openrc-run

pidfile="/run/xboxdrvd.pid"
command="/usr/bin/xboxdrv"
command_args="--detach-kernel-driver --mimic-xpad"
command_background=true
command_user="xboxdrvd"

stop() {
       start-stop-daemon --stop --pidfile "$pidfile"
}

Awaiting you feedback

 

Re: Getting xboxdrv to work

Reply #2
Hi, thanks for your quick answer.

I did as you said, but I think I don't understand 100% how xboxdrv works. What steps do I follow exactly to make my two Xbox360 controllers work? I think your solution worked because it doesn't ask me to detach the kernel driver. Right now I run
Code: [Select]
sudo xboxdrv
and verify that my controllers are connected with
Code: [Select]
xboxdrv -L
However when I try to test if my controller works with
Code: [Select]
jstest /dev/input/js1
no number seems to change when I press buttons. Is there something I'm missing?