-
-
Notifications
You must be signed in to change notification settings - Fork 39.9k
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
[Bug] STM32 based keyboard does not wake up propperly when booting pc #22778
Comments
@KarlK90 Tried your PR, but doesn't make any change. Keyboard is still dead until i unplug / plug it, after powering on the pc. |
Further debugging (on linux), it seems that it only happens when doing a cold boot. If I just reboot the computer the keyboard enumerates correctly on the USB port. But if the pc has been powered off, the keyboard does not enumerate until it's re-plugged.
Just a wild guess but can the usb driver timeout during poweron, and "crash" if there is no host to enumerate it? |
Keychron Q11 is a split board without a VBUS detection pin, therefore it probably needs the split watchdog to handle that case — try adding this to #define SPLIT_WATCHDOG_ENABLE |
@sigprof even though that it doesn't make sense (reading the docs about SPLIT_WATCHDOG_ENABLE) it actually fixed the issue. According to the docs, it resets the slave but in my case it's the master that hangs (as it is the master that is connected to the host, and does not enumerate correctly) |
The problem is that without a VBUS detection pin the master side detection does not work if there is a large delay between supplying the power and actually enumerating the USB device, and that kind of delay often happens when the computer gets powered on from the fully off state. Then both sides start up in the slave mode, and without Currently QMK does not have any way to switch between the master and slave roles at runtime — the choice needs to be made during the firmware initialization; the |
@sigprof ok, it makes more sense now. So this actually needs to be changed in the qmk repo as well for this keyboard, as it's not just a keymap issue. I'll create a pr "next year" ;) |
Describe the Bug
Using a keychron Q11 (STM32 based), with latest develop (updated yesterday). The keyboard is connected directly to my laptop with USB.
When I power on the laptop the keyboard is unresponsive until I unplug it momentarily. I see the same on ubuntu 22.04 and windows 11.
Keyboard Used
keychron/q11/iso_encoder
Link to product page (if applicable)
No response
Operating System
Ubuntu 22.04 and windows 11
qmk doctor Output
Is AutoHotKey / Karabiner installed
Other keyboard-related software installed
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: