allowed me to hibernate my previous laptop by pressing the power key. I tried to fix this on my T430s by manually calling hibernate, but it complains that it must be run as root, even if I set
security.wrappers.hibernate = {
source = "${pkgs.hibernate}/bin/hibernate";
user = "root";
};
Unfortunately I no longer have my previous laptop. I did find out that holding down the power button for a short while (instead of just pressing it) makes it enter hibernation. This is with the settings posted in the OP.
Previously when I was using a Dell as a media center PC, a quick press on the power button would be enough to power it off. On the lenovo however, it needs to be held for slightly less than a second before it starts the shut down process.