Method, device and equipment for switching multiple display cards under domestic platform and medium

After powering on the domestic platform, initialize the firmware and call the UEFI configuration interface to obtain the target graphics card configuration information set by the user, and determine whether it is consistent with the default graphics card configuration information. If it is inconsistent, restart the platform to switch configuration information, initialize the target graphics card and load its driver to complete the graphics card switching. It solves the problem of complex multi-graphics card switching process under existing domestic platforms, and achieves an intuitive and convenient user experience.

CN119987883APending Publication Date: 2025-05-13SHANDONG CHAOYUE DATA CONTROL ELECTRONICS CO LTD
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202510205713.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-24
Publication Date
2025-05-13

AI Technical Summary

Technical Problem

The switching process of multiple graphics cards under existing domestic platforms is complicated and it is difficult to achieve an intuitive and convenient user experience.

Method used

After powering on the domestic platform, initialize the firmware and call the UEFI configuration interface to obtain the target graphics card configuration information set by the user, and determine whether it is consistent with the default graphics card configuration information. If it is inconsistent, restart the platform to switch configuration information, initialize the target graphics card and load its driver to complete the graphics card switching.

Benefits of technology

It realizes the simple, intuitive and easy operation process of switching multi-graphics cards under domestic platforms, provides an excellent human-computer interactive interface, reduces the complexity of user operations, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119987883A_ABST
    Figure CN119987883A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of computers, and provides a method, a device and equipment for switching multiple display cards under a domestic platform and a medium. The method comprises the following steps: responding to power-on of a domestic platform, initializing firmware, and then calling a UEFI configuration interface of the domestic platform to obtain configuration information of a target graphics card set by a user; judging whether the configuration information of the target graphics card set by the user is consistent with the configuration information of the default graphics card or not; and in response to inconsistency of the configuration information of the two, restarting the domestic platform to switch the configuration information of the default graphics card into the configuration information of the target graphics card, then initializing the target graphics card, starting an operating system and loading a driver corresponding to the target graphics card to complete graphics card switching. According to the scheme, the user can select the display card to be switched more conveniently and visually according to needs, an excellent man-machine interaction interface is provided, the user does not need to understand very difficultly, and the method for switching the multiple display cards under the domestic platform, which is simpler, more visual and easier to operate, is provided for the user.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a method, device, equipment and medium for switching multiple graphics cards on a domestic platform. Background Art

[0002] As end users have higher and higher requirements for domestic platforms, domestic platforms need to provide users with a more intuitive and convenient experience. Human-computer interaction on domestic platforms, such as domestic servers, is becoming increasingly important.

[0003] Existing domestic platforms, such as Loongson, Feiteng, and Shenwei, can support switching of PCIE (Peripheral Component Interconnect Express) devices, but the UEFI configuration interface design of domestic platforms is relatively complex, which is difficult for ordinary users to understand and use. Especially for domestic platforms with multiple graphics cards, the graphics card switching process is complicated and requires users to have a high degree of understanding and use, which increases the complexity of human-computer interaction and makes it difficult to provide users with a more intuitive and convenient experience.

[0004] Therefore, there is an urgent need for a method for switching multiple graphics cards on a domestic platform that can provide users with a simpler, more intuitive and easier-to-operate method. Summary of the invention

[0005] In view of this, the present disclosure provides a method, device, equipment and medium for switching multiple graphics cards on a domestic platform.

[0006] According to a first aspect of the present invention, a method for switching multiple graphics cards on a domestic platform is provided, comprising: In response to the domestic platform being powered on, the firmware is initialized, and then the UEFI configuration interface of the domestic platform is called to obtain the configuration information of the target graphics card set by the user; Determine whether the configuration information of the target graphics card set by the user is consistent with the configuration information of the default graphics card; In response to the inconsistency between the configuration information of the two, the domestic platform is restarted to switch the configuration information of the default graphics card to the configuration information of the target graphics card, and then the target graphics card is initialized, the operating system is started and the driver corresponding to the target graphics card is loaded to complete the graphics card switching.

[0007] In some embodiments, the method further comprises: In response to the consistency of the configuration information of the two, the default graphics card is initialized, the operating system is started and the driver corresponding to the default graphics card is loaded to output the default graphics card for display.

[0008] In some embodiments, the step of loading the driver corresponding to the target graphics card includes: Get the high and low levels of the GPIO pins corresponding to the graphics card; In response to detecting that the high and low levels of the GPIO pin are in a second state different from the first state, a driver corresponding to the target graphics card is loaded according to the second state, wherein the first state corresponds to the default graphics card and the second state corresponds to the target graphics card.

[0009] In some embodiments, the step of loading the driver corresponding to the target graphics card further includes: Obtain the graphics card configuration information in the SMBIOS table or global variables through the central processing unit; In response to reading the configuration information of the target graphics card set by the user, a driver corresponding to the target graphics card is loaded.

[0010] In some embodiments, the step of initializing the target graphics card includes: Corresponding memory and interrupt resources are allocated to the target graphics card through the central processing unit, and a driver corresponding to the target graphics card is installed under the operating system.

[0011] In some embodiments, before the step of starting the operating system, the process includes: In response to the domestic platform entering the power-on self-test phase, the identification information of the initialized target graphics card is obtained through the central processing unit and output for display.

[0012] In some embodiments, the step of initializing the firmware includes: Initialize the processor, bridge chip, control chip and memory of the domestic platform.

[0013] According to a second aspect of the present invention, a device for switching multiple graphics cards on a domestic platform is provided, the device comprising: The first module is used to respond to the power-on of the domestic platform, initialize the firmware, and then call the UEFI configuration interface of the domestic platform to obtain the configuration information of the target graphics card set by the user; The second module is used to determine whether the configuration information of the target graphics card set by the user is consistent with the configuration information of the default graphics card; The third module is used to restart the domestic platform to switch the configuration information of the default graphics card to the configuration information of the target graphics card in response to the inconsistency of the configuration information of the two, and then initialize the target graphics card, start the operating system and load the driver corresponding to the target graphics card to complete the graphics card switching.

[0014] According to a third aspect of the present invention, an electronic device is also provided, which includes: at least one processor; and a memory, the memory storing a computer program that can be run on the processor, and when the processor executes the program, it executes the method of switching multiple graphics cards under the aforementioned domestic platform.

[0015] According to a fourth aspect of the present invention, a computer-readable storage medium is further provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method for switching multiple graphics cards under the aforementioned domestic platform is executed.

[0016] The above method for switching multiple graphics cards under a domestic platform is as follows: when the domestic platform is powered on, the firmware is initialized, and then the UEFI configuration interface of the domestic platform is called to obtain the configuration information of the target graphics card set by the user, and to determine whether the configuration information of the target graphics card set by the user is consistent with the configuration information of the default graphics card. If not, the domestic platform is restarted to switch the configuration information of the default graphics card to the configuration information of the target graphics card, and then the target graphics card is initialized, the operating system is started, and the corresponding driver of the target graphics card is loaded to complete the graphics card switching. The graphics card switching in the case of multiple graphics cards is smoothly realized through a complete set of graphics card switching processes inside the domestic device, so that users can more conveniently and intuitively select the graphics card they want to switch on demand, and provide an excellent human-computer interaction interface, which does not require users to understand it very hard, and is conducive to providing users with a simpler, more direct and easy-to-operate human-computer interaction experience.

[0017] In addition, the present invention also provides a device for switching multiple graphics cards under a domestic platform, an electronic device and a computer-readable storage medium, which can also achieve the above-mentioned technical effects and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other embodiments can be obtained based on these drawings without paying creative work.

[0019] Figure 1 A flowchart of a method for switching multiple graphics cards on a domestic platform provided for the first embodiment of the present invention; Figure 2 A flowchart of dual graphics card switching under a domestic platform provided for the first embodiment of the present invention; Figure 3 A schematic diagram of the structure of a device for switching multiple graphics cards on a domestic platform provided by another embodiment of the present invention; Figure 4 is an internal structure diagram of an electronic device in another embodiment of the present invention; Figure 5 This is a structural diagram of a computer-readable storage medium in another embodiment of the present invention. DETAILED DESCRIPTION

[0020] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the embodiments of the present invention are further described in detail below in combination with specific embodiments and with reference to the accompanying drawings.

[0021] It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are for distinguishing two non-identical entities with the same name or non-identical parameters. It can be seen that "first" and "second" are only for the convenience of expression and should not be understood as limitations on the embodiments of the present invention. The subsequent embodiments will not explain this one by one.

[0022] In one embodiment, please refer to Figure 1 As shown, the present invention provides a method 100 for switching multiple graphics cards on a domestic platform, specifically, comprising: Step 101, in response to the domestic platform being powered on, the firmware is initialized, and then the UEFI configuration interface of the domestic platform is called to obtain the configuration information of the target graphics card set by the user; Specifically, domestic platforms include domestic processors such as Loongson, Feiteng, and Shenwei. The UEFI (Unified Extensible Firmware Interface) configuration interface provides hardware configuration and management functions. Users can set them before the operating system starts. The UEFI configuration interface includes the following configurations: hardware configuration (such as central processing unit, graphics card, storage device, etc.), security settings (such as Secure Boot), boot sequence management, power management, system monitoring (such as temperature, fan speed, etc.), etc. In the initial preparation stage of the UEFI configuration interface, customized function development is carried out in the UEFI configuration interface, and a graphics card switching option is added to obtain support for the UEFI configuration interface for users to select different graphics card operations on demand. Users select the target graphics card in the UEFI configuration interface according to the specific conditions such as the use environment and load level of the PCIE device. After the user settings are completed, the system saves the user configuration. By adding a graphics card switching option and saving the user configuration in the UEFI configuration interface, it is more convenient and intuitive for users to select the target graphics card they want to switch on demand, providing users with an excellent human-computer interaction interface, and users can operate the graphics card switching selection process without having to understand it very difficultly. After the initial preparation stage of the UEFI configuration interface, after the domestic platform is powered on, the firmware is initialized first, including the processor, bridge chip, control chip, memory and other firmware resources of the domestic platform, to obtain the support of the firmware resources of the domestic platform, to ensure that the hardware and software resources of the domestic platform can work together, and then the UEFI configuration interface is called to obtain the relevant configuration information of the target graphics card set by the user, to prepare for the subsequent operating system startup and driver loading.

[0023] Step 102, determining whether the configuration information of the target graphics card set by the user is consistent with the configuration information of the default graphics card; Specifically, determine whether the configuration information of the target graphics card set by the user in the UEFI configuration interface is consistent with the current default graphics card, and confirm whether the target graphics card the user wants to set is consistent with the current default graphics card based on the judgment result. If they are consistent, then proceed directly according to the process of the default graphics card. Otherwise, it is necessary to follow the process of the target graphics card. Specifically, restart the domestic platform, change the configuration information of the current default graphics card according to the configuration information of the target graphics card set by the user, then initialize the target graphics card, and then start the operating system and load the corresponding driver of the target graphics card to complete the graphics card switching.

[0024] Step 103, in response to the inconsistency between the configuration information of the two, restart the domestic platform to switch the configuration information of the default graphics card to the configuration information of the target graphics card, then initialize the target graphics card, start the operating system and load the driver corresponding to the target graphics card to complete the graphics card switching.

[0025] Specifically, if the configuration information of the target graphics card set by the user is different from the default graphics card configuration information, the configuration information of the target graphics card set by the user is saved first, and then the domestic platform is restarted to obtain the pre-saved configuration information of the target graphics card, so as to switch the configuration information of the default graphics card to the configuration information of the target graphics card. Initialize the target graphics card, that is, execute the initialization code corresponding to the target graphics card according to the configuration information of the target graphics card set by the user, allocate corresponding memory, interrupt and other resources to the target graphics card through the central processing unit, and install the driver corresponding to the target graphics card under the operating system, and wait to be called at any time after being ready. Then start the operating system and load the corresponding driver. There are two ways to load the corresponding driver of the target graphics card after the operating system is started, namely hardware method and software method. The hardware method is to differentiate the pins in the early stage of UEFI execution in the hardware design stage through the pins of the processor, bridge chip, single-chip microcomputer, CPLD (Complex Programmable Logic Device, complex programmable logic device) according to the configuration information of the target graphics card set by the user. The high and low level changes of the GPIO (General Purpose Input / Output) pin indicate that the default graphics card of the operating system has been switched to the target graphics card. The hardware settings can be completed in the early stage of UEFI execution to ensure that the PCIE device selected by the user has been correctly configured before the operating system is loaded. It is suitable for scenarios with high real-time performance and reliability. The software method includes (1) transmitting the configuration information of the target graphics card selected by the user through SMBIOS, writing the configuration information of the target graphics card selected by the user into the SMBIOS table in the UEFI stage, and obtaining the configuration information of the target graphics card selected by the user by reading the SMBIOS table after the operating system is started. (2) Setting global variables, storing the configuration information of the target graphics card selected by the user in a certain global variable in the UEFI stage, and obtaining the configuration information of the target graphics card selected by the user by reading the global variable after the operating system is started. (3) Directly obtaining the display control option status, directly reading the display control option status in UEFI under the operating system, for example, obtaining the configuration information of the target graphics card selected by the user through the ACPI (Advanced Configuration and Power Interface) table or UEFI runtime service. The software method is easy to modify and expand, does not require additional hardware support, and uses existing UEFI and operating system interfaces. It has low development difficulty and is suitable for scenarios that are sensitive to flexibility and cost.

[0026] The above-mentioned method of switching multiple graphics cards under a domestic platform smoothly realizes graphics card switching under multiple graphics cards through a complete set of graphics card switching processes inside the domestic equipment, allowing users to more conveniently and intuitively select the graphics card they want to switch on demand, providing an excellent human-computer interaction interface without the need for users to understand it very difficultly, which is conducive to providing users with a simpler, more direct and easy-to-operate human-computer interaction experience.

[0027] According to some embodiments of the present invention, in response to the consistency of the configuration information of the two, the default graphics card is initialized, the operating system is started and the driver corresponding to the default graphics card is loaded to output the default graphics card for display. If it is determined that the configuration information of the target graphics card is consistent with that of the default graphics card, there is no need to switch according to the target graphics card, and the process of the default graphics card can be directly followed. The user operation process is greatly simplified, and ordinary users can also complete the graphics card switching operation, saving time and energy.

[0028] According to some embodiments of the present invention, the step of loading the driver corresponding to the target graphics card includes: obtaining the high and low levels of the GPIO pin corresponding to the graphics card; in response to detecting that the high and low levels of the GPIO pin are in a second state different from the first state, loading the driver corresponding to the target graphics card according to the second state, wherein the first state corresponds to the default graphics card and the second state corresponds to the target graphics card. A hardware method is provided to load the corresponding driver, complete the hardware setting in the early stage of UEFI execution, ensure that the target graphics card selected by the user is correctly configured before the operating system is loaded, and is suitable for scenarios with high real-time performance and reliability.

[0029] According to some embodiments of the present invention, the step of loading the driver corresponding to the target graphics card also includes: obtaining the graphics card configuration information in the SMBIOS table or global variables through the central processing unit; in response to reading the configuration information of the target graphics card set by the user, loading the driver corresponding to the target graphics card. A software method is provided to load the corresponding driver, which is easy to modify and expand, does not require additional hardware support, uses the existing UEFI and operating system interfaces, has a low development difficulty, and is suitable for scenarios that are sensitive to flexibility and cost.

[0030] According to some embodiments of the present invention, the step of initializing the target graphics card includes: allocating corresponding memory and interrupt resources to the target graphics card through a central processing unit, and installing a driver corresponding to the target graphics card under an operating system.

[0031] According to some embodiments of the present invention, before starting the operating system, the step includes: in response to the domestic platform entering the power-on self-test phase, obtaining the identification information of the initialized target graphics card through the central processing unit and outputting it for display.

[0032] Specifically, the Power-On Self-Test (POST) stage refers to the BIOS (Basic Input / Output System) or UEFI firmware running the POST program after the domestic platform is powered on, and performing a series of tests on the computer's hardware components, such as checking whether the memory, CPU (Central Processing Unit), hard disk, graphics card, keyboard and other devices are working properly. The relevant test information will be displayed on the screen through the graphics card output, so that the user can understand the hardware self-test status. During the power-on self-test stage, the relevant identification information of the target graphics card selected by the user will be displayed, such as displaying the startup logo of the target graphics card, display output of the UEFI configuration interface and other functions, providing users with a good human-computer interaction interface.

[0033] According to some embodiments of the present invention, the step of initializing the firmware includes: initializing the processor, bridge chip, control chip, and memory of the domestic platform.

[0034] In order to further understand the method of switching multiple graphics cards on a domestic platform of the present invention, the following is further described in detail in a specific embodiment. Take the dual graphics card scenario on a domestic platform as an example to illustrate. Please refer to Figure 2 , Figure 2 The flowchart of dual graphics card switching under the domestic platform is shown, and the specific process includes the hardware schematic design part, the firmware initialization part, whether to switch graphics cards, graphics card initialization, POST stage display, informing the system of user settings, and system processing steps.

[0035] (1) Hardware schematic design: According to the model of the graphics card used in this embodiment, the corresponding hardware schematic is designed, including the graphics card's PCIE channel, hardware clock, power supply and other peripheral circuits, to provide necessary hardware support for the implementation of subsequent related functions.

[0036] (2) The firmware initialization part performs necessary initialization on the processor, bridge chip, control chip, memory and other hardware under the domestic platform to obtain the support of the firmware resources of the domestic platform.

[0037] (3) Whether to switch the graphics card, the terminal user determines the graphics card settings according to the graphics card usage environment, load level and other specific situations, and adds a graphics card control option in the UEFI configuration interface to support the setting of whether different graphics cards output display. This part requires customized function development to obtain the support of the UEFI configuration interface. By adding the "graphics card control" option, the graphics card switching function support is completed. After the terminal user's settings are completed, if the terminal user settings are the same as the default graphics card, the subsequent processes will continue to be executed according to the process of the default graphics card. If the terminal user settings are different from the default graphics card, the restart is performed to obtain the graphics card set by the user, and then the subsequent initialization, display and other processes will continue to be executed according to the process of the default graphics card. The user settings in this part provide a basis for the graphics card output display in the subsequent POST display stage, and also provide a basis for informing the operating system of the user settings in the subsequent process.

[0038] (4) Graphics card initialization part: UEFI completes graphics card initialization. It initializes the graphics card according to the graphics card set by the user as described in the previous step, and allocates memory, interrupts and other resources necessary for the graphics card. Specifically, according to the graphics card selected by the user, the graphics card initialization code is executed accordingly to provide necessary support for subsequent graphics card display calls at any time. After providing the conditions for displaying the graphics card selected by the user, the driver corresponding to the graphics card set by the user is installed. After preparation is completed, it waits for the graphics card display call at any time.

[0039] (5) In the POST stage, the display part realizes the display output of the graphics card boot logo and UEFI configuration interface during the startup process of the domestic platform according to the graphics card selected by the user, providing users with a good human-computer interaction interface.

[0040] (6) Informing the operating system of the user settings includes hardware and software approaches. The hardware approach includes selecting the processor, bridge, microcontroller, CPLD and other pins according to the hardware schematic design part, and performing differentiated pin settings according to the graphics card selected by the user in the early stage of UEFI execution. The current graphics card is switched to the graphics card selected by the user through the high and low level changes of the GPIO pin, and the hardware settings are completed in the early stage of UEFI execution to ensure that the graphics card selected by the user is correctly configured before the operating system is loaded. The software approach includes using SMBIOS to transmit the configuration information of the graphics card selected by the user, writing the configuration information of the graphics card selected by the user into the SMBIOS table in the UEFI stage, and obtaining the configuration information of the graphics card selected by the user by reading the SMBIOS table after the operating system is started; or setting a global variable, storing the configuration information of the graphics card selected by the user in a global variable in the UEFI stage, and obtaining the configuration information of the graphics card selected by the user by reading the global variable after the operating system is started. Both approaches require UEFI cooperation. The hardware approach requires hardware cooperation, and this function is planned and implemented in the early stage of the project; the software approach does not require hardware cooperation, and the function of transmitting the setting information to the system can be realized even in the mass production stage.

[0041] (7) The processing part under the system is used for graphics card driver loading and graphics card display output. Graphics card driver loading is based on the data set by the user to inform the operating system and loads the corresponding graphics card driver based on it. It is necessary to add graphics card switching service through scripts under the operating system, and the PCI (Peripheral Component Interconnect) bus number, device number, function number and other graphics card related information assigned to the corresponding graphics card. Then, by modifying the xorg.conf file, calling the corresponding graphics card driver, the user-selected graphics card is displayed and output. The above-mentioned method of dual graphics card display switching under the domestic platform provides users with the best human-computer interaction experience while achieving the best performance of dual graphics card display switching under the domestic platform.

[0042] In some embodiments, please refer to Figure 3As shown, the present invention also provides a device 200 for switching multiple graphics cards under a domestic platform, the device comprising: a first module 201, for responding to power-on of a domestic platform, initializing firmware, and then calling the UEFI configuration interface of the domestic platform to obtain configuration information of a target graphics card set by a user; a second module 202, for determining whether the configuration information of the target graphics card set by the user is consistent with the configuration information of a default graphics card; a third module 203, for responding to inconsistency between the configuration information of the two, restarting the domestic platform to switch the configuration information of the default graphics card to the configuration information of the target graphics card, and then initializing the target graphics card, starting the operating system and loading the driver corresponding to the target graphics card to complete the graphics card switching.

[0043] It should be noted that each module in the device for switching multiple graphics cards under the above domestic platform can be implemented in whole or in part by software, hardware, or a combination thereof. The above modules can be embedded in or independent of the processor in the electronic device in the form of hardware, or can be stored in the memory of the electronic device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0044] According to another aspect of the present invention, an electronic device is provided. The electronic device may be a server. Figure 4 As shown. The electronic device includes a processor, a memory, a network interface and a database connected via a system bus. Among them, the processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the electronic device is used to store data. The network interface of the electronic device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, the method for switching multiple graphics cards under the domestic platform described above is implemented.

[0045] According to another aspect of the present invention, a computer readable storage medium is provided. Figure 5 As shown, a computer program is stored thereon, and when the computer program is executed by the processor, the method for switching multiple graphics cards under the domestic platform described above is implemented.

[0046] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0047] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0048] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A method for switching multiple graphics cards on a domestic platform, characterized in that: include: In response to the domestic platform being powered on, the firmware is initialized, and then the UEFI configuration interface of the domestic platform is called to obtain the configuration information of the target graphics card set by the user; Determine whether the configuration information of the target graphics card set by the user is consistent with the configuration information of the default graphics card; In response to the inconsistency between the configuration information of the two, the domestic platform is restarted to switch the configuration information of the default graphics card to the configuration information of the target graphics card, and then the target graphics card is initialized, the operating system is started and the driver corresponding to the target graphics card is loaded to complete the graphics card switching.

2. The method for switching multiple graphics cards under a domestic platform according to claim 1, characterized in that: The method further comprises: In response to the consistency of the configuration information of the two, the default graphics card is initialized, the operating system is started and the driver corresponding to the default graphics card is loaded to output the default graphics card for display.

3. The method for switching multiple graphics cards under a domestic platform according to claim 1, characterized in that: The step of loading the driver corresponding to the target graphics card includes: Get the high and low levels of the GPIO pins corresponding to the graphics card; In response to detecting that the high and low levels of the GPIO pin are in a second state different from the first state, a driver corresponding to the target graphics card is loaded according to the second state, wherein the first state corresponds to the default graphics card and the second state corresponds to the target graphics card.

4. The method for switching multiple graphics cards under a domestic platform according to claim 1, characterized in that: The step of loading the driver corresponding to the target graphics card also includes: Obtain the graphics card configuration information in the SMBIOS table or global variables through the central processing unit; In response to reading the configuration information of the target graphics card set by the user, a driver corresponding to the target graphics card is loaded.

5. The method for switching multiple graphics cards under a domestic platform according to claim 1, characterized in that: The step of initializing the target graphics card includes: Corresponding memory and interrupt resources are allocated to the target graphics card through the central processing unit, and a driver corresponding to the target graphics card is installed under the operating system.

6. The method for switching multiple graphics cards under a domestic platform according to claim 5, characterized in that: Before the step of starting the operating system, the following steps are included: In response to the domestic platform entering the power-on self-test phase, the identification information of the initialized target graphics card is obtained through the central processing unit and output for display.

7. The method for switching multiple graphics cards under a domestic platform according to claim 1, characterized in that: The step of initializing the firmware includes: Initialize the processor, bridge chip, control chip and memory of the domestic platform.

8. A device for switching multiple graphics cards on a domestic platform, characterized in that: The device comprises: The first module is used to initialize the firmware in response to the domestic platform being powered on, and then call the UEFI configuration interface of the domestic platform to obtain the configuration information of the target graphics card set by the user; The second module is used to determine whether the configuration information of the target graphics card set by the user is consistent with the configuration information of the default graphics card; The third module is used to restart the domestic platform to switch the configuration information of the default graphics card to the configuration information of the target graphics card in response to the inconsistency of the configuration information of the two, and then initialize the target graphics card, start the operating system and load the driver corresponding to the target graphics card to complete the graphics card switching.

9. An electronic device, characterized in that: include: at least one processor; as well as A memory storing a computer program executable in the processor, wherein the processor executes the method for switching multiple graphics cards under a domestic platform as described in any one of claims 1 to 7 when executing the program.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by the processor, the method for switching multiple graphics cards under a domestic platform as described in any one of claims 1-7 is performed.

Citation Information

Cited By

  • Method for switching multiple display cards by one key based on UEFI BIOS

    CN121478357A

  • One-click switching between multiple graphics cards based on UEFI BIOS

    CN121478357B

  • Method for setting a main output graphics card by a VGA arbiter module

    CN122507408A