Skip to content

Instantly share code, notes, and snippets.

@barraIhsan
Last active July 22, 2025 19:42
Show Gist options
  • Save barraIhsan/783a82bcf32bed896c85d27dbb8018a5 to your computer and use it in GitHub Desktop.
Save barraIhsan/783a82bcf32bed896c85d27dbb8018a5 to your computer and use it in GitHub Desktop.
8BitDo Ultimate 2 Wireless (on GNU/Linux)

Most of the source comes from: Steam Beta Forum

Thank you so much to everyone in the forum for contributing, for reaching out to 8BitDo to request switching between XInput/DInput/Switch mode on the dongle, to Valve for adding support on DInput mode, to the SDL developers (and 8bitdo) for adding support on DInput mode, and finally, to the Linux kernel developers for adding support on XInput mode.

This gist summarizes everything from that forum.

Switching Mode

So after the latest firmware update (as the time of writing: Controller 1.06, Adapter 1.04), its now possible to switch to DInput and Switch mode by holding B (DInput) or Y (Switch) while turning on the controller.

Note: If you try holding B or Y while in the dock and pick that up, it will not change the mode. You have to manually turn off the controller undocked (hold the home/guide button for 3 second) and turn it back (press home/guide button) while holding either B or Y

Wired         - XInput only
Dongle/2.4Ghz - XInput, DInput (B), Switch (Y)
Bluetooth     - DInput only

Hopefully, a future firmware update will allow switching between modes when using wired or Bluetooth.

XInput Mode

8bitdo Ultimate 2 Wireless on XInput mode work ootb now on kernel 6.15+ (using built-in xpad driver)
https://github.com/torvalds/linux/commit/22cd66a5db56a07d9e621367cb4d16ff0f6baf56

In this mode, just like with other XInput controller, will not register gyro and additional button.

Nintendo Switch (Pro Controller) Mode

Hold Y while turning on your controller

Switch mode supports native gyro but no additional button and no capture button. Thus, you can use it with a Switch emulator or the actual device. For the Switch mode, it's supported ootb by hid_nintendo driver.

Do note that your XYAB will be swapped (so the bottom button is now B not A, just like a Switch/Pro Controller).

Works great if you use Switch emulator, rumble and gyro works ootb and you don't need to configure it manually. Except if you want to swap the XYAB

Battery Reporting

Oh, for battery reporting on Switch mode, yeah it doesn't work and it's always at 55% image

If you want an actual battery percentage, you have to use bluetooth. image

Direct Input (DInput) Mode

Hold B while turning on your controller

The DInput mode will register the 4 additional button (R4, L4, PL, PR) and native gyro after using udev, see below. Thus, you can map those with steam input.

Note: If you map any of the additional buttons using the Ultimate Software or the square button, it will register the mapped button instead of the original one. For example, if you map PL to LB, pressing PL will register as LB, not PL.

It will shows the correct icon for the controller and with the additional button, as well the gyro on Steam

Additional button

image

Gyro

image

udev rule for DInput

If you use SteamOS/Bazzite, it seems that it's already configured by default.

To get the additional button, gyro, and rumble working on DInput. You need to specify a udev rule.

# 2.4GHz/Dongle
KERNEL=="hidraw*", ATTRS{idProduct}=="6012", ATTRS{idVendor}=="2dc8", MODE="0660", TAG+="uaccess"
# Bluetooth
KERNEL=="hidraw*", KERNELS=="*2DC8:6012*", MODE="0660", TAG+="uaccess"

Save it in /etc/udev/rules.d/71-8bitdo-u2w.rules, then reload udev (sudo udevadm control --reload)

@mkaito
Copy link

mkaito commented Jun 29, 2025

Worth noting that it you ever turn the controller back on with the power button (instead of lifting it off the dock) without holding B or Y it will revert to XInput again. I'd rather they had bound xinput to another button instead. Not holding my breath, but I sent them an email about it.

@barraIhsan
Copy link
Author

barraIhsan commented Jun 30, 2025

Worth noting that it you ever turn the controller back on with the power button (instead of lifting it off the dock) without holding B or Y it will revert to XInput again. I'd rather they had bound xinput to another button instead. Not holding my breath, but I sent them an email about it.

Yes, also sometimes when you leave it in the dock for a while, it will also reset to XInput? Im not sure tho.
One note, if you try holding B or Y while in the dock and pick that up, it will not change the mode.

I would like it to be X for XInput, but I understand that some people want "plug and play" and doesn't even know what's XInput/DInput anyway, so that's why many controller do XInput by default.

And I just still wish you could switch modes too on Bluetooth and wired

@barraIhsan
Copy link
Author

barraIhsan commented Jun 30, 2025

I also emailed them for battery replacement,so that I can replace it in the future if something happened, but sadly

The batteries inside the controllers are custom-made for us, and you likely won't find similar or identical ones in online or offline stores. If you need an additional battery, you can try contacting [email protected] to see if they can assist you.

Yeah.

@kendofriendo
Copy link

One note, if you try holding B or Y while in the dock and pick that up, it will not change the mode.

SO THAT'S what it was. I was trying everything. Turning it off manually and holding Y it now works. Thanks!

@barraIhsan
Copy link
Author

barraIhsan commented Jul 1, 2025

One note, if you try holding B or Y while in the dock and pick that up, it will not change the mode.

SO THAT'S what it was. I was trying everything. Turning it off manually and holding Y it now works. Thanks!

Yes :)

Oh also, update, you don't need steam beta anymore since the changes is already in the stable version
Source: https://steamcommunity.com/groups/SteamClientBeta/discussions/3/591764731433410123/?tscn=1751344298#c591775577045777312

@mkaito
Copy link

mkaito commented Jul 1, 2025

I still can't get the extra buttons toggle to stick in the new Steam update. Seems to be working for some folks, so I wonder if there's something wonky with my system. Not that I would know what that could be.

@barraIhsan
Copy link
Author

barraIhsan commented Jul 1, 2025

I still can't get the extra buttons toggle to stick in the new Steam update. Seems to be working for some folks, so I wonder if there's something wonky with my system. Not that I would know what that could be.

Extra buttons are only supported in DInput mode (you need to update your firmware), make sure you do that. If you're on Linux and you're not on SteamOS/Bazzite, you need to add the udev rule.

Also, maybe try updating your steam client, or join the beta to make sure

@mkaito
Copy link

mkaito commented Jul 1, 2025

I still can't get the extra buttons toggle to stick in the new Steam update. Seems to be working for some folks, so I wonder if there's something wonky with my system. Not that I would know what that could be.

Extra buttons are only supported in DInput mode, make sure you do that. And if you're on Linux and you're not on SteamOS/Bazzite, you need to add the udev rule.

Also, maybe try updating your steam client, or join the beta to make sure

Yeah, it's in dinput. I keep having to toggle it back after it reverts.

I'm not on SteamOS proper, just a modified Arch install to pretend it's a Steam Deck. I did add the udev rules, although I'm not entirely sure that changed anything. Steam knows what controller I'm using. It even shows 8bitdo icons.

Actually I think I just fixed it while writing this. I think the switch from xpad to xone might have done it.

@barraIhsan
Copy link
Author

barraIhsan commented Jul 1, 2025

It even shows 8bitdo icons.

Huh, so it's DInput and it's just that the additional button is not registering. Maybe there's something wrong with the udev. Maybe try restart the os?

I think the switch from xpad to xone might have done it.

Weird, xone and xpad is a XInput drier so it should not do anything. But if it works for you then, it works ig.

@rilpires
Copy link

rilpires commented Jul 2, 2025

One note, if you try holding B or Y while in the dock and pick that up, it will not change the mode.

SO THAT'S what it was. I was trying everything. Turning it off manually and holding Y it now works. Thanks!

Even then I can't make steam recognize as DInput :( , it appears as "Generic X-Box pad"

Am I missing something?

jul 01 21:34:49 rilpires-desktop-kubuntu kernel: usb 1-2.4: USB disconnect, device number 33
jul 01 21:34:49 rilpires-desktop-kubuntu kernel: usb 1-2.4: new full-speed USB device number 34 using xhci_hcd
jul 01 21:34:49 rilpires-desktop-kubuntu kernel: usb 1-2.4: not running at top speed; connect to a high speed hub
jul 01 21:34:49 rilpires-desktop-kubuntu kernel: usb 1-2.4: New USB device found, idVendor=2dc8, idProduct=310b, bcdDevice= 1.14
jul 01 21:34:49 rilpires-desktop-kubuntu kernel: usb 1-2.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
jul 01 21:34:49 rilpires-desktop-kubuntu kernel: usb 1-2.4: Product: 8BitDo Ultimate 2 Wireless Controller for PC
jul 01 21:34:49 rilpires-desktop-kubuntu kernel: usb 1-2.4: Manufacturer: 8BitDo
jul 01 21:34:49 rilpires-desktop-kubuntu kernel: usb 1-2.4: SerialNumber: D4FB9E24AB
jul 01 21:34:49 rilpires-desktop-kubuntu kernel: input: Generic X-Box pad as /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.4/1-2.4:1.0/input/input73
jul 01 21:34:49 rilpires-desktop-kubuntu kernel: input: 8BitDo 8BitDo Ultimate 2 Wireless Controller for PC Keyboard as /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.4/1-2.4:1.1/0003:2DC8:310B.002D/input/input74
jul 01 21:34:49 rilpires-desktop-kubuntu kernel: input: 8BitDo 8BitDo Ultimate 2 Wireless Controller for PC Mouse as /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.4/1-2.4:1.1/0003:2DC8:310B.002D/input/input75
jul 01 21:34:49 rilpires-desktop-kubuntu kernel: hid-generic 0003:2DC8:310B.002D: input,hidraw4: USB HID v1.11 Keyboard [8BitDo 8BitDo Ultimate 2 Wireless Controller for PC] on usb-0000:00:14.0-2.4/input1
jul 01 21:34:49 rilpires-desktop-kubuntu kernel: hid-generic 0003:2DC8:310B.002E: hiddev2,hidraw5: USB HID v1.11 Device [8BitDo 8BitDo Ultimate 2 Wireless Controller for PC] on usb-0000:00:14.0-2.4/input2
jul 01 21:34:51 rilpires-desktop-kubuntu kernel: input: Microsoft X-Box 360 pad 0 as /devices/virtual/input/input76

@barraIhsan
Copy link
Author

barraIhsan commented Jul 2, 2025

301b... yeah that's XInput mode.
Are you sure you're in the latest firmware? You should update to the latest one with their software (exclusive windows app unfortunately)
https://app.8bitdo.com/Ultimate-Software-V2/

@Dark-Thoughts
Copy link

exclusive windows app unfortunately

You can use a VM. If you use Virtual Machine Manager you have to go into the hardware details, Add Hardware and then under USB Host Device there should be the gamepad if it is on (something something 8bitdo for PC - do not use the generic "8bitdo ultimate 2" entry which I think is just the dongle and won't register in the app). I think the device ID keeps changing so you may have to remove & re-add it every time you want to do an update or use the software for the RGB settings (which are also a bit wonky but that may be not related to Linux).

This all worked fine for me on Bazzite. I think there's also an Android app that allows you to do firmware updates, if you're okay with having Chinese apps on your phone.

@mkaito
Copy link

mkaito commented Jul 3, 2025

There's also a Mac app, in case you have one of those. Use the 8bitdo Ultimate Software v2. The standalone firmware updater app won't work with this controller.

I figured out how to make the extra button mapping work. When Gamescope starts, the controller has to be already connected. Just dropping the pad on the dock and picking it back up will break the extra button mapping. Restarting Steam inside Gamescope won't fix it. Have to restart Gamescope too.

evtest shows all buttons working correctly either way, so I guess this is a Gamescope bug.

@mkaito
Copy link

mkaito commented Jul 19, 2025

I found out what my issue was. Apparently there's some steam udev rules that run at 73-xxxx.rules and my 8bitdo-xxxx.rules was running after it. Renaming the file to 70-8bitdo-xxx.rules fixed my "have to restart everything" issue completely. Which I guess you've also figured out, since you recommend putting it in 71. I really need to learn to read.

@Dark-Thoughts
Copy link

The one thing I noticed with this gamepad is that it often goes into pairing mode for a few seconds after I shut down my PC (while it sits in its docking station). Not sure if that's Linux related at all though.

@barraIhsan
Copy link
Author

The one thing I noticed with this gamepad is that it often goes into pairing mode for a few seconds after I shut down my PC (while it sits in its docking station). Not sure if that's Linux related at all though.

yes because it's lost connection to the dongle when we turn off the PC. So I think it's intended behaviour. Just like when you unplug the dongle from your PC

@barraIhsan
Copy link
Author

barraIhsan commented Jul 19, 2025

I found out what my issue was. Apparently there's some steam udev rules that run at 73-xxxx.rules and my 8bitdo-xxxx.rules was running after it. Renaming the file to 70-8bitdo-xxx.rules fixed my "have to restart everything" issue completely. Which I guess you've also figured out, since you recommend putting it in 71. I really need to learn to read.

Yea, I just followed the arch wiki guide to get the 71:
https://wiki.archlinux.org/title/Udev#Allowing_regular_users_to_use_devices

Also steam input is 60, /usr/lib/udev/rules.d/60-steam-input.rules. But yea, probably the ordering

@Klusio19
Copy link

Klusio19 commented Jul 22, 2025

On my Fedora 42, Xinput mode was working flawlessly OOTB. With Dinput mode, it recognized all of buttons including additional ones but NOT IN Steam (I was testing it on that gamepad testing website). After adding the udev rule, all additional buttons and gyro settings appeared in Steam! Thank you for that tip!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment