CN111459558B - Video interface self-adaptive configuration method, device, equipment and storage medium - Google Patents

Video interface self-adaptive configuration method, device, equipment and storage medium Download PDF

Info

Publication number
CN111459558B
CN111459558B CN202010205201.0A CN202010205201A CN111459558B CN 111459558 B CN111459558 B CN 111459558B CN 202010205201 A CN202010205201 A CN 202010205201A CN 111459558 B CN111459558 B CN 111459558B
Authority
CN
China
Prior art keywords
video interface
output system
basic input
server
equipment
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.)
Active
Application number
CN202010205201.0A
Other languages
Chinese (zh)
Other versions
CN111459558A (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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202010205201.0A priority Critical patent/CN111459558B/en
Publication of CN111459558A publication Critical patent/CN111459558A/en
Application granted granted Critical
Publication of CN111459558B publication Critical patent/CN111459558B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • G06F9/4411Configuring for operating with peripheral devices; Loading of device drivers

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)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention discloses a video interface self-adaptive configuration method, a device, equipment and a storage medium, wherein the method comprises the following steps: when the server is started, the basic input and output system detects the ID of the server connection equipment; switching the video interface to the adaptive device according to the connected device ID; the baseboard management controller acquires and stores option values of a basic input and output system setup; when the server is restarted, the baseboard management controller acquires the option value of the basic input/output system setup again, compares the option values of the basic input/output system setup before and after restarting, and sends the adaptation information of the video interface switching to the basic input/output system when the comparison result is false. The device comprises: the device comprises an equipment ID detection unit, a video interface switching unit, an option value acquisition unit and an option value comparison unit. The invention can configure the adaptive display options according to the nodes, is convenient and quick, saves time and labor and can effectively improve the test efficiency of testers.

Description

Video interface self-adaptive configuration method, device, equipment and storage medium
Technical Field
The invention relates to the field of servers, in particular to a video interface self-adaptive configuration method, a device, equipment and a storage medium.
Background
With the rise of big data and internet application, the application range of the server is wider and wider, the display of the server is based on an onboard display card, the onboard display card is a common integrated display card, the display memory is low, the function can only provide a human-computer interaction terminal, and no requirements are required on the performance.
However, with the development of the internet industry, for better display and performance, the demand of servers configured by an external Graphics card and a Graphics Processing Unit (GPU) is increasing; the GPU card can be understood as a data computing card, which is different from a general display card, generally has no display output socket, and the like, and some GPU cards are only oversized display cards (because they are specially used for computing, the temporary storage of data is large), and are generally used for computing work in the aspects of enterprises, scientific research, and the like.
To better meet the customer's requirements, the VGA display of the server Basic Input Output System (BIOS) has options controllable, and the option VGA Priority has two values: the Onboard Device and the Offboard Device are used for switching a server matched with the GPU and a server matched with the external video card. The customer must manually modify the option values and each modification must save the configuration and restart it, which is time and labor intensive and another VGA display will be blank once the customer forgets to modify the options.
And along with the update of the BIOS version, the default value of VGA Priority option under BIOS Setup is modified to be the OnBoard Device, but many clients can choose to keep the setting parameter of BIOS for upgrading when updating the BIOS version, after the old version is upgraded to the new version, the current value of the option VGA Priority is still the Offboard Device, when the server is in the configuration of the external plug-in display card, the display of the external plug-in display card is normal, but when the server is in the configuration of GPU, after the server is powered on, the display is connected with the Onboard VGA, a black screen can be displayed, the server is turned on by using remote KVM, and the black screen can also be displayed.
Disclosure of Invention
In order to solve the technical problems, the invention provides a video interface adaptive configuration method, a video interface adaptive configuration device, video interface adaptive configuration equipment and a storage medium, which can configure adaptive display options according to nodes, are convenient and fast, and are time-saving and labor-saving.
In order to achieve the purpose, the invention adopts the following technical scheme:
a video interface adaptive configuration method comprises the following steps:
when the server is started, the basic input and output system detects the ID of the server connection equipment;
switching the video interface to the adaptive device according to the connected device ID;
the baseboard management controller acquires and stores option values of a basic input and output system setup;
when the server is restarted, the baseboard management controller acquires the option value of the basic input/output system setup again, compares the option values of the basic input/output system setup before and after restarting, and sends the adaptation information of the video interface switching to the basic input/output system when the comparison result is false.
Further, the video interface is a VGA interface.
Further, when the basic input/output system of the server is updated, the baseboard management controller empties the stored option value of the basic input/output system setup, and obtains and stores the updated option value.
Further, the device ID includes an extrapolated graphics processor ID and an extrapolated graphics card ID.
Further, the switching to the adaptive device according to the connected device ID video interface includes:
when the basic input and output system detects the ID of the externally-inserted graphics processor equipment, the video interface is switched to an onboard display card;
when the basic input and output system detects the ID of the external plug-in display card equipment, the video interface is switched to the external plug-in display card;
and when the basic input and output system does not detect the IDs of the externally-inserted graphic processor and the externally-inserted display card device, the video interface is switched to the on-board display card.
Further, the option of the basic input output system setup includes VGA Priority;
when the VGA Priority option value is Offboard Device, the video interface is switched to the external plug-in display card;
and when the VGA Priority option value is the Onboard Device, the video interface is switched to the on-board display card.
The invention provides a video interface self-adaptive configuration device, which comprises:
an apparatus ID detection unit configured to detect a server connection apparatus ID;
the video interface switching unit is used for switching the video interface to the adaptive equipment;
the option value acquisition unit is used for acquiring and storing the option value of the basic input and output system setup;
and the option value comparison unit is used for comparing the acquired option values of the basic input output system setup.
The invention provides a video interface self-adaptive configuration device, which comprises:
a memory for storing a computer program;
a processor for implementing the steps of the video interface adaptive configuration method as described above when executing the computer program.
The storage medium stores a computer program, and the computer program, when executed by a processor, implements the steps of the video interface adaptive configuration method.
The invention has the beneficial effects that:
the invention provides a video interface self-adaptive configuration method, a device, equipment and a storage medium, adaptive VGA display is carried out according to node configuration, a tester and a client do not need to manually modify options under setup, VGA adapter display can be automatically selected, time and labor are saved, convenience and rapidness are realized, and the test efficiency of the tester can be effectively improved.
Drawings
FIG. 1 is a flow chart of a method for adaptively configuring a video interface according to the present invention;
fig. 2 is a schematic structural diagram of an apparatus for adaptively configuring a video interface according to the present invention.
Detailed Description
In order to clearly explain the technical features of the present invention, the following detailed description of the present invention is provided with reference to the accompanying drawings. The following disclosure provides many different embodiments, or examples, for implementing different features of the invention. To simplify the disclosure of the present invention, the components and arrangements of specific examples are described below. Furthermore, the present invention may repeat reference numerals and/or letters in the various examples. This repetition is for the purpose of simplicity and clarity and does not in itself dictate a relationship between the various embodiments and/or configurations discussed. It should be noted that the components illustrated in the figures are not necessarily drawn to scale. Descriptions of well-known components and processing techniques and procedures are omitted so as to not unnecessarily limit the invention.
As shown in fig. 1, an embodiment of the present invention discloses a video interface adaptive configuration method, including:
when the server is started, the basic input and output system detects the ID of the server connection equipment;
switching the video interface to the adaptive device according to the connected device ID;
a Baseboard Management Controller (BMC) acquires and stores an option value of a basic input/output system setup;
when the server is restarted, the baseboard management controller acquires the option value of the basic input/output system setup again, compares the option values of the basic input/output system setup before and after restarting, and sends the adaptation information of the video interface switching to the basic input/output system when the comparison result is false.
Specifically, the video interface is a VGA interface.
The BIOS code is added with a detection function of the server connecting equipment ID, the BIOS automatically detects all the equipment IDs of the server in the starting process of the server, and when the equipment IDs of the external plug-in display card are detected, the current value of the option VGA Priority is displayed on the external plug-in display card no matter whether the current value of the option VGA Priority is the Offboard Device or the Onboard Device; when the ID of the extrapolation GPU equipment is detected, displaying on an on-board display card no matter the current value of the option VGA Priority is Offboard Device or Onboard Device; when the ID of both the extrapolation devices, the extrapolation graphics processor and the extrapolation graphics card, are not present, the current value of the VGA Priority is either Offboard Device or Onboard Device, which is displayed on the on-board graphics card.
The BMC code is added with a BIOS option comparison function, and the BIOS setup provides options for a client to set manually. After the BIOS of the server is updated, the BMC automatically clears the originally stored BIOS option value, automatically acquires the option value of the BIOS setup again and stores the option value; and after that, the BMC is restarted each time, the option value of the BIOS is automatically acquired again and is compared with the originally stored BIOS option value, then the comparison result is sent to the BIOS for subsequent processing, and the BIOS option value newly acquired by the BMC covers the originally stored option value. When a client changes the VGA Priority option value manually or by using a script, the BMC compares the VGA Priority option value acquired in the process of saving and restarting the server with the original stored option value, and when the comparison result is false, sends information for switching VGA adaptation display to the BIOS, and the BIOS receives the information sent by the BMC, and selects the corresponding video card to display according to the current value of the VGA Priority option of the BIOS no matter whether the server has an external video card or GPU configuration. When the VGA Priority option value is Offboard Device, the video interface is switched to the external plug-in display card; and when the VGA Priority option value is the Onboard Device, the video interface is switched to the on-board display card.
As shown in fig. 2, an embodiment of the present invention further discloses a video interface adaptive configuration apparatus, including:
an apparatus ID detection unit configured to detect a server connection apparatus ID;
the video interface switching unit is used for switching the video interface to the adaptive equipment;
the option value acquisition unit is used for acquiring and storing the option value of the basic input and output system setup;
and the option value comparison unit is used for comparing the acquired option values of the basic input output system setup.
The embodiment of the invention also discloses a video interface self-adaptive configuration device, which comprises:
a memory for storing a computer program;
a processor for implementing the steps of the video interface adaptive configuration method as described above when executing the computer program.
The embodiment of the invention also discloses a storage medium, wherein a computer program is stored on the storage medium, and when being executed by a processor, the computer program realizes the steps of the video interface self-adaptive configuration method.
Although the embodiments of the present invention have been described with reference to the accompanying drawings, the scope of the present invention is not limited thereto. Various other modifications and variations to the foregoing description may be apparent to those skilled in the art. And are neither required nor exhaustive of all embodiments. On the basis of the technical scheme of the invention, various modifications or changes which can be made by a person skilled in the art without creative efforts are still within the protection scope of the invention.

Claims (9)

1. A method for adaptive configuration of a video interface, comprising:
when the server is started, the basic input and output system detects the ID of the server connection equipment;
switching the video interface to the adaptive device according to the connected device ID;
the baseboard management controller acquires and stores option values of a basic input and output system setup;
when the server is restarted, the baseboard management controller acquires the option value of the basic input/output system setup again, compares the option values of the basic input/output system setup before and after restarting, and sends the adaptation information of the video interface switching to the basic input/output system when the comparison result is false.
2. The adaptive configuration method for video interface according to claim 1, wherein the video interface is VGA interface.
3. The adaptive configuration method for video interfaces according to claim 1, wherein when the bios of the server is updated, the bmc clears the stored option values of the bios setup, and obtains and stores the updated option values.
4. The video interface adaptive configuration method of claim 1, wherein the device IDs comprise an extrapolated graphics processor ID and an extrapolated graphics card ID.
5. The video interface adaptive configuration method according to claim 4, wherein the switching the video interface to the adaptive device according to the connected device ID comprises:
when the basic input and output system detects the ID of the externally-inserted graphics processor equipment, the video interface is switched to an onboard display card;
when the basic input and output system detects the ID of the external plug-in display card equipment, the video interface is switched to the external plug-in display card;
and when the basic input and output system does not detect the IDs of the externally-inserted graphic processor and the externally-inserted display card device, the video interface is switched to the on-board display card.
6. The video interface adaptive configuration method according to claim 1, wherein the options of the basic input output system setup include VGA Priority;
when the VGA Priority option value is Offboard Device, the video interface is switched to the external plug-in display card;
and when the VGA Priority option value is the Onboard Device, the video interface is switched to the on-board display card.
7. An apparatus for adaptively configuring a video interface, comprising:
the equipment ID detection unit is used for detecting the ID of the server connection equipment when the server is started;
the video interface switching unit is used for switching the video interface to the adaptive equipment according to the connected equipment ID;
the option value acquisition unit is used for acquiring and storing the option value of the basic input and output system setup again when the server is restarted;
and the option value comparison unit is used for comparing the option values of the basic input and output system setup before and after restarting and sending the adaptation information of the video interface switching to the basic input and output system when the comparison result is false.
8. A video interface adaptive configuration device, comprising:
a memory for storing a computer program;
processor for implementing the steps of the video interface adaptive configuration method according to any of claims 1 to 6 when executing said computer program.
9. A storage medium having stored thereon a computer program for implementing the steps of the video interface adaptive configuration method according to any one of claims 1 to 6 when executed by a processor.
CN202010205201.0A 2020-03-20 2020-03-20 Video interface self-adaptive configuration method, device, equipment and storage medium Active CN111459558B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010205201.0A CN111459558B (en) 2020-03-20 2020-03-20 Video interface self-adaptive configuration method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010205201.0A CN111459558B (en) 2020-03-20 2020-03-20 Video interface self-adaptive configuration method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111459558A CN111459558A (en) 2020-07-28
CN111459558B true CN111459558B (en) 2022-08-12

Family

ID=71676720

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010205201.0A Active CN111459558B (en) 2020-03-20 2020-03-20 Video interface self-adaptive configuration method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111459558B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114003516B (en) * 2021-12-30 2022-05-10 深圳市吉方工控有限公司 Method, system, equipment and storage medium for setting BIOS as default value
CN116991606B (en) * 2023-09-25 2024-02-02 苏州元脑智能科技有限公司 Baseboard management controller, and processing method and device of basic input/output system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109445865A (en) * 2018-11-09 2019-03-08 郑州云海信息技术有限公司 A kind of BIOS option remote batch setting method, device, terminal and storage medium
CN109976816B (en) * 2019-03-25 2021-06-15 联想(北京)有限公司 Computer system configuration method and server

Also Published As

Publication number Publication date
CN111459558A (en) 2020-07-28

Similar Documents

Publication Publication Date Title
US10866623B2 (en) Information handling system and method to detect and recover from no power/no post failures
CN111459558B (en) Video interface self-adaptive configuration method, device, equipment and storage medium
US7705842B2 (en) Fast display initialization and light up
EP2189906A1 (en) Method and apparatus for abnormality recovering of data card, and data card
CN111414285A (en) Test method, test device and test equipment for starting function of server system
CN111427601A (en) Method and device for automatically upgrading BIOS in batches, computer equipment and storage medium
US11308002B2 (en) Systems and methods for detecting expected user intervention across multiple blades during a keyboard, video, and mouse (KVM) session
CN111857961A (en) Display card transparent transmission method, virtual desktop management system and computer equipment
CN107396185B (en) Upgrading method and system
CN106484442B (en) Server system and method for updating startup mapping file
CN110377550A (en) A kind of method and computer equipment for realizing display warm connection function
CN116775413A (en) PCIE topology scanning method, device, equipment and readable storage medium
CN113626278B (en) Hardware topology generation method and related equipment thereof
CN115630011A (en) Method and device for realizing I2C bus communication of master and slave equipment by using CPLD
CN112953788A (en) Network state detection method and device, BMC and storage medium
CN112241141B (en) Hardware configuration method, system, device and medium of PLC control system
CN115469964A (en) Method and device for determining mapping relation between block device and virtual machine disk character
CN109684134B (en) Method and server for rapidly deploying firmware settings among multiple devices
CN110502267A (en) Update method, device, equipment and the storage medium of appliance applications
JP2008009659A (en) Device connecting method, host equipment, and program for connecting device equipment
CN111176738A (en) Display card display method and system of UEFI mode and related components thereof
US20040078537A1 (en) De-fragmenting memory by re-booting based on usage
CN112181775B (en) Method and device for measuring power consumption of single-disk SSD PS4, computer equipment and storage medium
CN115129529A (en) Method, device and medium for detecting server startup fault
CN116827779A (en) Network card configuration method, device, equipment and readable storage medium

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
GR01 Patent grant