Debian – How to hibernate a Debian 8 Jessie machine from command line? (S4 state)

debianhibernate

I have this old low-end desktop PC that I installed Debian on. This machine only supports wake on LAN on the S4 state, which is hibernate (suspend to disk?). When this machine had Windows I just hibernated it and WOL functioned correctly.

I have tried a handful of commands but they don't work, back when it had Windows if I hibernated it the machine would turn off completely, no LED power light or fans running, but when trying to hibernate it in Linux the machine goes unresponsive and goes on what seems to be a low-power consumption state, the power LED as well as internal fans are all still on and WOL still doesn't work. How do I go on about hibernating it completely like in Windows? I do not have a GUI installed.

Best Answer

I have gotten this from another blog and it works for me. This can work even without sudo as long as you have not modified your PAM configuration.

systemctl hibernate -i

Please take note systemctl --help for further options.

Related Question