Search

CN-121996302-A - Control method and electronic equipment

CN121996302ACN 121996302 ACN121996302 ACN 121996302ACN-121996302-A

Abstract

The invention provides a control method and electronic equipment, wherein the method comprises the steps of obtaining operation application scenes of the electronic equipment, wherein the operation application scenes comprise a plurality of application scenes, each application scene represents different requirements on a first graphic processor, obtaining wake-up conditions corresponding to each application scene, wherein the wake-up conditions are used for determining whether the first graphic processor is woken up to work, obtaining operation states of at least one component of the electronic equipment, and determining whether the first graphic processor is woken up or not based on the operation states of the at least one component and wake-up conditions corresponding to the current application scene of the electronic equipment.

Inventors

  • WU BIN
  • LI DAIYAO
  • ZHOU SHANG

Assignees

  • 联想(北京)有限公司

Dates

Publication Date
20260508
Application Date
20251231

Claims (10)

  1. 1. A control method, the method comprising: determining an operation application scene of the electronic equipment, wherein the operation application scene comprises a plurality of application scenes, and each application scene represents different requirements of the first graphic processor; Acquiring wake-up conditions corresponding to each application scene, wherein the wake-up conditions are used for determining whether to wake up the first graphic processor to work; acquiring an operating state of at least one component of the electronic device; And determining whether to wake up the first graphic processor based on the running state of the at least one component and a wake-up condition corresponding to the current application scene of the electronic equipment.
  2. 2. The method according to claim 1, The determining whether to wake up the first graphics processor based on the running state of the at least one component and the wake-up condition corresponding to the current application scene of the electronic device includes: The running application scene at least comprises a first application scene and a second application scene, and the first application scene has a requirement for the first graphic processor larger than that of the second application scene; And waking up or closing the first graphic processor according to whether the current application scene meets a first waking condition corresponding to the current application scene and whether the running state of the at least one component meets a second waking condition corresponding to the current application scene, wherein the waking conditions corresponding to the current application scene comprise the first waking condition and the second waking condition.
  3. 3. The method according to claim 2, Responding to the current application scene as a first application scene, and if the current application scene meets a first awakening condition, determining to close the first graphic processor if the running state of the at least one component does not meet a second awakening condition; And if the current application scene meets the first awakening condition, determining to awaken the first graphic processor when the running state of the at least one component meets the second awakening condition.
  4. 4. The method according to claim 2, Responding to the current application scene as a second application scene, and if the current application scene does not meet the first awakening condition, determining to close the first graphic processor, wherein the running state of the at least one component does not meet the second awakening condition; if the current application scene does not meet the first awakening condition, determining to awaken the first graphic processor when the running state of the at least one component meets the second awakening condition; If the current application scene meets the first wake-up condition, determining to close the first graphic processor if the running state of the at least one component does not meet the second wake-up condition; And if the current application scene meets the first awakening condition, determining to awaken the first graphic processor when the running state of the at least one component meets the second awakening condition.
  5. 5. The method according to claim 2, The running state comprises at least one of a second graphics processor utilization rate, a battery level and a memory utilization rate; The second wake-up condition includes at least one of the following conditions: the utilization rate of the second graphic processor is larger than a preset threshold value of the utilization rate of the second graphic processor corresponding to the current application scene; the battery electric quantity is larger than a battery electric quantity preset threshold value corresponding to the current application scene; and the memory usage rate is larger than a preset threshold value of the memory usage rate corresponding to the current application scene.
  6. 6. The method according to claim 1, The determining whether to wake up the first graphics processor based on the running state of the at least one component and the wake-up condition corresponding to the current application scene of the electronic device includes: the operating system sends a first graphics processor wake-up instruction to the first graphics processor; based on the running state of the at least one component and a wake-up condition corresponding to the current application scene of the electronic device, whether the first graphics processor wake-up instruction is intercepted by the first controller is determined, so that whether the first graphics processor is waken up is determined.
  7. 7. The method according to claim 6, wherein the method comprises, The first controller is respectively connected with the first graphic processor and the second controller, the second controller is connected with the first graphic processor, and the second controller is used for connecting the first graphic processor and the first processor; After determining whether to intercept the first graphics processor wake up instruction by a first controller to determine whether to wake up the first graphics processor, the method further comprises: Responsive to not waking the first graphics processor, the first controller notifies a second controller, causing the second controller to disconnect a channel with the first graphics processor, and control to disconnect power to the first graphics processor; In response to waking up the first graphics processor, the first controller notifies a second controller, causing the second controller to open a channel with the first graphics processor, and control to open power to the first graphics processor.
  8. 8. The method of claim 1, the method further comprising: in response to not waking the first graphics processor, data is processed by a second graphics processor.
  9. 9. An electronic device, comprising: a first controller, and a first graphics processor communicatively coupled to the first controller; The first controller is capable of: determining an operation application scene of the electronic equipment, wherein the operation application scene comprises a plurality of application scenes, and each application scene represents different requirements of the first graphic processor; Acquiring wake-up conditions corresponding to each application scene, wherein the wake-up conditions are used for determining whether to wake up the first graphic processor to work; acquiring an operating state of at least one component of the electronic device; determining whether to wake up the first graphic processor based on the running state of the at least one component and a wake-up condition corresponding to the current application scene of the electronic equipment; The first graphics processor is configured to adjust to a working state or a closed state based on a wake-up operation of the first controller.
  10. 10. The electronic device of claim 9, the electronic device further comprising: The second controller is respectively connected with the first graphic processor and the first controller; The first controller is specifically used for enabling the second controller to disconnect or open a channel between the second controller and the first graphic processor through the second controller and controlling to disconnect or open power supply of the first graphic processor.

Description

Control method and electronic equipment Technical Field The disclosure relates to the field of computer technology, and in particular, to a control method and an electronic device. Background In actual use, even if the independent graphics card (DISCRETE GRAPHICS Processing Unit, DGPU) is in a light load or non-GPU dependent scenario, the independent graphics card is frequently triggered to wake up in a short time, and each time the independent graphics card is woken up from a sleep state, short-time power consumption is generated. Disclosure of Invention The present disclosure provides a control method and an electronic device, so as to at least solve the above technical problems in the prior art. According to a first aspect of the present disclosure, there is provided a control method, the method comprising: determining an operation application scene of the electronic equipment, wherein the operation application scene comprises a plurality of application scenes, and each application scene represents different requirements of the first graphic processor; Acquiring wake-up conditions corresponding to each application scene, wherein the wake-up conditions are used for determining whether to wake up the first graphic processor to work; acquiring an operating state of at least one component of the electronic device; And determining whether to wake up the first graphic processor based on the running state of the at least one component and a wake-up condition corresponding to the current application scene of the electronic equipment. In an embodiment, the determining whether to wake up the first graphics processor based on the running state of the at least one component and a wake-up condition corresponding to a current application scenario of the electronic device includes: The running application scene at least comprises a first application scene and a second application scene, and the first application scene has a requirement for the first graphic processor larger than that of the second application scene; And waking up or closing the first graphic processor according to whether the current application scene meets a first waking condition corresponding to the current application scene and whether the running state of the at least one component meets a second waking condition corresponding to the current application scene, wherein the waking conditions corresponding to the current application scene comprise the first waking condition and the second waking condition. In an embodiment, in response to the current application scenario being the first application scenario, if the current application scenario meets a first wake-up condition, determining to close the first graphics processor if the running state of the at least one component does not meet a second wake-up condition; And if the current application scene meets the first awakening condition, determining to awaken the first graphic processor when the running state of the at least one component meets the second awakening condition. In an embodiment, in response to the current application scenario being the second application scenario, if the current application scenario does not satisfy the first wake-up condition, determining to close the first graphics processor if the running state of the at least one component does not satisfy the second wake-up condition; if the current application scene does not meet the first awakening condition, determining to awaken the first graphic processor when the running state of the at least one component meets the second awakening condition; If the current application scene meets the first wake-up condition, determining to close the first graphic processor if the running state of the at least one component does not meet the second wake-up condition; And if the current application scene meets the first awakening condition, determining to awaken the first graphic processor when the running state of the at least one component meets the second awakening condition. In an embodiment, the operation state includes at least one of a second graphics processor usage rate, a battery level, and a memory usage rate; The second wake-up condition includes at least one of the following conditions: the utilization rate of the second graphic processor is larger than a preset threshold value of the utilization rate of the second graphic processor corresponding to the current application scene; the battery electric quantity is larger than a battery electric quantity preset threshold value corresponding to the current application scene; and the memory usage rate is larger than a preset threshold value of the memory usage rate corresponding to the current application scene. In an embodiment, the determining whether to wake up the first graphics processor based on the running state of the at least one component and a wake-up condition corresponding to a current application scenario of the electronic device includes: the operating system sends a