On Thursday, December 04, 2014 07:52:44 PM J. Roeleveld wrote: > On 4 December 2014 18:32:16 CET, Michael Vetter wrote: > >Am 04/12/14 18:10, schrieb Randolph Maaßen: > >> 2014-12-04 17:58 GMT+01:00 Michael Vetter > > > >: > >>>> Did you try suspending using the echo command I mentioned earlier? > >>> > >>> Yes, it seemed to work (just starting up again didn't). > >>> > >>>> You can set the resume partition in the kernel. Might be an option. > >>> > >>> Okay, so I changed my kernel command string from "root=/dev/sdb2" to > >>> "root=/dev/sdb2,resume=/dev/mapper/g-SWAP". > >> > >> In my menuconfig I have a space separated list, not comma separated. > >> So I guess the boot failure is, that the kernel can't find the root > >> partition /dev/sdb2,resume... > > > >Okay, sorry thought this is equivalent to [1]. > >Anyways, I changed it to space and my system boots now. > >So I tried the suspend command again, but when rebooting its like a > >fresh reboot. > > > >Any ideas? > > > >[1] http://man7.org/linux/man-pages/man7/bootparam.7.html > > Yes. > If using LVM for the swap partition (and subsequently the resume) you need > to use an initramfs. > > I will dig out the script I use on my laptop and post it tomorrow. (It boots > faster with a custom script compared to the genkernel or dracut ones) Bit later then planned. The "init" file is the initramfs init-file. The "config" is what I configure in the kernel: $ zcat /proc/config.gz | grep initramfs CONFIG_INITRAMFS_SOURCE="/usr/src/initramfs/config" There are a few changes you'll need to do: 1) In the "init" file, change the name of the swap-partition you use 2) In the "config" file, change the following paths: - init-file 3) In the "config" file, run the command mentioned at the end of the file and add the result of the command to the end of the " config " file. I have been using this config succesfully for over a year on my laptop. -- Joost