Re: Hibernation locks the system instead of hibernating

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

 



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 <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 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 <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 &lt;sudhir@xxxxxxxxxxxxxxxxx&gt; 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@xxxxxxxxxxxxxxxxxxxxxxx
To 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
[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