First off, given that you're using a swap file, can we assume that you're currently configuring your grub
file with both resume
and resume_offset
tags? To review these requirements, check out the Arch reference here: https://wiki.archlinux.org/index.php/Power_management/Suspend_and_hibernate#Hibernation_into_swap_file (much of the text will still be relevant for Debian/Ubuntu).
That said, I had a hard time myself getting hibernate to work with my Dell XPS 9560. The issue I had appears to have been ACPI-related, and I could only hibernate if I had completely disabled ACPI in the kernel (acpi=off
).
It turns out that more recent Ubuntu kernels now ship with ACPI rev. 6 support (where compiled with the CONFIG_ACPI_REV_OVERRIDE_POSSIBLE flag). Not sure exactly when this flag was getting compiled into the kernel, but I suspect recently (>4.10.0-20 or so?).
Regardless, forcing ACPI to use rev. 5 (acpi_rev_override=5
) in grub
seems to resolve my hibernation issues.
Worth a shot...
Rich