CN103279368A - Method for automatically powering off idle computer - Google Patents
Method for automatically powering off idle computer Download PDFInfo
- Publication number
- CN103279368A CN103279368A CN2013101717110A CN201310171711A CN103279368A CN 103279368 A CN103279368 A CN 103279368A CN 2013101717110 A CN2013101717110 A CN 2013101717110A CN 201310171711 A CN201310171711 A CN 201310171711A CN 103279368 A CN103279368 A CN 103279368A
- Authority
- CN
- China
- Prior art keywords
- computer
- shutdown
- idle
- automatically
- mouse
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Power Sources (AREA)
Abstract
The invention relates to a method for automatically powering off an idle computer. The method comprises the steps that the operation of a keyboard and the operation of a mouse are combined, and a computer with the keyboard and the mouse unused within a certain time is set to be automatically powered off. The method not only is simple in operation, but also saves manpower and material resources, and an unmanned self-managing function is performed on a machine room and an office computer by simply using the method.
Description
Technical field
The present invention relates to computer control, relating in particular to does not a kind ofly need manually-operated and the idle computer method of shutdown automatically in large-scale machine room.
Technical background
In the past in the shutdown software of computer, general using " timing shutdown " is controlled the periodic switch of computer system power supply, reach computer switching on and shutting down action and management in daily life, thisly go up very passive not only for management, only represent that the user must use computing machine in the specific time, to the regular hour must descend machine.Whether the time that the user must understand computer constantly is the standard time, to the user certain limitation is arranged like this, can not carry out dynamic management to the shutdown action of computing machine.
Summary of the invention
In view of the above problems, technical matters to be solved by this invention is to judge by the mouse of identification computer and the state of keyboard whether computing machine is in idle state, determine the instruction that operation whether shut down, and finish the computer task of shutting down automatically by carrying out the function that shuts down.
In order to achieve the above object, the present invention has adopted following technical scheme: a kind of idle computer automatic shutdown method, and step is as follows:
1) start;
2) operation automatically;
3) read parameter preset;
4) judge whether keyboard/mouse is in idle state;
5) whether computer satisfies standby time;
6) eject prompting and whether need shutdown;
7) carry out the shutdown function;
8) shutdown.
Described parameter preset comprises: default standby time and count-down time parameter.
Described shutdown function is the ExitwindowsEx function that is used for withdrawing from, restarting or nullify service system among the Windows.
The present invention has overcome the difficulty of existing computer lab management, has accomplished effectively to shut down automatically when computer is unattended, has saved energy resource consumption, and saves manpower and handling cost.
Description of drawings
Fig. 1 is process flow diagram of the present invention.
Embodiment
Below in conjunction with drawings and Examples the present invention is described in further detail.Referring to Fig. 1, a kind of idle computer automatic shutdown method, step is as follows:
1) start: launch computer;
2) read parameter preset: program reads the parameter that presets during login windows;
3) operation automatically: program reads the user preset parameter automatically at running background;
4) judge whether keyboard/mouse is in idle state: whether automatic program identification user is using keyboard or mouse, and then timer is not-time using; If not, turn back to step 2; If enter next step;
Whether 5) satisfy computer standby time: whether keyboard/mouse has reached the user preset parameter standby time; If not, turn back to step 2; If enter next step;
6) eject prompting and whether need shutdown: read the user preset parameter, whether need to continue to use with top-level windows prompting user; If continue to use, then turn back to step 2; If do not continue to use, then enter next step;
7) carry out the shutdown function:
8) shutdown: shut down computer automatically.
Described parameter preset comprises: default standby time and count-down time parameter.
Described shutdown function: Windows shutdown function (ExitwindowsEx) can be used for shutdown system, successfully calls as function, and system sends WM_QUERYENDSESSION message to each window, and whether the program under the inquiry window can be terminated.The program of receiving this message should respond, and removes environment and discharges resource, and return true represents that oneself can be terminated then.If yet having specified EXW_FORCE when calling ExitWindowEx, system stops the process of being correlated with by force and shuts down computer.
Embodiment 1:Idle computer automatically shutdown in the use of multi-media classroom: behind the launch computer, program during login windows, with standby time parameter be arranged to 30 minutes, the countdown time parameter is arranged to 5 minutes, " no signal is shut down automatically " is arranged in projection.Eject countdown prompting in 5 minutes if there is the unused time to reach 30 minutes computers behind the following machine, if point " is not cancelled shutdown ", computer shuts down automatically, and both no signal outputed to projection, and projection is shut down automatically.
Embodiment 2:The utilization of shutdown in computer lab management automatically of idle computer: after the dynamo-electric brain of student starts, program during login windows, with standby time parameter be arranged to 8 minutes, the countdown time parameter is arranged to 2 minutes.The student after class, if do not shut down computer, the time reach 8 minutes after computer eject countdown prompting in 2 minutes automatically, if point " cancellation shutdown " computer does not shut down automatically.
The method applied in the present invention is that the operation with keyboard/mouse combines, and can set and not use the computer of keyboard and mouse to shut down automatically in the certain hour.Not only simple to operate, and saved manpower and material resources, only in this way can not only be for machine room, office computer play unmanned self-service management role, but also have effects of energy saving and emission reduction.
Claims (3)
1. idle computer automatic shutdown method is characterized in that its step is as follows:
1) start;
2) read parameter preset;
3) operation automatically;
4) judge whether keyboard/mouse is in idle state;
5) whether computer satisfies standby time;
6) eject prompting and whether need shutdown;
7) carry out the shutdown function;
8) shutdown.
2. idle computer automatic shutdown method according to claim 1 is characterized in that described parameter preset comprises: default standby time and count-down time parameter.
3. idle computer automatic shutdown method according to claim 1 is characterized in that, described shutdown function is the ExitwindowsEx function that is used for withdrawing from, restarting or nullify service system among the Windows.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2013101717110A CN103279368A (en) | 2013-05-11 | 2013-05-11 | Method for automatically powering off idle computer |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2013101717110A CN103279368A (en) | 2013-05-11 | 2013-05-11 | Method for automatically powering off idle computer |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103279368A true CN103279368A (en) | 2013-09-04 |
Family
ID=49061907
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2013101717110A Pending CN103279368A (en) | 2013-05-11 | 2013-05-11 | Method for automatically powering off idle computer |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103279368A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110673644A (en) * | 2019-11-05 | 2020-01-10 | 深圳市道通智能航空技术有限公司 | Control method of unmanned aerial vehicle, unmanned aerial vehicle and remote control device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1786873A (en) * | 2004-12-06 | 2006-06-14 | 乐金电子(昆山)电脑有限公司 | Method for electric source management fo computer |
US20070035277A1 (en) * | 2005-08-09 | 2007-02-15 | Asustek Computer Inc. | Recharging apparatus capable of selectively enabling or interrupting recharging procedure for rechargeable battery in portable electronic device and recharging method thereof |
CN101539803A (en) * | 2009-04-30 | 2009-09-23 | 威盛电子股份有限公司 | Standby management method and relevant standby management module thereof |
-
2013
- 2013-05-11 CN CN2013101717110A patent/CN103279368A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1786873A (en) * | 2004-12-06 | 2006-06-14 | 乐金电子(昆山)电脑有限公司 | Method for electric source management fo computer |
US20070035277A1 (en) * | 2005-08-09 | 2007-02-15 | Asustek Computer Inc. | Recharging apparatus capable of selectively enabling or interrupting recharging procedure for rechargeable battery in portable electronic device and recharging method thereof |
CN101539803A (en) * | 2009-04-30 | 2009-09-23 | 威盛电子股份有限公司 | Standby management method and relevant standby management module thereof |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110673644A (en) * | 2019-11-05 | 2020-01-10 | 深圳市道通智能航空技术有限公司 | Control method of unmanned aerial vehicle, unmanned aerial vehicle and remote control device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102695998B (en) | System and method for controlling central processing unit power in a virtualized system | |
CN100541393C (en) | The apparatus and method of power supply in the managing computer system | |
WO2016041468A1 (en) | Wakeup method, device and terminal | |
JP2014528109A (en) | Application management method and terminal | |
CN103076867B (en) | Possess cloud terminal processing method and the system of power button action recognition function | |
CN103218033A (en) | Method and device for waking up hardware equipment | |
KR101941761B1 (en) | Method, device and mobile terminal for reducing power consumption | |
CN105608049A (en) | Method and device for controlling CPU of intelligent terminal | |
CN106547335A (en) | Energy consumption reduces method and mobile terminal | |
CN105082142A (en) | Intelligent robot system and working method thereof | |
KR102060431B1 (en) | Apparatus and method for managing power in multi-core system | |
CN102238108A (en) | Off-line message transmission method | |
CN106494321B (en) | A kind of automobile ECU sleep management strategy process and system | |
CN104270430A (en) | Server remote dispatching method suitable for cloud computing | |
CN105242917A (en) | Method and apparatus for Android device to use WiFi module compatibly | |
CN105808409B (en) | A kind of information processing method and electronic equipment | |
CN105611409A (en) | Advertisement machine control system, control method thereof and advertisement machine | |
CN102437917A (en) | Network wake-up method, network wake-up device and computer | |
CN105095045A (en) | Method and system for monitoring background service of Android system | |
CN202261051U (en) | Switching power supply | |
CN105487638A (en) | Electronic circuit system and power consumption reducing method thereof | |
CN103279368A (en) | Method for automatically powering off idle computer | |
CN102819474B (en) | Test method and device for system operation | |
CN102130772A (en) | Energy-saving method of service single board, main control board, service single board and access equipment | |
CN106293780B (en) | The method for realizing computer automatic switching based on UEFI BIOS |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20130904 |