Control method of electronic equipment and electronic equipment
By obtaining operating status information and using the performance power consumption model to adjust parameters such as PL1, PL2, and EPP, the contradiction between power consumption and performance is resolved, and the user experience of electronic devices is improved.
Patent Information
- Application Number
- CN202410235500.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-29
- Publication Date
- 2025-09-05
AI Technical Summary
In the prior art, reducing the power consumption of electronic devices will lead to limited operating performance and affect user experience.
By obtaining the operating status information of the current operating scenario, the performance power consumption model is used to determine the target values of the operating parameters that can still ensure a certain operating performance while reducing power consumption, including the adjustment of parameters such as PL1, PL2, and EPP.
This achieves the goal of reducing the power consumption of electronic devices while maintaining or improving operating performance and enhancing user experience.
Smart Images

Figure CN120595928A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of power electronics technology, and in particular to a control method for an electronic device and the electronic device. Background Art
[0002] As the performance of electronic devices improves, their power consumption also increases. In order to improve the user experience, the power consumption of electronic devices can be reduced and the battery life of electronic devices can be increased.
[0003] However, if we simply reduce the power consumption of electronic devices, the operating performance of the electronic devices will be limited, such as the operating speed and response speed will be slowed down, affecting the user experience. Summary of the Invention
[0004] The embodiments of the present application provide a control method for an electronic device and an electronic device, which are used to reduce operating power consumption while ensuring certain operating performance and improving user experience.
[0005] To achieve the above objectives, the embodiments of the present application adopt the following technical solutions:
[0006] In a first aspect, a method for controlling an electronic device is provided, which is applied to the electronic device and includes: obtaining operating status information in a current operating scenario; wherein the operating scenario is used to describe a scenario in which the electronic device responds to a user operation to perform a task in a focus window; the operating status information is used to characterize the hardware operating status and / or system operating status when the electronic device operates the focus window; determining a target value of a first operating parameter based on the operating status information; wherein the first operating parameter is a parameter that affects the operating power consumption and operating performance of the electronic device; and controlling the electronic device based on the target value of the first operating parameter.
[0007] In this application, when an electronic device is in an operating scenario, operating status information corresponding to the current operating scenario can be obtained. Based on this operating status information, a target value of an operating parameter is obtained that reduces operating power consumption while ensuring certain operating performance. Because the target value of the operating parameter has the property of reducing the operating power consumption of the electronic device while ensuring certain operating performance, the electronic device can reduce operating power consumption while ensuring certain operating performance when operating at the target value of the operating parameter, thereby improving the user experience.
[0008] In combination with the first aspect, in a possible design method, the target value of the first operating parameter is determined based on the operating status information, including: inputting the operating status information into a performance power consumption model to obtain the target value of the first operating parameter; wherein the performance power consumption model is used to characterize the mapping relationship between the operating status information of the operating scenario and the target value of the first operating parameter.
[0009] That is, through the trained performance and power consumption model, the target values of the operating parameters can be obtained which can reduce the operating power consumption while ensuring a certain operating performance.
[0010] In combination with the first aspect, in a possible design method, the operating status information is input into the performance power consumption model to obtain the target value of the first operating parameter, including: in response to a first event, the operating status information is input into the performance power consumption model to obtain the target value of the first operating parameter; wherein the first event is an event that affects the operating performance of the electronic device.
[0011] In this application, the first event is an event that affects the operating performance of the electronic device. When the first event occurs, it indicates that the operating performance of the electronic device has degraded, and generally needs to be quickly improved. In addition, since the performance power consumption model can be used to quickly output parameters of the electronic device related to limiting power consumption and improving the operating performance of the electronic device, the electronic device can use the performance power consumption model to quickly output such operating parameters, quickly improve the operating performance of the electronic device, and enhance the user experience.
[0012] In combination with the first aspect, in a possible design method, the first event includes: one or more of: a user operation event on the focus window, a freeze event, a chip performance limitation event, or a performance power consumption model training event.
[0013] In combination with the first aspect, in a possible design manner, the operation event includes: one or more of a mouse click event, a keyboard input event, or an operation event for switching applications.
[0014] In conjunction with the first aspect, in one possible design, the method further includes: in response to a second event, obtaining a target value of a second operating parameter corresponding to the current operating scenario; wherein the second operating parameter is a parameter that affects the power consumption of the electronic device;
[0015] Obtain preset identification information of the current operating scenario; wherein the preset identification information is used to characterize the target tendency of the electronic device in the current operating scenario, and the target tendency includes a tendency to reduce operating power consumption or a tendency to improve operating performance; based on the target value of the first operating parameter, control the electronic device, including: under a first condition, based on the target value of the first operating parameter, control the electronic device; wherein the first condition includes: the target tendency is to tend to reduce operating power consumption, and compared with using the target value of the second operating parameter to control the electronic device, when the target value of the first operating parameter is used to control the electronic device, the power consumption of the electronic device is low; or, the target tendency is to tend to improve operating performance, and compared with using the target value of the second operating parameter to control the electronic device, when the target value of the first operating parameter is used to control the electronic device, the operating performance of the electronic device is high.
[0016] In this application, the electronic device determines the selection method of operating parameters according to the target tendency, accurately controls the operation of the electronic device, and improves the user experience.
[0017] In combination with the first aspect, in a possible design method, the method also includes: under a second condition, controlling the electronic device based on the target value of the second operating parameter; wherein the second condition includes: the target tendency is to tend to reduce operating power consumption, and compared with using the target value of the second operating parameter to control the electronic device, when the target value of the first operating parameter is used to control the electronic device, the power consumption of the electronic device is low; or, the target tendency is to tend to improve operating performance, and compared with using the target value of the second operating parameter to control the electronic device, when the target value of the first operating parameter is used to control the electronic device, the operating performance of the electronic device is high.
[0018] In this application, the electronic device determines the selection method of operating parameters according to the target tendency, accurately controls the operation of the electronic device, and improves the user experience.
[0019] In combination with the first aspect, in a possible design method, the performance power consumption model includes a user experience impairment rate prediction model and an operating parameter output module; wherein, the user experience impairment rate prediction model is used to output multiple user experience impairment rates corresponding to multiple numerical values of the first operating parameter and experience impairment labels or experience non-impaired labels of multiple numerical values of the first operating parameter; wherein, the multiple numerical values and the multiple user experience impairment rates correspond one to one; the operating parameter output module is used to select, from the multiple numerical values of the first operating parameter, the minimum numerical value marked with the experience non-impaired label and the user experience impairment rate less than a preset value as the target value of the first operating parameter.
[0020] In combination with the first aspect, in a possible design method, the method also includes: in a preset operating scenario, operating the electronic device with operating status information corresponding to the preset operating scenario, obtaining hardware limitation information corresponding to multiple values of the first operating parameter; if the hardware limitation information corresponding to the first value among the multiple values of the first operating parameter meets the preset restriction condition, then labeling the first value of the first operating parameter with an experience impairment label; if the hardware limitation information corresponding to the second value among the multiple values of the first operating parameter does not meet the preset restriction condition, then labeling the second value of the first operating parameter with an experience non-impaired label; determining the user experience impairment rate corresponding to the multiple values of the first operating parameter one by one; wherein the user experience impairment rate is the ratio of the number of performance limitations detected by the operating system of the electronic device to the number of detections in the preset operating scenario; and training a user experience impairment rate prediction model based on the operating status information, the labeled first value of the first operating parameter, the labeled second value of the first operating parameter and the user experience impairment rate.
[0021] It can be understood that the values of the operating parameters in the training samples are marked with the experience impairment label, the experience non-impaired label and the user experience impairment rate. The experience impairment label can characterize whether it affects the hardware performance (operating power consumption) of the electronic device, and the user experience impairment rate is used to characterize the magnitude of the impact on the operating performance of the electronic device. By using the training sample to train the user experience impairment rate prediction model, the electronic device can obtain the values of the operating parameters that can indicate whether it affects the operating power consumption and operating performance of the electronic device through the trained user experience impairment rate prediction model, and obtain the target value of the operating parameter that reduces the operating power consumption of the electronic device and improves the operating performance of the electronic device. The electronic device uses the target value of the operating parameter to control the electronic device, which can reduce the operating power consumption of the electronic device and improve the operating performance of the electronic device, thereby improving the user experience.
[0022] In a second aspect, an electronic device is provided, the electronic device comprising: a memory and one or more processors;
[0023] The memory is used to store computer program code, which includes computer instructions. When the computer instructions are executed by the processor, the electronic device executes the control method of the electronic device in any possible design method in the first aspect.
[0024] In a third aspect, a computer-readable storage medium is provided, comprising computer instructions; when the computer instructions are executed on an electronic device, the electronic device executes a method for controlling an electronic device in any possible design manner as in the first aspect.
[0025] In a fourth aspect, a computer program product is provided. When the computer program product is run on a computer, the computer is caused to execute the control method of the electronic device in any possible design manner as in the first aspect.
[0026] Among them, the technical effects brought about by any design method in the second, third and fourth aspects can refer to the technical effects brought about by different design methods in the first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 A schematic structural diagram of an electronic device 100 provided in an embodiment of the present application is shown;
[0028] Figure 2 A schematic diagram showing the interaction principle of modules related to operation strategy control in an electronic device 100 is shown;
[0029] Figure 3 A schematic diagram of modules related to operation strategy control in an electronic device 100 is shown;
[0030] Figure 4 A schematic flow chart of a method for controlling an electronic device is shown;
[0031] Figure 5 A schematic diagram of an interface provided by an embodiment of the present application is shown;
[0032] Figure 6 A schematic flow chart of a method for determining a performance power consumption model is shown;
[0033] Figure 7 A schematic diagram showing a process of obtaining training sample data;
[0034] Figure 8 A schematic diagram of obtaining the average duration of hardware performance limitation is shown;
[0035] Figure 9 A schematic diagram of the workflow of software and hardware for controlling operating parameters of the electronic device 100 is shown. DETAILED DESCRIPTION
[0036] In the following, the terms "first" and "second" are used for descriptive purposes only and should not be understood to indicate or imply relative importance or implicitly specify the number of the technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this embodiment, unless otherwise specified, "plurality" means two or more.
[0037] To make the description of the following embodiments clear and concise, a brief introduction to the relevant concepts or technologies is first given:
[0038] (1) Focus window refers to the window with focus. The focus is the location where the cursor is currently active. In other words, the focus window is the window where the cursor is currently active. The focus window is the current operating window and can receive keyboard input. In general, the window with a non-gray title bar is the focus window.
[0039] (2) Operation scenario: The operation scenario is used to describe the situation in which the electronic device responds to user operations to perform tasks in the focus window, where the task refers to the execution content related to the function provided by the focus window. For example, the operation scenario of the electronic device may include video scenarios, game scenarios, social scenarios, office scenarios, browser scenarios, smart interconnection scenarios, evaluation scenarios, programming scenarios, hyperterminal scenarios, design software scenarios, process startup scenarios, large file opening scenarios, etc.
[0040] The task corresponding to the video scene can be playing videos; the task corresponding to the game scene can be playing games; the task corresponding to the social scene can be voice chat, video chat, typing chat, etc.; the task corresponding to the office scene can be editing documents; the task corresponding to the browser scene can be browsing the web; the task corresponding to the smart interconnection scene can be sharing information after multiple electronic devices are interconnected, and the task corresponding to the evaluation scene can be experimental analysis of the performance of electronic devices; the task corresponding to the programming scene can be programming; the task corresponding to the super terminal scene can be that an electronic device can operate one or more other electronic devices, the task corresponding to the design software scene can be designing software, and the task corresponding to the process startup scene can be memory management, task scheduling, etc.; the large file opening scene can be a file opening scene that exceeds the preset file size, etc.
[0041] Video scenarios can further include video playback, video browsing, and video commentary. Social scenarios can further include text chat, voice chat, and video chat. Office scenarios can further include document editing, document browsing, and video conferencing, which can also be referred to as specialized office software operation scenarios. Browser scenarios can include web browsing and video playback.
[0042] (3) Power consumption scenarios: Power consumption scenarios are operating scenarios that are mainly aimed at reducing the power consumption of electronic equipment, such as office scenarios, social scenarios, etc.
[0043] (4) Performance scenarios: Performance scenarios are operating scenarios that take into account the operating performance of electronic devices while reducing the power consumption of electronic devices, such as programming scenarios, video scenarios, game scenarios, large file opening scenarios (file opening scenarios exceeding the preset file size), etc.
[0044] (5) Power Limit (PL), which is used to limit the power consumption of the central processing unit (CPU) in electronic devices. Generally, the level of power consumption limit on the CPU can be expressed in the form of "PL+number". Among them, the "number" in "PL+number" represents a specific level. For example, the levels of power consumption limit on the CPU include four levels from small to large, namely PL1, PL2, PL3, and PL4. The smaller the number, the lower the power consumption limit level. The embodiments of the present application mainly involve PL1 and PL2, and PL1 and PL2 are mainly introduced below.
[0045] (6) PL1, also known as long-term turbo power consumption, when the CPU is under long-term load, it will basically maintain this power consumption.
[0046] (7) PL2, also known as short-term turbo power consumption. Generally, PL2 is greater than PL1 and is the maximum power consumption that the CPU can achieve under short-term load, which is also the upper limit of the CPU performance of electronic devices.
[0047] (8) CPU energy performance preference (EPP) is used to reflect the CPU scheduling tendency, and its value range is 0 to 255. The smaller the CPU EPP, the higher the CPU EPP, the lower the CPU power consumption.
[0048] (9) Power consumption wall: A threshold at which the CPU releases maximum power. If this threshold is exceeded, the processor will run at a reduced frequency.
[0049] (10) BIOS (Basic Input / Output System) is short for ROM-BIOS, which stands for Read-Only Memory Basic Input / Output System. It is actually a set of programs that are embedded in electronic devices and provide the lowest-level and most direct hardware control for electronic devices. It is the hub connecting software programs and hardware devices. In layman's terms, BIOS is a "converter" or interface between hardware and software programs (although it is itself just a program), responsible for solving the immediate requirements of the hardware and executing the specific operations required by the software on the hardware.
[0050] As mentioned in the background technology section above, to improve the user experience, the power consumption of electronic devices can be reduced and their battery life can be increased. However, if the power consumption of electronic devices is simply reduced, the operating performance of the electronic devices, such as operating speed and response speed, is often ignored, which affects the user experience.
[0051] To solve this problem, an embodiment of the present application proposes a control method for an electronic device. Specifically, when the electronic device is in an operating scenario, the operating status information corresponding to the current operating scenario can be obtained. Based on the operating status information, a target value of an operating parameter that can reduce operating power consumption while ensuring a certain operating performance is obtained. Since the target value of the operating parameter has the property of reducing the operating power consumption of the electronic device while ensuring a certain operating performance, the electronic device can reduce operating power consumption while ensuring a certain operating performance when operating at the target value of the operating parameter, thereby improving the user experience.
[0052] For example, the electronic device in the embodiments of the present application may be a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC) device, or other electronic device. The embodiments of the present application do not impose any special restrictions on the specific form of the electronic device.
[0053] Please refer to Figure 1 , is a structural diagram of the electronic device 100 provided in an embodiment of the present application.
[0054] like Figure 1 As shown, the electronic device 100 may include: a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, a wireless communication module 150, a display screen 160, etc.
[0055] It should be understood that the structure illustrated in this embodiment does not constitute a specific limitation on the electronic device 100. In other embodiments, the electronic device 100 may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0056] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). The different processing units may be independent devices or integrated into one or more processors.
[0057] In some embodiments, the processor and the central processing unit (CPU) may refer to the same component. The processor usually refers to the CPU, which is one of the core components of an electronic device and is responsible for executing various instructions and performing data processing.
[0058] However, in some other embodiments, the processor and the CPU may not be the same component. The processor may refer to a more complete system. For example, the processor may be a system on a chip (SoC), which includes not only the CPU but also other components such as a GPU and a memory controller.
[0059] In the embodiments of the present application, the operating parameters may be parameters related to the CPU and GPU. The processor may obtain operating status information corresponding to the current operating scenario and, based on the operating status information, obtain target values for the operating parameters that reduce operating power consumption while ensuring certain operating performance. The processor may then adjust the operating parameters of the CPU and GPU based on the target values of the operating parameters to reduce the operating power consumption of the electronic device while ensuring the operating performance of the electronic device.
[0060] The controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.
[0061] Processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 110. If processor 110 needs to use the same instruction or data again, it can directly access the memory. This avoids duplicate accesses, reduces processor 110 latency, and thus improves system efficiency.
[0062] In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an I2C interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a USB interface.
[0063] The charging management module 140 is used to receive charging input from a charger. The charger can be a wireless charger or a wired charger. While charging the battery 142, the charging management module 140 can also power the electronic device through the power management module 141.
[0064] The power management module 141 is used to connect the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140 and provides power to the processor 110, the internal memory 121, the external memory, the display 160, and the wireless communication module 150. In some embodiments, the power management module 141 and the charging management module 140 can also be provided in the same device.
[0065] The wireless communication module 150 can provide wireless communication solutions applied to the electronic device 100, including WLAN (such as Wi-Fi), Bluetooth, global navigation satellite system (GNSS), frequency modulation (FM), near field communication technology (NFC), infrared technology (IR), etc.
[0066] The wireless communication module 150 can be one or more devices that integrate at least one communication processing module. The wireless communication module 150 receives electromagnetic waves via an antenna, frequency-modulates and filters the electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 150 can also receive signals to be transmitted from the processor 110, frequency-modulate them, amplify them, and convert them into electromagnetic waves for radiation via the antenna.
[0067] Electronic device 100 implements display functionality through a GPU, display screen 160, and an application processor. A GPU is a microprocessor for image processing that connects display screen 160 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or modify display information.
[0068] The display screen 160 is used to display images, videos, etc. The display screen 160 includes a display panel.
[0069] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 via the external memory interface 120 to implement data storage functions. For example, files such as music and videos can be stored on the external memory card.
[0070] The internal memory 121 can be used to store computer executable program code, which includes instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121. For example, in an embodiment of the present application, the processor 110 can execute instructions stored in the internal memory 121, and the internal memory 121 can include a program storage area and a data storage area.
[0071] The program storage area may store an operating system, at least one application required for a function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.
[0072] Figure 2 FIG. 1 shows a schematic diagram of the interaction principle of modules related to operation strategy control in an electronic device 100. Figure 2 As shown, the electronic device 100 may include a scene recognition engine, a scheduling engine, a perception middle station, a learning middle station and a decision middle station. In some embodiments, the scene recognition engine, the scheduling engine, the perception middle station, the learning middle station and the decision middle station may be Figure 1 The processor 110 of the illustrated embodiment is used to implement modules of corresponding functions.
[0073] Among them, the scene recognition engine may include a system probe module.
[0074] The scene recognition engine is used to identify the operating scene of the electronic device.
[0075] The perception middle station is used to obtain the operating status information of the electronic device in the operating scenario; wherein the operating status information is used to characterize the hardware operation status and / or system operation status when the electronic device operates the focus window.
[0076] For example, the operating status information may include one or more of power status information, peripheral status information, process load information, audio and video status information, system load information, or system event information. The power status information, peripheral status information, and audio and video status information can be considered as hardware operating conditions; while the process load information, system load information, and system event information can be considered as system operating conditions.
[0077] The power state information may include one or more of battery (remaining) power, power mode, etc. The power mode may include alternating current (AC) and direct current (DC).
[0078] The peripheral device status information may include one or more of a mouse wheel sliding event, a mouse click event, a keyboard input event, a microphone input event, or a camera input event.
[0079] Process load information includes the average percentage of CPU time occupied by each process in the system. Process load information can reflect the operating status of each process in the system, including system core processes and other user processes.
[0080] The audio and video state information includes the current audio and video events of the electronic device 100. The audio and video events may include one or more of GPU decoding events, video events, video frame rates, or video subtitles.
[0081] System load information includes the total number of processes currently being executed by the CPU and waiting to be executed by the CPU. System load information can be an important indicator of the system's busyness.
[0082] The system event information may include one or more of window change information, system lock information, process creation information, or thread creation information.
[0083] The operating status information described above is only an example. The operating status information may also be other information used to characterize the hardware operating status and / or system operating status when the electronic device operates the focus window, such as screen brightness, download speed, etc., but is not limited thereto.
[0084] The learning platform is used to train the performance power consumption model; the performance power consumption model is used to determine the operation strategy for limiting the operating power consumption of electronic devices and improving the operating performance of electronic devices.
[0085] The decision-making platform uses the trained performance and power consumption model to determine the operation strategy. This operation strategy includes the target values of the operation parameters. The performance and power consumption model is used to represent the mapping relationship between the operation status information of the operation scenario and the operation strategy.
[0086] The scheduling engine is used to control the electronic device using the operation strategy.
[0087] S1 to S6 are the process of training the performance and power consumption model, using the trained performance and power consumption model to obtain the operation strategy, and using the operation strategy to control the electronic device. The following will specifically introduce the role of the scene recognition engine and scheduling engine, perception center, learning center, and decision center in this embodiment of the application.
[0088] S1: The perception center can obtain operating status information from the system probe module in the scene recognition engine.
[0089] The perception middle station can obtain the running status information through the system probe module in the scene recognition engine. Among them, the system probe module can include multiple types of probes. Correspondingly, the perception middle station can obtain the required running status information through the multiple types of probes included in the system probe. For example, multiple types of probes can include power status probes, peripheral status probes, process load probes, audio and video status probes, system load probes and system event probes. Among them, the power status probe can be used to detect power status information; the peripheral status probe can be used to detect peripheral status information; the process load probe can be used to detect process load information; the audio and video status probe can be used to detect audio and video status information; the system load probe can be used to detect system load information; and the system event probe can be used to detect system event information. Among them, the information detected by each probe can also be called probe status information, that is, the probe status information detected by each probe can be used as running status information.
[0090] In some embodiments, the perception center station may send a request to the system probe module for querying the running status information. In this way, the system probe module may respond to the request and report the running status information to the perception center station.
[0091] It is understood that S1 in the embodiment of the present application can be executed during the model training phase or during the model use phase. If executed during the model training phase, S2 below can be executed after S1 is executed. If executed during the model use phase, S3 below can be executed after S1 is executed.
[0092] S2: The perception center can send the operating status information obtained from the system probe module to the learning center. The learning center can use the operating status information to train the performance and power consumption model.
[0093] The specific training process of the performance power consumption model will be described below.
[0094] S3: The perception middle station determines the first event. Then, the perception middle station can respond to the first event and trigger the decision-making middle station to obtain the operating status information from the perception middle station.
[0095] The first event is an event that affects the operating performance of the electronic device. The first event can be used to trigger the electronic device to determine an operating strategy using the performance and power consumption model.
[0096] The first event may include one or more of a first-level event, a performance-limited event, or a performance-power consumption model training event. The first-level event may include a user operation event on the current focus window, and / or a freeze event. Exemplarily, the operation event may include one or more of a mouse click event, a keyboard input event, or an operation event for switching applications.
[0097] A performance-limited event is an event in which the hardware performance of an electronic device is limited, as reported by the hardware of the electronic device. The limited hardware performance may be caused by the operating speed of the chip of the electronic device being limited. Therefore, a performance-limited event may also be referred to as a chip performance-limited event.
[0098] The performance power consumption model training event is an event for training the performance power consumption model.
[0099] S4: When triggered by the first event, the decision-making middle station obtains the operating status information from the perception middle station.
[0100] S5: When triggered by the first event, the decision-making middle station calls the trained performance power consumption model from the learning middle station, and inputs the operating status information obtained from the perception middle station into the trained performance power consumption model to obtain an operating strategy that can reduce operating power consumption while ensuring a certain operating performance.
[0101] The operation policy includes various operation parameters, and the operation parameters may be parameters of the electronic device related to limiting power consumption and improving operation performance of the electronic device.
[0102] The operation strategy may include a combination of one or more operation parameters including PL1, PL2, EPP, emergency power off (EPO) control switch status information, CPU acceleration (Turbo) switch status information, fan speed, discrete graphics processing unit (DGPU) overspeed value, video memory overclocking value, integrated graphics processing unit (IGPU) minimum frequency, IGPU maximum frequency, DGPU minimum frequency, DGPU maximum frequency, energy-saving display status information, CPU minimum frequency, core binding information, and memory cleaning status information.
[0103] Core binding, also known as setting the affinity of a process or thread, involves binding a process or thread to a specific CPU core. This improves performance because the process or thread only runs on the bound CPU core, reducing the time required to switch between multiple cores. However, core binding does not mean that the process or thread has exclusive control over that CPU core; other processes or threads can still run on that core.
[0104] In this way, the operating strategy output by the performance and power consumption model can reduce the operating power consumption of the electronic device while ensuring a certain operating performance, thereby improving the user experience.
[0105] S6: The decision-making center sends the operation strategy obtained by using the performance and power consumption model to the scheduling engine.
[0106] The decision-making center sends the operation strategy obtained using the performance and power consumption model to the scheduling engine, so that the scheduling engine can control the electronic equipment based on the operation strategy.
[0107] Figure 3 A schematic diagram of modules related to operation strategy control in an electronic device 100 is shown. Figure 3 and Figure 2 The difference is that, when triggered by certain events (hereinafter referred to as the second event), the decision-making platform can instruct the scene recognition engine to compare the two operation strategies and obtain a specific solution for the target value of the operation parameter in the current operation strategy to be executed. For details, please refer to the contents of S7 and S8. The contents of S7 and S8 are as follows:
[0108] S7: When triggered by the second event, the decision-making center sends an operation policy request to the scene recognition engine. The operation policy request includes the current operation scenario, the operation policy corresponding to the current operation scenario determined by the decision-making center by calling the performance power consumption model, and the mandatory information of the performance power consumption model. The mandatory information of the performance power consumption model includes the mandatory degree information of the performance power consumption model call and the mandatory reason. For example, the mandatory degree information of the performance power consumption model call is the operation policy obtained by comparing the two methods, and the mandatory reason is the triggering of the second event.
[0109] If the enforcement level information called by the performance and power consumption model is an operating policy obtained by comparing two methods, and the enforcement reason is triggered by the second event, the scene recognition engine can compare the operating policy corresponding to the current operating scenario obtained by calling the performance and power consumption model with the operating policy corresponding to the current operating scenario pre-stored in the scene recognition engine to obtain a compared operating policy, so that the electronic device can control the electronic device based on the compared operating policy. This solution will be described in detail below.
[0110] S8: The scene recognition engine feeds back the compared operation strategy to the decision-making center.
[0111] The scene recognition engine feeds back the compared operation strategy to the decision-making center. Then, S6 above can be replaced by: the decision-making center sends the compared operation strategy to the scheduling engine. In this way, the scheduling engine can control the electronic device based on the operation strategy.
[0112] That is to say, if the first event occurs, the decision-making center can determine the operating strategy corresponding to the current operating scenario only by calling the performance power consumption model, and report it to the scheduling engine so that it controls the operation of the electronic device according to the operating strategy. If the second event occurs, the decision-making center not only needs to determine the operating strategy corresponding to the current operating scenario by calling the performance power consumption model, but also needs to trigger the scene recognition engine to obtain the pre-stored operating strategy corresponding to the current operating scenario, and obtain the compared operating strategy by comparing the two operating strategies, and report it to the scheduling engine so that it can control the operation of the electronic device based on the compared operating strategy.
[0113] In addition, compared to Figure 2 The embodiment shown, Figure 3 The implementation of the perception center is specifically described in the illustrated embodiment.
[0114] The perception center station may include a meta-capability acquisition module, which is used to obtain operation status information from the system probe module.
[0115] Specifically, the meta-capability acquisition module can send the acquired operating status information to the data center included in the perception center for storage. The meta-capability acquisition module can also be used to determine the first event or the second event. In addition, after the meta-capability acquisition module acquires the first event or the second event, it can also send the first event or the second event to the fence module of the perception center, so that the fence module can use the first event to trigger the decision center to obtain the operating status information from the perception center.
[0116] The meta-capability acquisition module can also send the operating status information corresponding to the current operating scenario to the snapshot module, so that the decision-making middle station can quickly obtain the operating status information corresponding to the current operating scenario from the snapshot module in the perception middle station.
[0117] Figure 4 A schematic diagram of a flow chart of a control method for an electronic device is shown, and the flow chart includes the following steps:
[0118] S401: The electronic device obtains operating status information in the current operating scenario.
[0119] The description of the running scenario and running status information is as above and will not be repeated here.
[0120] S402: The electronic device receives an event and determines the event type.
[0121] Different event types may determine different target value confirmation methods for operating parameters. See S403 and S404 for details.
[0122] S403: In response to the first event, the electronic device inputs the operating status information of the current operating scenario into the performance power consumption model to obtain the target value of the first operating parameter; wherein the performance power consumption model is used to characterize the mapping relationship between the operating status information of the operating scenario and the target value of the first operating parameter.
[0123] In this application, the first event is an event that affects the operating performance of the electronic device. When the first event occurs, it indicates that the operating performance of the electronic device has degraded, and generally needs to be quickly improved. In addition, since the performance power consumption model can be used to quickly output parameters of the electronic device related to limiting power consumption and improving the operating performance of the electronic device, the electronic device can use the performance power consumption model to quickly output such operating parameters, quickly improve the operating performance of the electronic device, and enhance the user experience.
[0124] The first event may include one or more of a first-level event, a performance-limited event, or a performance-power consumption model training event. The first-level event may include a user operation event on the current focus window, and / or a freeze event. Exemplarily, the operation event may include one or more of a mouse click event, a keyboard input event, or an operation event for switching applications.
[0125] For example, Figure 5 This is a schematic diagram of an interface provided in an embodiment of the present application. Figure 5 As shown in (a), the electronic device can display a window 101, which can be a desktop or a main interface. The window 101 includes an icon 102 of a video application. The electronic device can receive an operation of a user clicking on the icon 102 of the video application, and in response to the operation, Figure 5 As shown in (b) in FIG. 1 , the electronic device displays the window 103 and determines the mouse click operation as the first event.
[0126] In this way, controlling the electronic device using the operating parameters output by the performance and power consumption model can reduce the operating power consumption of the electronic device while ensuring a certain operating performance, thereby improving the user experience.
[0127] S404: In response to the second event, the electronic device inputs the operating status information of the current operating scenario into the performance power consumption model to obtain a target value of the first operating parameter, and obtains a target value of the second operating parameter corresponding to the current operating scenario.
[0128] The second operating parameter is a parameter that affects the power consumption of the electronic device.
[0129] The second event is different from the first event. The second event generally does not affect the operating performance of the electronic device, but affects the power consumption of the electronic device.
[0130] The second event may be an evaluation event of the electronic device.
[0131] The second event may also include an event generated by the electronic device after the user uses the electronic device, and the event generally does not affect the operating performance of the electronic device, but affects the power consumption of the electronic device. For example, the second event may be a change in the size of the focus window, a change in CPU / GPU / network usage, a switch between AC and DC modes, the PL1 setting not taking effect, or the power of the electronic device being less than a preset value.
[0132] The electronic device pre-stores a mapping relationship between various operating scenarios and corresponding operating strategies. The electronic device can find the corresponding operating strategy from the aforementioned mapping relationship based on the current operating scenario. The description of how the electronic device determines the current operating scenario can be referred to the description of the relevant content in the aforementioned embodiments and will not be repeated here.
[0133] It is understood that in some embodiments, the electronic device may assign corresponding values to some code parameters based on the first event and the second event. The electronic device may then determine a method for obtaining the operating parameters based on the assigned values of the code parameters, such as whether to obtain the operating parameters by simply calling the model alone or by other methods simultaneously with the calling of the model.
[0134] The following is an example of a code that represents a method of calling a performance and power consumption model.
[0135] The code is as follows:
[0136] <product name="GalileoH"IsSupport="1"
[0137] IsModelSupport="1"ModelControl="1">
[0138] As shown in the above code, the assignment of IsModelSupport can indicate whether the scheduling of the performance power consumption model is supported. The value of IsModelSupport is 0, which means that the scheduling of the performance power consumption model is not supported, that is, the performance power consumption model switch is not turned on, and the performance power consumption model cannot be used. Generally, the value of IsModelSupport is 0 by default; the value of IsModelSupport is 1, which means that the scheduling of the performance power consumption model is supported, that is, the performance power consumption model switch is turned on, and the performance power consumption model can be used.
[0139] The corresponding assignment value of ModelControl can indicate whether the performance power consumption model is scheduled separately. The value of ModelControl is 0, which indicates that the performance power consumption model is scheduled separately. The value of ModelControl is 1, which indicates that the performance power consumption model is not scheduled separately.
[0140] When the first event is triggered, the electronic device may set IsModelSupport to 1 and ModelControl to 0; the value of IsModelSupport being 1 and the value of ModelControl being 0 indicate that the performance and power consumption model is called separately, and S402 is executed.
[0141] When the second event is triggered, the electronic device may assign IsModelSupport and ModelControl to 1; the values of IsModelSupport and ModelControl being 1 indicate that the performance power consumption model can be called while also obtaining operating parameters in other ways, and S403 is executed.
[0142] In this way, the electronic device can determine the method for obtaining the operating parameters according to the assignment of IsModelSupport and the assignment of ModelControl in the above code.
[0143] S405: The electronic device obtains preset identification information of the current operating scene.
[0144] The preset identification information is used to represent the target tendency of the electronic device in the current operating scenario. The target tendency includes a tendency to reduce operating power consumption or a tendency to improve operating performance. If the target tendency is a tendency to reduce operating power consumption, operating parameters for reducing operating power consumption are determined. For details, see S406. If the target tendency is a tendency to improve operating performance, operating parameters for improving operating performance are determined. For details, see S407.
[0145] S406: The electronic device obtains a target value that can reduce the power consumption of the electronic device when the target value of the first operating parameter or the target value of the second operating parameter is used to control the electronic device, and controls the electronic device.
[0146] In some embodiments, if the target tendency is to reduce operating power consumption, and the power consumption of the electronic device is lower when the target value of the first operating parameter is used to control the electronic device than when the target value of the second operating parameter is used to control the electronic device, the target value of the first operating parameter is used to control the electronic device.
[0147] In some other embodiments, if the target tendency is to reduce operating power consumption, and the power consumption of the electronic device is lower when the target value of the second operating parameter is used to control the electronic device compared to when the target value of the first operating parameter is used to control the electronic device, the target value of the second operating parameter is used to control the electronic device.
[0148] S407: The electronic device obtains a target value that can improve the operating performance of the electronic device when the target value of the first operating parameter or the target value of the second operating parameter is used to control the electronic device, and controls the electronic device.
[0149] In some embodiments, if the target tendency is to improve operating performance, and the operating performance of the electronic device is higher when the target value of the first operating parameter is used to control the electronic device than when the target value of the second operating parameter is used to control the electronic device, the target value of the first operating parameter is used to control the electronic device.
[0150] In some other embodiments, if the target tendency is to improve operating performance, and the operating performance of the electronic device is higher when the target value of the second operating parameter is used to control the electronic device than when the target value of the first operating parameter is used to control the electronic device, the target value of the second operating parameter is used to control the electronic device.
[0151] The electronic device determines the selection method of operating parameters according to the target tendency, accurately controls the operation of the electronic device, and improves the user experience.
[0152] A performance and power consumption model determination scheme is shown below.
[0153] Figure 6 A flow chart of a method for determining a performance power consumption model is shown in FIG. Figure 6 As shown, the execution subject of the process can be other electronic devices that are wirelessly or wired connected to the electronic device. The process includes the following steps:
[0154] S601: In a preset operation scenario, operate the electronic device according to the operation status information corresponding to the preset operation scenario, and obtain hardware limitation information corresponding to multiple values of a first operation parameter.
[0155] In some embodiments, hardware limitation information may include the average duration of hardware performance limitations. The average duration of hardware performance limitations is the ratio of the hardware performance operation time to the number of hardware performance limitation operations. The number of hardware performance limitation operations is the number of hardware limitations reported by the electronic device's processor during the hardware operation time. Furthermore, the electronic device may be operated in multiple different preset operating scenarios to obtain hardware limitation information, thereby obtaining the training sample data required for training the model.
[0156] The operating status information has been described above and will not be repeated here. Figure 7 A schematic diagram of a training sample data acquisition process is shown in FIG. Figure 7As shown, the operating status information may include window size ratio gear, download speed gear, whether there is video watching, screen brightness, whether keyboard input is present, internal storage position, whether the camera is used, whether audio is used, etc.; wherein, the window size ratio gear can be the window change information in the system event information, whether there is video watching and whether audio is used can be audio and video status information, whether keyboard input and whether the camera is used can be peripheral status information, and although the screen brightness and download speed gear are not listed in the above operating status information, they also belong to operating status information. The following takes these operating status information as an example to illustrate the acquisition of the first operating parameter PL1 in this operating state. Limited hardware performance can refer to the performance limitation of the hardware (such as CPU) feedback in the electronic device during the reduction of PL1.
[0157] like Figure 7 As shown in Table 1, the preset scenario is a video scenario. After the electronic device starts video software 1, it can operate with the following operating status information: window size ratio gear is 100%, download speed gear is 1, watching video (value is 1), screen brightness is 5, no keyboard input (value is 0), internal storage bit is 2; camera is not used (value is 0), and audio is used (value is 1). Under this operating status information, when PL1 is 45W, 44W, 43W, 42W, 41W, 40W, 39W, 38W...7W, the electronic device can obtain the average hardware performance limitation duration corresponding to each PL1 value: the average hardware performance limitation duration corresponding to PL1 values of 45W, 44W, 43W, 42W...12W is inf. Here, this flag indicates that the average hardware performance limitation duration is greater than 300 seconds. The average duration of hardware performance restriction corresponding to PL1 of 11W is 120, the average duration of hardware performance restriction corresponding to PL1 of 10W is 120, the average duration of hardware performance restriction corresponding to PL1 of 9W is 40, the average duration of hardware performance restriction corresponding to PL1 of 8W is 1, and the average duration of hardware performance restriction corresponding to PL1 of 7W is 1.
[0158] Take the browser scenario as an example. After the electronic device opens browser 1, it can operate with the following operating status information: window size ratio of 90%, download speed of 1, no video (value of 0), screen brightness of 5, no keyboard input (value of 0), internal storage bit of 2; camera not used (value of 0), audio not used (value of 0). Under this operating status information, when PL1 is 45W, 44W, 43W, 42W, 41W, 40W, 39W, 38W...7W, the electronic device can obtain the average hardware performance limitation time corresponding to each PL1 value: the average hardware performance limitation time corresponding to PL1 of 45W, 44W, 43W, 42W...10W is inf. Here, this flag indicates that the average hardware performance limitation time is greater than 300 seconds. The average duration of hardware performance restriction corresponding to PL1 of 9W is 157, the average duration of hardware performance restriction corresponding to PL1 of 8W is 32, and the average duration of hardware performance restriction corresponding to PL1 of 7W is 9.
[0159] After launching the programming software, the electronic device can operate with the following operating status information: window size ratio of 90%, download speed of 1, no video (value of 0), screen brightness of 5, keyboard input (value of 1), internal storage bit of 2, camera not in use (value of 0), and audio not in use (value of 0). Under this operating status information, when the PL1 is 45W, 44W, 43W, 42W, 41W, 40W, 39W, 38W, ... 7W, the electronic device can obtain the average duration of hardware performance restriction corresponding to each PL1 value: the average duration of hardware performance restriction corresponding to PL1 values of 45W, 44W, 43W, 42W, ... 10W is inf. Here, this flag indicates that the average duration of hardware performance restriction is greater than 300 seconds. The average duration of hardware performance restriction corresponding to a PL1 of 9W is 115 seconds, the average duration of hardware performance restriction corresponding to a PL1 of 8W is 45 seconds, and the average duration of hardware performance restriction corresponding to a PL1 of 7W is 12 seconds.
[0160] Figure 8 A schematic diagram of obtaining the average duration of hardware performance limitation is shown. Figure 8 As shown in Figure (a), based on the PL1 of 45W, 1W is continuously reduced or increased to obtain the average duration of hardware performance limitation. In the case of the limited boundary of PL1 corresponding to the average duration of hardware performance limitation of 300 seconds, as shown in Figure 8 As shown in Figure (b), based on the previously obtained PL1 limit boundary, 1W is continuously subtracted or added to obtain the average duration of hardware performance limitation.
[0161] S602: If, among the multiple values of the first operating parameter, the hardware restriction information corresponding to the first value satisfies the preset restriction condition, the first value of the first operating parameter is labeled with an impaired experience label; if, among the multiple values of the first operating parameter, the hardware restriction information corresponding to the second value does not satisfy the preset restriction condition, the second value of the first operating parameter is labeled with an unimpaired experience label.
[0162] The hardware limitation information satisfies the preset limitation condition by, for example, an average duration of hardware performance limitation being less than a first standard value. The first standard value may be defined based on actual conditions, for example, 300 seconds. The hardware limitation information does not satisfy the preset limitation condition by, for example, an average duration of hardware performance limitation being greater than or equal to the first standard value.
[0163] For example, taking PL1 among the operating parameters as an example, if the average duration of hardware performance restriction for a first value among multiple PL1 values is less than a first standard value, the first PL1 value is labeled as "impaired experience." If the average duration of hardware performance restriction for a second value among multiple PL1 values is greater than or equal to the first standard value, the second PL1 value is labeled as "unimpaired experience."
[0164] As shown in Table 2, the difference between Table 2 and Table 1 is that in Table 2, the value of the first operating parameter for which the hardware limitation information meets the preset limitation condition is marked with 1. 1 indicates a label of impaired experience, and 0 indicates a label of unimpaired experience.
[0165] like Figure 7 As shown in Table 2, after the electronic device starts video software 1, it can operate with the following operating status information: window size ratio gear is 100%, download speed gear is 1, watching video (value is 1), screen brightness is 5, no keyboard input (value is 0), internal storage bit is 2; camera is not used (value is 1), and audio is used (value is 1). Under this operating status information, when PL1 is 45W, 44W, 43W, 42W, 41W, 40W, 39W, 38W...7W, the average duration of hardware performance limitation corresponding to PL1 of 45W, 44W, 43W, 42W...12W is greater than 300 seconds, and the values of these PL1s are marked as 0. The average duration of hardware performance limitation corresponding to PL1 of 11W, 10W, 9W, 8W, and 7W is less than 300 seconds, and the values of these PL1s are marked as 1.
[0166] After the electronic device opens the browser 1, it can operate with the following operating status information: window size ratio gear 90%, download speed gear 1, no video (value 0), screen brightness 5, no keyboard input (value 0), internal storage bit 2; camera not used (value 0), audio not used (value 0). Under this operating status information, when PL1 is 45W, 44W, 43W, 42W, 41W, 40W, 39W, 38W...7W, the average duration of hardware performance limitation corresponding to PL1 of 45W, 44W, 43W, 42W...10W is greater than 300 seconds, and the values of these PL1s are marked as 0. The average duration of hardware performance limitation corresponding to PL1 of 9W, 8W, and 7W is less than 300 seconds, and the values of these PL1s are marked as 1.
[0167] After the electronic device's programming software is enabled, it can be operated with the following operating status information: window size ratio at 90%, download speed at 1, no video (value 0), screen brightness at 5, keyboard input enabled (value 1), internal storage at 2; camera not in use (value 0), and audio not in use (value 0). Under this operating status information, when the PL1 is 45W, 44W, 43W, 42W, 41W, 40W, 39W, 38W, ... 7W, the average duration of hardware performance restriction corresponding to PL1 of 45W, 44W, 43W, 42W, ... 10W is greater than 300 seconds, and these PL1 values are marked as 0. The average duration of hardware performance restriction corresponding to PL1 of 9W, 8W, and 7W is less than 300 seconds, and these PL1 values are marked as 1.
[0168] S603: Determine the user experience impairment rate of multiple values of the first operating parameter; wherein the user experience impairment rate is the ratio of the number of performance limitations detected by the operating system of the electronic device under a preset number of detections to the preset number of detections in a preset operating scenario of the electronic device.
[0169] The user experience impairment rate in the embodiment of the present application is the performance limitation of user-level feedback.
[0170] As shown in Table 3, the difference between Table 3 and Table 2 is that Table 3 marks the user experience impairment rate for multiple values of the first operating parameter.
[0171] like Figure 7As shown in Table 3, after video software 1 is enabled on an electronic device, it can be operated with the following operating status information: window size ratio set to 100%, download speed set to 1, video viewing (value 1), screen brightness set to 5, no keyboard input (value 0), internal storage bit set to 2, camera not used (value 1), and audio used (value 1). Under these operating status information, the corresponding user experience impairment rates for PL1 values of 45W, 44W, ..., 13W, 12W, 11W, 10W, 8W, 8W, and 7W are 0.001, 0.001, ..., 0.21, 0.451, 0.512, 0.586, 0.671, 0.721, and 0.895, respectively.
[0172] After opening browser 1, the electronic device can operate with the following operating status information: window size ratio of 90%, download speed of 1, no video (value of 0), screen brightness of 5, no keyboard input (value of 0), internal storage bit of 2, camera not used (value of 0), and audio not used (value of 0). Under this operating status information, the corresponding user experience impairment rates for PL1 of 45W, 44W, ..., 13W, 12W, 11W, 10W, 8W, 8W, and 7W are 0.001, 0.001, ..., 0.134, 0.257, 0.339, 0.4, 0.87, 0.753, and 0.881, respectively.
[0173] After launching the programming software, the electronic device can be operated with the following operating status information: window size ratio at 90%, download speed at 1, no video (value 0), screen brightness at 5, keyboard input enabled (value 1), internal storage at 2, camera not in use (value 0), and audio not in use (value 0). Under these operating conditions, the corresponding user experience impairment rates for PL1 values of 45W, 44W, ..., 13W, 12W, 11W, 10W, 8W, 8W, and 7W are 0.001, 0.001, ..., 0.095, 0.145, 0.223, 0.389, 0.01, 0.679, and 0.723, respectively.
[0174] S604: Train a user experience impairment rate prediction model based on the operating status information, the labeled first value of the first operating parameter, the labeled second value of the first operating parameter, and the user experience impairment rates of multiple values of the first operating parameter.
[0175] In some embodiments, the operating status information can be used as the input of the user experience impairment rate prediction model, and the first value of the labeled first operating parameter, the second value of the labeled first operating parameter, and the user experience impairment rate of multiple values of the first operating parameter can be used as the output of the user experience impairment rate prediction model to train the user experience impairment rate prediction model.
[0176] It can be understood that the values of the operating parameters in the training samples are marked with the experience impairment label, the experience non-impaired label and the user experience impairment rate. The experience impairment label can characterize whether it affects the hardware performance (operating power consumption) of the electronic device, and the user experience impairment rate is used to characterize the magnitude of the impact on the operating performance of the electronic device. By using the training sample to train the user experience impairment rate prediction model, the electronic device can obtain the values of the operating parameters that can indicate whether it affects the operating power consumption and operating performance of the electronic device through the trained user experience impairment rate prediction model, and obtain the target value of the operating parameter that reduces the operating power consumption of the electronic device and improves the operating performance of the electronic device. The electronic device uses the target value of the operating parameter to control the electronic device, which can reduce the operating power consumption of the electronic device and improve the operating performance of the electronic device, thereby improving the user experience.
[0177] The performance and power consumption model includes the above-mentioned user experience impairment rate prediction model and the operating parameter output module.
[0178] The user experience impairment rate prediction model is configured to output multiple user experience impairment rates corresponding to multiple values of the first operating parameter, as well as labels for impaired and unimpaired experiences for the multiple values of the first operating parameter. The multiple values of the first operating parameter are set based on the actual needs of the technician. During the process of acquiring training samples, the electronic device can be sequentially adjusted to these multiple values to acquire other data in the training samples.
[0179] The operating parameter output module is used to select a minimum value marked with an unimpaired experience label and a user experience impairment rate less than a preset value from multiple values of the first operating parameter as the target value of the first operating parameter.
[0180] Take the preset value of 0.5 as an example. Figure 7 As shown in Table 3, after video software 1 is enabled on an electronic device, it can be operated with the following operating status information: window size ratio set to 100%, download speed set to 1, video viewing (value 1), screen brightness set to 5, no keyboard input (value 0), internal storage bit set to 2, camera not used (value 1), and audio used (value 1). Under these operating status information, the corresponding user experience impairment rates for PL1 values of 45W, 44W, ..., 13W, 12W, 11W, 10W, 8W, 8W, and 7W are 0.001, 0.001, ..., 0.21, 0.451, 0.512, 0.586, 0.671, 0.721, and 0.895, respectively.
[0181] The minimum value 12W among the multiple values of PL1 with a label of "experience not impaired" and with a user experience impairment rate less than 0.5 can be used as the target value of the first operating parameter.
[0182] After opening browser 1, the electronic device can operate with the following operating status information: window size ratio of 90%, download speed of 1, no video (value of 0), screen brightness of 5, no keyboard input (value of 0), internal storage bit of 2, camera not used (value of 0), and audio not used (value of 0). Under this operating status information, the corresponding user experience impairment rates for PL1 of 45W, 44W, ..., 13W, 12W, 11W, 10W, 8W, 8W, and 7W are 0.001, 0.001, ..., 0.134, 0.257, 0.339, 0.4, 0.87, 0.753, and 0.881, respectively.
[0183] The minimum value 10W among the multiple values of PL1 whose user experience impairment rates are less than 0.5 and are marked as the experience unimpaired label is used as the target value of the first operating parameter.
[0184] After launching the programming software, the electronic device can be operated with the following operating status information: window size ratio at 90%, download speed at 1, no video (value 0), screen brightness at 5, keyboard input enabled (value 1), internal storage at 2, camera not in use (value 0), and audio not in use (value 0). Under these operating conditions, the corresponding user experience impairment rates for PL1 values of 45W, 44W, ..., 13W, 12W, 11W, 10W, 8W, 8W, and 7W are 0.001, 0.001, ..., 0.095, 0.145, 0.223, 0.389, 0.01, 0.679, and 0.723, respectively.
[0185] The minimum value 10W among the multiple values of PL1 whose user experience impairment rates are less than 0.5 and are marked as the experience unimpaired label is used as the target value of the first operating parameter.
[0186] Figure 9 A schematic diagram of the workflow of software and hardware for controlling operating parameters of the electronic device 100 is shown.
[0187] like Figure 9 As shown, the scene recognition engine can be located in the application layer of the electronic device. In addition to the system probe module, the scene recognition engine can also include a scene recognition module and a scene strategy configuration module.
[0188] The scene recognition module can determine the current running scene. The running scene may include a video scene, a game scene, an office scene, a social scene, etc. For example, when the scene recognition engine recognizes that the focus window is a window of a video application, it determines that the electronic device 100 is in a video scene. For another example, when the scene recognition engine recognizes that the focus window is a WeChat window, it determines that the electronic device 100 is in a video scene. TMWhen a chat window is displayed, the electronic device 100 is determined to be in a social scenario. The scenario recognition module may also send the operating scenario to the scenario policy configuration module. The scenario policy configuration module may determine operating parameters based on the operating scenario. The scenario policy configuration module may feed back the operating parameters to the scenario recognition module. The scenario recognition module may send the operating parameters and operating scenario to the scheduling engine of the application layer.
[0189] The scene recognition module determines the current operating scene is an existing technology and will not be described in detail here.
[0190] As mentioned above Figure 3 As described in [1], the scene recognition engine can store the mapping relationship between the running scene and the running strategy. After the scene recognition module identifies the running scene, it can directly obtain the running strategy from the mapping relationship.
[0191] The role of the perception center and the above Figure 2 and Figure 3 The same, no longer repeated here.
[0192] In some embodiments, the scene recognition module may send a request to query the operating status information to the system probe module, so that the system probe module can report the operating status information to the scene recognition module in response to the request.
[0193] The system probe module can subscribe to kernel events from the kernel layer to determine the operating status based on the callback function fed back by the kernel layer and report it to the scene recognition module. Specifically, the multiple types of probes included in the system probe module can each subscribe to corresponding kernel events from the kernel layer to obtain the corresponding operating status information.
[0194] For example, a power status probe can subscribe to power status events from the kernel layer and determine power status information based on a callback function fed back by the kernel layer. For example, the kernel layer may include: a subsystem dynamic link library, an executive, a kernel and driver layer, a HAL, a firmware layer, and a hardware layer. The power status probe can send a request to subscribe to power status events to the executive's system event driver (OsEventDriver) node in the kernel layer. The OsEventDriver node forwards the request to the executive's power manager. After receiving the request, the power manager can feed back a callback function to the power status probe through the OsEventDriver node, thereby implementing subscription to power status events.
[0195] The peripheral status probe can subscribe to peripheral events from the kernel layer and determine the peripheral status information based on the callback function fed back by the kernel layer.
[0196] The process load probe can subscribe to process load events from the kernel layer and determine the process load information based on the callback function fed back by the kernel layer.
[0197] The system load probe can subscribe to system load events from the kernel layer and determine the system load information based on the callback function fed back by the kernel layer.
[0198] The audio and video status probe can subscribe to audio and video events from the kernel layer, and determine the current audio and video status information of the electronic device 100 according to the callback function fed back by the kernel layer.
[0199] For example, the audio and video status probe can send a request to subscribe to GPU decoding information to the OsEventDriver node of the executor. The OsEventDriver node forwards the request to the graphics driver in the kernel and driver layer. After receiving the request, the graphics driver sends a callback function back to the audio and video status probe through the OsEventDriver node. After monitoring the GPU decoding operation, the graphics driver obtains audio and video status information based on the audio and video status probe callback function.
[0200] The system event probe can subscribe to system events from the kernel layer and determine system event information based on the callback function fed back by the kernel layer. System event information can include one or more of window change information, system lock information, process creation information, or thread creation information.
[0201] For example, the system event probe may send a request to subscribe to process creation information to the OsEventDr iver node of the executable, and the OsEventDr iver node forwards the request to the process manager. After receiving the request, the process manager feeds back a callback function to the system event probe through the OsEventDr iver node, so that after the process is created, the system event information can be obtained based on the system event probe feedback callback function. For another example, the system event probe also sends a request to subscribe to focus window change information to the API module, and the API module feeds back a callback function to the system event probe to monitor whether the focus window of the electronic device 100 has changed, and when the focus window is monitored to change, the focus window change information can be obtained based on the system event probe feedback callback function.
[0202] It can be seen that the system probe module subscribes to various events of the electronic device 100 from the kernel layer, and then obtains the probe status according to the callback function fed back by the kernel layer, that is, obtains the operating status information of the electronic device 100.
[0203] In some embodiments, the decision-making platform can obtain the operating scenario from the scenario recognition module. Figure 2 or Figure 3 The learning platform in the Figure 2 or Figure 3The operating status information obtained by the perception middle station is input into the trained performance power consumption model to obtain an operating strategy that can reduce the operating power consumption while ensuring a certain operating performance. The decision-making middle station can send the operating strategy to the scheduling engine, the scheduling engine receives the operating strategy, and the scheduling engine performs scheduling based on the operating strategy. In an embodiment of the present application, the scheduling engine can send an instruction to the CPU through the power manager and BIOS, and the instruction carries the operating parameter 1 in the operating strategy. The scheduling engine can send an instruction to the Intel DTT driver through WMI, and the instruction carries the operating parameter 2 in the operating strategy. Then, the Intel DTT driver can send the received instruction to the CPU through BIOS. The scheduling engine can send an instruction to the CPU through the system and chip (OS2SOC) driver node, and the instruction carries the operating parameter 2 in the operating strategy. Among them, operating parameter 1, operating parameter 2 and operating parameter 3 can be different operating parameters in the operating strategy.
[0204] An embodiment of the present application further provides a computer storage medium, which includes computer instructions. When the computer instructions are executed on the above-mentioned electronic device, the electronic device executes the various functions or steps executed by the mobile phone in the above-mentioned method embodiment.
[0205] The embodiment of the present application further provides a computer program product, which, when executed on a computer, enables the computer to execute the functions or steps executed by the mobile phone in the above method embodiment.
[0206] It is understandable that the electronic device provided in the embodiment of the present application includes a hardware structure and / or software module for performing each function in order to realize the above functions. Those skilled in the art should easily appreciate that, in combination with the units and algorithm steps of each example described in the embodiment disclosed herein, the embodiment of the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in a hardware or computer software driven hardware manner depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the embodiment of the present application.
[0207] The embodiment of the present application can divide the functional modules of the above-mentioned electronic device according to the above-mentioned method example. For example, each functional module can be divided corresponding to each function, or two or more functions can be integrated into one processing module. The above-mentioned integrated module can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.
[0208] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0209] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the modules or units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0210] The units described as separate components may or may not be physically separate, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple places. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0211] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.
[0212] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0213] The above content is only a specific embodiment of this application, but the scope of protection of this application is not limited to this. Any changes or replacements within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.
Claims
1. A method for controlling an electronic device, wherein the method is applied to the electronic device, and is characterized in that: include: Obtaining operating status information in a current operating scenario; wherein the operating scenario is used to describe a scenario in which the electronic device performs a task in a focus window in response to a user operation; and the operating status information is used to characterize a hardware operating condition and / or a system operating condition when the electronic device operates the focus window; Determining a target value of a first operating parameter based on the operating status information; wherein the first operating parameter is a parameter that affects the operating power consumption and operating performance of the electronic device; The electronic device is controlled based on the target value of the first operating parameter.
2. The method according to claim 1, characterized in that The determining a target value of the first operating parameter based on the operating status information includes: The operating status information is input into a performance power consumption model to obtain a target value of the first operating parameter; wherein the performance power consumption model is used to characterize a mapping relationship between the operating status information of an operating scenario and the target value of the first operating parameter.
3. The method according to claim 2, characterized in that Inputting the operating state information into a performance and power consumption model to obtain a target value of the first operating parameter includes: In response to a first event, the operating status information is input into a performance and power consumption model to obtain a target value of the first operating parameter; wherein the first event is an event that affects the operating performance of the electronic device.
4. The method according to claim 3, characterized in that The first event includes: one or more of a user operation event on the focus window, a freeze event, a chip performance limitation event, or a performance power consumption model training event.
5. The method according to claim 4, characterized in that The operation event includes one or more of a mouse click event, a keyboard input event, or an operation event for switching applications.
6. The method according to claim 3, characterized in that The method further comprises: In response to a second event, obtaining a target value of a second operating parameter corresponding to the current operating scenario; wherein the second operating parameter is a parameter that affects the power consumption of the electronic device; Obtaining preset identification information of the current operating scenario; wherein the preset identification information is used to characterize a target tendency of the electronic device in the current operating scenario, the target tendency including a tendency to reduce operating power consumption or a tendency to improve operating performance; The controlling the electronic device based on the target value of the first operating parameter includes: Under a first condition, the electronic device is controlled based on the target value of the first operating parameter; wherein, The first condition includes: The target tendency is to tend to reduce operating power consumption, and compared with controlling the electronic device using the target value of the second operating parameter, the power consumption of the electronic device is lower when the electronic device is controlled using the target value of the first operating parameter; Alternatively, the target tendency is to improve operating performance, and the operating performance of the electronic device is higher when the target value of the first operating parameter is used to control the electronic device than when the target value of the second operating parameter is used to control the electronic device.
7. The method according to claim 6, characterized in that The method further comprises: Under the second condition, the electronic device is controlled based on the target value of the second operating parameter; wherein, The second condition includes: The target tendency is to tend to reduce operating power consumption, and compared with controlling the electronic device using the target value of the second operating parameter, the power consumption of the electronic device is lower when the electronic device is controlled using the target value of the first operating parameter; Alternatively, the target tendency is to improve operating performance, and the operating performance of the electronic device is higher when the target value of the first operating parameter is used to control the electronic device than when the target value of the second operating parameter is used to control the electronic device.
8. The method according to any one of claims 2 to 5, characterized in that The performance and power consumption model includes a user experience impairment rate prediction model and an operating parameter output module; The user experience impairment rate prediction model is configured to output a plurality of user experience impairment rates corresponding to a plurality of values of the first operating parameter and an experience impairment label or an experience non-impaired label for the plurality of values of the first operating parameter; wherein the plurality of values correspond to the plurality of user experience impairment rates in a one-to-one manner; The operating parameter output module is used to select a minimum value marked with an unimpaired experience label and a user experience impairment rate less than a preset value from multiple values of the first operating parameter as the target value of the first operating parameter.
9. The method according to claim 8, characterized in that The method further comprises: In a preset operating scenario, operating the electronic device with operating state information corresponding to the preset operating scenario, and obtaining hardware limitation information corresponding to multiple values of the first operating parameter; If hardware limitation information corresponding to a first value among multiple values of the first operating parameter satisfies a preset limitation condition, annotating an experience-impaired label for the first value of the first operating parameter; If hardware limitation information corresponding to a second value among the multiple values of the first operating parameter does not meet a preset limitation condition, annotate the second value of the first operating parameter with an experience unimpaired label; Determining a user experience impairment rate corresponding one-to-one to multiple values of the first operating parameter; wherein the user experience impairment rate is a ratio of the number of performance limitations detected by the operating system of the electronic device to the number of detections under the preset operating scenario of the electronic device; The user experience impairment rate prediction model is trained based on the operating status information, the first value of the first labeled operating parameter, the second value of the first labeled operating parameter, and the user experience impairment rate.
10. An electronic device, characterized in that: The electronic device includes: a memory and one or more processors; The memory is used to store computer program code, and the computer program code includes computer instructions; when the computer instructions are executed by the processor, the electronic device executes the method according to any one of claims 1 to 9.
11. A computer-readable storage medium, characterized in that including computer instructions; When the computer instructions are executed on an electronic device, the electronic device is caused to execute the method according to any one of claims 1 to 9.
12. A computer program product, characterized in that When the computer program product is run on a computer, the computer is caused to perform the method according to any one of claims 1 to 9.