Re: Hibernation locks the system instead of hibernating

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <sudhir@xxxxxxxxxxxxxxxxx> 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;maitra@xxxxxxxxx&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;sudhir@xxxxxxxxxxxxxxxxx&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;sudhir@xxxxxxxxxxxxxxxxx&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@xxxxxxxxxxxxxxxxxxxxxxx
> 
> &gt; 
> 
> &gt; To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
> 
> &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@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@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]
  Powered by Linux