Ubuntu 20.04 and Windows 10 on Dual Boot: Xbox Controller with wireless adapter always needs pairing after using Ubuntu then going to Windows

Solution 1:

I experienced the same issue and I think I found a solution.

Here some friendly folks described how to disable usb devices on linux. So basically you have to:

  • use lsusb to list usb devices in terminal.
  • Identify the xbox dongle
    • For me it was: Bus 003 Device 007: ID 045e:02e6 Microsoft Corp. Wireless XBox Controller Dongle
  • create a file (e.g. my.rules) in /etc/udev/rules.d/
  • add this line to the file: ACTION=="add", ATTR{idVendor}=="045e", ATTR{idProduct}=="02e6", RUN="/bin/sh -c 'echo 0 >/sys/\$devpath/authorized' where the vendor id and product id correspond to the dongle's ID which we got from lsusb
  • reboot & pair the controller one last time in windows

After doing these steps I don't need to re-pair my controller between ubuntu & linux boots anymore.