Gentoo Archives: gentoo-user

From: "Canek Peláez Valdés" <caneko@×××××.com>
To: Volker Armin Hemmann <volkerarmin@××××××××××.com>
Cc: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: Suspend to {RAM,Disk]
Date: Fri, 18 May 2012 23:38:37
Message-Id: CADPrc81Ey_mi=5sk7+7jgq_M-jj3RubHRJJU4Zzfoq836zMUmw@mail.gmail.com
In Reply to: Re: [gentoo-user] Re: Suspend to {RAM,Disk] by Volker Armin Hemmann
1 On Fri, May 18, 2012 at 5:37 PM, Volker Armin Hemmann
2 <volkerarmin@××××××××××.com> wrote:
3 > Am Freitag, 18. Mai 2012, 17:26:10 schrieb Canek Peláez Valdés:
4 >> On Fri, May 18, 2012 at 5:09 PM, Volker Armin Hemmann
5 >>
6 >> <volkerarmin@××××××××××.com> wrote:
7 >> > Am Freitag, 18. Mai 2012, 22:42:59 schrieb Ignas Anikevicius:
8 >> >> On 18/05/12 20:59, Alex Schuster wrote:
9 >> >> > Suspend to ram (using the hibernate-ram command from
10 >> >> > sys-power/hibernate-script) seems to work better.
11 >> >>
12 >> >> What about pm-utils? Does it work better or worse than hibernate-script.
13 >> >> I had 0 problems with it during entire usage of linux, whereas with the
14 >> >> hibernate script package I had some issues...
15 >> >>
16 >> >> And yes, I am usually suspending to ram, but I was just thinking about
17 >> >> possibilities to make my computer boot faster in the cases I really need
18 >> >> to do a restart. :)
19 >> >>
20 >> >> Cheers,
21 >> >> Ignas
22 >> >
23 >> > I just do echo mem > ... or click on the 'Ruhezustand' button in KDE.
24 >> > Results in the same. Well working suspend-to-ram. With fglrx. X running
25 >> > etc pp.
26 >> With upower to suspend-to-ram you can just:
27 >>
28 >> dbus-send --system --print-reply --dest="org.freedesktop.UPower"
29 >> /org/freedesktop/UPower org.freedesktop.UPower.Suspend
30 >>
31 >
32 > which is way harder to type and memorize than:
33 > echo mem > /sys/power/state
34
35 Yeah. However, he Dbus method works as a simple user; the
36 /sys/power/state thing you can only do it as root. At least in my
37 system.
38
39 >> or use the "Suspend" option in GNOME 3 (GNOME uses upower). That I
40 >> already knew. What I didn't knew was that
41 >>
42 >> dbus-send --system --print-reply --dest="org.freedesktop.UPower"
43 >> /org/freedesktop/UPower org.freedesktop.UPower.Hibernate
44 >>
45 >> works as well for suspend-to-disk. I hadn't hibernated my laptop in
46 >> ages, it's good to know it still works. I use systemd+> dracut, which I
47 >> suppose it matters for the hibernate option.
48 >
49 > no, not really...
50
51 The restore-from-hibernate requires booting the kernel in a special
52 way to load the memory state from the swap partition. That requires
53 special handling from the init process and the initramfs; we had a
54 discussion some weeks ago about genkernel not handling this correctly.
55
56 Maybe systemd has nothing to do with restore-from-hibernate working (I
57 don't know); but dracut surely does. It has a module called "resume"
58 that seems to handle this.
59
60 Regards.
61 --
62 Canek Peláez Valdés
63 Posgrado en Ciencia e Ingeniería de la Computación
64 Universidad Nacional Autónoma de México

Replies

Subject Author
Re: [gentoo-user] Re: Suspend to {RAM,Disk] "Canek Peláez Valdés" <caneko@×××××.com>