Sleeper and Rebooter Software: Testing Sleep States and Restarting Your Computer
This article explains the usage of Sleeper and Rebooter software, both developed by PassMark, for testing sleep states and restarting your computer. We'll explore their parameters, provide an example command line batch script to run Sleeper, and illustrate how these tools can be beneficial.
Sleeper 2.3 Build 1009
Sleeper is a software designed to test your computer's sleep states. It offers various parameters to customize your tests. Here's a breakdown of its functionalities:
- -S[xxxx] (Sleep State): Each 'x' represents a sleep state, where '1' signifies testing that state and '0' means skipping it. For example, '-S1001' tests sleep states 1 and 4. This parameter necessitates the presence of '-D' (see below).
- -D [seconds] (Cycle mode interval): This parameter sets the duration in seconds that Sleeper waits after waking from one state before transitioning to the next.
- -R [seconds] (Sleep Duration): Specifies the number of seconds to sleep for. A valid sleep state needs to be defined alongside this parameter.
- -N [number] (Number of Cycles): Controls the number of suspend-and-resume cycles. By default, it runs indefinitely.
Example: Cycling through supported sleep states
The command sleeper -S0011 -R 60 -D 30 -N 1 will test supported sleep states on your system, resulting in the following sequence if your computer supports S3 and S4:
- Sleep state 1 for 60 seconds
- Wait for 30 seconds
- Sleep state 3 for 60 seconds
- Wait for 30 seconds
- Sleep state 4 for 60 seconds
Rebooter 1.3 build 1004
Rebooter is a software used for restarting your computer. It requires interface configuration to function. Its basic command is rebooter.exe -reboot. This command will initiate a system reboot.
Example Batch Script for Running Sleeper
The following batch script demonstrates how to run Sleeper using a command line script:
@echo off
color 0A
echo S3/S4 and Reboot runin test
echo config finish ,confirmation start?
pause
del /q %USERPROFILE%\Desktop'Sleeper 2.3 Build 1009, PassMark [20121018][]'\sleeper\sleeper\sleeper.log
start /wait %USERPROFILE%\Desktop'Sleeper 2.3 Build 1009, PassMark [20121018][]'\sleeper\sleeper\sleeper.exe -S0010 -R 30 -D 30 -N 2 -E
echo Sleeper complate!!!
This script first removes the sleeper.log file from your desktop, then launches the Sleeper executable with specified parameters (-S0010 -R 30 -D 30 -N 2 -E). Finally, it displays a message confirming the completion of the Sleeper process.
These command line tools, Sleeper and Rebooter, empower you to conduct controlled tests and restart your computer as needed. By understanding their parameters and usage, you can optimize your system settings and ensure smooth operation.
原文地址: https://www.cveoy.top/t/topic/qksq 著作权归作者所有。请勿转载和采集!