From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 4984 invoked from network); 21 Aug 2020 20:48:18 -0000 Received: from lists1.math.uh.edu (129.7.128.208) by inbox.vuxu.org with ESMTPUTF8; 21 Aug 2020 20:48:18 -0000 Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.94) (envelope-from ) id 1k9Dx7-008w4O-H1; Fri, 21 Aug 2020 15:47:57 -0500 Received: from mx2.math.uh.edu ([129.7.128.33]) by lists1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1k9Dx3-008w2U-CD for ding@lists.math.uh.edu; Fri, 21 Aug 2020 15:47:53 -0500 Received: from quimby.gnus.org ([95.216.78.240]) by mx2.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1k9Dwz-00FERG-CU for ding@lists.math.uh.edu; Fri, 21 Aug 2020 15:47:52 -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: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:In-Reply-To:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=dDGzQGcPgiIBB3OduNkzQaXKyTfb2r2ZiOSwA7ieKzw=; b=UTNvktREiWHjGABW0NaUYyX/BB /pnoC8MfWhkQxl6XzOshTrv6wwXGgAAEk70DmP1U+3ogcCoHGmyFC5Xyw1Alo8r5KwbpqeqGDCMVQ GDJOktDJg/G877+Ykx8MML4Ir5Q87voumijrNl5QHSQ0rNvBAAHxI9Nar8DC1sb5uunE=; Received: from ericabrahamsen.net ([52.70.2.18] helo=mail.ericabrahamsen.net) by quimby with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k9Dwp-0006kX-4z; Fri, 21 Aug 2020 22:47:41 +0200 Received: from localhost (c-73-254-86-141.hsd1.wa.comcast.net [73.254.86.141]) (Authenticated sender: eric@ericabrahamsen.net) by mail.ericabrahamsen.net (Postfix) with ESMTPSA id 3B47FFA30C; Fri, 21 Aug 2020 20:47:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericabrahamsen.net; s=mail; t=1598042857; bh=dDGzQGcPgiIBB3OduNkzQaXKyTfb2r2ZiOSwA7ieKzw=; h=From:To:Cc:Subject:References:Date:From; b=Vt0fVo/vNo1sDX/QkyssBsqjar3CCfjKppaZ0k9spjOgwISG/o8Q4ojL2sq6bIdMj FkitLEwKUjry2xv0eJAZFIKalbV/tJ/xpvE+5FKZWJJORSu3bRhrQo9LBykmwWZdoP RSaeijzq9nN9x8v4djrS5UnOplzVADylFyM9Yyes= From: Eric Abrahamsen To: David Engster Cc: Lars Ingebrigtsen , ding@gnus.org Subject: Re: new wifi connection = nntp timeout = Emacs restart? 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> <87imhgc58s.fsf@randomsample> Date: Fri, 21 Aug 2020 13:47:35 -0700 Message-ID: <87blj3680o.fsf@ericabrahamsen.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain List-ID: Precedence: bulk On 05/01/20 12:35 PM, David Engster wrote: >> 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) > Okay, I've finally done this up, as Bug#42977.