Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
The mobile terminal that Fig. 1 shows the embodiment of the present invention to be provided saves the realization flow figure of the method for power consumption, and details are as follows:
In step S101, when the system of described mobile terminal starts, detect the disk partition of specifying and whether there is zone bit.
It should be noted that, mobile terminal in the embodiment of the present invention can comprise mobile phone (or being called " honeycomb " phone) and have the computing machine of mobile terminal, such as, can be portable, pocket, hand-held, built-in computer or vehicle-mounted mobile device, they and wireless access network exchange language and/or data.Such as, Personal Communications Services (Personal Communication Service, PCS) phone, wireless phone, Session initiation Protocol (Session Initiation Protocol, SIP) phone, wireless local loop (Wireless Local Loop, WLL) stand, personal digital assistant (Personal Digital Assistant, the equipment such as PDA), in this no limit.
Further, before step S101, the method also comprises: when receiving the information starting battery saving mode, arrange a zone bit in the disk partition of specifying, and restarting systems.
When the system of mobile terminal starts, first load operation system kernel (Kernel).After operating system nucleus has loaded, detect the disk partition of specifying and whether there is zone bit.Designated disk subregion can be BOOT subregion, does not limit at this.If the disk partition of specifying exists zone bit, then show to start battery saving mode; If the disk partition of specifying does not exist zone bit, then show to start normal startup mode.
Preferably, the information of described startup battery saving mode comprises the instruction of the startup battery saving mode that user sends, or according to the trigger message of startup battery saving mode that the dump energy information preset produces.
In embodiments of the present invention, the information starting battery saving mode can be sent by user, also can be triggered by the dump energy information preset.Wherein, the dump energy information preset refers to the information that dump energy is less than preset value, and here, preset value can be 10 of total electricity, does not limit at this.
If in step s 102, there is zone bit in the disk partition of specifying described, then run the first process of pre-setting to save mobile terminal power consumption.
When the disk partition of specifying exists zone bit, obtain the first process, this first process is the init process that battery saving mode is corresponding.It should be noted that, init process is first user level process that operating system nucleus starts.
Preferably, the first process that described operation pre-sets comprises:
The work check figure of placement processor is monokaryon.
As one embodiment of the present of invention, run the first process of pre-setting and comprise: be monokaryon by the work check figure of AP (Application Processor, application processor) placement processor.For the mobile terminal with dual core processor, four core processors or eight core processors etc., the work check figure of placement processor is the power consumption that monokaryon can reduce mobile terminal greatly, and when some the basic functions of specifying only need be run, only use monokaryon little on the impact running fluency.
Alternatively, the first process that described operation pre-sets also comprises: close Wi-Fi (WirelessFidelity, adopting wireless fidelity technology) module and bluetooth module.
Alternatively, run the first process pre-set also to comprise: close the sensor of specifying.Here, the sensor of specifying comprises following at least one sensor: acceleration transducer, magnetometric sensor, direction sensor, gyroscope, light sensing sensor, pressure transducer, temperature sensor, proximity transducer and Gravity accelerometer.
Preferably, the first process that described operation pre-sets comprises:
Reduce screen refresh frequency to the second preset value.
Such as, under normal startup mode, screen refresh frequency is 80Hz; In a power-save mode, screen refresh frequency is 40Hz.
Alternatively, run the first process pre-set also to comprise: close 3G (The 3
rdgeneration, the third generation) mobile communication function and 4G (The 4
thgeneration, forth generation) mobile communication function, only retain 2G (The 2
ndgeneration, the second generation) mobile communication function.
Alternatively, run the first process pre-set also to comprise: close audio, only retain incoming ring tone, fresh information prompt tone and ring of alarm clock.
Alternatively, run the first process pre-set also to comprise: close camera (camera) subsystem, to close preview, to take pictures and recording function.
Alternatively, run the first process pre-set also to comprise: close flashlamp function and breath light function.
Alternatively, run the first process pre-set and also comprise: reduce backlight illumination to the 4th preset value, and the RGB of each pixel of display screen output is converted to gray-scale value output.
Alternatively, run the first process pre-set also to comprise: upper layer application only retains dial feature, phonebook function, informational function, input method function and switches to the function of normal startup mode.
The mobile terminal that Fig. 2 shows another embodiment of the present invention to be provided saves the realization flow figure of the method for power consumption, with reference to Fig. 2:
In step s 201, when the system of described mobile terminal starts, detect the disk partition of specifying and whether there is zone bit, if so, then perform step S202; If not, then step S203 is performed;
In step S202, the first process that operation pre-sets is to save mobile terminal power consumption;
In step S203, run the second process pre-set.
In embodiments of the present invention, when the disk partition of specifying does not exist zone bit, the second process is obtained.Second process is corresponding with normal startup mode.In embodiments of the present invention, normal startup mode refers to the start-up mode not needing to save power consumption.
Should be understood that in embodiments of the present invention, the size of the sequence number of above-mentioned each process does not also mean that the priority of execution sequence, and the execution sequence of each process should be determined with its function and internal logic, and should not form any restriction to the implementation process of the embodiment of the present invention.
The embodiment of the present invention is by when the system of mobile terminal starts, detect designated disk subregion and whether there is zone bit, when there is zone bit in designated disk subregion, run first process corresponding with battery saving mode, replace the second process under normal startup mode by the first process, only start some the basic functions of specifying thus, and do not start a large amount of additional functions, thus greatly save the power consumption of mobile terminal, enhance the flying power of mobile terminal.
The mobile terminal that Fig. 3 shows the embodiment of the present invention to be provided saves the structured flowchart of the device of power consumption, and this device may be used for the method that the mobile terminal shown in service chart 1 or Fig. 2 saves power consumption.For convenience of explanation, illustrate only the part relevant to the embodiment of the present invention.
With reference to Fig. 3, this device comprises:
Zone bit detecting unit 31, for when the system of described mobile terminal starts, detects the disk partition of specifying and whether there is zone bit;
First process running unit 32, if there is zone bit for described disk partition of specifying, then runs the first process of pre-setting to save mobile terminal power consumption.
Further, described device also comprises:
Zone bit setting unit 33, for when receiving the information starting battery saving mode, arranges a zone bit in the disk partition of specifying, and restarting systems.
Preferably, the information of described startup battery saving mode comprises the instruction of the startup battery saving mode that user sends, or according to the trigger message of startup battery saving mode that the dump energy information preset produces.
Preferably, described first process running unit 32 specifically for:
The work check figure of placement processor is monokaryon.
Preferably, described first process running unit 32 specifically for:
Reduce screen refresh frequency to the second preset value.
Alternatively, described first process running unit 32 also for:
Close Wi-Fi module and bluetooth module.
Alternatively, described first process running unit 32 also for:
Close the sensor of specifying.Here, the sensor of specifying comprises following at least one sensor: acceleration transducer, magnetometric sensor, direction sensor, gyroscope, light sensing sensor, pressure transducer, temperature sensor, proximity transducer and Gravity accelerometer.
Alternatively, described first process running unit 32 also for:
Close 3G mobile communication function and 4G mobile communication function, only retain 2G mobile communication function.
Alternatively, described first process running unit 32 also for:
Close audio, only retain incoming ring tone, fresh information prompt tone and ring of alarm clock.
Alternatively, described first process running unit 32 also for:
Close camera (camera) subsystem, to close preview, to take pictures and recording function.
Alternatively, described first process running unit 32 also for:
Close flashlamp function and breath light function.
Alternatively, described first process running unit 32 also for:
Reduce backlight illumination to the 4th preset value, and the RGB of each pixel of display screen output is converted to gray-scale value output.
Alternatively, described first process running unit 32 also for:
Upper layer application only retains dial feature, phonebook function, informational function, input method function and switches to the function of normal startup mode.
Preferably, described device also comprises:
Second process running unit 34, for when the disk partition of specifying does not exist zone bit, runs the second process pre-set.
The embodiment of the present invention is by when the system of mobile terminal starts, detect designated disk subregion and whether there is zone bit, when there is zone bit in designated disk subregion, run first process corresponding with battery saving mode, replace the second process under normal startup mode by the first process, only start some the basic functions of specifying thus, and do not start a large amount of additional functions, thus greatly save the power consumption of mobile terminal, enhance the flying power of mobile terminal.
Those of ordinary skill in the art can recognize, in conjunction with unit and the algorithm steps of each example of embodiment disclosed herein description, can realize with the combination of electronic hardware or computer software and electronic hardware.These functions perform with hardware or software mode actually, depend on application-specific and the design constraint of technical scheme.Professional and technical personnel can use distinct methods to realize described function to each specifically should being used for, but this realization should not thought and exceeds scope of the present invention.
Those skilled in the art can be well understood to, and for convenience and simplicity of description, the device of foregoing description and the specific works process of unit, with reference to the corresponding process in preceding method embodiment, can not repeat them here.
In several embodiments that the application provides, should be understood that disclosed apparatus and method can realize by another way.Such as, device embodiment described above is only schematic, such as, the division of described unit, be only a kind of logic function to divide, actual can have other dividing mode when realizing, such as multiple unit or assembly can in conjunction with or another system can be integrated into, or some features can be ignored, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of unit or communication connection can be electrical, machinery or other form.
The described unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, also can be that the independent physics of unit exists, also can two or more unit in a unit integrated.
If described function using the form of SFU software functional unit realize and as independently production marketing or use time, can be stored in a computer read/write memory medium.Based on such understanding, the part of the part that technical scheme of the present invention contributes to prior art in essence in other words or this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) perform all or part of step of method described in each embodiment of the present invention.And aforesaid storage medium comprises: USB flash disk, portable hard drive, ROM (read-only memory) (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. various can be program code stored medium.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; change can be expected easily or replace, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should described be as the criterion with the protection domain of claim.