Power supply parameter adjusting method and electronic equipment
By analyzing the operating data of electronic devices and adjusting the power supply parameters, the system's lag caused by insufficient power supply parameters during multi-task operation is solved, and the system's fluency and user experience are improved.
Patent Information
- Application Number
- CN202510128068.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-27
- Publication Date
- 2025-04-25
AI Technical Summary
In modern computer systems, users have high requirements for system fluency, especially when multitasking operations, system lag is one of the main concerns in user experience. The existing technology is difficult to meet the actual needs of users, resulting in slow response or even lag in the system.
A power supply parameter adjustment method is provided, by acquiring the operating data of the electronic device, analyzing and generating analysis results, and adjusting the power supply parameters of the electronic device in response to the analysis results, in response to the analysis results, and characterizing the lag of the electronic device relative to another state.
By adjusting the power supply parameters, the system can be effectively avoided, the user experience can be improved, and the user needs in different usage scenarios can be met.
Smart Images

Figure CN119882971A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of electronic technology, and in particular to a power supply parameter adjustment method and an electronic device. Background Art
[0002] In modern computer systems, users have high requirements for system smoothness, especially when multitasking. System lag is one of the main concerns in user experience. In different modes of electronic devices, there are often different power supply parameters, some high and some low. When the power supply parameters are low, it will not affect the user experience in many cases. However, the actual usage scenarios of users vary greatly, and sometimes it cannot meet the actual needs of users, resulting in slow system response or even lag. Summary of the invention
[0003] In view of this, the present disclosure provides a power supply parameter adjustment method and an electronic device.
[0004] One aspect of the present disclosure provides a power supply parameter adjustment method, including: acquiring operating data of an electronic device in a first state; analyzing the operating data to generate an analysis result; in response to the analysis result indicating that the electronic device in the first state is stuck relative to the electronic device in a second state, adjusting the power supply parameter of the electronic device; wherein the power supply parameter of the electronic device in the first state is lower than the power supply parameter of the electronic device in the second state.
[0005] According to an embodiment of the present disclosure, obtaining operating data of an electronic device in a first state includes: in response to detecting a target operation, obtaining first information, the first information at least representing data generated by the electronic device in the first state in response to the target operation; wherein the first information includes multiple first screen information, and the first screen information corresponds to multiple screens generated by the electronic device in the first state in response to the target operation.
[0006] According to an embodiment of the present disclosure, generating an analysis result includes: based on first screen information, acquiring second information matching the first information, the second information at least representing data generated by the electronic device in the second state in response to a target operation, the second information including multiple second screen information, the second screen information corresponding to the multiple screens generated by the electronic device in the second state in response to the target operation; generating an analysis result based on the first information and the second information; wherein matching the first information and the second information includes: matching the first screen information and the second screen information.
[0007] According to an embodiment of the present disclosure, the first information also includes first time information, and the first time information represents the time interval for the electronic device to jump from the first screen to another different screen in the first state; the second information also includes second time information, and the second time information represents the time interval for the electronic device to jump from the first screen to another different screen in the second state; generating analysis results includes: generating analysis results according to the first time information and the second time information.
[0008] According to an embodiment of the present disclosure, an analysis result is generated based on the first time information and the second time information, including: when the ratio of the first time information to the second time information is greater than a preset ratio threshold, an analysis result characterizing a jamming is generated; when the ratio of the first time information to the second time information is less than or equal to the preset ratio threshold, an analysis result characterizing no jamming is generated.
[0009] According to an embodiment of the present disclosure, the first information also includes first power consumption information, and the first power consumption information represents the power consumption when the electronic device jumps from a first screen to another different screen in the first state; the second information also includes second power consumption information, and the second power consumption information represents the power consumption when the electronic device jumps from the first screen to the last screen in the second state; generating analysis results includes: generating analysis results according to the first time information, the first power consumption information, the second time information and the second power consumption information.
[0010] According to an embodiment of the present disclosure, the power supply parameter adjustment method also includes: in response to the electronic device completing the power supply parameter adjustment, and the electronic device in the first state does not freeze when running in response to the target operation, generating third information based on the current power supply parameters of the electronic device, the third information representing the data generated by the electronic device in the second state in response to the target operation and the adjusted power supply parameters; adjusting the power supply parameters of the electronic device, including: in response to the existence of third information matching the first information, adjusting the power supply parameters of the electronic device based on the power supply parameters represented by the third information.
[0011] According to an embodiment of the present disclosure, obtaining operating data of an electronic device in a first state includes: obtaining an operating screen of the electronic device in the first state in real time; generating an analysis result, including: based on a pre-trained first model, detecting whether the operating screen includes a target feature, and generating an analysis result; wherein, if the operating screen includes the target feature, the analysis result indicates that the electronic device has been stuck, and if the operating screen does not include the target feature, the analysis result indicates that the electronic device has not been stuck.
[0012] According to an embodiment of the present disclosure, adjusting power supply parameters of an electronic device includes: obtaining program information corresponding to a program currently running on the electronic device; determining at least one target device of the electronic device based on the program information; and adjusting power supply parameters of the target device.
[0013] Another aspect of the present disclosure provides an electronic device, comprising: a power supply device, used to put the electronic device in a first state, the power supply capacity of the electronic device in the first state is lower than the power supply capacity of the electronic device in the second state, and the electronic device in the second state is powered by an external power supply; at least one processor; and a memory connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform at least part of the following operations: obtain operating data of the electronic device in the first state; analyze the operating data to generate an analysis result; in response to the analysis result indicating that the electronic device in the first state is stuck relative to the electronic device in the second state, adjust the power supply parameters of the electronic device.
[0014] Another aspect of the present disclosure provides a computer-readable storage medium storing computer-executable instructions, which are used to implement the above power supply parameter adjustment method when executed.
[0015] Another aspect of the present disclosure provides a computer program, which includes computer executable instructions, and the instructions are used to implement the above power supply parameter adjustment method when executed. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The above and other objects, features and advantages of the present disclosure will become more apparent through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, in which:
[0017] Figure 1 A flow chart of a method for adjusting power supply parameters according to an embodiment of the present disclosure is schematically shown;
[0018] Figure 2 A flowchart for obtaining operation data in a method for adjusting power supply parameters according to an embodiment of the present disclosure is schematically shown;
[0019] Figure 3 A flowchart of generating analysis results in a power supply parameter adjustment method according to an embodiment of the present disclosure is schematically shown;
[0020] Figure 4 Another flowchart of generating analysis results in the power supply parameter adjustment method according to an embodiment of the present disclosure is schematically shown;
[0021] Figure 5 Another flowchart of generating analysis results in the power supply parameter adjustment method according to an embodiment of the present disclosure is schematically shown;
[0022] Figure 6 Another flowchart of generating analysis results in the power supply parameter adjustment method according to an embodiment of the present disclosure is schematically shown;
[0023] Figure 7 Another flow chart of the power supply parameter adjustment method according to an embodiment of the present disclosure is schematically shown;
[0024] Figure 8 Another flow chart of the power supply parameter adjustment method according to an embodiment of the present disclosure is schematically shown;
[0025] Fig. 9 Another flow chart of the power supply parameter adjustment method according to an embodiment of the present disclosure is schematically shown;
[0026] Fig.10 A flowchart of adjusting power supply parameters in a power supply parameter adjustment method according to an embodiment of the present disclosure is schematically shown;
[0027] Fig.11 A block diagram schematically shows a power supply parameter adjustment device according to an embodiment of the present disclosure; and
[0028] Fig.12 A block diagram of an electronic device suitable for implementing the method described above according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION
[0029] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present disclosure. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.
[0030] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise", "include", etc. used herein indicate the existence of the features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.
[0031] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification and should not be interpreted in an idealized or overly rigid manner.
[0032] When using expressions such as "at least one of A, B, and C, etc.", they should generally be interpreted according to the meaning of the expression commonly understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).
[0033] Figure 1 The flowchart of the power supply parameter adjustment method according to the embodiment of the present disclosure is schematically shown.
[0034] like Figure 1 As shown, the method includes operations S110 to S130.
[0035] In operation S110, operation data of the electronic device in the first state is acquired.
[0036] The first state may be a state in which the electronic device is operating under certain specific conditions, wherein the state has specific operating parameters or configurations, which usually affect the performance, energy consumption or functional performance of the device. Specifically, the first state may be a state in which the electronic device is operating under low power supply parameters. In this state, the electronic device may reduce the power supply parameters of each device in the electronic device (such as the power supply of the CPU, the power supply of the graphics card, the power supply of the network card, etc.) to limit the CPU frequency, reduce the screen brightness, or shut down certain background services.
[0037] For example, the first state may be that the electronic device is in a low power consumption mode, the electronic device is in a battery-powered mode, or the first state may be that a power supply parameter of the electronic device is set by the user to be lower than a default power supply parameter.
[0038] Power supply parameters can be specific settings or indicators related to the power supply of electronic devices. Power supply parameters directly affect the power consumption, performance and battery life of the device. Power supply parameters can include processor power limit parameters, energy efficiency priority parameters, operating frequency parameters, etc. These parameters directly affect and manage the power consumption and power supply strategy of the device, and are therefore used as power supply parameters.
[0039] The power limit parameter (Power Limit) refers to the power consumption limit set for electronic devices to control their heat generation and power consumption. It is usually divided into multiple levels, such as PL1 and PL2, to adapt to different operating requirements and time scales. PL1 (Power Limit 1) refers to the maximum power consumption limit that the device can sustain for a long time (usually tens of seconds to minutes), which is used to ensure the stability and thermal management of the device under continuous load. PL2 (Power Limit 2) allows the device to exceed the power limit of PL1 for a short time (usually a few seconds) to provide higher instantaneous performance, which is suitable for tasks that require short-term high performance.
[0040] Energy Performance Preference (EPP) is a parameter used to adjust the balance between performance and energy efficiency of electronic devices. The setting of EPP allows the system to optimize its behavior under different operating conditions to meet the needs of users and the energy efficiency goals of the device. Specifically, the adjustment of the EPP value will affect the dynamic voltage and frequency scaling (DVFS) strategy of the processor: lower EPP values tend to improve performance, and the processor will run at higher frequencies and voltages more frequently to achieve fast response and high-performance output; while higher EPP values tend to save energy, and the processor will give priority to reducing frequency and voltage to reduce power consumption and extend battery life.
[0041] Operating frequency can be the clock speed of a processor or other component in an electronic device when performing computing tasks, usually expressed in Hertz (Hz). Operating frequency is one of the key indicators of the performance of a processor or other component, and directly affects the computing power and response speed of the device. Specifically, the operating frequency determines the number of instructions that a processor or other component can execute per second: a higher operating frequency means that the processor or other component can complete more computing tasks in a shorter time, thereby improving system performance.
[0042] Operation data refers to various types of data generated or collected by an electronic device in a specific operating state. For example, operation data may be user interaction events, including mouse clicks, keyboard input, or touch events, etc., reflecting the interaction between the user and the device. For example, operation data may be the screen image currently displayed by the electronic device. For example, operation data may be power consumption data of the electronic device. For example, operation data may be screen refresh rate. For example, operation data may be processor usage, including CPU usage, GPU usage, etc. For example, operation data may be memory usage, disk read and write speed, etc. For example, operation data may be various information recorded by the electronic device, such as the current time, etc.
[0043] Obtaining the operating data of the electronic device in the first state may be to collect, record and store the operating data of the electronic device in a specific state through specific technical means or processes. For example, the operating data of the electronic device may be collected through a preset monitoring tool. For example, the operating data of the electronic device may be collected through a sensor embedded in the device. For example, the operating data of the electronic device may be obtained through the system log records of the electronic device. For example, the operating data of the electronic device may be obtained by calling a system function when the electronic device is running through an API interface call. It should be noted that in the scheme of the present disclosure, a combination of any one or more of the above methods may be adopted to obtain the operating data of the electronic device.
[0044] In operation S120, the operation data is analyzed to generate analysis results.
[0045] Analyzing the operating data and generating analysis results may be to apply specific algorithms or methods to process and interpret the collected operating data to identify equipment performance status, anomalies, etc.
[0046] According to an embodiment of the present disclosure, the analysis results may include a first result characterizing that an electronic device in a first state has become stuck relative to an electronic device in a second state, that is, a result identifying that the electronic device in the first state has performance issues or response delays relative to the electronic device in the second state.
[0047] The analysis results may also include a second result characterizing that the electronic device in the first state does not experience any lag relative to the electronic device in the second state, that is, the electronic device in the first state does not experience any performance issues under normal operating conditions relative to the electronic device in the second state.
[0048] In operation S130, in response to the analysis result indicating that the electronic device in the first state is stuck relative to the electronic device in the second state, a power supply parameter of the electronic device is adjusted.
[0049] The second state may be another state different from the first state. In the second state, the power supply parameter of the electronic device is higher than the power supply parameter of the first electronic device, and the power supply parameter of the electronic device in the first state is lower than the power supply parameter of the electronic device in the second state.
[0050] For example, the second state may be an external power supply mode, in which the power consumption limit on the CPU and GPU is usually lifted when the electronic device power adapter obtains power from an outlet, or is powered by an external battery with sufficient power.
[0051] For example, the second state may be a high-performance mode, where the user changes the power supply parameters through mode conditions or directly, so that the power supply parameters are higher than the default conditions.
[0052] In some cases, simply detecting a jam in the first state does not necessarily mean that the power supply parameters need to be adjusted. The jam may be caused by other factors.
[0053] Other factors may be software factors. For example, defects in the design or framework of the application may cause lags, or the application or system process may fail to release allocated memory, leading to memory exhaustion, which in turn causes lags.
[0054] Other factors may be hardware factors, such as a bottleneck in the speed of a hard disk or solid-state drive (SSD), which may cause data reading or writing delays, affecting system performance and causing lags. Overheating of the device may cause the processor to be down-clocked to prevent damage, thereby reducing performance and causing lags. Insufficient physical memory may cause the system to frequently use virtual memory, increasing latency and causing lags.
[0055] Other factors may be network factors, such as network latency or instability. Unstable network connections or high latency may affect the performance of online applications, causing freezes, resulting in performance degradation of video streaming, online games, or other real-time applications.
[0056] Other factors may be system factors. For example, operating system updates may cause incompatibility or performance issues, affecting device operation and causing lags. Improper configuration of the system or application by users may lead to performance degradation and lags.
[0057] In the case of the above-mentioned other factors, in many cases, even if the lag is found, the electronic device cannot automatically optimize the lag. For example, the electronic device cannot automatically change external conditions such as network speed and ambient temperature. The electronic device cannot automatically replace its own hardware or operating system.
[0058] Therefore, it is necessary to adjust the power supply parameters of the electronic device only when the analysis result indicates that the electronic device in the first state is stuck relative to the electronic device in the second state. If the electronic device in the first state is stuck relative to the electronic device in the second state, it means that the electronic device can achieve the performance of the electronic device in the second state, but due to the difference between the first state and the second state, the various parameters of the electronic device are different, resulting in the electronic device in the first state being stuck relative to the electronic device in the second state. In this case, the power supply parameters of the electronic device in the first state are adjusted so that the electronic device after the power supply parameters are adjusted is optimized relative to the electronic device in the second state.
[0059] It should be noted that the electronic device may also freeze in the second state. When other conditions are the same or similar except for the difference between the first state and the second state, if the electronic device freezes in the same way in the first state, it is not considered that the electronic device in the first state freezes relative to the electronic device in the second state.
[0060] For example, if an electronic device freezes when opening application 1 in the second state for 3 seconds, and if the electronic device freezes when opening application 1 in the first state, and the freeze also occurs for 3 seconds, then the electronic device in the first state is not considered to have freezed relative to the electronic device in the second state.
[0061] In the first state, the power supply algorithm of the electronic device is mainly aimed at reducing power consumption. In different scenarios, there will be different power supply parameters. However, the actual usage scenarios of users vary greatly. The pre-set scenarios and power supply parameters sometimes cannot meet the actual needs of users, resulting in usage jams. In the disclosed embodiment, the operating data in the first state is used to analyze whether the electronic device in the first state is jammed relative to the electronic device in the second state. If so, it means that the jam is most likely caused by the difference in power supply parameters. At this time, the power supply parameters are corrected according to the jam situation to avoid jams.
[0062] Figure 2 The flowchart of obtaining operation data in the power supply parameter adjustment method according to the embodiment of the present disclosure is schematically shown.
[0063] like Figure 2 As shown, according to an embodiment of the present disclosure, operation S110 may include operation S210.
[0064] In operation S210, in response to detecting the target operation, first information is obtained, the first information at least representing data generated by the electronic device in response to the target operation in the first state. The first information includes a plurality of first screen information, and the first screen information corresponds to a plurality of screens generated by the electronic device in response to the target operation in the first state.
[0065] Target operations can refer to specific actions, inputs or set automatic trigger events sensed by electronic devices. Target operations are usually key points for system monitoring and analysis. Specifically, target operations can include but are not limited to user interactions, such as mouse clicks, keyboard inputs, screen touches, etc., as well as tasks automatically executed by the system, such as program startup and scheduled task execution.
[0066] For example, when a user clicks the mouse to open an application, this click is a target operation; another example is when a user switches tabs in a browser, this switching action is also considered a target operation. In addition, when the system automatically starts certain programs when the computer is turned on, or performs specific tasks at a predetermined time, these are also part of the target operation.
[0067] Target operations can have clear operation parameters. The same type of operations with different operation parameters are considered different target operations. For example, if the positions (operation parameters) of two mouse clicks are different, then the two clicks are considered different target operations. For example, if the positions of two mouse clicks are the same but the targets (operation parameters) are different (the first click is on document 1, and the second click is on document 2), then the two clicks are considered different target operations.
[0068] The first information refers to the relevant data collected in response to the target operation when the electronic device is in the first state. Specifically, the first information includes a variety of data generated by the device when performing a specific operation, reflecting the actual operation performance of the device in this state.
[0069] According to an embodiment of the present disclosure, the first information may include a plurality of first screen information, and the first screen information corresponds to a plurality of screens generated by the electronic device in response to the target operation in the first state.
[0070] When the electronic device is in the first state, in response to detecting the occurrence of a target operation, multiple groups of visual data related to the visual output generated by the electronic device in response to the target operation are acquired, and multiple first screen information are generated according to the visual data.
[0071] The visual data reflects one or more of the operation results, operation process, and visual performance of the device in this state. The visual data can be screen or image data. For example, when a user opens an application in battery mode, the first screen information may include the loading screen, welcome interface, and main interface displayed during the application startup process; for another example, when a user scrolls a web page in a browser, the visual data can be the continuous web page content displayed during the scrolling process.
[0072] According to an embodiment of the present disclosure, the visual-related data may be a plurality of image data displayed by a display device of the electronic device in response to detecting the occurrence of a target operation, starting from the moment when the target operation occurs. For example, in response to detecting that the mouse double-clicks document 1, a plurality of screen images displayed on the display screen of the electronic device are obtained.
[0073] According to an embodiment of the present disclosure, generating multiple first picture information based on visual data may be performed by processing multiple visual data according to a preset feature extraction model to obtain corresponding multiple feature information as multiple first picture information.
[0074] The preset feature extraction model can be a combination of one or more of a convolutional neural network, a feature pyramid network, a regional convolutional neural network, an autoencoder, a variational autoencoder, a generative adversarial network, and a visual transformer.
[0075] For example, the feature extraction model is an autoencoder, which includes an input layer, a convolution layer, a downsampling block, an intermediate convolution layer, feature compression, an upsampling block, an output convolution layer, and an output layer. The autoencoder processes multiple visual data to obtain corresponding multiple feature information as multiple first picture information, which can be that each visual data (such as an image) is input into the autoencoder through the input layer, and the initial features are extracted through the convolution layer, and then the size of the feature map is gradually reduced through the downsampling block, and the features are compressed into a low-dimensional feature vector through the intermediate convolution layer.
[0076] The first information can be saved in the form of a tuple. For example, in response to detecting the occurrence of a target operation, multiple groups of visual data related to the vision generated by the electronic device in response to the target operation are collected, and corresponding first screen information is generated respectively, recorded as f0, f1, f2, f3, f4. Then, multiple tuples (f0, f1, other...), (f0, f2, other...), (f0, f3, other...), (f0, f4, other...) can be generated as multiple first information, where "other..." represents possible other operating data.
[0077] According to an embodiment of the present disclosure, acquiring multiple sets of visual data related to visual outputs generated by the electronic device in response to a target operation may include: acquiring multiple sets of visual data related to visual outputs generated by the electronic device in response to a target operation at a preset time interval and a preset number of times. For example, whenever a target operation of a user clicking a mouse is detected, multiple frames (e.g., 5 frames) of screen images are continuously captured at a fixed time interval (e.g., 1 second).
[0078] According to an embodiment of the present disclosure, acquiring multiple sets of visual data related to visual outputs generated by the electronic device in response to a target operation may further include: deduplicating the acquired multiple visual data. For example, whenever a target operation of a user clicking a mouse is detected, multiple frames (e.g., 5 frames) of screen images are continuously captured at a fixed time interval (e.g., 1 second), and if two frames of images are the same, only the previous frame is retained.
[0079] It should be noted that the relevant information of the target operation needs to be stored in the first information, that is, at least some specific operation parameters of the target operation can be clearly known through the first information. For example, the relevant information of the target operation can be stored in the "other..." part of the tuple.
[0080] Figure 3The flowchart for generating analysis results in the power supply parameter adjustment method according to the embodiment of the present disclosure is schematically shown.
[0081] like Figure 3 As shown, according to an embodiment of the present disclosure, operation S120 may include operations S310 to S320.
[0082] In operation S310, second information matching the first information is acquired according to the first screen information. The second information at least represents data generated by the electronic device in the second state in response to the target operation, and the second information includes a plurality of second screen information, and the second screen information corresponds to a plurality of screens generated by the electronic device in the second state in response to the target operation. The first information and the second information match, including: the first screen information and the second screen information match.
[0083] The second information refers to the relevant data generated by the electronic device in response to the target operation in the second state. Similar to the first information, the second information includes multiple sets of data, reflecting the operating performance of the device in a higher power consumption state.
[0084] According to an embodiment of the present disclosure, the second information may include a plurality of second screen information, and the second screen information corresponds to a plurality of screens generated by the electronic device in response to the target operation in the second state.
[0085] When the electronic device is in the second state, in response to detecting the occurrence of the target operation, multiple sets of visual data related to the visual output generated by the electronic device in response to the target operation are obtained, and multiple second screen information are generated according to the visual data. For the description of the visual data, please refer to the above embodiment, which will not be repeated here.
[0086] According to an embodiment of the present disclosure, generating multiple second picture information based on visual data can be performed by processing multiple visual data according to a preset feature extraction model to obtain corresponding multiple feature information as multiple second picture information. For the relevant description of the feature extraction model, reference can be made to the aforementioned embodiment and no further description is given here.
[0087] The second information is generated and stored in the electronic device in the second state. For example, the second information may be generated in response to the electronic device in the second state detecting a target operation and based on operating data generated by the electronic device in response to the target operation.
[0088] The second information can be saved in the form of a tuple. For example, in response to detecting the occurrence of a target operation, multiple groups of visual data related to the vision generated by the electronic device in response to the target operation are collected, and corresponding second screen information is generated respectively, recorded as f5, f6, f7, f8, f9. Then, multiple tuples (f5, f6, other...), (f5, f7, other...), (f5, f8, other...), (f5, f9, other...) can be generated as multiple second information, where "other..." represents possible other operating data.
[0089] According to an embodiment of the present disclosure, collecting multiple sets of visual data related to the visual output generated by the electronic device in response to the target operation and used to generate the second information may include: acquiring multiple sets of visual data related to the visual output generated by the electronic device in response to the target operation at a preset time interval and a preset number of times. For example, it may be that whenever a target operation of a user clicking a mouse is detected, multiple frames (e.g., 5 frames) of screen images are continuously captured at a fixed time interval (e.g., 1 second).
[0090] According to an embodiment of the present disclosure, obtaining multiple sets of visual data related to the visual output generated by the electronic device in response to the target operation and used to generate the second information may also include: deduplication of the multiple visual data obtained. For example, whenever a target operation of a user clicking a mouse is detected, multiple frames (e.g., 5 frames) of screen images are continuously captured at fixed time intervals (e.g., 1 second), and if two frames of images are the same, only the previous frame is retained.
[0091] According to an embodiment of the present disclosure, it also includes: in response to the electronic device detecting the target operation again in the second state, generating second information for the target operation; and updating the generated and stored second information for the target operation based on the generated second information for the target operation.
[0092] Acquiring the second information that matches the first information may be to acquire multiple first screen information based on the first information, and to acquire the second information corresponding to multiple second screen information that matches the multiple first screen information, to obtain at least one set of matched information, wherein the matched information includes the matched first information and the second information.
[0093] For example, when the first information and the second information are both saved in the form of tuples, the first information is: (f0, f1, other...), (f0, f2, other...), (f0, f3, other...), (f0, f4, other...), and the second information is: (f5, f6, other...), (f5, f7, other...), (f5, f8, other...), (f5, f9, other...), if the picture features represented by f0 are the same as those of f5, that is, the picture corresponding to f0 is the same as the picture corresponding to f5, and the picture features represented by f2 are the same as those of f8, that is, the picture corresponding to f2 is the same as the picture corresponding to f8, then by matching the picture features, a set of matching information can be obtained: (f0, f2, other...) and (f5, f8, other...).
[0094] It should be noted that when matching here, the first information and the second information need to be generated based on the same target operation. If the first information and the second information are not generated based on the same target operation, then even if the first information and the second information match in the screen, the first information and the second information have no reference value.
[0095] For example, when the first information is generated based on "opening program 1" and the second information is generated based on "opening program 2", due to the screen structure design of program 1 and program 2, the screens obtained by the two may be the same (for example, program 1 and program 2 have different browsers, but are set to open the default homepage after opening and display in full screen. When the default homepage is also set to the same, the screens obtained by the two may be the same). However, the plug-ins, historical data, bookmarks, extension settings, startup code design, and compatibility with the operating system loaded by different browsers may be different, and there may be a large difference in the opening time. It is not accurate to judge the jamming based on this.
[0096] For another example, the first information and the second information are the same type of operations for the same program, for example, both are "Open Program 3", but the opening methods are different. The first information is generated in response to the operation of opening by clicking a mouse, and the second information is generated in response to the operation of opening by voice instructions of the awakened smart voice assistant. Although the screen generated by opening by clicking a mouse and opening the same software by a smart voice assistant is the same, the time consumed is obviously different. If the lag judgment is made based on this, it is not accurate.
[0097] In operation S320, an analysis result is generated based on the first information and the second information. For example, the analysis result is generated by matching the first information and the second information in at least one set of matching information. By comparing and analyzing the relevant data collected by the electronic device in the first state and the second state, an evaluation result on the performance of the device is generated, and the matched first information (data in the low power consumption state) is matched and compared with the second information (data in the high power consumption state) to identify whether the device has performance degradation or jamming in the low power consumption state.
[0098] Figure 4 Another flow chart for generating analysis results in the power supply parameter adjustment method according to an embodiment of the present disclosure is schematically shown.
[0099] According to an embodiment of the present disclosure, the first information also includes first time information, which represents the time interval for the electronic device to jump from the first screen to another different screen in the first state. The second information also includes second time information, which represents the time interval for the electronic device to jump from the first screen to the last screen in the second state.
[0100] According to an embodiment of the present disclosure, the first information may also include first time information, which refers to the time interval between the electronic device jumping from one screen to another different screen in the first state. The screen mentioned here may be the visual data in the operating data mentioned in the aforementioned embodiment. For example, the screen displayed on the screen of the electronic device. The screen here corresponds one-to-one to the screen collected and deduplicated by the electronic device in the first state in response to detecting the target operation in the aforementioned embodiment.
[0101] When the first information is saved in the form of a tuple, the first information can be, for example, (f0, f1, t1, other...), (f0, f2, t2, other...), (f0, f3, t3, other...), (f0, f4, t4, other...), where t1~t4 respectively represent the time interval for the picture to switch from the picture corresponding to f0 to the pictures corresponding to f1~f4.
[0102] According to an embodiment of the present disclosure, the second information may also include second time information, which refers to the time interval between the electronic device jumping from one screen to another different screen in the second state. The screen mentioned here may be the visual data in the operating data mentioned in the aforementioned embodiment. For example, the screen displayed on the screen of the electronic device. The screen here corresponds one-to-one to the screen collected and deduplicated by the electronic device in the second state in response to detecting the target operation in the aforementioned embodiment.
[0103] When the second information is saved in the form of a tuple, the second information can be, for example, (f5, f6, t6, other...), (f5, f7, t7, other...), (f5, f8, t8, other...), (f5, f9, t9, other...), where t6~t9 respectively represent the time interval for the picture to switch from the picture corresponding to f5 to the pictures corresponding to f6~f9.
[0104] like Figure 4 As shown, based on the foregoing embodiment, operation S320 may include operation S410.
[0105] In operation S410, an analysis result is generated according to the first time information and the second time information. For example, the analysis result is generated by the first time information and the second time information respectively contained in the matching first information and the second information in at least one set of matching information. By comparing the time consumed by the electronic device to switch screens in the first state and the second state, an evaluation result on the performance of the device is generated. Specifically, by analyzing the difference in time required for the device to jump from one screen to another in low power consumption and high power consumption states, it is possible to identify whether a freeze occurs. For example, if the time a user takes to open an application in battery mode (first time information) is significantly longer than the time in external power mode (second time information), the system can generate an analysis result indicating that there is a freeze in external power mode relative to battery mode.
[0106] Figure 5 Another flow chart for generating analysis results in the power supply parameter adjustment method according to an embodiment of the present disclosure is schematically shown.
[0107] like Figure 5 As shown, operation S410 may include operation S510 or S520.
[0108] In operation S510, when a ratio of the first time information to the second time information is greater than a preset ratio threshold, an analysis result representing the jamming is generated.
[0109] In operation S520, when the ratio of the first time information to the second time information is less than or equal to a preset ratio threshold, an analysis result indicating no lag is generated.
[0110] For example, the first time information is divided by the second time information to obtain a ratio Rt between the two. If Rt is greater than a preset ratio threshold, it is considered that the first time information is too large relative to the second time information. Under the same circumstances, if the time it takes for the electronic device to produce the same result in the first state is significantly longer than the time it takes to produce the same result in the second state, it is considered that the electronic device in the first state is stuck relative to the electronic device in the second state, and an analysis result characterizing the stuck state is generated.
[0111] If Rt is less than or equal to the preset ratio threshold, it is considered that the first time information is not too large relative to the second time information. Then, under the same circumstances, the time it takes for the electronic device to produce the same result in the first state is greater than the time it takes to produce the same result in the second state, and the degree is within an acceptable range; or the time it takes for the electronic device to produce the same result in the first state is the same as or less than the time it takes to produce the same result in the second state. Then, it is considered that the electronic device in the first state has not experienced any lag relative to the electronic device in the second state, and an analysis result indicating no lag is generated.
[0112] For example, the specific calculation of Rt is that (f0, f2, t2, other...) and (f5, f8, t8, other...) are a set of matching first information and second information, then Rt=t2 / t8.
[0113] Figure 6 Another flow chart for generating analysis results in the power supply parameter adjustment method according to an embodiment of the present disclosure is schematically shown.
[0114] According to an embodiment of the present disclosure, the first information also includes first power consumption information, which represents the power consumption of the electronic device when it jumps from a first screen to another different screen in the first state. The second information also includes second power consumption information, which represents the power consumption of the electronic device when it jumps from the first screen to another different screen in the second state.
[0115] According to an embodiment of the present disclosure, operation S420 may include operation S610.
[0116] In operation S610, an analysis result is generated according to first time information, first power consumption information, second time information, and second power consumption information.
[0117] According to an embodiment of the present disclosure, the first information may also include first power consumption information, and the first power consumption information may be the power consumption of the electronic device when jumping from one screen to another different screen when the electronic device is in the first state. The power consumption may include, but is not limited to, the power consumption of the CPU, the power consumption of the GPU, the power consumption of the network card, the output power consumption of the battery, etc. This information is used to evaluate the energy consumption of the device when performing operations in a low-power state, and to help determine whether performance degradation or freezes are caused by insufficient power. For example, when a user opens an application in battery mode, the first power consumption information may be the power consumption information of the device when the screen is the main interface during the process from the startup screen to the main interface of the application; for another example, when the user uses battery mode to play a video, the first power consumption information may be the power consumption information of the device during normal playback from the video startup to the normal playback.
[0118] For example, when the first information is saved in the form of a tuple, the first information may be: (f0, f1, t1, p1, other…), (f0, f2, t2, p2, other…), (f0, f3, t3, p3, other…), (f0, f4, t4, p4, other…), where p1~p4 respectively represent the power consumption of the electronic device when the screen switches to the screen corresponding to f1~f4, as the first power consumption information.
[0119] According to an embodiment of the present disclosure, the second information may also include second power consumption information, and the second power consumption information may be the power consumption of the electronic device when the electronic device is in the second state and jumps from one screen to another different screen. The power consumption may include, but is not limited to, the power consumption of the CPU, the power consumption of the GPU, the power consumption of the network card, the output power consumption of the battery, etc.
[0120] For example, when the second information is saved in the form of a tuple, the second information may be, for example, (f5, f6, t6, p6, other...), (f5, f7, t7, p7, other...), (f5, f8, t8, p8, other...), (f5, f9, t9, p9, other...), wherein p6~p9 respectively represent the power consumption of the electronic device when the screen switches to the screen corresponding to f6~f9, as the second power consumption information.
[0121] It should be noted that the power consumption standards selected for the first information and the second information should be unified. For example, if the first information includes the power consumption of the CPU but does not include other power consumption such as the GPU, then the corresponding second information should also only include the power consumption of the CPU.
[0122] Generate an analysis result based on the first time information, the first power consumption information, the second time information, and the second power consumption information. For example, generate an analysis result based on the first time information and the first power consumption information contained in the first information, and the second time information and the second power consumption information contained in the second information in at least one set of matching information.
[0123] By comprehensively analyzing the time consumption and power consumption data of the electronic device in the first state and the second state, an evaluation result on the device performance and energy efficiency is generated. Specifically, by analyzing the time difference required for the device to jump from one screen to another in low power and high power states, it is possible to identify whether a freeze occurs. Further, by analyzing the power consumption difference required for the device to jump from one screen to another in low power and high power states, it is determined whether there is a difference in power consumption between the two when a freeze occurs. If there is a difference, then the freeze may be caused by insufficient power consumption. At this time, it is necessary to further improve the power supply parameters of the electronic device to increase power consumption.
[0124] According to an embodiment of the present disclosure, operation S610 may include operation S611 or S612 or S613.
[0125] In operation S611, when the ratio of the first time information to the second time information is greater than a preset time ratio threshold, and the ratio of the first power consumption information to the second power consumption information is less than a preset power consumption ratio threshold, an analysis result indicating that the system freezes due to insufficient power consumption is generated.
[0126] In operation S612, when the ratio of the first time information to the second time information is greater than a preset time ratio threshold, and the ratio of the first power consumption information to the second power consumption information is greater than or equal to a preset power consumption ratio threshold, an analysis result indicating that the freeze is not caused by insufficient power consumption is generated.
[0127] In operation S611, when the ratio of the first time information to the second time information is less than or equal to a preset time ratio threshold, an analysis result indicating no lag is generated.
[0128] For the content of calculating whether jamming occurs through time information, please refer to the above embodiment, which will not be repeated here. The specific method of calculating whether the jamming may be caused by insufficient power consumption through power consumption information is to divide the first power consumption information by the second power consumption information to obtain the ratio Rp of the two. If Rp is less than the preset power consumption ratio threshold, it is considered that the first power consumption information is too small relative to the second power consumption information. Then, under the same circumstances, the time for the electronic device to produce the same result in the first state is significantly longer than the time for producing the same result in the second state, and the power consumption of the electronic device when producing the same result in the first state is significantly less than the power consumption when producing the same result in the second state. Then, it is considered that the electronic device in the first state may be jammed due to insufficient power consumption relative to the electronic device in the second state, and an analysis result representing jamming due to insufficient power consumption is generated.
[0129] If Rp is greater than or equal to the preset power consumption ratio threshold, it is considered that the first power consumption information is not less than the second power consumption information. Then, under the same circumstances, the time it takes for the electronic device to produce the same result in the first state is significantly longer than the time it takes to produce the same result in the second state, and the power consumption of the electronic device when producing the same result in the first state is not much different from, close to, or even exceeds the power consumption when producing the same result in the second state. Then, it is considered that the electronic device in the first state may not be stuck due to insufficient power consumption compared to the electronic device in the second state, and an analysis result is generated that indicates that the stuck is not caused by insufficient power consumption. At this time, the stuck may be caused by other factors, such as network fluctuations, hardware frequency reduction caused by rising ambient temperature, etc.
[0130] Figure 7Another flow chart of the power supply parameter adjustment method according to an embodiment of the present disclosure is schematically shown.
[0131] According to the embodiment of the present disclosure, the second information is generated and stored in the electronic device in the second state. The power supply parameter adjustment method provided by the embodiment of the present disclosure may further include: operations S710~S720.
[0132] In operation S710, in response to the electronic device in the second state detecting a target operation, second information is generated.
[0133] In operation S720, second information is stored.
[0134] The generation process, structural form and specific content of the second information can be referred to the aforementioned embodiment and will not be elaborated here.
[0135] The power supply parameter adjustment method provided by the embodiment of the present disclosure may further include operation S730.
[0136] In operation S730, in response to the electronic device in the second state detecting the target operation again, the second information is updated.
[0137] Since users use electronic devices in a variety of scenarios, when the electronic device in the second state detects the target operation multiple times, the software and hardware environment of the electronic device may be different. For example, when the target operation is detected for the first time, there are fewer background programs, and when the target operation is detected for the second time, there are more background programs. At this time, after the target operation is detected again, it is necessary to generate the second information corresponding to the target operation again, and update the second information that has been generated and saved according to the second information that is generated again.
[0138] According to an embodiment of the present disclosure, the second information may further include an update number. Updating the second information further includes: updating the second information according to the update number.
[0139] For example, when the second information is stored in the form of a tuple, the second information may be (f5, f6, t6, p6, n, other . . . ), wherein n represents the number of updates.
[0140] For the convenience of description, the second information generated after the target operation is detected is called the initial second information. The initial second information is generated but not stored in the storage location of the second information. The stored second information is called the existing second information. The existing second information is the second information that has been generated and stored in the corresponding location. The existing second information may include the number of updates. Whenever the same target operation is detected and the initial second information is generated, then, according to the multiple second screen information in the initial second information, a match is made from the existing second information for the target operation. If there is existing second information in the existing second information that has the same screen information as the initial second information, then the existing second information is updated according to the number of updates of the existing second information and the initial second information.
[0141] In combination with the foregoing embodiments, when the second information includes second time information, or the second information includes second time information and second power consumption information, updating the existing second information according to the number of updates of the existing second information and the initial second information may include: calculating the average time information according to the second time information of the existing second information, the second time information of the initial second information, and the number of updates; or calculating the average power consumption information according to the second power consumption information of the existing second information, the second power consumption information of the initial second information, and the number of updates; updating the second time information and / or second power consumption information of the existing second information according to the average time information and / or the average power consumption information.
[0142] For example, taking the second information in the form of a tuple as an example, if an initial second information (fa1, fb1, t1, p1) matches some existing second information (fa2, fb2, t2, p2, n2), the average time and average power consumption of the tuple in the update library are: t2 = (t2 * n2 + t1) / (n2 +1), p2 = (p2 * n2 + p1) / (n2 +1), and the number of updates for updating the existing second information is n2 = n2 +1.
[0143] If no existing second information matching the initial second information is detected, the initial second information is stored in a corresponding position as a new existing second information, and the addition update times is set to 0.
[0144] By updating the second information multiple times, the interference caused by special circumstances is smoothed out, ensuring that the second information is average and representative data.
[0145] Figure 8 Another flow chart of the power supply parameter adjustment method according to an embodiment of the present disclosure is schematically shown.
[0146] like Figure 8As shown, according to the embodiment of the present disclosure, the power supply parameter adjustment method may further include operation S810.
[0147] In operation S810, in response to the electronic device completing the power supply parameter adjustment, and the electronic device in the first state running without lag in response to the target operation, third information is generated based on the current power supply parameters of the electronic device, and the third information represents the data generated by the electronic device in the second state in response to the target operation and the adjusted power supply parameters.
[0148] Operation S130 may further include operation S820.
[0149] In operation S820, in response to the presence of third information matching the first information, a power supply parameter of the electronic device is adjusted based on a power supply parameter represented by the third information.
[0150] It should be noted that operation S820 of the embodiment of the present disclosure is performed when the power supply parameters are adjusted for the first time, and after the adjustment, the electronic device in the first state does not lag when running in response to the target operation relative to the electronic device in the second state, and then re-enters the first state.
[0151] For example, the first state is the battery mode, and the second state is the external power mode. In the battery mode, a freeze occurs, and after adjustment, the running data (such as features such as the screen) of the freeze in the battery mode and the adjusted power supply parameters are saved (third information). Then, after entering the battery mode from the external power mode, the power supply parameters are still the battery mode. After detecting the target operation, if it is detected that the data (such as features such as the screen) generated in response to the target operation has matching third information, then the power supply parameters of the electronic device are directly adjusted according to the power supply parameters in the saved third information.
[0152] This operation is because when the electronic device is in the first state, when adjusting the jamming, it may not be possible to completely eliminate the jamming after one adjustment, and it may take multiple adjustments to completely eliminate the jamming. Then, through this method, the power supply parameters when the jamming completely disappears can be saved. The next time the electronic device re-enters the first state, there is no need to make multiple adjustments until the jamming completely disappears. The corresponding saved power supply parameters can be directly used to avoid multiple adjustments affecting the experience.
[0153] Fig. 9 Another flow chart of the power supply parameter adjustment method according to an embodiment of the present disclosure is schematically shown.
[0154] like Fig. 9 As shown, according to an embodiment of the present disclosure, operation S110 may include operation S910.
[0155] In operation S910, an operating screen of the electronic device in the first state is acquired in real time.
[0156] According to an embodiment of the present disclosure, operation S120 may include operation S920.
[0157] In operation S920, based on the pre-trained first model, it is detected whether the running screen contains the target feature and an analysis result is generated. If the running screen contains the target feature, the analysis result indicates that the electronic device is stuck, and if the running screen does not contain the target feature, the analysis result indicates that the electronic device is not stuck.
[0158] According to an embodiment of the present disclosure, the operating screen of an electronic device in a first state can be acquired in real time, and a pre-trained first model can be used to detect whether the operating screen contains a target feature, the target feature representing the screen feature of the electronic device when a freeze occurs. If the operating screen contains the target feature, the analysis result represents that a freeze occurs in the electronic device; if the operating screen does not contain the target feature, the analysis result represents that a freeze does not occur in the electronic device.
[0159] For example, when users zoom or drag the screen, they may see significant ghosting. This ghosting phenomenon can be effectively identified through image algorithms; the severity of the jam can be determined based on the duration of the ghosting. The power supply parameters of the electronic device can be set very low in advance, and then the screen images with ghosting can be collected and annotated, and a first model can be trained to detect ghosting and determine whether jamming occurs based on the duration of the ghosting. If jamming occurs, the power supply parameters are adjusted.
[0160] Fig.10 The flowchart of adjusting power supply parameters in the power supply parameter adjustment method according to an embodiment of the present disclosure is schematically shown.
[0161] like Fig.10 As shown, according to an embodiment of the present disclosure, operation S130 may include operations S010 to S1030.
[0162] In operation S1010, program information corresponding to a program currently running on the electronic device is obtained.
[0163] In operation S1020, at least one target device of the electronic device is determined according to the program information.
[0164] In operation S1030, a power supply parameter of the target device is adjusted.
[0165] Specifically, after a freeze occurs, the program information corresponding to the program currently running on the electronic device can be obtained. Through the program information, it can be determined which target device of the electronic device has the greatest demand from the currently running program, or a priority list can be obtained. The higher the ranking of the target device, the greater the demand. Then, according to this demand, the power supply parameters of the corresponding target device can be adjusted. The target device may include, but is not limited to, CPU, GPU, graphics card, network card, motherboard, disk, sound card, etc.
[0166] For example, if the currently running programs have a higher demand on the CPU and a lower demand on other devices, then only the power supply parameters of the CPU may be adjusted.
[0167] According to an embodiment of the present disclosure, adjusting a power supply parameter of an electronic device may include: adjusting the power supply parameter according to a preset power supply parameter gradient.
[0168] For example, the power limit parameter can be divided into multiple levels, such as PL1~PL3, etc. Each adjustment can be adjusted up one level. The operating frequency can be preset in multiple steps, and the difference between the operating frequencies of each gradient is the preset difference. Each adjustment is adjusted up one gradient to increase the operating frequency.
[0169] According to an embodiment of the present disclosure, adjusting the power supply parameters of an electronic device may include: adjusting the power supply parameters according to a preset power supply parameter adjustment model. The preset power supply parameter adjustment model may be trained based on the power supply parameters and operating data of the electronic device in the second state, and / or the power supply parameters and operating data of the electronic device when it is not stuck in the first state. When the electronic device in the first state is stuck relative to the electronic device in the second state according to the analysis results, it is possible to predict the power supply parameters that should be adjusted, and adjust the electronic device according to the predicted power supply parameters.
[0170] Fig.11 A block diagram of a power supply parameter adjustment device according to an embodiment of the present disclosure is schematically shown.
[0171] like Fig.11 As shown, the power supply parameter adjustment device 1100 includes a first acquisition module 1110 , a first generation module 1120 and a first adjustment module 1130 .
[0172] The first acquisition module 1110 is used to acquire the operating data of the electronic device in the first state. In some embodiments, the first acquisition module 1110 can be used to execute the operation S110 in the aforementioned method, which will not be described in detail here.
[0173] The first generating module 1120 is used to analyze the operation data and generate an analysis result. In some embodiments, the first generating module 1120 can be used to perform operation S120 in the above method, which will not be described in detail here.
[0174] The first adjustment module 1130 is used to adjust the power supply parameters of the electronic device in response to the analysis result indicating that the electronic device in the first state is stuck relative to the electronic device in the second state. In some embodiments, the second generation module 1130 can be used to perform operation S130 in the above method, which is not described in detail here.
[0175] According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits, or at least part of the functions of any one of them can be implemented in one module. According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits can be split into multiple modules for implementation. According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits can be at least partially implemented as hardware circuits, such as field programmable gate arrays (FPGAs), programmable logic arrays (PLAs), systems on chips, systems on substrates, systems on packages, application specific integrated circuits (ASICs), or can be implemented by hardware or firmware in any other reasonable way of integrating or packaging circuits, or can be implemented in any one of the three implementation methods of software, hardware, and firmware, or in any appropriate combination of any of them. Alternatively, according to the embodiments of the present invention, one or more of the modules, submodules, units, and subunits can be at least partially implemented as computer program modules, and when the computer program modules are run, the corresponding functions can be performed.
[0176] For example, any multiple of the first acquisition module 1110, the first generation module 1120, and the first adjustment module 1130 can be combined in one module / unit / sub-unit for implementation, or any one of the modules / units / sub-units can be split into multiple modules / units / sub-units. Alternatively, at least part of the functions of one or more of these modules / units / sub-units can be combined with at least part of the functions of other modules / units / sub-units and implemented in one module / unit / sub-unit. According to an embodiment of the present disclosure, at least one of the first acquisition module 1110, the first generation module 1120, and the first adjustment module 1130 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application specific integrated circuit (ASIC), or can be implemented by hardware or firmware such as any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation modes of software, hardware, and firmware, or in any appropriate combination of any of them. Alternatively, at least one of the first acquisition module 1110 , the first generation module 1120 , and the first adjustment module 1130 may be at least partially implemented as a computer program module, and when the computer program module is executed, a corresponding function may be performed.
[0177] It should be noted that the data processing system part in the embodiments of the present disclosure corresponds to the data processing method part in the embodiments of the present disclosure. The description of the data processing system part specifically refers to the data processing method part, which will not be repeated here.
[0178] Fig.12 A block diagram of an electronic device suitable for implementing the method described above according to an embodiment of the present disclosure is schematically shown. Fig.12 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0179] like Fig.12 As shown, the electronic device 1200 according to an embodiment of the present disclosure includes a processor 1201, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1202 or a program loaded from a storage part 1208 to a random access memory (RAM) 1203. The processor 1201 may include, for example, a general-purpose microprocessor (e.g., a CPU), an instruction set processor and / or a related chipset and / or a special-purpose microprocessor (e.g., an application-specific integrated circuit (ASIC)), etc. The processor 1201 may also include an onboard memory for caching purposes. The processor 1201 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present disclosure.
[0180] In RAM 1203, various programs and data required for the operation of electronic device 1200 are stored. Processor 1201, ROM 1202 and RAM 1203 are connected to each other through bus 1204. Processor 1201 performs various operations of the method flow according to the embodiment of the present disclosure by executing the program in ROM 1202 and / or RAM 1203. It should be noted that the program can also be stored in one or more memories other than ROM 1202 and RAM 1203. Processor 1201 can also perform various operations of the method flow according to the embodiment of the present disclosure by executing the program stored in the one or more memories. For example, at least part of the following operations are performed: obtaining the operating data of the electronic device in the first state; analyzing the operating data to generate an analysis result; in response to the analysis result indicating that the electronic device in the first state is stuck relative to the electronic device in the second state, adjust the power supply parameters of the electronic device.
[0181] According to an embodiment of the present disclosure, the electronic device 1200 may further include an input / output (I / O) interface 1205, which is also connected to the bus 1204. The electronic device 1200 may further include one or more of the following components connected to the input / output (I / O) interface 1205: an input portion 1206, which may include an input device such as a keyboard, a mouse, a microphone, a camera, etc.; an output portion 1207 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage portion 1208 including a hard disk, etc.; and a communication portion 1209 including a network interface card such as a LAN card, a modem, etc. The communication portion 1209 performs communication processing via a network such as the Internet. A driver 1210 is also connected to the input / output (I / O) interface 1205 as needed. A removable medium 1211, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like, is mounted on the drive 1210 as needed, so that a computer program read therefrom is installed into the storage section 1208 as needed.
[0182] According to an embodiment of the present disclosure, the electronic device 1200 may further include a power supply device, which is used to place the electronic device in a first state, wherein the power supply capacity of the electronic device in the first state is lower than the power supply capacity of the electronic device in the second state, and the electronic device in the second state is powered by an external power source. For example, the power supply device is a built-in battery of the electronic device, and the electronic device in the first state supplies power to various parts of the electronic device through the built-in battery. The electronic device in the second state is powered by an external power source, for example, by connecting an external power adapter to an external power grid or an external battery / battery pack with sufficient power through a socket, and powering the electronic device from the external power grid / external battery / external battery pack.
[0183] According to an embodiment of the present disclosure, the method flow according to an embodiment of the present disclosure can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable storage medium, and the computer program contains a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 1209, and / or installed from the removable medium 1211. When the computer program is executed by the processor 1201, the above-mentioned functions defined in the system of the embodiment of the present disclosure are executed. According to an embodiment of the present disclosure, the system, equipment, device, module, unit, etc. described above can be implemented by a computer program module.
[0184] The present disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or may exist independently without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiment of the present disclosure is implemented.
[0185] According to an embodiment of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium. For example, it may include, but is not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, apparatus, or device.
[0186] For example, according to an embodiment of the present disclosure, the computer-readable storage medium may include the ROM 1202 and / or the RAM 1203 described above and / or one or more memories other than the ROM 1202 and the RAM 1203 .
[0187] An embodiment of the present disclosure also includes a computer program product, which includes a computer program, and the computer program contains program code for executing the method provided by the embodiment of the present disclosure. When the computer program product runs on an electronic device, the program code is used to enable the electronic device to implement the power supply parameter adjustment method provided by the embodiment of the present disclosure.
[0188] When the computer program is executed by the processor 1201, the above functions defined in the system / device of the embodiment of the present disclosure are executed. According to the embodiment of the present disclosure, the system, device, module, unit, etc. described above can be implemented by a computer program module.
[0189] In one embodiment, the computer program may rely on tangible storage media such as optical storage devices, magnetic storage devices, etc. In another embodiment, the computer program may also be transmitted and distributed in the form of signals on a network medium, and downloaded and installed through the communication part 1209, and / or installed from the removable medium 1211. The program code contained in the computer program may be transmitted using any appropriate network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0190] According to an embodiment of the present disclosure, the program code for executing the computer program provided by the embodiment of the present disclosure can be written in any combination of one or more programming languages. Specifically, these computing programs can be implemented using high-level process and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages include, but are not limited to, Java, C++, python, "C" language or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user device, partially on the remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (for example, using an Internet service provider to connect through the Internet).
[0191] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram may represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box may also occur in an order different from that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart, can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions. It can be understood by those skilled in the art that the features recorded in the various embodiments of the present disclosure can be combined and / or combined in a variety of ways, even if such a combination or combination is not explicitly recorded in the present disclosure. In particular, without departing from the spirit and teaching of the present disclosure, the features described in the various embodiments of the present disclosure may be combined and / or combined in a variety of ways. All of these combinations and / or combinations fall within the scope of the present disclosure.
[0192] The embodiments of the present disclosure are described above. However, these embodiments are only for illustrative purposes and are not intended to limit the scope of the present disclosure. Although the embodiments are described above, this does not mean that the measures in the various embodiments cannot be used in combination to advantage. Without departing from the scope of the present disclosure, those skilled in the art may make a variety of substitutions and modifications, which should all fall within the scope of the present disclosure.
Claims
1. A method for adjusting power supply parameters, comprising: Acquiring operation data of the electronic device in a first state; Analyze the operation data to generate analysis results; In response to the analysis result indicating that the electronic device in the first state is stuck relative to the electronic device in the second state, adjusting a power supply parameter of the electronic device; The power supply parameter of the electronic device in the first state is lower than the power supply parameter of the electronic device in the second state.
2. The method according to claim 1, obtaining the operation data of the electronic device in the first state, comprising: In response to detecting a target operation, acquiring first information, the first information at least representing data generated by the electronic device in response to the target operation in a first state; The first information includes a plurality of first screen information, and the first screen information corresponds to a plurality of screens generated by the electronic device in response to the target operation in the first state.
3. The method according to claim 2, wherein generating the analysis result comprises: acquiring, according to the first screen information, second information matching the first information, wherein the second information at least represents data generated by the electronic device in a second state in response to the target operation, The second information includes a plurality of second screen information, and the second screen information corresponds to a plurality of screens generated by the electronic device in response to the target operation in the second state; generating an analysis result based on the first information and the second information; The matching of the first information and the second information includes: the matching of the first screen information and the second screen information.
4. The method according to claim 3, wherein the first information further comprises first time information, wherein the first time information represents the time interval for the electronic device to jump from the first screen to another different screen in the first state. The second information also includes second time information, and the second time information represents the time interval for the electronic device to jump from the first screen to another different screen in the second state. The generating of the analysis results comprises: An analysis result is generated according to the first time information and the second time information.
5. The method according to claim 4, wherein generating the analysis result according to the first time information and the second time information comprises: When the ratio of the first time information to the second time information is greater than a preset ratio threshold, generating an analysis result representing the jamming; When the ratio of the first time information to the second time information is less than or equal to a preset ratio threshold, an analysis result indicating no lag is generated.
6. The method according to claim 4, wherein the first information further comprises first power consumption information, wherein the first power consumption information represents the power consumption of the electronic device when the electronic device jumps from the first screen to another different screen in the first state. The second information further includes second power consumption information, where the second power consumption information represents the power consumption of the electronic device when it jumps from the first screen to the last screen in the second state; The generating of the analysis results comprises: An analysis result is generated according to the first time information, the first power consumption information, the second time information, and the second power consumption information.
7. The method according to claim 2, further comprising: In response to the electronic device completing the adjustment of the power supply parameters, and the electronic device responding to the target operation in the first state without freezing, generating third information based on the current power supply parameters of the electronic device, wherein the third information represents the data generated by the electronic device in the second state in response to the target operation and the adjusted power supply parameters; The adjusting the power supply parameters of the electronic device includes: In response to the existence of the third information matching the first information, a power supply parameter of the electronic device is adjusted based on the power supply parameter represented by the third information.
8. The method according to claim 1, wherein obtaining the operation data of the electronic device in the first state comprises: Acquire the operation picture of the electronic device in the first state in real time; The generating of the analysis results comprises: Based on the pre-trained first model, detecting whether the running picture contains the target feature and generating an analysis result; Among them, if the running screen includes the target feature, the analysis result indicates that the electronic device has been stuck, and if the running screen does not include the target feature, the analysis result indicates that the electronic device has not been stuck.
9. The method according to claim 1, wherein adjusting the power supply parameters of the electronic device comprises: Obtaining program information corresponding to the program currently running on the electronic device; determining at least one target device of the electronic device according to the program information; Adjusting power supply parameters of the target device.
10. An electronic device comprising: A power supply device, used to put the electronic device in a first state, wherein the power supply capacity of the electronic device in the first state is lower than the power supply capacity of the electronic device in a second state, and the electronic device in the second state is powered by an external power supply; at least one processor; as well as A memory connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform at least part of the following operations: obtaining operating data of the electronic device in a first state; analyzing the operating data to generate an analysis result; and adjusting power supply parameters of the electronic device in response to the analysis result indicating that the electronic device in the first state is stuck relative to the electronic device in the second state.