On Sat, 29 Mar 2025, Soren via Cygwin wrote: > I'll add a bit more information in hopes that we can still find a fix. This > Windows 10 laptop goes into "sleep mode" after a couple hours of no > keyboard or mouse input, and when it does so sshd disconnects any sessions. > > Also, I remember hearing of a "mouse jiggler" utility that would simulate > use of the mouse to keep Windows from going to sleep, but that was years > ago. If such a thing still exists, maybe a list reader knows about it.
Sure, you could do a mouse jiggler, but I'd just have something that periodically calls SetThreadExecutionState (ES_SYSTEM_REQUIRED) while an ssh session is active. The remarks say "The system automatically detects activities such as local keyboard or mouse input, server activity, and changing window focus. Activities that are not automatically detected include disk or CPU activity and video display." It seems like ssh keepalive should count as server activity, but apparently not. -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple