CN106455022A - Power saving mode switching method and device - Google Patents

Power saving mode switching method and device Download PDF

Info

Publication number
CN106455022A
CN106455022A CN201610915962.9A CN201610915962A CN106455022A CN 106455022 A CN106455022 A CN 106455022A CN 201610915962 A CN201610915962 A CN 201610915962A CN 106455022 A CN106455022 A CN 106455022A
Authority
CN
China
Prior art keywords
saving mode
battery saving
idle condition
cpu load
sys
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.)
Granted
Application number
CN201610915962.9A
Other languages
Chinese (zh)
Other versions
CN106455022B (en
Inventor
李海泉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201610915962.9A priority Critical patent/CN106455022B/en
Publication of CN106455022A publication Critical patent/CN106455022A/en
Application granted granted Critical
Publication of CN106455022B publication Critical patent/CN106455022B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0225Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
    • H04W52/0241Power 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/3293Power saving characterised by the action undertaken by switching to a less power-consuming processor, e.g. sub-CPU
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0261Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing 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 embodiments of the invention provide a power saving mode switching method and device. The method comprises the steps of: detecting a CPU (Central Processing Unit) load and/or network traffic of a terminal; determining whether a system is in an idle state according to the CPU load and/or network traffic of the terminal; when the system is detected to be in the idle state, detecting the duration of the system in the idle state; when the detected duration is greater than or equal to a preset time length threshold, acquiring a system configuration file; and configuring parameters entering a power saving mode in the system configuration file, so that the system enters the power saving mode. The method and the device can improve the convenience of operation when the power saving mode of the mobile terminal is switched.

Description

A kind of battery saving mode changing method and device
Technical field
The present invention relates to computer and communication technical field, and in particular to a kind of battery saving mode changing method and device.
Background technology
At present, people are realized amusement, more and more functions, the mobile terminal such as mobile phone such as are read, handle official business by mobile terminal More and more tightr with the life of people, while people propose higher demand to the service time of battery of mobile terminal.In difference Use scene under, people are to the screen intensity of mobile terminal, CPU (Central Processing Unit, letter Claim CPU) demand of performance, available number of applications etc. differ, existing mobile terminal provides battery saving mode, Under battery saving mode, mobile terminal can correspondingly reduce screen intensity, cpu performance, available number of applications etc., reduce electricity Amount is consumed, and extends service time of battery.That is, in the related, user need continually battery saving mode with normal Manual switching is carried out between pattern, which results in operation when user moves saving power for terminal pattern switching very loaded down with trivial details and not Just.
Content of the invention
The embodiment of the present invention proposes a kind of battery saving mode changing method and device, can improve electricity saving of mobile terminal pattern and cut The convenience for operating when changing.
Embodiment of the present invention first aspect provides a kind of battery saving mode changing method, including:
The cpu load of detection terminal and/or network traffics;
Determine system whether in idle condition according to the cpu load of the terminal and/or network traffics;
When the system being detected in the idle condition, detect the system continuing in the idle condition Time;
When the persistent period being detected more than or equal to default duration threshold value, obtain CONFIG.SYS;
In the CONFIG.SYS, configuration enters the parameter of battery saving mode, so that the system enters the power saving mould Formula.
Embodiment of the present invention second aspect provides a kind of battery saving mode switching device, including:
First detector unit, the cpu load for detection terminal and/or network traffics;
Determining unit, the cpu load and/or network traffics for being detected according to first detector unit determines that system is No in idle condition;
Second detector unit, for when the idle condition that the system determines is detected in the determining unit, examining The persistent period of the idle condition that the system determines is surveyed in the determining unit;
Acquiring unit, for being more than or equal to default duration threshold when the persistent period for detecting detector unit detection During value, CONFIG.SYS is obtained;
Dispensing unit, enters the parameter of battery saving mode, so that the system for configuration in the CONFIG.SYS Enter the battery saving mode.
After employing above-mentioned battery saving mode changing method and device, system free time length is being detected more than duration threshold value When, mobile terminal is set to battery saving mode, mobile terminal can pass through system detectio, intelligently, accurately judge that system is entered Metastable idle condition, and battery saving mode is automatically switched to by configuration parameter in CONFIG.SYS, this is not just Need the user frequently to carry out manual switching between battery saving mode and normal mode, it is to avoid battery saving mode and normal mode it Between switch loaded down with trivial detailsly, solve because personal reason forget switch battery saving mode cause the user inconvenience, improve and move The convenience for operating during saving power for terminal pattern switching.
Description of the drawings
For the technical scheme being illustrated more clearly that in the embodiment of the present invention, below by to be used needed for embodiment Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the present invention, general for this area For logical technical staff, on the premise of not paying creative work, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of schematic flow sheet of battery saving mode changing method provided in an embodiment of the present invention;
Fig. 2 is the schematic flow sheet of another kind battery saving mode changing method provided in an embodiment of the present invention;
Fig. 3 is a kind of structural representation of battery saving mode switching device provided in an embodiment of the present invention;
Fig. 4 is the structural representation of another kind battery saving mode switching device provided in an embodiment of the present invention;
Fig. 5 is the structural representation of another battery saving mode switching device provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is a part of embodiment of the present invention, rather than whole embodiments.Based on this Embodiment in bright, the every other enforcement obtained under the premise of creative work is not made by those of ordinary skill in the art Example, belongs to the scope of protection of the invention.
Inventor has found, in the related, as a lot of business of mobile terminal under battery saving mode are unavailable, is applicable Different use scenes, user generally requires continually to carry out manual switching between battery saving mode and normal mode, operates numerous Trivial, and easily as artificial origin forgets switching, the facility for operating during so as to reducing and move saving power for terminal pattern switching Property.
Based on this, the embodiment of the present invention provides a kind of battery saving mode changing method and device, can improve mobile terminal province The convenience for operating during power mode switching.
In one embodiment it is proposed that a kind of electricity saving of mobile terminal mode switching method, the battery saving mode changing method Execution can be dependent on computer program, the computer program is can run on the operating system of von Neumann system.The behaviour May operate on the mobile terminals such as smart mobile phone, panel computer as system.
Refer to the flow process that Fig. 1, Fig. 1 are a kind of electricity saving of mobile terminal mode switching methods provided in an embodiment of the present invention to show It is intended to.Wherein, the battery saving mode changing method is the angle from mobile terminals such as the mobile phone for being provided with battery saving mode, panel computers Come described.As shown in figure 1, the windows switching method may comprise steps of.
Step S101:The cpu load of detection terminal and/or network traffics.
Step S102:Determine system whether in idle condition according to the cpu load of terminal and/or network traffics.
In the present embodiment, idle condition refers to the idle condition of system operation.For example, in the application scenarios of a mobile phone In, when some applications in system operationally, such as user operation music, timing, take pictures etc. cell-phone function when, mobile phone Cpu load is higher, or when user is when task is downloaded, the network traffics of mobile phone are very high, when user terminates music, meter When, the mobile phone application such as take pictures, while when terminating mobile phone-downloaded task, can substantially reduce cpu load and network traffics accordingly, this When, determine system in idle condition.Therefore, by detecting the current cpu load of mobile phone or network traffics, system can determine Whether idle condition is in.
Step S103:Persistent period of the detecting system in idle condition.
In the present embodiment, when the system that detects is in idle condition, i.e., perform detection system is in holding for idle condition The continuous time.The persistent period of idle condition can be obtained by such mode:When the mobile terminal enters the idle state, open Intervalometer is opened, the timing of the intervalometer is a unit of time, through a unit of time, such as 1 μ s, system goes to check system Whether system is also in idle condition, if also in idle condition, added up on the persistent period of idle condition a time list Position, is so updated to the persistent period always.
Step S104:When the persistent period being detected more than or equal to default duration threshold value, obtain CONFIG.SYS.
In the present embodiment, judge that the persistent period is achieved in that more than or equal to one kind of default duration threshold value, according to Default duration threshold value, by intervalometer timing duration threshold value, if detect system to be constantly in idle shape in timing process State, then judge that the persistent period is more than or equal to default duration threshold value.
In the present embodiment, duration threshold value can user arranged according to the use habit of oneself.For example in a mobile phone Application scenarios in, if user wishes to enter battery saving mode as soon as possible in mobile phone idle condition, realize saving more electricity, Duration threshold value can be arranged relatively small, such as 15s according to personal considerations.When but duration threshold value is too small, when system is not also stable Entrance idle condition when, now, possible user still using mobile phone some functions, that is, carry out the operation of lower step, easily make Become system to the erroneous judgement of the operation for carrying out lower step is needed, therefore, for above-mentioned situation is avoided, duration threshold value can not arrange too small. In addition, if user is not intended to system frequently switch between normal mode and battery saving mode, can be by the duration threshold It is longer that value is arranged, it is also possible to closes this automatic switchover battery saving mode function.
Step S105:In CONFIG.SYS, configuration enters the parameter of battery saving mode, so that system enters battery saving mode.
In the present embodiment, when system enters battery saving mode, can be by reducing screen intensity, closing WIFI and cellular data The modes such as network, reduction processor host frequency, simplification main screen carry out the use time of extending cell phone battery, and system also provides user oneself DIY battery saving mode, when such as suitably reduction screen intensity, the unwanted sending out notice function of closing carry out extension device use as far as possible Between.
In the application scenarios of a mobile phone, if by detecting cpu load or network traffics, system finds that mobile phone is not in Application running status, is also not in download state, it is determined that mobile phone is in idle condition, continues detection mobile phone and is in idle condition Persistent period, when the persistent period more than user preset a duration when, system judge now user do not carry out mobile phone Operation, mobile phone is currently in idle condition, mobile phone is switched to battery saving mode.
In the battery saving mode changing method described by Fig. 1, when system free time length is detected more than duration threshold value, will Mobile terminal is set to battery saving mode, and mobile terminal can pass through system detectio, intelligently, accurately judges that system is entered relatively Stable idle condition, and battery saving mode is automatically switched to by configuration parameter in CONFIG.SYS, this avoids the need for using Family frequently carries out manual switching between battery saving mode and normal mode, it is to avoid loaded down with trivial details between battery saving mode and normal mode Ground switching, solves and forgets to switch the inconvenience of battery saving mode cause the user because of personal reason, improves and moves terminal province The convenience for operating during power mode switching.
Refer to the flow process that Fig. 2, Fig. 2 are another kind electricity saving of mobile terminal mode switching methods provided in an embodiment of the present invention Schematic diagram.Wherein, the battery saving mode changing method is the angle from mobile terminals such as the mobile phone for being provided with battery saving mode, panel computers Spend to describe.As shown in Fig. 2 the windows switching method may comprise steps of.
Step S201:Judge system time whether in default detection time section.
In the present embodiment, user can be set in certain period of time according to personal habits and implement by detecting cpu load Or network traffics determine the step of whether system is in idle condition.For example, in the application scenarios of a mobile phone, if user is every It is on duty the time, the morning 9:00-11:During 30, the mobile phone application such as music, timing will not be generally run, take pictures, Mobile phone-downloaded task will not be carried out, then can be born by detecting CPU by being configured in mobile phone only executing within the time period Carry or network traffics determine the step of whether system is in idle condition, remaining time does not execute the step.
Step S202:The cpu load of detection terminal and/or network traffics.
In the present embodiment, when whether system time in default detection time section, i.e. the CPU of perform detection terminal Load and/or network traffics.
Step S203:Determine system whether in idle condition according to the cpu load of terminal and/or network traffics.
Idle condition refers to the idle condition of system operation.For example, in the application scenarios of a mobile phone, when in system Some applications operationally, such as user operation music, timing, take pictures etc. cell-phone function when, the cpu load of mobile phone is higher, or Person is when user is when task is downloaded, and the network traffics of mobile phone are very high, answers when user such as terminates music, timing, takes pictures at the mobile phone With while when terminating mobile phone-downloaded task, can substantially reduce cpu load and network traffics accordingly, now, determine that system is in Idle condition.Therefore, can determine system whether in idle shape by detecting the current cpu load of mobile phone or network traffics State.
In the present embodiment, further, in the cpu load of the system that detects and/or network traffics, first is less than or equal to During threshold value, idle condition is entered.Mobile terminal intelligently, accurately can judge that system enters idle condition.
Step S204:Persistent period of the detecting system in idle condition.
In the present embodiment, when the system that detects is in idle condition, i.e., perform detection system is in holding for idle condition The continuous time.The persistent period of idle condition can be obtained by such mode:One kind is achieved in that when mobile terminal When entering idle condition, opening timing device, the timing of the intervalometer is a unit of time, through a unit of time, such as 1 μ s, whether system goes inspection system also in idle condition, if also in idle condition, on the persistent period of idle condition Add up a unit of time, so always the persistent period is updated.
Step S205:When the persistent period being detected more than or equal to default duration threshold value, obtain CONFIG.SYS.
In the present embodiment, judge that the persistent period is achieved in that more than or equal to one kind of default duration threshold value, according to Default duration threshold value, by intervalometer timing duration threshold value, if detect system to be constantly in idle shape in timing process State, then judge that the persistent period is more than or equal to default duration threshold value.
In the present embodiment, duration threshold value can user arranged according to the use habit of oneself.For example in a mobile phone Application scenarios in, if user wishes to enter battery saving mode as soon as possible in mobile phone idle condition, realize saving more electricity, Duration threshold value can be arranged relatively small, such as 30s according to personal considerations.When but duration threshold value is too small, when system is not also stable Entrance idle condition when, now, possible user still using mobile phone some functions, that is, carry out the operation of lower step, easily make Become system to the erroneous judgement of the operation for carrying out lower step is needed, therefore, for above-mentioned situation is avoided, duration threshold value can not arrange too small. In addition, if user is not intended to system frequently switch between normal mode and battery saving mode, can be by the duration threshold It is longer that value is arranged, it is also possible to closes this automatic switchover battery saving mode function.
Step S206:In CONFIG.SYS, configuration enters the parameter of battery saving mode, so that system enters battery saving mode.
In the present embodiment, when system enters battery saving mode, can be by reducing screen intensity, closing WIFI and cellular data The modes such as network, reduction processor host frequency, simplification main screen carry out the use time of extending cell phone battery, and system can also provide user Oneself DIY battery saving mode, such as suitably reducing screen intensity, the unwanted sending out notice function of closing makes come extension device as far as possible Use the time.
In the present embodiment, further, battery saving mode can include the battery saving mode of one or more types.When being During battery saving mode of the system comprising more than one types, under all types of battery saving modes, the function of system mobile terminal to be operated Difference, such as screen intensity, WIFI and data network, processor host frequency etc., the corresponding electric intensity that saves is different, and system enters battery saving mode Can specifically include:
Targets threshold interval belonging to acquisition cpu load and/or flow system flow;
In the range of less than or equal to first threshold, one or more threshold intervals can be set, these threshold zone Between be continuous and nonoverlapping each other, the union of these threshold intervals be less than or equal to first threshold.The CPU of acquisition Load and/or flow system flow can fall in one or more threshold intervals one of them, the threshold interval be target threshold Value is interval.For example, first threshold is A, and the cpu load of acquisition and/or flow system flow are that a, threshold interval includes:0≤a≤a1, A1≤a≤a2, a2≤a≤A, its, 0 < a1 < a2 < A.
Target battery saving mode is determined in one or more battery saving mode according to targets threshold interval;
One or more threshold intervals are one-to-one relations with the battery saving mode of one or more types, The interval corresponding target battery saving mode of targets threshold can be determined according to the corresponding relation.For example, 0≤a of threshold interval≤a1 couple The first battery saving mode is answered, threshold interval a1≤a≤a2 corresponds to the second battery saving mode, threshold interval a2≤a≤A corresponds to the 3rd power saving Pattern.The mobile terminal application function of the first battery saving mode, the second battery saving mode closing corresponding with the 3rd battery saving mode increases successively Many, electricity-saving function strengthens successively.
In CONFIG.SYS, configuration enters the parameter of battery saving mode, so that system enters target battery saving mode.
In the present embodiment, target battery saving mode is the one kind in the battery saving mode of one or more types.For example, exist In above-mentioned example, target battery saving mode is the first battery saving mode, one in the second battery saving mode and the 3rd battery saving mode.
Step S207:When the cpu load of the system that detects and/or network traffics are more than or equal to Second Threshold, exit Idle condition.
In the present embodiment, Second Threshold is more than first threshold.When the cpu load of system and/or network traffics are in the first threshold When between value and Second Threshold, still judge now for idle condition, be to ensure that decision-making system is in the accurate of idle condition Property, it is to avoid when only using first threshold, due to system itself or network reason cpu load and/or network traffics saltus step, now system Actually still in idle condition, the maloperation for exitting from idle status is caused.
Step S208:The parameter of modification CONFIG.SYS, so that system enters normal mode.
In the present embodiment, under normal mode, screen intensity, WIFI and data network, processor host frequency etc. recover normal, are System power consumption is also above battery saving mode.
In the application scenarios of a mobile phone, for example user sets the morning 9:00-11:Changeable battery saving mode during 30, Then within the time period, if by detecting cpu load or network traffics, system finds that mobile phone is in idle condition, continue detection Persistent period of the mobile phone in idle condition, when the persistent period is more than a duration of user preset, system can automatic root According to cpu load and/or network traffics, judge the degree of mobile phone free time, and mobile phone is switched to a kind of corresponding battery saving mode.When User continues to operate mobile phone during battery saving mode, such as opens the application such as music, download, makes cpu load and/or net Network flow has exceeded Second Threshold, then system judges that now mobile phone has had logged out idle condition, will be mobile phone battery saving mode Normal mode is switched back into, to facilitate user to carry out normal mobile phone use.
In the battery saving mode changing method described by Fig. 2, when system free time length is detected more than duration threshold value, will Mobile terminal is set to battery saving mode, and mobile terminal can pass through system detectio, intelligently, accurately judges that system is entered relatively Stable idle condition, and battery saving mode is automatically switched to by configuration parameter in CONFIG.SYS, this avoids the need for using Family frequently carries out manual switching between battery saving mode and normal mode, it is to avoid loaded down with trivial details between battery saving mode and normal mode Ground switching, solves and forgets to switch the inconvenience of battery saving mode cause the user because of personal reason, improves and moves terminal province The convenience for operating during power mode switching.
Refer to the structural representation that Fig. 3, Fig. 3 are a kind of terminals provided in an embodiment of the present invention.As shown in figure 3, this is eventually End can include:
First detector unit 301, the cpu load for detection terminal and/or network traffics;
Determining unit 302, determines system for leading to the cpu load for detecting according to the first detector unit 301 and/or network traffics Whether system is in idle condition;
Second detector unit 303, for when the system that detects is in the idle condition that determining unit 302 determines, detecting The persistent period of idle condition of the system in the determination of determining unit 301;
Acquiring unit 304, default for being more than or equal to when the persistent period for detecting the detection of the second detector unit 303 During duration threshold value, CONFIG.SYS is obtained;
Dispensing unit 305, enters the ginseng of battery saving mode for configuration in the CONFIG.SYS that acquiring unit 304 is obtained Number, so that system enters battery saving mode.
In the battery saving mode switching device described by Fig. 3, when system free time length is detected more than duration threshold value, will Mobile terminal is set to battery saving mode, and mobile terminal can pass through system detectio, intelligently, accurately judges that system is entered relatively Stable idle condition, and battery saving mode is automatically switched to by configuration parameter in CONFIG.SYS, this avoids the need for using Family frequently carries out manual switching between battery saving mode and normal mode, it is to avoid loaded down with trivial details between battery saving mode and normal mode Ground switching, solves and forgets to switch the inconvenience of battery saving mode cause the user because of personal reason, improves and moves terminal province The convenience for operating during power mode switching.
Refer to the structural representation that Fig. 4, Fig. 4 are another kind battery saving mode switching devices provided in an embodiment of the present invention. Wherein, the device shown in Fig. 4 is that installation optimization as shown in Figure 3 is obtained.
As a kind of possible embodiment, determining unit 302, specifically for the cpu load in the system that detects and/or When network traffics are less than or equal to first threshold, idle condition is entered.
Used as a kind of possible embodiment, the device can also include:
Unit 306 is exited, is more than or equal to Second Threshold for the cpu load in the system that detects and/or network traffics When, the idle condition of the determination of determining unit 302 is exited, Second Threshold is more than first threshold;
Modification unit 307, for changing the parameter of the CONFIG.SYS of the acquisition of acquiring unit 304, so that system is entered Normal mode.
Used as a kind of possible embodiment, battery saving mode includes the battery saving mode of one or more types;
Dispensing unit 305 can also include:
Subelement 3051 is obtained, for obtaining cpu load and/or the interval of the targets threshold belonging to flow system flow;
Determination subelement 3052, for according to the targets threshold that obtains the acquisition of subelement 3051 interval a kind of or one kind with On battery saving mode in determine target battery saving mode;
Configuration subelement 3053, enters battery saving mode for configuration in the CONFIG.SYS that acquiring unit 304 is obtained Parameter so that system enter determination subelement 3052 determination target battery saving mode.
Used as a kind of possible embodiment, the device can also include:
Judging unit 308, for judging system time whether in default detection time section, if, it is determined that single Whether unit 302 determines system in idle condition by detecting cpu load or network traffics.
In the battery saving mode switching device described by Fig. 4, when system free time length is detected more than duration threshold value, will Mobile terminal is set to battery saving mode, and mobile terminal can pass through system detectio, intelligently, accurately judges that system is entered relatively Stable idle condition, and battery saving mode is automatically switched to by configuration parameter in CONFIG.SYS, this avoids the need for using Family frequently carries out manual switching between battery saving mode and normal mode, it is to avoid loaded down with trivial details between battery saving mode and normal mode Ground switching, solves and forgets to switch the inconvenience of battery saving mode cause the user because of personal reason, improves and moves terminal province The convenience for operating during power mode switching.
Refer to the structural representation that Fig. 5, Fig. 5 are another terminals provided in an embodiment of the present invention.As shown in figure 5, should Terminal can include:At least one processor 501, such as CPU, memorizer 502 and at least one communication bus 503.Memorizer 502 can be high-speed RAM memorizer, or non-labile memorizer (non-volatile memory), for example, at least One disk memory.Alternatively, memorizer 502 can also be at least one storage dress for being located remotely from aforementioned processor 501 Put.Wherein:
Communication bus 503, for realizing the connection communication between these components;
Be stored with memorizer 502 batch processing code, and processor 501 is used for calling the program for storing in memorizer 502 Code executes following operation:
The cpu load of detection terminal and/or network traffics;
Determine system whether in idle condition according to the cpu load of terminal and/or network traffics;
When the system that detects is in idle condition, persistent period of the detecting system in idle condition;
When the persistent period being detected more than or equal to default duration threshold value, obtain CONFIG.SYS;
In CONFIG.SYS, configuration enters the parameter of battery saving mode, so that system enters battery saving mode.
Used as a kind of possible embodiment, processor 501 is by detecting whether cpu load or network traffics determine system Include in idle condition:
When the cpu load of the system that detects and/or network traffics are less than or equal to first threshold, idle condition is entered.
Used as a kind of possible embodiment, processor 501 executes configuration in CONFIG.SYS and enters battery saving mode Parameter so that system enter battery saving mode operation after, may call upon in memorizer 502 store program code execute with Lower operation:
When the cpu load of the system that detects and/or network traffics are more than or equal to Second Threshold, exit from idle status, Second Threshold is more than first threshold;
The parameter of modification CONFIG.SYS, so that system enters normal mode.
Used as a kind of possible embodiment, battery saving mode includes the battery saving mode of one or more types;
Processor 501 be used for call in memorizer 502 store program code execute configure in CONFIG.SYS into Enter the parameter of battery saving mode so that system enters battery saving mode and includes:
Targets threshold interval belonging to acquisition cpu load and/or flow system flow;
Target battery saving mode is determined in one or more battery saving mode according to targets threshold interval;
In CONFIG.SYS, configuration enters the parameter of battery saving mode, so that system enters target battery saving mode.
Used as a kind of possible embodiment, processor 501 is used for calling the program code for storing in memorizer 502 to execute Hereinafter operate:
System time is judged whether in default detection time section, if so, then by detecting cpu load or network flow Whether amount determination system is in idle condition.
Wherein, step S101-S105, S201-S208 can be executed by the processor 501 in terminal and memorizer 502.
Wherein, the first detector unit 301, determining unit 302, the second detector unit 303, acquiring unit 304, dispensing unit 305th, exit unit 306, modification unit 307 to be realized by the processor 501 in terminal and memorizer 502.Wherein, configure Unit 305 includes, acquisition subelement 3051, determination subelement 3052 and configuration subelement 3053 can be by the process in terminal Device 501 and memorizer 502 are realizing.
In the battery saving mode switching device described by Fig. 5, when system free time length is detected more than duration threshold value, will Mobile terminal is set to battery saving mode, and mobile terminal can pass through system detectio, intelligently, accurately judges that system is entered relatively Stable idle condition, and battery saving mode is automatically switched to by configuration parameter in CONFIG.SYS, this avoids the need for using Family frequently carries out manual switching between battery saving mode and normal mode, it is to avoid loaded down with trivial details between battery saving mode and normal mode Ground switching, solves and forgets to switch the inconvenience of battery saving mode cause the user because of personal reason, improves and moves terminal province The convenience for operating during power mode switching.
If the integrated unit is realized and as independent production marketing or use using in the form of SFU software functional unit When, can be stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially The part in other words prior art being contributed, or all or part of the technical scheme can be in the form of software product Embody, the computer software product is stored in a storage medium, use including some instructions so that one mobile whole End equipment (can be smart mobile phone, server, or network equipment etc.) executes the complete of each embodiment methods described of the present invention Portion or part steps.And aforesaid storage medium includes:USB flash disk, portable hard drive, read only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can store journey The medium of sequence code.
Above windows switching method provided in an embodiment of the present invention and device are described in detail, used herein Specific case is set forth to the principle of the present invention and embodiment, and the explanation of above example is only intended to help and understands this The method and its core concept of invention;Simultaneously for one of ordinary skill in the art, according to the thought of the present invention, concrete All will change in embodiment and range of application, in sum, this specification content is should not be construed as to the present invention's Limit.

Claims (10)

1. a kind of battery saving mode changing method, it is characterised in that include:
The cpu load of detection terminal and/or network traffics;
Determine system whether in idle condition according to the cpu load of the terminal and/or network traffics;
When the system is detected in the idle condition, detect the system in the idle condition lasting when Between;
When the persistent period being detected more than or equal to default duration threshold value, obtain CONFIG.SYS;
In the CONFIG.SYS, configuration enters the parameter of battery saving mode, so that the system enters the battery saving mode.
2. method according to claim 1, it is characterised in that cpu load and/or the network flow according to the terminal Whether amount determination system includes in idle condition:
When the cpu load of the system that detects and/or network traffics are less than or equal to first threshold, idle condition is entered.
3. method according to claim 2, it is characterised in that described in the CONFIG.SYS configuration enter power saving The parameter of pattern, so that after the system enters the battery saving mode, methods described also includes:
When the cpu load for detecting the system and/or network traffics are more than or equal to Second Threshold, the free time shape is exited State, the Second Threshold is more than the first threshold;
The parameter of the CONFIG.SYS is changed, so that the system enters normal mode.
4. the method according to any one of claims 1 to 3, it is characterised in that the battery saving mode includes one kind or one kind Above type of battery saving mode;
The parameter of the configuration entrance battery saving mode in the CONFIG.SYS is so that the system enters the power saving mould Formula includes:
Obtain the cpu load and/or the interval of the targets threshold belonging to the flow system flow;
Target battery saving mode is determined in one or more the battery saving mode according to targets threshold interval;
In the CONFIG.SYS, configuration enters the parameter of battery saving mode, so that the system enters the target power saving mould Formula.
5. the method according to any one of claims 1 to 3, it is characterised in that methods described also includes:
System time being judged whether in default detection time section, if so, then executes described by detecting cpu load or net The step of whether network flow rate determination system is in idle condition.
6. a kind of battery saving mode switching device, it is characterised in that include:
First detector unit, the cpu load for detection terminal and/or network traffics;
Determining unit, the cpu load and/or network traffics for being detected according to first detector unit determines whether system is located In idle condition;
Second detector unit, for when the idle condition that the system determines is detected in the determining unit, detecting institute The persistent period of the idle condition that system determines is stated in the determining unit;
Acquiring unit, for being more than or equal to default duration threshold value when the persistent period for detecting detector unit detection When, obtain CONFIG.SYS;
Dispensing unit, enters the parameter of battery saving mode for configuration in the CONFIG.SYS, so that the system is entered The battery saving mode.
7. device according to claim 6, it is characterised in that the determining unit, specifically for detecting system When cpu load and/or network traffics are less than or equal to first threshold, idle condition is entered.
8. device according to claim 7, it is characterised in that described device also includes:
Unit is exited, for when the cpu load for detecting the system and/or network traffics are more than or equal to Second Threshold, The idle condition of determining unit determination is exited, the Second Threshold is more than the first threshold;
Modification unit, for changing the parameter of the CONFIG.SYS of acquiring unit acquisition, so that the system is just entered Norm formula.
9. the device according to any one of claim 6 to 8, it is characterised in that the battery saving mode includes one kind or one kind Above type of battery saving mode;
The dispensing unit includes:
Subelement is obtained, for obtaining the cpu load and/or the interval of the targets threshold belonging to the flow system flow;
Determination subelement, for according to the targets threshold for obtaining subelement acquisition interval described one or more Target battery saving mode is determined in battery saving mode;
Configuration subelement, enters the parameter of battery saving mode, so that the system is entered for configuration in the CONFIG.SYS Enter the target battery saving mode of determination subelement determination.
10. the device according to any one of claim 6 to 8, it is characterised in that described device also includes:
Judging unit, for judging system time whether in default detection time section, if so, then the determining unit is led to Cross detection cpu load or whether network traffics determine system in idle condition.
CN201610915962.9A 2016-10-20 2016-10-20 A kind of battery saving mode switching method and device Expired - Fee Related CN106455022B (en)

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 true CN106455022A (en) 2017-02-22
CN106455022B 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)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107197426A (en) * 2017-07-14 2017-09-22 中国联合网络通信集团有限公司 A kind of method, device and mobile management nodes for reducing network signaling overhead
CN107272874A (en) * 2017-06-20 2017-10-20 郑州云海信息技术有限公司 A kind of method and system of regulation server memory driver state
CN110536391A (en) * 2019-09-26 2019-12-03 维沃移动通信有限公司 A kind of communication means and mobile terminal
CN111274113A (en) * 2020-02-24 2020-06-12 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
CN114356064A (en) * 2022-01-11 2022-04-15 北京国网富达科技发展有限责任公司 Power supply management method and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070004469A1 (en) * 2001-11-30 2007-01-04 Nec Corporation Power saving method for a mobile terminal
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

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070004469A1 (en) * 2001-11-30 2007-01-04 Nec Corporation Power saving method for a mobile terminal
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

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107272874A (en) * 2017-06-20 2017-10-20 郑州云海信息技术有限公司 A kind of method and system of regulation server memory driver state
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
CN110536391A (en) * 2019-09-26 2019-12-03 维沃移动通信有限公司 A kind of communication means and mobile terminal
CN110536391B (en) * 2019-09-26 2022-04-12 维沃移动通信有限公司 Communication method and mobile terminal
CN111274113A (en) * 2020-02-24 2020-06-12 Oppo广东移动通信有限公司 State prediction method and device 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
CN114356064A (en) * 2022-01-11 2022-04-15 北京国网富达科技发展有限责任公司 Power supply management method and system
CN114356064B (en) * 2022-01-11 2024-03-19 北京国网富达科技发展有限责任公司 Power supply management method and system

Also Published As

Publication number Publication date
CN106455022B (en) 2019-08-09

Similar Documents

Publication Publication Date Title
CN106455022A (en) Power saving mode switching method and device
CN104239195B (en) A kind of method and electronic equipment for handling electronic equipment power consumption
CN106125896A (en) A kind of application program freezing method and mobile terminal
CN106527664B (en) Self-service terminal energy-saving control method and device
CN105684260B (en) intelligent context-based battery charging
CN107197103B (en) Power-saving operation control method and device for intelligent terminal
CN104221445B (en) A kind of method and terminal waking up terminal system
CN103199310A (en) Battery power guaranteeing method and battery power guaranteeing apparatus for portable electronic product, and mobile terminal
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
CN105700663A (en) Background program cleaning method and system for mobile terminal
CN105072292A (en) Application control method and terminal
US20160357616A1 (en) Application management method and application management apparatus
CN104580710B (en) A kind of automatic power save method based on learning user operation custom
CN104244378B (en) Improve the wireless communication device and method of power management
CN104298336A (en) Mobile terminal and control method and device of application program of mobile terminal
CN106060909A (en) Network access method and mobile terminal
CN103199311A (en) Battery power saving method and battery power saving apparatus for portable electronic product, and mobile terminal
CN106445664A (en) Application program management method and device
CN108170252B (en) Terminal power saving method and device
CN106714288A (en) Electric quantity processing method and apparatus, and terminal
CN109656349A (en) Electricity saving method, terminal and the computer readable storage medium of terminal
CN105141762B (en) A kind of low electric closedown method and system of mobile terminal
CN106648021B (en) The data broadcasting method and low consumption circuit of low consumption circuit
CN104184884A (en) Device and method for managing and controlling power consumption of mobile terminal 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