Skip to content

Instantly share code, notes, and snippets.

@akatch
Created October 24, 2014 01:54
Show Gist options
  • Save akatch/cdb707856d467bd7cacd to your computer and use it in GitHub Desktop.
Save akatch/cdb707856d467bd7cacd to your computer and use it in GitHub Desktop.
systemd script for xboxdrv
# Systemd unit to enable xboxdrv driver for Xbox 360 controller
# Usage:
# save to /lib/systemd/system/xboxdrv.service
# to start: sudo service xboxdrv start
# to enable on boot: sudo systemctl enable xboxdrv
[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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment