5

After updating from Ubuntu 17.04 to 17.10 hibernate after suspend (hybrid suspend) stopped working. Since switching to systemd I used this solution https://wiki.debian.org/SystemdSuspendSedation (after the solution with a script in /etc/pm/sleep.d also stopped working) but now my computer only enters suspend mode and stays there forever.

systemctl hibernate is working and I don't have a clue why it's not working any more.

How do I make hibernate after suspend working again?

Additional information: I'm using the tuxonice kernel.

edit: What I recently found out is that systemctl suspend and sudo pm-suspend seem to do different things in Ubuntu 17.10, as when I use sudo pm-suspend the old script in /etc/pm/sleep.d works as intended but the systemd style script still does nothing.

joschi
  • 1,754
  • Do you have a swap file or swap partition? – user8292439 Nov 14 '17 at 21:58
  • 1
    How much RAM do you have, and how big is your swap partition? – user8292439 Nov 14 '17 at 22:14
  • I always was using a swap partition that always worked fine. RAM is 16GB, swap roughly 17GB. But the thing is: it worked before. – joschi Nov 14 '17 at 22:19
  • 1
    But we don't know the conditions under which it worked. After a fresh reboot, hibernate would work because there is enough swap space to store the RAM. After the system is in use, there may not be enough swap to store both the RAM and existing SWAP in the partition. – user8292439 Nov 14 '17 at 22:20
  • As swap is only used if the RAM is full and I barely use half of it there can't be a problem of the swap partition being to small. – joschi Nov 14 '17 at 22:36
  • Swap is not only used if the RAM is full, just run free -h after having a system booted for a couple hours, and you'll see that swap is used even thought there is still plenty of RAM free. – user8292439 Nov 14 '17 at 22:37
  • swappiness is set to 10 so there shouldn't be barely any swapping and therefore enough space for hibernation. As I said it worked smoothly before, for several years. – joschi Nov 14 '17 at 22:40
  • When the screen hibernates but then doesen't wake up from the hibernation can you access a TTY by clicking Crtl + alt + f2? – NerdOfCode Nov 15 '17 at 00:13
  • Sorry, but you don't seem to understand my problem, please read about hibernate after suspend first (for example https://askubuntu.com/questions/12383/how-to-go-automatically-from-suspend-into-hibernate). – joschi Nov 15 '17 at 21:44

0 Answers0