From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.2 Received: (qmail 23584 invoked from network); 1 May 2020 10:36:12 -0000 Received: from lists1.math.uh.edu (129.7.128.208) by inbox.vuxu.org with ESMTPUTF8; 1 May 2020 10:36:12 -0000 Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.92.3) (envelope-from ) id 1jUT1J-0001g3-8v; Fri, 01 May 2020 05:35:49 -0500 Received: from mx1.math.uh.edu ([129.7.128.32]) by lists1.math.uh.edu with esmtps (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.3) (envelope-from ) id 1jUT1E-0001dH-Uy for ding@lists.math.uh.edu; Fri, 01 May 2020 05:35:44 -0500 Received: from quimby.gnus.org ([95.216.78.240]) by mx1.math.uh.edu with esmtps (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.3) (envelope-from ) id 1jUT1D-0001K1-Jo for ding@lists.math.uh.edu; Fri, 01 May 2020 05:35:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=aAokv53bnDCu7HGMMjcKHjLEipURm9d6LvWHU6daJik=; b=dNLdSKW+Hwwp2RnDks0WJ2ldey dgyu+AJkJbllYtT/RHMkORc042HIxy103rM2JPrZGjLOf/G1v3pwPWaVUjZGqlxyFDsKKILXYviIP Py9iseUwXwY0pNBlpOFeW4g6HVQ1OxpSWEP+UFCIaW4UAcPC/QKiok9X5lW4zqG6srQI=; Received: from zplane.randomsample.de ([2a03:4000:42:1a1:9400:eeff:feb4:c8a0]) by quimby.gnus.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jUT13-0000LB-LN; Fri, 01 May 2020 12:35:39 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=randomsample.de; s=a; h=Content-Type:MIME-Version:Message-ID:Date: References:In-Reply-To:Subject:Cc:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=aAokv53bnDCu7HGMMjcKHjLEipURm9d6LvWHU6daJik=; b=QPYCxYYHyyx/747gsiLR38T/h F+c7IWsyNW5pkonkWeHaArrO8/LNyUt5GlckiGmzHlx9hc4HsOmIlcdw1yzQORrJgVGKIZehpZRw4 DN+jH4ELeLxXlYxvErpeXq3UPmBcrTOIqzu3UPNkK+3OkQSDGQme059ljrMyYZaUB18iOtgYt3ZQl EStlFqDseNi3v7cBBaq4gXTCEXcM8EaUeMstkqAVc8Uz2uBHLDHstDWLSUvIPXGot0qqY5bwDcz/I pROroE4CDw+OWtq6t79HTMzDck3q/DaVPh/Z93EhGexLwSUxmyD4AnqZrJkG6TjcLYZbO202538w9 EM3Ae2KnQ==; Received: from ip5f5abaee.dynamic.kabel-deutschland.de ([95.90.186.238] helo=void) by zplane.randomsample.de with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jUT11-00044O-JT; Fri, 01 May 2020 12:35:31 +0200 From: David Engster To: Lars Ingebrigtsen Cc: Eric Abrahamsen , ding@gnus.org Subject: Re: new wifi connection = nntp timeout = Emacs restart? In-Reply-To: <87mu6sc7hz.fsf@randomsample> (David Engster's message of "Fri, 01 May 2020 11:46:48 +0200") References: <87sgh3coxn.fsf@ericabrahamsen.net> <87o8rogew7.fsf@barthel.ch> <87zhb7mlf0.fsf@ericabrahamsen.net> <87a72t35ng.fsf@gnus.org> <87sggkeuvr.fsf@ericabrahamsen.net> <874kt01w30.fsf@gnus.org> <87r1w4boft.fsf@ericabrahamsen.net> <877dxwzjz6.fsf@gnus.org> <87mu6sbntb.fsf@ericabrahamsen.net> <87368kziq4.fsf@gnus.org> <87h7x0bm8p.fsf@ericabrahamsen.net> <87y2qcy2vb.fsf@gnus.org> <87mu6sc7hz.fsf@randomsample> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.91 (gnu/linux) Date: Fri, 01 May 2020 12:35:31 +0200 Message-ID: <87imhgc58s.fsf@randomsample> MIME-Version: 1.0 Content-Type: text/plain List-ID: Precedence: bulk > I have no idea if this is "The Best Way", probably not. Also, I'm not > seeing anything on resuming, but maybe there's another path for that...? > Or maybe I'm not letting my laptop sleep long enough? So at least for sleeping/waking this seems to be the easiest way: (require 'dbus) (defun 'my-go-to-sleep-handler (sleep-start) ;; sleep-start will be 't' before sleeping and 'nil' on wakeup? (when sleep-start (gnus-close-all-servers))) (dbus-register-signal :system "org.freedesktop.login1" "/org/freedesktop/login1" "org.freedesktop.login1.Manager" "PrepareForSleep" 'my-go-to-sleep-handler) -David