-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
kscan-composite not waking up device from deep sleep. #2654
Comments
Related PR #2682 |
i ran into this feature gap this week as well, but applying the linked diff didn't seem to fix it. i've confirmed deep sleep wakeup works for my keyboard when i just have a kscan-matrix-gpio, but when i use a composite to combine two matrix-gpio kscans then it does not wake from deep sleep (with or without the linked patch). |
Do you have wakeup-source; set for composite and child nodes? |
yep, for all 3 kscans. the linked patch is working well for you?
|
I wrote the linked patch, it works on my keyboard™ |
heh weird, do you have the board that it works on published anywhere? I'm curious just to see other differences. |
There are two linked patches, @agrippa please make sure you're using the correct one |
|
ah thanks @Nick-Munnich ! missed the second patch, that one seems to be working. |
I'm using the kscan-composite driver to merge a kscan-gpio-matrix and kscan-gpio-direct driver, due to the way some keys are wired on my board.
Both drivers have the wakeup-source property configured in my device tree overlay.
When the board goes to sleep, pressing one of the keys does not wake it up.
If I change my chosen kscan to the kscan-gpio-matrix or kscan-gpio-direct driver, wakeup works as expected.
I'm not experienced with Zephyr or ZMK, but as far as I can see the kscan-composite.c driver just handles the kscan events from its children and turns them on / off if requested. Maybe the issue is that wakeup events from the children drivers don't get passed along? Or the children get disabled even though they shouldn't be, when the board goes into deep sleep?
Maybe someone can point me in the right direction.
The text was updated successfully, but these errors were encountered: