-
Notifications
You must be signed in to change notification settings - Fork 110
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
Xbox One Controller asks for pin during pairing #262
Comments
I can only think of the correct pairing agent not being registered. Try in
and try again after each setting using |
Hi,
Connection fails unfortunately. However I then do
This succeeds. The gamepad is paired, however after every reboot I have to turn on xbox controller and then do:
And it connects. This doesn't happen on live cd I guess something is f*cked in some configuration file somewhere.
|
Yeah, I've seen this behavior myself. I could fix it by pairing the controller again and again until the link key properly showed up in There seems to be a race condition when using bluez with the KDE GUI client where it simply confirms pairing for a short time after powering the host radio on. The GUI client also sometimes mixes up the name of a connected device and its MAC, so there may actually be bugs. Usually, you should be able to get the controller connected by simply rebooting while it tries to connect. |
Hi,
After powering on PC it says: |
Hi, I don't know what this means exactly, however everything started to work (including pairing from gui) when I changed: In |
Bluetooth does usually not enable itself to accept connections until a desktop agent is ready. This option changes that. |
Hi, sorry for late response. Do you mean I still have this "desktop agent" broken somehow that it's not ready? I mean:
I'm not sure what to look for. Thanks for all the help. |
My understanding is that an agent is some running tool that registers with dbus to the Bluetooth service. By default, it's bluetoothctl itself unless you run a different tool. |
This may be a duplicate of #272. |
May also be related to #166 as the remaining pairing issues are probably with the authentication agent (once pairing in ERTM mode works from the kernel side). |
Is this still an issue with kernel 5.12 and ERTM enabled? |
Yes if I revert the "fix" the issue still occurs. But it must be something with my setup, this doesn't happen on "live cd" linux for example. |
I think the concurrent installation of two Bluetooth managers may cause it: They probably listen on the same dbus endpoints and may interfere with each other.
Usually, the desktop agent will enable the adapter. If this cannot happen properly due to interference between concurrent agents, you may need to just work with this setting. So I agree we should close it. It's even not really a Bluetooth issue in this case but something awkward with your setup which thankfully has a work-around. |
I saw this post on reddit, It resolved this issue for me. After no solution from the internet, I worked days after days tinkering with bluetooth profiles and finally solved it. I am here to share my solution: First of all, if you're using first party controller, use an external USB bluetooth which should connect without any tinkering. Then move to the solution bellow (this will not only work for xbox, but also third party generic bluetooth gamepads, chinese bluetooth gamepads, EasySMX gamepads with Nintendo Switch Controller mode and some bluetooth keyboards) Edit /etc/bluetooth/input.conf (if not available, create one) and edit the options to match the following config: Configuration file for the input service This section contains options which are not specific to any
Now, your device will connect even if the pairing key is not exchanged or the bluetooth adapter fails to exchange the keys. |
@lsantos7654 Re-opening for including your suggestion into the documentation. |
Closes: atar-axis#262 Signed-off-by: Kai Krakow <kai@kaishome.de>
Hi,
This is not a problem with xpadneo (I think) as xpadneo module is not even loaded at this point.
I hope you allow this discussion, since here I'll be able to find people who use xbox one controller on linux.
I'm on manjaro KDE, and since like 2 weeks I cannot pair the controller at all (previously paired controller also didn't connect).
During connection my pc tells me to enter a (randomly generated) pin on the xbox one controller and obviously I cannot do that :)
Connection attempt through gui (sorry it's not in english):
![Screenshot_20201213_173819](https://user-images.githubusercontent.com/9214100/102017927-13073800-3d6a-11eb-9bb7-3fa75a584baf.png)
![Screenshot_20201213_173732](https://user-images.githubusercontent.com/9214100/102017937-261a0800-3d6a-11eb-8365-ea7b3fd7c970.png)
![Screenshot_20201213_173741](https://user-images.githubusercontent.com/9214100/102017938-287c6200-3d6a-11eb-853d-2bcd46dadb0a.png)
Connection attempt through bluetoothctl:
I hope I can find someone here with this problem.
System information:
Possibly relevant information:
Only thing bluetooth related I did in last weeks was to install this pulseaudio fork (which provides better bluetooth headset functionality), so this 2 packages:
https://aur.archlinux.org/packages/pulseaudio-hsphfpd/
https://aur.archlinux.org/packages/hsphfpd-git/
In order to select bluetooth headset's codec and profile I had to install blueman:
I'd appreciate any help if someone else has this problem :)
The text was updated successfully, but these errors were encountered: