Hi Ranjan,
I have done all of those steps. Created big enough swapfile. Added the resume flag. Updated grub.cfg. Disabled the secure boot. It still doesn't work.
I have wasted 24 hours of my life on this stupid thing. I am now reinstalling with a dedicated swap partition.
This is very unfortunate that things don't work on systems that are shipped with Linux preinstalled (Precision 5510 came with Ubuntu 14.04).
For resume_offset see the kernel docs linked below.
---- On Mon, 02 Jan 2017 20:10:44 +0530 Ranjan Maitra <maitra@xxxxxxxxx> wrote ----
Sudhir,What exactly did you try? Here are my notes (that work for me on all but one laptops):## To get hibernate going (since F20):sudo vi /etc/defaults/grub## add --> resume=UUID="****" <-- to the line GRUB_CMDLINE_LINUX= (anywhere, i do it before the rhgb which I also take out since I like to see what is happening## where the uuid is obtained usingsudo blkid.## thensudo bash -x grub2-mkconfigsudo bash -x grub2-mkconfig -o /boot/grub2/grub.cfgReboot and things work for me on about half a dozen machines, all Dells of varied vintage (including one XPS13) and one Thinkpad T510.I am not aware of the resume_offset flag: where did you get this?RanjanPS: The one laptop where it did not work is a Dell Precision M3800 where it is not reliable. There was a long-standing bug in kernel which was fixed in 4.8 but with this machine, hibernate reliably worked on 4.8.4 but the unreliability (not always coming back, especially if a number of windows were left open) returned post-4.8.5,Many thanks again$RanjanOn Mon, 02 Jan 2017 15:33:38 +0530 Sudhir Khanger <sudhir@xxxxxxxxxxxxxxxxx> wrote:> Hi back,>>>> After a lot of Google search it seems to hibernate using swap file I need both the resume flag and resume_offset flag. After setting these my system seems to go into hibernation but doesn't recover. It just boots into a new session. Also systemctl hybrid-sleep is working as far as I can tell.>>>> ---- On Mon, 02 Jan 2017 11:52:16 +0530 Sudhir Khanger <sudhir@xxxxxxxxxxxxxxxxx> wrote ---->>>>> Hi,>>>> I am setting up a new Dell Precision 5510. It has 16gb of RAM. I chose to create a swapfile of 24gb (1.5 times is recommended by RHEL 7 docs).>>>> The swap is on, resume flag has been set in /etc/default/grub, and secure boot if off. That's my understanding of the common bug entry.>>>> When I hibernate my system it simply locks the system. No hibernation is done. I gave Kubuntu a try to see if there is a problem with hibernation and it works fine on Kubuntu.>>>> If you guys have any ideas I would really appreciate it.>>>> Regards,>> Sudhir Khanger,>> sudhirkhanger.com.>>>>>> _______________________________________________>> users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx>> To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx>>>>>> Regards,>> Sudhir Khanger,>> sudhirkhanger.com.>>>>>--Important Notice: This mailbox is ignored: e-mails are set to be deleted on receipt. Please respond to the mailing list if appropriate. For those needing to send personal or professional e-mail, please use appropriate addresses._______________________________________________users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxxTo unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Regards,
Sudhir Khanger,
sudhirkhanger.com.
_______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx