Skip to content
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] Plank Light Sleep issues #5239

Closed
3 tasks
drashna opened this issue Feb 25, 2019 · 1 comment
Closed
3 tasks

[Bug] Plank Light Sleep issues #5239

drashna opened this issue Feb 25, 2019 · 1 comment

Comments

@drashna
Copy link
Member

drashna commented Feb 25, 2019

Describe the Bug

The Planck Light does not properly sleep when the computer it's attached to does.

Found out that this is because NO_USB_STARTUP_CHECK is defined, which blocks this code. Undefining this allows it to turn off.

However, it has some issues with audio.
Specifically, it re-inits the board, like it crashes. So it plays the startup sound when it shouldn't be.

So, it looks like (well, sounds like, really) there is an issue with the sleep/idle code for the AT90USB1286 chip that needs to be handled differently. My guess is the watchdog timeout code is the issue. But I'm not sure about that, nor do I know how to fix this.

#ifndef NO_SUSPEND_POWER_DOWN
/* watchdog timeout */
ISR(WDT_vect) {
// compensate timer for sleep
switch (wdt_timeout) {
case WDTO_15MS:
timer_count += 15 + 2; // WDTO_15MS + 2(from observation)
break;
default:
;
}
}
#endif

System Information

  • Keyboard: Planck Light
    • Revision (if applicable): Light
  • Operating system: Win 10
  • AVR GCC version: 7.3.1
  • QMK Firmware version: 0.6.303
  • Any keyboard related software installed?
    • AutoHotKey
    • Karabiner
    • Other:
@drashna drashna changed the title Plank Light Sleep issues [Bug] Plank Light Sleep issues Feb 25, 2019
@drashna
Copy link
Member Author

drashna commented Feb 21, 2021

Doesn't seem to be an issue, anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant