My laptop reboots while waking up after hibernation. I click Menu -> Quit -> Hibernate. It hibernates properly. Later I press on/off button and the computer seems to wake up, it shows Linux Mint logo, but in 3-5 sec the screen gets black, the laptop reboots, and GRUB shows different boot parameters like after reset.
I've tried to:
boot with kernel parameter acpi_sleep=nonvs
save "10" to /proc/sys/vm/swappiness file
use proprietary NVidia driver
use kernel 4.13.0
I also tried to use kernel 4.4.0 but the computer didn't boot up.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason:Topic automatically closed 6 months after creation. New replies are no longer allowed.
Personally to get hibernation to work, I have to pass the option resume=UUID=swap-uuid where 'swap-uuid' is the UUID of the swap partition, which you can find with blkid. That said, hibernate doesnt work for me with the latest kernels these days. And it's often not compatible with nvidia drivers or other things so that people recommend to turn it off, see e.g. https://sites.google.com/site/easylinux ... d-to-disk- by forum member Pjotr.
"I used Linux Mint 17 on this machine and hibernation worked properly then." Mint 18 made the switch to systemd and it is different, yes. You have to tell the boot process which volume holds the system-resume image.
I replaced GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" line in /etc/default/grub file with this one GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=UUID=aaceeb81-4651-470b-8e73-9f7d58fc0bc8" then
and rebooted.
And unfortunately it didn't help. Behaviour is the same, except for Resuming from /dev/disk/by-uuid/aaceeb81-4651-470b-8e73-9f7d58fc0bc8/ label under Linux Mint logo while trying to wake up.
$ cat /etc/default/grub
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
# info -f grub -n 'Simple configuration'
GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=UUID=aaceeb81-4651-470b-8e73-9f7d58fc0bc8"
GRUB_CMDLINE_LINUX=""
# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"
# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console
# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480
# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true
# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"
# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"
$ cat /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-4.10.0-38-generic root=UUID=df3ddb2c-0ea1-483f-a6fb-ae72ff9fdb30 ro quiet splash resume=UUID=aaceeb81-4651-470b-8e73-9f7d58fc0bc8
Try if it helps when you roll back your kernel to the latest kernel of the 4.4 series (currently 4.4.0-116).
Update Manager - panel: View - Linux kernels
After installing it, reboot and make sure you boot from it (it's under the header Advanced in the Grub bootloader menu). If it works well: remove every installed kernel from all higher series.
"...and rebooted..." Using the hibernation volume as swap will trash any hibernated state. Try a full cycle of 'hibernate' to write a new state then 'boot' to use it.
Mute Ant wrote: ⤴Fri Mar 02, 2018 7:40 am
"...and rebooted..." Using the hibernation volume as swap will trash any hibernated state. Try a full cycle of 'hibernate' to write a new state then 'boot' to use it.
I don't understand what exactly do you mean. Could you explain me step by step what I have to do? Should I use another partition for hibernation, other than swap? Of course I had to reboot in order to apply new kernel parameters, but then I did these steps again
havon wrote: ⤴Thu Mar 01, 2018 3:24 am
I click Menu -> Quit -> Hibernate. It hibernates properly. Later I press on/off button and the computer seems to wake up, it shows Linux Mint logo, but in 3-5 sec the screen gets black, the laptop reboots, and GRUB shows different boot parameters like after reset.
And ...
havon wrote: ⤴Fri Mar 02, 2018 5:08 am
Behaviour is the same, except for Resuming from /dev/disk/by-uuid/aaceeb81-4651-470b-8e73-9f7d58fc0bc8/ label under Linux Mint logo while trying to wake up.
Pjotr wrote: ⤴Fri Mar 02, 2018 6:04 am
Try if it helps when you roll back your kernel to the latest kernel of the 4.4 series (currently 4.4.0-116).
Update Manager - panel: View - Linux kernels
After installing it, reboot and make sure you boot from it (it's under the header Advanced in the Grub bootloader menu). If it works well: remove every installed kernel from all higher series.
havon wrote: ⤴Thu Mar 01, 2018 3:24 am
the computer didn't boot up.
Sorry, I was wrong, I managed to boot with kernel 4.4.0-116 and hibernation works fine with it, but my second HDMI monitor doesn't work with this kernel, it just shows black screen. It's presented in the menu and I can set some it's options and even move some windows to external monitor, but it doesn't show them. Kernel 4.8.0 has the same behaviour as 4.10.0.