Originally posted by torsionbar28
View Post
I had to edit /etc/sysconfig/grub and append "resume=/dev/my/swap/disk" to the GRUB_CMDLINE_LINUX value. And then do a 'grub2-mkconfig -o /boot/grub2/grub.cfg' for it to take effect.
After that, hibernate/resume appears to work great, in fact, I am typing this after having successfully resumed from hibernate. I did have to create a second swap partition, large enough to hold my 32 GB of memory.
But there is one minor issue I'm having. When I hibernate, the memory is correctly saved to swap, the PC powers off...... and then 2 seconds later, the PC powers back on, boots up, and resumes. It does not stay in the off state! I have to quickly hit the power button before the OS boots, and then it will power off and stay off. It only does this odd 'off and then back on' behavior when logged in as a regular user. When logged in as root, it hibernates, powers off, and stays off.
Comment