CN111651215A - BIOS setting self-adaption method and device, storage medium and computer equipment - Google Patents

BIOS setting self-adaption method and device, storage medium and computer equipment Download PDF

Info

Publication number
CN111651215A
CN111651215A CN202010486450.1A CN202010486450A CN111651215A CN 111651215 A CN111651215 A CN 111651215A CN 202010486450 A CN202010486450 A CN 202010486450A CN 111651215 A CN111651215 A CN 111651215A
Authority
CN
China
Prior art keywords
operating system
bios
setting
system information
adjusting
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
Application number
CN202010486450.1A
Other languages
Chinese (zh)
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 Tongtaiyi Information Technology Co ltd
Original Assignee
Shenzhen Tongtaiyi Information 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 Tongtaiyi Information Technology Co ltd filed Critical Shenzhen Tongtaiyi Information Technology Co ltd
Priority to CN202010486450.1A priority Critical patent/CN111651215A/en
Publication of CN111651215A publication Critical patent/CN111651215A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a method, a device, a storage medium and computer equipment for BIOS setting self-adaption, wherein the method comprises the following steps: starting up self-checking; registering a mechanism for ACPI reading operation system information in system management interruption, wherein the operation system information comprises the type and the version of an operation system; reading operating system information, and generating operating system data according to the operating system information; adjusting the setting of the BIOS according to the operating system data; and (5) guiding to enter an operating system, and adjusting the matched hardware function of the operating system according to the setting of the BIOS. The invention completes the compatibility of the operating system and the hardware function through the BIOS, does not need to install other drivers, and is very convenient. The method for obtaining the operating system information by using the existing standard characteristic of the ACPI is added to the BIOS for the adjustment and use of the BIOS during the next power-on self-test, the corresponding processes are operated by the BIOS without human intervention, the compatible matching efficiency of the operating system and the hardware function is greatly improved, and the normal operation of a computer is ensured.

Description

BIOS setting self-adaption method and device, storage medium and computer equipment
Technical Field
The present invention relates to the field of computers, and in particular, to a method, an apparatus, a storage medium, and a computer device for BIOS setting adaptation.
Background
In the current design, the operating System of the computer needs to operate according to the actual situation for the adjustment and adaptation requirements of the BIOS (Basic Input Output System), and the related options need to be manually adjusted to match the hardware compatibility characteristics of the operating System in the process of different operating systems or reinstalling a new operating System. For example, newer hardware features may not be supported by older operating systems, which may affect the functionality and stability of the computer if forced on, and further, if an operating system capable of supporting these hardware features is encountered, the performance may not be optimized if the hardware features are not turned on, which may waste functionality. In this process, requiring manual adjustments by the user requires considerable knowledge of the operating system type, version, and hardware compatibility information. Meanwhile, the manual adjustment process is greatly influenced by human factors, and further problems caused by inaccurate matching easily occur. Therefore, how to improve the compatible matching efficiency of the operating system and the hardware function and ensure the normal operation of the computer is very important.
Disclosure of Invention
The invention mainly aims to provide a BIOS setting self-adapting method, aiming at solving the technical problems of improving the compatible matching efficiency of an operating system and hardware functions and ensuring the normal operation of a computer.
The invention provides a BIOS setting self-adaptive method, which comprises the following steps:
starting up self-checking;
registering a mechanism for ACPI reading operation system information in system management interruption, wherein the operation system information comprises the type and the version of an operation system;
reading operating system information, and generating operating system data according to the operating system information, wherein the operating system data is used for reading and using by a BIOS (basic input/output System);
adjusting the setting of the BIOS according to the operating system data;
and (5) guiding to enter an operating system, and adjusting the matched hardware function of the operating system according to the setting of the BIOS.
Preferably, the step of reading the operating system information and generating the operating system data according to the operating system information includes:
judging whether operating system data exist or not;
if not, adjusting the BIOS setting according to the default configuration.
The invention also provides a device for setting self-adaption of the BIOS, which comprises:
the self-checking module is used for power-on self-checking;
the system comprises a registration module, a management interrupt module and a management interrupt module, wherein the registration module is used for registering a mechanism of ACPI read operation system information in a system management interrupt, and the operation system information comprises the type and the version of an operation system;
the data generation module is used for reading the operating system information and generating operating system data according to the operating system information, wherein the operating system data is used for being read by the BIOS;
the adjusting module is used for adjusting the setting of the BIOS according to the data of the operating system;
and the first execution module is used for guiding the operating system to enter and adjusting the matched hardware function of the operating system according to the setting of the BIOS.
Preferably, the BIOS setting adaptive device further comprises:
the judging module is used for judging whether operating system data exist or not;
and the second execution module is used for adjusting the setting of the BIOS according to the default configuration if the BIOS is not in the default configuration.
The present invention also provides a storage medium, which is a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed, the method for setting and adapting the BIOS as described above is implemented.
The invention also provides a computer device, which is characterized by comprising a processor, a memory and a computer program which is stored on the memory and can run on the processor, wherein the processor executes the computer program to realize the method for setting and adapting the BIOS.
The invention has the beneficial effects that: the invention completes the compatibility of the operating system and the hardware function through the BIOS, does not need to install other drivers, and is very convenient. The method for obtaining the operating system information by using the existing standard characteristic of the ACPI is added to the BIOS for the adjustment and use of the BIOS during the next power-on self-test, the corresponding processes are operated by the BIOS without human intervention, the compatible matching efficiency of the operating system and the hardware function is greatly improved, and the normal operation of a computer is ensured.
Drawings
FIG. 1 is a flow chart illustrating a method for BIOS setup adaptation according to a first embodiment of the present invention;
FIG. 2 is a schematic structural diagram illustrating a BIOS setting adaptive device according to a first embodiment of the present invention;
FIG. 3 is a block diagram of an embodiment of a storage medium provided in the present application;
fig. 4 is a block diagram of an embodiment of a computer device provided in the present application.
Description of reference numerals:
1. a self-checking module; 2. a registration module; 3. a data generation module; 4. an adjustment module; 5. a first execution module;
100. a storage medium; 200. a computer program; 300. a computer device; 400. a processor.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, the present invention provides a BIOS setting adaptive method, including:
s1: starting up self-checking;
s2: registering a mechanism for ACPI reading operation system information in system management interruption, wherein the operation system information comprises the type and the version of an operation system;
s3: reading operating system information, and generating operating system data according to the operating system information, wherein the operating system data is used for reading and using by a BIOS (basic input/output System);
s4: adjusting the setting of the BIOS according to the operating system data;
s5: and (5) guiding to enter an operating system, and adjusting the matched hardware function of the operating system according to the setting of the BIOS.
In the embodiment of the present invention, the BIOS performs Power on self test, and then reads a mechanism of operating system information in a system Management interrupt register ACPI (advanced configuration and Power Management Interface). In the embodiment of the invention, the mechanism for reading the operating system information can be executed only when a condition is triggered, and the ACPI Method is responsible for execution. Then, the BIOS reads the operating system information and generates operating system data according to the operating system information. Specifically, operating system information under the ACPI standard specification, namely \ "OSI operating system data, is read in the ACPI Table, and the operating system data is backfilled to the BIOS for reading and using by the BIOS. And the BIOS reads operating system data corresponding to the operating system. And reading the data of the operating system in the BIOS and adjusting the setting of the BIOS. And then, booting to enter an operating system, and adjusting the matched hardware function of the operating system according to the setting of the BIOS. Specifically, the ACPI Method added by the BIOS reads \ OSI operating system data and writes operating system information into the NVRAM, and reads and updates user setup data into the user setup data. The process does not require additional installation of a drive.
To facilitate others to understand the technical solution, this is exemplified. Taking the hardware function of USB XHCI Handoff as an example, the old version operating system such as Windows7 does not support the USB XHCI Handoff function, and if the system is opened, the USB device can not be normally used. However, in Windows10, the hardware functionality of USB XHCI Handoff is supported, which needs to be turned on to take advantage of the performance benefits of XCHI. Specifically, after the initialization of the ACPI function is completed, the BIOS reads the _ OSI information of the ACPI Table and adjusts the setting of the USB XHCI Handoff according to the operating system information. If the operating system is Windows7, the setting is off, and if the operating system is Windows10, the setting is on. The BIOS setting and matching process of other hardware functions such as virtualization, power saving and energy saving and address bit addressing range limitation is the same as that of the USB XHCI Handoff, and therefore the details are not repeated.
In conclusion, the invention completes the compatibility of the operating system and the hardware function through the BIOS, does not need to install other drivers, and is very convenient. The method for obtaining the operating system information by using the existing standard characteristic of the ACPI is added to the BIOS for the adjustment and use of the BIOS during the next power-on self-test, the corresponding processes are operated by the BIOS without human intervention, the compatible matching efficiency of the operating system and the hardware function is greatly improved, and the normal operation of a computer is ensured.
Further, before the step S3 of reading the operating system information and generating the operating system data according to the operating system information, the method includes:
s31: judging whether operating system data exist or not;
s32: if not, adjusting the BIOS setting according to the default configuration.
In the embodiment of the invention, if the computer is not provided with the operating system, no operating system data exists, and the BIOS sets the hardware function of the computer according to the default configuration and the default setting.
Referring to fig. 2, the present invention further provides a BIOS setting adaptive device, including:
the self-checking module 1 is used for power-on self-checking;
the registration module 2 is used for registering a mechanism of ACPI reading operation system information in the system management interrupt, wherein the operation system information comprises the type and the version of an operation system;
the data generation module 3 is used for reading the operating system information and generating operating system data according to the operating system information, wherein the operating system data is used for being read by the BIOS;
the adjusting module 4 is used for adjusting the setting of the BIOS according to the data of the operating system;
and the first execution module 5 is used for guiding the operating system to enter and adjusting the matched hardware function of the operating system according to the setting of the BIOS.
In the embodiment of the present invention, the BIOS performs Power on self test, and then reads a mechanism of operating system information in a system Management interrupt register ACPI (advanced configuration and Power Management Interface). In the embodiment of the invention, the mechanism for reading the operating system information can be executed only when a condition is triggered, and the ACPI Method is responsible for execution. Then, the BIOS reads the operating system information and generates operating system data according to the operating system information. Specifically, operating system information under the ACPI standard specification, namely \ "OSI operating system data, is read in the ACPI Table, and the operating system data is backfilled to the BIOS for reading and using by the BIOS. And the BIOS reads operating system data corresponding to the operating system. And reading the data of the operating system in the BIOS and adjusting the setting of the BIOS. And then, booting to enter an operating system, and adjusting the matched hardware function of the operating system according to the setting of the BIOS. Specifically, the ACPI Method added by the BIOS reads \ OSI operating system data and writes operating system information into the NVRAM, and reads and updates user setup data into the user setup data. The process does not require additional installation of a drive.
To facilitate others to understand the technical solution, this is exemplified. Taking the hardware function of USB XHCI Handoff as an example, the old version operating system such as Windows7 does not support the USB XHCI Handoff function, and if the system is opened, the USB device can not be normally used. However, in Windows10, the hardware functionality of USB XHCI Handoff is supported, which needs to be turned on to take advantage of the performance benefits of XCHI. Specifically, after the initialization of the ACPI function is completed, the BIOS reads the _ OSI information of the ACPI Table and adjusts the setting of the USB XHCI Handoff according to the operating system information. If the operating system is Windows7, the setting is off, and if the operating system is Windows10, the setting is on. The BIOS setting and matching process of other hardware functions such as virtualization, power saving and energy saving and address bit addressing range limitation is the same as that of the USB XHCI Handoff, and therefore the details are not repeated.
In conclusion, the invention completes the compatibility of the operating system and the hardware function through the BIOS, does not need to install other drivers, and is very convenient. The method for obtaining the operating system information by using the existing standard characteristic of the ACPI is added to the BIOS for the adjustment and use of the BIOS during the next power-on self-test, the corresponding processes are operated by the BIOS without human intervention, the compatible matching efficiency of the operating system and the hardware function is greatly improved, and the normal operation of a computer is ensured.
Further, the device for BIOS setting adaptation further includes:
the judging module is used for judging whether the operating system data exists or not;
and the second execution module is used for adjusting the setting of the BIOS according to default configuration if the BIOS is not in the default configuration.
In the embodiment of the invention, if the computer is not provided with the operating system, no operating system data exists, and the BIOS sets the hardware function of the computer according to the default configuration and the default setting.
Referring to fig. 3, the present application further provides a storage medium 100, in which a computer program 200 is stored in the storage medium 100, and when the computer program runs on a computer, the computer is enabled to execute the method for BIOS setting adaptation described in the above embodiments.
Referring to fig. 4, the present application further provides a computer device 300 containing instructions, which when run on the computer device 300, causes the computer device 300 to execute the method for BIOS setting adaptation described in the above embodiments through a processor 400 disposed inside the computer device 300.
Those skilled in the art will appreciate the method of BIOS settings adaptation described herein and the devices referred to above for performing one or more of the methods described herein. These devices may be specially designed and manufactured for the required purposes, or they may comprise known devices in general-purpose computers. These devices have stored therein computer programs or applications that are selectively activated or reconfigured. Such a computer program may be stored in a device (e.g., computer) readable medium, including, but not limited to, any type of disk including floppy disks, hard disks, optical disks, CD-ROMs, and magnetic-optical disks, ROMs (Read-Only memories), RAMs (Random Access memories), EPROMs (Erasable Programmable Read-Only memories), EEPROMs (Electrically Erasable Programmable Read-Only memories), flash memories, magnetic cards, or optical cards, or any type of media suitable for storing electronic instructions, and each coupled to a bus. That is, a readable medium includes any medium that stores or transmits information in a form readable by a device (e.g., a computer).
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (6)

1. A method for BIOS setting adaptation, comprising:
starting up self-checking;
a mechanism to register ACPI read operating system information at a system management interrupt, wherein the operating system information includes a type and version of an operating system;
reading the operating system information, and generating operating system data according to the operating system information, wherein the operating system data is used for reading and using the BIOS;
adjusting the setting of the BIOS according to the operating system data;
and guiding to enter the operating system, and adjusting the matched hardware function of the operating system according to the setting of the BIOS.
2. The method of BIOS setting adaptation of claim 1, wherein the step of reading the operating system information and generating operating system data based on the operating system information is preceded by the step of:
judging whether the operating system data exists or not;
if not, adjusting the setting of the BIOS according to default configuration.
3. An apparatus for BIOS setting adaptation, comprising:
the self-checking module is used for power-on self-checking;
the system comprises a registration module, a management interrupt module and a management interrupt module, wherein the registration module is used for registering a mechanism of ACPI read operation system information in a system management interrupt, and the operation system information comprises the type and the version of an operation system;
the data generation module is used for reading the operating system information and generating operating system data according to the operating system information, wherein the operating system data is used for being read by the BIOS;
the adjusting module is used for adjusting the setting of the BIOS according to the operating system data;
and the first execution module is used for guiding the operating system to enter and adjusting the matched hardware function of the operating system according to the setting of the BIOS.
4. The BIOS setting adaptive device of claim 3, further comprising:
the judging module is used for judging whether the operating system data exists or not;
and the second execution module is used for adjusting the setting of the BIOS according to default configuration if the BIOS is not in the default configuration.
5. A storage medium, characterized in that it is a computer-readable storage medium, on which a computer program is stored, which computer program, when executed, implements the method of BIOS setting adaptation as claimed in any of claims 1-2.
6. A computer device comprising a processor, a memory, and a computer program stored on the memory and executable on the processor, wherein the processor implements the method for BIOS setting adaptation according to any one of claims 1-2 when executing the computer program.
CN202010486450.1A 2020-06-01 2020-06-01 BIOS setting self-adaption method and device, storage medium and computer equipment Pending CN111651215A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010486450.1A CN111651215A (en) 2020-06-01 2020-06-01 BIOS setting self-adaption method and device, storage medium and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010486450.1A CN111651215A (en) 2020-06-01 2020-06-01 BIOS setting self-adaption method and device, storage medium and computer equipment

Publications (1)

Publication Number Publication Date
CN111651215A true CN111651215A (en) 2020-09-11

Family

ID=72348747

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010486450.1A Pending CN111651215A (en) 2020-06-01 2020-06-01 BIOS setting self-adaption method and device, storage medium and computer equipment

Country Status (1)

Country Link
CN (1) CN111651215A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112631671A (en) * 2020-12-31 2021-04-09 东软睿驰汽车技术(沈阳)有限公司 Method and device for initializing operating system
CN113360257A (en) * 2021-04-16 2021-09-07 山东英信计算机技术有限公司 Information operation method and device based on BIOS, storage medium and equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102455919A (en) * 2010-10-19 2012-05-16 英业达股份有限公司 Automatic optimization setting method for basic input output system(BIOS)
CN103902425A (en) * 2012-12-28 2014-07-02 研祥智能科技股份有限公司 Computer system state monitoring method and device
CN110968351A (en) * 2019-11-15 2020-04-07 苏州浪潮智能科技有限公司 BIOS configuration method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102455919A (en) * 2010-10-19 2012-05-16 英业达股份有限公司 Automatic optimization setting method for basic input output system(BIOS)
CN103902425A (en) * 2012-12-28 2014-07-02 研祥智能科技股份有限公司 Computer system state monitoring method and device
CN110968351A (en) * 2019-11-15 2020-04-07 苏州浪潮智能科技有限公司 BIOS configuration method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112631671A (en) * 2020-12-31 2021-04-09 东软睿驰汽车技术(沈阳)有限公司 Method and device for initializing operating system
CN113360257A (en) * 2021-04-16 2021-09-07 山东英信计算机技术有限公司 Information operation method and device based on BIOS, storage medium and equipment

Similar Documents

Publication Publication Date Title
US10496424B2 (en) Reconfiguring virtual machines
CN109478135B (en) Computer system and method for rebooting a computer system
CN110032405B (en) System boot code memory management method, memory device and electronic system using same
CN106990958B (en) Expansion assembly, electronic equipment and starting method
CN105745617B (en) Selective power management for pre-boot firmware updates
EP1280058A2 (en) Method and system for creating and employing an operating system having selected functionality
US20050138348A1 (en) Method and apparatus for remote modifcation of system configuration
US20140325496A1 (en) Apparatus and method for firmware upgrade using usb
CN105917306B (en) System and method for configuring system firmware configuration data
US7676671B2 (en) System for multi-profile boot selection of an embedded device
EP2363803B1 (en) Virtual bus device using management engine
US20140325201A1 (en) Automatic entrance device and method for upgrade boot mode
CN107533441B (en) Creating operating system volumes
CN110865830A (en) Firmware updating method and computer system
CN105718281A (en) Touch screen firmware upgrading method and device
US9411605B2 (en) Device-less and system agnostic unified extensible firmware interface (UEFI) driver
CN111651215A (en) BIOS setting self-adaption method and device, storage medium and computer equipment
US6986035B2 (en) Modular bios for detecting resources of a system and reporting information about the resources during two separate phases
CN110688235A (en) System and method for sharing wireless connection information between UEFI firmware and OS
CN112230962A (en) BIOS configuration storage method and system for processor platform
CN113821265B (en) Operating system control method and device, computer mainboard and readable storage medium
WO2019100704A1 (en) Starting method for multi-mode iot device, multi-mode iot device, and storage medium
CN109634685B (en) Starting and stopping method and related device for PXE function of PCH gigabit Ethernet
CN112667444A (en) System upgrading method, storage medium and terminal equipment
CN113646745A (en) Disabling software persistence

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200911