-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
SYSTEM_POWER and SYSTEM_SLEEP keys don't work #1077
Comments
Have you tried the |
Yes, I tried all *_SLEEP keycodes but only SYSTEM_SLEEP code is equal to other firmwares (including QMK that works). |
This is most likely because we don't process the General Desktop usage page in general (which is what SYSTEM_SLEEP tries to use). See here: https://github.com/zmkfirmware/zmk/blob/main/app/src/hid_listener.c#L19 |
I can confirm that none of the three options listed in the docs ( Here's a workaround using the new macro behavior that does work under Windows 11:
This defines a |
Windows 11 definitely requires a higher value for Since the Kinesis Advantage 360 came out recently, this might be an issue for people using that keyboard and the "programming software" Kinesis provides. For those users, you need to pad the UI changes with For a similar functionality to the macro @urob mentions, something like this should work:
Personally, I'm using a different method:
You can mess around with the number of |
On my (brand new) machine, 250ms or fewer is flaky, so you're correct there. However, aside from the timing, @urob's macro works fine for me, including |
@Nicell Is there any issue tracking this underlying issue by any chance? Lack of system sleep is a pretty big bummer |
#1535 linked above would be the issue tracking it. |
SYSTEM_POWER and SYSTEM_SLEEP keys don't work
Example:
&kp SYSTEM_SLEEP
Expected behavior: put the PC to sleep
Actual behavior: nothing happen (USB or BT connection)
It works for the same keyboard but with Pro Micro + QMK and with others keyboards
Windows 11 21H2 22000.376
Sofle V2 + nice!nano v2
Latest ZMK
The text was updated successfully, but these errors were encountered: