From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/80442 Path: news.gmane.org!not-for-mail From: Richard Riley Newsgroups: gmane.emacs.gnus.general Subject: Re: Reviving Gnus after suspend/hibernation Date: Fri, 28 Oct 2011 18:27:02 +0200 Organization: aich tea tea pea dicky riley dot net Message-ID: References: <87wrc2qmog.fsf@gnu.org> <877h3ule0y.fsf@lifelogs.com> <87hb2ucox4.fsf@lifelogs.com> <87obx2e17x.fsf@gmail.com> Reply-To: ding@gnus.org NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1319819312 14514 80.91.229.12 (28 Oct 2011 16:28:32 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 28 Oct 2011 16:28:32 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M28729@lists.math.uh.edu Fri Oct 28 18:28:27 2011 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RJpI9-0000xg-VA for ding-account@gmane.org; Fri, 28 Oct 2011 18:28:26 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1RJpHA-0005kC-TL; Fri, 28 Oct 2011 11:27:24 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1RJpH9-0005k1-Fn for ding@lists.math.uh.edu; Fri, 28 Oct 2011 11:27:23 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1RJpH5-0001m0-0d for ding@lists.math.uh.edu; Fri, 28 Oct 2011 11:27:20 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1RJpH2-0007s3-3V for ding@gnus.org; Fri, 28 Oct 2011 18:27:16 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RJpH1-0000K9-K7 for ding@gnus.org; Fri, 28 Oct 2011 18:27:15 +0200 Original-Received: from 85.183.18.158 ([85.183.18.158]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 28 Oct 2011 18:27:15 +0200 Original-Received: from rileyrg by 85.183.18.158 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 28 Oct 2011 18:27:15 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-Lines: 43 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 85.183.18.158 Mail-Copies-To: never User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) Cancel-Lock: sha1:BNIpK5pAgz3ihL6NbMhcmkR3mJI= X-Spam-Score: -3.3 (---) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:80442 Archived-At: coroa@online.de (Jonas Hörsch) writes: > On Thu, Oct 27 2011, Ted Zlatanov wrote: > >> Asking emacs-devel since the Gnus list didn't have any answers: >> >> On Mon, 24 Oct 2011 09:23:09 -0400 Ted Zlatanov wrote: >> >> TZ> On Tue, 18 Oct 2011 18:39:11 +0200 ludo@gnu.org (Ludovic Courtès) wrote: >> LC> When Gnus is left plugged or has non-agentized nnimap groups, recovering >> LC> from suspend-to-RAM or hibernation has always been a problem for me: >> LC> sometimes Emacs is frozen upon resume, trying to get data from some IMAP >> LC> stream. >> ... >> TZ> (Assuming modern GNU/Linux system is the main focus based on your >> TZ> commands) >> >> TZ> Is there a D-BUS signal for this, and can Emacs catch it? If so I could >> TZ> try to close the open connections in that handler. >> >> TZ> What happens on a W32 system? >> >> Any help is appreciated. I don't know anything about these system events. >> >> Thanks >> Ted > > I'm not sure about catching a suspend event, that probably is based on > who is suspending anyway (Is it a DBUS-using power manager, like KDE's > powerdevil or the gnome-power-manager?). > > But if the network interfaces are managed by NetworkManager, you can at > least hook into connect/disconnect signals. There is some working > implementation on the EmacsWiki: > > http://www.emacswiki.org/emacs/GnusNetworkManager > NetworkManager is uninstalled by many of us because it can be buggy, is poor at handling VPNs and "does its own thing" rather than respect the interfaces file. So if this could be done at a point common to both NM *and* manual interfaces/wpa__supplicant handling that would be better.