Artix Linux Forum

Artix Linux => Package management => AUR Packages => Topic started by: ezraravin on 18 February 2021, 20:02:22

Title: Getting xboxdrv to work
Post by: ezraravin on 18 February 2021, 20:02:22
I'm trying to get my Xbox360 controllers to work. xboxdrv (https://aur.archlinux.org/packages/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 (https://aur.archlinux.org/packages/xboxdrv-runit/).
Title: Re: Getting xboxdrv to work
Post by: linuxer on 18 February 2021, 20:13:59
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
Title: Re: Getting xboxdrv to work
Post by: ezraravin on 19 February 2021, 21:04:45
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?