On Fri, May 18, 2012 at 5:37 PM, Volker Armin Hemmann
<[email protected]> wrote:
> Am Freitag, 18. Mai 2012, 17:26:10 schrieb Canek Peláez Valdés:
>> On Fri, May 18, 2012 at 5:09 PM, Volker Armin Hemmann
>>
>> <[email protected]> wrote:
>> > Am Freitag, 18. Mai 2012, 22:42:59 schrieb Ignas Anikevicius:
>> >> On 18/05/12 20:59, Alex Schuster wrote:
>> >> > Suspend to ram (using the hibernate-ram command from
>> >> > sys-power/hibernate-script) seems to work better.
>> >>
>> >> What about pm-utils? Does it work better or worse than hibernate-script.
>> >> I had 0 problems with it during entire usage of linux, whereas with the
>> >> hibernate script package I had some issues...
>> >>
>> >> And yes, I am usually suspending to ram, but I was just thinking about
>> >> possibilities to make my computer boot faster in the cases I really need
>> >> to do a restart. :)
>> >>
>> >> Cheers,
>> >> Ignas
>> >
>> > I just do echo mem > ... or click on the 'Ruhezustand' button in KDE.
>> > Results in the same. Well working suspend-to-ram. With fglrx. X running
>> > etc pp.
>> With upower to suspend-to-ram you can just:
>>
>> dbus-send --system --print-reply --dest="org.freedesktop.UPower"
>> /org/freedesktop/UPower org.freedesktop.UPower.Suspend
>>
>
> which is way harder to type and memorize than:
> echo mem > /sys/power/state

Yeah. However, he Dbus method works as a simple user; the
/sys/power/state thing you can only do it as root. At least in my
system.

>> or use the "Suspend" option in GNOME 3 (GNOME uses upower). That I
>> already knew. What I didn't knew was that
>>
>> dbus-send --system --print-reply --dest="org.freedesktop.UPower"
>> /org/freedesktop/UPower org.freedesktop.UPower.Hibernate
>>
>> works as well for suspend-to-disk. I hadn't hibernated my laptop in
>> ages, it's good to know it still works. I use systemd+> dracut, which I
>> suppose it matters for the hibernate option.
>
> no, not really...

The restore-from-hibernate requires booting the kernel in a special
way to load the memory state from the swap partition. That requires
special handling from the init process and the initramfs; we had a
discussion some weeks ago about genkernel not handling this correctly.

Maybe systemd has nothing to do with restore-from-hibernate working (I
don't know); but dracut surely does. It has a module called "resume"
that seems to handle this.

Regards.
-- 
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México

Reply via email to