Background:
I was having trouble with hibernation, because my swap was on an encrypted logical volume that generated a random key for every session. I then followed a guide on Ubuntu’s website to make it use a fixed key every time. Hibernation started working properly.
The problem:
Although my laptop can hibernate properly now (goes into hibernation, asks me for swap encryption key while wake up and wakes up properly), the problem is that after waking up from hibernation, some time later (doesn’t matter how much time) if I try to shut it down, it won’t shut down.
I have tried the shut down button, restart button, the commands:
sudo shutdown 0
systemctl poweroff -i
poweroff
etc., but no luck. It goes into a halfway shutdown and freezes. It forces me to brute-shutdown, and that’s not the way to go.
See the image below. It is the situation after I have run the command poweroff
in the terminal. The screen has frozen and nothing further happens. Same things happens with each of the other commands mentioned above.
[![enter image description here][1]][1]
Note: This is indeed Ubuntu MATE; I have merely tweaked the theme to make it look like the appearance of Unity that I am used to from my previous installation.
[1]: /uploads/default/original/2X/b/b9083399efe7e733674fff32a2ea5e6aea577e9b.jpg