In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article will explain in detail how to use the powercfg command to turn off the monitor. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.
Turn off the monitor
The code is as follows:
@ echo off
:: by SKB
PowerCfg / change Home / desk / monitor-timeout-ac 1
Exit
The minimum parameter after rem is 1, that is, 1 minute. If you don't move the computer for 1 minute, you will see the effect.
POWERCFG [/ LIST | / QUERY [name] | / CREATE name | / DELETE name |
/ SETACTIVE name | / CHANGE name settings |
/ HIBERNATE {ON | OFF} | / EXPORT name [/ FILE filename] |
/ IMPORT name [/ FILE filename] | / GLOBALPOWERFLAG {ON | OFF} / OPTION flag |
/ BATTERYALARM {LOW | CRITICAL} [settings] | /?]
Description:
This command line tool allows administrators to control power settings on the system.
Parameter list:
/ LIST, / L lists the name of the existing power scheme.
/ QUERY, / Q displays the configuration of the specified power scheme. If no name is specified, the current
The configuration of the power scheme in use is displayed.
/ CREATE, / C creates a power scheme with the specified name. The new plan is to use the current Chinese side.
Created by the properties of the file.
/ DELETE, / D deletes the power scheme with the specified name.
/ SETACTIVE, / S sets the power scheme with the specified name to be in use.
/ CHANGE, / X changes the settings of the specified power scheme. Other switches specify the following changes:
/ monitor-timeout-ac
/ monitor-timeout-dc
/ disk-timeout-ac
/ disk-timeout-dc
/ standby-timeout-ac
/ standby-timeout-dc
/ hibernate-timeout-ac
/ hibernate-timeout-dc
/ processor-throttle-ac
/ processor-throttle-dc
The AC setting is used when the system uses AC power. The system uses battery power
Use the DC setting when the. Setting the timeout to zero disables the corresponding timeout feature.
Supported controller settings are NONE, CONSTANT, DEGRADE, and
ADAPTIVE .
/ EXPORT, / E exports the power scheme with the specified name to a file. If not specified
The file name. The default value is SCHEME.POW. Another parameter is supported:
/ FILE
/ IMPORT, / I imports the power scheme from a file with the specified name. If you do not specify a file name
The default value is SCHEME.POW. If a scheme with that name already exists
The new one will replace it. Another supported parameter is:
/ FILE
/ HIBERNATE, / H turns hibernation on or off. Not all systems that support hibernation support hibernation
Time out.
/ NUMERICAL, / N allows you to specify the power scheme to use with a numeric identifier. When using this switch
Specify its numeric identifier on the command line where the power scheme name is.
This switch can be followed by / QUERY, / DELETE, / SETACTIVE, / CHANGE,
/ EXPORT is used with the / IMPORT command.
/ GLOBALPOWERFLAG, / G {ON | OFF} turn on / off a global power flag.
Valid flags (used after "/ OPTION") are:
BATTERYICON: turn the battery indicator on / off in the system taskbar
Icon.
MULTIBATTERY: turns the multi-battery display on / off in the system power meter.
RESUMEPASSWORD: prompt for password when restoring the system.
WAKEONRING: turns on / off ring wake-up support.
VIDEODIM: turn video on / off on battery charge
Show dimmed support.
/ AVAILABLESLEEPSTATES, / A reports the sleep state available on the system. Attempt to report hibernation
The reason why the status is not available.
/ BATTERYALARM, / B {LOW | CRITICAL} displays or configures the specified battery warning. Use this
Option without a switch will display the current settings.
You can specify the following switches:
/ activate
Enables or disables warnings.
/ level
A warning will be issued when the voltage reaches this percentage.
/ text
Turns notifications on or off.
/ sound
Turns audible notifications on or off.
/ action
Specifies the action to take when the alarm goes off. Not all operations are always
Available.
/ forceaction
Even if the program stops responding, it will be forced to standby or shut down.
/ program
Specifies whether the system runs a program when the alarm goes off. Use this option
The output can be configured with schtasks.exe / change
The task name of the program.
/ HELP, /? Displays information about command line parameters.
Example:
POWERCFG / LIST
POWERCFG / QUERY scheme
POWERCFG / QUERY
POWERCFG / CREATE scheme
POWERCFG / DELETE scheme
POWERCFG / SETACTIVE scheme
POWERCFG / CHANGE scheme / monitor-timeout-dc 15
POWERCFG / CHANGE scheme / monitor-timeout-dc 0
POWERCFG / HIBERNATE on
POWERCFG / EXPORT scheme / file file
POWERCFG / QUERY number / NUMERICAL
POWERCFG / GLOBALPOWERFLAG on / OPTION BATTERYICON
POWERCFG / AVAILABLESLEEPSTATES
POWERCFG / BATTERYALARM low
POWERCFG / BATTERYALARM critical / ACTIVATE on / LEVEL 6 / ACTION hibernate
This is the end of this article on "how to use the powercfg command to turn off the monitor". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.