Skip to content
LucasPicoliPublic

About

Create, read and edit controller profiles for 8BitDo devices on Linux

Topics

Resources

Stars

17 stars

Watchers

1 watching

Forks

Repository files navigation

8B app icon

8B

Read and edit the profiles stored on your 8BitDo controller, over USB, on Linux.

Download · Supported devices · Unsupported devices · USB permission · Build from source · Contributing · Licence

8B editing a DInput profile: saved remaps in blue, unsaved edits in orange

8B editing a macro: the step table, with a step's stick and trigger values below

Supported devices

Device Features
Pro 3 - Edit button mappings, sticks, triggers and vibration settings in every XInput, Switch and DInput slot
- Create and edit macros
- Import and export profiles as JSON
Ultimate Bluetooth - Edit button mappings, sticks, triggers and vibration settings in every XInput and Switch slot, over the cable
- Create and edit macros
- Import and export profiles as JSON
Ultimate 2 Wireless - Edit button mappings, sticks, triggers and vibration settings in every XInput and DInput slot, over the cable. The pad serves only the mode it is in, so switch it on the pad to edit the other
- Edit the motion sensor and the RGB lights
- Create and edit macros
- Import and export profiles as JSON

Unsupported devices

Device Reason
Ultimate 2C Wireless The only function the controller supports over USB is firmware updates. It has no profiles to edit

Roadmap

  • Accessibility
  • Macro creation and editing
  • Support for more controllers
  • Internationalization (translated interface)

Download

Download the latest AppImage from the releases page, run chmod +x on it, and start it. x86_64 is tested; the aarch64 build has not been tested on hardware.

To get the Flatpak with updates, install it from the project's signed remote:

flatpak install --user https://lucaspicoli.github.io/8B/io.github.LucasPicoli._8B.flatpakref

After that, flatpak update and your software centre pick up each new release.

The releases page also has a Flatpak bundle for each architecture, 8B-<version>-<arch>.flatpak, with a .sha256 file. Install it with flatpak install --user <file>. A bundle install does not receive updates.

USB permission

Linux blocks apps from opening the controller until a device rule allows it. When 8B is denied access to the controller, it asks to install one and prompts for your password once (through pkexec). It writes /etc/udev/rules.d/70-8b.rules, which gives the logged-in user access to 8BitDo controllers and to USB id 057e:2009 (the Pro 3 in Switch mode, an id it shares with the Nintendo Pro Controller), then reloads udev. If you prefer, the window shows the same steps as one command to run yourself. The Flatpak cannot install the rule, so it shows only the command.

To remove it:

sudo rm /etc/udev/rules.d/70-8b.rules
sudo udevadm control --reload-rules

If you also installed the keepalive fix ("Keep the controller connected"), remove its files too, before you reload the rules:

sudo rm /etc/udev/rules.d/71-8b-keepalive.rules /etc/systemd/system/8b-keepalive@.service
sudo systemctl daemon-reload

Then unplug the controller and plug it back in. 8B asks again the next time it is denied access.

Build from source

The toolchain is pinned in rust-toolchain.toml; rustup installs it on the first build.

cargo run -p gui     # run the app
just appimage        # build the x86_64 AppImage in a ubuntu:22.04 container
just flatpak         # build the Flatpak bundle into packaging/flatpak/out/

just appimage needs just (cargo install just, or your distro's package) and either podman or docker. just flatpak needs flatpak-builder, uv and jq.

A command-line tool, 8bitdo-pro-3, lives in crates/cli. It reads with detect, read, export, dump and read-macro, and writes with upload, upload-all, deactivate, remap, set, write-macro and delete-macro. Run 8bitdo-pro-3 help <verb> for each verb's flags and exit codes.

Contributing

Bug reports, fixes and new controllers are welcome. To add a controller, start with Reverse engineering a controller, then follow Adding a controller and Drawing a controller's views.

If you own an Ultimate 2.4G or an Ultimate Wired, the app refuses it until a pad has been checked. Validating a controller lists the six checks.

To check an Ultimate 2 in both its modes, see Checking an Ultimate 2.

  1. Install just and the fontconfig headers (libfontconfig-dev on Debian and Ubuntu).
  2. Make your change on a branch.
  3. Run just lint. It runs cargo fmt --check, clippy with warnings as errors, and the tests. CI runs fmt, clippy and cargo test on every push and pull request.
  4. If you changed the protocol, an encoder or a write path, run just hw with the controller attached. These tests write to the pad's flash and put every bank back when they end, pass or fail. Keep a dump of your banks anyway.
  5. Open a pull request. Commit subjects start with feat:, fix:, refactor:, test: or docs:.

The code follows these rules:

  • Library code does not panic. Return a Result, and never call unwrap or expect or index a raw slice. The bounds-checked accessors in protocol::bytes read and write blob bytes.
  • Every public item has a doc comment. A fallible function documents its errors in an # Errors section.
  • Offsets and sizes are named, documented constants, never bare numbers.
  • unsafe is denied in the whole workspace. The one exception is the HID feature-report ioctls in transport/feature.rs, and each block there has a // SAFETY: comment.
  • Captured blobs are the oracle. When a golden-vector test and the code disagree, the code is wrong.
  • In the GUI, place anything centred or stretched with 1phx rounding, never 1px, and build every dialog on DialogShell. A fractional physical-pixel offset blurs text.

Contributions are licensed under GPL-3.0-or-later, the same as the project.

Licence

8B is licensed under GPL-3.0-or-later. See LICENSE.

Note

8B is an independent project, not made or endorsed by 8BitDo.

About

Create, read and edit controller profiles for 8BitDo devices on Linux

Topics

Resources

Stars

17 stars

Watchers

1 watching

Forks

Releases

Used by

Contributors

Languages