Gentoo Archives: gentoo-user

From: Alex Schuster <wonko@×××××××××.org>
To: gentoo-user@l.g.o
Subject: Suspend to {RAM,Disk] (was: Re: [gentoo-user] Re: Runlevels, ordering initscripts and running them in background)
Date: Fri, 18 May 2012 20:01:13
Message-Id: 20120518215913.71669f3b@weird.wonkology.org
In Reply to: [gentoo-user] Re: Runlevels, ordering initscripts and running them in background by walt
1 walt writes:
2
3 > On 05/16/2012 01:40 AM, Ignas Anikevicius wrote:
4 >
5 > > I want to do this, so that I do not have to wait while non-crucial
6 > > services are being started
7 >
8 > I can barely remember when I was young enough to care about saving
9 > a few seconds. (But, good for you :)
10
11 Isn't rebooting uncool nowadays anyway? Apart from the time for booting,
12 you have to log in, and open all the stuff you need to do your work. At
13 least for me, this is a lot. My PC runs all day, because it runs some
14 services others need, so this is not an issue. But when I will no longer
15 need to do this, I will try to make suspend to {ram,disk} work.
16
17 Of course, while this seems to work just fine for most people, it doesn't
18 for me. I had trouble with suspending to disk (using tuxonice-sources) in
19 the past, when I was using ati-drivers (fglrx) instead of the open
20 source radeon drivers, which were not working for me at that time.
21 Sometimes it just worked, sometimes I had to try suspending for multiple
22 times, sometimes it did not work at all. Then I experienced file system
23 corruption of my root partition, and did not try again. Such a corruption
24 also happened on another PC, so I do not really dare to try this again
25 soon.
26
27 Suspend to ram (using the hibernate-ram command from
28 sys-power/hibernate-script) seems to work better. It is much faster, and
29 needs only a few watts for standby. But there seem to be side effects. My
30 ISDN setup does not work after suspending to RAM. Well, it doesn't work
31 anyway, but at least I can see incoming calls normally, which does not
32 work afterwards. And I cannot remove the ISDN modules before suspending,
33 maybe I should try an older kernel, where this was working. And one time
34 I I had trouble with any USB devices after suspend, but I'm not really
35 sure this was related, I cannot reproduce this now. Didn't try very often
36 yet, though.
37
38 I hope to get this working soon. I just found the rtcwake command
39 (sys-apps/util-linux), this allows to suspend to RAM and automatically
40 wake up at a specified date. Nice, I can set the PC to sleep, and it
41 wakes up before I have to :)
42
43 Wonko

Replies

Subject Author
[gentoo-user] Re: Suspend to {RAM,Disk] Ignas Anikevicius <anikevicius@×××××.com>