CN115033089A - System and method for triggering Clear CMOS (complementary metal oxide semiconductor) under BIOS (basic input output System) - Google Patents
System and method for triggering Clear CMOS (complementary metal oxide semiconductor) under BIOS (basic input output System) Download PDFInfo
- Publication number
- CN115033089A CN115033089A CN202210523038.1A CN202210523038A CN115033089A CN 115033089 A CN115033089 A CN 115033089A CN 202210523038 A CN202210523038 A CN 202210523038A CN 115033089 A CN115033089 A CN 115033089A
- Authority
- CN
- China
- Prior art keywords
- user
- module
- bios
- variable
- clear
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 36
- 230000000295 complement effect Effects 0.000 title abstract description 5
- 229910044991 metal oxide Inorganic materials 0.000 title abstract description 5
- 150000004706 metal oxides Chemical class 0.000 title abstract description 5
- 239000004065 semiconductor Substances 0.000 title abstract description 5
- 238000011084 recovery Methods 0.000 claims abstract description 11
- 230000003993 interaction Effects 0.000 claims abstract description 7
- 230000006870 function Effects 0.000 claims description 11
- 230000008569 process Effects 0.000 claims description 10
- 238000012795 verification Methods 0.000 claims description 4
- 230000001960 triggered effect Effects 0.000 abstract 1
- 230000009471 action Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/24—Resetting means
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses a system and a method for triggering Clear CMOS (complementary metal oxide semiconductor) under BIOS (basic input/output system). the system comprises a time judgment module, a user setting storage module, a user setting recovery module, a variable clearing module and a user module; the system realizes the condition of triggering the Clear CMOS signal by resetting the RTC; the time judging module is used for triggering a direct signal of the Clear CMOS; the saving user setting module is used for saving some parameter settings of the BIOS by a user; the user setting recovery module is used for recovering the original certain parameter settings of the user after the Clear CMOS is finished; the Clear variable module realizes the function of Clear CMOS in a software mode; the user module realizes a human-computer interaction interface; the method comprises the steps that the state of a Clear CMOS is determined through RTC time of a main board, when a user removes a battery, the time of the RTC can be reinitialized, a BIOS reads the RTC time before initialization, and the RTC time obtained at the moment is invalid, so that a Clear CMOS mechanism is triggered; the invention can realize the function of Clear CMOS without additionally increasing hardware facilities.
Description
Technical Field
The invention belongs to the technical field of computer firmware, and particularly relates to a system and a method for triggering Clear CMOS (complementary metal oxide semiconductor) under BIOS (basic input output system).
Background
The Clear CMOS function is a function of clearing CMOS information, and the CMOS here is a readable and writable RAM (random access memory) chip on a motherboard, and the RAM chip is mainly used to store the hardware configuration of the current system and the setting of some parameters by an operator. Typically, CMOS information generally refers to basic startup information (e.g., date, time, startup settings, etc.).
The existing method for recovering the BIOS default value has the following problems:
1) after the system enters BIOS Setup, Load Defaults are selected, the factory default is loaded by using the menu to serve as a stable system, and the technology cannot be used when a user cannot enter BIOS Setup;
2) through setting up jumper wire jumper on the mainboard, through the wire jumper of short circuit corresponding position, clear away the information of storage in the CMOS, this technique needs extra jumper and CMOS chip hardware that increases, does not rely on hardware to accomplish.
Disclosure of Invention
In view of this, the present invention provides a system and a method for triggering Clear CMOS under BIOS, which can implement the function of Clear CMOS without adding additional hardware.
The technical scheme for realizing the invention is as follows:
a system for triggering Clear CMOS under BIOS comprises a time judgment module, a user storage setting module, a user recovery setting module, a variable clearing module and a user module;
the system realizes the condition of triggering the Clear CMOS signal by resetting the RTC; the time judging module is used for triggering a direct signal of the Clear CMOS; the saving user setting module is used for saving some parameter settings of the BIOS by a user; the user setting recovery module is used for recovering the original parameter setting of a user after the Clear CMOS is finished; the variable clearing module is used for clearing the functions of CMOS in a software mode; and the user module is used for realizing a human-computer interaction interface.
Furthermore, the variable clearing module is used for clearing the BIOS variable area to complete the action of Clear CMOS.
The method for triggering Clear CMOS by BIOS comprises three stages:
(1) and (2) SEC stage: in the normal starting process of the BIOS, the method is used for the safety verification of the starting stage;
(2) a PEI stage: acquiring current RTC time, comparing the current RTC time with preset RTC time, and calling a variable clearing module to clear a variable if the current RTC time is invalid RTC time; if the user selects the parameter setting before recovery after Clear CMOS, the recovery user setting module can be called to write back the variable value;
(3) DXE phase: initializing RTC time is done at this stage and the user interaction interface may be loaded by calling the user module.
Further, the method specifically comprises the following steps:
step one, a user powers off a computer, removes a battery and resets RTC time;
step two, the BIOS loads a starting process, at the moment, the RTC time is reset, and the BIOS reads the current RTC time;
comparing the acquired RTC time with preset RTC time, wherein the acquired RTC time is not initialized and is not in a preset time range, so that invalid RTC time is acquired at the moment;
step four, inquiring whether a user wants to restore the default value operation or not by a popup on a screen, if so, calling a storage user setting module to store the data of the variable area, and then calling a variable clearing module; if not, continuing the normal starting process;
step five, calculating the size of the variable header file, allocating space for the variable header file, calculating the offset of the variable area, erasing the data of the variable area, and storing the variable header file;
step six, calling a popup function to print prompt information finished by the Clear CMOS on a screen;
step seven, the user presses the Enter key to restart;
step eight, inquiring whether a user needs to restore the user setting before a popup window on a screen, if so, setting the RestoreLastChange Flag to True;
step nine, starting the BIOS Setup, selecting the settings needing to be restored in the menu options by the user, and saving and restarting the BIOS;
step ten, the BIOS acquires corresponding variable data from the RetainData area and writes the variable data back to the BIOS Setup;
and step eleven, the BIOS setting of the user is recovered and the operation is finished.
Further, the method is performed with the precondition that: the computer needs to be provided with the basic starting equipment, and the basic starting equipment comprises a processor, a memory and an onboard display card (or an external display card), and a mainboard comprises a battery.
Has the advantages that:
1. the invention adopts a mode of reading RTC time to trigger Clear CMOS signals, does not need to additionally increase hardware facilities (jumper wires and the like), provides convenience for operation for users and saves hardware cost;
2. when the CMOS information is cleared, a software mode is adopted, the variable header file is stored, the data of the variable area is erased, and a CMOS chip is not required to be additionally arranged to store the parameter information;
3. after the Clear CMOS is finished, some important user settings can be recovered according to user selection;
4. by the method, under the condition of lacking hardware support for recovering the BIOS default setting, the method can complete the operation of clear CMOS and recover some important parameter settings of a user by detecting the change of RTC time, and can also recover the BIOS default setting when the user cannot enter Setup.
Drawings
FIG. 1 is a block diagram of a BIOS lower trigger Clear CMOS system according to the present invention.
FIG. 2 is a flow chart of a method for triggering Clear CMOS under BIOS according to the present invention.
Detailed Description
The invention is described in detail below by way of example with reference to the accompanying drawings.
The invention provides a system for triggering Clear CMOS (complementary metal oxide semiconductor) under BIOS (basic input/output system), which comprises a time judgment module, a variable clearing module, a user setting saving module, a user setting restoring module and a user module, wherein the time judgment module, the variable clearing module, the user setting saving module, the user setting restoring module and the user module are arranged in the system;
the next method for triggering the Clear CMOS of the BIOS realizes the condition of triggering the Clear CMOS signal by resetting the RTC; the system realizes the direct signal triggering of the Clear CMOS through the time judgment module; the saving user setting module is used for saving some parameter settings of the BIOS by a user; the user setting recovery module is used for recovering the original certain parameter settings of the user after the Clear CMOS is finished; the system realizes the function of Clear CMOS in a software mode by a variable clearing module; the system realizes a human-computer interaction interface through the user module.
The system variable clearing module is used for clearing the BIOS variable area and completing the action of the Clear CMOS.
The user module is configured to provide a user-friendly interface prompt.
The invention provides a method for triggering Clear CMOS under BIOS, which determines the state of the Clear CMOS through the RTC time of a mainboard.
The Clear CMOS module restores the BIOS data by saving the header file of the variable area and erasing the data of the variable area.
The method comprises three stages:
(1) and (4) an SEC stage. For security verification. The invention has the function of normal starting process of BIOS and safety verification in the starting stage.
(2) A PEI phase. For the associated preparation work done for the DXE phase. The method has the functions of acquiring the current RTC time, comparing the current RTC time with the preset RTC time, inquiring whether a user needs to recover a default value or not by a popup window on a screen if the current RTC time is invalid, and calling a variable clearing module to clear a variable if the current RTC time is invalid.
(3) The DXE phase. For initializing system services and loading drivers. In the present invention, the initialization of the RTC time is completed at this stage and the user interaction interface may be loaded by calling the user module.
As shown in fig. 2, the implementation steps are as follows in conjunction with the specific implementation process:
step one, a user powers off a computer and removes a battery (the battery supplies power to an RTC), and the RTC is reset in a discharging mode;
step two, the BIOS loads a starting process, at the moment, the RTC time is reset, and the BIOS reads the current RTC time;
comparing the acquired RTC time with preset RTC time, wherein the acquired RTC time is not initialized and is not in a preset time range, so that invalid RTC time is acquired at the moment;
step four, a popup window inquires whether a user needs to restore the default value or not on a screen, if yes, a storage user setting module is called to store the data of the variable area, and then a variable clearing module is called; if not, continuing the normal starting process;
step five, calculating the size of the variable header file, allocating space for the variable header file, calculating the offset of the variable area, erasing the data of the variable area, and storing the variable header file;
step six, calling a popup function to print prompt information finished by the Clear CMOS on a screen;
step seven, the user presses the Enter key to restart;
step eight, inquiring whether the user needs to restore the previous user setting or not through a popup on the screen, and if so, setting the RestoreLastChange Flag to True;
step nine, starting the BIOS Setup, selecting the settings needing to be restored in the menu options by the user, and saving and restarting the BIOS;
step ten, the BIOS acquires corresponding variable data from the RetainData area and writes the variable data back to the BIOS Setup;
and step eleven, the BIOS setting of the user is recovered and the operation is finished.
In summary, the above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (5)
1. A system for triggering Clear CMOS under BIOS is characterized by comprising a time judgment module, a user setting storage module, a user setting recovery module, a variable clearing module and a user module;
the system realizes the condition of triggering the Clear CMOS signal by resetting the RTC; the time judging module is used for triggering a direct signal of the Clear CMOS; the saving user setting module is used for saving some parameter settings of the BIOS by a user; the user setting recovery module is used for recovering the original certain parameter settings of the user after the Clear CMOS is finished; the variable clearing module is used for clearing the functions of CMOS in a software mode; and the user module is used for realizing a human-computer interaction interface.
2. The BIOS down-trigger Clear CMOS system of claim 1, wherein the Clear variable module is configured to Clear a BIOS variable field to complete a Clear CMOS operation.
3. A method for triggering Clear CMOS under BIOS is characterized in that the method comprises three stages:
(1) and (2) SEC stage: in the normal starting process of the BIOS, the method is used for the safety verification of the starting stage;
(2) a PEI stage: acquiring current RTC time, comparing the current RTC time with preset RTC time, and calling a variable clearing module to clear a variable if the current RTC time is invalid RTC time; if the user selects the parameter setting before recovery after Clear CMOS, the recovery user setting module can be called to write back the variable value;
(3) DXE phase: initializing RTC time is done at this stage and the user interaction interface may be loaded by calling the user module.
4. The method for triggering Clear CMOS under BIOS of claim 3, wherein the method specifically comprises the steps of:
step one, a user powers off a computer, removes a battery and resets RTC time;
step two, the BIOS loads a starting process, at the moment, the RTC time is reset, and the BIOS reads the current RTC time;
comparing the acquired RTC time with preset RTC time, wherein the acquired RTC time is not initialized and is not in a preset time range, so that invalid RTC time is acquired at the moment;
step four, a popup window inquires whether a user needs to restore the default value or not on a screen, if yes, a storage user setting module is called to store the data of the variable area, and then a variable clearing module is called; if not, continuing the normal starting process;
step five, calculating the size of the variable header file, allocating space for the variable header file, calculating the offset of the variable area, erasing the data of the variable area, and storing the variable header file;
step six, calling a popup function to print prompt information finished by the Clear CMOS on a screen;
step seven, the user presses the Enter key to restart;
step eight, inquiring whether the user needs to restore the previous user setting or not through a popup on the screen, and if so, setting the RestoreLastChange Flag to True;
step nine, starting the BIOS Setup, selecting the settings needing to be restored in the menu options by the user, and saving and restarting the BIOS;
step ten, the BIOS acquires corresponding variable data from the RetainData area and writes the variable data back to the BIOS Setup;
and step eleven, the BIOS setting of the user is recovered and ended.
5. The method for triggering Clear CMOS under BIOS as claimed in claim 3 or 4, wherein the method is performed with the precondition that: the computer needs to be provided with the basic starting equipment, and the basic starting equipment comprises a processor, a memory and an onboard display card (or an external display card), and a mainboard comprises a battery.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210523038.1A CN115033089B (en) | 2022-05-13 | 2022-05-13 | System and method for triggering Clear CMOS under BIOS |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210523038.1A CN115033089B (en) | 2022-05-13 | 2022-05-13 | System and method for triggering Clear CMOS under BIOS |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115033089A true CN115033089A (en) | 2022-09-09 |
CN115033089B CN115033089B (en) | 2024-10-18 |
Family
ID=83120563
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210523038.1A Active CN115033089B (en) | 2022-05-13 | 2022-05-13 | System and method for triggering Clear CMOS under BIOS |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115033089B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030065915A1 (en) * | 2001-10-02 | 2003-04-03 | Chia-Hsing Yu | Method for initializing computer system |
CN104424047A (en) * | 2013-08-20 | 2015-03-18 | 研祥智能科技股份有限公司 | NVRAM data recovery method and NVRAM data recovery device |
CN104536551A (en) * | 2014-11-18 | 2015-04-22 | 合肥联宝信息技术有限公司 | Method and device for clearing away information on complementary metal oxide semiconductor (CMOS) |
CN113703557A (en) * | 2020-05-21 | 2021-11-26 | 杭州海康威视数字技术股份有限公司 | Method for clearing CMOS information, electronic equipment and clearing chip |
-
2022
- 2022-05-13 CN CN202210523038.1A patent/CN115033089B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030065915A1 (en) * | 2001-10-02 | 2003-04-03 | Chia-Hsing Yu | Method for initializing computer system |
CN104424047A (en) * | 2013-08-20 | 2015-03-18 | 研祥智能科技股份有限公司 | NVRAM data recovery method and NVRAM data recovery device |
CN104536551A (en) * | 2014-11-18 | 2015-04-22 | 合肥联宝信息技术有限公司 | Method and device for clearing away information on complementary metal oxide semiconductor (CMOS) |
CN113703557A (en) * | 2020-05-21 | 2021-11-26 | 杭州海康威视数字技术股份有限公司 | Method for clearing CMOS information, electronic equipment and clearing chip |
Also Published As
Publication number | Publication date |
---|---|
CN115033089B (en) | 2024-10-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11886282B2 (en) | Recovery method for terminal device startup failure and terminal device | |
CN109905770B (en) | Terminal starting method and device and terminal | |
CN108304282B (en) | Control method of double BIOS and related device | |
US9557791B2 (en) | Computer device and method for converting working mode of universal serial bus connector of the computer device | |
US9690572B2 (en) | System and method for updating firmware in real-time | |
US8499202B2 (en) | Method and system for recovery of a computing environment during pre-boot and runtime phases | |
US7337359B2 (en) | System and method for recovering a device state | |
CN100367225C (en) | BIOS shadowed small-print hard disk drive as robust, always on, backup for hard disk image and software failure | |
EP2608595A1 (en) | Mobile terminal and failure recovery method thereof | |
CN107704337B (en) | Factory setting restoring method, mobile terminal and device with storage function | |
CN110399168B (en) | System starting method, device and equipment for multiple data disk storage servers | |
CN112035171B (en) | Factory setting restoration method and system based on UEFI firmware | |
CN111666227B (en) | Page bump protection method and device for memory recovery of operating system | |
CN115033089A (en) | System and method for triggering Clear CMOS (complementary metal oxide semiconductor) under BIOS (basic input output System) | |
JP5659892B2 (en) | Information processing apparatus, portable terminal apparatus, and log output control method in information processing apparatus | |
CN111666226B (en) | Page bump protection method for operating system memory recovery and user equipment | |
US8856666B2 (en) | Chassis button to activate graphical user interface to enable user to select diagnostic and/or recovery | |
CN111078303B (en) | Method and device for optimizing UEFI (unified extensible firmware interface) boot startup | |
CN111708579A (en) | Operating system setting recovery method, device, equipment and storage medium | |
CN114528147B (en) | Fingerprint deleting method and device in dual operating system | |
CN101702096A (en) | Data one-key restoration device and method | |
CN117435141B (en) | Memory activation method, electronic equipment and storage medium | |
CN114064177B (en) | Application program hiding method and device, storage medium and terminal equipment | |
CN115190084B (en) | Method and system for starting Ethernet switching module | |
CN112068888B (en) | Linux system equipment starting method and device and terminal equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant |