CN107831885B - Doze mode switching method and device, mobile terminal and readable storage medium - Google Patents

Doze mode switching method and device, mobile terminal and readable storage medium Download PDF

Info

Publication number
CN107831885B
CN107831885B CN201711018697.5A CN201711018697A CN107831885B CN 107831885 B CN107831885 B CN 107831885B CN 201711018697 A CN201711018697 A CN 201711018697A CN 107831885 B CN107831885 B CN 107831885B
Authority
CN
China
Prior art keywords
mobile terminal
state
gps
screen
doze mode
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.)
Active
Application number
CN201711018697.5A
Other languages
Chinese (zh)
Other versions
CN107831885A (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.)
Oneplus Technology Shenzhen Co Ltd
Original Assignee
Oneplus Technology Shenzhen Co 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 Oneplus Technology Shenzhen Co Ltd filed Critical Oneplus Technology Shenzhen Co Ltd
Priority to CN201711018697.5A priority Critical patent/CN107831885B/en
Publication of CN107831885A publication Critical patent/CN107831885A/en
Application granted granted Critical
Publication of CN107831885B publication Critical patent/CN107831885B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • G06F1/3215Monitoring of peripheral devices
    • 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/0251Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity
    • 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
    • H04W52/0264Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by selectively disabling software applications
    • 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

Abstract

The invention provides a Doze mode switching method, a Doze mode switching device, a mobile terminal and a readable storage medium. The method is applied to the mobile terminal, the Doze mode switching method can acquire the GPS state of the mobile terminal within a preset time before the current moment by checking the current screen state of the mobile terminal and when the current screen state is a screen-off state, and control the mobile terminal to switch to the Doze mode when the GPS state is a no-star state. Compared with the prior art, the method has the advantages that the time consumption for switching from the normal mode to the Doze mode is very short, the mobile terminal can quickly enter the Doze mode, and the purpose of energy-saving cruising is achieved.

Description

Doze mode switching method and device, mobile terminal and readable storage medium
Technical Field
The invention relates to the technical field of energy-saving endurance of mobile terminals, in particular to a method and a device for switching a Doze mode, a mobile terminal and a readable storage medium.
Background
The Doze mode is a power saving mode of the Android, and the mobile terminal turns off a gps (global Positioning system) Positioning function in the Doze mode and disconnects communication with the third-party server, so that the mobile terminal does not need to receive push information sent by the third-party server in the Doze mode.
In general, the mobile terminal will switch the Doze mode only if certain conditions are met. The mobile terminal cannot adjust the mode of specific Doze mode switching according to specific conditions, so that the judgment mode of the Doze mode switching of the mobile terminal is too mechanical, meanwhile, the time consumption of the judgment process of the Doze mode switching is long, the process of the Doze mode switching of the mobile terminal is slow, and the energy conservation of the mobile terminal cannot be well realized.
Disclosure of Invention
In order to overcome the above-mentioned deficiencies in the prior art, the present invention provides a method, an apparatus, a mobile terminal and a readable storage medium for Doze mode switching.
As for the Doze mode switching method, a preferred embodiment of the present invention provides a Doze mode switching method, which is applied to a mobile terminal, and the method includes:
detecting the current screen state of the mobile terminal;
when the current screen state is the screen-off state, acquiring the GPS state of the mobile terminal within a preset time before the current moment;
and when the GPS state of the mobile terminal is in a starless state within a preset time before the current time is acquired, controlling the mobile terminal to be switched to the Doze mode.
As for the Doze mode switching device, a preferred embodiment of the present invention provides a Doze mode switching device applied to a mobile terminal, the device including:
the detection module is used for detecting the current screen state of the mobile terminal;
the acquisition module is used for acquiring the GPS state of the mobile terminal within a preset time before the current moment when the current screen state is the screen-off state;
and the control module is used for controlling the mobile terminal to be switched to the Doze mode when the GPS state of the mobile terminal is in the star-free state within a preset time before the current time is acquired.
In terms of a mobile terminal, a preferred embodiment of the present invention provides a mobile terminal. The mobile terminal includes:
a memory;
a processor; and
a Doze mode switching apparatus installed in the memory and including one or more software functional modules executed by the processor, the apparatus comprising:
the detection module is used for detecting the current screen state of the mobile terminal;
the acquisition module is used for acquiring the GPS state of the mobile terminal within a preset time before the current moment when the current screen state is the screen-off state;
and the control module is used for controlling the mobile terminal to be switched to the Doze mode when the GPS state of the mobile terminal is in the star-free state within a preset time before the current time is acquired. In terms of readable storage media, a preferred embodiment of the present invention provides a readable storage medium, which includes a computer program, and the computer program controls a mobile terminal where the readable storage medium is located to execute the Doze mode switching method described above when running.
Compared with the prior art, the Doze mode switching method, the Doze mode switching device, the mobile terminal and the readable storage medium provided by the preferred embodiment of the present invention have the following beneficial effects: the Doze mode switching method can acquire the GPS state of the mobile terminal within a preset time before the current moment by checking the current screen state of the mobile terminal and when the current screen state is a screen-off state, and control the mobile terminal to switch to the Doze mode when the GPS state is a no-star state. Compared with the prior art, the method has the advantages that the time consumption for switching from the normal mode to the Doze mode is very short, the mobile terminal can quickly enter the Doze mode, and the purpose of energy-saving cruising is achieved.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments are briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention, and therefore should not be considered as limiting the scope of the claims of the present invention, and it is obvious for those skilled in the art that other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a block diagram of a mobile terminal according to a preferred embodiment of the present invention.
Fig. 2 is a flowchart illustrating a Doze mode switching method according to a preferred embodiment of the present invention.
Fig. 3 is a second flowchart of the Doze mode switching method according to the preferred embodiment of the present invention.
Fig. 4 is a third schematic flow chart of the Doze mode switching method according to the preferred embodiment of the present invention.
Fig. 5 is a block diagram of the Doze mode switching device shown in fig. 1 according to a preferred embodiment of the present invention.
Fig. 6 is another block diagram of the Doze mode switching device shown in fig. 1 according to a preferred embodiment of the present invention.
Icon: 10-a mobile terminal; 11-a memory; 12-a processor; 13-a communication unit; 100-Doze mode switching means; 110-a detection module; 120-an acquisition module; 130-a control module; 140-monitoring module.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
Some embodiments of the invention are described in detail below with reference to the accompanying drawings. The embodiments described below and the features of the embodiments can be combined with each other without conflict.
Fig. 1 is a block diagram of a mobile terminal 10 according to a preferred embodiment of the present invention. In this embodiment, the mobile terminal 10 may be, but is not limited to, a smart phone, a Personal Computer (PC), a tablet PC, a Personal Digital Assistant (PDA), a Mobile Internet Device (MID), and the like. In one implementation of the present embodiment, the mobile terminal 10 is preferably a smart phone.
In this embodiment, the mobile terminal 10 includes a Doze mode switching device 100, a memory 11, a processor 12 and a communication unit 13. The memory 11, the processor 12 and the communication unit 13 are electrically connected to each other directly or indirectly to realize data transmission or interaction. For example, the components may be electrically connected to each other via one or more communication buses or signal lines.
Wherein the memory 11 is operable to store a GPS status of the mobile terminal 10, wherein the GPS status includes a no-star status and a star status. The Memory 11 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read Only Memory (EPROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), and the like. In this embodiment, the memory 11 may further store a program, and the processor 12 may execute the program accordingly after receiving the execution instruction.
The processor 12 may be an integrated circuit chip having signal processing capabilities. The Processor 12 may be a general-purpose Processor including a Central Processing Unit (CPU), a Network Processor (NP), and the like. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The communication unit 13 is configured to establish a communication connection between the mobile terminal 10 and other external devices (e.g., GPS satellites, other terminals) through a network, and to transmit and receive data through the network.
The Doze mode switching apparatus 100 includes at least one software function module capable of being stored in the memory 11 in the form of software or firmware or being solidified in an operating system of the mobile terminal 10. The processor 12 may be used to execute executable modules stored by the memory 11, such as software functional modules and computer programs included by the Doze mode switching device 100. In this embodiment, the Doze mode switching apparatus 100 may adjust the energy saving state of the mobile terminal 10 by monitoring the current screen state of the mobile terminal 10 and the GPS state of the mobile terminal within a preset time.
It should be understood that the block diagram shown in fig. 1 is merely a schematic representation of one configuration of the mobile terminal 10, and that the mobile terminal 10 may include more or fewer components than shown in fig. 1, or may have a different configuration than shown in fig. 1. The components shown in fig. 1 may be implemented in hardware, software, or a combination thereof.
The inventor finds that: the Android native system may enter the Doze mode after the screen is extinguished, and before the Doze mode is entered, a determination of a specific condition is required, for example, whether the mobile terminal 10 is currently using a GPS is determined, and this determination process generally lasts for about half an hour, and the Doze mode is entered when it is determined that the position of the mobile terminal 10 is not changed, and the mobile terminal 10 turns off the GPS positioning function to save energy after entering the Doze mode. In the prior art, the above judgment is carried out by comparing consumed energy.
However, the inventor has found that, in a case where the user does not use the GPS by default, for example, the mobile terminal 10 is in an environment (e.g., indoors) where the GPS positioning function cannot be used, or the Doze mode is entered in the above manner, a large power consumption is caused, which is not favorable for the endurance of the mobile terminal 10. In view of this, the embodiment of the present invention provides a technical solution that can quickly enable the mobile terminal 10 to enter the Doze mode when the user defaults not to use the GPS, and specific solutions are described in detail as follows.
Fig. 2 is a schematic flow chart of a Doze mode switching method according to a preferred embodiment of the present invention. In the embodiment of the present invention, the Doze mode switching method is applied to the mobile terminal 10. The specific flow and steps of the Doze mode switching method shown in fig. 2 are described in detail below.
In this embodiment of the present invention, the Doze mode switching method includes the following steps:
step S210, detecting a current screen state of the mobile terminal 10, and determining whether the current screen state is a screen-off state.
In the present embodiment, the screen state includes a screen-off state and a screen-on state.
In an implementation manner of this embodiment, the manner of detecting the current screen state of the mobile terminal 10 may be to determine by detecting an on state of a backlight in a display module. When the backlight source in the display module is detected to be closed, judging that the screen state is a screen-off state; and when the backlight source in the display module is detected to be opened, judging that the screen state is a bright screen state.
In another implementation of this embodiment, the current screen state of the mobile terminal 10 may be detected by detecting the brightness of the screen. When the detected brightness of the screen is lower than a preset brightness threshold value, judging that the screen state is a screen-off state; and when the detected brightness of the screen is greater than a preset brightness threshold value, judging that the screen state is a bright screen state.
It is understood that, in other embodiments of this embodiment, the screen state may be determined in other manners, and details are not described herein again.
Step S220, when the detected current screen state is the screen-off state, acquiring the GPS state of the mobile terminal 10 within a preset time before the current time.
In this embodiment, referring to fig. 3, before step S220, the method further includes:
step S209, the GPS state of the mobile terminal 10 is monitored, and the monitored GPS state is stored.
The mobile terminal 10 may monitor the GPS status in real time and store the monitored GPS status. The GPS state comprises a no-star state and a star state. The no-star state means that the mobile terminal 10 cannot search for a GPS satellite, and the star state means that the mobile terminal 10 can search for a GPS satellite.
In this embodiment, the monitoring of the GPS status of the mobile terminal 10 in step S209 may be as follows:
monitoring the GPS data received by the mobile terminal 10, and judging that the mobile terminal 10 is in a star-free state when the GPS data is not received; when the GPS data is received, it is determined that the mobile terminal 10 is in the star state.
Referring to fig. 4, in the present embodiment, the step S220 may include a sub-step S221 and a sub-step S222.
Sub-step S221, detecting whether the mobile terminal 10 is currently in Doze mode.
In the sub-step S222, when it is detected that the mobile terminal 10 is not in the Doze mode currently, the GPS status of the mobile terminal 10 in a preset time before the current time is obtained.
The GPS state acquisition of the mobile terminal 10 within a preset time is realized by searching for the historical GPS state stored in the mobile terminal 10. Wherein, the preset time period can be set to be 1 minute, 2 minutes or 5 minutes, etc. In this embodiment, the user may set the preset time according to his/her preference.
When detecting that the GPS state of the mobile terminal 10 is a star-free state within a preset time before the current time, the method proceeds to step S230; otherwise, the flow ends.
In the present embodiment, the GPS state of the mobile terminal 10 may not be completely the no-star state or the star state within the preset time. When the GPS state of the mobile terminal 10 includes both the satellite state and the satellite-free state within the preset time, defaulting the GPS state of the mobile terminal 10 within the preset time to the satellite state.
Step S230, controlling the mobile terminal 10 to switch to the Doze mode.
In this embodiment, when the GPS state of the mobile terminal 10 is a star-free state within a preset time before the current time is met, the Doze mode is entered.
In the judging process, only whether the GPS state of the mobile terminal 10 is in the star-free state within the preset time needs to be judged, the time consumed in the judging process is short, compared with the judgment of half an hour in the prior art, the time for entering the Doze mode can be greatly reduced, and the energy conservation and the cruise increasing capability are realized.
Referring to fig. 4, in the present embodiment, after step S230, the method may further include step S240.
Step S240, when it is detected that the current screen state of the mobile terminal is changed from the screen-off state to the screen-on state, controlling the mobile terminal to exit from the Doze mode.
Referring to fig. 5, a block diagram of the Doze mode switching device 100 shown in fig. 1 according to a preferred embodiment of the present invention is provided. In this embodiment of the present invention, the Doze mode switching apparatus 100 is applied to the mobile terminal 10, and the Doze mode switching apparatus 100 may include: a detection module 110, an acquisition module 120, and a control module 130.
The detecting module 110 is configured to detect a current screen state of the mobile terminal 10.
In the present embodiment, the screen state includes a screen-off state and a screen-on state.
In an implementation manner of this embodiment, the detection module 110 may detect the current screen state of the mobile terminal 10 by detecting an on state of a backlight in a display module. When the backlight source in the display module is detected to be closed, judging that the screen state is a screen-off state; and when the backlight source in the display module is detected to be opened, judging that the screen state is a bright screen state.
In another implementation manner of this embodiment, the detection module 110 may detect the current screen state of the mobile terminal 10 by detecting the brightness of the screen. When the detected brightness of the screen is lower than a preset brightness threshold value, judging that the screen state is a screen-off state; and when the detected brightness of the screen is greater than a preset brightness threshold value, judging that the screen state is a bright screen state.
It is understood that, in other embodiments of this embodiment, the detection module 110 may also determine the screen state in other manners, and thus, the details are not repeated here.
In this embodiment, the detecting module 110 may execute step S210 in fig. 2, and the detailed description may refer to the above detailed description of step S210.
The acquiring module 120 is configured to acquire the GPS state of the mobile terminal 10 within a preset time before the current time when the current screen state is the screen-off state.
The manner for the acquiring module 120 to acquire the GPS state of the mobile terminal 10 within a preset time before the current time includes:
detecting whether the mobile terminal 10 is currently in the Doze mode;
when the mobile terminal 10 is not in the Doze mode currently, the GPS state of the mobile terminal 10 within a preset time before the current time is acquired.
In this embodiment, the obtaining module 120 may execute step S220 in fig. 2, and the specific description may refer to the above detailed description of step S220.
The control module 130 is configured to control the mobile terminal to switch to the Doze mode when the GPS state of the mobile terminal is in a star-free state within a preset time before the current time is obtained.
The control module 130 is further configured to control the mobile terminal to exit from the Doze mode when it is detected that the current screen state of the mobile terminal is changed from the off-screen state to the on-screen state.
In this embodiment, the control module 130 may execute step S230 and step S240 in fig. 2, and the detailed description may refer to the above detailed description of step S230 and step S240.
Referring to fig. 6, in the present embodiment, the Doze mode switching apparatus 100 further includes a monitoring module 140.
The monitoring module 140 is configured to monitor a GPS state of the mobile terminal and store the monitored GPS state.
In this embodiment, the monitoring module 140 may monitor the GPS status of the mobile terminal 10 by:
monitoring whether the mobile terminal 10 receives the GPS data, judging that the mobile terminal 10 is in a star-free state when the GPS data is not received, and judging that the mobile terminal 10 is in a star state when the GPS data is received.
In this embodiment, the monitoring module 140 may execute step S209 in fig. 2, and the detailed description may refer to the above detailed description of step S209.
The above-described functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In summary, preferred embodiments of the present invention provide a method, an apparatus, a mobile terminal and a readable storage medium for Doze mode switching. The method comprises the steps of checking the current screen state of the mobile terminal, obtaining the GPS state of the mobile terminal within a preset time before the current moment when the current screen state is a screen-off state, and controlling the mobile terminal to be switched to a Doze mode when the GPS state is a star-free state. Compared with the prior art, the method has the advantages that the time consumption for switching from the normal mode to the Doze mode is very short, the mobile terminal can quickly enter the Doze mode, and the purpose of energy-saving cruising is achieved.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (12)

1. A Doze mode switching method applied to a mobile terminal, the method comprising:
detecting the current screen state of the mobile terminal;
when the current screen state is the screen-off state, acquiring the GPS state of the mobile terminal within a preset time before the current moment;
and when the GPS state of the mobile terminal is a star-free state within a preset time before the current time is acquired, controlling the mobile terminal to switch to a Doze mode, wherein the star-free state is used for indicating that the mobile terminal does not receive GPS data.
2. The method of claim 1, wherein the step of acquiring the GPS status of the mobile terminal within a preset time before the current time when the current screen status is the off-screen status comprises:
when the current screen state is the screen-off state, detecting whether the mobile terminal is in a Doze mode currently;
and when the mobile terminal is not in the Doze mode at present, acquiring the GPS state of the mobile terminal within a preset time before the present moment.
3. The method of claim 1, wherein before the step of obtaining the GPS status of the mobile terminal within a preset time before the current time, the method further comprises:
and monitoring the GPS state of the mobile terminal, and storing the monitored GPS state.
4. The method of claim 3, wherein the monitoring of the GPS status of the mobile terminal comprises:
and monitoring the GPS data received by the mobile terminal, judging that the mobile terminal is in a star-free state when the GPS data is not received, and judging that the mobile terminal is in a star-containing state when the GPS data is received.
5. The method of claim 1, wherein when the mobile terminal is in Doze mode, the method further comprises:
and when detecting that the current screen state of the mobile terminal is changed from the screen-off state to the screen-on state, controlling the mobile terminal to exit from the Doze mode.
6. A Doze mode switching apparatus applied to a mobile terminal, the apparatus comprising:
the detection module is used for detecting the current screen state of the mobile terminal;
the acquisition module is used for acquiring the GPS state of the mobile terminal within a preset time before the current moment when the current screen state is the screen-off state;
the control module is configured to control the mobile terminal to switch to the Doze mode when the GPS state of the mobile terminal is in a starless state within a preset time before the current time is obtained, where the starless state is used to indicate that the mobile terminal does not receive GPS data.
7. The apparatus of claim 6, wherein the method for the obtaining module to obtain the GPS status of the mobile terminal within a preset time before the current time when the current screen status is the off-screen status comprises:
when the current screen state is the screen-off state, detecting whether the mobile terminal is in a Doze mode currently;
and when the mobile terminal is not in the Doze mode currently, acquiring the GPS state of the mobile terminal within a preset time before the current time.
8. The apparatus of claim 6, wherein the apparatus further comprises:
and the monitoring module is used for monitoring the GPS state of the mobile terminal and storing the monitored GPS state.
9. The apparatus of claim 8, wherein the monitoring module monitors the GPS status of the mobile terminal by:
and monitoring whether the mobile terminal receives the GPS data, judging that the mobile terminal is in a star-free state when the GPS data is not received, and judging that the mobile terminal is in a star-containing state when the GPS data is received.
10. The apparatus of claim 6, wherein:
the control module is further configured to control the mobile terminal to exit from the Doze mode when it is detected that the current screen state of the mobile terminal is changed from the screen-off state to the screen-on state.
11. A mobile terminal, characterized in that the mobile terminal comprises:
a memory;
a processor; and
a Doze mode switching apparatus installed in the memory and including one or more software functional modules executed by the processor, the apparatus comprising:
the detection module is used for detecting the current screen state of the mobile terminal;
the acquisition module is used for acquiring the GPS state of the mobile terminal within a preset time before the current moment when the current screen state is the screen-off state;
the control module is configured to control the mobile terminal to switch to the Doze mode when the GPS state of the mobile terminal is in a starless state within a preset time before the current time is obtained, where the starless state is used to indicate that the mobile terminal does not receive GPS data.
12. A readable storage medium, the readable storage medium comprising a computer program, characterized in that:
the computer program controls the mobile terminal on which the readable storage medium is executed to execute the Doze mode switching method according to any one of claims 1 to 5 when running.
CN201711018697.5A 2017-10-27 2017-10-27 Doze mode switching method and device, mobile terminal and readable storage medium Active CN107831885B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711018697.5A CN107831885B (en) 2017-10-27 2017-10-27 Doze mode switching method and device, mobile terminal and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711018697.5A CN107831885B (en) 2017-10-27 2017-10-27 Doze mode switching method and device, mobile terminal and readable storage medium

Publications (2)

Publication Number Publication Date
CN107831885A CN107831885A (en) 2018-03-23
CN107831885B true CN107831885B (en) 2021-03-26

Family

ID=61650647

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711018697.5A Active CN107831885B (en) 2017-10-27 2017-10-27 Doze mode switching method and device, mobile terminal and readable storage medium

Country Status (1)

Country Link
CN (1) CN107831885B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109462699B (en) * 2018-12-26 2020-10-23 惠州Tcl移动通信有限公司 Method for controlling Doze mode of mobile terminal
CN111913553A (en) * 2019-05-07 2020-11-10 中兴通讯股份有限公司 Method and device for controlling power consumption of terminal, terminal and computer readable storage medium
CN110618747B (en) * 2019-09-17 2022-06-24 北京字节跳动网络技术有限公司 Method and device for low-power operation of terminal, terminal and storage medium
CN111290565A (en) * 2020-01-13 2020-06-16 Oppo广东移动通信有限公司 Doze mode control method, device, terminal and storage medium
CN113965984A (en) * 2021-10-19 2022-01-21 闻泰通讯股份有限公司 Communication equipment control method and device, communication equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104767874A (en) * 2014-01-06 2015-07-08 Lg电子株式会社 Mobile terminal and control method thereof
CN107145214A (en) * 2017-04-28 2017-09-08 努比亚技术有限公司 The method and mobile terminal of application program power consumption management

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100162021A1 (en) * 2008-12-08 2010-06-24 Kennard Peter System and method for extending the battery life of a mobile device
CN102938925A (en) * 2011-08-15 2013-02-20 张晨 Energy consumption control method and device and mobile terminal device
CN106095059B (en) * 2016-06-08 2019-03-01 维沃移动通信有限公司 A kind of method and mobile terminal reducing mobile terminal power consumption
CN106791101A (en) * 2016-12-22 2017-05-31 上海斐讯数据通信技术有限公司 A kind of electricity saving method based on Android M Doze patterns

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104767874A (en) * 2014-01-06 2015-07-08 Lg电子株式会社 Mobile terminal and control method thereof
CN107145214A (en) * 2017-04-28 2017-09-08 努比亚技术有限公司 The method and mobile terminal of application program power consumption management

Also Published As

Publication number Publication date
CN107831885A (en) 2018-03-23

Similar Documents

Publication Publication Date Title
CN107831885B (en) Doze mode switching method and device, mobile terminal and readable storage medium
US10652828B2 (en) Electronic device for providing mode switching and a method thereof
KR101120148B1 (en) Automatic activation and deactivation of wireless network adapter
CN105573465B (en) Electronic device and method of controlling power of electronic device
CN106507445B (en) Wireless fidelity Wi-Fi scanning method and mobile terminal
US9524216B2 (en) Method, device and mobile terminal for information backup
CN108253724B (en) Refrigerator working mode control method and device and refrigerator
CN110554762A (en) Method and terminal for controlling application program
US20160116974A1 (en) Methods and systems to boot up smartphones in ultra low power modes
CN107302633B (en) Application control method, device, storage medium and electronic equipment
KR20160073127A (en) Electronic device and method for determining an abnormal state of a connector
CN103080869A (en) Determination of display device power consumption
EP3848777A1 (en) Method and apparatus for detecting application to be managed, method and apparatus for controlling application, terminal, and storage medium
KR20200100404A (en) Electronic device for adaptive power management
CN106713612B (en) Electronic device and message display method
EP3654156A1 (en) Method and apparatus for customizing status bar on terminal, and electronic device
KR20180069640A (en) Method for charging electronic device, electronic device, and storage medium
CN105530348A (en) Mobile terminal, and method and device for adjusting screen brightness
CN111949460A (en) Method and device for testing D3-supported characteristic of solid state disk, computer equipment and storage medium
US20100064149A1 (en) Voltage adjusting system and method for motherboard components of a computer
CN111176958A (en) Information monitoring method, system and storage medium
CN110830653A (en) Sensor control method, sensor control device, mobile terminal and storage medium
CN110658904A (en) Method and device for controlling terminal current, terminal and storage medium
CN114624569A (en) Sensor circuit abnormality detection method, circuit, device, intelligent device, and medium
CN116431226A (en) Switching method and device of operating system, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant