-
-
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
feat: Add soft lock/off support. #1840
Conversation
52dc443
to
0569d80
Compare
Initial work on a soft on/off support for ZMK. Triggering soft off puts the device into deep sleep with only a specific GPIO pin configured to wake the device, avoiding waking from other key presses in the matrix like the normal deep sleep. Co-authored-by: Cem Aksoylar <[email protected]>
5ee0382
to
5d880bd
Compare
Would it be possible to split this up into general soft off functions and then the driver that controls them based on a GPIO? I can think of a couple use cases which would want to trigger the same soft off behavior, but which couldn't use this GPIO code:
|
@joelspadin Great ideas, trying to figure out the best way to make this happen in a reasonable way: Right now, the one driver does the following:
To do this reasonably, I needed an easy way for #2 to be completely independent from #1. I came up with this theoretical DTS:
The reason being, I want the Thoughts? Too convoluted? |
Closing in favor of #1942 which supersedes this. |
Initial work on a soft lock/off support for ZMK. Triggering soft off puts the device into deep sleep with only a specific GPIO pin configured to wake the device, avoiding waking from other key presses in the matrix like the normal deep sleep.