Display card switching method and related equipment
By setting the pin state of the graphics card and switching the graphics card with I2C bus, the problem of poor switching of the multiplexer is solved, and the reliable switching and cost reduction of the graphics card is achieved, which improves the user experience.
Patent Information
- Application Number
- CN202310544121.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-12
- Publication Date
- 2024-11-12
AI Technical Summary
The reliability of the multiplexer switch is poor, resulting in the failure of the graphics card's working mode switching and increasing the hardware cost.
By setting the pin state of the graphics card, the graphics card is switched without the need to use a multiplexer switch. Use the I2C bus to switch the display to self-refresh mode, and set multiple preset pins of the graphics card to high-impedance state to realize the graphics card. Reliable switching.
It improves the reliability of graphics card switching, reduces hardware costs, and improves the user experience without affecting the display screen.
Smart Images

Figure CN118939589A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of intelligent terminal technology, and in particular to a graphics card switching method and related equipment. Background Art
[0002] With the development of computer technology, smart terminals such as personal computers and servers are equipped with different types of graphics cards, such as independent graphics cards and integrated graphics cards. Graphics cards usually include multiple working modes, such as independent graphics output mode, integrated graphics output mode and mixed output mode. Smart terminals can switch the graphics card through a multiplexer (MUX) switch to set the working mode of the graphics card. However, the reliability of the multiplexer switch is poor, which easily leads to the failure of switching the working mode of the graphics card. Summary of the invention
[0003] In view of the above, it is necessary to provide a graphics card switching method and related equipment to solve the problem that the reliability of the multiplexer switch is poor and easily leads to the failure of the graphics card working mode switching.
[0004] In a first aspect, the present application provides a graphics card switching method, which is applied to an electronic device, the method comprising: responding to a graphics card switching instruction, switching the display screen of the electronic device to a self-refresh mode; controlling a first graphics card currently used by the electronic device to stop image rendering, and setting multiple preset pins of the first graphics card to a high-impedance state, the multiple preset pins including a main link pin, an auxiliary channel pin, and a hot plug detection pin; switching to a second graphics card of the electronic device for image rendering.
[0005] Based on the above technical solution, the graphics card is switched by setting the pin status of the graphics card, without the need for a multiplexer switch, thereby ensuring the reliability of graphics card switching and reducing the hardware cost of the device.
[0006] In one possible implementation, in response to a graphics card switching instruction, switching the display screen of the electronic device to a self-refresh mode includes: responding to the graphics card switching instruction, initializing an I2C bus of the electronic device, and obtaining an I2C address of the display screen; sending an I2C start signal to the I2C bus, and controlling the I2C bus to perform I2C communication with the display screen; based on the I2C address, generating and sending self-refresh setting data to the display screen, and controlling the display screen to switch to the self-refresh mode.
[0007] Based on the above technical solution, the display screen is switched to the self-refresh mode through the I2C bus. During the display switching process, the display screen continues to display the picture and avoids a black screen, thereby effectively improving the user experience.
[0008] In a possible implementation, the initializing the I2C bus of the electronic device and obtaining the I2C address of the display screen includes: confirming that the serial data SDA signal line and the serial clock SCL signal line of the I2C bus are connected to corresponding pins; configuring the parameters of the I2C bus and obtaining the I2C address of the display screen.
[0009] Based on the above technical solution, by acquiring the I2C address of the display screen, the self-refresh mode setting data can be accurately sent to the display screen, thereby quickly entering the self-refresh state.
[0010] In a possible implementation, the sending of an I2C start signal to the I2C bus to control the I2C bus to perform I2C communication with the display screen includes: generating the I2C start signal by pulling the SDA signal line from a high level to a low level and keeping the SCL signal line at a high level; the display screen detects a level change of the I2C bus, and when it is detected that the SDA signal line of the I2C bus is pulled from a high level to a low level and the SCL signal line is at a high level, identifies the I2C start signal, and determines that the I2C communication transmission starts.
[0011] Based on the above technical solution, by controlling the I2C bus to perform I2C communication with the display screen, the self-refresh mode setting data can be quickly sent to the display screen, thereby improving the switching efficiency of the self-refresh mode.
[0012] In one possible implementation, generating and sending self-refresh setting data to a display screen includes: setting the communication mode of the I2C bus to a write mode, determining the data format and content of the self-refresh setting data, and based on the I2C address of the display screen, sending the self-refresh setting data to the display screen, and controlling the display screen to switch to the self-refresh mode.
[0013] Based on the above technical solution, by setting the communication mode of the I2C bus and the data format and content of the self-refresh setting data, it can be ensured that the self-refresh setting data can instruct the display screen to switch to the self-refresh mode, effectively improving the accuracy of the mode switching.
[0014] In one possible implementation, setting multiple preset pins of the first graphics card to a high impedance state includes: setting the multiple preset pins to an output mode, and disabling a pull-up resistor or a pull-down resistor in each preset pin to set the multiple preset pins to a high impedance state.
[0015] Based on the above technical solution, by disabling the pull-up resistor or the pull-down resistor in the pin, the pin can be simply and effectively set to a high-impedance state, thereby improving the setting efficiency of the high-impedance state.
[0016] In a possible implementation, setting the plurality of preset pins of the first graphics card to a high impedance state includes: controlling the input / output state of each preset pin through a tri-state buffer or a switch so that the plurality of preset pins are in a high impedance state.
[0017] Based on the above technical solution, the pin can be accurately set to a high-impedance state through a three-state buffer or a switch, thereby improving the accuracy of the high-impedance state setting.
[0018] In a possible implementation manner, the method further includes: controlling the display screen to exit the self-refresh mode.
[0019] Based on the above technical solution, after the graphics card is switched, the display screen is controlled to exit the self-refresh mode, and the screen is rendered and output through the switched graphics card to ensure the update of the display screen.
[0020] In a possible implementation, when the first graphics card is an integrated graphics card, the second graphics card is an independent graphics card; when the first graphics card is an independent graphics card, the second graphics card is an integrated graphics card.
[0021] Based on the above technical solution, the electronic device can switch between the integrated graphics card and the independent graphics card, can reduce the system power consumption when necessary, and can perform high-performance graphics rendering when necessary to optimize the display effect.
[0022] In one possible implementation, the first graphics card is an integrated graphics card, and the second graphics card is an independent graphics card, and the method further includes: detecting in real time the graphics card currently used by the electronic device and the preset scenario in which it is located; if it is detected that the electronic device is currently using the first graphics card and is in a high-performance scenario, generating the graphics card switching instruction; or if it is detected that the electronic device is currently using the second graphics card and is in a low-performance scenario, generating the graphics card switching instruction.
[0023] Based on the above technical solution, the graphics card can be automatically switched when the electronic device is in different scenarios, so that the working state of the graphics card matches the usage scenario.
[0024] In a possible implementation, the first graphics card is an integrated graphics card, and the second graphics card is an independent graphics card, and the method further includes: determining whether the loss of the output signal of the second graphics card is greater than or equal to a preset value; if the loss of the output signal of the second graphics card is greater than or equal to the preset value, turning on the signal repeater; or if the loss of the output signal of the second graphics card is less than the preset value, switching to the second graphics card of the electronic device for image rendering.
[0025] Based on the above technical solution, when using an independent graphics card, if the output signal loss of the independent graphics card is high, the signal is enhanced through a signal repeater to ensure normal transmission of the signal between the graphics card and the display screen.
[0026] In a possible implementation, turning on the signal repeater includes: setting an enable pin of the signal repeater to a high level to turn on the signal repeater and activate a signal enhancement function of the signal repeater.
[0027] Based on the above technical solution, the signal repeater can be quickly turned on or off by controlling the level state of the enable pin of the signal repeater.
[0028] In one possible implementation, the first graphics card is an independent graphics card, and the second graphics card is an integrated graphics card. The method further includes: determining whether a loss of an output signal of the second graphics card is greater than or equal to a preset value; if the loss of the output signal of the second graphics card is greater than or equal to the preset value, turning off the signal repeater; or if the loss of the output signal of the second graphics card is less than the preset value, switching to the second graphics card of the electronic device for image rendering.
[0029] Based on the above technical solution, when using an integrated graphics card, if the loss of the output signal of the integrated graphics card is high, the signal repeater is turned off to prevent other lines from interfering with the transmission of the output signal of the integrated graphics card.
[0030] In a possible implementation, shutting down the signal repeater includes: setting an enable pin of the signal repeater to a low level to shut down the signal repeater, thereby shutting down a signal enhancement function of the signal repeater.
[0031] Based on the above technical solution, the signal repeater can be quickly turned on or off by controlling the level state of the enable pin of the signal repeater.
[0032] In a second aspect, the present application provides an electronic device, comprising a memory and a processor: wherein the memory is used to store program instructions; the processor is used to read and execute the program instructions stored in the memory, and when the program instructions are executed by the processor, the electronic device executes the above-mentioned graphics card switching method.
[0033] In a third aspect, the present application provides a chip coupled to a memory in an electronic device, wherein the chip is used to control the electronic device to execute the above-mentioned graphics card switching method.
[0034] In a fourth aspect, the present application provides a computer storage medium storing program instructions, which, when executed on an electronic device, enables the electronic device to execute the above-mentioned graphics card switching method.
[0035] In addition, the technical effects brought about by the second to fourth aspects can be found in the descriptions related to the methods of each design in the above method part, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Figure 1 This is a pin diagram of a graphics card provided in one embodiment of the present application.
[0037] Figure 2 This is an architecture diagram of a graphics card switching system using a multiplexer switch provided in one embodiment of the present application.
[0038] Figure 3 It is a software architecture diagram of an electronic device provided in one embodiment of the present application.
[0039] Figure 4 This is an architecture diagram of a graphics card switching system provided in one embodiment of the present application.
[0040] Figure 5 This is a flowchart of a graphics card switching method provided in one embodiment of the present application.
[0041] Figure 6 It is a schematic diagram of the interaction model of the ePD signal provided in one embodiment of the present application.
[0042] Figure 7 This is a schematic diagram of the data interaction process of the ePD interface provided in one embodiment of the present application.
[0043] Figure 8 This is a flowchart of switching a display screen to a self-refresh mode provided by an embodiment of the present application.
[0044] Fig. 9 This is an architecture diagram of a graphics card switching system provided in another embodiment of the present application.
[0045] Fig.10 This is a flowchart of a graphics card switching method provided by another embodiment of the present application.
[0046] Fig.11 This is a pin diagram of a signal repeater provided in one embodiment of the present application.
[0047] Fig.12 This is a flowchart of a graphics card switching method provided by another embodiment of the present application.
[0048] Fig.13 This is a flowchart of a graphics card switching method provided by another embodiment of the present application.
[0049] Fig.14 This is a flowchart of a graphics card switching method provided by another embodiment of the present application.
[0050] Fig.15 This is a flowchart of a graphics card switching method provided by another embodiment of the present application.
[0051] Fig.16 This is a hardware architecture diagram of an electronic device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0052] The terms "first" and "second" involved in the embodiments of the present application are only used for descriptive purposes and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a concrete way.
[0053] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those generally understood by technicians in the technical field in this application. The terms used in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application. It should be understood that, unless otherwise specified in this application, " / " means or. For example, A / B can represent A or B. "And / or" in this application is only a description of the association relationship of associated objects, indicating that three relationships can exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. "At least one" means one or more. "Multiple" means two or more than two. For example, at least one of a, b or c can represent: a, b, c, a and b, a and c, b and c, a, b and c seven situations.
[0054] In the absence of conflict, the following embodiments and features of the embodiments may be combined with each other.
[0055] With the development of computer technology, smart terminals such as personal computers and servers are equipped with different types of graphics cards, such as independent graphics cards and integrated graphics cards. Graphics cards usually include multiple working modes, such as independent graphics output mode, integrated graphics output mode and mixed output mode, forming a dual-display three-mode architecture of smart terminals. Smart terminals can switch the graphics card through a multiplexer switch to set the working mode of the graphics card. However, the reliability of the multiplexer switch is poor, which easily leads to the failure of the graphics card switching. At the same time, the cost of the multiplexer switch is high, which increases the hardware cost of the smart terminal.
[0056] In order to avoid the failure of graphics card switching due to poor reliability of the multiplexer switch when switching graphics cards, the embodiment of the present application provides a graphics card switching method, which switches graphics cards by setting the pin state of the graphics card without using a multiplexer switch, thereby ensuring the reliability of graphics card switching and reducing the hardware cost of the device. The detailed process of the graphics card switching method can be referred to the description in each embodiment below.
[0057] In order to better understand the graphics card switching method provided in the embodiment of the present application, Figure 1 , Figure 2 The application scenario of the graphics card switching method provided in the embodiment of the present application is described.
[0058] See also Figure 1 As shown, it is a pin diagram of a graphics card provided in an embodiment of the present application. The pins of the graphics card 20 include, but are not limited to, a main link (Main Link, ML) pin 201, an auxiliary channel (Auxiliary Channel, AUX) pin 202, and a hot plug detection (Hot Plug Detect, HPD) pin 203. Among them, the main link pin 201 is used to transmit video signals and audio signals. The auxiliary channel pin 202 is used to transmit auxiliary data between the graphics card 20 and the display screen 194. For example, the auxiliary data may include control commands, display screen information, power management data, etc., and the display screen information may include resolution, refresh rate, etc. The hot plug detection pin 203 is used to detect the connection status of the display screen. For example, the connection status may be connected or disconnected.
[0059] See also Figure 2 , which is an architecture diagram of a graphics card switching system using a multiplexer switch provided in one embodiment of the present application. The graphics card switching system 200 includes an integrated graphics card 21, an independent graphics card 22, a multiplexer switch 23, a signal repeater (redriver) 24, a first display transmission interface 25, a display screen 194, a bus 26, a second display transmission interface 27 and an external connector (external connector) 28.
[0060] In one embodiment of the present application, the integrated graphics card 21 and the independent graphics card 22 are connected via a bus 26, wherein the bus 26 may be a PCIe (peripheral component interconnect express, a high-speed serial computer expansion bus standard) bus. The integrated graphics card 21 and the independent graphics card 22 are connected to the display screen 194 via a multiplexer switch 23, a signal repeater 24 and a first display transmission interface 25. The signal repeater 24 is used to enhance the signal and ensure the signal transmission quality of the link. The first display transmission interface 25 is an embedded display interface (embedded DisplayPort, eDP), and the display screen 194 is an electronic device ( Fig.14 The integrated graphics card 21 and the independent graphics card 22 can also be connected to the external connector 28 through the second display transmission interface 27, wherein the second display transmission interface 27 is a display interface (DisplayPort, DP) or a high-definition multimedia interface (High DefinitionMultimedia Interface, HDMI), and the external connector 28 can be an external display screen.
[0061] In one embodiment of the present application, the graphics card switching system performs graphics card switching based on the dynamic switching graphics processor mode SBIOS (System Basic Input / Output System) Mux Mode (graphics card switching mode). Among them, the graphics card switching mode allows the electronic device to switch between the integrated graphics card and the independent graphics card to achieve a balance between performance and power consumption. The multiplexer switch is used to control the switching between the integrated graphics card and the independent graphics card. For example, the multiplexer switch can choose to send the display output signal from the integrated graphics card or the independent graphics card to the display screen. In the graphics card switching mode of the electronic device, it is possible to switch between the integrated graphics card and the independent graphics card as required to achieve different performance and power consumption requirements. For example, when longer battery life is required, you can choose to use the integrated graphics card to reduce system power consumption; when higher performance graphics processing is required, you can choose to use the independent graphics card.
[0062] However, the reliability of the multiplexer switch is poor, and there is a certain probability that the switch between the integrated graphics card and the discrete graphics card cannot be completed, thus affecting the normal operation of the electronic device. For example, in scenarios that require high-performance hardware such as live broadcasting, games, and video playback, if it is not possible to switch to the discrete graphics card for graphics rendering in time, the device may become stuck, affecting the user experience; or, in low-power scenarios such as audio playback and web page display, if it is not possible to switch to the integrated graphics card for graphics rendering in time, the system power consumption may be too high, wasting device power. In addition, the cost of the multiplexer switch is relatively high, and the use of the multiplexer switch will also lead to an increase in the overall hardware cost of the electronic device.
[0063] See also Figure 3 As shown, it is a software architecture diagram of an electronic device provided in an embodiment of the present application. The software system of the electronic device can adopt a layered architecture. The embodiment of the present application takes the system architecture of a personal computer (PC) as an example to illustrate the software structure of the electronic device. The layered architecture can divide the software system of the electronic device into several layers, each layer has a clear role and division of labor, and the layers communicate with each other through software interfaces.
[0064] In some embodiments, the PC system can be divided into four layers, namely, application layer 101, system program layer 102, operating system layer 103 and hardware layer 104.
[0065] The application layer 101 may include application packages. For example, the application layer may include application packages such as camera, gallery, calendar, call, map, navigation, Bluetooth, music, video, short message, etc.
[0066] The system program layer 102 uses the extended instruction set provided by the operating system to implement various language processing programs, database management systems and other system programs. In addition, it also provides a wide variety of utility programs, such as connection assembly programs, library management programs, diagnostic troubleshooting programs, classification / merging programs, etc. for users to use.
[0067] The operating system layer 103 is the software layer closest to the hardware. It is responsible for the initial expansion and modification of computer hardware, and for completing many tasks such as resource scheduling and allocation, information access and protection, and coordination and control of concurrent activities. The operating system is the basis for the operation of other upper-layer software and provides strong support for designers of system programs such as compilers and database management systems.
[0068] The hardware layer 104 includes hardware devices, such as display screens, various I / O devices, and the like.
[0069] See also Figure 4The graphics card switching system 300 includes an integrated graphics card 31, an independent graphics card 32, a first display transmission interface 33, a display screen 194, a bus 34, a second display transmission interface 35 and an external connector 36.
[0070] In one embodiment of the present application, the integrated graphics card 31 and the independent graphics card 32 are connected via a bus 34, wherein the bus 34 may be a PCIe (peripheral component interconnect express) bus. The integrated graphics card 31 includes an eDP pin (embedded display interface pin) 310, and the integrated graphics card 31 sends the eDP signal to the display screen via the eDP pin 310. The integrated graphics card 31 and the independent graphics card 32 are connected to the display screen 194 via a first display transmission interface 33, wherein the first display transmission interface 33 is an embedded display interface, and the display screen 194 is an internal embedded display interface display of the electronic device 100. The integrated graphics card 31 and the independent graphics card 32 may also be connected to an external connector 36 via a second display transmission interface 35, wherein the second display transmission interface 35 is an embedded display interface or a high-definition multimedia interface, and the external connector 36 may be an external display screen. Compared to Figure 1 The graphics card switching system using a multiplexer switch in Figure 2 The graphics card switching system provided in the embodiment of the present application does not need to be connected to the display screen through a multiplexer switch, but is directly connected to the display screen through an internal embedded display interface, effectively avoiding the influence of the multiplexer switch on the graphics card switching. Specific examples can be described in conjunction with the following embodiments.
[0071] See also Figure 5 FIG. 1 is a flowchart of a graphics card switching method provided by an embodiment of the present application. The method is applied in an electronic device, and the graphics card switching method includes:
[0072] S101, in response to a graphics card switching instruction, switching the display screen to a self-refresh mode.
[0073] In one embodiment of the present application, the graphics card of the electronic device includes a first graphics card and a second graphics card, and the preset scene in which the electronic device is located includes a high-performance scene and a low-performance scene. Among them, when the first graphics card is an independent graphics card, the second graphics card is an integrated graphics card; when the first graphics card is an integrated graphics card, the second graphics card is an independent graphics card, and the embodiment of the present application is described based on the first graphics card being an integrated graphics card and the second graphics card being an independent graphics card. If the electronic device is in shooting mode, live broadcast mode, video playback mode, game mode, or preset application mode, the electronic device is in a high-performance scene. The preset application can be an application with high hardware performance requirements, such as image and video editing applications, mapping applications, etc. If the electronic device is in a mode other than the above-mentioned shooting mode, live broadcast mode, video playback mode, game mode, and preset application mode, such as audio playback mode, text display mode, etc., the electronic device is in a low-performance scene.
[0074] In one embodiment of the present application, the graphics card currently used by the electronic device and the preset scene in which it is located are detected in real time. If it is detected that the electronic device is currently using the first graphics card and is in a high-performance scene, a graphics card switching instruction is generated; or, if it is detected that the electronic device is currently using the second graphics card and is in a low-performance scene, a graphics card switching instruction is generated. If it is detected that the electronic device is currently using the first graphics card, that is, the integrated graphics card, and is in a low-performance scene, there is no need to switch the graphics card. If it is detected that the electronic device is currently using the second graphics card, that is, the independent graphics card, and is in a high-performance scene, there is no need to switch the graphics card.
[0075] In one embodiment of the present application, the display screen is switched to the self-refresh mode via an I2C (Inter-Integrated Circuit) bus. Specifically, the I2C address of the display screen and the self-refresh data of the display screen are pre-stored in the memory of the electronic device, and the I2C bus sends the self-refresh data to the display screen based on the I2C address to control the display screen to switch to the self-refresh mode.
[0076] S102, controlling a first graphics card currently used by the electronic device to stop image rendering, and setting a plurality of preset pins of the first graphics card to a high impedance state.
[0077] In one embodiment of the present application, controlling the first graphics card currently used by the electronic device to stop image rendering includes: controlling the first graphics card to stop image rendering, that is, stop outputting images, by selecting a stop image rendering option provided by a graphics card driver or a graphics control panel of the electronic device. At this time, the first graphics card will not display the received image data on the display screen.
[0078] In one embodiment of the present application, the plurality of preset pins of the first graphics card include, but are not limited to, a main link pin, an auxiliary channel pin, and a hot plug detection pin, and the main link pin, the auxiliary channel pin, and the hot plug detection pin all include a pull-up resistor or a pull-down resistor. The pull-up resistor is connected to the circuit of the corresponding pin, and the pin is connected to the power supply voltage. When the pin is not connected to an external circuit, the pin is pulled up to the level state of the power supply voltage to control the level state of the pin. The pull-down resistor is connected to the circuit of the corresponding pin, and the pin is connected to the ground (i.e., a low level). When the pin is not connected to an external circuit, the pin is pulled down to the level state of the ground to control the level state of the pin.
[0079] In one embodiment of the present application, setting multiple preset pins of the first graphics card to a high impedance state includes: setting the multiple preset pins to an output mode and disabling a pull-up resistor or a pull-down resistor in each preset pin, so that the multiple preset pins are in a high impedance state.
[0080] In one embodiment of the present application, a plurality of preset pins are set to output mode through a pinMode function, and a pull-up resistor or a pull-down resistor in the preset pin is disabled through a digitalWrite function. Specifically, setting a plurality of preset pins to output mode through a pinMode function includes: setting a pin number and a mode through a pinMode function, and setting a plurality of preset pins to output mode, for example, the number of the main link pin is 2, and the pinMode function is pinMode(2, OUTPUT).
[0081] Specifically, disabling the pull-up resistor or pull-down resistor in the pin by presetting the digitalWrite function includes: setting the level state of the pin by the digitalWrite function to disable the pull-up resistor or pull-down resistor in the pin, and the level state can be a high level or a low level. For example, the digitalWrite function is digitalWrite(2, HIGH). The function of the pull-up resistor and the pull-down resistor is to control the level state of the pin. After setting the input and output mode of the pin by the pinMode function and setting the level state of the pin by the digitalWrite function, the function of the pull-up resistor and the pull-down resistor can be replaced, thereby disabling the pull-up resistor or the pull-down resistor.
[0082] In another embodiment of the present application, the input / output state of the preset pin can be controlled by a tri-state buffer or a switch, so that multiple preset pins are in a high-impedance state. The tri-state buffer includes an input terminal, an output terminal and an enable terminal. The input terminal is used to input a data signal, the output terminal is used to output a data signal, and the enable terminal is a control pin used to control the working state of the tri-state buffer. When the control pin is at a high level, the tri-state buffer is in a working state and can transmit data from the input terminal. When the control pin is at a low level, the tri-state buffer is in a high-impedance state, and the output terminal is in a disconnected state, and no data signal is output to the outside. The multiple preset pins are connected to the embedded display interface through the tri-state buffer. By setting the control pin of the tri-state buffer to a low level, the tri-state buffer is in a high-impedance state, data cannot be transmitted, and the preset pin cannot input or output data, thereby setting multiple preset pins to a high-impedance state. Alternatively, the preset pin is disconnected from the circuit by controlling the switch, and the preset pin cannot input or output data, and multiple preset pins are set to a high-impedance state, so that the preset pin is disconnected from the embedded display interface.
[0083] S103, switching to a second graphics card of the electronic device to perform image rendering.
[0084] In one embodiment of the present application, when the first graphics card is in a working state, multiple preset pins corresponding to the second graphics card are in a high-impedance state. After the multiple preset pins corresponding to the first graphics card are set to a high-impedance state, the first graphics card cannot interact with the display screen through the eDP interface. At this time, the multiple preset pins corresponding to the second graphics card are switched from a high-impedance state to a normal state, so that the second graphics card is connected and interacts with the display screen through the embedded display interface, thereby switching to the second graphics card for image rendering.
[0085] In one embodiment of the present application, the pull-up resistor or the pull-down resistor in each preset pin can be enabled so that the pull-up resistor or the pull-down resistor can work normally and the level state of the pin can be controlled. In another embodiment of the present application, the control pin of the tri-state buffer is set to a high level so that the tri-state buffer is in a working state, so that the graphics card can transmit data to the embedded display interface eDP through the preset pin, thereby setting multiple preset pins to a normal state. Alternatively, the preset pin is controlled by a switch to establish a connection with the circuit, and multiple preset pins are set to a normal state.
[0086] In one embodiment of the present application, if the second graphics card is an independent graphics card, when the electronic device switches to the independent graphics card for image rendering, the eDP pin of the integrated graphics card is in a high-impedance state, and the independent graphics card interacts with the display screen through the eDP interface, DP interface or HDMI interface to transmit hot-plug signals, auxiliary signals, video data signals and image data signals. If the second graphics card is an integrated graphics card, when the electronic device switches to the integrated graphics card for image rendering, the eDP pin of the integrated graphics card is not in a high-impedance state, and the integrated graphics card is connected to the eDP interface through the eDP pin, and interacts with the display screen through the eDP interface to transmit hot-plug signals, auxiliary signals, video data signals and image data signals.
[0087] See also Figure 6 As shown, it is a schematic diagram of the interaction model of the ePD signal provided in one embodiment of the present application. In one embodiment of the present application, the eDP interface includes a transmitter and a receiver, the transmitter can be a graphics card, the receiver can be a display screen, and the transmitter and the receiver include a main link signal channel, an auxiliary signal channel and a hot plug detection signal channel. The main link signal channel is 4 pairs of unidirectional high-speed differential lines, and the bit rates supported by the main link signal channel are: low bit rate (LBR) 1.62Gbps, high bit rate (HBR) 2.7Gbps and 5.4Gbps, the auxiliary signal channel is a pair of bidirectional differential lines for transmitting control signals, and the hot plug signal channel is a pair of unidirectional differential lines for transmitting hot plug signals.
[0088] In one embodiment of the present application, after the graphics card is switched, the switched graphics card and the display screen are handshaked through the eDP interface. After the handshake connection, video data or image data is transmitted between the graphics card and the display screen, and the display screen displays the video or image. The transmitter source device and the receiver sink device of the eDP interface re-establish a handshake connection. The handshake connection process includes: hot plug detection, interactive display interface configuration data (DisplayPortConfiguration Data, DPCD) and extended display identification data (extended display identificationdata, EDID) through the auxiliary channel, determine the link configuration between the transmitter and the receiver, configure the link to work according to the eDP, and send video data through the main link channel. In one embodiment of the present application, DPCD is the eDP interface configuration data, which is used for link configuration, and EDID is the extended display identification data, which is used to store display parameters, such as resolution, refresh rate, color space, display ratio, manufacturer information, etc.
[0089] See also Figure 7As shown, it is a schematic diagram of the data interaction process of the ePD interface provided by an embodiment of the present application. Specifically, the data interaction process of the ePD interface includes: hot plug detection: S201, when the receiver is connected to the eDP interface, a hot plug detection signal is sent to the transmitter to indicate that the receiver has been connected; determine the video mode: S202, the display interface configuration data and the extended display identification data are interacted through the auxiliary signal channel AUX channel, the transmitter determines that the receiving end is connected to the eDP interface, requests to read DPCD, and determines the receiver performance; S203, the receiver returns the DPCD performance data to the transmitter; determine the eDP configuration: S204, the transmitter requests to read the extended display identification data EDID; S205, the receiver returns the extended display identification data EDID to the transmitter; determine the link configuration: S206, the transmitter writes the link configuration to the receiver based on the display interface configuration data DPCD; configure the link according to the eDP: S207, the transmitter performs the link work (link training), determine link parameters, which may include the number of channel lanes for transmitting signals, link rate, voltage swing, pre-emphasis, equalization, etc.; detect link status: S208, the transmitter requests to read the link status; S209, the receiver returns the link status to the transmitter, if the link status is stable, execute S210, if the link status is unstable, return to execute S207; S210, send video information through the main link channel, the transmitter sends the main data stream attribute (MSA) to the receiver; S211, the transmitter sends video data to the receiver. For example, it is possible to determine whether the link status is stable based on parameters such as the signal transmission error rate, signal quality, clock and frequency of the eDP link. If the signal transmission error rate is less than the preset error rate, and the signal noise is less than the preset noise, and the clock and frequency are synchronized, it is determined that the link status is stable; if the signal transmission error rate is greater than or equal to the preset error rate, and the signal noise is greater than or equal to the preset noise, and the clock and frequency are not synchronized, it is determined that the link status is unstable.
[0090] In one embodiment of the present application, the image rendering process includes an application processing stage, a geometry processing stage, a rasterization stage, and a pixel processing stage. The second graphics card transmits the rendered image data to the display memory of the display screen, and the display screen obtains the image data from the display memory and displays a frame interface based on the image data. Among them, the principle of image rendering by the graphics card is the same as the prior art, and the embodiment of the present application will not be repeated.
[0091] Furthermore, the graphics card switching method further includes: controlling the display screen to exit the self-refresh mode. Specifically, generating and sending self-refresh shutdown data to the display screen via the I2C bus to control the display screen to exit the self-refresh mode.
[0092] Through the above embodiment, the graphics card is switched by setting the pin status of the graphics card, without using a multiplexer switch, thereby ensuring the reliability of graphics card switching and reducing the hardware cost of the device.
[0093] In one embodiment of the present application, the detailed process of switching the display screen to the self-refresh mode via the I2C bus is as follows: Figure 8 As shown, specifically including:
[0094] S1011, initialize the I2C bus and obtain the I2C address of the display screen.
[0095] In one embodiment of the present application, the I2C bus is a serial communication protocol used for communication between a microcontroller and an external device. The microcontroller is connected to the display screen via the I2C bus.
[0096] In one embodiment of the present application, the electronic device confirms that the SDA (serial data line) signal line and the SCL (serial clock line) signal line of the I2C bus are connected to corresponding pins. Specifically, the display screen includes I2C interfaces corresponding to the SDA signal line and the SCL signal line, respectively, and the microcontroller sends the SDA signal and the SCL signal to the display screen through the I2C bus, and determines whether the display screen receives feedback signals for the SDA signal and the SCL signal. If the display screen receives feedback signals for the SDA signal and the SCL signal, it is determined that the SDA signal line and the SCL signal line of the I2C bus are connected to the I2C interface of the display screen, that is, it is confirmed that the SDA signal line and the SCL signal line of the I2C bus are connected to the corresponding pins.
[0097] In one embodiment of the present application, the electronic device further configures I2C bus parameters, wherein the parameters of the I2C bus include but are not limited to I2C clock rate, address length, voltage level, and data transmission mode, wherein the clock rate is determined according to the clock mode of I2C, for example, the clock mode includes standard mode, fast mode, and high-speed mode, the clock rate in standard mode is 100Kbps, the clock rate in fast mode is 400Kbps, and the clock rate in high-speed mode is 3.4Mbps. The embodiment of the present application adopts the standard mode for data transmission between the I2C bus and the display screen. The I2C address length corresponding to the display screen is 10 bits, the voltage level is 5V, and the data transmission mode is the clock mode of I2C.
[0098] In one embodiment of the present application, after completing the configuration of the I2C bus parameters, the microcontroller obtains the I2C address of the display screen from the memory, and the I2C address of the display screen is used to identify and control the display screen.
[0099] S1012, sending a start signal to the I2C bus to control the I2C bus to perform I2C communication with the display screen.
[0100] In one embodiment of the present application, the I2C start signal includes information such as a sending device address and a read / write command, which is used to indicate the start of I2C communication transmission. The SDA signal line of the I2C bus is pulled down from a high level to a low level, while the SCL signal line is kept at a high level to generate an I2C start signal. The display screen can detect the level change of the I2C bus, and when it is detected that the SDA signal line of the I2C bus is pulled down from a high level to a low level and the SCL signal line is at a high level, it recognizes the I2C start signal and determines that the I2C communication transmission starts, thereby performing I2C communication with the I2C bus.
[0101] S1013, generating and sending self-refresh setting data to the display screen, and controlling the display screen to switch to a self-refresh mode.
[0102] In one embodiment of the present application, generating and sending self-refresh setting data to a display screen includes: setting the communication mode of the I2C bus to a write mode, determining the data format and content of the self-refresh setting data, and sending the self-refresh setting data to the display screen based on the I2C address of the display screen to control the display screen to switch to a self-refresh mode, wherein the data format of the self-refresh setting data is binary or hexadecimal, and the data content of the self-refresh setting data includes the refresh rate, resolution, display mode, color mode, etc. of the display screen. The refresh rate of the display screen may be 60Hz, 75Hz, or 144Hz, the resolution may be 1920*1080, the display mode may be a horizontal mode or a vertical mode, and the color mode may be an RGB color mode or a CMYK color mode.
[0103] In one embodiment of the present application, in the default state, the graphics card performs image rendering and sends the rendered image to the display screen for display. In the self-refresh mode, the display screen does not receive image data from the graphics card, and periodically refreshes the pixels on the display screen to keep the currently displayed interface unchanged, so as to maintain the stability of the displayed content.
[0104] In one embodiment of the present application, the pixel of the display screen is the smallest controllable image unit on the display screen and is the basic unit that constitutes the image. The pixel is a rectangular area. By controlling the brightness, color and other properties of the rectangular area, an image can be displayed on the rectangular area, and all the pixels on the display screen form a complete image. In the self-refresh mode, the display screen does not receive the image data sent by the graphics card, and refreshes the pixels on the display screen according to the preset refresh order based on the image data of the current frame. Among them, the preset refresh order can be from left to right and from top to bottom, and the color and brightness of each pixel on the display screen are updated in sequence based on the preset refresh order, so that the same image is repeatedly displayed on the display screen.
[0105] In one embodiment of the present application, after the self-refresh setting data is sent to the display screen, an I2C stop signal is sent to the display screen to end the I2C communication. The I2C stop signal is used to indicate the end of the communication on the I2C bus, and the I2C stop signal can be generated when the SCL signal line is at a high level and the SDA signal line switches from a low level to a high level. After the I2C stop sending signal is sent to the display screen, the I2C bus disconnects the communication connection with the display screen and returns to an idle state.
[0106] See also Fig. 9 , which is an architecture diagram of a graphics card switching system provided by another embodiment of the present application. The graphics card switching system 400 includes an integrated graphics card 41, an independent graphics card 42, a first display transmission interface 43, a display screen 194, a bus 44, a signal repeater 45, a second display transmission interface 46 and an external connector 47.
[0107] In another embodiment of the present application, the integrated graphics card 41 includes an eDP pin (embedded display interface pin) 410, and the integrated graphics card 41 sends the eDP signal to the display screen through the eDP pin 310. The integrated graphics card 41 and the independent graphics card 42 are connected through a bus 44, wherein the bus 44 can be a PCIe bus. The signal repeater 45 is set in a separate data path. The integrated graphics card 41 and the independent graphics card 42 are connected to the display screen 194 through a first display transmission interface 43, the first display transmission interface 43 is an embedded display interface, and the display screen 194 is an internal embedded display interface display of the electronic device 100. The integrated graphics card 41 and the independent graphics card 42 can also be connected to the external connector 47 through a second display transmission interface 46, respectively, wherein the second display transmission interface 46 is a display interface or a high-definition multimedia interface, and the external connector 47 can be an external display screen. Compared to Figure 1 Graphics card switching system using multiplexer switch and Figure 2 A graphics card switching system that does not use a multiplexer switch. Figure 7 The graphics card switching system provided in another embodiment of the present application does not need to be connected to the display screen through a multiplexer switch, but is directly connected to the display screen through an internal embedded display interface, effectively avoiding the influence of the multiplexer switch on the graphics card switching. At the same time, the signal repeater set between the integrated graphics card and the independent graphics card can enhance the signal transmitted by the bus to ensure the quality of the signal transmitted by the bus. The specific description can be combined with the following embodiments.
[0108] See also Fig.10 FIG. 1 is a flowchart of a graphics card switching method provided by another embodiment of the present application. The method is applied in an electronic device, and the graphics card switching method includes:
[0109] S301, in response to a graphics card switching instruction, switching the display screen to a self-refresh mode.
[0110] S302, controlling a first graphics card currently used by the electronic device to stop image rendering, and setting a plurality of preset pins of the first graphics card to a high impedance state.
[0111] S303, determine whether the loss of the output signal of the second graphics card is greater than or equal to a preset value. If the loss of the output signal of the second graphics card is greater than or equal to the preset value, the process enters S304; if the loss of the output signal of the second graphics card is less than the preset value, the process enters S305.
[0112] In another embodiment of the present application, during the image rendering process of the second graphics card, the image frame data of the display interface is transmitted to the first graphics card, the embedded display interface pin (eDP PIN) of the first graphics card is connected to the first display transmission interface, and the image frame data is transmitted to the display screen through the eDP PIN of the first graphics card and the first display transmission interface. Signal attenuation or crosstalk may occur during signal transmission between the first graphics card and the second graphics card. In this way, the length of the bus provided with a signal repeater between the first graphics card and the second graphics card can be used as the loss of the output signal of the second graphics card, and the preset value is the preset bus length value. That is, it is determined whether the length of the bus provided with a signal repeater between the first graphics card and the second graphics card is greater than or equal to the preset value. If the length of the bus provided with a signal repeater between the first graphics card and the second graphics card is greater than or equal to the preset value, it is determined that the loss of the output signal of the second graphics card is greater than or equal to the preset value, which exceeds the loss requirement of the graphics card platform; if the length of the bus provided with a signal repeater between the first graphics card and the second graphics card is less than the preset value, it is determined that the loss of the output signal of the second graphics card is less than the preset value, which does not exceed the loss requirement of the graphics card platform.
[0113] In other embodiments of the present application, the preset value may also be a preset signal attenuation value, or the loss of the output signal of the second graphics card may be obtained by calculating the signal attenuation value on a bus provided with a signal repeater between the first graphics card and the second graphics card, and determining whether the signal attenuation value on the bus provided with a signal repeater between the first graphics card and the second graphics card is greater than or equal to the preset value. If the signal attenuation value on the bus provided with a signal repeater between the first graphics card and the second graphics card is greater than or equal to the preset value, it is determined that the loss of the output signal of the second graphics card is greater than or equal to the preset value. If the signal attenuation value on the bus provided with a signal repeater between the first graphics card and the second graphics card is less than the preset value, it is determined that the loss of the output signal of the second graphics card is less than the preset value.
[0114] S304, start the signal repeater.
[0115] In another embodiment of the present application, if the first graphics card is an integrated graphics card, the second graphics card is an independent graphics card, and the loss of the output signal of the second graphics card is greater than or equal to a preset value, the signal repeater is turned on by setting the enable pin of the signal repeater to a high level to activate the signal enhancement function of the signal repeater.
[0116] See also Fig.11 As shown, it is a pin diagram of the signal repeater provided in an embodiment of the present application. The signal repeater includes a power supply pin VCC, a ground pin GND, a differential output pin Tx+ and Tx-, a differential input pin Rx+ and Rx-, an equalization control pin EQ, a mode selection pin SEL, an enable pin EN and a configuration pin CFG. Among them, the power supply pin VCC is used to connect the power supply, the ground pin GND is used to connect the power ground line, the differential output pins Tx+ and Tx- are used to connect the transmitting end of the link, the differential input pins Rx+ and Rx- are used to connect the receiving end of the link, the equalization control pin EQ is used to adjust the equalization level of the output signal, the mode selection pin SEL is used to select the mode and function of the signal repeater, the enable pin EN is used to control the switch state of the signal repeater, and the configuration pin CFG is used to read and write the configuration register of the signal repeater. In another embodiment of the present application, the enable pin is set to a high level by setting the logic value of the enable pin EN to 1, that is, EN=1.
[0117] In other embodiments of the present application, if the first graphics card is an independent graphics card, the second graphics card is an integrated graphics card, and the loss of the output signal of the second graphics card is greater than or equal to a preset value, S204 can be replaced by: turning off the signal repeater. Specifically, by setting the enable pin of the signal repeater to a low level, setting the enable pin to a high impedance state, turning off the signal repeater, and turning off the signal enhancement function of the signal repeater, thereby reducing link interference.
[0118] S305: Switch to the second graphics card of the electronic device to perform image rendering.
[0119] In one embodiment of the present application, when the first graphics card is in a working state, multiple preset pins corresponding to the second graphics card are in a high-impedance state. After the multiple preset pins corresponding to the first graphics card are set to a high-impedance state, the first graphics card cannot interact with the display screen through the eDP interface. At this time, the multiple preset pins corresponding to the second graphics card are switched from a high-impedance state to a normal state, so that the second graphics card is connected and interacts with the display screen through the embedded display interface, thereby switching to the second graphics card for image rendering.
[0120] In another embodiment of the present application, if the second graphics card is an independent graphics card, when the electronic device switches to the independent graphics card for image rendering, the eDP pin of the integrated graphics card is connected to the eDP interface and is in a high-impedance state, the independent graphics card is connected to the eDP interface through the eDP pin, and signals are exchanged with the display screen through the eDP pin and the eDP interface to transmit hot-plug signals, auxiliary signals, video data signals, and image data signals. If the second graphics card is an integrated graphics card, when the electronic device switches to the integrated graphics card for image rendering, the eDP pin of the integrated graphics card is not in a high-impedance state, the integrated graphics card is connected to the eDP interface through the eDP pin, and signals are exchanged with the display screen through the eDP interface to transmit hot-plug signals, auxiliary signals, video data signals, and image data signals.
[0121] Furthermore, the graphics card switching method further includes: controlling the display screen to exit the self-refresh mode. Specifically, generating and sending self-refresh shutdown data to the display screen via the I2C bus to control the display screen to exit the self-refresh mode.
[0122] The implementation method of S301 - S302 and S305 is the same as that of S101 - S103 and will not be described in detail here.
[0123] According to the above embodiment, in the process of switching the graphics card by setting the pin status of the graphics card, if the loss of the output signal of the graphics card is large, the output signal can be enhanced by turning on the signal repeater to ensure the normal transmission of the graphics card output signal.
[0124] See also Fig.12 FIG. 1 is a flowchart of a graphics card switching method provided by another embodiment of the present application. The method is applied to an electronic device, the first graphics card is an integrated graphics card, and the second graphics card is an independent graphics card. The graphics card switching method includes:
[0125] S401, in response to a graphics card switching instruction, switching the display screen to a self-refresh mode.
[0126] S402, controlling the integrated graphics card currently used by the electronic device to stop image rendering, and setting multiple preset pins of the integrated graphics card to a high impedance state.
[0127] S403, determine whether the loss of the output signal of the independent graphics card is greater than or equal to the preset value. If the loss of the output signal of the independent graphics card is greater than or equal to the preset value, the process enters S404; if the loss of the output signal of the independent graphics card is less than the preset value, the process enters S405.
[0128] S404, start the signal repeater.
[0129] S405, switching to the independent graphics card of the electronic device to perform image rendering.
[0130] S406, controlling the display screen to exit the self-refresh mode.
[0131] The implementation method of S401-S406 is the same as that of S301-S305, and will not be described in detail here.
[0132] It can be understood that when the integrated graphics card is in working state, the multiple preset pins corresponding to the independent graphics card are in a high-impedance state. After the multiple preset pins corresponding to the integrated graphics card are set to a high-impedance state, the integrated graphics card cannot interact with the display screen through the eDP interface. At this time, the multiple preset pins corresponding to the independent graphics card are switched from a high-impedance state to a normal state, so that the independent graphics card is connected and interacted with the display screen through the embedded display interface, thereby switching to the independent graphics card for image rendering.
[0133] See also Fig.13 FIG. 1 is a flowchart of a graphics card switching method provided by another embodiment of the present application. The method is applied to an electronic device, the first graphics card is an independent graphics card, and the second graphics card is an integrated graphics card. The graphics card switching method includes:
[0134] S501, in response to a graphics card switching instruction, switching the display screen to a self-refresh mode.
[0135] S502, controlling the independent graphics card currently used by the electronic device to stop image rendering, and setting a plurality of preset pins of the independent graphics card to a high impedance state.
[0136] S503, determine whether the loss of the output signal of the integrated graphics card is greater than or equal to the preset value. If the loss of the output signal of the integrated graphics card is greater than or equal to the preset value, the process enters S504; if the loss of the output signal of the integrated graphics card is less than the preset value, the process enters S505.
[0137] S504, turn off the signal repeater.
[0138] In another embodiment of the present application, if the first graphics card is an independent graphics card, the second graphics card is an integrated graphics card, and the loss of the output signal of the second graphics card is greater than or equal to a preset value, the enable pin of the signal repeater is set to a low level, the enable pin is set to a high impedance state to turn off the signal repeater, and the signal enhancement function of the signal repeater is turned off, thereby reducing link interference.
[0139] S505, switching to the integrated graphics card of the electronic device to perform image rendering.
[0140] In one embodiment of the present application, when the independent graphics card is in a working state, multiple preset pins corresponding to the integrated graphics card are in a high-impedance state. After the multiple preset pins corresponding to the integrated graphics card are set to a high-impedance state, the multiple preset pins corresponding to the integrated graphics card are switched from the high-impedance state to a normal state, so that the integrated graphics card is connected to the display screen through an embedded display interface, thereby switching to the integrated graphics card for image rendering.
[0141] In one embodiment of the present application, the image rendering process includes an application processing stage, a geometry processing stage, a rasterization stage, and a pixel processing stage. The integrated graphics card transmits the rendered image data to the display memory of the display screen, and the display screen obtains the image data from the display memory and displays a frame interface based on the image data.
[0142] S506, controlling the display screen to exit the self-refresh mode.
[0143] The implementation method of S501-S503, S505-S506 is the same as that of S301-S303, S205, and will not be repeated here.
[0144] It can be understood that when the independent graphics card is in working state, the multiple preset pins corresponding to the integrated graphics card are in a high-impedance state. After the multiple preset pins corresponding to the independent graphics card are set to a high-impedance state, the independent graphics card cannot interact with the display screen through the eDP interface. At this time, the multiple preset pins corresponding to the integrated graphics card are switched from a high-impedance state to a normal state, so that the integrated graphics card is connected and interacted with the display screen through the embedded display interface, thereby switching to the integrated graphics card for image rendering.
[0145] See also Fig.14 FIG. 1 is a flowchart of a graphics card switching method provided by another embodiment of the present application. The method is applied to an electronic device, and the graphics card switching method switches an integrated graphics card to an independent graphics card. The graphics card switching method includes:
[0146] S601, the display screen switches to self-refresh mode.
[0147] S602, controlling the integrated graphics card iGPU to stop outputting images.
[0148] S603, setting the main link pin ML, the auxiliary channel pin AUX and the hot plug detection pin HPD of the integrated graphics card to a high impedance state.
[0149] S604, determine whether the independent graphics card meets the platform loss requirement. If the independent graphics card does not meet the platform loss requirement, the process proceeds to S605; if the independent graphics card meets the platform loss requirement, the process proceeds to S606.
[0150] S605 , setting the logic value of the enable pin EN of the signal repeater redriver to 1.
[0151] S606, controlling the independent graphics card dGPU to output images.
[0152] S607, the display screen exits the self-refresh mode.
[0153] See also Fig.15 FIG. 1 is a flowchart of a graphics card switching method provided by another embodiment of the present application. The method is applied to an electronic device, and the graphics card switching method switches an independent graphics card to an integrated graphics card. The graphics card switching method includes:
[0154] S701, the display screen switches to self-refresh mode.
[0155] S702, controlling the independent graphics card dGPU to stop outputting images.
[0156] S703, setting the main link pin ML, the auxiliary channel pin AUX and the hot plug detection pin HPD of the independent graphics card to a high impedance state.
[0157] S704, determine whether the integrated graphics card meets the platform loss requirement. If the integrated graphics card does not meet the platform loss requirement, the process proceeds to S705; if the integrated graphics card meets the platform loss requirement, the process proceeds to S706.
[0158] S705, setting the logic value of the enable pin EN of the signal repeater redriver to 0.
[0159] S706, controlling the integrated graphics card iGPU to output images.
[0160] S707, the display screen exits the self-refresh mode.
[0161] The present application also provides an electronic device 100. Fig.16 As shown, the electronic device 100 can be a mobile phone, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a cellular phone, a personal digital assistant (PDA), an augmented reality (AR) device, a virtual reality (VR) device, an artificial intelligence (AI) device, a wearable device, a vehicle-mounted device, a smart home device and / or a smart city device. The embodiments of the present application do not impose any special restrictions on the specific type of the electronic device 100.
[0162] The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a Universal Serial Bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a Subscriber Identification Module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0163] It is to be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or separate some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0164] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0165] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.
[0166] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0167] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an Inter-integrated Circuit (I2C) interface, an Inter-integrated Circuit Sound (I2S) interface, a Pulse Code Modulation (PCM) interface, a Universal Asynchronous Receiver / Transmitter (UART) interface, a Mobile Industry Processor Interface (MIPI), a General-Purpose Input / Output (GPIO) interface, a Subscriber Identity Module (SIM) interface, and / or a Universal Serial Bus (USB) interface, etc.
[0168] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple groups of I2C buses. The processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, etc. through different I2C bus interfaces. For example: the processor 110 may be coupled to the touch sensor 180K through the I2C interface, so that the processor 110 communicates with the touch sensor 180K through the I2C bus interface to realize the touch function of the electronic device 100.
[0169] The I2S interface can be used for audio communication. In some embodiments, the processor 110 can include multiple I2S buses. The processor 110 can be coupled to the audio module 170 via the I2S bus to achieve communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 can transmit an audio signal to the wireless communication module 160 via the I2S interface to achieve the function of answering a call through a Bluetooth headset.
[0170] The PCM interface can also be used for audio communication, sampling, quantizing and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 can be coupled via a PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 via the PCM interface to realize the function of answering calls via a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
[0171] The UART interface is a universal serial data bus for asynchronous communication. The bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is generally used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function. In some embodiments, the audio module 170 can transmit an audio signal to the wireless communication module 160 through the UART interface to implement the function of playing music through a Bluetooth headset.
[0172] The MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193. The MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), etc. In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to realize the shooting function of the electronic device 100. The processor 110 and the display screen 194 communicate via the DSI interface to realize the display function of the electronic device 100.
[0173] The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.
[0174] The USB interface 130 is an interface that complies with the USB standard specification, and can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transfer data between the electronic device 100 and a peripheral device. It can also be used to connect headphones to play audio through the headphones. The interface can also be used to connect other electronic devices 100, such as AR devices, etc.
[0175] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present invention is only a schematic illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
[0176] The charging management module 140 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. While the charging management module 140 is charging the battery 142, it may also power the electronic device 100 through the power management module 141.
[0177] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.
[0178] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
[0179] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0180] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.
[0181] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.
[0182] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0183] In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include Global System For Mobile Communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Time-Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include a Global Positioning System (GPS), a Global Navigation Satellite System (GLONASS), a Beidou Navigation Satellite System (BDS), a Quasi-Zenith Satellite System (QZSS) and / or a Satellite Based Augmentation System (SBAS).
[0184] The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
[0185] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, Microled, Micro-OLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
[0186] The electronic device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.
[0187] ISP is used to process the data fed back by camera 193. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to ISP for processing and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on the noise, brightness, and skin color of the image. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, ISP can be set in camera 193.
[0188] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal oxide semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.
[0189] The digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the electronic device 100 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
[0190] The video codec is used to compress or decompress digital video. The electronic device 100 may support one or more video codecs. In this way, the electronic device 100 can play or record videos in multiple coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
[0191] NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can also continuously self-learn. Through NPU, applications such as intelligent cognition of the electronic device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, etc.
[0192] The internal memory 121 may include one or more random access memories (RAM) and one or more non-volatile memories (NVM).
[0193] Random access memory may include static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM, for example, the fifth generation DDR SDRAM is generally referred to as DDR5 SDRAM), etc.;
[0194] Non-volatile memory may include disk storage devices and flash memory.
[0195] Flash memory can be divided into NOR FLASH, NAND FLASH, 3D NAND FLASH, etc. according to the operating principle. It can be divided into single-level cell (SLC), multi-level cell (MLC), triple-level cell (TLC), quad-level cell (QLC), etc. according to the storage unit potential level. It can be divided into universal flash storage (UFS), embedded Multi Media Card (eMMC), etc. according to the storage specification.
[0196] The random access memory can be directly read and written by the processor 110, and can be used to store executable programs (such as machine instructions) of the operating system or other running programs, and can also be used to store user and application data.
[0197] The non-volatile memory may also store executable programs and user and application data, etc., and may be loaded into the random access memory in advance for direct reading and writing by the processor 110 .
[0198] The external memory interface 120 can be used to connect to an external non-volatile memory to expand the storage capacity of the electronic device 100. The external non-volatile memory communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music and videos are stored in the external non-volatile memory.
[0199] The internal memory 121 or the external memory interface 120 is used to store one or more computer programs. The one or more computer programs are configured to be executed by the processor 110. The one or more computer programs include multiple instructions. When the multiple instructions are executed by the processor 110, the screen display detection method executed on the electronic device 100 in the above embodiment can be implemented to implement the screen display detection function of the electronic device 100.
[0200] The electronic device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
[0201] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be arranged in the processor 110, or some functional modules of the audio module 170 can be arranged in the processor 110.
[0202] The speaker 170A, also called a "speaker", is used to convert an audio electrical signal into a sound signal. The electronic device 100 can listen to music or listen to a hands-free call through the speaker 170A.
[0203] The receiver 170B, also called a "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 100 receives a call or voice message, the voice can be received by placing the receiver 170B close to the human ear.
[0204] Microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by putting their mouth close to microphone 170C to input the sound signal into microphone 170C. The electronic device 100 can be provided with at least one microphone 170C. In other embodiments, the electronic device 100 can be provided with two microphones 170C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify the sound source, realize directional recording function, etc.
[0205] The earphone interface 170D is used to connect a wired earphone and can be a USB interface 130 or a 3.5 mm Open Mobile Terminal Platform (OMTP) standard interface or a Cellular Telecommunications Industry Association of the USA (CTIA) standard interface.
[0206] The key 190 includes a power key, a volume key, etc. The key 190 may be a mechanical key or a touch key. The electronic device 100 may receive key input and generate key signal input related to user settings and function control of the electronic device 100.
[0207] Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. For touch operations acting on different areas of the display screen 194, motor 191 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
[0208] Indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, messages, missed calls, notifications, etc.
[0209] The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to and separated from the electronic device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195. The electronic device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 can also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the electronic device 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100. The embodiment of the present application also provides a computer storage medium, in which computer instructions are stored. When the computer instructions are executed on the electronic device 100, the electronic device 100 executes the above-mentioned related method steps to implement the graphics card switching in the above-mentioned embodiment.
[0210] The embodiment of the present application also provides a computer program product. When the computer program product is run on a computer, the computer is caused to execute the above-mentioned related steps to implement the graphics card switching method in the above-mentioned embodiment.
[0211] In addition, an embodiment of the present application also provides a device, which can specifically be a chip, component or module, and the device may include a connected processor and memory; wherein the memory is used to store computer execution instructions, and when the device is running, the processor can execute the computer execution instructions stored in the memory so that the chip executes the graphics card switching method in the above-mentioned method embodiments.
[0212] Among them, the electronic device, computer storage medium, computer program product or chip provided in this embodiment is used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above and will not be repeated here.
[0213] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0214] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0215] The unit described as a separate component may or may not be physically separated, and the component shown as a unit may be one physical unit or multiple physical units, that is, it may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiment.
[0216] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0217] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of each embodiment method of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program code.
[0218] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present application and are not intended to limit it. Although the present application has been described in detail with reference to the preferred embodiments, a person of ordinary skill in the art should understand that the technical solution of the present application may be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present application.
Claims
1. A graphics card switching method, applied to an electronic device, characterized in that: The method comprises: In response to a graphics card switching instruction, switching the display screen of the electronic device to a self-refresh mode; Controlling a first graphics card currently used by the electronic device to stop image rendering, and setting multiple preset pins of the first graphics card to a high impedance state, the multiple preset pins including a main link pin, an auxiliary channel pin, and a hot plug detection pin; Switch to the second graphics card of the electronic device to perform image rendering.
2. The graphics card switching method according to claim 1, wherein: In response to the graphics card switching instruction, switching the display screen of the electronic device to a self-refresh mode includes: In response to the graphics card switching instruction, the I2C bus of the electronic device is initialized, and the I2C address of the display screen is obtained; Sending an I2C start signal to the I2C bus to control the I2C bus to perform I2C communication with the display screen; Based on the I2C address, self-refresh setting data is generated and sent to the display screen, and the display screen is controlled to switch to the self-refresh mode.
3. The graphics card switching method according to claim 2, wherein: Initializing the I2C bus of the electronic device and obtaining the I2C address of the display screen includes: Confirm that the serial data SDA signal line and the serial clock SCL signal line of the I2C bus are connected to corresponding pins; Configure the parameters of the I2C bus and obtain the I2C address of the display screen.
4. The graphics card switching method according to claim 3, characterized in that: The sending of the I2C start signal to the I2C bus and controlling the I2C bus to perform I2C communication with the display screen includes: Generate the I2C start signal by pulling the SDA signal line from a high level to a low level and keeping the SCL signal line at a high level; The display screen detects the level change of the I2C bus, and when it is detected that the SDA signal line of the I2C bus is pulled down from a high level to a low level and the SCL signal line is at a high level, identifies the I2C start signal and determines that the I2C communication transmission starts.
5. The graphics card switching method according to claim 3, characterized in that: The generating and sending the self-refresh setting data to the display screen comprises: The communication mode of the I2C bus is set to a write mode, the data format and content of the self-refresh setting data are determined, and based on the I2C address of the display screen, the self-refresh setting data is sent to the display screen to control the display screen to switch to the self-refresh mode.
6. The graphics card switching method according to claim 1, wherein: The step of setting the plurality of preset pins of the first graphics card to a high impedance state comprises: The plurality of preset pins are set to an output mode, and a pull-up resistor or a pull-down resistor in each preset pin is disabled to set the plurality of preset pins to a high impedance state.
7. The graphics card switching method according to claim 1, characterized in that: The step of setting the plurality of preset pins of the first graphics card to a high impedance state comprises: The input / output state of each preset pin is controlled by a tri-state buffer or a switch, so that the plurality of preset pins are in a high impedance state.
8. The graphics card switching method according to claim 1, wherein: The method further comprises: Control the display screen to exit the self-refresh mode.
9. The graphics card switching method according to claim 1, wherein: When the first graphics card is an integrated graphics card, the second graphics card is an independent graphics card; when the first graphics card is an independent graphics card, the second graphics card is an integrated graphics card.
10. The graphics card switching method according to claim 1, wherein: The first graphics card is an integrated graphics card, and the second graphics card is an independent graphics card. The method further includes: Real-time detection of the graphics card currently used by the electronic device and the preset scene in which it is located; If it is detected that the electronic device is currently using the first graphics card and is in a high-performance scenario, generating the graphics card switching instruction; or If it is detected that the electronic device is currently using the second graphics card and is in a low performance scenario, the graphics card switching instruction is generated.
11. The graphics card switching method according to claim 1, wherein: The first graphics card is an integrated graphics card, and the second graphics card is an independent graphics card. The method further includes: Determine whether the loss of the output signal of the second graphics card is greater than or equal to a preset value; If the loss of the output signal of the second graphics card is greater than or equal to the preset value, turning on the signal repeater; or If the loss of the output signal of the second graphics card is less than a preset value, the second graphics card of the electronic device is switched to perform image rendering.
12. The graphics card switching method according to claim 11, characterized in that: The start signal repeater comprises: The enable pin of the signal repeater is set to a high level to turn on the signal repeater and activate the signal enhancement function of the signal repeater.
13. The graphics card switching method according to claim 1, characterized in that: The first graphics card is an independent graphics card, and the second graphics card is an integrated graphics card. The method further includes: Determine whether the loss of the output signal of the second graphics card is greater than or equal to a preset value; If the loss of the output signal of the second graphics card is greater than or equal to the preset value, shut down the signal repeater; or If the loss of the output signal of the second graphics card is less than a preset value, the second graphics card of the electronic device is switched to perform image rendering.
14. The graphics card switching method according to claim 13, wherein: The shutdown signal repeater comprises: The enable pin of the signal repeater is set to a low level to turn off the signal repeater and the signal enhancement function of the signal repeater.
15. An electronic device, characterized in that: The electronic device comprises a memory and a processor: Wherein, the memory is used to store program instructions; The processor is used to read and execute the program instructions stored in the memory. When the program instructions are executed by the processor, the electronic device executes the graphics card switching method as described in any one of claims 1 to 14.
16. A chip coupled to a memory in an electronic device, characterized in that: The chip is used to control the electronic device to execute the graphics card switching method according to any one of claims 1 to 14.
17. A computer storage medium, characterized in that: The computer storage medium stores program instructions, and when the program instructions are executed on an electronic device, the electronic device executes the graphics card switching method according to any one of claims 1 to 14.
Citation Information
Cited By
Hardware super-resolution switching method and device, equipment, medium and program product
CN119495247A
Communication method and electronic equipment
CN120196300A
Display device and electronic device
CN120687058A
