1

I have recently gotten an Xbox remote to work on a Raspian using xboxdrv, but when I try to activate it on Ubuntu, I get an error message that says:

Failed to enable unit: Unit file xboxdrv does not exist.

enter image description here

Kevin Bowen
  • 19,615
  • 55
  • 79
  • 83
MrBlue
  • 351

3 Answers3

2

The package xboxdrv is available in the Universe repository. You can find it by searching packages.ubuntu.com.

There is no need to add a PPA, nor should you add a PPA when software is available in Ubuntu repositories. To install this package, simply open a terminal and run the following commands:

sudo apt update
sudo apt install xboxdrv
Nmath
  • 12,333
2

you have to write an systemd.service by your own.

sudo nano /etc/systemd/system/xboxdrv.service

following content.

[Unit]
Description=Xbox controller driver daemon

[Service]
Type=forking
User=root
PIDFile=/var/run/xboxdrv.pid
ExecStart=/usr/bin/xboxdrv --daemon --detach --pid-file /var/run/xboxdrv.pid --dbus disabled --silent --mimic-xpad

[Install]
WantedBy=multi-user.target

Then you can enable the service.

sudo systemctl enable xboxdrv.service

source

nobody
  • 5,437
-1

You have to install xbox driver for linux called xboxdrv. Info: https://xboxdrv.gitlab.io/

Try:

sudo add-apt-repository ppa:grumbel/ppa
sudo apt-get update
sudo apt-get install xboxdrv