From owner-freebsd-questions@FreeBSD.ORG Mon Jul 30 23:09:06 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 26658106566B for ; Mon, 30 Jul 2012 23:09:06 +0000 (UTC) (envelope-from zimnyx@gmail.com) Received: from mail-qc0-f182.google.com (mail-qc0-f182.google.com [209.85.216.182]) by mx1.freebsd.org (Postfix) with ESMTP id D3C418FC0A for ; Mon, 30 Jul 2012 23:09:05 +0000 (UTC) Received: by qcsg15 with SMTP id g15so3992000qcs.13 for ; Mon, 30 Jul 2012 16:09:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=g5mFWWZhjx36QhGTrKpY833v3Q00oFENwpK4aDPr/Dc=; b=P3LussM/owPDsfdBcVx9Sctn7063B7F5le4nQWG+OshDmnkuOEeLGQ2BRh3fA3e768 bpCQ2l/2d3sEnX9DUpCCauZNXtRNS5c4rlnJYeSq0wx7bi2ZqRwHxX4NdAvfJb3eKQd9 TjEAdFGD+ox5NYgH3fTZiy6DwQOJokx+/ZpRyMdLrkkKkzJ9MEPLEyr21NKbK6ux7jvC X6muAK/UQoOqL4Ry8ao7iqsllpYZzJ06ArRLugkRsqHyrPl+6b7gwV/y9dwzwt5bGqlp 7k9NvsoHzeambK658PoMZNo+B/827qYsugDE6Zpm/CKtyvucgZZpuHG8TV8TrjkycuUN PkZg== MIME-Version: 1.0 Received: by 10.224.184.208 with SMTP id cl16mr26312809qab.39.1343689745177; Mon, 30 Jul 2012 16:09:05 -0700 (PDT) Received: by 10.229.238.202 with HTTP; Mon, 30 Jul 2012 16:09:05 -0700 (PDT) In-Reply-To: <20120730231933.V37097@sola.nimnet.asn.au> References: <20120729120033.23506106568C@hub.freebsd.org> <20120730231933.V37097@sola.nimnet.asn.au> Date: Tue, 31 Jul 2012 01:09:05 +0200 Message-ID: From: Piotr Czachur To: Ian Smith Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-questions@freebsd.org Subject: Re: Waking system up from suspend-to-ram at specified time. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Jul 2012 23:09:06 -0000 Ian, Thank you for wind of hope :) 2012/7/30 Ian Smith : > On my Thinkpad T23, BIOS autostart (not autoresume) time setting also > works only from a cold start. WoL also worked from 'off' but not from > S3, but that was on 8.1-STABLE. What version are you running, and on > what machine? Some reports indicate success may depend on which BIOS. I'm running FreeBSD 9.0 on Pentium 4 (Dell SX270). WoL wakes my box up from "off" and S3, and BIOS "Auto power on" just from "off". > I'll forward you offlist a couple of never-completed drafts that turned > up in postponed messages from 2010 while hunting mail about this, to > (bcc'd) avg@, brucec@ and mav@, after researching this in response to an > ACPI PR: http://www.freebsd.org/cgi/query-pr.cgi?pr=kern%2F73823&cat= Thanks. Nice to know this. > Then at least, you also had to modify Linux shutdown behaviour to avoid > writing the clocktime back to the RTC if a wake time had been set, as > RTC writes did not preserve the RTC wake interrupt bit, for some reason. Is this RTC writing supposed to disable "Auto power on" alarm set via BIOS? In my situation it's not the case, my box is shut down from cron (shutdown -h) , and powers on automaticaly next morning. > FreeBSD also does not preserve (gratuitously zeroes) that bit on all RTC > writes, which is easily enough fixable, mostly in writertc.c, with few > other places needing mods that I could see. Ah yes, plus a (cleanroom) > utility not unlike rtcwake, but once writertc() is fixed that should be > relatively trivial, without needing to mess with the shutdown code. So the reason of not waking up from S3, is RTC Wake bit zeroed during go to S3? > Present circumstances don't permit me to work on this further, but I do > think it could be a worthwhile and not so hard project for 'someone' :) Deal :) I'd start from enabling wake up from S3 using BIOS "Auto power on", and leave setting RTC alarm from running system as next step. -- Regards, Piotrek