Get the App
SLTechnology News&Howtos  ›  Servers  › 

Use linux's apmsleep command to enter pause or standby mode and wake up later

Shulou Source: shulou.com Published: 2022-06-02 16:15:51 11月13日 Update

This article mainly introduces the use of linux apmsleep command to enter pause or standby mode, wake up later, the article is very detailed, has a certain reference value, interested friends must finish!

The apmsleep command is to put the computer into a standby or repair state. Some computers, especially laptops, can use real-time clock (RTC) chips to wake up from low-power pause mode to DRAM mode. Apmsleep can be used to set the alarm time in RTC and enter pause or standby mode. An interruption from RTC caused the computer to wake up. The program detects this event by waiting for a transition in kernel time and terminates successfully. If no time transition occurs within one minute, or if an error occurs, the exit value will be non-zero.

Syntax format: apmsleep [parameters]

Common parameters:

Reference example

Enter dormancy for 2 hours and 50 minutes:

[root@linuxcool ~] # apmsleep + 2:50

Dormant before 9:00 the next day:

[root@linuxcool ~] # apmsleep 9:00

Enter the standby 2 hours and 50 minutes:

[root@linuxcool ~] # apmsleep-S + 2:50

Stand by by 9:00 the next day:

[root@linuxcool ~] # apmsleep-S 9:00

Output information about tasks in progress:

[root@linuxcool ~] # apmsleep-d above is to enter pause or standby mode using the apmsleep command of linux. All the content that will be awakened later, thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Tags: Mode status command standby time computer standby later content parameters hours two days hibernation reference success event value task information interest Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology Apple OPPO Reno NVidia vpn