Sudhir,

Thank you for your pointer on the resume_offset.

I don't agree with Fedora going the way of the crappiest linux distribution 
around (Ubuntu) and disabling hibernate by default. Why not put it as an 
option, perhaps disabled by default, during anaconda installation? 

Why Linux would go backwards and take away this ability (which worked fine all 
the way till F20) is beyond me?

As I can see, among the distributions that I have tried, KaOS and AntergOS 
(which is an Arch remix) still have hibernate work out of the box.

Btw, Arch (where nothing works out of the box but has outstanding 
documentation) requires an additional step in /etc/mkinitcpio.conf. I don't 
think that that is needed in Fedora. But there are several other points 
mentioned in that Arch documentation which might have some hints: 
https://wiki.archlinux.org/index.php/Power_management/Suspend_and_hibernate#Hibernation

As a suggestion, if at all you have more time to waste, then you may consider 
installing F24 and seeing whether hibernation works in that environment?

Many thanks again and best wishes,
Ranjan







On Mon, 02 Jan 2017 21:22:56 +0530 Sudhir Khanger <sud...@sudhirkhanger.com> 
wrote:

> 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.
> 
> 
> 
> https://www.kernel.org/doc/Documentation/power/swsusp-and-swap-files.txt
> 
> 
> 
> 
> 
> ---- On Mon, 02 Jan 2017 20:10:44 +0530 Ranjan Maitra 
> &lt;mai...@email.com&gt; 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 --&gt; resume=UUID="****" &lt;-- 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 using 
> 
> 
> 
> sudo blkid.
> 
> 
> 
> ## then
> 
> 
> 
> sudo bash -x grub2-mkconfig
> 
> sudo bash -x grub2-mkconfig -o /boot/grub2/grub.cfg
> 
> 
> 
> Reboot 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?
> 
> 
> 
> Ranjan
> 
> 
> 
> PS: 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$
> 
> Ranjan
> 
> 
> 
> 
> 
> On Mon, 02 Jan 2017 15:33:38 +0530 Sudhir Khanger 
> &lt;sud...@sudhirkhanger.com&gt; wrote:
> 
> 
> 
> &gt; Hi back,
> 
> &gt; 
> 
> &gt; 
> 
> &gt; 
> 
> &gt; 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.
> 
> &gt; 
> 
> &gt; 
> 
> &gt; 
> 
> &gt; ---- On Mon, 02 Jan 2017 11:52:16 +0530 Sudhir Khanger 
> &amp;lt;sud...@sudhirkhanger.com&amp;gt; wrote ----
> 
> &gt; 
> 
> &gt; 
> 
> &gt; 
> 
> &gt; 
> 
> &gt; Hi,
> 
> &gt; 
> 
> &gt; 
> 
> &gt; 
> 
> &gt; 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).
> 
> &gt; 
> 
> &gt; 
> 
> &gt; 
> 
> &gt; 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.
> 
> &gt; 
> 
> &gt; 
> 
> &gt; 
> 
> &gt; 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.
> 
> &gt; 
> 
> &gt; 
> 
> &gt; 
> 
> &gt; If you guys have any ideas I would really appreciate it.
> 
> &gt; 
> 
> &gt; 
> 
> &gt; 
> 
> &gt; Regards,
> 
> &gt; 
> 
> &gt; Sudhir Khanger,
> 
> &gt; 
> 
> &gt; sudhirkhanger.com.
> 
> &gt; 
> 
> &gt; 
> 
> &gt; 
> 
> &gt; 
> 
> &gt; 
> 
> &gt; _______________________________________________
> 
> &gt; 
> 
> &gt; users mailing list -- users@lists.fedoraproject.org
> 
> &gt; 
> 
> &gt; To unsubscribe send an email to users-le...@lists.fedoraproject.org
> 
> &gt; 
> 
> &gt; 
> 
> &gt; 
> 
> &gt; 
> 
> &gt; 
> 
> &gt; Regards,
> 
> &gt; 
> 
> &gt; Sudhir Khanger,
> 
> &gt; 
> 
> &gt; sudhirkhanger.com.
> 
> &gt; 
> 
> &gt; 
> 
> &gt; 
> 
> &gt; 
> 
> &gt; 
> 
> 
> 
> 
> 
> -- 
> 
> 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@lists.fedoraproject.org
> 
> To unsubscribe send an email to users-le...@lists.fedoraproject.org
> 
> 
> 
> 
> 
> 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@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org

Reply via email to