From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Tom Tromey Newsgroups: gmane.emacs.devel Subject: Re: HowTo: Detect Laptop waking up from suspend from Emacs Date: Sat, 11 Feb 2017 10:50:08 -0700 Message-ID: <8760kg4nxr.fsf@tromey.com> References: <22686.27448.427789.633250@gargle.gargle.HOWL> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1486835463 14964 195.159.176.226 (11 Feb 2017 17:51:03 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 11 Feb 2017 17:51:03 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.91 (gnu/linux) Cc: emacs-devel@gnu.org To: raman@google.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Feb 11 18:50:57 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ccbp1-0003OT-AV for ged-emacs-devel@m.gmane.org; Sat, 11 Feb 2017 18:50:55 +0100 Original-Received: from localhost ([::1]:49118 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ccbp7-0005cq-1W for ged-emacs-devel@m.gmane.org; Sat, 11 Feb 2017 12:51:01 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57267) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ccboP-0005Xt-AO for emacs-devel@gnu.org; Sat, 11 Feb 2017 12:50:19 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ccboM-0000Do-8N for emacs-devel@gnu.org; Sat, 11 Feb 2017 12:50:17 -0500 Original-Received: from gproxy5-pub.mail.unifiedlayer.com ([67.222.38.55]:48167) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1ccboL-0000Db-UU for emacs-devel@gnu.org; Sat, 11 Feb 2017 12:50:14 -0500 Original-Received: (qmail 32626 invoked by uid 0); 11 Feb 2017 17:50:13 -0000 Original-Received: from unknown (HELO cmgw3) (10.0.90.84) by gproxy5.mail.unifiedlayer.com with SMTP; 11 Feb 2017 17:50:13 -0000 Original-Received: from box522.bluehost.com ([74.220.219.122]) by cmgw3 with id jVqA1u0042f2jeq01VqDSa; Sat, 11 Feb 2017 10:50:13 -0700 X-Authority-Analysis: v=2.1 cv=WOnsABcR c=1 sm=1 tr=0 a=GsOEXm/OWkKvwdLVJsfwcA==:117 a=GsOEXm/OWkKvwdLVJsfwcA==:17 a=L9H7d07YOLsA:10 a=9cW_t1CCXrUA:10 a=s5jvgZ67dGcA:10 a=n2v9WMKugxEA:10 a=1XWaLZrsAAAA:8 a=NEAV23lmAAAA:8 a=jSnMrBFFyPTab03tq9UA:9 a=XNUrExV-lVQA:10 a=VlZU0XKO32wA:10 a=nJcEw6yWrPvoIXZ49MH8:22 a=Bn2pgwyD2vrAyMmN8A2t:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Type:MIME-Version:Message-ID:In-Reply-To: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:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=/DsKTOB9HBQiWwDnlv3aLPAnYHCcQqSZ9bkEDwCs4fg=; b=TM2GCoA90AHuEod1SaJXgvGxV0 PKEwaM4Zua1clC1NEeCqSPYV/pBl09lRMT5RpABX6gts9wCPGm4/11jX+odZ1SumSSGwPMzQFMA7o RjBwxj6fQIuGq/PZstXL6UQ6a; Original-Received: from 75-171-188-196.hlrn.qwest.net ([75.171.188.196]:50714 helo=bapiya) by box522.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.87) (envelope-from ) id 1ccboH-00046e-Tk; Sat, 11 Feb 2017 10:50:10 -0700 X-Attribution: Tom In-Reply-To: <22686.27448.427789.633250@gargle.gargle.HOWL> (raman@google.com's message of "Fri, 10 Feb 2017 17:39:04 -0800") X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box522.bluehost.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 75.171.188.196 X-Exim-ID: 1ccboH-00046e-Tk X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 75-171-188-196.hlrn.qwest.net (bapiya) [75.171.188.196]:50714 X-Source-Auth: tom+tromey.com X-Email-Count: 10 X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTIyLmJsdWVob3N0LmNvbQ== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 67.222.38.55 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:212237 Archived-At: >>>>> "raman" == raman writes: raman> I'd like to set things up so emacs runs a set of actions when the raman> laptop comes back from suspend -- typically, say 5 seconds after raman> wake-up. Here, all actions are emacs functions. Note that if you're specifically interested in being notified when the network comes back up, there is a different way to do this with dbus. See: https://github.com/tromey/emacs-network-manager Tom