We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Problem: Using my Ergodox on Arch Linux, the Ergodox will not wake the computer from suspend.
Attempted fix:
First "fix" caused it to always wake up instantly.
Ultimately ended up with the following diffs and it works great for me:
--- a/common/avr/suspend.c +++ b/common/avr/suspend.c @@ -59,6 +59,7 @@ static void power_down(uint8_t wdto) #ifdef PROTOCOL_LUFA if (USB_DeviceState == DEVICE_STATE_Configured) return; #endif +#ifndef NO_SUSPEND_POWER_DOWN wdt_timeout = wdto; // Watchdog Interrupt Mode @@ -78,6 +79,7 @@ static void power_down(uint8_t wdto) // Disable watchdog after sleep wdt_disable(); +#endif } void suspend_power_down(void) @@ -90,8 +92,10 @@ bool suspend_wakeup_condition(void) matrix_power_up(); matrix_scan(); matrix_power_down(); - for (uint8_t r = 0; r < MATRIX_ROWS; r++) { - if (matrix_get_row(r)) return true; + for (uint8_t r = 0; r < MATRIX_ROWS; r++) { + for (uint8_t c = 0; c < MATRIX_COLS; c++) { + if (matrix_is_on(r,c)) { return true; } + } } return false; }
The text was updated successfully, but these errors were encountered:
you should make a pull request. maybe he'll merge it
Sorry, something went wrong.
No branches or pull requests
Problem: Using my Ergodox on Arch Linux, the Ergodox will not wake the computer from suspend.
Attempted fix:
First "fix" caused it to always wake up instantly.
Ultimately ended up with the following diffs and it works great for me:
The text was updated successfully, but these errors were encountered: