-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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 connect to ZMK keyboard over Bluetooth on Pop_OS! 22.04 + Intel AX200 controller #1487
Comments
A friend of mine more familiar with ZMK suggested clearing all Bluetooth profiles on the keyboard (not just the one I was trying to use) and after doing so the issue is resolved. If I can provide any additional logs to help track down this bug, please let me know -- I will leave this issue open for a bit in case that would be helpful! |
Maybe the system upgrade wiped all the bonding informations, so the device can not be recognized anymore, and a sweep of Bluetooth profiles on keyboard may remove all the redundant bonds so they can be re-paired and re-bonded again. |
The problem here is that the issue existed on two different ZMK-based keyboards, one of which was never connected before the upgrade to 22.04 as it didn't exist then. I also cleared the first 4 profiles (the only ones I have ever tried to use on this keyboard) and that didn't resolve the issue, it was only resolved after clearing all profiles. Seems to be a bug of some sort that requires clearing all profiles from storage before you can properly connect in some scenarios. |
I have the same recurring issue, running ZMK on two nice!nanos for my new split keyboard. Everytime I clear the profiles / reflash the firmware the issue goes away, but returns after one successful connected session using the keyboard over Bluetooth. Any Updates on this by anybody? |
I have the same issue on nixos 23.11 I have done all the following : Removing the device, clearing all bluetooth profiles and flashing a settings reset firmware. But later I had to connect the device via usb to charge the battery, and after that the same error occur again when I try to pair the device. |
Finally, pairing with bluetuith instead of bluetoothctl resolved the issue in my case. |
Same issue on a glove80. Definitely a zmk strange behaviour I cannot understand (clear all only worked for me) |
Same issue, when upgraded to
Edit: so the kernel is fine, the issue is related to the arch package linux-firmware-20231110.74158e7a-1. I have no idea who is to blame here. |
happens to me again... this time clearing all profiles did not help... (kernel 6.6.3) |
From the Bluetooth protocol point of view: From the keyboard view: |
I first thought this was a kernel issue (works fine on linux 6.1, which I pinned for the time being) but I'm now also using a low energy pointing device which works perfectly fine, I'm starting to think that it's at least partially the fault of ZMK that this does not work |
this is pretty serious, if ZMK doesn't support all linux kernels >6.4 |
Can you get a full |
I will try to do so @petejohanson do you know someone who is running a zmk keyboard on a newer kernel where it's working fine? I have had this issue on all my nrf52840 boards for a while now... I have also reported an issue in the nixos repository, some other folks also reported problems with BLE on newer kernel and wanted to take it to the kernel bug report, the issue is that now I'm using another device that is BLE and works just fine so I started thinking it's not purely the kernels fault. |
I will check my recently updated Fedora laptop to see the specific kernel version, but otherwise I've not been tracking anything at that granularity at this point. I will need to do so if we see a trend. Can you also try my Zephyr 3.5 PR to see if anything improves? |
I have not updated zmk for a while, I will try this first. If issues persist, I will put logs here anyway. This is first running connnect, then after this fails pair. |
issues persist on firmware built with the latest 3.5 container |
Just to be clear, is it also built using the 3.5 Zephyr branch of ZMK? |
You'd need to actually use the ZMK branch from #1995 and |
my github workflow runs west update; does the container not have the 3.5 zephyr? why was it named that? |
It includes all the SDK and python dependencies needed to build something targeting Zephyr 3.5. |
If this is logs from |
btmon --read works fine for me, apparently it uses some binary format when doing --write |
Another user reporting issues had a |
Ah, didn't know it had some binary format support. Looking now. |
I also notice that the disconnects in both cases occur after the upgrade to 2M PHY... Perhaps related?
|
Still no luck. And it is extremely problematic when the keyboard disconnects while typing as the last key stays stuck repeating itself for n times until it reconnects again. |
I only used What does |
Trying to get keeb to connect to work laptop based on issues shown in: zmkfirmware/zmk#1487
You can check it here: https://zmk.dev/docs/config/bluetooth#kconfig It enables passkey entry requirement when pairing, where it asks you to enter a 6 digit pin and press enter. That sounds like what you are describing. |
This just broke again today. I don't know what changed between now and last night, I'm not aware of any software updates that happened on my laptop. I tried adding the |
You can use both halves of a split to enter the security code. |
When this bug occurs, the second half doesn't work. Even while primary half is connected via USB. |
What is the keyboard hardware? Are you possibly fully draining the battery on one or both sides? |
Sofle split that I have made a permanent fixed base for (unsplit). They
share power over a TRRS cable (permanently plugged in, no chance of damage
from insertion and removal, keyboards can't move relative to each other and
no room for cables to move) so when one side is powered both are powered.
…On Tue, 13 Feb 2024 at 01:29, Pete Johanson ***@***.***> wrote:
What is the keyboard hardware? Are you possibly fully draining the battery
on one or both sides?
—
Reply to this email directly, view it on GitHub
<#1487 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABPNS32ZK7CRWDJUO3OAUSLYTIYOZAVCNFSM6AAAAAARBPH42KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMZYHA4TQOJSGM>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
As a note, perhaps the issue title should be changed. I guess a lot of people are having the very same issue with indeed different distros and/or configurations. |
Hoping there is some sort of fix for this. My keyboard which has two nice nano v2s is able to be paired with my android phone and another Linux laptop that has a AX201 Bluetooth controller. But it isn't even discoverable on my PC that has an AX200 controller. I went and bought another Bluetooth controller that was also an AX200 because I thought my old one was faulty but it still doesn't discover it so there must be some sort of Bluetooth issue with zmk connecting to these controllers. Hoping there is some sort of fix soon. |
Your problem does not match the rest of the messages in this issue, then. All of the posts here involve pairing problems, not discovery problems. |
Some more points for troubleshooting. I just got home from a long trip where I had to buy a cheap Bluetooth keyboard for my tablet as I couldn't get this fixed while on the road. I thought maybe that there was an actual error with my nice!nanos due to the weirdness I was having. I could connect the left hand, primary side to my computer with USB cable or Bluetooth. No communication between the halves would happen at this point. I actually had to change my keymap to add a way to get to my "raise" layer from left side to test things with clearing pairings and stuff. I tried flashing each half with the other sides firmware (after flashing the reset firmware). This is what made me think it was a hardware issue as I could connect the "new" primary half via USB but not via Bluetooth. So maybe all my issues were with a n!n with broken bluetooth. I tested with my android phone to same results. Could connect to Left hand side when it was primary, couldn't connect to Right hand side. No communications between halves. Back home on my desktop, connected via USB keyboard worked immediately. Both sides communicating as normal. Re-pairing the Bluetooth, it also appears to work fine I tried pairing my tablet and it now paired correctly. I put in on slot 3, however it had the same behaviour.
TL;DR
Please tell me how I can help further. My current keymap and conf files, in case I have done something obviously wrong and not noticed. I've enabled logging but I don't really know what I am doing with it. |
Clearing all bt profiles worked for me. Thanks! |
Hi, I have tried with different config variations. Actually, I am going with CONFIG_ZMK_BLE_EXPERIMENTAL_FEATURES=y Do you have any suggestions how to solve or debug this? |
Still no luck with Fedora latest. |
So, thanks to @iBot1986 This may be the issue for others as well, so I just wanted to also encourage others to try that. |
@sadekbaroudi : Glad I could help! |
Well have to admit it is much better now with CONFIG_ZMK_BLE_EXPERIMENTAL_FEATURES or CONFIG_ZMK_BLE_EXPERIMENTAL_SEC, not sure, I added both just in case, it's the one that makes the OS request a pin from the keyboard. A pending issue in my case is when switching from Windows 11 to Fedora the connection is not auto-connecting on startup and I have to keep redoing the forget and add pin procedure, which usually does not work on the first try. |
If by this you mean you are dual-booting W11 and Fedora, you're going to need to take some extra steps to pair. See #2026 for previous discussion on the subject. |
Hello. I've encountered the same problem with connection on my ArchLinux fully updated machine. Using bluetoothctl I experienced the: |
CONFIG_ZMK_BLE_EXPERIMENTAL_FEATURES=y looks to have fixed my issue too. Although I didn't understand for a while that with that option I needed to manually type in the pairing code advertised by my bluetooth manager on my keyboard and press enter. Everything seems to work after doing that! |
If it helps someone. After adding
I almost gave up making it work but, found the workaround in bluez repo and my Ergounaut One keyboard works like a charm now! P.S. I have a laptop with Intel 12th gen CPU and it seems many people using this CPU have troubles with ZMK. Another reason might be Arch Linux since used versions of bluez and kernel are little tested for now |
But my system already loads uhid successfully, still no dice :\ |
Thank you all for solving the problem, my keyboard successfully connected to Android and Windows 11, but not to ArchLinux, the solution with |
Hi all,
For some reason (I believe after updating from Pop_OS! 20.10 to 22.04), I am no longer able to connect to either of my ZMK firmware keyboards over Bluetooth. I've collected all the logs I can think of below:
The Bluetooth controller is the built-in controller in the Intel AX200 chipset. I've tested all things I can think of, including manually installing the latest linux-firmware, reinstalling Pop_OS! from scratch, etc.
The connection does work properly on Windows and on another Linux laptop, plus my Android phone.
https://paste.sethforprivacy.com/?d908b857102a6e0d#6Csv3EbvFSz7HeSGTNCzdJupZkze4ZxAmoqVs3fVa5Wr
The text was updated successfully, but these errors were encountered: