From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1SVTMP-00029H-M9 for garchives@archives.gentoo.org; Fri, 18 May 2012 20:01:13 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5A5B6E07FA; Fri, 18 May 2012 20:00:51 +0000 (UTC) Received: from mx.virtyou.com (mx.virtyou.com [178.33.32.244]) by pigeon.gentoo.org (Postfix) with ESMTP id E758EE0603 for ; Fri, 18 May 2012 19:59:15 +0000 (UTC) Received: from weird.wonkology.org (xdsl-78-35-163-52.netcologne.de [78.35.163.52]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (Client did not present a certificate) by mx.virtyou.com (Postfix) with ESMTPSA id BA3E3DC052 for ; Fri, 18 May 2012 21:59:14 +0200 (CEST) Date: Fri, 18 May 2012 21:59:13 +0200 From: Alex Schuster To: gentoo-user@lists.gentoo.org Subject: Suspend to {RAM,Disk] (was: Re: [gentoo-user] Re: Runlevels, ordering initscripts and running them in background) Message-ID: <20120518215913.71669f3b@weird.wonkology.org> In-Reply-To: References: <4FB367FA.2050705@gmail.com> X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.10; x86_64-pc-linux-gnu) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Archives-Salt: 9d3523e0-a65e-4e1c-b295-065bad8c950d X-Archives-Hash: 64502a800628c6d01132df543ea83e32 walt writes: > On 05/16/2012 01:40 AM, Ignas Anikevicius wrote: > > > I want to do this, so that I do not have to wait while non-crucial > > services are being started > > I can barely remember when I was young enough to care about saving > a few seconds. (But, good for you :) Isn't rebooting uncool nowadays anyway? Apart from the time for booting, you have to log in, and open all the stuff you need to do your work. At least for me, this is a lot. My PC runs all day, because it runs some services others need, so this is not an issue. But when I will no longer need to do this, I will try to make suspend to {ram,disk} work. Of course, while this seems to work just fine for most people, it doesn't for me. I had trouble with suspending to disk (using tuxonice-sources) in the past, when I was using ati-drivers (fglrx) instead of the open source radeon drivers, which were not working for me at that time. Sometimes it just worked, sometimes I had to try suspending for multiple times, sometimes it did not work at all. Then I experienced file system corruption of my root partition, and did not try again. Such a corruption also happened on another PC, so I do not really dare to try this again soon. Suspend to ram (using the hibernate-ram command from sys-power/hibernate-script) seems to work better. It is much faster, and needs only a few watts for standby. But there seem to be side effects. My ISDN setup does not work after suspending to RAM. Well, it doesn't work anyway, but at least I can see incoming calls normally, which does not work afterwards. And I cannot remove the ISDN modules before suspending, maybe I should try an older kernel, where this was working. And one time I I had trouble with any USB devices after suspend, but I'm not really sure this was related, I cannot reproduce this now. Didn't try very often yet, though. I hope to get this working soon. I just found the rtcwake command (sys-apps/util-linux), this allows to suspend to RAM and automatically wake up at a specified date. Nice, I can set the PC to sleep, and it wakes up before I have to :) Wonko