Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
As shown in fig. 1, a flowchart of an embodiment 1 of an information processing method according to the present application is applied to an electronic device, where the electronic device is capable of receiving power provided by a power adapter and has a battery disposed therein, and a plurality of processors are disposed in the electronic device and are capable of supporting operation of a plurality of application programs, and the method includes the following steps:
step S101, if a power adapter is connected to an electronic device, controlling a power supply parameter provided by the power adapter as a working power supply of the electronic device;
The electronic equipment is provided with a battery, and can be connected with a power adapter and can receive electric energy provided by the power adapter.
When the power adapter is connected to the electronic equipment, the power supply parameters provided by the power adapter are controlled to serve as the working power supply of the electronic equipment.
Step S102, detecting a battery of the electronic equipment;
Wherein, can detect the discharge condition of battery through detecting the charging and discharging circuit.
The electronic equipment can be further provided with a charging chip, and the charging chip is used for monitoring the charge and discharge conditions of the battery.
When the electronic equipment is connected to the power adapter, if the power consumption of the electronic equipment is larger, the battery can be discharged when the power consumption exceeds the power which can be provided by the power supply parameter of the power adapter, and when the power consumption of the electronic equipment is smaller, the power consumption does not exceed the power which can be provided by the power supply parameter of the power adapter, and the battery is not required to be discharged.
And step S103, if the battery is in a discharging state, adjusting the operation of the electronic equipment based on a target strategy until the battery is stopped from discharging.
Wherein if the battery is detected to be in a discharged state, the power consumption of the electronic device is characterized as exceeding the power provided by the power adapter.
Therefore, a target policy is set in the electronic device, and the operation of the electronic device is adjusted based on the target policy, so that the electronic device only uses the power provided by the power supply adapter, and does not use the power of the battery, so that the battery discharge is stopped.
Specifically, the policy for adjusting the operation of the electronic device may be such as disabling a high-power application in the electronic device, disabling an application running in the background, or gradually reducing power consumption of multiple processors in the electronic device.
In summary, the information processing method provided in this embodiment includes controlling, if a power adapter is connected to an electronic device, a power supply parameter provided by the power adapter as a working power supply of the electronic device, detecting a battery of the electronic device, and if the battery is in a discharging state, adjusting operation of the electronic device based on a target policy until discharging of the battery is stopped. In the scheme, the target strategy is set, when the electronic equipment receives the power supply parameter provided by the power adapter as a working power supply, the battery in the electronic equipment is in a discharging state, and the operation of the electronic equipment is adjusted based on the target strategy so as to achieve the purpose of stopping the battery discharging, so that when the electronic equipment is connected with the power adapter, only the electric energy provided by the power adapter is used, the electric energy in the battery is not consumed, and the service time of the electronic equipment is prolonged.
As shown in fig. 2, a flowchart of an embodiment 2 of an information processing method provided by the present application includes the following steps:
step S201, if the power adapter is connected to the electronic equipment, controlling the power supply parameters provided by the power adapter as the working power supply of the electronic equipment;
Step S202, detecting a battery of the electronic equipment;
steps S201 to 202 are identical to steps S101 to 102 in embodiment 1, and are not described in detail in this embodiment.
Step S203, obtaining power consumption in at least two processors in the electronic device;
the electronic equipment comprises a plurality of processors, and each processor has power consumption in the running process.
Among them, the processor includes, but is not limited to, a CPU (Central Processing Unit, a central processing unit), a GPU (Graphics Processing Unit, a graphics processor), an EC (Embedded Controller, an embedded controller), and the like.
In a specific implementation, the power consumption of all the processors in the electronic device can be obtained, and the all the processors are used as at least two processors for reducing the power consumption subsequently.
In specific implementation, because the power consumption of some processors is very low, even if the low-power-consumption processor is turned off, the purpose of stopping the battery discharge cannot be achieved, the low-power-consumption processor is ignored, and the remaining processors with higher power consumption are used as at least two processors with lower power consumption.
Specifically, a processor selection threshold is set, and if the ratio of the power consumption of a certain processor to the overall power consumption of the electronic device is smaller than the processor selection threshold, the processor is ignored.
For example, the processor selection threshold is 5%, the power consumption of the CPU in the electronic device is 50W (watts), the power consumption of the GPU is 60W, the power consumption of the EC is 2W, the overall power consumption of the electronic device is 112W, the power consumption of the EC is 1.79% and less than the processor selection threshold, so the CPU and the GPU in the electronic device are used as at least two processors in the electronic device as the subsequent processors for reducing the power consumption.
Step S204, determining a first processor as a target processor, wherein the power consumption of the target processor is smaller than that of a second processor in the at least two processors;
the power consumption of at least two processors in the electronic equipment is sequenced, and a first processor with the lowest power consumption is selected as a target processor.
Wherein, because the importance of the processor with lower power consumption in the running process of the electronic equipment is lower, the control reduces the power consumption of the processor with lower importance, and the overall influence on the application programs running in the electronic equipment is smaller.
In general, when a high-power-consumption application (such as a game application) is running in an electronic device, in order to support the running of the high-power-consumption application, the power consumption of a processor running the high-power-consumption application is higher, and therefore, in order to maintain the running of the high-power-consumption application, a processor with lower power consumption is preferably selected as a target processor, and the power consumption of the target processor is reduced.
And step S205, reducing the power consumption of the target processor until the battery discharge is stopped.
Wherein, adjust the ladder according to the agreement, reduce the consumption of this goal processor.
For example, the adjustment ladder is 5W, and the power consumption of the target processor is reduced by 5W each time.
In a specific implementation, after the power consumption of the target processor is reduced once, detecting the discharge condition of the battery, and if the battery is still discharged, reducing the power consumption of the target processor again until the discharge of the battery is detected to stop.
In a specific implementation, in order to ensure that the overall power consumption of the processor of the electronic device is reduced, so that the electronic device only needs to supply the electric energy to the power adapter, and on the premise that the battery is not required to discharge, the application program running in the electronic device is not greatly affected, and the situation of the running application program needs to be determined, in the following embodiment, the power consumption of the target processor is controlled to be reduced according to the situation of combining the application program running in the electronic device, and the detailed description is omitted in this embodiment.
In summary, the information processing method provided by the embodiment includes obtaining power consumption of at least two processors in an electronic device, determining a first processor as a target processor, wherein the power consumption of the target processor is smaller than that of a second processor in the at least two processors, and reducing the power consumption of the target processor. In the scheme, a first processor with lower power consumption is selected as a target processor from at least two processors of the electronic equipment, and the power consumption of the target processor is reduced until the battery discharge is stopped. Because the importance of the processor with lower power consumption is lower in the running process of the electronic equipment, the control reduces the power consumption of the processor with lower importance, and the overall influence on the application programs running in the electronic equipment is smaller.
As shown in fig. 3, a flowchart of an embodiment 3 of an information processing method provided by the present application includes the following steps:
Step 301, if the power adapter is connected to the electronic device, controlling the power supply parameter provided by the power adapter as the working power supply of the electronic device;
step S302, detecting a battery of the electronic equipment;
step S303, obtaining power consumption in at least two processors in the electronic device;
Step S304, determining a first processor as a target processor, wherein the power consumption of the target processor is smaller than that of a second processor in the at least two processors;
Step S305, reducing the power consumption of the target processor;
steps S301-305 are identical to steps S201-205 in embodiment 2, and are not described in detail in this embodiment.
Step S306, if the battery is in a discharging state, determining whether to reduce the power consumption of the target processor again based on a first frame rate before reducing the power consumption of the target processor and a second frame rate after reducing the power consumption of the target processor until the battery is stopped from discharging.
After the power consumption of the target processor is reduced, whether the battery is still in a discharging state is determined, if the battery is still in a discharging state, the overall power consumption of the electronic device is represented to be larger than the power supplied by the power adapter, and the power consumption of the electronic device needs to be further reduced.
Wherein it is necessary to determine whether the current power consumption reduction has an effect on the performance of the electronic device running the application program, so as to determine whether to continue to reduce the power consumption of the target processor.
Because the frame rate (i.e., the number of transmission Frames Per Second) of the electronic device represents a smoothness that affects the output content of the electronic device, which is a parameter that is intuitively perceived by the user as the performance of the electronic device, in this embodiment, by comparing the changes of the frame rate of the electronic device before and after the power consumption is reduced, it is determined whether the power consumption of the current reduction target processor affects the performance of the electronic device for running the application.
The electronic equipment is also provided with a display device, the display content can be output, and the power consumption of the target processor can be reduced to influence the output frame rate of the display device.
Specifically, the frame rate of the electronic device may be that a specific application program in the electronic device is started, and automatic grabbing is triggered to start, and grabbing may be performed according to a period, or grabbing may be performed again after power is reduced each time, where the frame rate of the last grabbing before the power consumption of the target processor is reduced is used as a first frame rate, and the frame rate of the first grabbing after the power consumption of the target processor is reduced is used as a second frame rate.
If it is determined that the power consumption of the target processor can be reduced again based on the first frame rate and the second frame rate, the power consumption of the target processor is further reduced, after the power consumption of the target processor is reduced, determining whether the battery is in a discharge state again is performed, and when the battery is still in the discharge state, determining whether the power consumption of the target processor can be reduced continuously or not based on the frame rates before and after the power consumption of the target processor is reduced again until the discharge of the battery in the electronic device is stopped.
In a specific implementation, the first frame rate of capturing triggered by the starting of a specific application program in the electronic device can be used as a first frame rate, the frame rate of capturing after the power consumption of the target processor is reduced each time is used as a second frame rate, and the performance change condition between the power consumption of the target processor is reduced each time and the moment when the specific application program is started by the electronic device is compared, so that the power consumption of the target processor is ensured not to be seriously influenced relative to the operation performance of the initial electronic device through reducing.
If the power consumption of the target processor or the overall power consumption required in the operation process of the electronic device is reduced and is lower than the power supplied to the electronic device by the power adapter, the discharging of the battery is stopped, and the redundant power supplied by the power adapter is charged into the battery.
In summary, the method for processing information further includes determining whether to reduce the power consumption of the target processor again based on a first frame rate before reducing the power consumption of the target processor and a second frame rate after reducing the power consumption of the target processor if the battery is in a discharge state. In the scheme, after the power consumption of the target processor is reduced, if the battery is still in a discharge state, whether the power consumption of the target processor can be continuously reduced is determined based on the frame rate before and after the power consumption of the target processor is reduced at this time, so as to determine whether the power consumption reduction at this time has an influence on the performance of the electronic equipment.
As shown in fig. 4, a flowchart of an embodiment 4 of an information processing method provided by the present application includes the following steps:
step S401, if the power adapter is connected to the electronic equipment, controlling the power supply parameters provided by the power adapter as the working power supply of the electronic equipment;
step S402, detecting a battery of the electronic equipment;
Step S403, obtaining power consumption in at least two processors in the electronic device;
Step S404, determining a first processor as a target processor, wherein the power consumption of the target processor is smaller than that of a second processor in the at least two processors;
step S405, reducing the power consumption of the target processor;
Steps S401 to 405 are identical to steps S301 to 305 in embodiment 3, and are not described in detail in this embodiment.
Step S406, if the battery is in a discharging state, the power consumption of the target processor is reduced again until the battery discharging is stopped based on the first frame rate before the power consumption of the target processor is reduced and the second frame rate after the power consumption of the target processor is reduced meeting adjustment conditions.
Wherein the adjustment condition is that a rate of change between the first frame rate and the second frame rate is not greater than a change threshold.
The value of the change threshold is generally a smaller value, such as 5%, 2%, etc., and the specific value of the change threshold is not limited in the present application.
Specifically, if the change rates of the first frame rate and the second frame rate are smaller than the change threshold, the influence of the current adjustment on the performance of the electronic device running the application program is indicated to be small, and the power consumption of the target processor can be continuously reduced.
After the power consumption of the target processor is reduced, if the battery is still in a discharge state, and the first frame rate of the electronic device before the power consumption of the target processor is reduced and the second frame rate of the electronic device after the power consumption of the processor is reduced meet the adjustment conditions, the power consumption of the target processor is characterized by being reduced, and the power consumption of the target processor is not reduced to be within the power range which can be provided by the power adapter, but the performance of the electronic device for running the application program is not greatly influenced, and the power consumption of the target processor is continuously reduced until the battery is discharged.
In specific implementation, after the power consumption of the target processor is reduced each time, whether the battery is still in a discharge state or not is judged, and when the battery is still in the discharge state, whether the first frame rate and the second frame rate meet adjustment conditions is continuously judged, so that the power consumption of the target processor is ensured not to have great influence on the performance of the electronic equipment for running an application program each time, and user experience is maintained.
In summary, the information processing method provided in this embodiment includes reducing the power consumption of the target processor again based on the first frame rate before the power consumption of the target processor is reduced and the second frame rate after the power consumption of the target processor is reduced satisfying the adjustment condition. In the scheme, after the power consumption of the target processor is reduced, whether the battery is still in a discharging state is judged, and when the battery is still in the discharging state, whether the first frame rate and the second frame rate meet the adjustment conditions is judged, and only when the first frame rate and the second frame rate meet the adjustment conditions, the power consumption of the target processor is reduced again, so that the power consumption of the target processor is ensured not to have great influence on the performance of running an application program of the electronic equipment each time.
As shown in fig. 5, a flowchart of an embodiment 5 of an information processing method provided by the present application includes the following steps:
step S501, if the power adapter is connected to the electronic equipment, controlling the power supply parameters provided by the power adapter as the working power supply of the electronic equipment;
step S502, detecting a battery of the electronic equipment;
step S503, obtaining power consumption in at least two processors in the electronic device;
step S504, determining a first processor as a target processor, wherein the power consumption of the target processor is smaller than that of a second processor in the at least two processors;
Step S505, reducing the power consumption of the target processor;
Step S506, if the battery is in a discharging state, the power consumption of the target processor is reduced again based on the first frame rate before the power consumption of the target processor is reduced and the second frame rate after the power consumption of the target processor is reduced meeting an adjustment condition;
Steps S501-505 are identical to steps S401-405 in embodiment 4, and are not described in detail in this embodiment.
And S507, recovering the power consumption of the target processor to the power consumption before the current reduction based on that the first frame rate and the second frame rate do not meet the adjustment condition, and selecting a second processor of the at least two processors as the target processor, and reducing the power consumption of the target processor until the battery discharge is stopped.
If the first frame rate and the second frame rate do not meet the adjustment conditions, the performance of the electronic device running the application program is greatly affected by the current adjustment, and the power consumption of the target processor cannot be continuously reduced.
If the battery of the electronic device is still in a discharge state after the power consumption of the target processor is reduced, but the first frame rate before the power consumption of the target processor is reduced and the second frame rate after the power consumption of the target processor is reduced do not meet the adjustment condition, the method is characterized in that even if the power consumption of the target processor is reduced, the whole power consumption of the electronic device is not reduced to be within the power range which can be provided by the power adapter, and the performance of the electronic device is influenced, so that the power consumption reduction control of the target processor is abandoned.
In order to further reduce the power consumption of the electronic device, the second processor is reselected as the target processor to reduce the power consumption of the second processor.
It should be noted that, the second processor is a processor that has only higher power consumption than the first processor among the at least two processors.
Wherein after the second processor is selected as the target processor, the power consumption reduction adjustment is continued for the target processor, and steps S506-507 are circularly performed.
When at least two processors in the electronic device are three, if the second processor reduces the power consumption, the battery is still in a discharge state, but if the first frame rate and the second frame rate do not meet the adjustment, the adjustment of the power consumption reduced by the second processor is abandoned, and a third processor is selected as a target processor, wherein the third processor is the processor with the highest power consumption. And by analogy, according to the power consumption of at least two processors in the electronic equipment, the processors are sequentially selected as target processors from low to high, and under the condition that the performance of the electronic equipment is not affected, the situation that the discharge of the battery is stopped is realized.
In summary, the information processing method provided in this embodiment further includes recovering power consumption of the target processor to power consumption before the current reduction based on that the first frame rate and the second frame rate do not meet an adjustment condition, and selecting a second processor of the at least two processors as the target processor to reduce power consumption of the target processor. In this scheme, through gradually reducing the power consumption of the first processor, the situation that the battery discharges can not be solved, and the performance of the electronic device is also influenced, so the power consumption reduction control of the first processor is abandoned, the second processor is selected as a new target processor, the power consumption of the second processor is controlled to be reduced, and the situation that the battery discharges is stopped is realized under the condition that the performance of the electronic device is not influenced.
As shown in fig. 6, a flowchart of an embodiment 6 of an information processing method provided by the present application, the method includes the following steps:
Step S601, if the power adapter is connected to the electronic equipment, controlling the power supply parameters provided by the power adapter as the working power supply of the electronic equipment;
step S602, detecting a battery of the electronic equipment;
step S603, obtaining power consumption in at least two processors in the electronic device;
step S604, determining a first processor as a target processor, wherein the power consumption of the target processor is smaller than that of a second processor in the at least two processors;
Step S605, reducing the power consumption of the target processor;
step S606, if the battery is in a discharging state, the power consumption of the target processor is reduced again based on the first frame rate before the power consumption of the target processor is reduced and the second frame rate after the power consumption of the target processor is reduced meeting an adjustment condition.
Step S607, recovering the power consumption of the target processor until the current reduction based on the first frame rate and the second frame rate not satisfying the adjustment condition, and selecting a second processor of the at least two processors as the target processor, reducing the power consumption of the target processor;
steps S601 to 607 are identical to steps S501 to 507 in embodiment 5, and are not described in detail in this embodiment.
Step S608 of adjusting parameters of the adjustment condition based on the first frame rate before the power consumption of the target processor is reduced and the second frame rate after the power consumption of the target processor is reduced not satisfying the adjustment condition if the battery is in a discharge state.
Wherein, when the power consumption is reduced by taking at least two processors of the electronic device as the target processors, but the battery is still in a discharge state, and the first frame rate before the power consumption of the target processors is reduced and the second frame rate after the power consumption of the target processors is reduced do not meet the adjustment condition, it means that by reducing the power consumption of each of the at least two processors of the electronic device, the battery discharge can not be stopped on the premise of ensuring the performance of the electronic device.
In order to stop the battery discharge, an adjustment parameter of the adjustment condition is required to be adjusted, wherein the adjustment parameter corresponds to tolerance for the change of the performance of the electronic device.
In the application, whether the power consumption of the current reduction target processor has an influence on the performance of the running application program of the electronic equipment is determined by comparing the change condition of the frame rate of the electronic equipment before and after the power consumption is reduced.
Wherein the adjustment condition is that a rate of change between the first frame rate and the second frame rate is not greater than a change threshold, and the parameter of the adjustment condition is the change threshold.
Specifically, by adjusting the parameters of the adjustment conditions to be larger, the tolerance of the performance change of the electronic equipment is increased.
For example, the value of the change threshold is adjusted from 5% to 8%, and the specific value of the change threshold is not limited in the present application.
After the parameters of the adjustment conditions are adjusted, the method returns to step S604 and the following steps, and further reduces the power consumption of the electronic device until the battery discharge is stopped.
In summary, the information processing method provided in this embodiment further includes adjusting parameters of the adjustment condition based on the first frame rate before the power consumption of the target processor is reduced and the second frame rate after the power consumption of the target processor is reduced not meeting the adjustment condition if the battery is in a discharge state. In the scheme, at least two processors in the electronic equipment are sequentially used as target processors to carry out power consumption reduction control, the battery is still in a discharge state, and when the first frame rate before the power consumption of the target processors is reduced and the second frame rate after the power consumption of the target processors is reduced do not meet adjustment conditions, parameters of the adjustment conditions are adjusted to achieve the purpose of increasing tolerance of performance change of the electronic equipment, the power consumption of the target processors is reduced based on the adjusted condition parameters, and the purpose of stopping battery discharge is achieved through losing the performance of the electronic equipment with less loss.
As shown in fig. 7, a flowchart of an embodiment 7 of an information processing method provided by the present application, the method includes the following steps:
Step 701, if the power adapter is connected to the electronic device, controlling the power supply parameter provided by the power adapter as the working power supply of the electronic device;
step S702, detecting a battery of the electronic equipment;
step S703 of obtaining power consumption in at least two processors in the electronic device;
Step S704, determining a first processor as a target processor, wherein the power consumption of the target processor is smaller than that of a second processor in the at least two processors;
step S705, reducing the power consumption of the target processor.
Steps S701-705 are identical to steps S201-205 in embodiment 2, and are not described in detail in this embodiment.
Step S706, if the battery is in a discharging state, adjusting parameters of the adjustment conditions based on the electric quantity information of the battery.
Wherein the adjustment condition is an adjustment condition for determining whether the first frame rate before the power consumption of the target processor is reduced and the second frame rate after the power consumption of the target processor is reduced are satisfied.
If the power consumption of the target processor is reduced for a plurality of times, the battery is still in a discharge state, wherein the target processor can be each of at least two processors in the electronic device is selected in sequence, and the battery discharge can not be stopped on the premise that the performance of the electronic device is ensured by the characterization.
Specifically, different parameters are selected for the adjustment conditions for different charge information of the battery.
The method comprises the steps of dividing the electric quantity information of the battery into a plurality of stages, and setting different parameters for different stages.
For example, the battery power is 90% -100%, the variation of the first frame rate and the second frame rate of the parameters of the adjustment condition is 2%, the battery power is 80% -89%, the variation of the first frame rate and the second frame rate of the parameters of the adjustment condition is 3%, and so on.
In order to stop the battery discharge, an adjustment parameter of the adjustment condition is required to be adjusted, wherein the adjustment parameter corresponds to tolerance for the change of the performance of the electronic device.
Generally, the lower the electric quantity of the battery is, the larger the corresponding parameter value is, and the discharging of the battery is stopped on the premise of ensuring the performance of the electronic equipment as much as possible.
In summary, the information processing method provided in this embodiment further includes adjusting parameters of the adjustment condition based on the electric quantity information of the battery if the battery is in a discharge state. In the scheme, parameters of adjustment conditions can be adjusted based on the electric quantity of the battery, the electric quantity condition of the battery is combined, and the power consumption adjustment of the target processor is more flexible.
As shown in fig. 8, in an application scenario of an information processing method provided by the present application, a chip a is used to perform the information processing method, where the chip a can obtain a frame rate of an electronic device from a system side, the chip a can obtain power consumption of each processor in the electronic device, the processor is represented by a GPU and a CPU, and power consumed by the processor has two sources, one source is obtained from a battery through a charging circuit, power of the battery is obtained from a power adapter, and the other source is directly obtained from the power adapter.
Corresponding to the embodiment of the information processing method provided by the application, the application also provides an embodiment of a device applying the information processing method.
FIG. 9 is a schematic diagram showing an embodiment of an information processing method according to the present application, where the apparatus includes a battery 901, a power adapter interface 902, and a processing module 903;
The power adapter interface 902 is configured to connect to a power adapter, and receive a power supply parameter provided by the power adapter;
Wherein the processing module is connected 903 to the battery and the power adapter interface, respectively.
The processing module is used for controlling a power supply parameter provided by the power adapter to serve as a working power supply of the electronic equipment if the power adapter is connected to the electronic equipment, detecting a battery of the electronic equipment, and adjusting the operation of the electronic equipment based on a target strategy until the battery is discharged if the battery is in a discharging state.
In a specific implementation, the processing module may be implemented by using a functional chip, which can obtain the charge and discharge conditions of the battery and the condition that the power adapter interface is linked with the power adapter respectively.
Specifically, the processing module is connected with a charge-discharge circuit, and the charge-discharge condition of the battery can be obtained through the charge-discharge circuit.
FIG. 10 is a schematic diagram showing another embodiment of an information processing apparatus according to the present application, which includes a battery 1001, a power adapter interface 1002, a processing module 1003, and two processors 1004 to 1005;
Wherein at least two processors are represented in this fig. 10 by two processors.
Wherein at least two processors 1004-1005 are respectively connected with the processing modules, and the power consumption of the at least two processors is different;
The processing module 1003 is configured to obtain power consumption of at least two processors in the electronic device, determine a first processor as a target processor, wherein the power consumption of the target processor is smaller than that of a second processor of the at least two processors, and reduce the power consumption of the target processor.
Optionally, the processing module is specifically configured to:
if the battery is in a discharged state, it is determined whether to reduce the power consumption of the target processor again based on a first frame rate before reducing the power consumption of the target processor and a second frame rate after reducing the power consumption of the target processor.
Optionally, the processing module is specifically configured to:
And reducing the power consumption of the target processor again based on the first frame rate and the second frame rate meeting an adjustment condition.
Optionally, the processing module is further configured to:
And restoring the power consumption of the target processor to the power consumption before the current reduction based on the first frame rate and the second frame rate not meeting the adjustment condition, and selecting a second processor of the at least two processors as the target processor to reduce the power consumption of the target processor.
Optionally, the processing module selects a second processor of the at least two processors as a target processor, and is further configured to, after reducing power consumption of the target processor:
And if the battery is in a discharging state, adjusting parameters of the adjustment conditions based on that a first frame rate before reducing the power consumption of the target processor and a second frame rate after reducing the power consumption of the target processor do not meet the adjustment conditions.
Optionally, after the processing module reduces the power consumption of the target processor, the processing module is further configured to:
And if the battery is in a discharging state, adjusting parameters of the adjustment conditions based on the electric quantity information of the battery.
The functions of each structure of the information processing apparatus refer to corresponding explanations in the method embodiment, and are not described in detail in this embodiment.
In summary, in the information processing apparatus provided in this embodiment, if a power adapter is connected to an electronic device, a power supply parameter provided by the power adapter is controlled to be used as a working power supply of the electronic device, a battery of the electronic device is detected, and if the battery is in a discharging state, operation of the electronic device is adjusted based on a target policy until discharging of the battery is stopped. In the scheme, the target strategy is set, when the electronic equipment receives the power supply parameter provided by the power adapter as a working power supply, the battery in the electronic equipment is in a discharging state, and the operation of the electronic equipment is adjusted based on the target strategy so as to achieve the purpose of stopping the battery discharging, so that when the electronic equipment is connected with the power adapter, only the electric energy provided by the power adapter is used, the electric energy in the battery is not consumed, and the service time of the electronic equipment is prolonged. That is, in the above-described embodiment, the battery is still discharged when the power adapter is inserted, and the battery discharge is stopped as much as possible while maintaining the performance by the power consumption adjustment strategy of the plurality of processors.
Corresponding to the embodiment of the information processing method provided by the application, the application also provides the electronic equipment and the readable storage medium corresponding to the information processing method.
The electronic equipment comprises a memory and a processor;
wherein the memory stores a processing program;
The processor is configured to load and execute the processing program stored in the memory, so as to implement the steps of the information processing method according to any one of the above.
The method for realizing the information processing of the electronic equipment is realized by referring to the embodiment of the information processing method.
Wherein the readable storage medium has stored thereon a computer program which is invoked and executed by a processor to implement the steps of the information processing method according to any of the above.
The computer program stored in the readable storage medium is executed to implement the information processing method, and the embodiment of the information processing method is referred to.
In the present specification, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different point from other embodiments, and identical and similar parts between the embodiments are all enough to refer to each other. The device provided in the embodiment corresponds to the method provided in the embodiment, so that the description is simpler, and the relevant points refer to the description of the method.
The previous description of the provided embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features provided herein.