CN106455022B - A kind of battery saving mode switching method and device - Google Patents
A kind of battery saving mode switching method and device Download PDFInfo
- Publication number
- CN106455022B CN106455022B CN201610915962.9A CN201610915962A CN106455022B CN 106455022 B CN106455022 B CN 106455022B CN 201610915962 A CN201610915962 A CN 201610915962A CN 106455022 B CN106455022 B CN 106455022B
- Authority
- CN
- China
- Prior art keywords
- battery saving
- saving mode
- threshold
- cpu load
- detecting
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 30
- 238000001514 detection method Methods 0.000 claims abstract description 49
- 230000002045 lasting effect Effects 0.000 claims 1
- 230000005611 electricity Effects 0.000 abstract description 10
- 230000006870 function Effects 0.000 description 12
- 238000010586 diagram Methods 0.000 description 9
- 238000004891 communication Methods 0.000 description 4
- 238000012545 processing Methods 0.000 description 4
- 230000001413 cellular effect Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000012360 testing method Methods 0.000 description 2
- 241000208340 Araliaceae Species 0.000 description 1
- 235000005035 Panax pseudoginseng ssp. pseudoginseng Nutrition 0.000 description 1
- 235000003140 Panax quinquefolius Nutrition 0.000 description 1
- 230000006399 behavior Effects 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 235000008434 ginseng Nutrition 0.000 description 1
- 238000007689 inspection Methods 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 238000011084 recovery Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. TPC [Transmission Power Control], power saving or power classes
- H04W52/02—Power saving arrangements
- H04W52/0209—Power saving arrangements in terminal devices
- H04W52/0225—Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
- H04W52/0241—Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal where no transmission is received, e.g. out of range of the transmitter
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3234—Power saving characterised by the action undertaken
- G06F1/3293—Power saving characterised by the action undertaken by switching to a less power-consuming processor, e.g. sub-CPU
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. TPC [Transmission Power Control], power saving or power classes
- H04W52/02—Power saving arrangements
- H04W52/0209—Power saving arrangements in terminal devices
- H04W52/0261—Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Telephone Function (AREA)
Abstract
The embodiment of the invention provides a kind of battery saving mode switching method and devices, this method comprises: the cpu load and/or network flow of detection terminal;Determine whether system is in idle condition according to the cpu load of terminal and/or network flow;When the system of detecting is in idle condition, duration that detection system is in idle condition;When detecting that the duration is greater than or equal to preset duration threshold value, system configuration file is obtained;Configuration enters the parameter of battery saving mode in system configuration file, so that system enters battery saving mode.Implement the embodiment of the present invention, the convenience operated when electricity saving of mobile terminal pattern switching can be improved.
Description
Technical field
The present invention relates to computer and fields of communication technology, and in particular to a kind of battery saving mode switching method and device.
Background technique
Currently, people realize more and more functions such as amusement, reading, office, the mobile terminals such as mobile phone by mobile terminal
It is more and more closer with people's lives, while people propose higher demand to the service time of battery of mobile terminal.In difference
Using under scene, screen intensity of the people to mobile terminal, central processing unit (Central Processing Unit, letter
Claiming CPU) demand of performance, available number of applications etc. is identical, and existing mobile terminal provides battery saving mode,
Under battery saving mode, mobile terminal can accordingly decrease screen intensity, cpu performance, available number of applications etc., to reduce electricity
Amount consumption, extends service time of battery.That is, in the related art, user needs continually in battery saving mode and normal
Manual switching is carried out between mode, operation is very cumbersome and not when carrying out electricity saving of mobile terminal pattern switching which results in user
Just.
Summary of the invention
The embodiment of the present invention proposes a kind of battery saving mode switching method and device, and electricity saving of mobile terminal mode can be improved and cut
The convenience operated when changing.
First aspect of the embodiment of the present invention provides a kind of battery saving mode switching method, comprising:
Detect the cpu load and/or network flow of terminal;
Determine whether system is in idle condition according to the cpu load of the terminal and/or network flow;
When detecting that the system is in the idle state, detects the system and be in continuing for the idle state
Time;
When detecting that the duration is greater than or equal to preset duration threshold value, system configuration file is obtained;
Configuration enters the parameter of battery saving mode in the system configuration file, so that the system enters the power saving mould
Formula.
Second aspect of the embodiment of the present invention provides a kind of battery saving mode switching device, comprising:
First detection unit, for detecting the cpu load and/or network flow of terminal;
Determination unit, cpu load and/or network flow for being detected according to the first detection unit determine that system is
It is no to be in idle condition;
Second detection unit, for examining when detecting that the system is in the idle state that the determination unit determines
Survey the duration that the system is in the idle state that the determination unit determines;
Acquiring unit, for being greater than or equal to preset duration threshold when the duration for detecting the detection unit detection
When value, system configuration file is obtained;
Configuration unit, for configuring the parameter for entering battery saving mode in the system configuration file, so that the system
Into the battery saving mode.
After above-mentioned battery saving mode switching method and device, detecting system free time length greater than duration threshold value
When, battery saving mode is set by mobile terminal, mobile terminal can be by system detection, and intelligence accurately judges that system enters
Metastable idle state, and by system configuration file configuration parameter automatically switch to battery saving mode, this is just not
Need user frequently to carry out manual switching between battery saving mode and normal mode, avoid battery saving mode and normal mode it
Between switch cumbersomely, solve because personal reason forgets to switch battery saving mode to inconvenience caused by user security risk, improve and moved
The convenience operated when saving power for terminal pattern switching.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to needed in the embodiment
Attached drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the invention, general for this field
For logical technical staff, without creative efforts, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of flow diagram of battery saving mode switching method provided in an embodiment of the present invention;
Fig. 2 is the flow diagram of another battery saving mode switching method provided in an embodiment of the present invention;
Fig. 3 is a kind of structural schematic diagram of battery saving mode switching device provided in an embodiment of the present invention;
Fig. 4 is the structural schematic diagram of another battery saving mode switching device provided in an embodiment of the present invention;
Fig. 5 is the structural schematic diagram of another battery saving mode switching device provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair
Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts
Example, shall fall within the protection scope of the present invention.
Inventors have found that being applicable since many business of mobile terminal under battery saving mode are unavailable in the related art
Different uses scene, and user generally requires continually to carry out manual switching between battery saving mode and normal mode, operates numerous
It is trivial, and be easy to forget to switch due to artificial origin, to reduce the convenience for carrying out operating when electricity saving of mobile terminal pattern switching
Property.
Based on this, the embodiment of the present invention provides a kind of battery saving mode switching method and device, and mobile terminal province can be improved
The convenience that power mode operates when switching.
In one embodiment it is proposed that a kind of electricity saving of mobile terminal mode switching method, the battery saving mode switching method
Execution can be dependent on computer program, which can run on the operating system of von Neumann system.The behaviour
It may operate on the mobile terminals such as smart phone, tablet computer as system.
Referring to Fig. 1, the process that Fig. 1 is a kind of electricity saving of mobile terminal mode switching method provided in an embodiment of the present invention is shown
It is intended to.Wherein, which is the angle from mobile terminals such as mobile phone, the tablet computers for being provided with battery saving mode
Come what is described.As shown in Figure 1, the windows switching method may comprise steps of.
Step S101: the cpu load and/or network flow of terminal are detected.
Step S102: determine whether system is in idle condition according to the cpu load of terminal and/or network flow.
In the present embodiment, idle state refers to the idle state of system operation.For example, in the application scenarios of a mobile phone
In, when some applications in system at runtime, such as user run music, timing, take pictures cell-phone function when, mobile phone
Cpu load is higher, or when user is when being downloaded task, the network flow of mobile phone is very high, when user terminates music, meter
When, the mobile phones application such as take pictures, while when terminating mobile phone-downloaded task, cpu load and network flow can be substantially reduced accordingly, this
When, the system of determination is in idle condition.Therefore, system can be determined by detection mobile phone current cpu load or network flow
Whether it is in idle condition.
Step S103: the duration that detection system is in idle condition.
In the present embodiment, when the system of detecting is in idle condition, i.e., what execution detection system was in idle condition is held
The continuous time.The duration of idle state can obtain in this way: when the mobile terminal enters the idle state, open
Timer is opened, the timing of the timer is a chronomere, and by a chronomere, such as 1 μ s, system, which goes to check, is
Whether system is also in idle state, if add up a time list on the duration of idle state also in idle state
Position, is so always updated the duration.
Step S104: when detecting that the duration is greater than or equal to preset duration threshold value, system configuration file is obtained.
In the present embodiment, judge that the duration is achieved in that more than or equal to one kind of preset duration threshold value, according to
Preset duration threshold value, by the timer timing duration threshold value, if detecting in timing process, system is constantly in idle shape
State then determines that the duration is greater than or equal to preset duration threshold value.
In the present embodiment, duration threshold value can be what user was arranged according to the use habit of oneself.Such as in a mobile phone
Application scenarios in, if user wishes to enter battery saving mode as soon as possible in mobile phone idle state, save more electricity to realize,
Can be relatively small by the setting of duration threshold value according to personal considerations, such as 15s.But duration threshold value it is too small when, when system is not also stable
Enter idle state when, at this point, may user still using mobile phone some functions, that is, carry out the operation of lower step, be easy to make
Erroneous judgement at system to the operation for needing to carry out lower step, therefore, to avoid above situation, duration threshold value cannot be arranged too small.
In addition, if user is not intended to system frequently to switch between normal mode and battery saving mode, it can be by the duration threshold
Value is arranged longer, can also close this and automatically switch battery saving mode function.
Step S105: configuration enters the parameter of battery saving mode in system configuration file, so that system enters battery saving mode.
It, can be by reducing screen intensity, closing WIFI and cellular data when system enters battery saving mode in the present embodiment
Network reduces the use time that the modes such as processor host frequency, simplification main screen carry out extending cell phone battery, and system also provides user oneself
DIY battery saving mode, for example appropriate screen intensity, the unwanted sending out notice function of closing of reducing come when extending equipment use as far as possible
Between.
In the application scenarios of a mobile phone, if system finds that mobile phone is not in by detection cpu load or network flow
Using operating status, it is also not in download state, it is determined that mobile phone is in idle condition, and is continued to test mobile phone and is in idle condition
Duration, when the duration be greater than user preset a duration when, system judgement at this time user do not carry out mobile phone
Operation, mobile phone are currently in idle state, mobile phone are switched to battery saving mode.
It, will when detecting that system free time length is greater than duration threshold value in the battery saving mode switching method described in Fig. 1
Mobile terminal is set as battery saving mode, and mobile terminal can be by system detection, and intelligence accurately judges that system enters relatively
Stable idle state, and by system configuration file configuration parameter automatically switch to battery saving mode, this there is no need to
Family frequently carries out manual switching between battery saving mode and normal mode, avoids cumbersome between battery saving mode and normal mode
Ground switching solves because personal reason forgets to switch battery saving mode to inconvenience caused by user security risk, improves and carry out mobile terminal province
The convenience that power mode operates when switching.
Referring to Fig. 2, Fig. 2 is the process of another electricity saving of mobile terminal mode switching method provided in an embodiment of the present invention
Schematic diagram.Wherein, which is from the angle of the mobile terminals such as mobile phone, the tablet computer for being provided with battery saving mode
It spends to describe.As shown in Fig. 2, the windows switching method may comprise steps of.
Step S201: judge whether system time is in preset detection time section.
In the present embodiment, user, which can be set in certain period of time according to personal habits, to implement through detection cpu load
Or network flow determines the step of whether system is in idle condition.For example, in the application scenarios of a mobile phone, if user is every
It the mobile phones application such as will not run music, timing under normal circumstances, take pictures during the work hours, morning 9:00-11:30,
It not will do it mobile phone-downloaded task, then can be born by being configured only to execute during this period of time in mobile phone by detection CPU
It carries or network flow determines the step of whether system is in idle condition, remaining time does not execute the step.
Step S202: the cpu load and/or network flow of terminal are detected.
In the present embodiment, when whether system time is in preset detection time section, that is, the CPU of detection terminal is executed
Load and/or network flow.
Step S203: determine whether system is in idle condition according to the cpu load of terminal and/or network flow.
Idle state refers to the idle state of system operation.For example, in the application scenarios of a mobile phone, when in system
It is some to apply at runtime, such as user, when running music, timing, taking pictures cell-phone function, the cpu load of mobile phone is higher, or
For person when user is when being downloaded task, the network flow of mobile phone is very high, answers when user such as terminates music, timing, takes pictures at the mobile phones
With, while when terminating mobile phone-downloaded task, it can be substantially reduced cpu load and network flow accordingly, at this point, the system of determination is in
Idle state.Therefore, it can determine whether system is in idle shape by detection mobile phone current cpu load or network flow
State.
In the present embodiment, further, it is less than or equal to first in the cpu load and/or network flow for detecting system
When threshold value, into idle state.Mobile terminal intelligently, accurately can judge that system enters idle state.
Step S204: the duration that detection system is in idle condition.
In the present embodiment, when the system of detecting is in idle condition, i.e., what execution detection system was in idle condition is held
The continuous time.The duration of idle state can obtain in this way: one kind be achieved in that when mobile terminal into
When entering idle state, opening timing device, the timing of the timer is a chronomere, by a chronomere, such as 1
Whether μ s, system go inspection system also in idle state, if also in idle state, on the duration of idle state
Add up a chronomere, is updated in this way to the duration always.
Step S205: when detecting that the duration is greater than or equal to preset duration threshold value, system configuration file is obtained.
In the present embodiment, judge that the duration is achieved in that more than or equal to one kind of preset duration threshold value, according to
Preset duration threshold value, by the timer timing duration threshold value, if detecting in timing process, system is constantly in idle shape
State then determines that the duration is greater than or equal to preset duration threshold value.
In the present embodiment, duration threshold value can be what user was arranged according to the use habit of oneself.Such as in a mobile phone
Application scenarios in, if user wishes to enter battery saving mode as soon as possible in mobile phone idle state, save more electricity to realize,
Can be relatively small by the setting of duration threshold value according to personal considerations, such as 30s.But duration threshold value it is too small when, when system is not also stable
Enter idle state when, at this point, may user still using mobile phone some functions, that is, carry out the operation of lower step, be easy to make
Erroneous judgement at system to the operation for needing to carry out lower step, therefore, to avoid above situation, duration threshold value cannot be arranged too small.
In addition, if user is not intended to system frequently to switch between normal mode and battery saving mode, it can be by the duration threshold
Value is arranged longer, can also close this and automatically switch battery saving mode function.
Step S206: configuration enters the parameter of battery saving mode in system configuration file, so that system enters battery saving mode.
It, can be by reducing screen intensity, closing WIFI and cellular data when system enters battery saving mode in the present embodiment
Network reduces the use time that the modes such as processor host frequency, simplification main screen carry out extending cell phone battery, and system can also provide user
Oneself DIY battery saving mode, such as appropriate reduction screen intensity, the unwanted sending out notice function of closing make to extend equipment as far as possible
Use the time.
In the present embodiment, further, battery saving mode may include the battery saving mode of one or more kinds of types.When being
When system includes the battery saving mode of more than one types, under all types of battery saving modes, the function of the system mobile terminal to be operated
Difference, such as screen intensity, WIFI and data network, processor host frequency, the corresponding electric strength that saves is different, and system enters battery saving mode
It can specifically include:
Obtain targets threshold section belonging to cpu load and/or flow system flow;
In the range of being less than or equal to first threshold, one or more settable threshold intervals, these threshold zones
Between be it is continuous and nonoverlapping between each other, the unions of these threshold intervals is less than or equal to first threshold.The CPU of acquisition
Load and/or flow system flow can fall one of them in one or more threshold intervals, which is target threshold
It is worth section.For example, first threshold is A, the cpu load and/or flow system flow of acquisition are a, and threshold interval includes: 0≤a≤a1,
A1≤a≤a2, a2≤a≤A, 0 < a1 < a2 < A.
Target battery saving mode is determined in one or more kinds of battery saving modes according to targets threshold section;
One or more threshold intervals and the battery saving mode of one or more kinds of types are one-to-one relationships,
The corresponding target battery saving mode in targets threshold section can be determined according to the corresponding relationship.For example, 0≤a of threshold interval≤a1 pairs
The first battery saving mode, corresponding second battery saving mode of threshold interval a1≤a≤a2 are answered, threshold interval a2≤a≤A corresponds to third power saving
Mode.The mobile terminal application function of first battery saving mode, the second battery saving mode closing corresponding with third battery saving mode successively increases
More, electricity-saving function successively enhances.
Configuration enters the parameter of battery saving mode in system configuration file, so that system enters target battery saving mode.
In the present embodiment, target battery saving mode is one of the battery saving mode of one or more kinds of types.For example,
In above-mentioned example, target battery saving mode is one in the first battery saving mode, the second battery saving mode and third battery saving mode.
Step S207: it when the cpu load and/or network flow for detecting system are greater than or equal to second threshold, exits
Idle state.
In the present embodiment, second threshold is greater than first threshold.When the cpu load and/or network flow of system are in the first threshold
When between value and second threshold, still determines at this time for idle state, be to guarantee that decision-making system is in idle condition accurate
Property, when avoiding only with first threshold, since system itself or network cause cpu load and/or network flow jump, system at this time
Actually still in idle state, the maloperation to exit from idle status is caused.
Step S208: modifying the parameter of system configuration file, so that system enters normal mode.
In the present embodiment, under normal mode, the recoveries such as screen intensity, WIFI and data network, processor host frequency are normal, are
Power consumption unite also above battery saving mode.
Battery saving mode can be switched in the application scenarios of a mobile phone, such as during user sets morning 9:00-11:30,
Then during this period of time, it if system finds that mobile phone is in idle condition by detection cpu load or network flow, continues to test
The duration that mobile phone is in idle condition, when the duration being greater than a duration of user preset, system can automatic root
According to cpu load and/or network flow, the degree of mobile phone free time is judged, and mobile phone is switched to a kind of corresponding battery saving mode.When
User continues the application such as to operate mobile phone, for example open music, downloading, makes cpu load and/or net during battery saving mode
Network flow has been more than second threshold, then mobile phone has had logged out idle state at this time for system judgement, will be mobile phone battery saving mode
Normal mode is switched back into, to facilitate user to carry out normal mobile phone use.
It, will when detecting that system free time length is greater than duration threshold value in the battery saving mode switching method described in Fig. 2
Mobile terminal is set as battery saving mode, and mobile terminal can be by system detection, and intelligence accurately judges that system enters relatively
Stable idle state, and by system configuration file configuration parameter automatically switch to battery saving mode, this there is no need to
Family frequently carries out manual switching between battery saving mode and normal mode, avoids cumbersome between battery saving mode and normal mode
Ground switching solves because personal reason forgets to switch battery saving mode to inconvenience caused by user security risk, improves and carry out mobile terminal province
The convenience that power mode operates when switching.
Referring to Fig. 3, Fig. 3 is a kind of structural schematic diagram of terminal provided in an embodiment of the present invention.As shown in figure 3, the end
End may include:
First detection unit 301, for detecting the cpu load and/or network flow of terminal;
Determination unit 302 determines system for the logical cpu load detected according to first detection unit 301 and/or network flow
Whether system is in idle condition;
Second detection unit 303, for detecting when the system that detects is in the idle state that determination unit 302 determines
System is in the duration for the idle state that determination unit 301 determines;
Acquiring unit 304, for working as the duration for detecting the detection of second detection unit 303 more than or equal to preset
When duration threshold value, system configuration file is obtained;
Configuration unit 305, for configuring the ginseng for entering battery saving mode in the system configuration file that acquiring unit 304 obtains
Number, so that system enters battery saving mode.
It, will when detecting that system free time length is greater than duration threshold value in the battery saving mode switching device described in Fig. 3
Mobile terminal is set as battery saving mode, and mobile terminal can be by system detection, and intelligence accurately judges that system enters relatively
Stable idle state, and by system configuration file configuration parameter automatically switch to battery saving mode, this there is no need to
Family frequently carries out manual switching between battery saving mode and normal mode, avoids cumbersome between battery saving mode and normal mode
Ground switching solves because personal reason forgets to switch battery saving mode to inconvenience caused by user security risk, improves and carry out mobile terminal province
The convenience that power mode operates when switching.
Referring to Fig. 4, Fig. 4 is the structural schematic diagram of another battery saving mode switching device provided in an embodiment of the present invention.
Wherein, device shown in Fig. 4 is that installation optimization as shown in Figure 3 obtains.
As a kind of possible embodiment, determination unit 302, specifically in the cpu load for detecting system and/or
When network flow is less than or equal to first threshold, into idle state.
As a kind of possible embodiment, which can also include:
Unit 306 is exited, for being greater than or equal to second threshold in the cpu load and/or network flow for detecting system
When, the idle state that determination unit 302 determines is exited, second threshold is greater than first threshold;
Unit 307 is modified, the parameter of the system configuration file for modifying the acquisition of acquiring unit 304, so that system enters
Normal mode.
As a kind of possible embodiment, battery saving mode includes the battery saving mode of one or more kinds of types;
Configuration unit 305 can also include:
Subelement 3051 is obtained, for obtaining targets threshold section belonging to cpu load and/or flow system flow;
Determine subelement 3052, for according to obtain targets threshold section that subelement 3051 obtains it is a kind of or it is a kind of with
On battery saving mode in determine target battery saving mode;
Subelement 3053 is configured, enters battery saving mode for configuring in the system configuration file that acquiring unit 304 obtains
Parameter so that system enters the target battery saving mode that determining subelement 3052 determines.
As a kind of possible embodiment, which can also include:
Judging unit 308, for judging whether system time is in preset detection time section, if so, determining single
Member 302 determines whether system is in idle condition by detection cpu load or network flow.
It, will when detecting that system free time length is greater than duration threshold value in the battery saving mode switching device described in Fig. 4
Mobile terminal is set as battery saving mode, and mobile terminal can be by system detection, and intelligence accurately judges that system enters relatively
Stable idle state, and by system configuration file configuration parameter automatically switch to battery saving mode, this there is no need to
Family frequently carries out manual switching between battery saving mode and normal mode, avoids cumbersome between battery saving mode and normal mode
Ground switching solves because personal reason forgets to switch battery saving mode to inconvenience caused by user security risk, improves and carry out mobile terminal province
The convenience that power mode operates when switching.
Referring to Fig. 5, Fig. 5 is the structural schematic diagram of another terminal provided in an embodiment of the present invention.As shown in figure 5, should
Terminal may include: at least one processor 501, such as CPU, memory 502 and at least one communication bus 503.Memory
502 can be high speed RAM memory, be also possible to non-labile memory (non-volatile memory), for example, at least
One magnetic disk storage.Optionally, memory 502 can also be that at least one is located remotely from the storage of aforementioned processor 501 dress
It sets.Wherein:
Communication bus 503, for realizing the connection communication between these components;
Batch processing code is stored in memory 502, processor 501 is for calling the program stored in memory 502
Code executes following operation:
Detect the cpu load and/or network flow of terminal;
Determine whether system is in idle condition according to the cpu load of terminal and/or network flow;
When the system of detecting is in idle condition, duration that detection system is in idle condition;
When detecting that the duration is greater than or equal to preset duration threshold value, system configuration file is obtained;
Configuration enters the parameter of battery saving mode in system configuration file, so that system enters battery saving mode.
As a kind of possible embodiment, whether processor 501 determines system by detection cpu load or network flow
It is in idle condition and includes:
When the cpu load and/or network flow for detecting system are less than or equal to first threshold, into idle state.
As a kind of possible embodiment, processor 501, which executes to configure in system configuration file, enters battery saving mode
Parameter so that system enters after battery saving mode operation, may call upon the program code that is stored in memory 502 execute with
Lower operation:
When the cpu load and/or network flow for detecting system are greater than or equal to second threshold, exit from idle status,
Second threshold is greater than first threshold;
The parameter for modifying system configuration file, so that system enters normal mode.
As a kind of possible embodiment, battery saving mode includes the battery saving mode of one or more kinds of types;
Processor 501 for call the program code stored in memory 502 execution configured in system configuration file into
Enter the parameter of battery saving mode so that system enters battery saving mode includes:
Obtain targets threshold section belonging to cpu load and/or flow system flow;
Target battery saving mode is determined in one or more kinds of battery saving modes according to targets threshold section;
Configuration enters the parameter of battery saving mode in system configuration file, so that system enters target battery saving mode.
As a kind of possible embodiment, processor 501 is for calling the program code stored in memory 502 to execute
It operates below:
Judge whether system time is in preset detection time section, if so, passing through detection cpu load or network flow
Measure whether the system of determination is in idle condition.
Wherein, step S101-S105, S201-S208 can by terminal processor 501 and memory 502 execute.
Wherein, first detection unit 301, determination unit 302, second detection unit 303, acquiring unit 304, configuration unit
305, exit unit 306, modification unit 307 can by terminal processor 501 and memory 502 realize.Wherein, it configures
Unit 305 includes that acquisition subelement 3051 determines that subelement 3052 and configuration subelement 3053 can be by the processing in terminal
Device 501 and memory 502 are realized.
It, will when detecting that system free time length is greater than duration threshold value in the battery saving mode switching device described in Fig. 5
Mobile terminal is set as battery saving mode, and mobile terminal can be by system detection, and intelligence accurately judges that system enters relatively
Stable idle state, and by system configuration file configuration parameter automatically switch to battery saving mode, this there is no need to
Family frequently carries out manual switching between battery saving mode and normal mode, avoids cumbersome between battery saving mode and normal mode
Ground switching solves because personal reason forgets to switch battery saving mode to inconvenience caused by user security risk, improves and carry out mobile terminal province
The convenience that power mode operates when switching.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product
When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially
The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words
It embodies, which is stored in a storage medium, including some instructions are used so that one mobile whole
End equipment (can be smart phone, server or the network equipment etc.) executes the complete of each embodiment the method for the present invention
Portion or part steps.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only
Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can store journey
The medium of sequence code.
Windows switching method provided in an embodiment of the present invention and device are described in detail above, it is used herein
A specific example illustrates the principle and implementation of the invention, and the above embodiments are only used to help understand originally
The method and its core concept of invention;At the same time, for those skilled in the art, according to the thought of the present invention, specific
There will be changes in embodiment and application range, in conclusion the content of the present specification should not be construed as to of the invention
Limitation.
Claims (4)
1. a kind of battery saving mode switching method characterized by comprising
Detect the cpu load and/or network flow of terminal;
Judge whether system time is in preset detection time section, if so, according to the cpu load of the terminal and/or
Network flow determines whether system is in idle condition, wherein the detection time section is the customized setting of user;
When detecting that the system is in the idle state, detect the system be in the idle state it is lasting when
Between;
When detecting that the duration is greater than or equal to preset duration threshold value, system configuration file is obtained;
Obtain targets threshold section belonging to the cpu load and/or the flow system flow;
According to the corresponding relationship of the type of threshold interval and battery saving mode, searches and determine type corresponding to the targets threshold section
Battery saving mode, and the battery saving mode of determining corresponding types is determined as target battery saving mode;Wherein, battery saving mode includes more
Seed type, the battery saving mode of different types correspond to different threshold regions, answer under different battery saving modes mobile terminal
It is not identical with the closing quantity of function;
Configuration enters the parameter of battery saving mode in the system configuration file, so that the system enters the target power saving mould
Formula;
The configuration in the system configuration file enters the parameter of battery saving mode, so that the system enters the power saving mould
After formula, the method also includes:
When the cpu load and/or network flow for detecting the system are greater than or equal to second threshold, the idle shape is exited
State, the second threshold are greater than first threshold;
The parameter of the system configuration file is modified, so that the system enters normal mode;
Wherein, the parameter for modifying system configuration file includes modifying screen intensity, processor host frequency, appointing in sending out notice function
Meaning is one or more kinds of, and the value for the parameter that can be modified is by user's setting in customized setting battery saving mode.
2. the method according to claim 1, wherein the cpu load and/or network flow according to the terminal
It measures the system of determination and whether is in idle condition and include:
When the cpu load and/or network flow for detecting system are less than or equal to first threshold, into idle state.
3. a kind of battery saving mode switching device characterized by comprising
First detection unit, for detecting the cpu load and/or network flow of terminal;
Determination unit, cpu load and/or network flow for being detected according to the first detection unit determine whether system is located
In idle state;
Second detection unit, for detecting institute when detecting that the system is in the idle state that the determination unit determines
State the duration that system is in the idle state that the determination unit determines;
Acquiring unit, for being greater than or equal to preset duration threshold value when the duration for detecting the detection unit detection
When, obtain system configuration file;
Configuration unit, for configuring the parameter for entering battery saving mode in the system configuration file, so that the system enters
The battery saving mode;
Exit unit, for the cpu load and/or network flow for detecting the system be greater than or equal to second threshold when,
The idle state that the determination unit determines is exited, the second threshold is greater than first threshold;
Unit is modified, for modifying the parameter for the system configuration file that the acquiring unit obtains, so that the system enters just
Norm formula;
The battery saving mode includes the battery saving mode of one or more kinds of types;The configuration unit includes:
Subelement is obtained, for obtaining targets threshold section belonging to the cpu load and/or the flow system flow;
Determine subelement, the targets threshold section for obtaining according to the acquisition subelement is in the one or more
Target battery saving mode is determined in battery saving mode;
Configure subelement, in the system configuration file configuration enter battery saving mode parameter so that the system into
Enter the target battery saving mode that the determining subelement determines;Wherein, battery saving mode includes multiple types, the power saving of different types
Mode corresponds to different threshold regions, not identical to the closing quantity of mobile terminal application function under different battery saving modes;
Described device further include:
Judging unit, for judging whether system time is in preset detection time section, if so, the determination unit is logical
It crosses detection cpu load or network flow determines whether system is in idle condition, wherein the detection time section is that user makes by oneself
Justice setting;
Wherein, the parameter for modifying system configuration file includes modifying screen intensity, processor host frequency, appointing in sending out notice function
Meaning is one or more kinds of, and the value for the parameter that can be modified is by user's setting in customized setting battery saving mode.
4. device according to claim 3, which is characterized in that the determination unit, specifically for detecting system
When cpu load and/or network flow are less than or equal to first threshold, into idle state.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610915962.9A CN106455022B (en) | 2016-10-20 | 2016-10-20 | A kind of battery saving mode switching method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610915962.9A CN106455022B (en) | 2016-10-20 | 2016-10-20 | A kind of battery saving mode switching method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106455022A CN106455022A (en) | 2017-02-22 |
CN106455022B true CN106455022B (en) | 2019-08-09 |
Family
ID=58175518
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610915962.9A Expired - Fee Related CN106455022B (en) | 2016-10-20 | 2016-10-20 | A kind of battery saving mode switching method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106455022B (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107272874B (en) * | 2017-06-20 | 2020-05-15 | 苏州浪潮智能科技有限公司 | Method and system for adjusting state of storage driver of server |
CN107197426A (en) * | 2017-07-14 | 2017-09-22 | 中国联合网络通信集团有限公司 | A kind of method, device and mobile management nodes for reducing network signaling overhead |
CN110536391B (en) * | 2019-09-26 | 2022-04-12 | 维沃移动通信有限公司 | Communication method and mobile terminal |
CN111274113B (en) * | 2020-02-24 | 2023-07-21 | Oppo广东移动通信有限公司 | State prediction method and device and mobile terminal |
CN111813212A (en) * | 2020-07-01 | 2020-10-23 | 深圳传音控股股份有限公司 | Terminal power saving method, terminal and readable storage medium |
CN113038580A (en) * | 2021-02-26 | 2021-06-25 | 北京小米松果电子有限公司 | Power saving mode control method, device, equipment and storage medium |
CN114356064B (en) * | 2022-01-11 | 2024-03-19 | 北京国网富达科技发展有限责任公司 | Power supply management method and system |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101146007A (en) * | 2006-09-15 | 2008-03-19 | 三星电子株式会社 | Apparatus and method for managing power-saving mode of portable terminal |
CN102411423A (en) * | 2011-08-12 | 2012-04-11 | 华南理工大学 | Collaborating dynamic power management method for CPU (central processing unit) and wireless network card |
CN103051793A (en) * | 2012-12-18 | 2013-04-17 | 广东欧珀移动通信有限公司 | Method and device for controlling data transmission mode of mobile terminal |
CN103200314A (en) * | 2013-03-05 | 2013-07-10 | 广东欧珀移动通信有限公司 | Intelligent sleep method of mobile terminal and intelligent sleep device of mobile terminal |
CN104244379A (en) * | 2013-06-07 | 2014-12-24 | 腾讯科技(深圳)有限公司 | Wireless network control method and device of mobile terminal |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3722055B2 (en) * | 2001-11-30 | 2005-11-30 | 日本電気株式会社 | Mobile terminal device |
-
2016
- 2016-10-20 CN CN201610915962.9A patent/CN106455022B/en not_active Expired - Fee Related
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101146007A (en) * | 2006-09-15 | 2008-03-19 | 三星电子株式会社 | Apparatus and method for managing power-saving mode of portable terminal |
CN102411423A (en) * | 2011-08-12 | 2012-04-11 | 华南理工大学 | Collaborating dynamic power management method for CPU (central processing unit) and wireless network card |
CN103051793A (en) * | 2012-12-18 | 2013-04-17 | 广东欧珀移动通信有限公司 | Method and device for controlling data transmission mode of mobile terminal |
CN103200314A (en) * | 2013-03-05 | 2013-07-10 | 广东欧珀移动通信有限公司 | Intelligent sleep method of mobile terminal and intelligent sleep device of mobile terminal |
CN104244379A (en) * | 2013-06-07 | 2014-12-24 | 腾讯科技(深圳)有限公司 | Wireless network control method and device of mobile terminal |
Also Published As
Publication number | Publication date |
---|---|
CN106455022A (en) | 2017-02-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106455022B (en) | A kind of battery saving mode switching method and device | |
CN104239195B (en) | A kind of method and electronic equipment for handling electronic equipment power consumption | |
US9785428B2 (en) | Internal software updating method and system | |
CN106060909B (en) | A kind of method for connecting network and mobile terminal | |
CN104580710B (en) | A kind of automatic power save method based on learning user operation custom | |
CN106125896A (en) | A kind of application program freezing method and mobile terminal | |
US9285857B2 (en) | Application idle current drain measurement | |
CN107943650B (en) | Application program control method and device, storage medium and terminal | |
CN104298335A (en) | Application program process cleaning method and device of mobile terminal and mobile terminal | |
CN104244378B (en) | Improve the wireless communication device and method of power management | |
CN104967731B (en) | A kind of terminal notifying method and terminal | |
CN104267799B (en) | Network server and method and system for processing power consumption of electronic equipment | |
CN104298336A (en) | Mobile terminal and control method and device of application program of mobile terminal | |
CN105635467A (en) | Mobile terminal and promoting method thereof | |
CN104598286B (en) | The Oftware updating method and device of mobile terminal | |
CN105141762B (en) | A kind of low electric closedown method and system of mobile terminal | |
CN104023147B (en) | A kind of method and system that make mobile terminal stablize dormancy | |
CN105335056A (en) | Application control method and device and terminal | |
CN103645802A (en) | Method for automatically stopping mobile terminal application and mobile terminal | |
CN109739632A (en) | One kind freezing mechanism take-effective method, electronic device and computer readable storage medium | |
CN105550007A (en) | Control method and device for mobile terminal and mobile terminal | |
CN105607006A (en) | Battery capacity determination method, system and terminal thereof | |
CN106648854A (en) | Task execution method and device for terminal | |
CN107395955A (en) | Method for determining power-on time sequence of camera module and user terminal | |
CN105045585A (en) | Operation menu arrangement method and mobile terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP01 | Change in the name or title of a patent holder |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
CP01 | Change in the name or title of a patent holder | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20190809 |
|
CF01 | Termination of patent right due to non-payment of annual fee |