Skip to content

feature request: Passing the very first key presses to host while the keyboard is in deep sleep #2686

Description

@bam80

Hi,
I'm new to ZMK, but a long time BT keyboards user.

One behavior driving me nuts is the loosing of the first key-presses if the keyboard is in deep sleep (and thus disconnected itself from BT host).
As it's turned out, one half of the problem is a regression in Linux BT stack (Bluez), when the key events gotten by host are just discarded until the keyboard fully re-connects (from host POV). The optional fix (workaround?) for Bluez was recently introduced:
bluez/bluez#737

That still wasn't the end of the story, unfortunately:
apparently, some BT keyboards (even modern ones, with BT 5.0) do not pass the key events to host at all, if they were in deep sleep!:
bluez/bluez#737 (comment)
That was quite unexpected to me, because even ancient BT 3.0 "Microsoft" keyboard didn't have the issue, as well as the other cheap one.

I really upset about this situation. The proper behavior in this case is essential to me.
My only hope is ZMK (and others free keyboard firmwares) do that properly.

Any insight how things are really going?
Could we implement the feature in ZMK, if it doesn't do that yet?
Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions