CN116466902A - Display switching method, device, server and medium - Google Patents

Display switching method, device, server and medium Download PDF

Info

Publication number
CN116466902A
CN116466902A CN202310445461.9A CN202310445461A CN116466902A CN 116466902 A CN116466902 A CN 116466902A CN 202310445461 A CN202310445461 A CN 202310445461A CN 116466902 A CN116466902 A CN 116466902A
Authority
CN
China
Prior art keywords
display
output
determining
card
independent
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
CN202310445461.9A
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.)
Inspur Power Commercial Systems Co Ltd
Original Assignee
Inspur Power Commercial Systems 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 Inspur Power Commercial Systems Co Ltd filed Critical Inspur Power Commercial Systems Co Ltd
Priority to CN202310445461.9A priority Critical patent/CN116466902A/en
Publication of CN116466902A publication Critical patent/CN116466902A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE 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/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The application discloses a display switching method, a display switching device, a server and a medium, and relates to the technical field of computers. The method is applied to a server provided with a video graphic array interface and an independent display card, and comprises the following steps: reading class codes stored in the main board, wherein the class codes are used for determining output display modes, and the output display modes are respectively output display through a video graphic array interface and output display through an independent display card; judging whether the class code is a preset value or not; the output display mode corresponding to the preset value is output display through a video graphic array interface; if yes, determining to output and display through a video graphic array interface; if not, determining to output and display through the independent display card. Because the class codes corresponding to the two output display modes are set, and the class codes reach the preset value and do not reach the preset value, the class codes correspond to one of the two output display modes, are compatible with the two display modes, and at the moment, the applicability and the use experience of the server are improved.

Description

Display switching method, device, server and medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a display switching method, a device, a server, and a medium.
Background
With the rapid development of computer technology, the ease of use of servers has received a great deal of attention. The existing server defaults to use an on-board video graphics array interface (Video Graphics Array, VGA interface) on the motherboard to connect the display device, and it should be noted that the resolution of the on-board VGA interface is limited, so that the on-board VGA interface cannot be applied to a scene requiring high resolution display. Because the server defaults to use the on-board VGA interface, the server cannot output and display from the additional independent display card, the applicability of the server cannot be improved at this time, and the use experience of a user is influenced.
In view of the above-mentioned problems, it is a problem to be solved by those skilled in the art to find out how to improve the applicability of the server and the sense of experience of use.
Disclosure of Invention
The application aims to provide a display switching method, a device, a server and a medium, which are used for improving the applicability of the server and the user experience.
In order to solve the above technical problems, the present application provides a display switching method applied to a server provided with a video graphics array interface and an independent video card, including:
reading class codes stored in the main board, wherein the class codes are used for determining output display modes, and the output display modes are respectively output display through a video graphic array interface and output display through an independent display card;
judging whether the class code is a preset value or not; the output display mode corresponding to the preset value is output display through a video graphic array interface;
if yes, determining to output and display through a video graphic array interface;
if not, determining to output and display through the independent display card.
Preferably, when the category code is a preset value, before determining to output the display through the video graphic array interface, the method further comprises:
the characterization is used for determining the position displayed through the output of the video graphic array interface through the hardware register and setting the position as a first set value.
Preferably, when the category code is not a preset value, before determining to output the display through the independent graphics card, the method further comprises:
and determining the position displayed by the output of the independent display card through the hardware register to be a second set value.
Preferably, after determining, by the hardware register, the characterization to output the displayed position through the video graphics array interface as the first set value, the method further comprises:
updating the category codes according to the first set value;
judging whether the updated class code is consistent with the read class code;
if yes, entering a step of determining output display through a video graphic array interface;
if not, returning to the step of reading the category codes stored in the main board.
Preferably, after determining, by the hardware register, the position displayed by the independent graphics card output as the second set value, the characterization further includes:
updating the category codes according to the second set value;
judging whether the updated class code is consistent with the read class code;
if yes, entering a step of determining output display through an independent display card;
if not, returning to the step of reading the category codes stored in the main board.
Preferably, the method further comprises:
the output display mode is set to be the priority of output display through the independent display card, which is higher than the priority of output display through the video graphic array interface.
Preferably, reading the category code stored in the main board includes:
and reading the category codes stored in the offset addresses corresponding to the electrified erasable programmable read-only memory of the main board through an intelligent platform management interface of the baseboard management controller.
In order to solve the above technical problem, the present application further provides a display switching device, which is applied to a server provided with a video graphics array interface and an independent graphics card, and the device includes:
the first reading module is used for reading the category codes stored in the main board, and the category codes are used for determining output display modes, wherein the output display modes are respectively output display through a video graphic array interface and output display through an independent display card;
the first judging module is used for judging whether the category codes are preset values or not; the output display mode corresponding to the preset value is output display through a video graphic array interface;
if yes, triggering a first determining module for determining output display through a video graphic array interface;
if not, triggering a second determining module for determining the output display through the independent display card.
Furthermore, the device comprises the following modules:
preferably, when the category code is a preset value, before determining to output the display through the video graphic array interface, the method further comprises:
and the first setting module is used for determining the representation to output the displayed position through the video graphic array interface through the hardware register and setting the position as a first set value.
Preferably, when the category code is not a preset value, before determining to output the display through the independent graphics card, the method further comprises:
and the second setting module is used for determining the position which is displayed through the output of the independent display card through the hardware register and setting the position as a second set value.
Preferably, after determining, by the hardware register, the characterization to output the displayed position through the video graphics array interface as the first set value, the method further comprises:
the first updating module is used for updating the category codes according to the first set value;
the second judging module is used for judging whether the updated category codes are consistent with the read category codes or not;
if yes, entering a step of determining output display through a video graphic array interface;
if not, returning to the step of reading the category codes stored in the main board.
Preferably, after determining, by the hardware register, the position displayed by the independent graphics card output as the second set value, the characterization further includes:
the second updating module is used for updating the category codes according to a second set value;
the third judging module is used for judging whether the updated category codes are consistent with the read category codes;
if yes, entering a step of determining output display through an independent display card;
if not, returning to the step of reading the category codes stored in the main board.
Preferably, the method further comprises:
the third setting module is used for setting the output display mode to be the priority of output display through the independent display card to be higher than the priority of output display through the video graphic array interface.
Preferably, reading the category code stored in the main board includes:
the second reading module is used for reading the category codes stored in the offset addresses corresponding to the electrified erasable programmable read-only memory of the main board through the intelligent platform management interface of the baseboard management controller.
In order to solve the above technical problem, the present application further provides a server, including:
a memory for storing a computer program;
and the processor is used for pointing to the computer program and realizing the steps of the display switching method.
In order to solve the above technical problem, the present application further provides a computer readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the steps of the above all display switching method are implemented.
The display switching method provided by the application is applied to a server provided with a video graphic array interface and an independent display card, and comprises the following steps: reading class codes stored in the main board, wherein the class codes are used for determining output display modes, and the output display modes are respectively output display through a video graphic array interface and output display through an independent display card; judging whether the class code is a preset value or not; the output display mode corresponding to the preset value is output display through a video graphic array interface; if yes, determining to output and display through a video graphic array interface; if not, determining to output and display through the independent display card. Because the class codes corresponding to the two output display modes are set, and the class codes reach the preset value and do not reach the preset value, the class codes correspond to one of the two output display modes, are compatible with the two display modes, and at the moment, the applicability and the use experience of the server are improved.
The application also provides a display switching device, a server and a medium, and the effects are the same as above.
Drawings
For a clearer description of the embodiments of the present application, the drawings that are needed in the embodiments will be briefly described, it being apparent that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a display switching method according to an embodiment of the present application;
fig. 2 is a flowchart of an application scenario of a display switching method provided in an embodiment of the present application;
fig. 3 is a structural diagram of a display switching device according to an embodiment of the present application;
fig. 4 is a device structure diagram of a server according to an embodiment of the present application.
Detailed Description
The following description of the technical solutions in the embodiments of the present application will be made clearly and completely with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, but not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments herein without making any inventive effort are intended to fall within the scope of the present application.
The core of the application is to provide a display switching method, a device, a server and a medium, which can improve the applicability of the server and the user experience.
In order to provide a better understanding of the present application, those skilled in the art will now make further details of the present application with reference to the drawings and detailed description.
With the rapid development of cloud computing technology and internet industry, servers are increasingly widely applied in practical application, especially in occasions such as large-scale data centers and cloud computing bases, tens of thousands or even hundreds of thousands of servers are often deployed in one data center, so that the management usability of the servers becomes the most concerned problem of server use managers.
After the existing server is started, an on-board video graphics array interface (Video Graphics Array, VGA interface) on a main board is used for connecting display equipment by default, and it is required to be noted that the resolution of the on-board VGA interface is limited, and the scene display requirement of high-resolution display requirement cannot be met when the on-board VGA interface is required, and an additional independent display card is required to be arranged as a display interface so as to be convenient for connecting the display equipment. As the server defaults to use an on-board VGA interface as an interface for connecting display equipment, the display can not be output and displayed from an external independent display card. Therefore, it is necessary to provide a device that can output from the external independent video card when the external independent video card is connected, and output from the on-board VGA interface when the external independent video card is not connected.
Fig. 1 is a flowchart of a display switching method provided in an embodiment of the present application, where, as shown in fig. 1, the display switching method is applied to a server provided with a video graphics array interface and an independent graphics card, and includes:
s10: reading class codes stored in a main board;
the class codes are used for determining output display modes, wherein the output display modes are respectively output display through a video graphic array interface and output display through an independent display card;
it should be noted that, reading the category code stored in the motherboard includes:
reading a class code (class code) stored in an offset address (offset address) corresponding to a charged erasable programmable read-only memory (Electrically Erasable Programmable Read Only Memory, EEPROM) of a main board through an intelligent platform management interface (Intelligent Platform Management Interface, IPMI interface) of a baseboard management controller (Baseboard Management Controller, BMC);
s11: judging whether the class code is a preset value or not;
the output display mode corresponding to the preset value is output display through a video graphic array interface;
if yes, go to step S12: determining to output a display through a video graphics array interface;
if not, go to step S13: and determining to output and display through the independent display card.
It should be noted that, the preset value of the category code may be a binary value, and it is known that when the preset value is binary, the preset value may be set to 1-bit data, specifically 1 or 0; the preset value may also be set to 2-bit data, specifically 00, 01, 10 or 11, where, for the number of bits of the preset value, and when the preset value is multiple bits, the specific expression data string may determine the implementation manner according to the specific implementation scenario, which is not limited in this embodiment. Setting a preset value by using 1-bit data, and outputting and displaying modes corresponding to the preset value: output display is expressed by 0 through the video graphic array interface, and the output display mode corresponding to the preset value is as follows: the output display is indicated at 1 through the video graphics array interface.
The application discloses a display switching method, which is applied to a server provided with a video graphic array interface and an independent display card through matching a BMC and a parallel flash memory (Parallel NOR Flash, PNOR), and comprises the following steps: reading class codes stored in the main board, wherein the class codes are used for determining output display modes, and the output display modes are respectively output display through a video graphic array interface and output display through an independent display card; judging whether the class code is a preset value or not; the output display mode corresponding to the preset value is output display through a video graphic array interface; if yes, determining to output and display through a video graphic array interface; if not, determining to output and display through the independent display card. Because the class codes corresponding to the two output display modes are set, and the class codes reach the preset value and do not reach the preset value, the class codes correspond to one of the two output display modes, are compatible with the two display modes, and at the moment, the applicability and the use experience of the server are improved.
On the basis of the above embodiment, as a more preferable embodiment, when the category code is a preset value, before determining to output the display through the video graphics array interface, it further includes:
the characterization determination is output by a Hardware register (hard Strap register) to the displayed position via the video graphics array interface as a first set point.
The specific representation mode of the first set value is as follows: bit [15] =1: select the Class Code for VGA device, expressed as: if the hardware register is a 32-bit register, then its 16 th is set to the corresponding binary 0 in a 32-length data string.
Wherein after determining, by the hardware register, the characterization to output the displayed position through the video graphics array interface as the first set value, further comprising:
updating the category codes according to the first set value;
judging whether the updated class code is consistent with the read class code;
if yes, entering a step of determining output display through a video graphic array interface;
if not, returning to the step of reading the category codes stored in the main board.
At this time, the accuracy of the display switching method is further improved, and the updated category codes are judged to be consistent with the read category codes, so that the category codes are accurately described if the updated category codes are consistent with the read category codes.
Similarly, when the category code is not a preset value, before determining to output the display through the independent graphics card, the method further includes:
and determining the position displayed by the output of the independent display card through the hardware register to be a second set value.
The specific representation mode of the second set value is as follows: bit [15] = 0:Select the Class Code for video device, expressed as: if the hardware register is a 32-bit register, then its 16 th is set to the corresponding binary 1 in a 32-length data string.
Wherein after determining, by the hardware register, the representation to be the second set value, the position displayed by the independent graphics card output, further comprising:
updating the category codes according to the second set value;
judging whether the updated class code is consistent with the read class code;
if yes, entering a step of determining output display through an independent display card;
if not, returning to the step of reading the category codes stored in the main board.
At this time, the accuracy of the display switching method is further improved, and the updated category codes are judged to be consistent with the read category codes, so that the category codes are accurately described if the updated category codes are consistent with the read category codes.
On the basis of the above embodiment, as a more preferable embodiment, further comprising:
the output display mode is set to be the priority of output display through the independent display card, which is higher than the priority of output display through the video graphic array interface. Because the VGA interface has low resolution, when two display devices with two output display modes are connected at the same time, the output display mode of high-resolution output display through the independent display card is preferentially used.
Fig. 2 is a flowchart of an application scenario of a display switching method provided in an embodiment of the present application, as shown in fig. 2, and the specific flow is as follows:
and integrating the driver codes corresponding to the external independent display card into the codes of the PNOR, so that the PNOR can normally drive the independent display card to work when the independent display card is used. After the server is electrified and the BMC is started, the BMC reads class codes in corresponding offset addresses in the EEPROM of the main board, if the class code value is 1, the class codes are output and displayed through the video graphic array interface, and the BMC further sets Bit 15 of a hardware register to be 1:Select the Class Code for VGA device; if the class code is 0, the BMC sets Bit [15] =0 of the hardware register through the output display of the independent graphics card: select the Class Code for video device (typically by indirectly setting Bit 15=1 of the SCU7C chip). After the server is started, if the display is output and displayed through the video graphic array interface through the BMC, the PNOR drives the display equipment to display after the driving code is started; if the BMC is set to output and display through the independent display card, the PNOR drives the display device to display after driving the codes.
The implementation logic and the implementation method of the IPMI command specifically include: when the IPMI command is set to use the external independent display card, the BMC sets Bit [15] = 0:Select the Class Code for video device of the hardware register; when IPMI command setting uses an on-board VGA interface, BMC sets Bit 15= 1:Select the Class Code for VGA device of the hardware register.
In the above embodiments, the display switching method is described in detail, and the application further provides a corresponding embodiment of the display switching device. It should be noted that the present application describes an embodiment of the device portion from two angles, one based on the angle of the functional module and the other based on the angle of the hardware.
Fig. 3 is a block diagram of a display switching device provided in an embodiment of the present application, and as shown in fig. 3, the present application further provides a display switching device, which is applied to a server provided with a video graphics array interface and an independent graphics card, and the device includes:
the first reading module 30 is configured to read a class code stored in the main board, where the class code is used to determine an output display mode, and the output display mode is respectively output display through a video graphic array interface and output display through an independent display card;
a first judging module 31, configured to judge whether the category code is a preset value; the output display mode corresponding to the preset value is output display through a video graphic array interface;
if yes, triggering a first determining module 32, for determining to output display through the video graphic array interface;
if not, a second determining module 33 is triggered, for determining that the display is output through the independent graphics card.
Wherein, the preset value of the category code can be a binary value, and it is known that when the preset value is binary, the preset value can be set as 1-bit data, specifically 1 or 0; the preset value may also be set to 2-bit data, specifically 00, 01, 10 or 11, where, for the number of bits of the preset value, and when the preset value is multiple bits, the specific expression data string may determine the implementation manner according to the specific implementation scenario, which is not limited in this embodiment. Setting a preset value by using 1-bit data, and outputting and displaying modes corresponding to the preset value: output display is expressed by 0 through the video graphic array interface, and the output display mode corresponding to the preset value is as follows: the output display is indicated at 1 through the video graphics array interface.
Furthermore, the device comprises the following modules:
preferably, when the category code is a preset value, before determining to output the display through the video graphic array interface, the method further comprises:
and the first setting module is used for determining the representation to output the displayed position through the video graphic array interface through the hardware register and setting the position as a first set value.
Preferably, when the category code is not a preset value, before determining to output the display through the independent graphics card, the method further comprises:
and the second setting module is used for determining the position which is displayed through the output of the independent display card through the hardware register and setting the position as a second set value.
Preferably, after determining, by the hardware register, the characterization to output the displayed position through the video graphics array interface as the first set value, the method further comprises:
the first updating module is used for updating the category codes according to the first set value;
the second judging module is used for judging whether the updated category codes are consistent with the read category codes or not;
if yes, entering a step of determining output display through a video graphic array interface;
if not, returning to the step of reading the category codes stored in the main board.
Preferably, after determining, by the hardware register, the position displayed by the independent graphics card output as the second set value, the characterization further includes:
the second updating module is used for updating the category codes according to a second set value;
the third judging module is used for judging whether the updated category codes are consistent with the read category codes;
if yes, entering a step of determining output display through an independent display card;
if not, returning to the step of reading the category codes stored in the main board.
Preferably, the method further comprises:
the third setting module is used for setting the output display mode to be the priority of output display through the independent display card to be higher than the priority of output display through the video graphic array interface.
Preferably, reading the category code stored in the main board includes:
the second reading module is used for reading the category codes stored in the offset addresses corresponding to the electrified erasable programmable read-only memory of the main board through the intelligent platform management interface of the baseboard management controller.
The external independent video card and the external independent video card are utilized to realize two output modes of the external independent video card and the external VGA interface compatible with the server by utilizing the cooperation of the BMC and the PNOR, the external independent video card can be output from the external independent video card when the external independent video card is connected, and the external independent video card is not connected, the external independent video card is output from the external independent VGA interface, so that great convenience is brought to a user, and the usability of the server is greatly increased.
Since the embodiments of the apparatus portion and the embodiments of the method portion correspond to each other, the embodiments of the apparatus portion are referred to the description of the embodiments of the method portion, and are not repeated herein.
The display switching method provided by the application is applied to a server provided with a video graphic array interface and an independent display card, and comprises the following steps: reading class codes stored in the main board, wherein the class codes are used for determining output display modes, and the output display modes are respectively output display through a video graphic array interface and output display through an independent display card; judging whether the class code is a preset value or not; the output display mode corresponding to the preset value is output display through a video graphic array interface; if yes, determining to output and display through a video graphic array interface; if not, determining to output and display through the independent display card. Because the class codes corresponding to the two output display modes are set, and the class codes reach the preset value and do not reach the preset value, the class codes correspond to one of the two output display modes, are compatible with the two display modes, and at the moment, the applicability and the use experience of the server are improved.
Fig. 4 is a device structure diagram of a server according to an embodiment of the present application, as shown in fig. 4, a server includes:
a memory 40 for storing a computer program;
a processor 41 for implementing the steps of the display switching method as mentioned in the above embodiments when executing a computer program.
The server provided in this embodiment may include, but is not limited to, a smart phone, a tablet computer, a notebook computer, a desktop computer, or the like.
Processor 41 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc., among others. The processor 41 may be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), programmable logic array (Programmable Logic Array, PLA). The processor 41 may also comprise a main processor, which is a processor for processing data in an awake state, also called central processor (Central Processing Unit, CPU), and a coprocessor; a coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 41 may be integrated with an image processor (Graphics Processing Unit, GPU) for taking care of rendering and rendering of the content that the display screen is required to display. In some embodiments, the processor 41 may also include an artificial intelligence (Artificial Intelligence, AI) processor for processing computing operations related to machine learning.
Memory 40 may include one or more computer-readable storage media, which may be non-transitory. Memory 40 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In this embodiment, the memory 40 is at least used for storing a computer program, which, when loaded and executed by the processor 41, is capable of implementing the relevant steps of the display switching method disclosed in any one of the foregoing embodiments. In addition, the resources stored in the memory 40 may also include an operating system, data, etc., and the storage manner may be transient storage or permanent storage. The operating system may include Windows, unix, linux, among others. The data may include, but is not limited to, a display switching method, and the like.
In some embodiments, the server may further include a display screen, an input-output interface, a communication interface, a power supply, and a communication bus.
Those skilled in the art will appreciate that the architecture shown in fig. 4 is not limiting and may include more or fewer components than illustrated.
The server provided in the embodiment of the present application includes a memory 40 and a processor 41, where the processor 41 can implement a display switching method when executing a program stored in the memory 40.
Finally, the present application also provides a corresponding embodiment of the computer readable storage medium. The computer-readable storage medium has stored thereon a computer program which, when executed by a processor, performs the steps as described in the method embodiments above.
It will be appreciated that the methods of the above embodiments, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored on a computer readable storage medium. With such understanding, the technical solution of the present application, or a part contributing to the prior art or all or part of the technical solution, may be embodied in the form of a software product stored in a storage medium, performing all or part of the steps of the method described in the various embodiments of the present application. And the aforementioned storage medium includes: a usb disk, a removable hard disk, a Read-Only Memory (ROM), a random-access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The display switching method, the device, the server and the medium provided by the application are described in detail. In the description, each embodiment is described in a progressive manner, and each embodiment is mainly described by the differences from other embodiments, so that the same similar parts among the embodiments are mutually referred. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section. It should be noted that it would be obvious to those skilled in the art that various improvements and modifications can be made to the present application without departing from the principles of the present application, and such improvements and modifications fall within the scope of the claims of the present application.
It should also be noted that in this specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.

Claims (10)

1. A display switching method, applied to a server provided with a video graphic array interface and an independent display card, comprising:
reading class codes stored in a main board, wherein the class codes are used for determining output display modes, and the output display modes are respectively output display through the video graphic array interface and output display through the independent display card;
judging whether the class code is a preset value or not; the output display mode corresponding to the preset value is output display through the video graphic array interface;
if yes, determining to output and display through the video graphic array interface;
if not, determining to output and display through the independent display card.
2. The display switching method according to claim 1, wherein when the category code is the preset value, before the determining to output a display through the video graphics array interface, further comprising:
and determining the position displayed through the video graphic array interface output by the characterization through a hardware register as a first set value.
3. The display switching method according to claim 1, wherein when the category code is not the preset value, before the determining to output the display through the independent graphics card, further comprising:
and determining the position displayed by the output of the independent display card through the hardware register to be a second set value.
4. The display switching method according to claim 2, further comprising, after the determining, by the hardware register, that the position displayed by the video graphics array interface is output, the position being the first set value:
updating the category codes according to the first set value;
judging whether the updated class code is consistent with the read class code;
if yes, entering the step of determining to output and display through the video graphic array interface;
if not, returning to the step of reading the category codes stored in the main board.
5. The display switching method according to claim 3, further comprising, after the determining, by the hardware register, the position displayed by the independent graphics card output, the position being a second set value:
updating the category code according to the second set value;
judging whether the updated class code is consistent with the read class code;
if yes, entering the step of determining to output and display through the independent display card;
if not, returning to the step of reading the category codes stored in the main board.
6. The display switching method according to claim 1, further comprising:
setting the output display mode to be the priority of the output display through the independent display card, wherein the priority of the output display through the independent display card is higher than the priority of the output display mode to be the priority of the output display through the video graphic array interface.
7. The display switching method according to claim 1, wherein the reading the category code stored in the main board includes:
and reading the category codes stored in the offset addresses corresponding to the electrified erasable programmable read-only memory of the main board through an intelligent platform management interface of the baseboard management controller.
8. A display switching device, applied to a server provided with a video graphic array interface and a separate graphic card, comprising:
the first reading module is used for reading category codes stored in the main board, and the category codes are used for determining output display modes, wherein the output display modes are respectively output display through the video graphic array interface and output display through the independent display card;
the first judging module is used for judging whether the category codes are preset values or not; the output display mode corresponding to the preset value is output display through the video graphic array interface;
if yes, triggering a first determining module for determining output display through the video graphic array interface;
and if not, triggering a second determining module for determining the output display through the independent display card.
9. A server, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the display switching method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the steps of the display switching method according to any one of claims 1 to 7.
CN202310445461.9A 2023-04-20 2023-04-20 Display switching method, device, server and medium Pending CN116466902A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310445461.9A CN116466902A (en) 2023-04-20 2023-04-20 Display switching method, device, server and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310445461.9A CN116466902A (en) 2023-04-20 2023-04-20 Display switching method, device, server and medium

Publications (1)

Publication Number Publication Date
CN116466902A true CN116466902A (en) 2023-07-21

Family

ID=87180459

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310445461.9A Pending CN116466902A (en) 2023-04-20 2023-04-20 Display switching method, device, server and medium

Country Status (1)

Country Link
CN (1) CN116466902A (en)

Similar Documents

Publication Publication Date Title
WO2022213832A1 (en) Computer device, virtualization acceleration device, remote control method and storage medium
US20160366239A1 (en) Systems and methods for enabling virtual keyboard-video-mouse for external graphics controllers
CN112506745B (en) Memory temperature reading method and device and computer readable storage medium
CN113961419B (en) Memory verification method and device, electronic equipment and storage medium
US10115375B2 (en) Systems and methods for enabling a systems management interface with an alternate frame buffer
US20100017588A1 (en) System, method, and computer program product for providing an extended capability to a system
CN113836462A (en) Page description file generation method, device, equipment and storage medium
CN116466902A (en) Display switching method, device, server and medium
CN111752623A (en) Display configuration method and device, electronic equipment and readable storage medium
CN114743586B (en) Mirror image storage implementation method and device of storage model and storage medium
CN114461142B (en) Method, system, device and medium for reading and writing Flash data
CN112564924B (en) Computer expansion card and block chain terminal equipment
CN111176738B (en) Display card display method and system of UEFI mode and related components thereof
CN111897582B (en) All-in-one machine Ethernet refreshing method and device, storage medium and all-in-one machine equipment
CN113010416A (en) Bank counter transaction automatic testing method and device
CN108196848B (en) Interface embedded display method and device, user terminal and readable storage medium
CN116841773B (en) Data interaction method and device, electronic equipment and storage medium
US10748245B1 (en) Scaling a fixed font used by a firmware interface
CN114442987B (en) Device control method, device, computer device, storage medium, and program product
CN111352357A (en) Robot control method and device and terminal equipment
CN116661951B (en) Mirror image file processing method and device, electronic equipment and storage medium
CN114924703B (en) Resolution and refresh rate switching method, device and medium
CN112540889B (en) Method, device, equipment and medium for adjusting hard disk starting sequence in user mode
CN111063387B (en) Method, device and equipment for testing performance of solid state disk and storage medium
US20220171726A1 (en) Systems and methods for management controller co-processor host to variable subsystem proxy

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