SonixQMK/qmk_firmware

[Bug] Keychron C1 (White) can't wake computer from suspend

Plombo opened this issue · 2 comments

Describe the Bug

With firmware built from the latest sn32_master branch, the Keychron C1 (white backlight version) can't wake my computer from a suspended state. The keyboard's backlight and LEDs also don't turn off like they should when the computer is suspended. Neither of these problems happens with precompiled firmware from here, based on an older revision, so it seems to be a regression. I can't bisect it, though, due to problems building working firmware from any git revisions older than a certain point.

System Information

  • Keyboard: Keychron C1 (White)
    • Revision (if applicable):
  • Operating system: Linux Mint
  • AVR GCC version: 5.4.0
  • ARM GCC version: 9.2.1
  • QMK Firmware version: 0.7.101
  • Any keyboard related software installed? no

Additional Context

Since filing this bug, I've confirmed that the problem with the backlight and LEDs is unrelated to the problem with USB remote wakeup.

The issue turned out to be some remote wakeup code trying to sleep for 2 milliseconds instead of busywaiting through that time. This ChibiOS-Contrib pull request fixes the bug.