How to Put a Computer to Sleep When Inactive in Linux?
Most modern computers offer a sleep feature. A computer goes into sleep mode saving all of its current state: the contents of the memory and the processor's registers, the contents of the screen, and the configuration of all input/output channels. When the computer is brought back from sleep mode, the system is in exactly the same state. You can configure your Linux computer to go to sleep after not getting keyboard or mouse input during a time period.
Instructions
-
-
1
Log in to the computer as your regular user.
-
2
Launch the "Power Manager" configuration utility. The specific way of performing this step depends on your Linux distribution. For example, for Ubuntu Linux, press "Alt-F1" on the graphical desktop, then select "System," then "Preferences," then "Power Management." A new window will open with the configuration utility.
-
-
3
Configure the inactivity time period for when the computer is getting electricity from its power supply. For example, for Ubuntu, click on the "On AC Power" tab, then select the duration of the inactivity period from the pull-down menu next to "Put computer to sleep when inactive for."
-
4
Configure the inactivity time period for when the computer is running on battery power. For example, for Ubuntu, click on the "On Battery Power" tab, then select the duration of the inactivity period from the pull-down menu next to "Put computer to sleep when inactive for." Click "Close."
-
1