Skip to main content

How to Change Sleep Settings in Ubuntu 22.04

When not in use, a computer can enter sleep mode .i.e. a power-saving mode. All unnecessary operations are stopped when the computer is in sleep mode. Most computing devices and PCs are programmed to go into sleep mode after a specific amount of inactivity. When closed, laptop computers frequently go into sleep mode. Typically, tapping a key, clicking the mouse, or pressing the power button causes a computer to come out of sleep. 

The majority of your computer is completely off when it is in standby or sleep mode. Your processor, hard disc, network cards (typically), and pretty much anything else are all included in that. The main exception is your RAM (memory), which is necessary for a quick computer restart. This must be kept on since when your computer is shut down, everything in its RAM is essentially lost. Although it is theoretically possible, I've never heard of a computer's RAM being harmed by being on sleep for an extended period of time. 

Hibernate can be used if you're very concerned or energy conscious. This copies your RAM to your hard drive for later use. That simply represents a middle ground between sleep and a complete shut down. Your RAM is saved to your hard drive rather than remaining powered, allowing your computer to remember what you were doing. It's generally pretty good, as it takes a little longer to enter and exit hibernation than sleep would, and it doesn't operate flawlessly on all systems (like with sleep). 

On Windows, Mac, or Linux computers, we can modify the sleep settings. The article's main focus is on how to modify Ubuntu's sleep settings: To successfully alter Ubuntu's sleep settings, adhere to the steps listed below: 

Method 1: How to change sleep settings using power settings

Step 1: Click the Settings icon to access Settings by heading to Activities Overview, typing settings into the search bar, and then click on it.

Step 2: After opening the Settings window, select "Power" from the list on the left and the Power panel will appear on the right side of the screen.

Step 3: Select Automatic Suspend from the "Suspend & Power Button" menu.

Step 4: Choose "Plugged In" or "On Battery Power," turn the switch on, and choose the delay time. Both options allow for customization:

"On Battery Power" was activated, and I set the delayed time to 20 minutes. You can adjust your settings as necessary. In other words, if your laptop is running on battery power, it will shut down after 20 minutes. Additionally, you can configure Plugged In mode.

Method 2: How to Put a PC to Sleep Mode using Terminal

There aren't any direct ways to change sleep settings in the terminal, but there are a few ways to pause all activity on your Ubuntu computer or put it in hibernation mode:

Put your system on hold: To suspend your system, first open the terminal and enter the following command:

$ systemctl suspend

Your system will be suspended and a black screen will appear after running the aforementioned command.

Sleep your system: In order to put your machine into hibernation, type the following command that is being mentioned below:

$ systemctl hibernate


Your computer automatically enters sleep mode when it is not in use after a predetermined amount of time. In this article, we described simple methods for changing the sleep settings in your Linux operating system (Ubuntu). One method is through the power settings, and the other is using the terminal approach. Additionally, you can write unique scripts to change your sleep settings.


Popular posts from this blog

How to Install Cups on Ubuntu 22.04

  Discover simple and easy steps to “ Install and Uninstall Cups on Ubuntu 22.04 ” in our user-friendly guide. In this guide, we will demonstrate the process of installation as well as uninstallation of Cups on Ubuntu 22.04. Cups let you print from your computer to different printers, no matter their type. It handles the entire printing process and works on various operating systems like Linux and macOS. So, let's start the guide. Features of Cups Below are some commendable features of Cups: Unified Printing Interface : CUPS provides a consistent and user-friendly interface for managing printers and print jobs across different platforms. Driver Compatibility : It supports a wide range of printer models through built-in drivers and can use manufacturer-specific drivers as well. Network Printing : CUPS enables printing to both local and network-connected printers, making it suitable for home and office environments. Print Queue Management : Users can monitor and manage print jobs in

How to Install Flameshot on Debian 12

  Welcome to our guide on installing and using Flameshot on Debian 12. If you are looking to capture and edit screenshots effortlessly, we will walk you through the simple installation process. However, if you ever need to remove Flameshot, we have got you covered there too.  Let's get started and enhance your screenshot capabilities on Debian 12! Features of Flameshot Below are some of the main features of Flameshot: Capture Modes : Flameshot offers various capture modes, including full-screen, selected area, active window, and more. Annotate : After capturing a screenshot, you can easily annotate it with arrows, lines, shapes, text, and emojis. Blur and Highlight : Flameshot allows you to blur or highlight sensitive information in your screenshots. Undo and Redo : You can undo and redo your annotations, allowing for easy adjustments. Customizable : Flameshot provides customization options for colors, line thickness, and fonts to match your preferences. Export and Save : Screensh