Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gentoo + 045e:02ea Microsoft Corp. Xbox One Controller (wired usb) #480

Open
darkicekeel opened this issue Jul 1, 2024 · 7 comments
Open
Labels
0 | type: enhancement New feature or request 0 | type: hardware support Support third-party hardware and clones

Comments

@darkicekeel
Copy link

as you can imagine, i'm struggling to get this to work.
installed xpadneo and modprobe hid-xpadneo, no success in having this working through usb cable.
what am i missing here?

@kakra
Copy link
Collaborator

kakra commented Jul 1, 2024

xpadneo cannot work with USB unless your USB device would be a HID device. But Xbox controllers in USB mode use GIP instead of HID. The in-kernel xpad driver does support the GIP mode.

I'm planning on implementing GIP later by converting GIP und HID with a user-space daemon. That way, we can also work with the Xbox dongle. But currently there's no concrete plans on when to do that.

@kakra kakra added 0 | type: enhancement New feature or request 0 | type: hardware support Support third-party hardware and clones labels Jul 1, 2024
@darkicekeel
Copy link
Author

so, only bluetooth?
i'm waiting for a "supposed compatible" dongle. i'll see if xpadneo will work with that, as soon as it arrives

@kakra
Copy link
Collaborator

kakra commented Jul 1, 2024

so, only bluetooth?

Yes, in full context, it means exactly that. But xpadneo doesn't depend on Bluetooth, it is a HID driver. Actually, it doesn't even see the Bluetooth connection.

i'm waiting for a "supposed compatible" dongle. i'll see if xpadneo will work with that, as soon as it arrives

It should work. Until then, the stock-kernel xpad driver will support USB mode of this controller. It should just work via USB, no matter if xpadneo is installed. Both drivers do not conflict if used/enabled/installed at the same time because xpad does NOT handle HID.

@darkicekeel
Copy link
Author

what if i've got xpadneo xboxdrv AND xpad in the kernel.... will they conflict somehow or is it possible to keep all together?

@kakra
Copy link
Collaborator

kakra commented Jul 2, 2024

You can use both at the same time.

There's one pitfall: If you disconnect Bluetooth, modern bluez versions will keep the device node around for fast reconnects. If you switch to USB then, your system sees two controllers: one seemingly dead, one over USB. Most Proton games are pretty silly and just look for inputs on the first connected controller, rendering the "second" useless. You can fix this by restarting the bluez service. But this is cumbersome while in a game.

There's a "secret hidden" configuration setting for bluez which will make it remove disconnected devices, but I don't remember what it is called. It's not documented, you only find it by looking in the git commit history of bluez. I think they just forgot to document that.

@darkicekeel
Copy link
Author

otherwise, just shutting down bluez.
i'll try asap and update here if succeeded

@kakra
Copy link
Collaborator

kakra commented Jul 6, 2024

You can follow up here if you're observing that behavior of the Bluetooth device staying visible despite being disconnected: #475 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0 | type: enhancement New feature or request 0 | type: hardware support Support third-party hardware and clones
Projects
None yet
Development

No branches or pull requests

2 participants