From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Third Newsgroups: gmane.emacs.bugs Subject: bug#22993: Potential fix/workaround for 22993 Date: Sun, 3 Jul 2016 10:19:37 +0100 Message-ID: <20160703091937.GA11931@breton.holly.idiocy.org> References: <57629b7f841b1a0000aa4164@polymail.io> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1467537624 31543 80.91.229.3 (3 Jul 2016 09:20:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 3 Jul 2016 09:20:24 +0000 (UTC) Cc: 22993@debbugs.gnu.org To: Aaron Jensen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jul 03 11:20:13 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bJdZV-00011Y-Al for geb-bug-gnu-emacs@m.gmane.org; Sun, 03 Jul 2016 11:20:13 +0200 Original-Received: from localhost ([::1]:41831 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bJdZU-0000co-9b for geb-bug-gnu-emacs@m.gmane.org; Sun, 03 Jul 2016 05:20:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36286) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bJdZN-0000bE-JL for bug-gnu-emacs@gnu.org; Sun, 03 Jul 2016 05:20:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bJdZK-0003iy-9I for bug-gnu-emacs@gnu.org; Sun, 03 Jul 2016 05:20:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:51015) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bJdZK-0003iu-4I for bug-gnu-emacs@gnu.org; Sun, 03 Jul 2016 05:20:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bJdZJ-0006uN-SW for bug-gnu-emacs@gnu.org; Sun, 03 Jul 2016 05:20:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Third Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 03 Jul 2016 09:20:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22993 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Original-Received: via spool by 22993-submit@debbugs.gnu.org id=B22993.146753758926533 (code B ref 22993); Sun, 03 Jul 2016 09:20:01 +0000 Original-Received: (at 22993) by debbugs.gnu.org; 3 Jul 2016 09:19:49 +0000 Original-Received: from localhost ([127.0.0.1]:35119 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bJdZ7-0006tt-Ja for submit@debbugs.gnu.org; Sun, 03 Jul 2016 05:19:49 -0400 Original-Received: from mail-wm0-f47.google.com ([74.125.82.47]:37460) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bJdZ4-0006tg-Ki for 22993@debbugs.gnu.org; Sun, 03 Jul 2016 05:19:48 -0400 Original-Received: by mail-wm0-f47.google.com with SMTP id a66so79748768wme.0 for <22993@debbugs.gnu.org>; Sun, 03 Jul 2016 02:19:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=reQukTWJ4YDIzTeO0e3t4eFIVC/eZItOGAjRvrHlI2Y=; b=vqlbCSn8R3WqvKELJbXVWosfSDD/o3KB4jFpy7D9bQES9Xq6eKWHg09Tko55Llotj/ AhTgaNifcH4w0pkRpeO6x/3cpRbtF9YDj4uIgkFblVA/lGqRSeI86c3CazHtGkCTQn7N rqRyffAMxXvtd28SF1LF/2JsGYm8VHW+PRcDsX8SXLPYbOp8DdAW9DOU+1wakJEJr91+ XO1Az+qH8dGgdFBmDREJVCaIRqBl0T1ImmBasiDOTip49mlIxZiqZGqCAIG05wfDxLJX kJ+raoXWss3dH6DzYBHm9UtpZI26KRMhCMZGb7gHdCxmFeZEQ3he7hAy1xPs/iEiFbmE DhxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=reQukTWJ4YDIzTeO0e3t4eFIVC/eZItOGAjRvrHlI2Y=; b=V5y8cFQ1t/W5IVxIgliKx5BFywUKcDpneuLOnRSWThAzYMlc3KCKRYdbtMoxy3yOMG Bg5fZ2ANjJHVv62HuHAgF+RPBUJGpUcjEMmwTnwfwKcXVo7pXhiae1JtcA51A0QkiQTo UJOZewt65tr9L7KpROxCNjjWy519RpJ2QQUSck95Z49pRcL4FIxjM4B/DQ5a33Wm+BWa ng9v9sDK8egjw1w1VVxE06TKFXyFcDq89Nbzcg3v1wdMqBdrrB64cDhy+SparNHUihLU LBon4WN63/gAI5mbxGsHCkVFKIN6tmAtnBKm37dpmaoDekyQRj1UBJTzUb2gJe5OgnCN tOGw== X-Gm-Message-State: ALyK8tLweyQZQzfeGFb81kL+7y+U1ht1Y3Uuzds17klIEKbChOZo43uaUyCUUDqv9QEucg== X-Received: by 10.194.203.102 with SMTP id kp6mr127638wjc.35.1467537580884; Sun, 03 Jul 2016 02:19:40 -0700 (PDT) Original-Received: from breton.holly.idiocy.org (ip6-2001-08b0-03f8-8129-5cc4-ba14-a0d0-bdac.holly.idiocy.org. [2001:8b0:3f8:8129:5cc4:ba14:a0d0:bdac]) by smtp.gmail.com with ESMTPSA id vu10sm6509325wjb.27.2016.07.03.02.19.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 03 Jul 2016 02:19:40 -0700 (PDT) Content-Disposition: inline In-Reply-To: <57629b7f841b1a0000aa4164@polymail.io> User-Agent: Mutt/1.5.24 (2015-08-30) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:120323 Archived-At: Hi Aaron, Sorry for taking so long to respond. I still see Emacs going into app nap mode with this. Is it working for you? On Thu, Jun 16, 2016 at 05:33:17AM -0700, Aaron Jensen wrote: > I believe my first suggestion was incorrect, I apologize. This should do it: > >  nextstep/templates/Info.plist.in | 2 ++ > >  1 file changed, 2 insertions(+) > > diff --git a/nextstep/templates/Info.plist.in b/nextstep/templates/Info.plist.in > > index dcd2fe3..6f56939 100644 > > --- a/nextstep/templates/Info.plist.in > > +++ b/nextstep/templates/Info.plist.in > > @@ -675,5 +675,7 @@ along with GNU Emacs.  If not, see . > >         > >         NSAppleScriptEnabled > >         YES > > +       LSAppNapIsDisabled > > +       > >   > >   > > https://gist.github.com/aaronjensen/d81d94c116549d0893ba4bc637149550 > https://gist.github.com/aaronjensen/d81d94c116549d0893ba4bc637149550 > > Aaron > > On Wed, Jun 15, 2016 at 1:35 PM Alan Third > > < > mailto:Alan Third > > wrote: > > "Aaron Jensen" < > mailto:aaronjensen@gmail.com > > writes: > > > There are at least two ways to fix this, one is to disable app nap > > > entirely. You can add this to Info.plist.in: > > > > > > + > > LSAppNapIsDisabled > > > + > > True > > Are you able to provide a patch for this? I've tried but it doesn't seem > > to make any difference, so I expect I'm doing something wrong. > > > The other would be to somehow cause the app to “wake up” whenever the > > > tty client is used as well. I’m not sure how to do that, it may be > > > trickier. > > To my mind this would be preferable, as it means we could take advantage > > of any power-saving features AppNap provides without causing performance > > problems. I can't see anything anywhere about how to do it, though, so > > perhaps it's impossible. > -- Alan Third