CN116643642A - Power management method and device and computing equipment - Google Patents

Power management method and device and computing equipment Download PDF

Info

Publication number
CN116643642A
CN116643642A CN202310652197.6A CN202310652197A CN116643642A CN 116643642 A CN116643642 A CN 116643642A CN 202310652197 A CN202310652197 A CN 202310652197A CN 116643642 A CN116643642 A CN 116643642A
Authority
CN
China
Prior art keywords
screen
power management
state
management method
central processing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310652197.6A
Other languages
Chinese (zh)
Inventor
叶中玉
周鹏
陈毅翀
黄江慧
赵国安
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Uniontech Software Technology Co Ltd
Original Assignee
Uniontech Software Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Uniontech Software Technology Co Ltd filed Critical Uniontech Software Technology Co Ltd
Priority to CN202310652197.6A priority Critical patent/CN116643642A/en
Publication of CN116643642A publication Critical patent/CN116643642A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/3293Power saving characterised by the action undertaken by switching to a less power-consuming processor, e.g. sub-CPU
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/3246Power saving characterised by the action undertaken by software initiated power-off
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/325Power saving in peripheral device
    • G06F1/3265Power saving in display device
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/3287Power saving characterised by the action undertaken by switching off individual functional units in the computer system
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention discloses a power management method, a device and a computing device, relates to the technical field of power consumption optimization of computers, and aims to solve the problem that the power consumption of a display screen is only reduced, but the power consumption of a CPU (Central processing Unit) and a GPU (graphics processing Unit) is not reduced in a screen-off state in the existing power management mode. The power management method is executed in a first thread and a second thread which run simultaneously; the first thread performs the steps of: stopping displaying the server process in response to the automatic closing of the current computer screen; the second thread performs the steps of: judging whether the global load of the system reaches a preset threshold value or not and whether a screen is in a screen closing state or not; and when the global load of the system does not reach the threshold value and the screen is in the off-screen state, all the central processing units except the main central processing unit are disconnected. According to the invention, the power consumption of the GPU and the CPU can be reduced under the automatic screen closing scene, the battery endurance of equipment sensitive to power consumption such as a notebook computer is obviously improved, and the user experience is further improved.

Description

Power management method and device and computing equipment
Technical Field
The present invention relates to the field of power consumption optimization technologies of computers, and in particular, to a power management method, a device and a computing device.
Background
In Linux desktop systems, common power management modes such as screen shutdown, standby and dormancy generally exist, and the power management modes can achieve the purpose of reducing power consumption in a system idle scene. The system is realized by the general S3 and S4 system low power consumption standard in the standby and dormant states, and the system power consumption can be reduced to an extremely low level. In the current general system automatic screen closing scene, the state of a display power management system (display power manage system, dpms) of a connector is basically set to be in a closing state, and meanwhile, the backlight of a display can be closed through a notebook ec controller, which is equivalent to that the display does not display any image, so that the purpose of controlling display output is achieved. On conventional notebook computers, the overall power consumption of the system is typically contributed by the central processor, graphics cards, storage devices, display screens, and other peripherals. The display screen is used as main display output equipment, and the power consumption level is not low, so that under the condition that automatic screen closing is set, after a user does not operate the display screen for a period of time, the system can close the display screen to save power consumption and improve the cruising duration of the notebook.
Currently, most of common automatic screen locking schemes adopt xset command control self-contained screen protection programs. The flow associated with the shut down is shown in fig. 1. When the user leaves the screen, the screen protection program detects the activity state of the user, and starts to enter the screen closing process after the screen protection program is inactive for a period of time: the screen power state is set to off at the system level through the xset interface, then the bottom layer continues to call the kernel interface, and the display output is turned off through the drm display driver, where a kernel function such as drm_atom_connector_com_dpms is used to implement the turn-off display output.
The main application scenario of the power management mode is that the user does not operate the computer for a period of time, and in order to save power consumption, the effect of closing the screen is realized by closing the display output, and in the aspect of reducing the power consumption, the control of the power consumption of the display screen is mainly realized, and the power consumption of other typical devices is not limited, so that the power management mode cannot meet the requirement of the user on saving power in the scenario with high power consumption requirement.
In summary, the above-mentioned existing power management mode only reduces the power consumption of the display screen in the off-screen state, but does not reduce the power consumption of the CPU and GPU, and the overall power consumption of the system is still higher.
Disclosure of Invention
To this end, the present invention provides a power management method, apparatus, and computing device in an effort to solve or at least alleviate at least one of the problems presented above.
According to one aspect of the present invention, there is provided a power management method, executed in a first thread and a second thread running simultaneously; the first thread performs the steps of: stopping displaying the server process in response to the automatic closing of the current computer screen; the second thread performs the steps of: judging whether the global load of the system reaches a preset threshold value or not and whether the screen is in a screen closing state or not; and when the system global load does not reach the threshold value and the screen is in a screen-off state, all central processing units except the main central processing unit are disconnected.
Optionally, in the power management method according to the present invention, the first thread further performs the steps of: and responding to the awakening of the screen of the current computer, and continuing the display server process.
Optionally, in the power management method according to the present invention, the second thread further performs the steps of: and when the global load of the system reaches the threshold value and/or the screen is in a bright screen state, all central processing units are on line.
Optionally, in the power management method according to the present invention, the determining whether the global load of the system reaches a preset threshold includes: sampling the output of a global load updating function of the system according to a preset frequency; and judging whether the sampled system global load reaches a preset threshold value.
Optionally, in the power management method according to the present invention, the determining whether the global load of the system reaches a preset threshold includes: and judging whether the output of the system global load updating function reaches a preset threshold value.
Optionally, in the power management method according to the present invention, determining whether the screen is in a screen-off state includes: if the screen closing mark is identified, the screen is in a screen closing state; if the bright screen mark is identified, the screen is in a bright screen state; the screen closing mark is set when the display server process is stopped, and the screen brightening mark is set when the display server process is continued.
According to another aspect of the present invention, there is also provided a power management apparatus including: a display service stopping unit adapted to stop the display server process in response to the screen of the current computer being closed; the judging unit is suitable for judging whether the global system load reaches a preset threshold value and whether the screen is in a screen-closing state, and the central processing unit offline unit is suitable for offline all the central processing units except the main central processing unit when the global system load does not reach the threshold value and the screen is in the screen-closing state.
Optionally, in the power management device according to the present invention, the power management device further includes: a display service continuing unit adapted to continue the display server process in response to the screen of the current computer being awakened; and a central processing unit on line, which is suitable for all central processing units on line when the global load of the system reaches the threshold value and/or the screen is in a bright screen state.
According to another aspect of the present invention, there is also provided a computing device including: at least one processor and a memory storing program instructions; the program instructions, when read and executed by a processor, cause the computing device to perform the power management method as described above.
According to still another aspect of the present invention, there is also provided a readable storage medium storing program instructions that, when read and executed by a computing device, cause the computing device to perform the power management method as above.
The power management method stops the work of the GPU when the screen is closed, and only keeps the normal work of the main CPU when the screen is closed and the global load of the system is lower.
According to the power management method, the power management device and the computing equipment, at least one of the following beneficial effects can be achieved: under the automatic screen closing scene, unnecessary display data submitting operation is reduced by stopping the process of the display server, and the power consumption of the GPU is reduced; in the screen closing state, the unnecessary CPU is disconnected through the real-time monitoring of the CPU load, so that the purpose of reducing the CPU power consumption is achieved; through the operation, the power consumption of the computer system can be obviously reduced, the battery endurance of equipment sensitive to the power consumption such as a notebook computer is obviously improved, and further the user experience is improved.
Drawings
To the accomplishment of the foregoing and related ends, certain illustrative aspects are described herein in connection with the following description and the annexed drawings, which set forth the various ways in which the principles disclosed herein may be practiced, and all aspects and equivalents thereof are intended to fall within the scope of the claimed subject matter. The above, as well as additional objects, features, and advantages of the present disclosure will become more apparent from the following detailed description when read in conjunction with the accompanying drawings. Like reference numerals generally refer to like parts or elements throughout the present disclosure.
FIG. 1 illustrates a flow chart relating to a shut down in part in accordance with the background of the invention;
FIG. 2 shows a schematic diagram of a computing device 200 according to one embodiment of the invention;
FIG. 3 illustrates a flow chart of a power management method 300 according to one embodiment of the invention;
FIG. 4 illustrates a flow diagram of a first thread 310 according to one embodiment of the invention;
FIG. 5 illustrates a flow diagram of a second thread 320 according to one embodiment of the invention;
fig. 6 shows a schematic structural diagram of a power management apparatus 600 according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Aiming at the problem that the power consumption of a display screen is only reduced in the screen closing state in the existing power management mode, but the power consumption of a CPU and a GPU is not reduced, and the overall power consumption of the system is still higher, the invention provides a power management method which can reduce the power consumption of the GPU and the CPU in the automatic screen closing state.
FIG. 2 shows a schematic diagram of a computing device 200 according to one embodiment of the invention. It should be noted that the computing device 200 shown in fig. 2 is only an example, and in practice, the computing device for implementing the power management method of the present invention may be any type of device, and the hardware configuration of the computing device may be the same as the computing device 200 shown in fig. 2 or may be different from the computing device 200 shown in fig. 2. In practice, the computing device for implementing the power management method of the present invention may add or delete hardware components of the computing device 200 shown in fig. 2, and the present invention is not limited to the specific hardware configuration of the computing device.
As shown in fig. 2, computing device 200 includes memory 210, one or more central processors 220, and a graphics processor 230.
The central processor 220 may be any type of processing depending on the desired configuration, including, but not limited to: a microprocessor (μp), a microcontroller (μc), a digital information processor (DSP), or any combination thereof.
Depending on the desired configuration, memory 210 may be any type of memory, including, but not limited to: volatile memory (such as RAM), non-volatile memory (such as ROM, flash memory, etc.), or any combination thereof. The memory 210 may include an operating system 211, program instructions 212 to perform the power management method, and program data 213, the program data 213 may store a preset threshold of the total load of the central processor.
Computing device 200 may also include a display screen 240.
Computing device 200 may be implemented as a server, such as a file server, database server, application server, WEB server, etc., as well as a personal computer including desktop and notebook computer configurations. Of course, computing device 200 may also be implemented as part of a small-sized portable (or mobile) electronic device. In an embodiment in accordance with the present invention, the computing device 200 is configured to perform a power management method 300 in accordance with the present invention.
The power management method 300 according to the embodiment of the present invention is executed in a first thread and a second thread that run simultaneously; the first thread performs the steps of: stopping displaying the server process in response to the automatic closing of the current computer screen; the second thread performs the steps of: judging whether the global load of the system reaches a preset threshold value or not and whether a screen is in a screen closing state or not; and when the global load of the system does not reach the threshold value and the screen is in a screen-off state, all central processing units except the main central processing unit are disconnected.
Fig. 3 shows a flow chart of a power management method 300 according to one embodiment of the invention. The method 300 is performed in a computing device (e.g., the aforementioned computing device 200) for automatically controlling the power consumption of the CPU and GPU in an off-screen state.
After the computer is started, the screen saver continuously monitors the activity state of the user, and enters a screen closing process after being continuously inactive for a period of time. On the operating system level, the screen closing flow is as follows: the screen power state is set to off, i.e., the property of dpms is set to off through the xset interface. At this point, on the kernel level, the shut-down flow will call the kernel interface to set the connector's dpms attribute to off, and then enter method 300. The method 300 is attributed to the kernel layer.
As shown in fig. 3, the method 300 is performed in a first thread 310 and a second thread 320 that run simultaneously.
The first thread 310 begins at 311.
In 311, the display server process is stopped in response to the screen of the current computer being closed.
The screen in 311 is turned off, which means that the relevant kernel interface sets the dpms attribute of the connector to off, and this operation is that the kernel actually outputs an instruction, and 311 uses this instruction as a trigger condition, under this trigger condition, in order to avoid the increase of power consumption caused by dynamically rendering the screen locking interface, the kernel will send a stop signal to the display server program to stop the display server process. Taking the linux system as an example, when the state of dpms is monitored to be changed from on to off, the xorg process is stopped. Next, the dpms attribute is set to off and the display output is turned off.
Stopping the display server process may be implemented by the following code:
static void stop_output(void)
stopping the process of the display server side in the screen closing state can avoid occupying a large amount of GPU resources under the condition of no display output, and achieves the purpose of reducing the power consumption of the GPU.
According to one implementation, a screen off flag, which is a pre-created parameter, e.g., a pre-created parameter a, a=1 indicates that the screen is turned off, may also be set while stopping the xorg process. And (3) assigning 1 to the parameter a while stopping the display server process. The subsequent program may judge the current state of the screen according to the value of the parameter a.
According to one implementation, when the screen wakes up, the server process continues to be displayed. Likewise, while continuing to display the server-side process, a bright screen flag may also be set. Similar to the off-screen mark, the on-screen mark is also a pre-created parameter, e.g., the parameter b, b=1, indicates that the screen is awake. While continuing to display the server process, assign 1 to parameter b. The subsequent program may judge the current state of the screen according to the value of the parameter b.
According to one implementation, the same parameter may be used as a screen-off/screen-on flag, e.g. the parameter c is created in advance, c=0 indicating that the screen is turned off and c=1 indicating that the screen is awakened. And (3) assigning 0 to the parameter c while stopping displaying the server process, and assigning 1 to the parameter c while continuing displaying the server process. The subsequent program may judge the current state of the screen according to the value of the parameter c.
The screen closing mark and the screen brightening mark are records of screen states, and a subsequent program can mark the current state of the screen according to the screen closing mark and the screen brightening mark.
FIG. 4 illustrates an exemplary flow diagram of a first thread 310 according to one embodiment of the invention. As shown in FIG. 4, after the computer is started, the screen saver continuously monitors the activity state of the user, and enters the screen closing process after being inactive for a period of time. At the operating system level, the off-screen flow sets the screen power state to off, i.e., sets the dpms attribute to off. At this point, on the kernel level, the kernel interface is invoked to set the connector's dpms attribute to off, and then the first thread 310 is entered. In the first thread 310, when the dpms attribute is identified as off, setting a screen closing mark, and stopping the xorg process; next, the dpms attribute is set to off and the display output is turned off; when the screen wakes up, a bright screen flag is set and the xorg process continues.
The second thread 320 begins at 321.
In 321, it is determined whether the system global load (cpu_load) reaches a preset threshold and whether the screen is in a screen-off state.
A computer may include multiple CPUs, where cpu_load refers to the sum of the loads of all the CPUs of the current computer, and cpu_load may be obtained by a cpu_load update function, which obtains updates at a fixed frequency.
According to one implementation, the cpu_load is sampled according to a preset sampling frequency, and whether the cpu_load reaches a threshold value is judged after each sampling is completed. The sampling frequency is set to be too high, the situation that the CPU_load values acquired twice consecutively are the same frequently occurs, and the sampling frequency is set to be lower, so that the power consumption generated in the sampling and judging process can be reduced to a certain extent.
According to another implementation, it is determined whether the cpu_load reaches a threshold value each time the cpu_load is updated. The following code may be used to obtain the current cpu_load and determine whether the cpu_load reaches the threshold:
static bool is_loadavg_over(void)
compared with the last implementation mode, the implementation mode can timely judge when the CPU_load changes, and further timely adjust the CPU on-line or off-line.
In addition to the cpu_load, the screen state needs to be determined, and whether the screen state is closed is determined.
According to one implementation, the determination may be made according to a dpms attribute that is continuously output by the kernel, where a dpms attribute of off indicates that the screen is turned off, or else, indicates that the screen is awakened.
According to another implementation, the determination may be made based on the off-screen flag set in 311. If a screen-off flag can be identified (e.g., see the value of a, if a=1), then the current screen state is indicated as off.
Next, at 322, when the system global load does not reach the threshold and the screen is in a off-screen state, all central processors except the main central processor are off-line (offline).
The other CPUs except the main CPU can be connected with the following codes:
static void down_inactive_cpu(void)
the offline is an instruction issued to the CPU, and after receiving the offline instruction, the CPU of different architecture may perform different processes, such as cutting off the power supply of the CPU, or simply stopping the current data processing operation of the CPU.
If the judging result of 321 is that the cpu_load does not reach the threshold value and the screen state is off, the whole CPU except the main CPU is disconnected to reduce the power consumption of the idle CPU.
According to one implementation, all CPUs are on-line (online) when CPU_load reaches a threshold but the screen state is off, or CPU_load does not reach a threshold but the screen state is on, or CPU_load reaches a threshold and the screen state is on. The bright screen means that the user is in an active state and should put all CPUs into operation to meet the user's demands for computer performance.
FIG. 5 illustrates a flow diagram of a second thread 320 according to one embodiment of the invention. As shown in fig. 5, the current system global load is monitored; if the global load of the system is lower than the threshold value and the screen is in a screen closing state, all CPUs except the main CPU are offained; and if the screen is in a bright screen state or the global system load reaches a threshold value, all CPUs are connected.
The system power consumption information can be generally obtained by testing current and voltage information under AC power supply of a computer through professional equipment, for example, test data under the scene of automatic screen closing on a certain Arm64 architecture notebook is as follows: the power consumption is 21.2W by adopting the power management scheme in the prior art; by adopting the power management method of the embodiment of the invention, the power consumption is only 16.7W. Therefore, the power management method of the embodiment of the invention can effectively reduce the system power consumption in the automatic screen closing scene.
Embodiments of the present invention also provide a power management apparatus 600 capable of performing the processing of the steps of the power management method 300 as described above. Next, the above-described power management apparatus 600 is described with reference to fig. 6.
As shown in fig. 6, the power management apparatus 600 includes a display service stop unit 610, a determination unit 620, and a central processing unit offline unit 630.
The display service stopping unit 610 is adapted to stop the display server process in response to the screen of the current computer being turned off.
The determining unit 620 is adapted to determine whether the global system load reaches a preset threshold value and whether the screen is in a screen-off state, and
the central processor off-line unit 630 is adapted to off-line all central processors except the main central processor when the system global load does not reach the threshold and the screen is in a off-screen state.
According to one implementation, the power management device 600 further includes a display service continuation unit and a central processing unit on-line unit.
The display service continuation unit is adapted to continue the display server process in response to the screen of the current computer being awakened.
The central processing unit on-line unit is suitable for on-line all central processing units when the global load of the system reaches the threshold value and/or the screen is in a bright screen state.
According to one implementation manner, the determining whether the global load of the system reaches a preset threshold includes:
sampling the output of a global load updating function of the system according to a preset frequency; and
and judging whether the sampled global load of the system reaches a preset threshold value.
According to one implementation manner, the determining whether the global load of the system reaches a preset threshold includes:
and judging whether the output of the system global load updating function reaches a preset threshold value.
According to one implementation, determining whether the screen is in a closed screen state includes:
if the screen closing mark is identified, the screen is in a screen closing state; and
if the bright screen mark is identified, the screen is in a bright screen state;
the screen closing mark is set when the display server process is stopped, and the screen brightening mark is set when the display server process is continued.
The various techniques described herein may be implemented in connection with hardware or software or, alternatively, with a combination of both. Thus, the methods and apparatus of the present invention, or certain aspects or portions of the methods and apparatus of the present invention, may take the form of program code (i.e., instructions) embodied in tangible media, such as removable hard drives, U-drives, floppy diskettes, CD-ROMs, or any other machine-readable storage medium, wherein, when the program is loaded into and executed by a machine, such as a computer, the machine becomes an apparatus for practicing the invention.
In the case of program code execution on programmable computers, the computing device will generally include a processor, a storage medium readable by the processor (including volatile and non-volatile memory and/or storage elements), at least one input device, and at least one output device. Wherein the memory is configured to store program code; the processor is configured to perform the power management method of the present invention in accordance with instructions in said program code stored in the memory.
By way of example, and not limitation, readable media comprise readable storage media and communication media. The readable storage medium stores information such as computer readable instructions, data structures, program modules, or other data. Communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media. Combinations of any of the above are also included within the scope of readable media.
In the description provided herein, algorithms and displays are not inherently related to any particular computer, virtual system, or other apparatus. Various general-purpose systems may also be used with examples of the invention. The required structure for a construction of such a system is apparent from the description above. In addition, the present invention is not directed to any particular programming language. It should be appreciated that the teachings of the present invention as described herein may be implemented in a variety of programming languages and that the foregoing descriptions of specific languages are provided for disclosure of preferred embodiments of the present invention.
In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be construed as reflecting the intention that: i.e., the claimed invention requires more features than are expressly recited in each claim. Those skilled in the art will appreciate that the modules or units or components of the devices in the examples disclosed herein may be arranged in a device as described in this embodiment, or alternatively may be located in one or more devices different from the devices in this example. The modules in the foregoing examples may be combined into one module or may be further divided into a plurality of sub-modules.
Those skilled in the art will appreciate that the modules in the apparatus of the embodiments may be adaptively changed and disposed in one or more apparatuses different from the embodiments. The modules or units or components of the embodiments may be combined into one module or unit or component and, furthermore, they may be divided into a plurality of sub-modules or sub-units or sub-components. Any combination of all features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or units of any method or apparatus so disclosed, may be used in combination, except insofar as at least some of such features and/or processes or units are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings), may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features but not others included in other embodiments, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. Furthermore, some of the embodiments are described herein as methods or combinations of method elements that may be implemented by a processor of a computer system or by other means of performing the functions. Thus, a processor with the necessary instructions for implementing the described method or method element forms a means for implementing the method or method element. Furthermore, the elements of the apparatus embodiments described herein are examples of the following apparatus: the apparatus is for carrying out the functions performed by the elements for carrying out the objects of the invention.
As used herein, unless otherwise specified the use of the ordinal terms "first," "second," "third," etc., to describe a general object merely denote different instances of like objects, and are not intended to imply that the objects so described must have a given order, either temporally, spatially, in ranking, or in any other manner.
While the invention has been described with respect to a limited number of embodiments, those skilled in the art, having benefit of the above description, will appreciate that other embodiments are contemplated within the scope of the invention as described herein. Furthermore, it should be noted that the language used in the specification has been principally selected for readability and instructional purposes, and may not have been selected to delineate or circumscribe the inventive subject matter.

Claims (10)

1. A power management method is executed in a first thread and a second thread running simultaneously;
the first thread performs the steps of:
stopping displaying the server process in response to the automatic closing of the current computer screen;
the second thread performs the steps of:
judging whether the global load of the system reaches a preset threshold value or not and whether the screen is in a screen closing state or not; and
when the system global load does not reach the threshold value and the screen is in a screen-off state, all central processing units except the main central processing unit are disconnected.
2. The power management method of claim 1, wherein the first thread further performs the steps of:
and responding to the awakening of the screen of the current computer, and continuing the display server process.
3. The power management method of claim 1 or 2, wherein the second thread further performs the steps of:
and when the global load of the system reaches the threshold value and/or the screen is in a bright screen state, all central processing units are on line.
4. A power management method according to any one of claims 1 to 3, wherein said determining whether the system global load reaches a preset threshold comprises:
sampling the output of a global load updating function of the system according to a preset frequency; and
and judging whether the sampled global load of the system reaches a preset threshold value.
5. A power management method according to any one of claims 1 to 3, wherein said determining whether the system global load reaches a preset threshold comprises:
and judging whether the output of the system global load updating function reaches a preset threshold value.
6. The power management method according to any one of claims 1 to 5, wherein determining whether the screen is in a screen-off state comprises:
if the screen closing mark is identified, the screen is in a screen closing state; and
if the bright screen mark is identified, the screen is in a bright screen state;
the screen closing mark is set when the display server process is stopped, and the screen brightening mark is set when the display server process is continued.
7. A power management apparatus comprising:
a display service stopping unit adapted to stop the display server process in response to the screen of the current computer being closed;
a judging unit adapted to judge whether the global load of the system reaches a preset threshold value, and whether the screen is in a screen-off state, and
and the central processing unit offline unit is suitable for offline all the central processing units except the main central processing unit when the global system load does not reach the threshold value and the screen is in a screen-closing state.
8. The power management apparatus of claim 7, wherein the power management apparatus further comprises:
a display service continuing unit adapted to continue the display server process in response to the screen of the current computer being awakened; and
and the central processing unit on-line unit is suitable for on-line all the central processing units when the global load of the system reaches the threshold value and/or the screen is in a bright screen state.
9. A computing device, comprising:
at least one processor and a memory storing program instructions;
the program instructions, when read and executed by the processor, cause the computing device to perform the power management method of any of claims 1-6.
10. A readable storage medium storing program instructions which, when read and executed by a computing device, cause the computing device to perform the power management method of any of claims 1-6.
CN202310652197.6A 2023-06-02 2023-06-02 Power management method and device and computing equipment Pending CN116643642A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310652197.6A CN116643642A (en) 2023-06-02 2023-06-02 Power management method and device and computing equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310652197.6A CN116643642A (en) 2023-06-02 2023-06-02 Power management method and device and computing equipment

Publications (1)

Publication Number Publication Date
CN116643642A true CN116643642A (en) 2023-08-25

Family

ID=87624448

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310652197.6A Pending CN116643642A (en) 2023-06-02 2023-06-02 Power management method and device and computing equipment

Country Status (1)

Country Link
CN (1) CN116643642A (en)

Similar Documents

Publication Publication Date Title
US9383813B2 (en) Dynamic control of reduced voltage state of graphics controller component of memory controller
KR101429299B1 (en) Adaptive power management
US6298448B1 (en) Apparatus and method for automatic CPU speed control based on application-specific criteria
US8762757B2 (en) Power management method and device thereof
US8082459B2 (en) Power management based on policy
JP4380986B2 (en) Clock control device and recording medium therefor
JP4437137B2 (en) Adjustment of computer system power policy in response to positive instructions from users
US7831850B2 (en) Hybrid operating systems for battery powered computing systems
US7869835B1 (en) Method and system for pre-loading and executing computer instructions within the cache memory
KR101471303B1 (en) Device and method of power management for graphic processing unit
US20060020835A1 (en) Method and apparatus for dynamic DLL powerdown and memory self-refresh
JPH08503566A (en) Method for automatically reducing power consumption of computer equipment
US20150100801A1 (en) Predictive power management based on user category
US7536511B2 (en) CPU mode-based cache allocation for image data
JP2004139613A (en) Power management in data processing system based on processor usage status
US6560713B1 (en) Computer power management system using auxiliary power supply during sleep state to provide power to all devices if sufficient and reducing load if not sufficient
CN116643642A (en) Power management method and device and computing equipment
KR20060032079A (en) Apparatus and method for controling power saving by devices of executed program
US20110154074A1 (en) Power management method and computer system applying the same
CN116643641A (en) Instruction processing method and device, computer readable medium and processor
TWI405077B (en) Power-saving computer system, graphics processing module, and the power saving method thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination