Find out how to Disable Droop and Hibernation Modes In Linux

On this article, we take you thru the way to disable droop and hibernation modes on a Linux system. However earlier than we do this, let’s briefly have an summary of those two modes.

If you droop your Linux system, you mainly activate or put it into sleep mode. The display goes off, though the pc stays very a lot powered on. Additionally, all your paperwork and purposes stay open.

Suspending your system helps save energy if you end up not utilizing your system. Getting again to utilizing your system requires a easy mouse-click or a faucet on any keyboard button. Typically, chances are you’ll be required to press the facility button.

There are three droop modes in Linux:

  • Droop to RAM (Regular Droop): That is the mode that almost all laptops robotically enter incase of inactivity over a sure period or upon closing the lid when the PC is working on the battery. On this mode, energy is reserved for the RAM and is reduce from most elements.
  • Droop to Disk (Hibernate): On this mode, the machine state is saved into swap area & the system is totally powered off. Nonetheless, upon turning it on, all the pieces is restored and also you decide up from the place you left.
  • Droop to each (Hybrid droop): Right here, the machine state is saved into swap, however the system doesn’t go off. As an alternative, the PC is suspended to RAM. The battery shouldn’t be used and you’ll safely resume the system from the disk and get forward along with your work. This technique is far slower than suspending to RAM.

Disable Droop and Hibernation in Linux

To forestall your Linux system from suspending or going into hibernation, you should disable the next systemd targets:

$ sudo systemctl masks sleep.goal droop.goal hibernate.goal hybrid-sleep.goal

You get the output proven under:

Created symlink /and many others/systemd/system/sleep.goal → /dev/null.
Created symlink /and many others/systemd/system/droop.goal → /dev/null.
Created symlink /and many others/systemd/system/hibernate.goal → /dev/null.
Created symlink /and many others/systemd/system/hybrid-sleep.goal → /dev/null.

Disable Suspend and Hibernation in UbuntuDisable Droop and Hibernation in Ubuntu

Then reboot the system and log in once more.

Confirm if the adjustments have been effected utilizing the command:

$ sudo systemctl standing sleep.goal droop.goal hibernate.goal hybrid-sleep.goal

Verify Suspend and Hibernation in UbuntuConfirm Droop and Hibernation in Ubuntu

From the output, we will see that every one 4 states have been disabled.

Allow Droop and Hibernation in Linux

To re-enable the droop and hibernation modes, run the command:

$ sudo systemctl unmask sleep.goal droop.goal hibernate.goal hybrid-sleep.goal

Right here’s the output that you’re going to get.

Eliminated /and many others/systemd/system/sleep.goal.
Eliminated /and many others/systemd/system/droop.goal.
Eliminated /and many others/systemd/system/hibernate.goal.
Eliminated /and many others/systemd/system/hybrid-sleep.goal.

Enable Suspend and Hibernation in UbuntuAllow Droop and Hibernation in Ubuntu

To confirm this, run the command;

$ sudo systemctl standing sleep.goal droop.goal hibernate.goal hybrid-sleep.goal

Verify Suspend and Hibernation in UbuntuConfirm Droop and Hibernation in Ubuntu

To forestall the system from going into droop state upon closing the lid, edit the /and many others/systemd/logind.conf file.

$ sudo vim /and many others/systemd/logind.conf

Append the next traces to the file.


Save and exit the file. Make sure you reboot to ensure that the adjustments to take impact.

This wraps our article on the way to disable Droop and hibernation modes in your Linux system. It’s our hope that you just discovered this information helpful. Your suggestions is most welcome.

If You Respect What We Do Right here On TecMint, You Ought to Take into account:

TecMint is the quickest rising and most trusted neighborhood website for any type of Linux Articles, Guides and Books on the net. Hundreds of thousands of individuals go to TecMint! to look or browse the 1000’s of printed articles accessible FREELY to all.

If you happen to like what you might be studying, please take into account shopping for us a espresso ( or 2 ) as a token of appreciation.

Support Us

We’re grateful in your by no means ending assist.


Germany Devoted Server

Leave a Reply