qmk / qmk_firmware

Open-source keyboard firmware for Atmel AVR and Arm USB families
https://qmk.fm
GNU General Public License v2.0
17.8k stars 38.13k forks source link

[Bug] Keyboard does not send keystrokes till it is plugged back in #12732

Closed obrian33 closed 2 years ago

obrian33 commented 3 years ago

Once computer goes to sleep and is awake the keyboard doesn't send keystrokes.

Describe the Bug

After upgrading to MacOS Big Sur 11.3, when the M1 Mac Mini goes to sleep the keyboard doesn't send key strokes until replugging in the board.

System Information

Additional Context

obedparla commented 3 years ago

I have the exact same issue, M1 Macbook Pro. The keyboard won't work when waking up from sleep. I have to re-connect it every time

I also have a Macbook Pro with Intel chip, i could test there to see if the bug is in Big Sur or with the M1 chip.

kylpo commented 3 years ago

Happens to me on 3 separate QMK keyboards, on both of my new M1 Macbook Airs.

Standard keyboards from Apple and Logitech seem to not have this issue.

mike1808 commented 3 years ago

I defined NO_USB_STARTUP_CHECK in my config and it helped to solve the issue with GMMK Pro.

obedparla commented 3 years ago

Thank you @mike1808 ! I changed it in Oryx for the Ergodox EZ and it fixed the issue: image

obrian33 commented 2 years ago

Closing issue as MacOS 11.6 no longer has this problem as well as having the workaround introduced by @mike1808.

Thanks!

Erbenos commented 2 months ago

I am still experiencing this exact issue on

Keyboard: Keychron Q4 System Version: macOS 14.4.1 (23E224) QMK at 16557f9975abf693675e2cc246f3d1b1f73faf96

With v1 firmware. Keyboard does wake the PC from sleep, but upon waking the PC from sleep it doesn't send any keypresses to it. Setting NO_USB_STARTUP_CHECK is an unfortunate workaround, cause it disables the ability to wake PC from sleep altogether, though it does solve the initial issue.

Erbenos commented 2 months ago

Setting the USB_SUSPEND_WAKEUP_DELAY as documented at https://docs.qmk.fm/#/config_options?id=hardware-options seems to work as a better workaround - keyboard does wake up the PC and it sends the keypresses after waking up too.