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 1N0PaN-00089e-DS for garchives@archives.gentoo.org; Wed, 21 Oct 2009 01:01:55 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 49583E07CD; Wed, 21 Oct 2009 01:01:54 +0000 (UTC) Received: from out2.smtp.messagingengine.com (out2.smtp.messagingengine.com [66.111.4.26]) by pigeon.gentoo.org (Postfix) with ESMTP id 31987E07CD for ; Wed, 21 Oct 2009 01:01:54 +0000 (UTC) Received: from compute2.internal (compute2.internal [10.202.2.42]) by gateway1.messagingengine.com (Postfix) with ESMTP id 05506B4CE0 for ; Tue, 20 Oct 2009 21:01:54 -0400 (EDT) Received: from heartbeat1.messagingengine.com ([10.202.2.160]) by compute2.internal (MEProxy); Tue, 20 Oct 2009 21:01:54 -0400 X-Sasl-enc: aKq3fd+aVpcIGOM+iq3u5oE/FqzIH9bAdpe6YaKViRU+ 1256086443 Received: from [192.168.31.12] (cpe-069-134-183-088.nc.res.rr.com [69.134.183.88]) by www.fastmail.fm (Postfix) with ESMTPSA id 69AED262E08 for ; Tue, 20 Oct 2009 20:54:03 -0400 (EDT) Subject: Re: [gentoo-user] Machine reboots immediately when suspended-to-disk From: Albert Hopkins To: gentoo-user@lists.gentoo.org In-Reply-To: <20091021001411.GA4883@waltdnes.org> References: <20091021001411.GA4883@waltdnes.org> Content-Type: text/plain; charset="UTF-8" Date: Tue, 20 Oct 2009 20:54:02 -0400 Message-ID: <1256086442.489979.108.camel@centar> 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 X-Mailer: Evolution 2.28.1 Content-Transfer-Encoding: 7bit X-Archives-Salt: 5cd29b61-34c1-44e7-8adb-72abdc080e13 X-Archives-Hash: 8b4ed2d38ec58a8bae3d486cea477479 On Tue, 2009-10-20 at 20:14 -0400, waltdnes@waltdnes.org wrote: > I've enabled suspend-to-disk in the kernel. When I issue the > command > "echo disk > /sys/power/state", it suspends but *IMMEDIATELY* reboots > and comes back up again. The session restores properly from the swap > drive, so at least that part works. What can I do to keep it sleeping > until I power up again? Ok I'm going to address this issue. You specified multiple issues in your email. I think it's better to split each issue into its own posting. It's simpler easier to work with one problem at a time and also replies to postings on different issues don't get all garbled up/confusing in archive searches. Ok the echo trick isn't the recommended way to suspend to disk. A better way is to use "pm-hibernate --quirks" (pm-hibernate is from the pm-utils packages). The --quirks option will try to handle any, well, quirks that are known with your hardware. echo'ing to /sys/power/state is a little more low-level and could be iffy on some types of hardware. You should also check dmesg. More than likely there is a kernel error that explains why it failed to suspend completely.