Gentoo Archives: gentoo-user

From: Albert Hopkins <marduk@×××××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Machine reboots immediately when suspended-to-disk
Date: Wed, 21 Oct 2009 01:01:55
Message-Id: 1256086442.489979.108.camel@centar
In Reply to: [gentoo-user] Machine reboots immediately when suspended-to-disk by
1 On Tue, 2009-10-20 at 20:14 -0400, waltdnes@××××××××.org wrote:
2 > I've enabled suspend-to-disk in the kernel. When I issue the
3 > command
4 > "echo disk > /sys/power/state", it suspends but *IMMEDIATELY* reboots
5 > and comes back up again. The session restores properly from the swap
6 > drive, so at least that part works. What can I do to keep it sleeping
7 > until I power up again?
9 Ok I'm going to address this issue. You specified multiple issues in
10 your email. I think it's better to split each issue into its own
11 posting. It's simpler easier to work with one problem at a time and
12 also replies to postings on different issues don't get all garbled
13 up/confusing in archive searches.
15 Ok the echo trick isn't the recommended way to suspend to disk. A
16 better way is to use "pm-hibernate --quirks" (pm-hibernate is from the
17 pm-utils packages). The --quirks option will try to handle any, well,
18 quirks that are known with your hardware. echo'ing to /sys/power/state
19 is a little more low-level and could be iffy on some types of hardware.
21 You should also check dmesg. More than likely there is a kernel error
22 that explains why it failed to suspend completely.