Xboxdrv not able to start

I installed the xbox controller drivers (for use with an XBox One controller) using

sudo apt install xboxdrv

However when I try to start/enable the service with

sudo systemctl start xboxdrv.service

I get the following error

Failed to start xboxdrv.service: Unit xboxdrv.service not found.

Any ideas?

1 Answer

First, try to enable the service with the following command:

sudo systemctl enable xboxdrv.service

and then try starting it with:

sudo systemctl start xboxdrv.service

If the service is not found, then the service needs to be created.

Make a file called "xboxdrv.service" in the /etc/systemd/system and copy/paste the following in it:

[Unit]
Description=Xbox controller driver daemon
[Service]
Type=simple
User=root
PIDFile=/var/run/xboxdrv.pid
ExecStartPre=/usr/share/ubuntu-xboxdrv/xboxdrv-pre
EnvironmentFile=/usr/share/ubuntu-xboxdrv/uxvars
ExecStart=/usr/bin/xboxdrv --daemon --silent --pid-file /var/run/xboxdrv.pid --dbus disabled $XBOXDRV_OPTIONS $PAD_OPTIONS $CONTROLLER0_OPTIONS --next-controller $PAD_OPTIONS $CONTROLLER1_OPTIONS --next-controller $PAD_OPTIONS $CONTROLLER2_OPTIONS --next-controller $PAD_OPTIONS $CONTROLLER3_OPTIONS
[Install]
WantedBy=multi-user.target

Then enable the service:sudo systemctl enable xboxdrv.service

Followed by starting the service:sudo systemctl start xboxdrv.service

Make sure the Xbox controller is connected when you start the service.

3

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like