Suspend VS hibernate in Linux, what is the difference?

Question: Suspend VS hibernate in Linux, what is the difference?

Suspend stops operation of all applications and system state is saved in RAM, the machine go into a low-power mode, in this state, the system still requires power . Various triggers can resume the machine, among them pressing a key or quickly pressing and releasing the power button.

Command to suspend Computer/Laptop

sudo pm-suspend

Hibernate Moves the contents of memory into swap, tells the bootloader to boot directly into the appropriate kernel, and shuts the machine down, in this state, the system does not require power. You turn on the machine by powering up, which causes the kernel to reload the contents of memory from swap.

Command to Hibernate computer/ Laptop

sudo pm-hibernate

that`s all.

For questions, feel free to post your questions in our Q/A forum

Via superuser

  • NeoGreen

    It should also be stated that it takes longer to resume work from hibernation than from suspension

  • Qq

    its a pity that author didn’t mention that you can not resume system from hibernation properly in linux :))

  • AliusPanfilovas

     You can. Here is how – stop buying computers which contains hardware from companies that don’t give a shit about Linux.

  • zinovsky

    I agree, is because suspend resume from the RAM and hibernate from harddisk (Swap).  i will update the post, thanks

  • Agus Setiawan

    how about i suspend my desktop then unplug the power? what would happen?

  • swapnil

     kaboom ! .. ur data will vanish and ur system will start afresh once u decide plug in the power :D

  • Pierre-Adrien B.

    Which is, btw, quite logical as the data is saved to RAM (and RAM memory needs power to maintain its state).

  • Neurooo

    a.K.a all of them?

  • AliusPanfilovas

    Not really, intel is linux friend.