A system and method for triggering Clear CMOS in BIOS

By using RTC time reset to trigger the Clear CMOS signal in the BIOS, it is possible to clear CMOS information without adding hardware facilities, and allows users to restore settings, which solves the problems of limited operation and hardware dependence in the existing technology. Provides a convenient and cost-effective solution.

CN115033089BActive Publication Date: 2024-10-18KUNLUN TECH (BEIJING) TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210523038.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-13
Publication Date
2024-10-18
Estimated Expiration
2042-05-13

AI Technical Summary

Technical Problem

The existing method of restoring BIOS default values ​​requires the operation after the system enters BIOS Setup. It cannot be implemented when BIOS Setup cannot be entered, and additional hardware facilities such as jumpers and CMOS chips are required to clear CMOS information.

Method used

By implementing the time judgment module, saving user settings module, restoring user settings module and clearing variable module in the BIOS, using RTC time reset to trigger the Clear CMOS signal, using software to clear the BIOS variable area data, providing a user interaction interface, and realizing Complete the Clear CMOS function by adding hardware facilities.

Benefits of technology

Clear CMOS can be implemented without additional hardware facilities, providing a user-friendly operation process, saving hardware costs, and allowing users to restore important settings after Clear CMOS, meeting the need to restore BIOS default settings even when Setup cannot be entered.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115033089B_ABST
    Figure CN115033089B_ABST
Patent Text Reader

Abstract

The invention discloses a system and method for triggering Clear CMOS under BIOS. The system comprises a time judgment module, a user setting saving module, a user setting recovery module, a variable clearing module and a user module. The system realizes the condition of triggering Clear CMOS signal by resetting RTC. The time judgment module is used to trigger the direct signal of Clear CMOS. The user setting saving module is used to save some parameter settings of BIOS by the user. The user setting recovery module is used to restore some original parameter settings of the user after Clear CMOS is completed. The variable clearing module realizes the function of Clear CMOS by software. The user module realizes the human-computer interaction interface. The method determines the state of Clear CMOS by the RTC time of the mainboard. When the user removes the battery, the RTC time will be reinitialized. The BIOS will read the RTC time before initialization. At this time, the RTC time obtained is invalid, thereby triggering the Clear CMOS mechanism. The invention can realize the function of Clear CMOS without adding additional hardware facilities.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of computer firmware, and in particular relates to a system and method for triggering Clear CMOS under BIOS. Background Art

[0002] The Clear CMOS function is to clear the CMOS information. CMOS here refers to a readable and writable RAM (random access memory) chip on the motherboard. The RAM chip is mainly used to save the current system hardware configuration and the operator's settings for certain parameters. Usually, CMOS information usually refers to basic startup information (such as date, time, startup settings, etc.).

[0003] The existing method for restoring BIOS default values ​​has the following problems:

[0004] 1) After the system enters BIOS Setup, select Load Defaults. Use this menu to load the factory defaults for stable system use. This technique cannot be used when the user cannot enter BIOS Setup.

[0005] 2) By setting a jumper on the motherboard and short-circuiting the jumper at the corresponding position, the information stored in the CMOS can be cleared. This technology requires additional jumper and CMOS chip hardware and cannot be completed without hardware. Summary of the invention

[0006] In view of this, the present invention provides a system and method for triggering Clear CMOS under BIOS, which can realize the function of Clear CMOS without adding additional hardware facilities.

[0007] The technical solution for implementing the present invention is as follows:

[0008] A system for triggering Clear CMOS under BIOS, comprising a time judgment module, a user setting saving module, a user setting restoring module, a variable clearing module and a user module;

[0009] The system realizes the condition of triggering the Clear CMOS signal by resetting the RTC; the time judgment module is used to trigger the direct signal of Clear CMOS; the save user setting module is used to save some parameter settings of the user for BIOS; the restore user setting module is used to restore some original parameter settings of the user after Clear CMOS is completed; the clear variable module is used to Clear CMOS function by software; the user module is used to realize the human-computer interaction interface.

[0010] Furthermore, the variable clearing module is used to clear the BIOS variable area and complete the Clear CMOS action.

[0011] The method of triggering Clear CMOS in BIOS includes three stages:

[0012] (1)SEC stage: used for security verification during the normal BIOS boot process;

[0013] (2) PEI stage: Get the current RTC time and compare it with the preset RTC time. If it is an invalid RTC time, call the clear variable module to clear the variable. If the user chooses to restore the previous parameter settings after Clear CMOS, call the restore user settings module to write back the variable value.

[0014] (3) DXE stage: Initialization of the RTC time is completed in this stage, and the user module can be called to load the user interaction interface.

[0015] Furthermore, the method specifically comprises the following steps:

[0016] Step 1: The user turns off the computer power and removes the battery to reset the RTC time;

[0017] Step 2: BIOS loads the startup process, at which point the RTC time is reset and the BIOS reads the current RTC time;

[0018] Step 3: Compare the obtained RTC time with the preset RTC time. Since the obtained RTC time is not initialized and is not within the preset time range, the RTC time obtained at this time is invalid.

[0019] Step 4: A pop-up window will appear on the screen to ask the user whether to restore the default values. If yes, the save user settings module will be called to save the data in the variable area, and then the clear variable module will be called; if no, the normal boot process will continue;

[0020] Step 5: Calculate the size of the variable header file, allocate space for it, calculate the offset of the variable area, erase the data in the variable area, and save the variable header file;

[0021] Step 6: Call the pop-up function to print the prompt message of Clear CMOS completion on the screen;

[0022] Step 7. The user presses the Enter key to restart;

[0023] Step 8. A pop-up window will appear on the screen asking the user whether to restore the previous user settings. If yes, set the RestoreLastChange Flag to True.

[0024] Step 9. Boot into BIOS Setup, select the settings to be restored in the menu options, save and restart;

[0025] Step 10: BIOS obtains the corresponding variable data from the RetainData area and writes it back to BIOS Setup;

[0026] Step 11: Restoring user BIOS settings is complete.

[0027] Furthermore, the prerequisite for executing the method is that the computer needs to be equipped with basic startup devices, including a processor, memory and an onboard graphics card (or an external graphics card), and the mainboard contains a battery.

[0028] Beneficial effects:

[0029] 1. The present invention uses the method of reading the RTC time to trigger the Clear CMOS signal, without adding additional hardware facilities (jumper jumper, etc.), which provides users with operational convenience and saves hardware costs;

[0030] 2. When clearing CMOS information, the present invention uses software to save the variable header file and erase the data in the variable area, without adding an additional CMOS chip to store parameter information;

[0031] 3. After Clear CMOS is completed, the present invention can restore some important user settings according to user selection;

[0032] 4. The method of the present invention can complete the clear CMOS operation and restore some important parameter settings of the user by detecting the change of RTC time in the absence of hardware support for restoring the BIOS default settings, and can also achieve the goal of restoring the BIOS default settings when the user cannot enter Setup. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 The figure is a system structure block diagram of triggering Clear CMOS under BIOS of the present invention.

[0034] Figure 2 The figure is a flow chart of the method for triggering Clear CMOS under BIOS of the present invention. DETAILED DESCRIPTION

[0035] The present invention is described in detail below with reference to the accompanying drawings and embodiments.

[0036] The present invention provides a system for triggering Clear CMOS under BIOS, such as Figure 1 As shown, it includes a time judgment module, a variable clearing module, a user setting saving module, a user setting restoring module, and a user module;

[0037] A method for triggering Clear CMOS under BIOS realizes the condition of triggering Clear CMOS signal by resetting RTC; the system realizes the direct signal triggering Clear CMOS through the time judgment module; the saving user setting module is used to save some parameter settings of the user for BIOS; the restoring user setting module is used to restore some original parameter settings of the user after Clear CMOS is completed; the system realizes the function of Clear CMOS in software through the clear variable module; the system realizes the human-computer interaction interface through the user module.

[0038] The system clearing variable module is used to clear the BIOS variable area and complete the Clear CMOS action.

[0039] The user module is used to provide user-friendly interface prompts.

[0040] The present invention provides a method for triggering Clear CMOS under BIOS. The state of ClearCMOS is determined by the mainboard RTC time. When the user removes the battery, the RTC time will be reinitialized. The BIOS will read the RTC time before initialization. The RTC time obtained at this time is invalid, thereby triggering the Clear CMOS mechanism.

[0041] The Clear CMOS module restores BIOS data by saving the variable area header file and erasing the data in the variable area.

[0042] The method of the present invention comprises three stages:

[0043] (1) SEC stage. Used for security verification. The function of the present invention is to perform security verification in the startup stage of the normal BIOS startup process.

[0044] (2) PEI stage. It is used to prepare for the DXE stage. The function of the present invention is to obtain the current RTC time and compare it with the preset RTC time. If it is an invalid RTC time, a pop-up window will appear on the screen to ask the user whether to restore the default value. If so, the clear variable module will be called to clear the variable.

[0045] (3) DXE stage: used to initialize system services and load drivers. In the present invention, initialization of the RTC time is completed in this stage, and the user module can be called to load the user interaction interface.

[0046] like Figure 2 As shown, combined with the specific implementation process, the implementation steps are as follows:

[0047] Step 1: The user turns off the computer power and removes the battery (the battery is used to power the RTC), and resets the RTC time by discharging the battery.

[0048] Step 2: BIOS loads the startup process, at which point the RTC time is reset and the BIOS reads the current RTC time;

[0049] Step 3: Compare the obtained RTC time with the preset RTC time. Since the obtained RTC time is not initialized and is not within the preset time range, the RTC time obtained at this time is invalid.

[0050] Step 4: A pop-up window will appear on the screen to ask the user whether to restore the default values. If yes, the save user settings module will be called to save the data in the variable area, and then the clear variable module will be called; if no, the normal boot process will continue;

[0051] Step 5: Calculate the size of the variable header file, allocate space for it, calculate the offset of the variable area, erase the data in the variable area, and save the variable header file;

[0052] Step 6: Call the pop-up function to print the prompt message of Clear CMOS completion on the screen;

[0053] Step 7. The user presses the Enter key to restart;

[0054] Step 8. A pop-up window will appear on the screen asking the user whether to restore the previous user settings. If yes, set the RestoreLastChange Flag to True.

[0055] Step 9. Boot into BIOS Setup, select the settings to be restored in the menu options, save and restart;

[0056] Step 10: BIOS obtains the corresponding variable data from the RetainData area and writes it back to BIOS Setup;

[0057] Step 11: Restoring user BIOS settings is complete.

[0058] In summary, the above are only preferred embodiments of the present invention and are not intended to limit the protection scope of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for triggering Clear CMOS in BIOS, characterized in that: It consists of three stages: (1)SEC stage: used for security verification during the normal BIOS boot process; (2) PEI stage: Get the current RTC time and compare it with the preset RTC time. If it is an invalid RTC time, call the clear variable module to clear the variable. If the user chooses to restore the previous parameter settings after Clear CMOS, call the restore user settings module to write back the variable value. (3) DXE stage: Initialization of the RTC time is completed in this stage, and the user module can be called to load the user interaction interface; The method specifically comprises the following steps: Step 1: The user turns off the computer power and removes the battery to reset the RTC time; Step 2: BIOS loads the startup process, at which point the RTC time is reset and the BIOS reads the current RTC time; Step 3: Compare the obtained RTC time with the preset RTC time. Since the obtained RTC time is not initialized and is not within the preset time range, the RTC time obtained at this time is invalid. Step 4: A pop-up window will appear on the screen to ask the user whether to restore the default values. If yes, the save user settings module will be called to save the data in the variable area, and then the clear variable module will be called; if no, the normal boot process will continue; Step 5: Calculate the size of the variable header file, allocate space for it, calculate the offset of the variable area, erase the data in the variable area, and save the variable header file; Step 6: Call the pop-up function to print the prompt message of Clear CMOS completion on the screen; Step 7. The user presses the Enter key to restart; Step 8. A pop-up window will appear on the screen asking the user whether to restore the previous user settings. If yes, set the RestoreLastChange Flag to True. Step 9. Boot into BIOS Setup, select the settings to be restored in the menu options, save and restart; Step 10: BIOS obtains the corresponding variable data from the RetainData area and writes it back to BIOS Setup; Step 11: Restoring user BIOS settings is complete.

2. The method for triggering Clear CMOS in BIOS as claimed in claim 1, characterized in that: The prerequisite for executing the method is that the computer needs to be equipped with basic startup devices, including a processor, memory and an onboard graphics card, and the motherboard contains a battery.

3. A system using the method of claim 1, characterized in that: It includes time judgment module, user setting saving module, user setting recovery module, variable clearing module and user module; The system realizes the condition of triggering the Clear CMOS signal by resetting the RTC; the time judgment module is used to trigger the direct signal of Clear CMOS; the save user setting module is used to save some parameter settings of the user for BIOS; the restore user setting module is used to restore some original parameter settings of the user after Clear CMOS is completed; the clear variable module is used to Clear CMOS function by software; the user module is used to realize the human-computer interaction interface.

4. The system according to claim 3, characterized in that The variable clearing module is used to clear the BIOS variable area and complete the Clear CMOS action.

Citation Information

Patent Citations

  • NVRAM data recovery method and NVRAM data recovery device

    CN104424047A

  • CMOS (Complementary Metal Oxide Semiconductor) information clearing method, electronic equipment and clearing chip

    CN113703557A