From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dave Jones Subject: Re: Re: standby to disk transition Date: Mon, 13 Mar 2006 13:33:18 -0500 Message-ID: <20060313183318.GB26234@redhat.com> References: <20060313083037.GA3495@elf.ucw.cz> <20060313084811.GC20569@neo.rr.com> <20060313085042.GB3495@elf.ucw.cz> <20060313090759.GA20930@neo.rr.com> <20060313091332.GC3495@elf.ucw.cz> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============27095776428020235==" Return-path: In-Reply-To: <20060313091332.GC3495@elf.ucw.cz> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-pm-bounces@lists.osdl.org Errors-To: linux-pm-bounces@lists.osdl.org To: Pavel Machek Cc: linux-pm@osdl.org, Nigel Cunningham , "Victor Porton, , , " List-Id: linux-pm@vger.kernel.org --===============27095776428020235== Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Mar 13, 2006 at 10:13:32AM +0100, Pavel Machek wrote: > On Po 13-03-06 04:07:59, Adam Belay wrote: > > On Mon, Mar 13, 2006 at 09:50:42AM +0100, Pavel Machek wrote: > > > On Po 13-03-06 03:48:11, Adam Belay wrote: > > > > The timeout feature could be done using the ACPI alarm interface, but there's > > > > no reliable way of knowing how long the system can remain in a suspend state > > > > on the x86 mobile platform, so waking up at the right time would be tricky if > > > > not impossible. > > > > > > Make it an hour... System should be able to stay suspended for an > > > hour. IIRC Apple did something like this? I'd just be slightly worried > > > about machine waking up itself just when you hit the turbulence in the > > > airplane, or something like that. > > > > Hmm, but let's say the battery is 40% charged. Then it's not very clear if it > > will last an hour. All of a sudden the issue becomes system specific, or it > > may even depend on things like whether wake-on-lan is enabled, > >right? > > 40% battery should still last 10+ hours in suspend-to-RAM, unless > something is wrong. > > You *could* wakeup every minute or so to check the battery state; some > PDAs actually do that. if suspend-to-disk is fast enough, you could just *always* write to disk, even if we're doing S3. If power runs out, you then have a valid resume image on-disk. iirc, this is what Windows does. Dave -- http://www.codemonkey.org.uk --===============27095776428020235== Content-Type: text/plain; charset="iso-8859-1" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline --===============27095776428020235==--