From owner-freebsd-questions@FreeBSD.ORG Sun Oct 13 03:17:23 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 7C16D58F for ; Sun, 13 Oct 2013 03:17:23 +0000 (UTC) (envelope-from yudi.tux@gmail.com) Received: from mail-lb0-x22d.google.com (mail-lb0-x22d.google.com [IPv6:2a00:1450:4010:c04::22d]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id E27BA2E6C for ; Sun, 13 Oct 2013 03:17:22 +0000 (UTC) Received: by mail-lb0-f173.google.com with SMTP id o14so4694777lbi.32 for ; Sat, 12 Oct 2013 20:17:21 -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=YQhV5PyY4C2hDO+LsPp8dlRap5q3ofY7irlN8kuV2+Y=; b=KOeTbDa/9dEutwqGFaQPwc2bhXM7Rfhy3EtyrGod7JFsCZooKYjbb1Qb1+4dgUPOkc zXlFu4QGfQR9o+20VH4YaVWq1TxwQrQGVmdox6mdbPPhP7tbagjdig9u+z0BE6PjA8OJ oxJPt7nK4eUTNgi9suV70HyQOe2JyxyvqwNOKd2gXmA+00e6fV55h39aJPTlx6+PxSjp P0ksdSuPmFsYBdjoI/rx8bhbQpzYRHT7P7g66mki4GZzPDi+rFRWpepGzUgAZP5VdRia AbkKWK9n8aAbjMsACbNk2o9RhTOA2Qh7Fup+9xQXZS22KciInHF/FYxdjqKUlsGHaHtg g1Gg== MIME-Version: 1.0 X-Received: by 10.152.45.106 with SMTP id l10mr24248385lam.12.1381634240895; Sat, 12 Oct 2013 20:17:20 -0700 (PDT) Received: by 10.114.82.4 with HTTP; Sat, 12 Oct 2013 20:17:20 -0700 (PDT) In-Reply-To: <20130930015912.G67367@sola.nimnet.asn.au> References: <20130930015912.G67367@sola.nimnet.asn.au> Date: Sun, 13 Oct 2013 13:17:20 +1000 Message-ID: Subject: Re: Is it possible to suspend to disk with geli+Root on ZFS installation From: yudi v To: Ian Smith Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Oct 2013 03:17:23 -0000 On Mon, Sep 30, 2013 at 2:47 AM, Ian Smith wrote: > In freebsd-questions Digest, Vol 486, Issue 7, Message: 5 > On Sat, 28 Sep 2013 16:25:33 +0200 Roland Smith wrote: > > On Fri, Sep 27, 2013 at 05:37:55PM +1000, yudi v wrote: > > > Hi all, > > > > > > Is it possible to suspend to disk (hibernate) when using geli for full disk > > > encryption. > > > > As far as I can tell, FreeBSD doesn't support suspend to disk on all > > architectures. On amd64 the necessary infrastructure doesn't exist, and on > > i386 FPU state is lost, there is no multiprocessor support and some MSRs are > > not restored [1]. > > > > [1]: https://wiki.freebsd.org/SuspendResume > > Roland, sorry, no; you (and that page) are talking about Suspend to RAM, > ACPI state S3. What you've said is correct re Suspend to RAM - though > some running amd64 have achieved some success on some machines lately; > most of the issues are with restoring modern video, backlight and such. > > Those i386 comments don't apply to my Thinkpad T23s, which suspend and > resume, in console mode and X, flawlessly on 9.1-R and properly after > various tweaks on 8.x, 7.x and 6.x - but they're a single core P3-M .. > > I must reiterate, FreeBSD does not support Suspend to Disk (state S4 aka > 'hibernate') on ANY platform, except - perhaps - on machines supporting > S4 in BIOS (hw.acpi.s4bios=1) which are very rarely spotted in the wild. > > > And even suspend to RAM doesn't work on every machine [2]. > > > > [2]: https://wiki.freebsd.org/IdeasPage#Suspend_to_disk > > That page IS about Suspend to Disk - but only as a wishlist idea, as it > has been for many years. Someone did take it on as a Google SoC project > years ago, but nothing ever came of it to my knowledge. > > The last laptop I have that will properly hibernate - ie save RAM and > all state to disk and power off, then reload all RAM and state on power > return - is a 300MHz Compaq Armada 1500C (mfg '98), but using the older > APM BIOS rather than ACPI. (It's still running, 24/7/365 since 2002 :) > > cheers, Ian Thanks Ian for clarifying that FreeBSD does not support Suspend to Disk. I just assumed all major distros supported all the suspend states. Now I am looking for a UPS that cleanly shuts down the machine when there is a power outage. I am looking at a APC Power-Saving Back-UPS ES 8 Outlet 700VA 230V AS 3112, anyone know if apcupsd daemon works fine under FreeBSD or should I be looking at Network UPS Tools (NUT). -- Kind regards, Yudi