CN111258672A - Method for switching display card and electronic equipment - Google Patents

Method for switching display card and electronic equipment Download PDF

Info

Publication number
CN111258672A
CN111258672A CN202010023325.7A CN202010023325A CN111258672A CN 111258672 A CN111258672 A CN 111258672A CN 202010023325 A CN202010023325 A CN 202010023325A CN 111258672 A CN111258672 A CN 111258672A
Authority
CN
China
Prior art keywords
target task
display
switching
gate circuit
logic gate
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.)
Withdrawn
Application number
CN202010023325.7A
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.)
Hefei Lianbao Information Technology Co Ltd
Original Assignee
Hefei Lianbao Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hefei Lianbao Information Technology Co Ltd filed Critical Hefei Lianbao Information Technology Co Ltd
Priority to CN202010023325.7A priority Critical patent/CN111258672A/en
Publication of CN111258672A publication Critical patent/CN111258672A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • 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)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The application discloses a method for switching display cards and electronic equipment, wherein the method comprises the following steps: acquiring a target task; freezing a display picture of the target task and sending a first switching signal to a logic gate circuit through a target communication line so that the logic gate circuit generates a first switching instruction when the calculation amount of the target task is larger than a first threshold value; and executing a first switching operation based on the first switching instruction so as to switch the processing mode of the display card to a first processing mode and cancel the frozen state of the display picture of the target task, wherein the first processing mode is a mode in which the target task is processed by a first display card in the plurality of display cards. The method for switching the display cards flexibly switches the processing modes of the independent display cards and the integrated display cards, and improves the display effect of the display pictures.

Description

Method for switching display card and electronic equipment
Technical Field
The present disclosure relates to the field of display card switching, and in particular, to a method for switching display cards and an electronic device.
Background
In the existing notebook computer, the design of the independent graphics card dGPU is usually included, and 3D data to be operated is transmitted to the independent graphics card dGPU through PCIE to be operated, and then transmitted back to the integrated graphics card iGPU to be displayed. Although the design can achieve the effect of saving power by not using the independent graphics card dGPU when 3D data is not used, the integrated graphics card iGPU can be displayed together only when the independent graphics card dGPU is required to wait for transmitting the 3D data to the independent graphics card dGPU through the PCIE and then transmitting the data to the integrated graphics card iGPU after the operation of the independent graphics card dGPU, so that the problem of poor display efficiency is caused.
Disclosure of Invention
The embodiment of the application aims to provide a method for switching display cards and electronic equipment, the method directly switches to an independent display card dGPU to output pictures, the independent display card dGPU is directly output to a display screen after operation is completed, and the integrated display card iGPU is not required to be sent back through PCIE, so that time difference of 3D data transmission is omitted, and the display effect of 3D pictures is improved.
In order to solve the technical problem, the embodiment of the application adopts the following technical scheme: a method for switching display cards comprises the following steps:
acquiring a target task;
freezing a display picture of the target task and sending a first switching signal to a logic gate circuit through a target communication line so that the logic gate circuit generates a first switching instruction when the calculation amount of the target task is larger than a first threshold value;
and executing a first switching operation based on the first switching instruction so as to switch the processing mode of the display card to a first processing mode and cancel the frozen state of the display picture of the target task, wherein the first processing mode is a mode in which the target task is processed by a first display card in the plurality of display cards.
Preferably, the freezing the display screen of the target task specifically includes:
under the condition that the calculation amount of the target task is larger than a first threshold value, a refreshing mode is executed through a central control board so as to freeze a display picture of the target task;
correspondingly, the canceling of the frozen state of the display screen of the target task specifically includes:
and after the switching to the first processing mode is determined, stopping executing the refreshing mode through the central control board so as to cancel the frozen state of the display screen of the target task.
Preferably, the sending the first switching signal to the logic gate circuit through the target communication line so that the logic gate circuit generates the first switching instruction further includes:
and calling an instruction code prestored in the BIOS, and generating the first switching signal according to a switching request sent by a first display card driver, wherein the switching request is generated based on the target task, and the instruction code is called by an ACPI driver.
Preferably, the method further comprises:
sending a second switching signal to the logic gate circuit through the BIOS if the operand of the target task is greater than a first threshold value, so that the logic gate circuit generates the first switching instruction based on the first switching signal and the second switching signal;
and executing a first switching operation based on the first switching instruction so as to switch the processing mode of the display card to a first processing mode.
Preferably, the sending the first switching signal to the logic gate circuit through the target communication line so that the logic gate circuit generates the first switching instruction includes:
sending the first switching signal to the logic gate circuit through the first communication line or the second communication line to cause the logic gate circuit to generate a first switching instruction.
Preferably, the method further comprises:
and sending the display picture of the target task acted and processed by the first video card to a display device, so that the display device displays the display picture of the target task acted and processed by the first video card.
Preferably, the method further comprises:
under the condition that the operand of the target task is not larger than a first threshold value, sending a third switching signal to the logic gate circuit through the BIOS so that the logic gate circuit generates a second switching instruction;
and executing a second switching operation based on the second switching instruction so as to switch the processing mode of the display card to a second processing mode, wherein the second processing mode is a mode of using a second display card to act on the plurality of display cards and process the target task.
Preferably, the method further comprises:
when it is determined that the logic gate circuit does not receive the first switching signal, a second switching operation is performed to switch to a second processing mode.
Preferably, the method further comprises:
and sending the display picture of the target task acted and processed by the second video card to a display device, so that the display device displays the display picture of the target task acted and processed by the second video card.
An embodiment of the present application further provides an electronic device, including:
the switching module is used for acquiring a target task; freezing a display picture of the target task and sending a first switching signal to a logic gate circuit through a target communication line so that the logic gate circuit generates a first switching instruction when the calculation amount of the target task is larger than a first threshold value;
and the processing module is used for executing a first switching operation based on the first switching instruction so as to switch the processing mode of the display card to a first processing mode and cancel the frozen state of the display picture of the target task, wherein the first processing mode is a mode in which the target task is processed by a first display card in the plurality of display cards.
The beneficial effects of the embodiment of the application are that: according to the method for switching the display cards, the picture is directly switched to the dGPU of the independent display card to be output, the picture is directly output to the display screen after the operation of the dGPU of the independent display card is completed, the picture is not required to be sent back to the iGPU of the integrated display card through PCIE, in addition, the display picture can be frozen in a short time through starting the self-refreshing function PSR of the display panel, a user cannot feel that the display picture is broken due to the fact that the display card is switched to different display cards, therefore, the time difference of 3D data transmission is omitted, and the display effect of the 3D picture is.
Drawings
FIG. 1 is a flowchart illustrating a method for switching display cards according to an embodiment of the present disclosure;
FIG. 2 is another flowchart of a method for switching display cards according to an embodiment of the present disclosure;
FIG. 3 is a flowchart illustrating a method for switching display cards according to an embodiment of the present disclosure;
FIG. 4 is a flowchart of an embodiment of a method for switching display cards according to the present application;
FIG. 5 is a flowchart of another embodiment of a method for switching display cards according to an embodiment of the present application;
fig. 6 is a block diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Various aspects and features of the present application are described herein with reference to the drawings.
It will be understood that various modifications may be made to the embodiments of the present application. Accordingly, the foregoing description should not be construed as limiting, but merely as exemplifications of embodiments. Those skilled in the art will envision other modifications within the scope and spirit of the application.
The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the application and, together with a general description of the application given above and the detailed description of the embodiments given below, serve to explain the principles of the application.
These and other characteristics of the present application will become apparent from the following description of preferred forms of embodiment, given as non-limiting examples, with reference to the attached drawings.
It should also be understood that, although the present application has been described with reference to some specific examples, a person of skill in the art shall certainly be able to achieve many other equivalent forms of application, having the characteristics as set forth in the claims and hence all coming within the field of protection defined thereby.
The above and other aspects, features and advantages of the present application will become more apparent in view of the following detailed description when taken in conjunction with the accompanying drawings.
Specific embodiments of the present application are described hereinafter with reference to the accompanying drawings; however, it is to be understood that the disclosed embodiments are merely exemplary of the application, which can be embodied in various forms. Well-known and/or repeated functions and constructions are not described in detail to avoid obscuring the application of unnecessary or unnecessary detail. Therefore, specific structural and functional details disclosed herein are not to be interpreted as limiting, but merely as a basis for the claims and as a representative basis for teaching one skilled in the art to variously employ the present application in virtually any appropriately detailed structure.
The specification may use the phrases "in one embodiment," "in another embodiment," "in yet another embodiment," or "in other embodiments," which may each refer to one or more of the same or different embodiments in accordance with the application.
According to the method for switching the display cards, the mode that the display cards are directly switched to the mode that the independent display cards dGPU output the images is adopted, the independent display cards dGPU are directly output to the display screen after the operation is completed, the time difference of 3D data transmission is omitted, and the display effect of the 3D images is improved. As shown in fig. 1, the method for switching display cards includes the following steps:
s1: acquiring a target task;
specifically, in the embodiment, the target task is a task to be processed, specifically, 2D image data, 3D image data, and the like. The target task is obtained through the integrated graphics card iGPU or the independent graphics card dGPU, for example, 2D image data to be processed is obtained through the integrated graphics card iGPU, or the independent graphics card dGPU is used for driving, detecting and obtaining the 3D image data with high operand to be processed.
S2: freezing a display picture of the target task and sending a first switching signal to a logic gate circuit through a target communication line so that the logic gate circuit generates a first switching instruction when the calculation amount of the target task is larger than a first threshold value;
specifically, in this embodiment, it is determined whether the obtained computation amount of the target task is greater than a first threshold, where the first threshold is a criterion for determining to select the display card to process the target task, when it is determined that the computation amount of the target task is greater than the first threshold, the independent display card dGPU is selected to process the target task, when it is determined that the computation amount of the target task is not greater than the first threshold, the integrated display card iGPU is selected to process the target task, for example, when the computation amount of the target task is greater than the first threshold, the target task is 3D image data, and when the computation amount of the target task is not greater than the first threshold, the target task is 2D image data. In the case where the amount of computation of the target task is greater than the first threshold value, that is, in the case where, for example, 3D image data of a high computation amount is acquired, the independent graphics card dGPU activates the self refresh function (PSR) of the display device so that the display screen of the target task is frozen in a short time and the user does not feel the display screen break caused by switching different graphics cards. When a display picture is in a frozen state, a first switching signal is sent to a logic gate circuit through a target communication line so that the logic gate circuit can generate a first switching instruction, the first switching signal is a signal for switching a processing mode of a display card to an independent display card dGPU, the logic gate circuit can be an OR gate, the first switching instruction is an instruction for selecting the independent display card dGPU to process a target task, and when the logic gate circuit receives the first switching signal, the first switching instruction for selecting the independent display card dGPU to process the target task is generated.
S3: and executing a first switching operation based on the first switching instruction so as to switch the processing mode of the display card to a first processing mode and cancel the frozen state of the display picture of the target task, wherein the first processing mode is a mode in which the target task is processed by a first display card in the plurality of display cards.
Specifically, in this embodiment, after the logic gate circuit selects the first switching instruction for processing the target task with the independent graphics card dGPU, the first switching operation is executed based on the first switching instruction, the first switching operation is an operation for selecting the independent graphics card dGPU to process the target task, after the first switching operation is executed, the processing mode of the graphics card is switched to the first processing mode, the first processing mode is a mode in which the plurality of graphics cards function as the first graphics card and process the target task, the first graphics card is the independent graphics card dGPU, and after the processing mode of the graphics card is switched to the first processing mode, the independent graphics card dGPU functions as the independent graphics card and processes the target task.
According to the method for switching the display cards, the mode that the independent display card dGPU processes the target task is directly switched, the display card does not need to be restarted due to the switching of the display card, the efficiency of switching the display card is improved, and before the display card is switched, the display picture is frozen in a short time by starting the self-refreshing function PSR of the display panel, so that a user cannot feel that the display picture is broken due to the fact that the display card is switched to different display cards, and the display effect of the 3D picture is improved.
In an embodiment of the present application, the freezing the display screen of the target task specifically includes:
under the condition that the calculation amount of the target task is larger than a first threshold value, a refreshing mode is executed through a central control board so as to freeze a display picture of the target task;
correspondingly, the canceling of the frozen state of the display screen of the target task specifically includes:
and after the switching to the first processing mode is determined, stopping executing the refreshing mode through the central control board so as to cancel the frozen state of the display screen of the target task.
Specifically, in this embodiment, when the computation amount of the target task is greater than the first threshold, that is, when the independent graphics card dGPU is selected to process the target task, before switching to the mode of operating and processing the target task with the independent graphics card dGPU, the independent graphics card dGPU notifies the central control board TCON on the built-in display through the I2C bus to enable the display panel to execute the refresh mode psr (panel Self refresh) so as to instantly freeze the display frame of the target task in a short time, and the user does not feel the display frame rupture due to switching to a different display card. Accordingly, when it is determined to switch to the mode of functioning as the stand-alone graphics card dppu and processing the target task, the central control board TCON on the built-in display is notified through the I2C bus to stop executing the refresh mode PSR of the display panel, so as to cancel the frozen state of the display screen of the target task. And under the condition that the user does not feel that the display picture is cracked due to the fact that different display cards are switched, the step of switching the display cards is completed, and the effect of seamlessly switching the display cards under the operating system is achieved.
In an embodiment of the present application, the sending the first switching signal to the logic gate circuit through the target communication line to enable the logic gate circuit to generate the first switching instruction further includes:
and calling an instruction code prestored in the BIOS, and generating the first switching signal according to a switching request sent by a first display card driver, wherein the switching request is generated based on the target task, and the instruction code is called by an ACPI driver.
Specifically, in this embodiment, in the case that the independent graphics card dGPU is selected to process the target task, according to the switching request sent by the independent graphics card dGPU driver, the independent graphics card dGPU driver notifies the ACPI driver of the operating system to call the ASL instruction code prestored in the BIOS to generate the first switching signal, for example, when the target task is 3D image data, the first graphics card driver sends the switching request to generate the first switching signal, and then sends the first switching signal to the logic gate circuit.
In one embodiment of the present application, as shown in fig. 2, the method further comprises:
s4: sending a second switching signal to the logic gate circuit through the BIOS if the operand of the target task is greater than a first threshold value, so that the logic gate circuit generates the first switching instruction based on the first switching signal and the second switching signal;
specifically, in this embodiment, when it is determined that the operand of the target task is greater than the first threshold value, when the independent graphics card dGPU is selected to process the target task, the second switching signal is directly sent to the logic gate circuit through the BIOS, where the second switching signal is a signal for switching the processing mode of the graphics card to the independent graphics card dGPU, and when the logic gate circuit receives the first switching signal and the second switching signal, the first switching instruction for selecting the independent graphics card dGPU to process the target task is generated, that is, the signal for switching the processing mode of the graphics card to the independent graphics card dGPU, which is sent by the BIOS in this embodiment, may be directly sent by the BIOS.
S5: and executing a first switching operation based on the first switching instruction so as to switch the processing mode of the display card to a first processing mode.
Specifically, in this embodiment, after the logic gate circuit generates the first switching instruction for selecting the independent graphics card dGPU to process the target task, the first switching operation is executed, the processing mode of the graphics card is switched to the first processing mode, and the first processing mode is a mode in which the plurality of graphics cards function as the first graphics card and process the target task, so that the independent graphics card dGPU functions as the target task and processes the target task.
In an embodiment of the present application, the sending the first switching signal to the logic gate circuit through the target communication line to enable the logic gate circuit to generate the first switching instruction specifically includes:
sending the first switching signal to the logic gate circuit through the first communication line or the second communication line to cause the logic gate circuit to generate a first switching instruction.
Specifically, in this embodiment, when the independent graphics card dGPU is selected to process the target task, the independent graphics card dGPU drives the ACPI driver notifying the operating system to call the ASL instruction code pre-stored in the BIOS, generates the first switching signal, and then sends the first switching signal to the logic gate circuit through the GPO interface of the first communication line or the SMI interface of the second communication line, so that the logic gate circuit generates the first switching instruction, and further switches to the mode in which the independent graphics card dGPU functions and processes the target task through the switch MUX.
In one embodiment of the present application, as shown in fig. 2, the method further comprises:
s6: and sending the display picture of the target task acted and processed by the first video card to a display device, so that the display device displays the display picture of the target task acted and processed by the first video card.
Specifically, in this embodiment, when the independent graphics card dGPU is selected to process the target task, after the switch MUX is switched to the mode in which the independent graphics card dGPU functions and processes the target task, the display frame of the target task that functions and processes with the independent graphics card dGPU is sent to the display device, and the display device may be a built-in LCD display, and the built-in LCD display may display the 3D display frame processed with the independent graphics card dGPU.
In one embodiment of the present application, as shown in fig. 3, the method further comprises:
s7: under the condition that the operand of the target task is not larger than a first threshold value, sending a third switching signal to the logic gate circuit through the BIOS so that the logic gate circuit generates a second switching instruction;
specifically, in this embodiment, it is determined whether the obtained computation amount of the target task is greater than a first threshold, and when it is determined that the computation amount of the target task is not greater than the first threshold, the integrated graphics card iGPU is selected to process the target task, for example, when the computation amount of the target task is not greater than the first threshold, the target task is 2D image data. When the operation amount of the target task is not greater than the first threshold, that is, for example, when the 2D image data is acquired, the mode of processing the target task with the integrated graphics card iGPU, which is operated in the power saving mode, may be adopted, and when the target task is selected to be processed with the integrated graphics card iGPU, the third switch signal is directly sent to the logic gate circuit through the BIOS, so that the logic gate circuit generates the second switch instruction, the third switch signal is a signal for switching the processing mode of the graphics card to the integrated graphics card iGPU, and when the logic gate circuit receives the third switch signal, the second switch instruction for selecting the integrated graphics card iGPU to process the target task is generated, that is, the embodiment may directly switch the processing mode of the graphics card to the signal of the integrated graphics card iGPU, which is sent by the BIOS.
S8: and executing a second switching operation based on the second switching instruction so as to switch the processing mode of the display card to a second processing mode, wherein the second processing mode is a mode of using a second display card to act on the plurality of display cards and process the target task.
Specifically, in this embodiment, after the logic gate circuit selects the second switching instruction for processing the target task by the integrated graphics card iGPU, the second switching operation is executed based on the second switching instruction, the second switching operation is an operation for selecting the integrated graphics card iGPU to process the target task, and after the second switching operation is executed, the processing mode of the graphics card is switched to the second processing mode, where the second processing mode is a mode in which the plurality of graphics cards function as the second graphics card and process the target task, the second graphics card is the integrated graphics card iGPU, and the processing mode of the graphics card is switched to the second processing mode, that is, the integrated graphics card iGPU functions and processes the target task.
In one embodiment of the present application, as shown in fig. 3, the method further comprises:
s9: when it is determined that the logic gate circuit does not receive the first switching signal, a second switching operation is performed to switch to a second processing mode.
Specifically, in this embodiment, when the logic gate circuit does not receive the first switching signal, that is, when the logic gate circuit does not receive the switching signal for selecting the independent graphics card dGPU to process the target task, it indicates that there is no target task with a high computation amount, and at this time, a mode of processing the target task with the integrated graphics card iGPU running in the power saving mode, that is, a mode of performing the second switching operation, and switching to a mode of processing the target task with the integrated graphics card iGPU may be adopted.
In one embodiment of the present application, as shown in fig. 3, the method further comprises:
s10: and sending the display picture of the target task acted and processed by the second video card to a display device, so that the display device displays the display picture of the target task acted and processed by the second video card.
Specifically, in this embodiment, when the integrated graphics card iGPU is selected to process the target task, after the mode is switched to the mode in which the integrated graphics card iGPU functions and processes the target task through the switch MUX, the display frame of the target task that functions and processes with the integrated graphics card iGPU is sent to the display device, and the display device may be a built-in LCD display, and the built-in LCD display may display the display frame processed by the integrated graphics card iGPU.
Fig. 4 and fig. 5 are flowcharts of specific embodiments of a method for switching display cards according to an embodiment of the present application. The method for switching display cards of the present application is further described with reference to fig. 4 and 5:
when the independent graphics card dGPU drives the 3D image data without detecting high computation amount, the switching process is not carried out, namely, when the 3D image data with high computation amount does not need to be processed, the target task is processed in a mode of acting and processing the target task by the integrated graphics card iGPU, namely, a power-saving mode, at the moment, a switching signal for switching to the mode of acting and processing the target task by the integrated graphics card iGPU is directly sent to an OR gate through a BIOS, the switching signal is a signal for switching the OR gate to 0, namely, when the OR gate receives the switching signal of 0, as the switching signal for switching to acting and processing the target task by the independent graphics card dGPU is not received, namely, the OR gate does not receive the signal for switching to 1, at the moment, the switching signal received by the OR gate is only 0, namely, the switching signal for acting and processing the target task by the integrated graphics card iGPU is switched to, at this time, the OR gate switches to the integrated graphics card iGPU mode, and outputs the instruction switched to 0 to the switch MUX, thereby completing switching to the integrated graphics card iGPU mode, and displaying the picture processed by the integrated graphics card iGPU mode through the built-in LCD display.
When the independent graphics card dGPU driver detects 3D image data with high operation amount, the independent graphics card dGPU driver informs the ACPI driver to enable the ACPI driver to call ASL codes in BIOS, controls an OR gate through a GPO interface OR an SMI interface, enables the signal of the OR gate to be switched to 1, and the independent graphics card dGPU driver informs the central control panel TCON to execute a refresh mode PSR (Panel Self refresh) through an I2C bus to freeze a display frame, 1 is a switching signal for switching to act on the independent graphics card dGPU and process a target task, when the OR gate receives the signal of 1, the integrated graphics card iGPU mode is switched to the independent graphics card dGPU mode, namely the OR gate is switched from 0 to 1, and outputs a command for switching to 1 to the switcher, and the independent graphics card dGPU driver informs the central control panel TCON to stop executing the refresh mode PSR (Panel refresh) through an I2C bus to switch to the independent graphics card dGPU mode, the picture processed in the independent graphics card dGPU mode is displayed through the built-in LCD display. When the OR gate receives a switching signal directly sent by the BIOS to switch to the stand-alone graphics card dppu mode for processing and processing the target task, i.e., a switching signal with a signal of 1, the OR gate also switches to 1 and outputs the instruction switched to 1 to the switch MUX. The OR gate selects to switch to 1, i.e. to the discrete graphics card dGPU mode, as long as it receives the switch signal to 1.
An embodiment of the present application further provides an electronic device, as shown in fig. 6, including:
the switching module is used for acquiring a target task; freezing a display picture of the target task and sending a first switching signal to a logic gate circuit through a target communication line so that the logic gate circuit generates a first switching instruction when the calculation amount of the target task is larger than a first threshold value;
specifically, in the embodiment, the target task is a task to be processed, specifically, 2D image data, 3D image data, and the like. The target task is obtained through the integrated graphics card iGPU or the independent graphics card dGPU, for example, 2D image data to be processed is obtained through the integrated graphics card iGPU, or the independent graphics card dGPU is used for driving, detecting and obtaining the 3D image data with high operand to be processed. Judging whether the operand of the acquired target task is larger than a first threshold value, wherein the first threshold value is a basis for judging whether a display card is selected to process the target task, when the operand of the target task is larger than the first threshold value, the independent display card dGPU is selected to process the target task, when the operand of the target task is not larger than the first threshold value, the integrated display card iGPU is selected to process the target task, for example, when the operand of the target task is larger than the first threshold value, the target task is 3D image data, and when the operand of the target task is not larger than the first threshold value, the target task is 2D image data. In the case where the amount of computation of the target task is greater than the first threshold value, that is, in the case where, for example, 3D image data of a high computation amount is acquired, the independent graphics card dGPU activates the self refresh function (PSR) of the display device so that the display screen of the target task is frozen in a short time and the user does not feel the display screen break caused by switching different graphics cards. When a display picture is in a frozen state, a first switching signal is sent to a logic gate circuit through a target communication line so that the logic gate circuit can generate a first switching instruction, the first switching signal is a signal for switching a processing mode of a display card to an independent display card dGPU, the logic gate circuit can be an OR gate, the first switching instruction is an instruction for selecting the independent display card dGPU to process a target task, and when the logic gate circuit receives the first switching signal, the first switching instruction for selecting the independent display card dGPU to process the target task is generated.
And the processing module is used for executing a first switching operation based on the first switching instruction so as to switch the processing mode of the display card to a first processing mode and cancel the frozen state of the display picture of the target task, wherein the first processing mode is a mode in which the target task is processed by a first display card in the plurality of display cards.
Specifically, in this embodiment, after the logic gate circuit selects the first switching instruction for processing the target task with the independent graphics card dGPU, the first switching operation is executed based on the first switching instruction, the first switching operation is an operation for selecting the independent graphics card dGPU to process the target task, after the first switching operation is executed, the processing mode of the graphics card is switched to the first processing mode, the first processing mode is a mode in which the plurality of graphics cards function as the first graphics card and process the target task, the first graphics card is the independent graphics card dGPU, and after the processing mode of the graphics card is switched to the first processing mode, the independent graphics card dGPU functions as the independent graphics card and processes the target task.
The beneficial effect that this application technical scheme brought: through directly switching to independent display card dGPU output picture, directly exporting to the display screen after independent display card dGPU operation is accomplished, need not loopback for integrated display card iGPU through PCIE to, and, self-refresh function PSR through starting display panel can make the display picture freeze in the short time, and the user can not feel to switch to the display picture that different display cards caused and break, thereby omits the time difference of 3D data transmission, promotes the display effect of 3D picture. The performance mode of the dGPU and the power-saving mode of the iGPU can be flexibly switched according to different target tasks, a user does not need to select or restart the display card, and the effect of intelligent switching is achieved.
The above embodiments are only exemplary embodiments of the present application, and are not intended to limit the present application, and the protection scope of the present application is defined by the claims. Various modifications and equivalents may be made by those skilled in the art within the spirit and scope of the present application and such modifications and equivalents should also be considered to be within the scope of the present application.

Claims (10)

1. A method for switching display cards is characterized by comprising the following steps:
acquiring a target task;
freezing a display picture of the target task and sending a first switching signal to a logic gate circuit through a target communication line so that the logic gate circuit generates a first switching instruction when the calculation amount of the target task is larger than a first threshold value;
and executing a first switching operation based on the first switching instruction so as to switch the processing mode of the display card to a first processing mode and cancel the frozen state of the display picture of the target task, wherein the first processing mode is a mode in which the target task is processed by a first display card in the plurality of display cards.
2. The method according to claim 1, wherein the freezing of the display screen of the target task is specifically:
under the condition that the calculation amount of the target task is larger than a first threshold value, a refreshing mode is executed through a central control board so as to freeze a display picture of the target task;
correspondingly, the canceling of the frozen state of the display screen of the target task specifically includes:
and after the switching to the first processing mode is determined, stopping executing the refreshing mode through the central control board so as to cancel the frozen state of the display screen of the target task.
3. The method of claim 1, wherein sending the first switching signal to the logic gate circuit over the target communication line to cause the logic gate circuit to generate the first switching instruction further comprises:
and calling an instruction code prestored in the BIOS, and generating the first switching signal according to a switching request sent by a first display card driver, wherein the switching request is generated based on the target task, and the instruction code is called by an ACPI driver.
4. The method of claim 3, further comprising:
sending a second switching signal to the logic gate circuit through the BIOS if the operand of the target task is greater than a first threshold value, so that the logic gate circuit generates the first switching instruction based on the first switching signal and the second switching signal;
and executing a first switching operation based on the first switching instruction so as to switch the processing mode of the display card to a first processing mode.
5. The method of claim 1, wherein sending the first switching signal to the logic gate circuit via the target communication line causes the logic gate circuit to generate a first switching command, specifically:
sending the first switching signal to the logic gate circuit through the first communication line or the second communication line to cause the logic gate circuit to generate a first switching instruction.
6. The method of claim 1, further comprising:
and sending the display picture of the target task acted and processed by the first video card to a display device, so that the display device displays the display picture of the target task acted and processed by the first video card.
7. The method of claim 1, further comprising:
under the condition that the operand of the target task is not larger than a first threshold value, sending a third switching signal to the logic gate circuit through the BIOS so that the logic gate circuit generates a second switching instruction;
and executing a second switching operation based on the second switching instruction so as to switch the processing mode of the display card to a second processing mode, wherein the second processing mode is a mode of using a second display card to act on the plurality of display cards and process the target task.
8. The method of claim 7, further comprising:
when it is determined that the logic gate circuit does not receive the first switching signal, a second switching operation is performed to switch to a second processing mode.
9. The method of claim 6, further comprising:
and sending the display picture of the target task acted and processed by the second video card to a display device, so that the display device displays the display picture of the target task acted and processed by the second video card.
10. An electronic device, comprising:
the switching module is used for acquiring a target task; freezing a display picture of the target task and sending a first switching signal to a logic gate circuit through a target communication line so that the logic gate circuit generates a first switching instruction when the calculation amount of the target task is larger than a first threshold value;
and the processing module is used for executing a first switching operation based on the first switching instruction so as to switch the processing mode of the display card to a first processing mode and cancel the frozen state of the display picture of the target task, wherein the first processing mode is a mode in which the target task is processed by a first display card in the plurality of display cards.
CN202010023325.7A 2020-01-09 2020-01-09 Method for switching display card and electronic equipment Withdrawn CN111258672A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010023325.7A CN111258672A (en) 2020-01-09 2020-01-09 Method for switching display card and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010023325.7A CN111258672A (en) 2020-01-09 2020-01-09 Method for switching display card and electronic equipment

Publications (1)

Publication Number Publication Date
CN111258672A true CN111258672A (en) 2020-06-09

Family

ID=70953942

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010023325.7A Withdrawn CN111258672A (en) 2020-01-09 2020-01-09 Method for switching display card and electronic equipment

Country Status (1)

Country Link
CN (1) CN111258672A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113836068A (en) * 2021-09-30 2021-12-24 北京金山云网络技术有限公司 PCIe display card control method and device, server and electronic equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113836068A (en) * 2021-09-30 2021-12-24 北京金山云网络技术有限公司 PCIe display card control method and device, server and electronic equipment
CN113836068B (en) * 2021-09-30 2024-04-26 北京金山云网络技术有限公司 PCIe display card control method and device, server and electronic equipment

Similar Documents

Publication Publication Date Title
CN111976482B (en) Double-screen interaction system and method for vehicle-mounted instrument screen and central control entertainment screen
KR102199436B1 (en) Terminal control method and terminal
US8233000B1 (en) System and method for switching between graphical processing units
TWI552136B (en) Techniques to control of self refresh display functionality
KR100985691B1 (en) Method, display, graphics system and computer system for power efficient displays
US7499043B2 (en) Switching of display refresh rates
US8259119B1 (en) System and method for switching between graphical processing units
JP5748761B2 (en) Method and apparatus for display output stutter
EP1755106A1 (en) Display apparatus and control method thereof
US11086635B2 (en) Electronic device, method for controlling electronic device, and program
US11665313B2 (en) Adaptive method and system for data flow control based on variable frame structure in video image processing system
KR20080047811A (en) Display system with image process apparatus, and display apparatus connected to image process apparatus and display method thereof
US20080082803A1 (en) Saving/Restoring Task State Data From/To Device Controller Host Interface Upon Command From Host Processor To Handle Task Interruptions
CN111667791B (en) Display screen driving circuit, method, electronic device and storage medium
CN111258672A (en) Method for switching display card and electronic equipment
CN116635929A (en) Performing asynchronous memory clock changes on a multi-display system
CN111833809B (en) Display screen control method and device
EP3926443A1 (en) Display control apparatus, computing device, processing unit and corresponding methods and computer programs
KR100429880B1 (en) Circuit and method for controlling LCD frame ratio and LCD system having the same
US20130162682A1 (en) Vertical scan panel with conversion mode capability
CN109300446A (en) Guard method, display panel and the computer readable storage medium of display panel
US20240046852A1 (en) Image processing method and display device
CN218547960U (en) Power management device and power management system
CN209947398U (en) Driving circuit of display panel and display device
US10522097B2 (en) Method and device for displaying image on liquid crystal panel

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
WW01 Invention patent application withdrawn after publication

Application publication date: 20200609

WW01 Invention patent application withdrawn after publication