Control method and electronic equipment
By linking application scenarios with component operating states, the wake-up and sleep modes of the graphics processor can be precisely controlled, solving the power consumption problem caused by frequent wake-ups of discrete graphics cards under light load scenarios, and achieving the goals of on-demand wake-up and low power consumption.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- LENOVO (BEIJING) LTD
- Filing Date
- 2025-12-31
- Publication Date
- 2026-05-08
AI Technical Summary
The discrete graphics card is frequently woken up under light load or non-GPU-dependent scenarios, resulting in a short-term increase in power consumption.
By dividing the application scenarios into various scenarios with different levels of demand on the graphics processor, and based on the component's running status and wake-up conditions, the system can precisely control the graphics processor's wake-up and sleep modes, reducing unnecessary wake-ups.
This reduces unnecessary wake-ups of the graphics processor, lowers power consumption, and ensures timely wake-ups of the graphics processor under high load scenarios to guarantee performance.
Smart Images

Figure CN121996302A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of computer technology, and more particularly to a control method and an electronic device. Background Technology
[0002] In actual use, even under light loads or in non-GPU-dependent scenarios, discrete graphics cards (DGPUs) will frequently be triggered to wake up briefly, and each time the discrete graphics card is woken up from sleep mode, it will generate short-term power consumption. Summary of the Invention
[0003] This disclosure provides a control method and an electronic device to at least solve the above-mentioned technical problems existing in the prior art.
[0004] According to a first aspect of this disclosure, a control method is provided, the method comprising: The operating application scenarios of the electronic device are determined, wherein the operating application scenarios include multiple application scenarios, and each application scenario represents a different degree of demand on the first graphics processor; Obtain the wake-up conditions corresponding to each application scenario, and the wake-up conditions are used to determine whether to wake up the first graphics processor to work. Obtain the operating status of at least one component of an electronic device; Based on the operating state of the at least one component and the wake-up conditions corresponding to the current application scenario of the electronic device, it is determined whether to wake up the first graphics processor.
[0005] In one possible implementation, determining whether to wake up the first graphics processor based on the operating state of the at least one component and the wake-up conditions corresponding to the current application scenario of the electronic device includes: The application scenarios include at least a first application scenario and a second application scenario, wherein the first application scenario has a greater demand on the first graphics processor than the second application scenario has on the first graphics processor. The first graphics processor is woken up or turned off based on whether the current application scenario meets the first wake-up condition corresponding to the current application scenario and whether the running state of the at least one component meets the second wake-up condition corresponding to the current application scenario. The wake-up condition corresponding to the current application scenario includes the first wake-up condition and the second wake-up condition.
[0006] In one possible implementation, in response to the current application scenario being a first application scenario, if the current application scenario meets the first wake-up condition and the operating state of the at least one component does not meet the second wake-up condition, it is determined to shut down the first graphics processor. If the current application scenario meets the first wake-up condition, and the operating state of the at least one component meets the second wake-up condition, then the first graphics processor is determined to be woken up.
[0007] In one possible implementation, in response to the current application scenario being a second application scenario, if the current application scenario does not meet the first wake-up condition, and the operating state of the at least one component does not meet the second wake-up condition, it is determined to shut down the first graphics processor. If the current application scenario does not meet the first wake-up condition, and the operating state of the at least one component meets the second wake-up condition, then the first graphics processor is determined to be woken up. If the current application scenario meets the first wake-up condition, but the running state of the at least one component does not meet the second wake-up condition, then the first graphics processor is determined to be turned off. If the current application scenario meets the first wake-up condition, and the operating state of the at least one component meets the second wake-up condition, then the first graphics processor is determined to be woken up.
[0008] In one possible implementation, the operating state includes at least one of a second graphics processor utilization rate, battery level, and memory utilization rate; The second wake-up condition includes at least one of the following conditions: The utilization rate of the second graphics processor is greater than the preset threshold for the utilization rate of the second graphics processor corresponding to the current application scenario; The battery level is greater than the preset battery level threshold corresponding to the current application scenario. The memory usage rate is greater than the preset threshold for memory usage rate corresponding to the current application scenario.
[0009] In one possible implementation, determining whether to wake up the first graphics processor based on the operating state of the at least one component and the wake-up conditions corresponding to the current application scenario of the electronic device includes: The operating system sends a wake-up command to the first graphics processor. Based on the operating state of the at least one component and the first and second wake-up conditions corresponding to the current application scenario of the electronic device, it is determined whether to intercept the wake-up command of the first graphics processor through the first controller, so as to determine whether to wake up the first graphics processor.
[0010] In one possible implementation, the first controller is connected to the first graphics processor and the second controller, respectively, and the second controller is connected to the first graphics processor. The second controller is used to connect the first graphics processor and the first processor. After determining whether to intercept the first graphics processor wake-up command via the first controller to determine whether to wake up the first graphics processor, the method further includes: In response to not waking up the first graphics processor, the first controller notifies the second controller to disconnect the channel with the first graphics processor and to control the disconnection of the power supply to the first graphics processor. In response to waking up the first graphics processor, the first controller notifies the second controller to open the channel between the second controller and the first graphics processor, and controls the power supply to the first graphics processor to be turned on.
[0011] In one possible implementation, the method further includes: In response to not waking up the first graphics processor, the data is processed by the second graphics processor.
[0012] According to a second aspect of this disclosure, an electronic device is provided, comprising: A first controller, and a first graphics processor communicatively connected to the first controller; The first controller is capable of performing the following operations: The operating application scenarios of the electronic device are determined, wherein the operating application scenarios include multiple application scenarios, and each application scenario represents a different degree of demand on the first graphics processor; Obtain the wake-up conditions corresponding to each application scenario, and the wake-up conditions are used to determine whether to wake up the first graphics processor to work. Obtain the operating status of at least one component of an electronic device; Based on the operating state of the at least one component and the wake-up conditions corresponding to the current application scenario of the electronic device, determine whether to wake up the first graphics processor; The first graphics processor is configured to adjust to a working state or a turned-off state based on the wake-up operation of the first controller. In one possible implementation, the electronic device further includes: A second controller is connected to both the first graphics processor and the first controller. The first controller is specifically used to: cause the second controller to disconnect or open the channel with the first graphics processor, and to control the disconnection or opening of the power supply to the first graphics processor.
[0013] The control method and electronic device disclosed herein divide the operating application scenario into multiple application scenarios with different levels of demand on the first graphics processor, and each application scenario has a corresponding wake-up condition. In this way, the operating state of at least one component can be compared with the corresponding wake-up condition to determine whether to wake up the first graphics processor. In this disclosure, instead of relying on a single wake-up command to wake up the first graphics processor, the application scenario and the operating state of the component are linked to precisely control the wake-up of the first graphics processor, reducing unnecessary wake-ups and thus reducing the power consumption generated during wake-up.
[0014] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of this disclosure, nor is it intended to limit the scope of this disclosure. Other features of this disclosure will become readily apparent from the following description. Attached Figure Description
[0015] The above and other objects, features, and advantages of this disclosure will become readily apparent from the following detailed description of exemplary embodiments, taken in conjunction with the accompanying drawings. Several embodiments of this disclosure are illustrated in the drawings by way of example and not limitation, in which: In the accompanying drawings, the same or corresponding reference numerals indicate the same or corresponding parts.
[0016] Figure 1 A flowchart of the control method provided in the embodiments of this disclosure; Figure 2 A detailed flowchart of the control method provided in the embodiments of this disclosure; Figure 3 A schematic diagram of the architecture of an electronic device provided in an embodiment of this disclosure; Figure 4 A schematic diagram of the composition structure of an electronic device according to an embodiment of the present disclosure is shown. Detailed Implementation
[0017] To make the objectives, features, and advantages of this disclosure more apparent and understandable, the technical solutions in the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this disclosure, and not all of them. All other embodiments obtained by those skilled in the art based on the embodiments of this disclosure without creative effort are within the scope of protection of this disclosure.
[0018] This disclosure provides a control method. Figure 1 A flowchart of the control method provided in the embodiments of this disclosure. Figure 2 A detailed flowchart of the control method provided in the embodiments of this disclosure is shown below. Figure 1 and Figure 2 As shown, the method includes: Step 101: Determine the operating application scenarios of the electronic device. The operating application scenarios include multiple application scenarios, each of which represents a different degree of demand on the first graphics processor.
[0019] Specifically, based on historical data of the application load of electronic devices, the operating application scenarios can be divided into multiple application scenarios.
[0020] The application load of electronic devices includes processor utilization, graphics rendering type, and data volume. Processor utilization refers to the proportion of resources used by the central processing unit (CPU) per unit of time; graphics rendering type refers to the type of graphics processing task initiated by the currently running application to the system, reflecting the complexity of the application's graphics computing requirements; and data volume refers to the total amount of data processed by the currently running application.
[0021] In this disclosure, the application scenarios include at least a first application scenario and a second application scenario, where the first application scenario has a greater demand on the first graphics processor than the second application scenario. The first graphics processor can be a DGPU.
[0022] Specifically, the application scenarios can be divided into a first application scenario and a second application scenario based on processor utilization, graphics rendering type, and data volume. For example, if the processor utilization is greater than a first utilization preset threshold, the graphics rendering type is the first rendering type, and the data volume is greater than a first data volume preset threshold, then it corresponds to the first application scenario, which has a higher demand on the first graphics processor. If the processor utilization is less than or equal to the first utilization preset threshold, the graphics rendering type is the second rendering type, the power consumption of the second rendering type is less than that of the first rendering type, and the data volume is less than or equal to the first data volume preset threshold, then it corresponds to the second application scenario, which has a lower demand on the first graphics processor.
[0023] In another embodiment, there can be more than two application scenarios, such as a first application scenario, a second application scenario, and a third application scenario. The processor utilization, graphics rendering type, and data volume corresponding to the first application scenario, the second application scenario, and the third application scenario gradually decrease, thus the demand on the first graphics processor also gradually decreases. For example, Figure 2As shown, based on the application's demand for the first graphics processor, scenarios are categorized into high-dependency, medium-dependency, and no-dependency scenarios. The first application scenario corresponds to the high-dependency scenario, the second to the medium-dependency scenario, and the third to the no-dependency scenario. In high-dependency scenarios, corresponding application operations may include, for example, AAA games and video rendering. In medium-dependency scenarios, corresponding application operations may include, for example, lightweight operations in software such as Photoshop or CAD. In no-dependency scenarios, corresponding application operations may include, for example, document editing and video playback.
[0024] After identifying the application scenario, an application scenario determination can be performed. Specifically, based on historical data of processor utilization, graphics rendering type, and data volume obtained during its operation, the application can be mapped to a specific application scenario. For example, if the first application scenario corresponds to a processor utilization >70%, a graphics rendering type of the first rendering type (heavyweight rendering), and a data volume >1GB, and the second application scenario corresponds to a processor utilization ≤70%, a graphics rendering type of the second rendering type (lightweight rendering), and a data volume ≤1GB, then if an application corresponds to a processor utilization of 60%, a graphics rendering type of the second rendering type, and a data volume of 0.5GB, then this application can be determined to belong to the second application scenario.
[0025] like Figure 2 As shown, the electronic device is equipped with a real-time identification module. This module analyzes the application load of the currently running application to determine whether the application belongs to a dependency-free scenario. It can also determine whether the application is a preset target application, such as a light-load application like Word, Excel, or Teams. If so, the application also belongs to a dependency-free scenario. When the application belongs to a dependency-free scenario, only the second graphics processor (IGPU) is called when the application starts, without needing to wake up the first graphics processor. In this disclosure, the real-time identification module can be a first controller.
[0026] Step 102: Obtain the wake-up conditions corresponding to each application scenario. The wake-up conditions are used to determine whether to wake up the first graphics processor to work.
[0027] The wake-up conditions for each application scenario include a first wake-up condition and a second wake-up condition.
[0028] The first wake-up condition can be a condition that the currently running application needs to determine when it starts up. In this embodiment of the disclosure, when the running application scenario includes a first application scenario and a second application scenario, the first wake-up condition corresponding to the first application scenario can be that the number of wake-up requests is less than or equal to the first number and / or the second graphics processor utilization rate is less than or equal to the first utilization rate; the first wake-up condition corresponding to the second application scenario can be that the number of wake-up requests is greater than or equal to the second number and / or the second graphics processor utilization rate is greater than or equal to the second utilization rate, wherein the number of wake-up requests refers to the number of times the first graphics processor is requested to be woken up, and the second graphics processor can be an IGPU.
[0029] Specifically, such as Figure 2 As shown, taking three application scenarios as an example, the first wake-up condition for the first application scenario (high dependency scenario) is that the first graphics processor can be woken up with 0 wake-up requests. That is, if the currently running application corresponds to the first application scenario, the first graphics processor can be automatically woken up after startup so that it can be applied to the current application in a timely manner, improving operating efficiency. The first wake-up condition for the second application scenario (medium dependency scenario) is that the first graphics processor can be woken up with 2 wake-up requests. That is, if the currently running application corresponds to the second application scenario, the first graphics processor will not be woken up if there are fewer than 2 wake-up requests after startup, and will only be woken up when there are more than 2 wake-up requests. The first wake-up condition for the third application scenario (no dependency scenario) is that there are more than 3 consecutive wake-up requests and the second graphics processor utilization rate is greater than 80%. That is, if the currently running application corresponds to the third application scenario, the first graphics processor will not be woken up if there are fewer than 3 wake-up requests or the second graphics processor utilization rate is less than 80% after startup. This can reduce unnecessary wake-ups and reduce the power consumption generated during wake-up.
[0030] The second wake-up condition is related to the operating state of at least one component of the electronic device, which may be a first processor (CPU), a second graphics processor (IGPU), or a battery, etc.
[0031] In one embodiment, the operating state includes at least one of the following: second graphics processor utilization, battery level, and memory utilization; The second wake-up condition includes at least one of the following conditions: The utilization rate of the second graphics processor is greater than the preset threshold for the utilization rate of the second graphics processor corresponding to the current application scenario. The battery level is greater than the preset battery level threshold corresponding to the current application scenario; The memory usage rate is greater than the preset threshold for memory usage rate corresponding to the current application scenario.
[0032] Specifically, for example, the second wake-up condition corresponding to the first application scenario can be at least one of the following: the second graphics processor utilization rate is greater than 60%, the battery power is greater than 30%, and the memory utilization rate is greater than 50%; the second wake-up condition corresponding to the second application scenario can be at least one of the following: the second graphics processor utilization rate is greater than 70%, the battery power is greater than 20%, and the memory utilization rate is greater than 60%; the second wake-up condition corresponding to the third application scenario can be at least one of the following: the second graphics processor utilization rate is greater than 80%, the battery power is greater than 15%, and the memory utilization rate is greater than 70%.
[0033] Step 103: Obtain the operating status of at least one component of the electronic device.
[0034] In this disclosure, it is necessary to obtain the running status of at least one component of the currently running application during runtime to characterize the load situation corresponding to the currently running application. As mentioned above, the running status of at least one component of the electronic device can be at least one of the following: second graphics processor utilization, battery level, and memory utilization.
[0035] Step 104: Based on the operating state of at least one component and the wake-up conditions corresponding to the current application scenario of the electronic device, determine whether to wake up the first graphics processor.
[0036] In one embodiment, determining whether to wake up the first graphics processor based on the operating state of at least one component and the wake-up conditions corresponding to the current application scenario of the electronic device includes: The application scenarios include at least a first application scenario and a second application scenario, and the first application scenario has a greater demand on the first graphics processor than the second application scenario. The first graphics processor is woken up or turned off based on whether the current application scenario meets the first wake-up condition corresponding to the current application scenario and whether the running state of at least one component meets the second wake-up condition corresponding to the current application scenario. The wake-up condition corresponding to the current application scenario includes the first wake-up condition and the second wake-up condition.
[0037] In this embodiment, the example of running an application scenario including two application scenarios is used for illustration. The first application scenario corresponds to a high-dependency scenario, and the second application scenario corresponds to a low-dependency scenario or a medium-dependency scenario.
[0038] In one embodiment, in response to the current application scenario being a first application scenario, if the current application scenario meets the first wake-up condition and the running state of at least one component does not meet the second wake-up condition, it is determined to shut down the first graphics processor. If the current application scenario meets the first wake-up condition and the running state of at least one component meets the second wake-up condition, then the first graphics processor is determined to be woken up.
[0039] Specifically, for example, if the currently running application is a drawing software, and based on its historical data, it corresponds to the first application scenario, if the first wake-up condition of the first application scenario is that the first graphics processor can be woken up with 0 wake-up requests, then the first graphics processor will be woken up immediately when the drawing software starts. However, if the drawing software is only drawing simple 2D graphics, then during the operation of the drawing software, the second graphics processor utilization rate is less than the preset threshold for the second graphics processor utilization rate. Therefore, the operating state of at least one component does not meet the second wake-up condition, and the first graphics processor can be turned off to reduce power consumption. If the drawing software is drawing complex 3D graphics, causing the second graphics processor utilization rate to exceed the preset threshold for the second graphics processor utilization rate, then the operating state of at least one component meets the second wake-up condition, and the first graphics processor is kept in the working state.
[0040] In one embodiment, in response to the current application scenario being the second application scenario, if the current application scenario does not meet the first wake-up condition and the running state of at least one component does not meet the second wake-up condition, it is determined to shut down the first graphics processor. If the current application scenario does not meet the first wake-up condition, and the running state of at least one component meets the second wake-up condition, then the first graphics processor is determined to be woken up. If the current application scenario meets the first wake-up condition, and the running state of at least one component does not meet the second wake-up condition, then the first graphics processor is to be turned off. If the current application scenario meets the first wake-up condition and the running state of at least one component meets the second wake-up condition, then the first graphics processor is determined to be woken up.
[0041] Specifically, for example, if multiple lightweight software programs are opened simultaneously, such as Excel, Word, and web pages, based on historical data, this corresponds to a second application scenario. If the first wake-up condition for this second application scenario is three or more consecutive wake-up requests and a second graphics processor utilization rate greater than 80%, then if only one wake-up request is issued when these software programs start, the first wake-up condition is not met, and the first graphics processor is not woken up. However, if one or more of these software programs perform complex data processing during subsequent operation, causing the second graphics processor utilization rate to rise and exceed a preset threshold, then at least one component's operating state meets the second wake-up condition, and the first graphics processor can be woken up. If these software programs only perform simple data editing during operation, and the collected second graphics processor utilization rate is less than the preset threshold, then at least one component's operating state does not meet the second wake-up condition, and the first graphics processor is not woken up.
[0042] When these software programs start, if four wake-up requests are issued and the second graphics processor utilization rate is 85%, the first wake-up condition is met, and the first graphics processor is woken up. However, if some software is closed during subsequent operation, causing the second graphics processor utilization rate to drop below the preset threshold, then at least one component's operating state does not meet the second wake-up condition, and the first graphics processor can be shut down. If these software programs need to perform complex data processing during operation, causing the second graphics processor utilization rate to exceed the preset threshold, then at least one component's operating state meets the second wake-up condition, and the first graphics processor can remain in a working state.
[0043] In the above embodiment, the second wake-up condition is determined by the utilization rate of the second graphics processor. However, in other embodiments, the second wake-up condition can also be determined by either the battery level or the memory utilization rate, or by a combination of the second graphics processor utilization rate, the battery level, and the memory utilization rate.
[0044] In this disclosure, the running status of at least one component can be periodically collected during the operation of the currently running application. After each collection, the running status of at least one component is compared with a second wake-up condition to adjust the state of the first graphics processor in real time. For example, Figure 2 As shown, if the currently running application corresponds to a dependency-free scenario, and during operation, the second graphics processor is detected to be under low load, and the electronic device is not connected to a power source but is powered by a battery with low power, that is, at least one component is operating in a "low load + battery powered" mode, then the application does not meet the second wake-up condition for a dependency-free scenario. In this case, only the second graphics processor can be called, without waking up the first graphics processor.
[0045] In this disclosure, instead of relying on a single wake-up command to wake up the first graphics processor, the application scenario and the running state of the component are linked to precisely control the wake-up of the first graphics processor. In this way, unnecessary wake-ups can be reduced to reduce the power consumption generated during wake-up, while ensuring that the first graphics processor can be woken up in a timely manner under high load scenarios to guarantee performance and achieve the goal of on-demand wake-up.
[0046] In one embodiment, the method further includes: processing data via a second graphics processor in response to not waking up the first graphics processor.
[0047] In this embodiment of the disclosure, the second graphics processor is an IGPU. The second graphics processor is always in working state during the operation of the electronic device. Therefore, when the first graphics processor is in sleep state, the data of the currently running application can be processed by the second graphics processor.
[0048] In one embodiment, determining whether to wake up the first graphics processor based on the operating state of at least one component and the wake-up conditions corresponding to the current application scenario of the electronic device includes: The operating system sends a wake-up command to the first graphics processor. Based on the operating state of at least one component, and the first and second wake-up conditions corresponding to the current application scenario of the electronic device, it is determined whether to intercept the wake-up command of the first graphics processor through the first controller, so as to determine whether to wake up the first graphics processor.
[0049] Specifically, during application operation, the operating system sends a wake-up command to the first graphics processor. If the first graphics processor receives the wake-up command, it will enter the working state. In this disclosure, after the command is issued, the first controller will determine whether to intercept the wake-up command based on the operating state of at least one component and the first and second wake-up conditions corresponding to the current application scenario of the electronic device. If it is determined to intercept the wake-up command, the first graphics processor will not be woken up. If it is determined not to intercept the wake-up command, the first graphics processor will be woken up.
[0050] In this disclosure, the first controller may be an intelligent (AI) controller.
[0051] Figure 3 This is a schematic diagram of the architecture of an electronic device provided in an embodiment of this disclosure. (For example...) Figure 3 As shown, the first controller 10 is connected to the first graphics processor 30 and the second controller 20 respectively, and the second controller 20 is connected to the first graphics processor 30. The second controller 20 is used to connect the first graphics processor 30 and the first processor 40. After determining whether to intercept the first graphics processor wake-up command via the first controller 10 to determine whether to wake up the first graphics processor 30, the method further includes: In response to not waking up the first graphics processor 30, the first controller 10 notifies the second controller 20 to disconnect the channel between the second controller 20 and the first graphics processor 30, and to control the disconnection of the power supply to the first graphics processor 30. In response to waking up the first graphics processor 30, the first controller 10 notifies the second controller 20 to open the channel between the second controller 20 and the first graphics processor 30, and controls the power supply to the first graphics processor 30.
[0052] Specifically, such as Figure 3As shown, the first controller 10, the second controller 20, and the first graphics processor 30 are all connected to each other via channels. The second controller 20 is a PCIE (Peripheral Component Interconnect Express) controller. The PCIE controller is a high-speed serial computer expansion bus standard used in electronic devices to connect peripheral components (such as the first graphics processor DGPU, solid-state drives SSDs, etc.), and it is also the core channel for data transmission between the first graphics processor and the first processor (CPU).
[0053] In this disclosure, if it is determined that the first graphics processor 30 should not be woken up, the first controller 10 will send a disconnect control command to the second controller 20, causing the second controller 20 to disconnect the channel with the first graphics processor 30. This shuts down the portion of the channel in the second controller 20 connected to the first graphics processor 30, thereby reducing the power consumption of this portion of the channel. However, the channels between the second controller 20 and other peripheral components are not disconnected, for example... Figure 3 The channel between the second controller 20 and the SSD remains connected. The first controller 10 also sends a power-off control command to the first graphics processor 30 to disconnect the power supply to the first graphics processor 30, so that the first graphics processor 30 is put into a sleep state.
[0054] If it is determined that the first graphics processor 30 is to be woken up, the first controller 10 will send a connectivity control command to the second controller 20, instructing the second controller 20 to open the channel between itself and the first graphics processor 30, and send a power supply control command to the first graphics processor 30, instructing it to turn on the power supply to the first graphics processor 30.
[0055] This disclosure also provides an electronic device and a readable storage medium. Figure 4 A schematic block diagram of an example electronic device that can be used to implement embodiments of the present disclosure is shown, such as... Figure 4 As shown, the electronic device includes: A first controller 401, and a first graphics processor 410 communicatively connected to the first controller 401; The first controller 401 is capable of performing the following operations: Determine the operating application scenarios of the electronic device, where the operating application scenarios include multiple application scenarios, each of which represents a different degree of demand on the first graphics processor; The wake-up conditions corresponding to each application scenario are obtained. The wake-up conditions are used to determine whether to wake up the first graphics processor 410 to work. Obtain the operating status of at least one component of an electronic device; Based on the operating status of at least one component and the wake-up conditions corresponding to the current application scenario of the electronic device, determine whether to wake up the first graphics processor 410. The first graphics processor 410 is used to adjust to a working state or a turned-off state based on the wake-up operation of the first controller 401.
[0056] In one embodiment, the electronic device further includes: The second controller (not shown in the figure) is connected to the first graphics processor 410 and the first controller 401 respectively. The first controller 401 is specifically used to: disconnect or open the channel between the second controller and the first graphics processor 410 via the second controller, and to control the disconnection or opening of the power supply to the first graphics processor 410.
[0057] In this disclosure, electronic devices are intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. Electronic devices may also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the present disclosure described and / or claimed herein.
[0058] like Figure 4 As shown, the electronic device 400 includes a first controller 401 and a first graphics processor 410 connected to the first controller 401.
[0059] The first controller 401 can perform various appropriate actions and processes based on a computer program stored in the read-only memory (ROM) 402 or a computer program loaded from the storage unit 408 into the random access memory (RAM) 403. The RAM 403 can also store various programs and data required for the operation of the device 400. The first controller 401, ROM 402, and RAM 403 are interconnected via a bus 404. An input / output (I / O) interface 405 is also connected to the bus 404.
[0060] Multiple components in device 400 are connected to I / O interface 405, including: input unit 406, such as keyboard, mouse, etc.; output unit 407, such as various types of monitors, speakers, etc.; storage unit 408, such as disk, optical disk, etc.; and communication unit 409, such as network card, modem, wireless transceiver, etc. Communication unit 409 allows device 400 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0061] The first controller 401 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the first controller 401 include, but are not limited to, a central processing unit (CPU), various special-purpose artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any suitable processor, controller, microcontroller, etc. The first controller 401 performs the various methods and processes described above, such as control methods. For example, in some embodiments, the control method may be implemented as a computer software program tangibly contained in a machine-readable medium, such as storage unit 408. In some embodiments, part or all of the computer program may be loaded and / or installed on device 400 via ROM 402 and / or communication unit 409. When the computer program is loaded into RAM 403 and executed by the first controller 401, one or more steps of the control method described above may be performed. Alternatively, in other embodiments, the first controller 401 may be configured to perform control methods by any other suitable means (e.g., by means of firmware).
[0062] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), system-on-a-chip (SoCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transferring data and instructions to the storage system, the at least one input device, and the at least one output device.
[0063] The program code used to implement the methods of this disclosure may be written in any combination of one or more programming languages. This program code may be provided to a processor or controller of a general-purpose computer, special-purpose computer, or other programmable data processing apparatus, such that when executed by the processor or controller, the program code causes the functions / operations specified in the flowcharts and / or block diagrams to be implemented. The program code may be executed entirely on a machine, partially on a machine, as a standalone software package partially on a machine and partially on a remote machine, or entirely on a remote machine or server.
[0064] In the context of this disclosure, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0065] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device for displaying information to the user (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor); and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the computer. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0066] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as a data server), or computing systems that include middleware components (e.g., an application server), or computing systems that include frontend components (e.g., a user computer with a graphical user interface or web browser through which a user can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., a communication network). Examples of communication networks include local area networks (LANs), wide area networks (WANs), and the Internet.
[0067] Computer systems can include clients and servers. Clients and servers are generally located far apart and typically interact via communication networks. Client-server relationships are created by computer programs running on the respective computers and having a client-server relationship with each other. Servers can be cloud servers, servers in distributed systems, or servers incorporating blockchain technology.
[0068] It should be understood that the various forms of processes shown above can be used to rearrange, add, or delete steps. For example, the steps described in this disclosure can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this disclosure can be achieved, and this is not limited herein.
[0069] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this disclosure, "a plurality of" means two or more, unless otherwise explicitly specified.
[0070] The above description is merely a specific embodiment of this disclosure, but the scope of protection of this disclosure is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this disclosure should be included within the scope of protection of this disclosure. Therefore, the scope of protection of this disclosure should be determined by the scope of the claims.
Claims
1. A control method, the method comprising: The operating application scenarios of the electronic device are determined, wherein the operating application scenarios include multiple application scenarios, and each application scenario represents a different degree of demand on the first graphics processor; Obtain the wake-up conditions corresponding to each application scenario, and the wake-up conditions are used to determine whether to wake up the first graphics processor to work; Obtain the operating status of at least one component of an electronic device; Based on the operating state of the at least one component and the wake-up conditions corresponding to the current application scenario of the electronic device, it is determined whether to wake up the first graphics processor.
2. The method according to claim 1, The step of determining whether to wake up the first graphics processor based on the operating state of the at least one component and the wake-up conditions corresponding to the current application scenario of the electronic device includes: The application scenarios include at least a first application scenario and a second application scenario, wherein the first application scenario has a greater demand on the first graphics processor than the second application scenario has on the first graphics processor. The first graphics processor is woken up or turned off based on whether the current application scenario meets the first wake-up condition corresponding to the current application scenario and whether the running state of the at least one component meets the second wake-up condition corresponding to the current application scenario. The wake-up condition corresponding to the current application scenario includes the first wake-up condition and the second wake-up condition.
3. The method according to claim 2, In response to the current application scenario being the first application scenario, if the current application scenario meets the first wake-up condition, and the operating state of the at least one component does not meet the second wake-up condition, it is determined to shut down the first graphics processor. If the current application scenario meets the first wake-up condition, and the operating state of the at least one component meets the second wake-up condition, then the first graphics processor is determined to be woken up.
4. The method according to claim 2, In response to the current application scenario being the second application scenario, if the current application scenario does not meet the first wake-up condition, and the operating state of the at least one component does not meet the second wake-up condition, it is determined to shut down the first graphics processor. If the current application scenario does not meet the first wake-up condition, and the operating state of the at least one component meets the second wake-up condition, then the first graphics processor is determined to be woken up. If the current application scenario meets the first wake-up condition, but the running state of the at least one component does not meet the second wake-up condition, then the first graphics processor is determined to be turned off. If the current application scenario meets the first wake-up condition, and the operating state of the at least one component meets the second wake-up condition, then the first graphics processor is determined to be woken up.
5. The method according to claim 2, The operating status includes at least one of the following: second graphics processor utilization, battery level, and memory utilization; The second wake-up condition includes at least one of the following conditions: The utilization rate of the second graphics processor is greater than the preset threshold for the utilization rate of the second graphics processor corresponding to the current application scenario; The battery level is greater than the preset battery level threshold corresponding to the current application scenario. The memory usage rate is greater than the preset threshold for memory usage rate corresponding to the current application scenario.
6. The method according to claim 1, The step of determining whether to wake up the first graphics processor based on the operating state of the at least one component and the wake-up conditions corresponding to the current application scenario of the electronic device includes: The operating system sends a wake-up command to the first graphics processor. Based on the operating state of the at least one component and the wake-up conditions corresponding to the current application scenario of the electronic device, it is determined whether to intercept the wake-up command of the first graphics processor through the first controller, so as to determine whether to wake up the first graphics processor.
7. The method according to claim 6, The first controller is connected to the first graphics processor and the second controller respectively, and the second controller is connected to the first graphics processor. The second controller is used to connect the first graphics processor and the first processor. After determining whether to intercept the first graphics processor wake-up command via the first controller to determine whether to wake up the first graphics processor, the method further includes: In response to not waking up the first graphics processor, the first controller notifies the second controller to disconnect the channel with the first graphics processor and to control the disconnection of the power supply to the first graphics processor. In response to waking up the first graphics processor, the first controller notifies the second controller to open the channel between the second controller and the first graphics processor, and controls the power supply to the first graphics processor to be turned on.
8. The method according to claim 1, further comprising: In response to not waking up the first graphics processor, the data is processed by the second graphics processor.
9. An electronic device, comprising: A first controller, and a first graphics processor communicatively connected to the first controller; The first controller is capable of performing the following operations: The operating application scenarios of the electronic device are determined, wherein the operating application scenarios include multiple application scenarios, and each application scenario represents a different degree of demand on the first graphics processor; Obtain the wake-up conditions corresponding to each application scenario, and the wake-up conditions are used to determine whether to wake up the first graphics processor to work; Obtain the operating status of at least one component of an electronic device; Based on the operating state of the at least one component and the wake-up conditions corresponding to the current application scenario of the electronic device, determine whether to wake up the first graphics processor; The first graphics processor is configured to adjust to a working state or a turned-off state based on the wake-up operation of the first controller.
10. The electronic device according to claim 9, further comprising: A second controller is connected to both the first graphics processor and the first controller. The first controller is specifically used to: cause the second controller to disconnect or open the channel with the first graphics processor, and to control the disconnection or opening of the power supply to the first graphics processor.