![]() ![]() sleep 0.1 pmset sleepnow will exhibit the behavior if I don't release enter within 0.1 seconds, sleep 0.2 pmset sleepnow will exhibit the behavior if I don't release enter within 0.2 seconds, and so on. Pressing enter to run pmset sleepnow will exhibit the unwanted sleep-wake behavior. If I press and release the triggering key fast enough-and I mean truly fast, so that there is only a few ms between the key down and key up events-when triggering a sleep, then macOS will stay asleep. I'm guessing there's an event that occurs shortly after the first key down event triggers the system's sleep that causes the system to wake. The only exception to this I can find is that highlighting Sleep from the Apple menu then pressing enter will cause macOS to sleep and stay asleep, and I believe I know why. The same rules explain observations: exit the lock screen by pressing escape and macOS will sleep then wake, exit by clicking Cancel and macOS will stay asleep. Timeout will fire in 47 secs Action=TimeoutActionTurnOffįrom my testing, Karabiner will cancel sleep if sleep is triggered by pressing a key on a Karabiner-controlled keyboard.įor example, when triggering sleep through Raycast or Alfred, pressing enter to activate the relevant sleep command will cause macOS to sleep then immediately wake clicking (in Raycast you can click on Open Command) to activate the sleep command will cause macOS to sleep and stay asleep. Pid 295(powerd): 00:04:12 InternalPreventDisplaySleep named: "" Pid 295(powerd): 00:00:00 UserIsActive named: ".useractive AppleHIDTransportHIDDevice:kIOHIDSystemActivityTickle n圎vent: 0" Pid 295(powerd): 24:42:39 PreventUserIdleSystemSleep named: "Powerd - Prevent sleep while display is on" ![]() ![]() Timeout will fire in 1800 secs Action=TimeoutActionRelease Pid 351(WindowServer): 00:00:00 UserIsActive named: ".tickle serviceID:100000c23 name:AppleUserHIDEventSe product:Karabiner DriverKit eventType:3" ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |