-
Notifications
You must be signed in to change notification settings - Fork 71
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
Cannot pair UHK80 via Bluetooth to my Linux laptop via settings UI #999
Comments
For me, pairing works from blueman-manager 2.4, but it's not intuitive. When I first tried it, I entered the pairing code on my UHK. But by then, the pairing notification disappeared on Linux Mint, making me forget to pair it on my PC, so pairing didn't succeed, seemingly for no reason. Later, I retried pairing and realized that I should open my notifications. When confirming the pairing on my PC, it immediately worked. Which GUI do you use exactly, and have you confirmed pairing on your laptop? |
I am using the Pop_OS! system configuration UI. It looks like this: You can see that the UHK 80 is currently "Not Set Up". That is because I just disconnected and removed it, so it's now considered unknown, unconnected, and unpaired. I can now reproduce the issue. On other BT devices, I just click on the entry and it would start pairing mode, I'd be asked for passkeys etc. until the device is connected and paired. With the UHK 80, I can click on the entry and I get a spinner for about 1 second, then it goes back as "Not Set Up". Nothing happens on the UHK; I don't get prompted to enter anything. I then tried the above sequence again ( Then I tried again with my Android phone, and the pairing started. I stopped it on the phone, and entered an incorrect code on the UHK. After that, the It's certainly not correct that I need an Android device first to get the UHK to start pairing with my Linux Laptop. |
Please check the executable name of this configuration GUI. I'd install it on Linux Mint and try to reduce it. In any case, I'm curious about the exact application. |
Oh I also want to mention that some of my pairing and connection attempts got the right half to reboot. At least that's what I think it did. The backlight went out for 1-2 seconds and then everything came back. The settings app is "GNOME Settings". There's a Bluetooth section in there. |
I've reproduced the issue using Gnome settings. On the first connection attempt, Zephyr crashed:
Right afterward, however, I could pair my UHK 80 on the second attempt from the GUI. We'll fix this firmware bug. |
I need to know whether you had the right half connected over USB at the time of pairing. |
@benedekkupper I had the right half connected over USB during pairing. |
How does it behave if you don't have it connected? |
According to my limited testing, I can't reproduce this bug if USB is disconnected. @mhantsch How about you? |
I don't remember. I'll have to retest. In any case it shouldn't behave like that. |
I tried reproducing it today with and without the USB cable connected. But after installing firmware 11.1.0 #64396d1 I was not able to pair with bluetooth at all. |
When I have USB disconnected, I get this:
From the UI it also does not start the pairing. If I have USB connected then the right half will restart when I try to connect or pair. |
I've finally - after lots of tinkering around with UI clicking and occasional I'm now scared to ever forget the pairing on my Laptop again as it was so tiring and needed many attempts to get it to show a pairing code. I don't know what made it do the pairing now. |
Do these two devices have different icons? |
I can see this on Android: Pairing only works if I click on the entry with the keyboard icon. @benedekkupper Why do we see two entries? It's confusing from a user standpoint, and only one should be shown. |
I expect one of them is the Nus advertisement. I have made uhk advertise both interfaces all the time given that we want to allow connecting multiple hosts. (Yes I know you prefer different implementation, but let's go with the simpler one for the moment.) |
Can we at least give them different names? As in "UHK 80 keyboard" and "UHK 80 control", and on systems that do not show the icons you would at least know to click on the entry that says "UHK 80 keyboard"? |
We can probably do better by tweaking advertising parameters so that only the relevant connection appears. But first, let's wait for @benedekkupper's answer to be sure what's causing this issue. |
The problem with pairing bluetooth keyboards to Linux seems to affect ZMK too. And indeed, I cannot pair my ErgoTravel keyboard using SuperMini nRF52840 boards (compatible to nice!nano) and running ZMK firmware. Here is the corresponding issue from ZMK where people are reporting the same errors that I have been seeing with the UHK 80: |
For reference, for my ZMK keyboard, compiling the ZMK firmware with The UHK 80 still doesn't pair to the same Laptop. |
Framework Laptop 13 running Pop_OS! 22.04 (based on Ubuntu 22.04).
I am trying to connect & pair the UHK80. It shows up in the Bluetooth settings as "Not set up" but when I click on it, nothing happens. I don't get prompted with pairing code, nor does the UHK show anything.
Pairing works fine from my Android phone.
If I try manually from commandline, I see this:
However, if I manually just issue a "connect", it then starts pairing:
So I finally got it to pair and it works fine now, but I couldn't have done that through the UI.
Seems like there is still room for improvement.
Let me know how I can provide you with further traces, or anything else you need.
The text was updated successfully, but these errors were encountered: