CN106293780B - The method for realizing computer automatic switching based on UEFI BIOS - Google Patents

The method for realizing computer automatic switching based on UEFI BIOS Download PDF

Info

Publication number
CN106293780B
CN106293780B CN201510244274.XA CN201510244274A CN106293780B CN 106293780 B CN106293780 B CN 106293780B CN 201510244274 A CN201510244274 A CN 201510244274A CN 106293780 B CN106293780 B CN 106293780B
Authority
CN
China
Prior art keywords
application program
configuration information
customized
time
setting
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.)
Expired - Fee Related
Application number
CN201510244274.XA
Other languages
Chinese (zh)
Other versions
CN106293780A (en
Inventor
阮仕涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Prafly Technology Co Ltd
Original Assignee
Shenzhen Prafly Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shenzhen Prafly Technology Co Ltd filed Critical Shenzhen Prafly Technology Co Ltd
Priority to CN201510244274.XA priority Critical patent/CN106293780B/en
Publication of CN106293780A publication Critical patent/CN106293780A/en
Application granted granted Critical
Publication of CN106293780B publication Critical patent/CN106293780B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention provides a kind of methods for realizing computer automatic switching based on UEFI BIOS, method includes the following steps: A, setting system bottom call service;B, under an operating system, the configuration information of application program is set.The present invention is provided with system bottom by UEFI BIOS and calls service, realizes the time setting that customized booting is directly arranged under an operating system, and then realize customized booting.Meanwhile under an operating system, by calling the application program of Driver Library, and the customized shutdown configuration information of the application program is set, realizes automatic shutdown.In addition, can switching on and shutting down preferably to computer carry out full-automatic intelligent and can control, save the electrical source consumption of company or family, the hardware consumption of computer itself can also be saved, to protect computer itself.

Description

The method for realizing computer automatic switching based on UEFI BIOS
Technical field
The present invention relates to Computer Control Technology fields, are realized and are calculated based on UEFI BIOS more specifically to one kind The method of machine automatic switching.
Background technique
Currently, the switching on and shutting down of most of home or office computer equipments control, it is all to be needed using manual switch, user When open computer, close computer, such as the employee for going to work in company when user is unwanted, common switching on and shutting down behaviour Work is that employee to office turns on computer when working, is just turned off manually when employee leaves.However this control at present The modes of switching on and shutting down processed the problem is that, due to being badly in need of using computer, can be opened when booting, but shut down when It waits, it is possible to can forget to close, the office computer of especially interim station, more generally since the company of haunting back outside causes Computer does not shut down.In company, if forgetting to close computer, it on the one hand just will increase the expense of company, cause electric power energy On the other hand waste also has a loss to machine itself.
Although time limited startup, such as Patent No. can be set by the CMOS setting method of the BIOS of mainboard Described in CN200910030877, but the shutdown under operating system is not supported;And there are also determining under an operating system for market The software of Shi Guanji, but do not support scheduled start function.
Summary of the invention
The technical problem to be solved in the present invention is that providing one kind for the defect of computer on/off in the prior art Based on the method that UEFI BIOS realizes computer automatic switching, preferably the switching on and shutting down to computer full-automatic intelligent can be carried out It can control.
Technical proposal that the invention solves the above-mentioned problems is based on UEFI BIOS there is provided one kind and realizes that computer is opened automatically The method of shutdown, which is characterized in that method includes the following steps:
A, setting system bottom calls service;
B, under an operating system, the configuration information of application program is set.
It is above-mentioned based on UEFI BIOS realize computer automatic switching method in, the step A specifically include with Lower step:
S11, the customized booting disabling of setting and enabled setting option are enabled;
S12, Driver/procotol is called, wake-up interrupts is opened in S5 and enable item and the enabled item of RTC event;
S13, setting real-time clock waking-up setting option, and when real-time clock waking-up setting option is enabled, when setting wakes up Between.
In the above-mentioned method for realizing computer automatic switching based on UEFI BIOS, in the step S13, institute Wakeup time is stated to be stored in RAM.
In the above-mentioned method for realizing computer automatic switching based on UEFI BIOS, the wakeup time does not include The festivals or holidays and two-day weekend of national regulation.
It is above-mentioned based on UEFI BIOS realize computer automatic switching method in, the step B specifically include with Lower step:
S14, when the time of current real-time clock is equal with the wakeup time, computer booting simultaneously enter operation system System;
S15, the application program for calling Driver Library;
S16, customized shutdown configuration information and customized booting configuration information are configured respectively to the application program.
In the above-mentioned method for realizing computer automatic switching based on UEFI BIOS, the method also includes: customization The instruction of the application program is opened, so that the application program self-starting when entering operating system.
Implement the method for the invention that computer automatic switching is realized based on UEFI BIOS, beneficial effect has:
The time setting that customized booting is directly set under an operating system is realized, and then to realize that customized booting mentions It is easy to operate for convenient, meanwhile, provided with the customized shutdown configuration information that the application program is arranged, realize automatic shutdown.Separately Outside, can switching on and shutting down preferably to computer carry out full-automatic intelligent and can control, save the electrical source consumption of company or family, can also be with The hardware consumption of computer itself is saved, to protect computer itself.
Detailed description of the invention
Fig. 1 is the method flow diagram that computer automatic switching is realized based on UEFI BIOS of the embodiment of the present invention.
Fig. 2 is the flow chart that setting system bottom of the invention calls service.
Fig. 3 is the specific flow chart of step S2 in Fig. 1.
Fig. 4 is state diagram when implementing the method for computer automatic switching of the invention.
Specific embodiment
The present invention is provided with system bottom by UEFI BIOS and calls service, and RTC can directly be arranged under an operating system The date and time of scheduled start function is arranged, and realizes customized booting.Meanwhile under an operating system, by calling Driver Library Application program, and the customized shutdown configuration information of the application program is set, realizes automatic shutdown.
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that described herein, specific examples are only used to explain the present invention, not For limiting the present invention.
As shown in Figure 1, being the stream of the method for realizing computer automatic switching based on UEFI BIOS of the embodiment of the present invention Cheng Tu.Method includes the following steps:
S1, setting system bottom call service:
As shown in Fig. 2, being the flow chart that setting system bottom of the invention calls service.During computer guiding, Start a hot key (such as del key) into the interface BIOS, is enabled to be configured customized booting and disable with enabled setting option.
It carries out opening customized booting disabling and enabled setting option disabling (Disabled) and enable by UEFI BIOS (Enabled), wherein UEFI (Unified Extensible Firmware Interface, Extensible Firmware Interface) is suitable Standard firmware interface for computer.
When opening disabling (Disabled), real-time clock waking-up (RTC Alarm, Real Time Clock is disabled Alarm);
When opening enabled (Enabled), Driver/procotol is called, wake-up interrupts are opened in S5 and enable item (Alarm Interrupt Enable) and RTC (real-time clock, Real Time Clock) event enable item (RTC event Enable), to keep RTC Alarm effective.When RTC Alarm is effective, during computer guiding, with another hot key (such as Esc key) is directly entered real-time clock waking-up setting option in BIOS, with open real-time clock waking-up setting option it is enabled and Disabling, wherein the default conditions of real-time clock waking-up setting option are real-time clock waking-up setting option disabling;When opening enabled, Be arranged into wakeup time, date including wake-up, when, minute, second, it can only be that the same day is effectively or every that a wakeup time, which is arranged, It effectively, and wakeup time is stored in RAM, easy to operate and then complete so as to complete setting RTC scheduled start function It calls and services at setting system bottom.
S2, under an operating system, is arranged the configuration information of application program:
As shown in figure 3, the application program of Driver Library is called, to application program after computer booting enters operating system It is configured configuration information, wherein configuration information includes customized shutdown configuration information and customized booting configuration information, when setting When setting customized shutdown configuration information, the unused time including setting, specific time format are as follows: when XXXX XX month XX day XX XX points, to realize customized shutdown configuration, when the time of current RTC meets the unused time of the setting, application program is just Calling system massage pattern makes to calculate auto-shut-off;When customized booting configuration information is arranged, call customization driving that will read The wakeup time in RAM is taken, and the wakeup time of above-mentioned RTC is set, specific time format are as follows: when XXXX XX month XX day XX XX points, which does not include festivals or holidays, two-day weekend and company special holiday of national regulation etc., is made by oneself to realize Justice booting configuration, and then make the date and time setting that RTC scheduled start function is directly set under an operating system.In this way, In When application program is run, the configuration information of above-mentioned customization is loaded automatically, and carry out relevant action according to the configuration information, be such as switched on Or shutdown.
In the present embodiment, this method further includes the instruction that the application program is opened in customization.Application program is opened in customization Instruction makes the application program self-starting when entering operating system, manually boots without thinking, further realize automation control Computer on/off.
The step of instruction of application program, is opened in customization are as follows: it is fixed to activate to open operation for the trigger command for obtaining user's input Processing procedure sequence;The newly-built order of user's input, the newly-built operation task A for needing to customize are obtained, and opening operation custom program is turned Enter running background;Motion action data are calculated according to motion action instruction in the motion action instruction for obtaining user's input, and Motion action data are sent to control module;Opening operation custom program receives the motion action data that control module is sent, And motion action data are saved into newly-built operation task A;Judge whether that the customization for getting user's input terminates to refer to It enables;When getting the customization END instruction of user's input, stop obtaining the motion action data that control module is sent, and generate Option of operation corresponding with operation task A.This partly belongs to the prior art, and details are not described herein for concrete details.
As shown in figure 4, being state diagram when implementing the method for computer automatic switching of the invention.At computer When off-mode, since RTC individually powers on hardware circuit, when computer is in off-mode, RTC is in work Make state, according to above-mentioned setting option, when the time of current RTC meeting the wake-up being arranged when real-time clock waking-up setting option enables Between when, i.e., when both equal, computer booting simultaneously enters operating system, at this point, the application program of Driver Library is opened, current When time meets the customized shutdown configuration information configured in the application program, auto-shut-off, when not meeting, computer are calculated It is still within open state.
Summary, the method for the invention for realizing computer automatic switching based on UEFI BIOS are realized in operating system The time that customized booting and customized shutdown are directly arranged down is arranged, and then to realize customized startup and shutdown provider Just, easy to operate.Meanwhile preferably switching on and shutting down to computer can carry out full-automatic intelligent and can control, save company or family Electrical source consumption can also save the hardware consumption of computer itself, to protect computer itself.
The foregoing is only a preferred embodiment of the present invention, but scope of protection of the present invention is not limited thereto, In the technical scope disclosed by the present invention, any changes or substitutions that can be easily thought of by anyone skilled in the art, It should be covered by the protection scope of the present invention.Therefore, protection scope of the present invention should be with scope of protection of the claims Subject to.

Claims (3)

1. a kind of method for realizing computer automatic switching based on UEFI BIOS, which is characterized in that this method includes following step It is rapid:
A, setting system bottom calls service, specifically includes the following steps:
S11, customized booting disabling is set by UEFIBIOS and enabled setting option is enabled;
S12, Driver/procotol is called, wake-up interrupts is opened in S5 and enable item and the enabled item of RTC event;
S13, setting real-time clock waking-up setting option, and when real-time clock waking-up setting option is enabled, setting wakeup time is simultaneously Wakeup time is stored in RAM;
B, under an operating system, the configuration information of application program is set, specifically includes the following steps:
S14, when the time of current real-time clock is equal with the wakeup time, computer booting simultaneously enter operating system;
S15, after computer booting enters operating system, call the application program of Driver Library;
S16, customized shutdown configuration information and customized booting configuration information are configured respectively to the application program, In, when customized shutdown configuration information is arranged, when the time of current RTC meets the unused time of setting, application program is just adjusted With system message mode, make to calculate auto-shut-off;When customized booting configuration information is arranged, customization driving is called to read Wakeup time in RAM, and the wakeup time is set;
When S17, application program operation, the configuration information of above-mentioned customization is loaded automatically, and carry out related move according to the configuration information Make.
2. the method according to claim 1 for realizing computer automatic switching based on UEFI BIOS, feature exist In the wakeup time does not include the festivals or holidays and two-day weekend of national regulation.
3. the method according to claim 1 for realizing computer automatic switching based on UEFI BIOS, feature exist In, the method also includes: the instruction of the application program is opened in customization, so that the application program when entering operating system Self-starting.
CN201510244274.XA 2015-05-14 2015-05-14 The method for realizing computer automatic switching based on UEFI BIOS Expired - Fee Related CN106293780B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510244274.XA CN106293780B (en) 2015-05-14 2015-05-14 The method for realizing computer automatic switching based on UEFI BIOS

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510244274.XA CN106293780B (en) 2015-05-14 2015-05-14 The method for realizing computer automatic switching based on UEFI BIOS

Publications (2)

Publication Number Publication Date
CN106293780A CN106293780A (en) 2017-01-04
CN106293780B true CN106293780B (en) 2019-11-12

Family

ID=57631609

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510244274.XA Expired - Fee Related CN106293780B (en) 2015-05-14 2015-05-14 The method for realizing computer automatic switching based on UEFI BIOS

Country Status (1)

Country Link
CN (1) CN106293780B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107301075B (en) * 2017-06-26 2021-12-24 联想(北京)有限公司 Method and device for setting system memory overclocking and electronic equipment
CN109033848B (en) * 2018-06-25 2020-09-25 湖南国科微电子股份有限公司 Method and system for safely operating stored data
CN110879725A (en) * 2019-10-17 2020-03-13 北京华北兴业技术有限公司 Implementation method for timing closing of Bypass

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6701521B1 (en) * 2000-05-25 2004-03-02 Palm Source, Inc. Modular configuration and distribution of applications customized for a requestor device
CN100426746C (en) * 2005-12-20 2008-10-15 英业达股份有限公司 System and method for control on-and-off machine
CN101526904A (en) * 2009-04-16 2009-09-09 江苏科技大学 Switching method for realizing normal and time limited startup of computers based on system BIOS
CN102759975A (en) * 2011-04-26 2012-10-31 深圳富泰宏精密工业有限公司 Start-up and shut-down management system and method of electronic device
CN104049708A (en) * 2014-07-08 2014-09-17 山东超越数控电子有限公司 Method for automatic startup/ shutdown and standby state awakening
CN104298524A (en) * 2014-09-24 2015-01-21 孙浩 Automatic startup and shutdown system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6701521B1 (en) * 2000-05-25 2004-03-02 Palm Source, Inc. Modular configuration and distribution of applications customized for a requestor device
CN100426746C (en) * 2005-12-20 2008-10-15 英业达股份有限公司 System and method for control on-and-off machine
CN101526904A (en) * 2009-04-16 2009-09-09 江苏科技大学 Switching method for realizing normal and time limited startup of computers based on system BIOS
CN102759975A (en) * 2011-04-26 2012-10-31 深圳富泰宏精密工业有限公司 Start-up and shut-down management system and method of electronic device
CN104049708A (en) * 2014-07-08 2014-09-17 山东超越数控电子有限公司 Method for automatic startup/ shutdown and standby state awakening
CN104298524A (en) * 2014-09-24 2015-01-21 孙浩 Automatic startup and shutdown system

Also Published As

Publication number Publication date
CN106293780A (en) 2017-01-04

Similar Documents

Publication Publication Date Title
EP2871825B1 (en) Method for enabling shutdown alarm clock and mobile terminal
US10629013B2 (en) Unlocking control methods and related products
CN102799481B (en) Method and device for switching modes on terminal
EP3113549A1 (en) Method and device for waking up mcu chip
US9021287B2 (en) Circuit arrangement and method for low power mode management with delayable request
JP2017529808A (en) Control method for mobile terminal antenna and mobile terminal
CN106293780B (en) The method for realizing computer automatic switching based on UEFI BIOS
EP3112979B1 (en) Method and device for waking up mcu
CN105676987A (en) Method for shutting down background application of mobile terminal, device and mobile terminal
CN102385531B (en) Apparatus for performing timer management and associated method
CN104991803A (en) System and method for managing and controlling self-startup of android application under specific conditions
CN101539796A (en) Method for automatically turning on or turning off display and display capable of being automatically turned on or turned off
CN110554762A (en) Method and terminal for controlling application program
CN105302548A (en) Android device standby and waking-up method and apparatus
CN105373207A (en) Standby method of wireless communication terminal
JP2013531822A (en) Power management method and apparatus for network access module
CN104679218A (en) Method and device for controlling power consumption
CN104219746B (en) Method, device and terminal for autonomously adjusting wake-up time
CN103777738B (en) Timed power on/off method based on Android system and equipment thereof
CN112114887A (en) Controlled device, method for waking up controlled device and storage medium
WO2016183916A1 (en) Dual card switching method and device
KR20140026308A (en) Apparatus and method for managing power in multi-core system
CN106598193B (en) Power consumption control method and device
CN106101406B (en) Shutdown alarm triggering processing method based on mobile terminal and mobile terminal
WO2015168980A1 (en) Terminal and operating method therefor

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20191112

Termination date: 20200514