Giter Site home page Giter Site logo

tauakiou / xow Goto Github PK

View Code? Open in Web Editor NEW

This project forked from medusalix/xow

0.0 1.0 0.0 967 KB

Linux driver for the Xbox One wireless dongle

Home Page: https://medusalix.github.io/xow

License: GNU General Public License v2.0

Makefile 1.31% C++ 98.69%

xow's Introduction

Logo

Build Badge Release Badge Donate Button

Screenshot

About

xow is a Linux user mode driver for the Xbox One wireless dongle. It communicates with the dongle via libusb and provides joystick input through the uinput kernel module. The input mapping is based on existing kernel drivers like xpad.

NOTE: xow is still at a VERY EARLY stage of development. Do not be surprised if it does not work at all. In case of problems, please open an issue with all the relevant details (dongle version, controller version, logs, captures, etc.) and I will see what I can do.

Supported devices

xow supports both versions of the wireless dongle (slim and bulky one). The following Xbox One controllers are currently compatible with the driver:

Model number Year Additional information Status
1537 2013 Original controller Working
1697 2015 Audio jack Working
1698 2015 Elite controller Working
1708 2016 Bluetooth connectivity Working
1797 2019 Elite controller series 2 Working
1914 2020 Share button and USB-C Untested

Releases

Linux distributions

Third-party hardware

Feel free to create prebuilt releases of xow for any Linux distribution or hardware you like. Any issues regarding the packaging should be reported to the respective maintainers.

Installation

Prerequisites

  • Linux (kernel 4.5 or newer)
  • libusb (libusb-1.0-0-dev for Debian)
  • systemd (version 232 or newer)

Clone the repository (necessary for version tagging to work):

git clone https://github.com/medusalix/xow

Build xow using the following command:

make BUILD=RELEASE

NOTE: Please use BUILD=DEBUG when asked for your debug logs.

Install xow as a systemd service (starts xow at boot time):

sudo make install
sudo systemctl enable xow
sudo systemctl start xow

NOTE: A reboot might be required for xow to work correctly.

Updating

Make sure to completely uninstall xow before updating:

sudo systemctl stop xow
sudo systemctl disable xow
sudo make uninstall

Troubleshooting

  • Buttons/triggers/sticks are mapped incorrectly
    • Try the options listed on this page to remap your inputs.
  • Input from the sticks is jumping around
    • Try the options listed on this page to set your deadzones.
  • Controller does not connect to the dongle

NOTE: Please refrain from opening issues concerning input remapping, deadzones or game compatibility, as these topics are outside the scope of this project.

How it works

The dongle's wireless chip (MT76xx) handles the WLAN connection with individual controllers. The packet format follows Microsoft's undisclosed GIP (Game Input Protocol) specification. Most of the reverse engineering was done by capturing the communication between the dongle and a Windows PC using Wireshark. As no datasheets for this chip are publicly available, I have used datasheets of similar wireless radios for assistance. Special thanks to the authors of OpenWrt's mt76 kernel driver. It would have been impossible for me to create this driver without mt76's source code. If anyone has a greater understanding of the GIP or the weird quirks I had to add to make the driver work (like initGain), please contact me.

License

xow is released under the GNU General Public License, Version 2.

Copyright (C) 2019 Medusalix

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.

The included firmware.bin file, extracted from the Windows drivers, is provided under a special proprietary license.

xow's People

Contributors

cristianovitorino avatar medusalix avatar noxphasma avatar nschimme avatar totalcaesar659 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.