xone
is a Linux kernel driver for Xbox One and Xbox Series X|S accessories. It serves as a modern replacement for xpad
, aiming to be compatible with Microsoft's Game Input Protocol (GIP).
NOTE: This is a fork, please support the upstream project.
- Wired devices (via USB)
- Wireless devices (with Xbox Wireless Dongle)
- Bluetooth devices (check out
xpadneo
)
Installing xone
will disable the xpad
kernel driver. If you are still using Xbox or Xbox 360 peripherals, you will have to install xpad-noone
as a replacement for xpad
.
This driver is still in active development. Use at your own risk!
If you are running xow
upgrading to xone
is highly recommended!
Always update your Xbox devices to the latest firmware version!
Any feedback including bug reports, suggestions or ideas is greatly appreciated.
- Input and force feedback (rumble)
- Battery reporting (
UPower
integration) - LED control (using
/sys/class/leds
) - Audio capture/playback (through
ALSA
) - Power management (suspend/resume and remote/wireless wakeup)
- Gamepads
- Xbox One Controllers
- Xbox Series X|S Controllers
- Xbox Adaptive Controller
- Third party controllers (PowerA, PDP, etc.)
- Headsets
- Xbox One Chat Headset
- Xbox One Stereo Headset (adapter or jack)
- Xbox Wireless Headset
- Third party wireless headsets (SteelSeries, Razer, etc.)
- Guitars & Drums
- Mad Catz Rock Band 4 Wireless Fender Stratocaster
- Mad Catz Rock Band 4 Wireless Drum Kit
- PDP Rock Band 4 Wireless Fender Jaguar
- Xbox One Chatpad
- Third party racing wheels (Thrustmaster, Logitech, etc.)
Feel free to package xone
for any Linux distribution or hardware you like.
Any issues regarding the packaging should be reported to the respective maintainers.
- Linux (kernel 5.13+ and headers)
- DKMS
- curl (for firmware download)
- cabextract (for firmware extraction)
-
Unplug your Xbox devices.
-
Clone the repository:
git clone https://github.com/dlundqvist/xone
- Install
xone
:
cd xone
sudo ./install.sh
NOTE: You can use the --release
flag to disable debug logging.
- Download the firmware for the wireless dongle:
sudo xone-get-firmware.sh
NOTE: The --skip-disclaimer
flag might be useful for scripting purposes.
- Plug in your Xbox devices.
Make sure to completely uninstall xone
before updating:
sudo ./uninstall.sh
xone
doesn't support Xbox 360 controllers at all. On top of that, xone
needs to disable xpad
driver to work properly, which would normally support Xbox 360 controllers. This is due to xpad
also trying to handle Xbox One controllers, which xone
aims to support.
To fix that, there is a fork of xpad
driver, called xpad-noone
that has disabled support for Xbox One controllers, so it can coexist with xone
driver. If you're using Xbox 360 controllers, it is recommended to use it to replace the standard xpad
driver.
An installation script for the Steam Deck is available here. It handles all the prerequisites and other quirks, along with installing xone-noone
.
You can run it by executing the following command: wget -O /tmp/bootstrap.sh https://gist.githubusercontent.com/SavageCore/263a3413532bc181c9bb215c8fe6c30d/raw/8cfbc292c4b55612a2ebea3227911a3c3a6ae214/bootstrap.sh && sh /tmp/bootstrap.sh
Xbox devices have to be paired to the wireless dongle. They will not automatically connect to the dongle if they have been previously plugged into a USB port or used via Bluetooth.
Instructions for pairing your devices can be found here (see the section on Xbox Wireless).
The guide button LED can be controlled via sysfs
:
echo 2 | sudo tee /sys/class/leds/gip*/mode
echo 5 | sudo tee /sys/class/leds/gip*/brightness
Changing the LED in the above way is temporary, it will only last until the device disconnects. To apply these settings automatically when a device connects, you can create a new udev
rule in /etc/udev/rules.d/50-xone.rules
with the following content:
ACTION=="add", SUBSYSTEM=="leds", KERNEL=="gip*", ATTR{mode}="2", ATTR{brightness}="5"
Replace the wildcard (gip*
) if you want to control the LED of a specific device.
The modes and the maximum brightness can vary from device to device.
The pairing mode of the dongle can be queried via sysfs
:
cat /sys/bus/usb/drivers/xone-dongle/*/pairing
You can enable (1
) or disable (0
) the pairing using the following command:
echo 1 | sudo tee /sys/bus/usb/drivers/xone-dongle/*/pairing
Uninstall the release version and install a debug build of xone
(see installation guide).
Run sudo dmesg
to gather logs and check for any error messages related to xone
.
If xone
is not being loaded automatically you might have to reboot your system.
Direct firmware load for xow_dongle.bin failed with error -2
- Download the firmware for the wireless dongle (see installation guide).
You can use evtest
and fftest
to check the input and force feedback functionality of your devices.
Please join the Discord server in case of any other problems.
xone
is released under the GNU General Public License, Version 2.
Copyright (C) 2021 Severin von Wnuck-Lipinski
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.