I never used hibernate on my Linux machine. After seeing this thread i hibernated and revived machine twice.
Worked flawlessly on Mantis/openSUSE 12.2/ 64 bit/ GNOME 3.4.2/Kernel 3.4.11-2.16 even on a 27.4 GB hardisk.
Things cannot be better.
The only thing I do not like is that I would prefer sda1 replaced by
some uuid or id. Verify that partition is a swap partition (file -s
/dev/sda1), perhaps recreate it.
Is it big enough?
–
Cheers / Saludos,
Carlos E. R.
(from 11.4, with Evergreen, x86_64 “Celadon” (Minas Tirith))
>
> you are right… will change it by uuid. But to me that no reason not
> to work… right?:sarcastic:
No, it should not be a reason, unless sda changes to sdb - which on some
systems can happen.
> robin_listas;2513693 Wrote:
>>
>> Is it big enough?
>
> Don’t know what is enough… what do you thing? :\
There is no straight answer. If your memory is ample enough (ie, you do
not use swap) then half the size of ram might work with compression, but
make it at least the size of ram. 1.2 times ram to be on the safe side.
If your system uses swap, the free size of swap should be at least as
big as ram or a bit more.
For instance, if your ram is 500M I would make swap about 4 GiB at
least. If it is 4GiB I would make it 6. Disk is cheap.
–
Cheers / Saludos,
Carlos E. R.
(from 11.4, with Evergreen, x86_64 “Celadon” (Minas Tirith))
Ok I am new to this but have some observations. Do we know that s2disk and “echo disk > /sys/power/state” are all using the same program or config scripts? I also think that there must be some problem finding the resume file as the program itself states. Have you changed over your fstab and the pm-suspend and s2disk.conf to reflect the disk you are using via uuid? OpenSUSE by default itself uses some other device detection which is similar but not the same as uuid for block devices.
but the reallity is that nothing happends, my machine crashes.
this is what my log show me.
Jan 9 08:39:01 acer kernel: 4.904512] PM: Hibernation image partition 8:1 present
Jan 9 08:39:01 acer kernel: 4.904523] PM: Looking for hibernation image.
Jan 9 08:39:01 acer kernel: 4.905057] PM: Image not found (code -22)
Jan 9 08:39:01 acer kernel: 4.905064] PM: Hibernation image not present or could not be loaded.
Jan 9 08:39:01 acer kernel: 4.905116] registered taskstats version 1
Jan 9 08:39:01 acer kernel: 4.906066] Magic number: 13:284:628
Jan 9 08:39:01 acer kernel: 4.906271] rtc_cmos 00:05: setting system clock to 2013-01-09 10:37:02 UTC (1357727822)
but the reallity is that nothing happends, my machine crashes.
What, your machine crashes or nothing happens? From the logs you posted, It still seems to me a problem with finding the disks. Unless you have the same statements in fstab, pm-suspend.conf, s2disk.conf and also Grub, this will not work.
This is especially important if you have done any swaping of disks or re-partition or even some bios can change around the disk to confuse the system. The great thing about uuid is it relies on something when the partition gets formatted so it is always the same no matter where you move the disk or how much you re-partition. Of course, if you format the partition and put a mirror backup back on there, then even this would not work.
Trying manual resume from /dev/disk/by-id/ata-TOSHIBA_MQ01ABD050_828TT6A9T-part2
resume device /dev/disk/by-id/ata-TOSHIBA_MQ01ABD050_828TT6A9T-part2 not found (ignoring)
Suspend to disk seems to work, I see the percentages on the monitor and the drive is busy. After that, the computer powers off.
Everything as expected.
Then, it’s booting normally instead of resuming.
I have the above message in boot.log. And yes, the device it can’t find is the swap partition.
> Then, it’s booting normally instead of resuming.
> I have the above message in boot.log. And yes, the device it can’t find
> is the swap partition.
>
> from fstab
No, the relevant part when booting is not fstab, but the kernel line in
grub. I have, for example, this: “resume=/dev/disk/by-label/Swap”.
That’s the part you should check.