DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 52TJd0eo943153
Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com
Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com
DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 52TJd0eo943153
Authentication-Results: delorie.com;
	dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=bTd3dp8E
X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 798973858435
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1743277139;
	bh=3gjOZ/njS//mff87qPXXFyAJNjTLpWyw3qu9/j+fNkQ=;
	h=Date:To:cc:Subject:In-Reply-To:References:List-Id:
	 List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe:
	 From:Reply-To:From;
	b=bTd3dp8ET/nL0e2uyDjOnyfTtfsnf/e9gQvs5XbmdsPP75dKPnbqRTxhrwrmqBf0o
	 P5V1PBZ1L1Kdd6eWxSvSYmwNMiwnYwynn/x88dEmiUvpDrNMgZF6QsOH1iQsPDdBGa
	 +P4c2YtWC0/3zlaNmGgWZdMNJP7IlX/s1KxFXWOM=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 0FCFD3858D1E
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 0FCFD3858D1E
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1743277115; cv=none;
 b=O5Wwib7hVj01odlTIlc3Du7I4cJ12hBGea1l7/Czcd4an+C7S4qI21X9WV3VQ1GnsfIzCBtblp19OhnLI2b8Y6LFoRLiSCwGmWvp1QBJoY6PBADNxAMcNkPe7NkE4XQeb+Xetwlo8iHVBXe311fT2Tak4Vvt+o0NYC0OFDpPNqQ=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
 t=1743277115; c=relaxed/simple;
 bh=JdWwdff7ofPfEcL6PF1UUQrAuxeiLAznRks72cRKOII=;
 h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version;
 b=B5IlSL21wg5RlZgbQqQFYqo2tGkBKsMtSugwmoby7fiuRJVrT8q/yMf6hBC9tbXie2l0LrNB3XrWijkU0VT8hDY7R1fvuO3731/qy8UNE+7aklCeyWjVyB+iMItRIZiFONpC6w2GpXWLF/MyVPjJtQzxbMvYsKjuLxKzKTZjhJw=
ARC-Authentication-Results: i=1; server2.sourceware.org
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0FCFD3858D1E
Date: Sat, 29 Mar 2025 12:38:34 -0700 (PDT)
X-X-Sender: jeremyd@resin.csoft.net
To: Soren <somian08@gmail.com>
cc: cygwin@cygwin.com
Subject: Re: sshd times out and disconnects client
In-Reply-To: <CAGB_HuRNNw3QK2O6=Pi7PnxEJ4XTPK_hkcRvP1jgR1SaZjbruA@mail.gmail.com>
Message-ID: <38d3017d-7147-baba-d590-e6222f3440b9@jdrake.com>
References: <eb4f5785-f6ae-ad0b-0ebf-25faaae64c61@mindspring.com>
 <CAGB_HuRd20=5x5qLoFpeEY5Qy+bw4=bZ6AkNHuL0QKeMY+5xFQ@mail.gmail.com>
 <CAGB_HuRNNw3QK2O6=Pi7PnxEJ4XTPK_hkcRvP1jgR1SaZjbruA@mail.gmail.com>
MIME-Version: 1.0
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.30
Precedence: list
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
From: Jeremy Drake via Cygwin <cygwin@cygwin.com>
Reply-To: Jeremy Drake <cygwin@jdrake.com>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: cygwin-bounces~archive-cygwin=delorie.com@cygwin.com
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie.com@cygwin.com>

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
