From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31504 invoked by alias); 11 Oct 2011 15:02:02 -0000 Received: (qmail 31485 invoked by uid 22791); 11 Oct 2011 15:02:00 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Received: from qmta10.westchester.pa.mail.comcast.net (HELO qmta10.westchester.pa.mail.comcast.net) (76.96.62.17) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 11 Oct 2011 15:01:41 +0000 Received: from omta02.westchester.pa.mail.comcast.net ([76.96.62.19]) by qmta10.westchester.pa.mail.comcast.net with comcast id jS9E1h0030QuhwU5AT1h1G; Tue, 11 Oct 2011 15:01:41 +0000 Received: from helium.5200-glenwood.net ([68.49.23.87]) by omta02.westchester.pa.mail.comcast.net with comcast id jT1g1h00K1skXbY3NT1gUx; Tue, 11 Oct 2011 15:01:41 +0000 Received: from localhost ([127.0.0.1]) by helium.5200-glenwood.net with smtp (Exim 4.72) (envelope-from ) id 1RDdpr-0005TH-26 for cygwin-apps@cygwin.com; Tue, 11 Oct 2011 11:01:39 -0400 From: Andrew Schulman To: cygwin-apps@cygwin.com Subject: Re: [ITP] nosleep 0.1.3-1 Date: Tue, 11 Oct 2011 15:02:00 -0000 Message-ID: References: <7qvt77hgb3jgalfk6c8798nbcill8bv5bd@4ax.com> <4E822171.3050300@cwilson.fastmail.fm> <4E822171.3050300-+YAd1uT2djL3uN+rDzSBzrXvWnFrzL6o@public.gmane.org> <0105D5C1E0353146B1B222348B0411A20A311FADEA@NIHMLBX02.nih.gov> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Archive: encrypt Mailing-List: contact cygwin-apps-help@cygwin.com; run by ezmlm Precedence: bulk Sender: cygwin-apps-owner@cygwin.com List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Mail-Followup-To: cygwin-apps@cygwin.com X-SW-Source: 2011-10/txt/msg00034.txt.bz2 > >> On 9/25/2011 6:15 AM, Andrew Schulman wrote: > >> > nosleep has been written originally for Cygwin, so it's not available > >> > in any Linux distros and needs to be voted on. >=20 > And now I'd really need it for MacOSX. > Let's see if I'll have enough tuits next week. I have no experience with OS X, so I can't directly comment on that. But if there's a Cocoa or Darwin API that allows you to do things like check whether AC power is on and keep the computer from going into idle sleep, then it might be quite easy to port nosleep to OS X. It's a small program. For details please see the nosleep project page [1]. I'd like to see nosleep ported to other platforms, and would be glad to discuss that with you - maybe in the bug tracker for nosleep, since this is OT here. A caution: Being a Linux user, I looked into how one would implement nosleep in Linux. From what I can tell, chaos reigns there. Although ACPI would seem to be a likely API for it, the way people have been doing it in practice is desktop-specific with a lot of ugly special cases. I'm thinking of Caffeine [2] in particular. In OS X though, I'd expect things to be more orderly. [1] https://launchpad.net/nosleep [2] https://launchpad.net/caffeine