CN112083788A - Power saving method and device - Google Patents

Power saving method and device Download PDF

Info

Publication number
CN112083788A
CN112083788A CN202010988811.2A CN202010988811A CN112083788A CN 112083788 A CN112083788 A CN 112083788A CN 202010988811 A CN202010988811 A CN 202010988811A CN 112083788 A CN112083788 A CN 112083788A
Authority
CN
China
Prior art keywords
preset
position information
application
electronic equipment
user
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.)
Pending
Application number
CN202010988811.2A
Other languages
Chinese (zh)
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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202010988811.2A priority Critical patent/CN112083788A/en
Publication of CN112083788A publication Critical patent/CN112083788A/en
Pending legal-status Critical Current

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/3212Monitoring battery levels, e.g. power saving mode being initiated when battery voltage goes below a certain level
    • 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/329Power saving characterised by the action undertaken by task scheduling

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Telephone Function (AREA)

Abstract

The application discloses a power saving method and a power saving device, and belongs to the technical field of electronic equipment. The method comprises the following steps: detecting whether the electric quantity of the electronic equipment used by the user is larger than a preset electric quantity threshold value; if the electric quantity is not greater than a preset electric quantity threshold value, acquiring current position information of the user; if the current position information is matched with the preset outdoor position information, closing the first preset application; the operable time of the first preset application under the preset electric quantity threshold is less than the preset time threshold. Therefore, in the embodiment of the application, the application with more power consumption is closed according to the current position information of the user and the power of the electronic equipment, and the electronic equipment enters the power saving mode, so that the power consumption of the electronic equipment can be reduced, and the endurance time of the electronic equipment is prolonged.

Description

Power saving method and device
Technical Field
The invention belongs to the technical field of electronic equipment, and particularly relates to a power saving method and a power saving device.
Background
At present, electronic devices are widely used in daily life. The power consumption of the electronic device is getting larger and larger due to the various applications with complex functions, and users often encounter situations that the electronic device needs to be used but the electronic device is exhausted and automatically turned off.
Therefore, a power saving method is needed to save the power of the electronic device.
Disclosure of Invention
An object of the embodiments of the present application is to provide a power saving method and apparatus, which can solve the technical problems of the prior art that the power consumption of an electronic device is fast and the endurance is not high.
In a first aspect, an embodiment of the present application provides a power saving method, where the method includes:
detecting whether the electric quantity of the electronic equipment used by the user is larger than a preset electric quantity threshold value;
if the electric quantity is not greater than the preset electric quantity threshold value, acquiring current position information of the user;
if the current position information is matched with the preset outdoor position information, closing a first preset application; the operable time of the first preset application under the preset electric quantity threshold is less than a preset time threshold.
In a second aspect, an embodiment of the present application provides a power saving device, including:
the detection module is used for detecting whether the electric quantity of the electronic equipment used by the user is larger than a preset electric quantity threshold value;
the first obtaining module is used for obtaining the current position information of the user if the electric quantity is not greater than the preset electric quantity threshold value;
the closing module is used for closing the first preset application if the current position information is matched with preset outdoor position information; the operable time of the first preset application under the preset electric quantity threshold is less than a preset time threshold.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or an instruction stored on the memory and executable on the processor, and when executed by the processor, the program or the instruction implements the steps of the power saving method according to the first aspect.
In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instructions are stored, and when the program or instructions are executed by a processor, the program or instructions implement the steps of the power saving method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the power saving method according to the first aspect.
In the embodiment of the application, whether the electric quantity of the electronic equipment used by a user is larger than a preset electric quantity threshold value is detected; if the electric quantity is not greater than a preset electric quantity threshold value, acquiring current position information of the user; if the current position information is matched with the preset outdoor position information, closing the first preset application; the operable time of the first preset application under the preset electric quantity threshold is less than the preset time threshold. Therefore, in the embodiment of the application, the application with more power consumption is closed according to the current position information of the user and the power of the electronic equipment, and the electronic equipment enters the power saving mode, so that the power consumption of the electronic equipment can be reduced, and the endurance time of the electronic equipment is prolonged.
Drawings
Fig. 1 is a flowchart illustrating steps of a power saving method according to an embodiment of the present application;
FIG. 2 is a flow chart illustrating steps of another power saving method according to an embodiment of the present application;
fig. 3 is a schematic diagram illustrating a display of a power saving mode confirmation message according to an embodiment of the present application;
FIG. 4 is a schematic diagram illustrating a display of a target desktop according to an embodiment of the present application;
fig. 5 is a schematic diagram illustrating a display of an exit power saving mode confirmation message according to an embodiment of the present application;
fig. 6 is a block diagram illustrating a power saving device according to an embodiment of the present application;
fig. 7 is a block diagram illustrating a structure of an electronic device according to an embodiment of the present application;
fig. 8 shows a hardware structure diagram of an electronic device implementing various embodiments of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. 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 application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
A power saving method, a power saving device, an electronic apparatus, and a readable storage medium according to embodiments of the present application are described in detail below with reference to the accompanying drawings.
Referring to fig. 1, a flowchart of steps of a power saving method according to an embodiment of the present application is shown, where the method may be applied to an electronic device, and the electronic device may specifically be a smartphone, a notebook, a tablet computer, and the like, and the method may specifically include:
step 101, detecting whether the electric quantity of the electronic equipment used by the user is larger than a preset electric quantity threshold value.
In this embodiment, the preset power threshold may be a remaining power threshold of the electronic device, for example, the preset power threshold may be twenty percent of a total capacity of the battery. The preset electric quantity threshold may be a threshold preset by a user according to actual needs, or may be a default threshold of an electronic device system, which is not limited in the embodiment of the present application.
And 102, if the electric quantity is not greater than the preset electric quantity threshold value, acquiring the current position information of the user.
In an embodiment of the application, the current location information may indicate a real-time location of the consumer electronic device. The electronic device may determine the current location information through a GPS (Global Positioning System).
In the embodiment of the application, the current position information of the user is acquired only when the electric quantity of the electronic equipment is not greater than the preset electric quantity threshold value, so that the position information acquisition function can be prevented from being frequently started when the electric quantity of the electronic equipment is normal, and unnecessary electric quantity loss can be avoided.
Step 103, if the current position information is matched with preset outdoor position information, closing a first preset application to enter a power saving mode; the operable time of the first preset application under the preset electric quantity threshold is less than a preset time threshold.
In this embodiment of the application, the preset outdoor location information may refer to other location information in the electronic device except for indoor location information of a home, a company, and the like. For example, the electronic device may set, based on GPS positioning, location information of a location area where a user is located in the morning in the latest preset time period as home location information, or may set location information of a location area where a user is located in a working time period in the daytime in the latest preset time period as company location information, where the preset time period may be one week or one month.
Specifically, in this step, if the current location information of the user is not indoor location information such as a home, a company, and the like, it may be determined that the current location information of the user matches with the preset outdoor location information. Like this, this application embodiment judges through current position information that the user is outdoor, and then can in time close first preset application in outdoor scene, promptly, gets into power saving mode, guarantees user's normal use.
In this embodiment, the first predetermined application may refer to an application program with a large power consumption. The preset duration threshold may refer to a duration of the application. The preset duration threshold may be set by a user based on actual needs, or may be a default duration of the electronic device system, specifically, the default duration may be 40 minutes or 60 minutes, and the like, which is not limited in this embodiment of the present application. When the power of the electronic device is the preset power threshold, the executable time of the first preset application is less than the preset time threshold, for example, when the preset power threshold is 20%, the first preset application may be an application program with an executable time of less than 40 minutes. The short operable time of the first preset application indicates that the power consumption of the first preset application is large, and the first preset application can be closed in the power saving mode to reduce the power consumption of the electronic device.
In this embodiment of the application, the specific application program included in the first preset application may be obtained through an experimental test, for example, when the electric quantity of the electronic device is at a preset electric quantity threshold, the operable time length of each installed application is tested, and then the application program with the operable time length smaller than the preset time length threshold is determined as the first preset application.
Of course, the first preset application may also be determined in other manners, for example, an application program included in the first preset application may be a default setting when the electronic device leaves a factory, may also be determined by a user according to an actual requirement of the user, and may also be determined by the electronic device according to a frequency of use of the application program by the user, which is not limited in this embodiment of the application.
In summary, the power saving method provided in the embodiment of the present application detects whether the electric quantity of the electronic device used by the user is greater than a preset electric quantity threshold; if the electric quantity is not greater than a preset electric quantity threshold value, acquiring current position information of the user; if the current position information is matched with the preset outdoor position information, closing the first preset application to enter a power saving mode; the operable time of the first preset application under the preset electric quantity threshold is less than the preset time threshold. Therefore, in the embodiment of the application, the application with more power consumption is closed according to the current position information of the user and the power of the electronic equipment, and the electronic equipment enters the power saving mode, so that the power consumption of the electronic equipment can be reduced, and the endurance time of the electronic equipment is prolonged.
Referring to fig. 2, a flowchart illustrating steps of another power saving method according to an embodiment of the present application is shown, where the method may be applied to an electronic device, and the electronic device may specifically be a smartphone, a notebook, a tablet computer, and the like, and the method may specifically include:
step 201, detecting whether the electric quantity of the electronic device used by the user is greater than a preset electric quantity threshold value.
Specifically, the implementation manner of this step may refer to the foregoing step 101, and details of this embodiment of the application are not described herein again
Step 202, if the electric quantity is not greater than the preset electric quantity threshold, obtaining the current position information of the user.
Specifically, the implementation manner of this step may refer to step 102, which is not described herein again in this embodiment of the present application.
Step 203, if the current position information is matched with the preset outdoor position information, closing a first preset application to enter a power saving mode; the operable time of the first preset application under the preset electric quantity threshold is less than a preset time threshold.
Optionally, before step 203, the power saving method may further include the following steps a to C:
step A, displaying power saving mode confirmation information; the power saving mode confirmation information is used for confirming whether the user enters the power saving mode.
In this embodiment, the power saving mode confirmation information may be information for prompting a user to confirm whether to enter the power saving mode. The power saving mode confirmation information may be displayed in the electronic device screen in the form of an information popup, and the information popup may further include a corresponding confirmation option.
Fig. 3 is a schematic diagram illustrating a display of power saving mode confirmation information according to an embodiment of the present application. As shown in fig. 3, when the power of the electronic device is 20% and is not greater than the preset power threshold, and it is detected that the user is outdoors, the electronic device may display an information popup 301 in which text information of "whether to enter the power saving mode" is displayed, and simultaneously display a touch option 302 of "agree" and a touch option 303 of "disagree". The user clicks the "agree" touch option 302 and the electronic device enters the power saving mode.
And B, receiving an input instruction of the power saving mode confirmation information.
In this embodiment of the application, the input instruction may be an instruction input by a user when confirming to enter the power saving mode, where the input instruction may be an instruction input by the user by touching a screen of the electronic device, or an instruction input by the user in a voice manner, and a specific form of the input instruction is not limited in this embodiment of the application.
And C, responding to the input instruction, and executing the step of closing the first preset application to enter a power saving mode.
In the embodiment of the application, after receiving an input instruction of a user, the electronic device may close the first preset application, and may further reduce frequencies of a Central Processing Unit (CPU) and a Graphics Processing Unit (GPU), reduce screen brightness, and enter a power saving mode. It should be noted that after the user closes the first preset application, the user may notify the user of the type of the closed first preset application in a pop-up window or notification message manner, so that the user can know the closing condition of the first preset application in time.
In the embodiment of the application, the electronic device receives an input instruction of a user for the power saving mode confirmation information by displaying the power saving mode confirmation information, and then closes the first preset application and enters the power saving mode in response to the input instruction. Therefore, the electronic equipment can remind the user of the current electric quantity condition in time, and the user can conveniently and timely perform corresponding processing to avoid automatic shutdown of the electronic equipment due to electric quantity exhaustion.
Optionally, in this embodiment of the present application, after the first preset application is closed, the method may further include the following steps (4) to (6):
step (4), switching the current desktop displayed by the electronic equipment to a target desktop; the target desktop comprises a power-saving version application of a second preset application, wherein the second preset application is other applications except the first preset application in the installed applications of the electronic equipment; the function items of the power-saving version application of the second preset application are less than the function items of the normal version application.
In the embodiment of the application, the current desktop can be a desktop displayed in the normal state of the electric quantity of the electronic device, specifically, when the electric quantity of the electronic device is greater than a preset electric quantity threshold value, the electric quantity can be considered to be sufficient, and all or part of applications installed in the electronic device are displayed in the current desktop.
The target desktop may be a desktop displayed in a power saving mode. The second preset application may be an application with less power consumption among applications already installed in the electronic device. And only the power-saving version application of the second preset application is displayed in the target desktop. Compared with the normal version application, the power-saving version application only reserves necessary basic function items and does not contain other unnecessary functions. And when the electric quantity of the electronic equipment is the preset electric quantity threshold, the operable time length of the power-saving version application is greater than the preset time length threshold.
For example, the power saving version application of the second preset application payment treasure can be displayed in the target desktop, and in the power saving version application of the payment treasure, only the basic function of code scanning payment is set. Of course, the user may also flexibly set the type of the power saving version application displayed in the target desktop according to actual requirements, for example, when the user takes a car outdoors, the power saving version application of the drip-drop car may be displayed in the target desktop in the power saving mode.
FIG. 4 is a schematic diagram illustrating a display of a target desktop according to an embodiment of the present application. As shown in fig. 4, four power saving versions of applications, namely, a payment treasure, a telephone, a short message, and a contact, are displayed in the target desktop in the power saving mode, and an exit button 401 is displayed at the same time, so that the user can click the exit button 401 to exit the power saving mode.
In the embodiment of the application, after the electronic device closes the first preset application, the current desktop is switched to the target desktop, the power saving mode is entered, and only the power saving version application of the second preset application is displayed in the target desktop. Therefore, in the power saving mode, the user can use the power saving version application displayed in the target desktop, the actual use requirement of the user can be met, the power consumption of the electronic equipment is reduced, meanwhile, the electronic equipment is not displayed in the target desktop after the first preset application with higher power consumption is closed, the user cannot directly start the electronic equipment, and the endurance time of the electronic equipment is further prolonged.
And (5) determining the remaining available time of the electronic equipment in real time according to the current electric quantity of the electronic equipment.
In the embodiment of the application, after the electronic equipment enters the power saving mode, the remaining available time of the electronic equipment can be determined according to the current electric quantity. Specifically, the electronic device can determine the remaining available time length in real time according to the current battery power and the power consumption of the electronic device. Of course, the remaining usable time may also be calculated by using other technologies such as a voltage test, which is not limited in this application.
And (6) displaying the remaining available time length in the target desktop.
In the embodiment of the application, after the remaining available duration is calculated by the electronic device, the remaining available duration may be displayed in the target desktop in the power saving mode. Specifically, the electronic device may display text information of "15% of electric quantity, available time of 1 hour" on the target desktop.
In the embodiment of the application, the electronic equipment calculates the remaining available time length in real time according to the current electric quantity and displays the remaining available time length on the target desktop in the power saving mode, so that the remaining available time length of the electronic equipment can be visually prompted to a user, and the user can conveniently take corresponding measures in time.
And 204, re-acquiring the current position information of the user according to a preset period.
In this embodiment of the application, the preset period may be an interval time period for acquiring the current location information of the user, and may be, for example, 5 minutes, 10 minutes, and the like. The preset period may be set by a user based on actual requirements, or may be default for the electronic device system, which is not limited in the embodiment of the present application.
And step 205, if the current position information is matched with preset indoor position information, displaying charging reminding information to prompt the user to charge the electronic equipment.
In the embodiment of the present application, the indoor location information may be indoor location area information of a user's home, a company, and the like. The indoor location information may be set based on a historical activity area of the user within one week or one month, and for example, a location area of a company or a home may be set as the indoor location information. The charging reminding information may be information for prompting a user to charge the electronic device, and specifically may be an information popup window or the like.
Specifically, in this step, in the power saving mode, the electronic device periodically acquires the current location information of the user, and if the current location matches the preset indoor location information, it can be determined that the user is indoors at this time, and the electronic device can prompt the user to charge the electronic device as soon as possible in a manner of information pop-up window and the like.
Optionally, in this embodiment of the application, the preset indoor location information may be obtained through the following steps D to E:
and D, acquiring historical position information of the position of the user in a preset time period within a preset time length.
In this embodiment of the application, the preset duration may be a preset data sampling period, for example, the last 3 days, the last week, or a month. The preset time period may refer to a specific sampling time period corresponding to activities of a user in one day, for example, a morning time period corresponding to home rest or a daytime work time period corresponding to business work, etc. The preset duration and the preset time period can be flexibly set by a user according to the actual needs of the user, and can also be defaulted by an electronic equipment system, which is not limited by the embodiment of the application. The historical location information may be a historical location stored by the electronic device where the user is located.
And E, determining the indoor position information according to the historical position information.
In the embodiment of the application, the electronic device may directly use historical position information corresponding to a position area where the user is located within a preset time period as the indoor position information, or may analyze the historical position information, and use position information with the highest occurrence frequency in the historical position information as the indoor position information.
Correspondingly, in the embodiment of the present application, the preset outdoor location information may be obtained through the following step F:
and F, determining the position information except the preset indoor position information as the outdoor position information.
In the embodiment of the application, after the electronic equipment determines the preset indoor position information, the position information which does not belong to the indoor position information can be directly determined as the outdoor position information. Specifically, if the obtained current location information of the user does not belong to the preset indoor location information, it may be determined that the user is outdoors.
In the embodiment of the application, the electronic equipment determines the preset indoor position information according to the historical position information by acquiring the historical position information of the position of the user in the preset time period in the preset time length, and then determines the position information except the preset indoor position information as the preset outdoor position information. Therefore, the electronic equipment can judge whether the user is outdoors or not in real time according to the current position information of the user, and the electronic equipment can enter a power saving mode in an outdoor scene in time, so that the power consumption of the electronic equipment is reduced, and the normal use of the user on the electronic equipment can be further ensured.
And step 206, if the charging operation of the user on the electronic equipment is detected, recovering the first preset application.
In the embodiment of the application, after the electronic equipment detects the charging operation, the electronic equipment can directly exit from the power saving mode, and the target desktop is switched to the desktop in the normal state, so that the frequency and the screen brightness of a CPU (central processing unit) and a GPU (graphics processing unit) are improved, and the normal use state of the electronic equipment is recovered.
Specifically, when the first preset application is closed and the power saving mode is entered, the running first preset application may be closed and the usage right of the first preset application may be closed. Correspondingly, after the electronic device detects the charging operation, the first preset application may be recovered, specifically, the first preset application may be directly started, or the permission to start the first preset application may also be started, which is not limited in this application embodiment.
In the embodiment of the application, the electronic equipment acquires the current position information of the user again according to the preset period, when the user is detected to be indoors, the charging prompt information is displayed to prompt the user to charge the electronic equipment, and when the electronic equipment detects the charging operation of the user on the electronic equipment, the electronic equipment exits from the power saving mode and recovers the first preset application. Therefore, when the electronic equipment detects that the user is indoors, the electronic equipment timely reminds the user to charge the electronic equipment, the electric quantity of the electronic equipment can be prevented from being exhausted, the electronic equipment can be automatically shut down, and the normal use of the user is ensured
It should be noted that, in the power saving mode, the user can only use the power saving version application displayed in the target desktop, and needs to exit the power saving mode if opening other applications. If the electronic device does not detect the charging operation of the user, but receives an instruction of the user to exit the power saving mode, a message for confirming exiting the power saving mode may be displayed, and the message for confirming exiting the power saving mode may be used to confirm whether the user exits the power saving mode. If a confirmation instruction of exiting the power saving mode of the user is received, the prompt message can be displayed again to prompt the user to charge the electronic equipment as soon as possible.
Fig. 5 is a schematic diagram illustrating a display of a power saving mode exit confirmation message according to an embodiment of the present application. As shown in fig. 5, an information popup 501 is displayed in the target desktop, in which a text prompt message "is displayed to confirm exiting the power saving mode? May affect subsequent code scanning, payment, etc.! "yes" touch button 502 and "no" touch button 503 are displayed simultaneously. After the user clicks the yes touch button 502, the power saving mode can be exited, and the electronic device is switched to a normal use state.
Optionally, in one implementation, a backup battery may be provided in the electronic device, and the backup battery may be a small-sized battery. If the current electric quantity of the main battery of the electronic equipment is only 0%, the electronic equipment can be switched to the standby battery, the standby battery supplies power to the electronic equipment, and at the moment, the electronic equipment can enter an emergency mode. If the charging operation of the user is detected, the electronic device may exit the emergency mode.
In the embodiment of the application, the electronic equipment carries out emergency power supply on the electronic equipment when the electric quantity of the main battery is exhausted by setting the standby battery, so that the endurance time of the electronic equipment can be prolonged, and the normal use of a user can be ensured.
In summary, the power saving method provided in the embodiment of the present application detects whether the electric quantity of the electronic device used by the user is greater than a preset electric quantity threshold; if the electric quantity is not greater than a preset electric quantity threshold value, acquiring current position information of the user; if the current position information is matched with the preset outdoor position information, closing the first preset application to enter a power saving mode; the operable time length of the first preset application under the preset electric quantity threshold is less than the preset time length threshold; charging according to a preset period to obtain the current position information of a user; if the current position information is matched with the preset indoor position information, the electronic equipment displays charging reminding information to prompt a user to charge; if the charging operation of the user on the electronic equipment is detected, the electronic equipment exits the power saving mode and recovers the first preset application. Therefore, in the embodiment of the application, the application with more power consumption is closed according to the current position information of the user and the power of the electronic equipment, and the power saving mode is entered, so that the power consumption of the electronic equipment can be reduced, and the endurance time of the electronic equipment is prolonged; and when the user is detected to be in the room, the user is timely reminded to charge the electronic equipment, so that the electric quantity of the electronic equipment can be prevented from being exhausted, the electronic equipment is automatically shut down, and the normal use of the user is ensured.
It should be noted that in the power saving method provided in the embodiment of the present application, the execution main body may be a power saving device, or a control module in the power saving device for executing the loading power saving method. In the embodiment of the present application, a power saving device executing a power saving method is taken as an example to describe the power saving device provided in the embodiment of the present application.
Referring to fig. 6, a block diagram of a power saving device according to an embodiment of the present application is shown, specifically, the power saving device 60 may include the following modules:
the detecting module 601 is configured to detect whether an electric quantity of the electronic device used by the user is greater than a preset electric quantity threshold.
A first obtaining module 602, configured to obtain current location information of the user if the electric quantity is not greater than the preset electric quantity threshold.
A closing module 603, configured to close a first preset application to enter a power saving mode if the current location information matches preset outdoor location information; the operable time of the first preset application under the preset electric quantity threshold is less than a preset time threshold.
Optionally, the apparatus 60 further comprises:
the first display module is used for displaying the power saving mode confirmation information; the power saving mode confirmation information is used for confirming whether the user enters the power saving mode;
a receiving module, configured to receive an input instruction of the power saving mode confirmation information;
and the response module is used for responding to the input instruction and executing the step of closing the first preset application to enter a power saving mode.
Optionally, the apparatus 60 further comprises:
the switching module is used for switching the current desktop displayed by the electronic equipment to a target desktop;
the target desktop comprises a power-saving version application of a second preset application, wherein the second preset application is other applications except the first preset application in the installed applications of the electronic equipment; the function items of the power-saving version application of the second preset application are less than the function items of the normal version application.
Optionally, the apparatus 60 further comprises:
the second acquisition module is used for acquiring the current position information of the user again according to a preset period; the second display module is used for displaying charging reminding information if the current position information is matched with preset indoor position information so as to prompt the user to charge the electronic equipment; and the exit module is used for exiting the power saving mode and recovering the first preset application if the charging operation of the user on the electronic equipment is detected.
Optionally, the apparatus 60 is further configured to: acquiring historical position information of a position of the user in a preset time period within a preset time length; determining the indoor position information according to the historical position information;
optionally, the apparatus 60 is further configured to:
and determining position information except the preset indoor position information as the outdoor position information.
Optionally, the apparatus 60 further comprises:
the determining module is used for determining the remaining available time length of the electronic equipment in real time according to the current electric quantity of the electronic equipment; and the third display module is used for displaying the remaining available time length in the target desktop.
In summary, the power saving device provided in the embodiment of the present application can detect whether the electric quantity of the electronic device used by the user is greater than the preset electric quantity threshold; if the electric quantity is not greater than a preset electric quantity threshold value, acquiring current position information of the user; if the current position information is matched with the preset outdoor position information, closing the first preset application to enter a power saving mode; the operable time of the first preset application under the preset electric quantity threshold is less than the preset time threshold. Therefore, in the embodiment of the application, the application with more power consumption is closed according to the current position information of the user and the power of the electronic equipment, and the electronic equipment enters the power saving mode, so that the power consumption of the electronic equipment can be reduced, and the endurance time of the electronic equipment is prolonged.
The power saving device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The power saving device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The power saving device provided in this embodiment of the application can implement each process implemented by the method embodiments of fig. 1 to fig. 5, and is not described herein again to avoid repetition.
Optionally, as shown in fig. 7, an electronic device 70 according to an embodiment of the present application is further provided, and includes a processor 701, a memory 702, and a program or an instruction stored in the memory 702 and executable on the processor 701, where the program or the instruction is executed by the processor 701 to implement each process of the foregoing power saving method embodiment, and can achieve the same technical effect, and no further description is provided here to avoid repetition.
It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and the non-mobile electronic devices described above.
Referring to fig. 8, a hardware structure diagram of an electronic device implementing various embodiments of the present application is shown.
The electronic device 80 includes, but is not limited to: a radio frequency unit 801, a network module 802, an audio output unit 803, an input unit 804, a sensor 805, a display unit 806, a user input unit 807, an interface unit 808, a memory 809, and a processor 810.
Those skilled in the art will appreciate that the electronic device 80 may further include a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 810 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 8 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
The processor 810 is configured to detect whether an electric quantity of the electronic device used by the user is greater than a preset electric quantity threshold.
And a processor 810, configured to obtain current location information of the user if the electric quantity is not greater than the preset electric quantity threshold.
A processor 810, configured to close a first preset application to enter a power saving mode if the current location information matches preset outdoor location information; the operable time of the first preset application under the preset electric quantity threshold is less than a preset time threshold.
In the embodiment of the application, the electronic equipment can detect whether the electric quantity of the electronic equipment used by a user is larger than a preset electric quantity threshold value; if the electric quantity is not greater than a preset electric quantity threshold value, acquiring current position information of the user; if the current position information is matched with the preset outdoor position information, closing the first preset application to enter a power saving mode; the operable time of the first preset application under the preset electric quantity threshold is less than the preset time threshold. Therefore, in the embodiment of the application, the application with more power consumption is closed according to the current position information of the user and the power of the electronic equipment, and the electronic equipment enters the power saving mode, so that the power consumption of the electronic equipment can be reduced, and the endurance time of the electronic equipment is prolonged.
It should be understood that in the embodiment of the present application, the input Unit 804 may include a Graphics Processing Unit (GPU) 8041 and a microphone 8042, and the Graphics Processing Unit 8041 processes image data of a still picture or a video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 806 may include a display panel 8061, and the display panel 8061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 807 includes a touch panel 8071 and other input devices 8072. A touch panel 8071, also referred to as a touch screen. The touch panel 8071 may include two portions of a touch detection device and a touch controller. Other input devices 8072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 809 may be used to store software programs as well as various data including, but not limited to, application programs and operating systems. The processor 810 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 810.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the process of the embodiment of the power saving method is implemented, and the same technical effect can be achieved, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction, so as to implement each process of the foregoing power saving method embodiment, and achieve the same technical effect, and for avoiding repetition, the details are not repeated here.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A method for conserving power, comprising:
detecting whether the electric quantity of the electronic equipment used by the user is larger than a preset electric quantity threshold value;
if the electric quantity is not greater than the preset electric quantity threshold value, acquiring current position information of the user;
if the current position information is matched with the preset outdoor position information, closing a first preset application; the operable time of the first preset application under the preset electric quantity threshold is less than a preset time threshold.
2. The method of claim 1, wherein after said closing the first pre-set application, the method further comprises:
switching a current desktop displayed by the electronic equipment to a target desktop;
the target desktop comprises a power-saving version application of a second preset application, wherein the second preset application is other applications except the first preset application in the installed applications of the electronic equipment; the function items of the power-saving version application of the second preset application are less than the function items of the normal version application.
3. The method of claim 1, wherein after said closing the first pre-set application, the method further comprises:
according to a preset period, re-acquiring the current position information of the user;
if the current position information is matched with preset indoor position information, displaying charging reminding information to prompt the user to charge the electronic equipment;
and if the charging operation of the user on the electronic equipment is detected, recovering the first preset application.
4. The method of claim 3, wherein the preset indoor location information is obtained by:
acquiring historical position information of a position of the user in a preset time period within a preset time length;
determining the indoor position information according to the historical position information;
the preset outdoor position information is acquired in the following mode:
and determining position information except the preset indoor position information as the outdoor position information.
5. The method of claim 2, wherein after the switching the current desktop displayed by the electronic device to the target desktop, the method further comprises:
determining the remaining available time length of the electronic equipment in real time according to the current electric quantity of the electronic equipment;
and displaying the remaining available time length in the target desktop.
6. An electricity saving device, comprising:
the detection module is used for detecting whether the electric quantity of the electronic equipment used by the user is larger than a preset electric quantity threshold value;
the first obtaining module is used for obtaining the current position information of the user if the electric quantity is not greater than the preset electric quantity threshold value;
the closing module is used for closing the first preset application if the current position information is matched with preset outdoor position information; the operable time of the first preset application under the preset electric quantity threshold is less than a preset time threshold.
7. The apparatus of claim 6, further comprising:
the switching module is used for switching the current desktop displayed by the electronic equipment to a target desktop;
the target desktop comprises a power-saving version application of a second preset application, wherein the second preset application is other applications except the first preset application in the installed applications of the electronic equipment; the function items of the power-saving version application of the second preset application are less than the function items of the normal version application.
8. The apparatus of claim 6, further comprising:
the second acquisition module is used for acquiring the current position information of the user again according to a preset period;
the second display module is used for displaying charging reminding information if the current position information is matched with preset indoor position information so as to prompt the user to charge the electronic equipment;
and the quitting module is used for recovering the first preset application if the charging operation of the user on the electronic equipment is detected.
9. The apparatus of claim 8, wherein the apparatus is further configured to:
acquiring historical position information of a position of the user in a preset time period within a preset time length;
determining the indoor position information according to the historical position information;
the apparatus is further configured to:
and determining position information except the preset indoor position information as the outdoor position information.
10. The apparatus of claim 7, further comprising:
the determining module is used for determining the remaining available time length of the electronic equipment in real time according to the current electric quantity of the electronic equipment;
and the third display module is used for displaying the remaining available time length in the target desktop.
CN202010988811.2A 2020-09-18 2020-09-18 Power saving method and device Pending CN112083788A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010988811.2A CN112083788A (en) 2020-09-18 2020-09-18 Power saving method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010988811.2A CN112083788A (en) 2020-09-18 2020-09-18 Power saving method and device

Publications (1)

Publication Number Publication Date
CN112083788A true CN112083788A (en) 2020-12-15

Family

ID=73739250

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010988811.2A Pending CN112083788A (en) 2020-09-18 2020-09-18 Power saving method and device

Country Status (1)

Country Link
CN (1) CN112083788A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117369619A (en) * 2023-12-06 2024-01-09 深圳市德晟达电子科技有限公司 Intelligent energy-saving method and system for computer

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102096459A (en) * 2009-12-14 2011-06-15 腾讯科技(深圳)有限公司 Energy-saving method and device
CN105677141A (en) * 2015-12-29 2016-06-15 深圳市金立通信设备有限公司 Application program management method and terminal
CN106569579A (en) * 2016-10-21 2017-04-19 宇龙计算机通信科技(深圳)有限公司 Power-saving control method and device of terminal
CN107404572A (en) * 2017-06-29 2017-11-28 深圳市金立通信设备有限公司 A kind of charge prompting method and terminal
CN107463240A (en) * 2016-06-03 2017-12-12 北京展讯高科通信技术有限公司 Open method, device and the mobile terminal of battery saving mode
CN109164905A (en) * 2018-08-10 2019-01-08 上海传英信息技术有限公司 Mobile terminal and its power-saving control method
CN109388220A (en) * 2018-10-09 2019-02-26 维沃移动通信有限公司 A kind of method for managing power supply and mobile terminal
WO2019174618A1 (en) * 2018-03-14 2019-09-19 深圳市万普拉斯科技有限公司 Proximity sensor threshold updating method and apparatus, storage medium and electronic device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102096459A (en) * 2009-12-14 2011-06-15 腾讯科技(深圳)有限公司 Energy-saving method and device
CN105677141A (en) * 2015-12-29 2016-06-15 深圳市金立通信设备有限公司 Application program management method and terminal
CN107463240A (en) * 2016-06-03 2017-12-12 北京展讯高科通信技术有限公司 Open method, device and the mobile terminal of battery saving mode
CN106569579A (en) * 2016-10-21 2017-04-19 宇龙计算机通信科技(深圳)有限公司 Power-saving control method and device of terminal
CN107404572A (en) * 2017-06-29 2017-11-28 深圳市金立通信设备有限公司 A kind of charge prompting method and terminal
WO2019174618A1 (en) * 2018-03-14 2019-09-19 深圳市万普拉斯科技有限公司 Proximity sensor threshold updating method and apparatus, storage medium and electronic device
CN109164905A (en) * 2018-08-10 2019-01-08 上海传英信息技术有限公司 Mobile terminal and its power-saving control method
CN109388220A (en) * 2018-10-09 2019-02-26 维沃移动通信有限公司 A kind of method for managing power supply and mobile terminal

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117369619A (en) * 2023-12-06 2024-01-09 深圳市德晟达电子科技有限公司 Intelligent energy-saving method and system for computer
CN117369619B (en) * 2023-12-06 2024-03-22 深圳市德晟达电子科技有限公司 Intelligent energy-saving method and system for computer

Similar Documents

Publication Publication Date Title
CN107340014B (en) Multi-sensor detection method and device and computer readable storage medium
US9288763B1 (en) Battery consumption monitoring
CN103945055B (en) Method and device for turning off terminal alarm clock and terminal equipment
CN109002387B (en) User reminding method and device of application program, terminal equipment and storage medium
CN106502371A (en) A kind of electricity-saving control method and device
CN110716631B (en) Power supply management method, device, equipment and readable storage medium
CN112997134B (en) Application icon display method and device, storage medium and electronic equipment
CN102231097A (en) Method and device for unlocking screen
US11899924B2 (en) Notification message display control method and apparatus, electronic device, and readable storage medium
CN111052040A (en) Method for reducing power consumption of terminal and terminal
CN105005387A (en) Application event prompting method for smart watch and smart watch
WO2013097333A1 (en) Message reminding method and apparatus
CN104156050A (en) Task monitoring method and electronic device
CN103338300B (en) Method for quickly entering into and quitting sleep mode and mobile terminal
CN106484075A (en) Method and device for adjusting application program wake-up time
CN111796735A (en) Application program control method and device and electronic equipment
CN112083788A (en) Power saving method and device
CN112764611B (en) Application program control method and device and electronic equipment
CN107277906B (en) Mode selecting method, device, terminal and computer readable storage medium
CN104348140B (en) The method and electronic equipment that a kind of low battery is reminded
CN111782028A (en) Electronic device, control method thereof, and storage medium
CN106843440B (en) A kind of mobile terminal restarts control method, device and mobile terminal
CN112764628B (en) Content display method, content display device, electronic equipment and storage medium
CN107040659B (en) Intelligent shutdown interface display method and terminal
CN106775296B (en) Terminal control method and device

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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20201215

WD01 Invention patent application deemed withdrawn after publication