Mobile phone power-saving method, device, equipment and storage medium
Technical field
The present embodiments relate to field of mobile phones more particularly to a kind of mobile phone power-saving method, device, equipment and storage to be situated between
Matter.
Background technique
With people to cell phone appearance, with the requirement of speed and safety, the length-width ratio of existing mobile phone screen is essentially
18:9 or 19:9, mobile phone EMS memory are usually less than 64G+4G.Wherein, 64G be ROM (Read Only Memory, abbreviation ROM,
That is read-only memory), 4G is RAM (Random Access Memory, abbreviation RAM, i.e. random access memory), and mobile phone unlocks
By traditional password unlock, gradually development is that brush face unlocks to mode.The unlock of brush face needs to acquire the current face-image of user, with
And it is carried out with face-image when registration by face alignment by a large amount of operation, due to the high-speed cruising and camera of memory
The power consumption of camera shooting is larger, along with mobile phone needs frequent brush face unlock, the power-on time of battery of mobile phone is made to be typically not greater than one
It.Because battery of mobile phone power-on time is shorter, it is therefore desirable to continually to charging mobile phone battery, and the frequent charge and discharge of battery
The standby time and service life of battery can be reduced.
In conclusion existing mobile phone is due to needing frequent brush face unlock to reduce the power-on time of battery of mobile phone.
Summary of the invention
The embodiment of the invention provides a kind of mobile phone power-saving method, device, equipment and storage mediums, solve the prior art
Mobile phone due to the technical issues of needing the unlock of frequent brush face to reduce the power-on time of battery of mobile phone, with extending cell phone battery
Power-on time.
In a first aspect, the embodiment of the invention provides a kind of mobile phone power-saving methods, comprising:
It is in and is gone out under the non-screen locking pattern of screen and smart lock starting state in mobile phone, obtained by sensor for analyzing
Mobile phone is presently in the analysis data of state;
If determining that mobile phone is currently at first state according to the analysis data, mobile phone is made to be maintained at the non-screen locking of screen of going out
Mode, wherein without passing through authentication when the mobile phone under the non-screen locking pattern of screen that goes out enters operating mode.
Further, the analysis data include that the distance parameter obtained by range sensor and gravity sensor obtain
Mobile phone x-axis, y-axis and z-axis location variation, if described determine that mobile phone is currently at first according to the analysis data
State, comprising:
If range sensor distance parameter collected is greater than 2cm, while x-axis acquired in gravity sensor and y-axis
Location variation be all larger than 1, and the location variation of z-axis is less than 9.5, it is determined that mobile phone is in first state.
Further, described be in mobile phone is gone out under the non-screen locking pattern of screen and smart lock starting state, is obtained by sensor
It takes after analysis mobile phone is presently in the analysis data of state, further includes:
If determining that mobile phone is currently at the second state according to the analysis data, mobile phone is made to enter screen locking pattern,
In, the mobile phone under screen locking pattern needs to pass through authentication when entering operating mode.
Further, the analysis data include the distance parameter obtained by range sensor and are obtained by gravity sensor
Mobile phone x-axis, y-axis and z-axis location variation, if described determine that mobile phone is currently at the second shape according to the analysis data
State, comprising:
If distance parameter acquired in range sensor is less than 2cm or distance parameter is greater than 2cm, while gravity passes
For the location variation of z-axis acquired in sensor between 9.5-9.8, the location variation of x-axis and the location variation of y-axis are small
In 1, and when holding 20s, it is determined that mobile phone is in the second state.
Further, the mobile phone under the screen locking pattern needs to pass through authentication when entering operating mode, comprising:
Mobile phone under screen locking pattern needs to verify identity by brush face when entering operating mode.
Further, the brush face verifying identity includes:
The current face-image of user is obtained by camera;
Face-image when by current face-image and registration carries out face alignment;
If face alignment success, passes through authentication;
If face alignment fails, not over authentication.
Further, it goes out under the non-screen locking pattern of screen and smart lock starting state in described be in mobile phone, passes through sensor
Acquisition is presently in front of the analysis data of state for analyzing mobile phone, further includes:
Economize on electricity instruction from the user is obtained, and automatic starting smart lock is indicated according to the economize on electricity.
Second aspect, the embodiment of the invention also provides a kind of unlocked by mobile telephone devices, comprising:
Data acquisition module is analyzed, goes out under the non-screen locking pattern of screen and smart lock starting state, leads to for being in mobile phone
It crosses sensor and obtains the analysis data for being presently in state for analyzing mobile phone;
First state module, if making hand for determining that mobile phone is currently at first state according to the analysis data
Machine is maintained at the non-screen locking pattern of screen of going out, wherein without passing through identity when the mobile phone under the non-screen locking pattern of screen that goes out enters operating mode
Verifying.
The third aspect, the embodiment of the invention also provides a kind of cell phone apparatus, the cell phone apparatus includes:
One or more processors;
Storage device, for storing one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processing
Device realizes mobile phone power-saving method as described in relation to the first aspect.
Fourth aspect, the embodiment of the invention also provides a kind of cell phone apparatus, the cell phone apparatus includes:
One or more processors;
Storage device, for storing one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processing
Device realizes mobile phone power-saving method as described in relation to the first aspect.
The technical solution of mobile phone power-saving method provided in an embodiment of the present invention is included in mobile phone and is in the non-screen locking mould of screen that goes out
Under formula and smart lock starting state, the analysis data for being presently in state for analyzing mobile phone are obtained by sensor;If
It determines that mobile phone is currently at first state according to analysis data, then mobile phone is made to be maintained at the non-screen locking pattern of screen of going out, wherein go out screen not
Without passing through authentication when mobile phone under screen locking pattern enters operating mode.Hand is determined by the analysis data that sensor obtains
Machine is presently in state, and when mobile phone is in first state, illustrates that mobile phone is in high frequency use state, protect mobile phone at this time
It holds in the non-screen locking pattern of screen of going out, screen only need to be lighted by power key in this way so that mobile phone is entered operating mode, without passing through
Brush face is unlocked, so that the frequency unlocked by reducing brush face, reduces the power consumption of mobile phone, thus when the power supply of extending cell phone battery
Between.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing does one and simply introduces, it should be apparent that, drawings in the following description are some embodiments of the invention, for this
For the those of ordinary skill of field, without creative efforts, it can also be obtained according to these attached drawings others
Attached drawing.
Fig. 1 is the flow chart for the mobile phone power-saving method that the embodiment of the present invention one provides;
Fig. 2 is the flow chart of mobile phone power-saving method provided by Embodiment 2 of the present invention;
Fig. 3 is the flow chart for the mobile phone power-saving device that the embodiment of the present invention three provides;
Fig. 4 is the structural schematic diagram for the cell phone apparatus that the embodiment of the present invention four provides.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, hereinafter with reference to attached in the embodiment of the present invention
Figure, clearly and completely describes technical solution of the present invention by embodiment, it is clear that described embodiment is the present invention one
Section Example, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not doing
Every other embodiment obtained under the premise of creative work out, shall fall within the protection scope of the present invention.
Embodiment one
Fig. 1 is the flow chart for the mobile phone power-saving method that the embodiment of the present invention one provides.The technical solution of the present embodiment is applicable in
In by reducing the case where mobile phone is shut, unlocking frequency is to reduce mobile phone electricity consumption.This method can be provided by the embodiment of the present invention
Mobile phone power-saving device execute, which can be realized by the way of software and/or hardware, and is configured and answered in the processor
With.This method specifically comprises the following steps:
S101, it is in and is gone out under the non-screen locking pattern of screen and smart lock starting state in mobile phone, be used for by sensor acquisition
Analysis mobile phone is presently in the analysis data of state.
In the case where battery of mobile phone power supply volume is certain, to extend the power-on time of battery, then need to reduce the consumption of mobile phone
Electricity, and to reduce mobile phone power consumption amount and then need to optimize mobile phone application, it is contemplated that many existing mobile phones usually require to consume by height
The brush face of electricity is unlocked, and the present embodiment shuts to reduce mobile phone brush face unlocking frequency by optimization mobile phone, and then reduces mobile phone power consumption
Amount, extends the power-on time of battery.
Wherein, smart lock usually requires user and is manually arranged in the setting of mobile phone, uses to improve mobile phone
Convenience, the present embodiment can also obtain the economize on electricity instruction of user, then indicate automatic starting smart lock according to economize on electricity, and economize on electricity
Instruction can be obtained directly by voice, for example, user can say energy-saving mode against mobile phone, then mobile phone starts intelligence automatically
Lock.If smart lock is in unlocking condition, flag bit 1, if smart lock is in the state that shuts, flag bit 0, because
This present embodiment can judge its state by detecting the flag bit of smart lock, if mobile phone is in the non-screen locking pattern of screen of going out,
And smart lock flag bit is 1, then can obtain the analysis data for being presently in state for analyzing mobile phone by sensor.Analyze number
According to include by range sensor obtain mobile phone distance parameter and by gravity sensor acquisition mobile phone on solid axes
Location variation, wherein location variation be preset time in, the position difference of later moment in time and previous moment.
It is understood that the frequency of use of mobile phone is usually higher, and works as mobile phone when mobile phone is located in user hand
When on pocket, packet or desk, the frequency of use of mobile phone is usually lower.Therefore, in order to make mobile phone reduce brush face unlock
The normal use of mobile phone is not influenced while frequency, it is to be located to use that the present embodiment, which first passes through Such analysis data and determines mobile phone currently,
In the hand of family, i.e., in the first state using high frequency, or it is located on pocket, packet or desktop, that is, is in second using low frequency
State determines handset mode further according to mobile phone status.
Wherein, distance parameter is commonly used in expression the distance between mobile phone and surrounding objects, it is to be understood that if away from
It is sufficiently small from parameter, then mobile phone is typically situated in pocket, or it is located in packet, the frequency of use of mobile phone is usually lower at this time.
If S102, according to analysis data determine that mobile phone is currently at first state, make mobile phone be maintained at go out shield it is unlocked
Screen mode, wherein without passing through authentication when the mobile phone under the non-screen locking pattern of screen that goes out enters operating mode.
In order to reduce mobile phone screen power consumption and prevent information leakage, while mobile phone normal use is not influenced, if distance
Sensor distance parameter collected is greater than 2cm, while the location variation of x-axis acquired in gravity sensor and y-axis is big
In 1, and the location variation of z-axis is less than 9.5, it is determined that mobile phone is located in user hand, i.e., mobile phone is in first using high frequency
State makes mobile phone be maintained at the non-screen locking pattern of screen of going out at this time.When mobile phone enters operating mode by the non-screen locking pattern of screen of going out, need to only lead to
It crosses power key and lights mobile phone screen, without passing through authentication, so that the frequency that mobile phone is shut and brush face is unlocked is reduced,
And then it reduces battery power consumption and extends service time of battery.
The technical solution of mobile phone power-saving method provided in this embodiment is included in mobile phone and is in the non-screen locking pattern of screen of going out, with
And under smart lock starting state, the analysis data for being presently in state for analyzing mobile phone are obtained by sensor;If according to
Analysis data determine that mobile phone is currently at first state, then mobile phone is made to be maintained at the non-screen locking pattern of screen of going out, wherein the non-screen locking of screen of going out
Without passing through authentication when mobile phone under mode enters operating mode.Determine that mobile phone is worked as by the analysis data that sensor obtains
Preceding status, and when mobile phone is in first state, illustrate that mobile phone is in high frequency use state, is maintained at mobile phone at this time
It goes out and shields non-screen locking pattern, only need to light screen by power key in this way can make mobile phone enter operating mode, without passing through brush face
It unlocks, so that the frequency unlocked by reducing brush face, reduces the power consumption of mobile phone, thus the power-on time of extending cell phone battery.
Embodiment two
Fig. 2 is the flow chart of mobile phone power-saving method provided by Embodiment 2 of the present invention.The embodiment of the present invention is in above-mentioned implementation
On the basis of example, determining the second state of mobile phone, and the step of screen locking is carried out to the state mobile phone are increased, comprising:
S201, it is in and is gone out under the non-screen locking pattern of screen and smart lock starting state in mobile phone, be used for by sensor acquisition
Analysis mobile phone is presently in the analysis data of state.
If S202, according to analysis data determine that mobile phone is currently at first state, make mobile phone be maintained at go out shield it is unlocked
Screen mode, wherein without passing through authentication when the mobile phone under the non-screen locking pattern of screen that goes out enters operating mode.
If S203, determining that mobile phone is currently at the second state according to analysis data, mobile phone is made to enter screen locking pattern,
In, the mobile phone under screen locking pattern needs to pass through authentication when entering operating mode.
By previous embodiment it is found that when mobile phone frequency of use is lower, usually it is located at pocket, packet or desktop equipotential
It sets, and works as it and be located at the positions such as desktop, be easy to be touched by other people, therefore, in order to improve the safety of mobile phone, the present embodiment
To in the mobile phone progress screen locking used compared with low state, comprising: if determining that mobile phone is currently at the second shape according to analysis data
State then makes mobile phone enter screen locking pattern, wherein the mobile phone under screen locking pattern needs to test by identity when entering operating mode
Card.
Specifically, if distance parameter acquired in range sensor is less than 2cm, it is determined that mobile phone is located at pocket or packet
In, i.e., mobile phone is in the second state using low frequency, if distance parameter is greater than 2cm, while z-axis acquired in gravity sensor
Location variation between 9.5-9.8, the location variation of x-axis and the location variation of y-axis are respectively less than 1, and keep 20s
When, it is determined that mobile phone is located at the places such as desktop, i.e. mobile phone is in the second state using low frequency, when judgement mobile phone is in the second shape
When state, then mobile phone is set to enter screen locking pattern, to guarantee the safety of cellphone information.When mobile phone is in screen locking pattern, if mobile phone
To enter operating mode, need to first pass through power key and light screen, operating mode just then can enter by authentication.It needs
Illustrate, the distance parameter and location variation of the present embodiment are preferably but not limited to above range.
Wherein, authentication mode can be Password Authentication or brush face verifying identity, it is to be understood that if body
Part verification mode is that brush face verifies identity, and the power savings of the embodiment of the present invention become apparent from.
Wherein, brush face verifying identity includes: to obtain the current face-image of user by camera;By current face figure
Face-image when picture and registration carries out face alignment;If face alignment success, by authentication, into the work of mobile phone
Operation mode,;If face alignment fails, not over authentication, the operating mode of mobile phone not can enter.Wherein, face
Before comparison, preview first is carried out to photo collected, recognition of face is carried out to photo collected, judges photo collected
Whether have face, sequentially by the photo for having face and registration when photo carry out face alignment.Under normal conditions, phase chance is primary
Property 16 or so images of acquisition, if acquired image all without face, face comparison failure, mobile phone can automatically whether
Camera resource needs to re-start brush face authentication at this time if also wanting to continue to unlock.
The technical solution of mobile phone power-saving method provided in this embodiment first determines whether mobile phone is located at second using low frequency
State just carries out screen locking to it if it is in the second state, and since the frequency of use of mobile phone at this time is lower, user's brush face is unlocked
Frequency it is lower, therefore power consumption of the battery in terms of brush face power supply is less, therefore can be the case where guaranteeing mobile phone smaller power consumption
Under, improve the safety of mobile phone.
Embodiment three
Fig. 4 is the structural block diagram for the mobile phone power-saving device that the embodiment of the present invention three provides.The device is for executing above-mentioned
Mobile phone power-saving method provided by embodiment of anticipating, the device are chosen as software or hardware realization.The device includes:
Data acquisition module 11 is analyzed, is gone out under the non-screen locking pattern of screen and smart lock starting state for being in mobile phone,
The analysis data for being presently in state for analyzing mobile phone are obtained by sensor;
First state module 12, if made for determining that mobile phone is currently at first state according to the analysis data
Mobile phone is maintained at the non-screen locking pattern of screen of going out, wherein without passing through body when the mobile phone under the non-screen locking pattern of screen that goes out enters operating mode
Part verifying.
Preferably, the present embodiment further includes the second block of state 13, if the second block of state 13 is used for according to analysis number
It is currently at the second state according to determining mobile phone, then so that mobile phone is entered screen locking pattern, wherein the mobile phone under screen locking pattern is entering work
It needs to pass through authentication when operation mode.
The technical solution of mobile phone power-saving device provided in this embodiment, comprising: analysis data acquisition module is used in mobile phone
Under the go out non-screen locking pattern of screen and smart lock starting state, is obtained by sensor and be presently in shape for analyzing mobile phone
The analysis data of state;If first state module is used to determine that mobile phone is currently at first state according to analysis data, make hand
Machine is maintained at the non-screen locking pattern of screen of going out, wherein without passing through identity when the mobile phone under the non-screen locking pattern of screen that goes out enters operating mode
Verifying.It determines that mobile phone is presently in state by the analysis data that sensor obtains, and when mobile phone is in first state, says
Bright mobile phone is in high frequency use state, so that mobile phone is maintained at the non-screen locking pattern of screen of going out at this time, need to only be lighted in this way by power key
Screen can make mobile phone enter operating mode, without being unlocked by brush face, so that the frequency unlocked by reducing brush face, reduces hand
The power consumption of machine, thus the power-on time of extending cell phone battery.
Mobile phone section provided by any embodiment of the invention can be performed in mobile phone power-saving device provided by the embodiment of the present invention
Method for electrically has the corresponding functional module of execution method and beneficial effect.
Example IV
Fig. 4 is the structural schematic diagram for the cell phone apparatus that the embodiment of the present invention four provides, as shown in figure 4, the cell phone apparatus packet
Include processor 101, memory 102, input unit 103 and output device 104;The quantity of processor 101 can in cell phone apparatus
Be it is one or more, in Fig. 4 by taking a processor 101 as an example;Processor 101, memory 102, input in cell phone apparatus
Device 103 and output device 104 can be connected by bus or other modes, in Fig. 4 for being connected by bus.
Memory 102 is used as a kind of computer readable storage medium, can be used for storing software program, journey can be performed in computer
Sequence and module, if the corresponding program instruction/module of the mobile phone power-saving method in the embodiment of the present invention is (for example, analysis data obtain
Modulus block 11 and first state module 12).Processor 101 by operation storage software program in the memory 102, instruction with
And module realizes above-mentioned mobile phone power-saving method thereby executing the various function application and data processing of equipment.
Memory 102 can mainly include storing program area and storage data area, wherein storing program area can store operation system
Application program needed for system, at least one function;Storage data area, which can be stored, uses created data etc. according to terminal.This
Outside, memory 102 may include high-speed random access memory, can also include nonvolatile memory, for example, at least one
Disk memory, flush memory device or other non-volatile solid state memory parts.In some instances, memory 102 can be into one
Step includes the memory remotely located relative to processor 101, these remote memories can pass through network connection to equipment.On
The example for stating network includes but is not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
Input unit 103 can be used for receiving the number or character information of input, and generate with the user setting of equipment with
And the related key signals input of function control.
Output device 104 may include that display screen etc. shows equipment, for example, the display screen of user terminal.
Embodiment five
The embodiment of the present invention five additionally provides a kind of storage medium comprising computer executable instructions, and the computer can
It executes instruction when being executed by computer processor for executing a kind of mobile phone power-saving method, this method is applied to access control system
Baffle Box of Bluetooth, and access control system includes gate inhibition's host, indoor unit and Baffle Box of Bluetooth, comprising:
It is in and is gone out under the non-screen locking pattern of screen and smart lock starting state in mobile phone, obtained by sensor for analyzing
Mobile phone is presently in the analysis data of state;
If determining that mobile phone is currently at first state according to the analysis data, mobile phone is made to be maintained at the non-screen locking of screen of going out
Mode, wherein without passing through authentication when the mobile phone under the non-screen locking pattern of screen that goes out enters operating mode.
Certainly, a kind of storage medium comprising computer executable instructions, computer provided by the embodiment of the present invention
The method operation that executable instruction is not limited to the described above, can also be performed mobile phone power-saving provided by any embodiment of the invention
Relevant operation in method.
By the description above with respect to embodiment, it is apparent to those skilled in the art that, the present invention
It can be realized by software and required common hardware, naturally it is also possible to which by hardware realization, but in many cases, the former is more
Good embodiment.Based on this understanding, technical solution of the present invention substantially in other words contributes to the prior art
Part can be embodied in the form of software products, which can store in computer readable storage medium
In, floppy disk, read-only memory (Read-Only Memory, abbreviation ROM), random access memory (Random such as computer
Access Memory, abbreviation RAM), flash memory (FLASH), hard disk or CD etc., including some instructions are used so that a calculating
Machine equipment (can be personal computer, server or the network equipment etc.) executes mobile phone described in each embodiment of the present invention
Power-saving method.
It is worth noting that, included each unit and module are only pressed in the embodiment of above-mentioned mobile phone power-saving device
It is divided, but is not limited to the above division according to function logic, as long as corresponding functions can be realized;In addition,
The specific name of each functional unit is also only for convenience of distinguishing each other, the protection scope being not intended to restrict the invention.
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that
The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation,
It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention
It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also
It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.