WO2024022255A1 - 省电方法和电子设备 - Google Patents

省电方法和电子设备 Download PDF

Info

Publication number
WO2024022255A1
WO2024022255A1 PCT/CN2023/108669 CN2023108669W WO2024022255A1 WO 2024022255 A1 WO2024022255 A1 WO 2024022255A1 CN 2023108669 W CN2023108669 W CN 2023108669W WO 2024022255 A1 WO2024022255 A1 WO 2024022255A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
power
saving mode
power saving
user
Prior art date
Application number
PCT/CN2023/108669
Other languages
English (en)
French (fr)
Inventor
顾兴权
郑鹏珍
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2024022255A1 publication Critical patent/WO2024022255A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04842Selection of displayed objects or displayed text elements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • 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
    • 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/0267Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by controlling user interface components
    • 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/0274Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by switching on or off the equipment or parts thereof

Definitions

  • the embodiments of the present application relate to the field of electronic technology, and more specifically, to a power saving method and electronic equipment.
  • the usage time of electronic devices depends on the battery power. In order to fully extend the standby time of electronic devices using limited power, various manufacturers have launched power-saving modes. Under normal circumstances, when the battery power of an electronic device is consumed to a preset level, the electronic device will automatically shut down and become unusable.
  • Embodiments of the present application provide a power saving method and electronic equipment. This technical solution can increase the usage time of battery power, thereby increasing the usage time of electronic equipment under low power conditions.
  • a power saving method is provided.
  • the power saving method is applied to electronic equipment.
  • the method includes: when the power saving mode triggering condition is met, the electronic equipment enters the first power saving mode.
  • the battery power is the first power level; in the first power saving mode, when the electronic device detects that the battery power is reduced to the second power level, it enters the second power saving mode.
  • the second electric quantity is smaller than the first electric quantity.
  • the electronic device when the electronic device detects the trigger condition of the power saving mode, it can enter the first power saving mode automatically or in response to the user's operation. In the first power saving mode, further, when the battery power is reduced to When the second power level is reached, the electronic device can enter the second power saving mode.
  • This technical solution can reduce the power consumption rate of electronic devices through multi-level power saving modes, thereby increasing the use time of electronic devices under low battery conditions.
  • the power saving mode triggering condition includes the electronic device detecting that the battery power is reduced to the first power, and/or the electronic device detecting that the battery power is reduced to the first power.
  • the user's first operation is used to instruct the electronic device to enter the first power saving mode.
  • the electronic device can automatically enter the first power saving mode when detecting that the battery power is reduced to the first power level, and/or it can also enter the first power saving mode when detecting that the user clicks to enter the first power saving mode.
  • First power saving mode when detecting that the battery power is reduced to the first power level, and/or it can also enter the first power saving mode when detecting that the user clicks to enter the first power saving mode.
  • the method further includes: when the electronic device detects that the battery power is reduced to the second power, starting a boost circuit.
  • the electronic device when the electronic device detects that the battery power is reduced to the second power level, the electronic device can also activate the boost circuit. Through the boost circuit, the final power of the battery can be fully released, thereby extending the use time of the electronic device.
  • the first power saving mode may be the same as the second power saving mode, and when the battery power is detected as the second power, the boost circuit may be started.
  • the method further includes: the electronic device displays a first display interface in the first power saving mode, the first display interface includes a preset applications, and the applications in the first display interface can be added or removed.
  • the preset application may be a phone application, a text message application, etc.
  • the electronic device has a dedicated first display interface in the first power saving mode.
  • the first display interface may include a preset application program, so that the user can use The preset application.
  • the user can also change, such as add or remove, the applications in the first display interface through operations, thereby improving the user's control over the electronic device and improving the user experience.
  • the method further includes: in response to the user's second operation, the electronic device adds an application selected by the user to the first display interface, or Remove one or more of the preset application programs from the first display interface.
  • the first display interface may include an add button or a remove button
  • the second operation may be the user clicking the add button to select an application in the pop-up interface, or the second operation may be clicking The Remove button removes the action of the application.
  • This technical solution allows users to select the applications they need to use in power-saving mode, thereby improving users' control over electronic devices and improving user experience.
  • the method further includes the electronic device displaying a second display interface in the second power saving mode, the second display interface including a preset Applications and/or application components, and the applications and/or application components in the second display interface cannot be added or removed.
  • the preset application can be a phone application, a text message application, etc.
  • the application component can be a payment card of a payment application, such as a QR code, a barcode, etc.
  • the application card can also be other applications. Program cards, etc.
  • the electronic device has a proprietary second display interface in the second power saving mode, and the second display interface may include preset application programs and/or application components. , and the second display interface cannot be changed, such as adding or removing applications and/or application components, etc.
  • the electronic device is further limited to only use preset applications and/or application cards, thereby ensuring that the user can use the basic functions of the electronic device while limiting the use of other applications, which can further reduce the cost of the electronic device.
  • the speed at which battery power is consumed increases the use time of electronic devices.
  • the electronic device entering the second power saving mode includes: in response to the user detecting that the battery power is reduced to the second power when the electronic device During the third operation in the displayed interface, the electronic device enters the second power saving mode.
  • the third operation may be an operation in which the user clicks a confirmation button in a prompt box that pops up on the electronic device.
  • the electronic device can also directly enter the second power saving mode.
  • a prompt box can pop up to the user, and when the user clicks to confirm, the electronic device can enter the second power saving mode.
  • activating the boost circuit includes: the electronic device detects whether the electronic device includes the boost circuit; and after determining that the electronic device includes the boost circuit When the boost circuit is described, the electronic device starts the boost circuit.
  • the electronic device when the electronic device enters the second power-saving mode, it needs to first determine whether there is a boost circuit in the electronic device. When it is determined that the boost circuit exists, the boost circuit can be started. Through the boost circuit, the boost circuit can be started. This allows the battery power to be effectively released and can extend the use time of electronic devices.
  • the shutdown interface may be called to shut down.
  • the method further includes: in response to a fourth operation by the user, the electronic device exits the second power saving mode and shuts down.
  • the fourth operation may be an operation in which the user clicks an exit button.
  • the user can click the exit button to exit the second power saving mode and shut down, thereby saving part of the battery power of the electronic device so that the user can use it when needed.
  • the method further includes: in response to a user's power-on operation, the electronic device enters the second power saving mode.
  • the electronic device when the electronic device shuts down the electronic device by clicking the exit button, there is still some power in the battery of the electronic device.
  • the electronic device When the user turns it on again, the electronic device directly enters the second power saving mode, which can make the electronic device can continue to be used.
  • the method further includes: in the second power saving mode, the electronic device detects that the battery power is exhausted, and the electronic device shuts down.
  • the method further includes: in the second power saving mode, when the electronic device detects that the battery power is increased to a third power, the The electronic device exits the second power saving mode, wherein the third electric quantity is greater than the second electric quantity.
  • the electronic device when the electronic device detects that the battery power is a third power level greater than the second power value, the electronic device can silently exit the second power saving mode and display the normal system desktop, so that the user can Use electronic devices normally so that they can be used User experience is better.
  • the method further includes: in the second power saving mode, when the electronic device detects that the battery power is increased to a third power level, the electronic device exits the second power saving mode. Electric mode, wherein the third electric quantity is greater than the first electric quantity.
  • the system desktop when the battery power increases to a third power level that is greater than the first power level, the system desktop can be automatically displayed and the user can resume normal use.
  • This technical solution can prevent the electronic device from reentering the second power-saving mode when the power drops rapidly when using high-power-consuming applications, thus improving the user experience.
  • the method further includes: turning off the boost circuit when the electronic device exits the second power saving mode.
  • the boost circuit when the electronic device exits the second power saving mode, the boost circuit can be turned off, thereby saving the power consumption of the electronic device.
  • the second power amount is 1%.
  • an electronic device will prompt the user to shut down when the battery power is 1%.
  • the electronic device can enter the second power-saving mode, thereby extending the life of the electronic device. Length of use.
  • a power saving method is provided.
  • the power saving method is applied to electronic equipment.
  • the method includes:
  • the electronic device When the electronic device detects the power-saving mode trigger condition, the electronic device displays a first display interface, the first display interface includes a preset application program, and the application program in the first display interface can Added or removable, the battery power of the electronic device when entering the first power saving mode is the first power;
  • the electronic device When the electronic device detects that the battery power continues to decrease to the second power level, the electronic device activates the boost circuit and displays a second display interface.
  • the second display interface includes preset application programs and/or application components, And applications and/or application components in the second display interface cannot be added or removed.
  • the electronic device when it detects the trigger condition of the power saving mode, it displays the first display interface, and the applications in the first display interface can be added or removed.
  • the battery level When the battery level is low, a second display interface including preset applications and/or application cards is displayed, and applications or application cards in the second display interface cannot be added or removed.
  • the user's use of the electronic device when the battery power is low, the user's use of the electronic device can be restricted by levels, thereby reducing the consumption rate of the battery power of the electronic device; further, by activating the boost circuit, the battery of the electronic device can be The final power is fully released, further extending the use time of electronic devices.
  • the power saving mode triggering condition may refer to the relevant description in the first aspect.
  • the second display interface includes an exit button
  • the method further includes: in response to the user clicking the exit button, the electronic device closes all Describe the boost circuit and shut down.
  • the user can click the exit button to turn off the boost circuit and shut down the device, thereby saving part of the battery power of the electronic device so that the user can use it when needed.
  • the method further includes: in response to a user's power-on operation, the electronic device activates the boost circuit and displays the second display interface.
  • the electronic device when the electronic device shuts down the electronic device by clicking the exit button, there is still some power in the battery of the electronic device.
  • the electronic device When the user turns it on again, the electronic device directly enters the second display interface, which can enable the electronic device to continue to use.
  • the method further includes: when the electronic device detects that the battery power is increased to a third power level, the electronic device turns off the boost circuit, And display the system desktop, wherein the third electric quantity is greater than the second electric quantity.
  • a normal system desktop when charging an electronic device, when the electronic device detects that the battery power is a third power level that is greater than the second power level, a normal system desktop can be displayed, so that the user can use the electronic device normally, making the user experience better. good.
  • the second power amount is 1%.
  • an electronic device will prompt the user to shut down when the battery power is 1%.
  • the electronic device can enter the second power-saving mode, thereby extending the life of the electronic device. Length of use.
  • a power saving method is provided.
  • the power saving method is applied to an electronic device.
  • the method includes: the electronic device detects that the battery power is reduced to a second power, wherein the second power is the The electronic device prompts the battery power when it is about to be shut down; in response to the battery power being reduced to the second power, the electronic device activates the boost circuit.
  • the electronic device when the electronic device detects that the battery power is reduced to the second power, in response to the battery power being reduced to the second power, the electronic device activates the boost circuit.
  • the boost circuit by activating the boost circuit, the battery power can be fully used. Further extending the usage time of electronic devices.
  • the method further includes: when the electronic device detects that the battery power is reduced to the second power, entering a second power saving mode; The electronic device displays a second display interface in the second power saving mode, wherein the second display interface includes a preset application program and/or application component, and the application program in the second display interface and/or application components cannot be added or removed, wherein the electronic device can only use applications and/or application components in the second display interface.
  • the electronic device in the second power saving mode, has a dedicated second display interface, and the second display interface may include preset application programs and/or application components, and the electronic device can only Applications and/or application components that use this preset.
  • the electronic device when the battery power is low, the electronic device can enter the second power-saving mode and display a proprietary interface, limiting the user's use of the electronic device and further extending the use time of the electronic device.
  • the electronic device entering the second power saving mode includes: in response to the user's first operation in the first display interface, the electronic device enters In the second power saving mode, the first display interface is the interface of the electronic device before entering the second power saving mode.
  • the first operation may be an operation in which the user clicks a confirmation button in a prompt box that pops up on the electronic device.
  • the electronic device can also directly enter the second power saving mode.
  • a prompt box can pop up to the user, and when the user clicks to confirm, the electronic device can enter the second power saving mode.
  • the electronic device starts a boost circuit, including: the electronic device detects whether the electronic device includes the boost circuit; and after determining that the electronic device When including the voltage boosting circuit, the electronic device activates the voltage boosting circuit.
  • the electronic device needs to first determine whether there is a boost circuit in the electronic device. When it is determined that the boost circuit exists, the boost circuit can be started. Through the boost circuit, the battery power can be effectively released and the battery can be improved. How long electronic devices are used.
  • the shutdown interface may be called to shut down.
  • the method further includes: in response to the user's second operation, the electronic device turns off the boost circuit and shuts down.
  • the second operation may be an operation in which the user clicks an exit button.
  • the user can click the exit button to exit the second power saving mode and shut down, thereby saving part of the battery power of the electronic device so that the user can use it when needed.
  • the electronic device in response to a user's power-on operation, the electronic device enters the second power saving mode.
  • the electronic device when the electronic device shuts down the electronic device by clicking the exit button, there is still some power in the battery of the electronic device.
  • the electronic device When the user turns it on again, the electronic device directly enters the second power saving mode, which can make the electronic device can continue to be used.
  • the method further includes: in the second power saving mode, the electronic device detects that the battery power is exhausted, and the electronic device shuts down.
  • the method further includes: in the second power saving mode, when the electronic device detects that the battery power is increased to a third power level, the method further includes: The electronic device turns off the boost circuit, wherein the third electric quantity is greater than the second electric quantity.
  • the electronic device when the electronic device detects that the battery power is a third power greater than the second power, it can silently exit the second power saving mode and display the normal system desktop, so that the user can normally Use electronic devices to make the user experience better.
  • the second power amount is 1%.
  • an electronic device will prompt the user to shut down when the battery power is 1%.
  • the electronic device can enter the second power-saving mode, thereby extending the life of the electronic device. Length of use.
  • an electronic device including: one or more processors; one or more memories; the one or more memories store one or more computer programs, and the one or more computer programs include instructions , when the instruction is executed by one or more processors, the power saving method as described in the first to third aspects and any possible implementation thereof is executed.
  • a power saving device including a method for implementing the first to third aspects and any possible implementation method thereof.
  • a chip in a sixth aspect, includes a processor and a communication interface.
  • the communication interface is used to receive signals and transmit the signals to the processor.
  • the processor processes the signals.
  • the power saving method as described in the first aspect to the third aspect and any possible implementation manner thereof is executed.
  • a computer-readable storage medium characterized in that computer instructions are stored in the computer-readable storage medium, and when the computer instructions are run on a computer, the results of the first aspect to the third aspect are achieved.
  • the power saving method described in any aspect and any possible implementation thereof is executed.
  • a computer program product includes computer program code.
  • the computer program product includes computer program code.
  • Figure 1 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • FIG. 2 is a schematic diagram of the software structure of the electronic device provided by the embodiment of the present application.
  • Figure 3 is a schematic diagram of a set of GUIs provided by an embodiment of the present application.
  • Figure 4 is a schematic diagram of a set of GUIs provided by an embodiment of the present application.
  • Figure 5 is a schematic diagram of a set of GUIs provided by an embodiment of the present application.
  • Figure 6 is a schematic diagram of a set of GUIs provided by an embodiment of the present application.
  • Figure 7 is a schematic diagram of a set of GUIs provided by an embodiment of the present application.
  • Figure 8 is a schematic diagram of a set of GUIs provided by an embodiment of the present application.
  • Figure 9 is a schematic diagram of a set of GUIs provided by an embodiment of the present application.
  • FIG. 10 is a schematic flowchart of a method for entering the emergency power saving mode provided by an embodiment of the present application.
  • FIG. 11 is a schematic flow chart of another method of entering the emergency power saving mode provided by an embodiment of the present application.
  • FIG. 12 is a schematic flow chart of another method of entering the emergency power saving mode provided by an embodiment of the present application.
  • FIG. 13 is a schematic flow chart of a method for exiting the emergency power saving mode provided by an embodiment of the present application.
  • FIG. 14 is a schematic flow chart of another method for exiting the emergency power saving mode provided by an embodiment of the present application.
  • FIG. 15 is a schematic flow chart of another method for exiting the emergency power saving mode provided by an embodiment of the present application.
  • Figure 16 is a schematic flow chart of a power saving method provided by an embodiment of the present application.
  • Figure 17 is a schematic flow chart of another set of power saving methods provided by an embodiment of the present application.
  • the method of controlling power in the embodiments of the present application can be applied to smartphones, tablet computers, notebook computers, personal computers (PCs), ultra-mobile personal computers (UMPCs), netbooks, and personal digital assistants.
  • PCs personal computers
  • UMPCs ultra-mobile personal computers
  • netbooks netbooks
  • PDA personal digital assistant
  • vehicle-mounted equipment wearable devices and other electronic devices, and can also be used in mobile devices such as cars and robots.
  • FIG. 1 shows a schematic structural diagram of an electronic device 100 .
  • the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2 , mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone interface 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, and Subscriber identification module (SIM) card interface 195, etc.
  • SIM Subscriber identification module
  • the sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light. Sensor 180L, bone conduction sensor 180M, etc.
  • the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100 .
  • the electronic device 100 may include more or fewer components than shown in the figures, or some components may be combined, some components may be separated, or some components may be arranged differently.
  • the components illustrated may be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units.
  • the processor 110 may include an application processor.
  • processor AP
  • modem processor graphics processing unit (GPU), image signal processor (ISP), controller, memory, video codec, digital signal processor (digital signal processor (DSP), baseband processor, and/or neural network processing unit (NPU), etc.
  • DSP digital signal processor
  • NPU neural network processing unit
  • different processing units can be independent devices or integrated in one or more processors.
  • the controller may be the nerve center and command center of the electronic device 100 .
  • the controller can generate operation control signals based on the instruction operation code and timing signals to complete the control of fetching and executing instructions.
  • the processor 110 may also be provided with a memory for storing instructions and data.
  • the memory in processor 110 is cache memory. This memory may hold instructions or data that have been recently used or recycled by processor 110 . If the processor 110 needs to use the instructions or data again, it can be called directly from the memory. Repeated access is avoided and the waiting time of the processor 110 is reduced, thus improving the efficiency of the system.
  • processor 110 may include one or more interfaces.
  • Interfaces may include integrated circuit (inter-integrated circuit, I2C) interface, integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, pulse code modulation (pulse code modulation, PCM) interface, universal asynchronous receiver and transmitter (universal asynchronous receiver/transmitter (UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and /or universal serial bus (USB) interface, etc.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • UART universal asynchronous receiver and transmitter
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • USB universal serial bus
  • the I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (derail clock line, SCL).
  • SDA serial data line
  • SCL serial clock line
  • the I2S interface can be used for audio communication.
  • processor 110 may include multiple sets of I2S buses.
  • the processor 110 can be coupled with the audio module 170 through the I2S bus to implement communication between the processor 110 and the audio module 170 .
  • the PCM interface can also be used for audio communications to sample, quantize and encode analog signals.
  • the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface.
  • the UART interface is a universal serial data bus used for asynchronous communication.
  • the bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication.
  • a UART interface is generally used to connect the processor 110 and the wireless communication module 160 .
  • the MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193 .
  • the GPIO interface can be configured through software.
  • the GPIO interface can be configured as a control signal or as a data signal.
  • the GPIO interface can be used to connect the processor 110 with the camera 193, display screen 194, wireless communication module 160, audio module 170, sensor module 180, etc.
  • the USB interface 130 is an interface that complies with the USB standard specification, and may be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc.
  • the USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transmit data between the electronic device 100 and peripheral devices.
  • the interface connection relationships between the modules illustrated in the embodiments of the present application are only schematic illustrations and do not constitute a structural limitation of the electronic device 100 .
  • the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
  • the charging management module 140 is used to receive charging input from the charger.
  • the charger can be a wireless charger or a wired charger.
  • the charging management module 140 may receive charging input from the wired charger through the USB interface 130 .
  • the charging management module 140 may receive wireless charging input through the wireless charging coil of the electronic device 100 . While the charging management module 140 charges the battery 142, it can also provide power to the electronic device through the power management module 141.
  • the power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110.
  • the wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
  • the mobile communication module 150 can provide solutions for wireless communication including 2G/3G/4G/5G applied on the electronic device 100 .
  • a modem processor may include a modulator and a demodulator.
  • the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal.
  • the demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the application processor outputs sound signals through audio devices (not limited to speaker 170A, receiver 170B, etc.), or displays images or videos through display screen 194. frequency.
  • the modem processor may be a stand-alone device.
  • the modem processor may be independent of the processor 110 and may be provided in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 can provide applications on the electronic device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), Bluetooth (bluetooth, BT), low power consumption Bluetooth (bluetooth low energy, BLE), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions.
  • WLAN wireless local area networks
  • Wi-Fi wireless fidelity
  • Bluetooth bluetooth, BT
  • BLE Bluetooth low power consumption Bluetooth
  • global navigation satellite system global navigation satellite system
  • FM frequency modulation
  • NFC near field communication technology
  • infrared technology infrared, IR
  • the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology.
  • the electronic device 100 implements display functions through a GPU, a display screen 194, an application processor, and the like.
  • the GPU is an image processing microprocessor and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering.
  • Processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
  • the display screen 194 is used to display images, videos, etc.
  • Display 194 includes a display panel.
  • the display panel can use a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (active-matrix organic light-emitting diode).
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • active-matrix organic light-emitting diode active-matrix organic light-emitting diode
  • the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
  • the electronic device 100 can implement the shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
  • the ISP is used to process the data fed back by the camera 193.
  • Camera 193 is used to capture still images or video.
  • Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals.
  • Video codecs are used to compress or decompress digital video.
  • Electronic device 100 may support one or more video codecs.
  • the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100.
  • an external memory card such as a Micro SD card
  • Internal memory 121 may be used to store computer executable program code, which includes instructions.
  • the processor 110 executes instructions stored in the internal memory 121 to execute various functional applications and data processing of the electronic device 100 .
  • the electronic device 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone interface 170D, and the application processor. Such as music playback, recording, etc.
  • the audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals.
  • Speaker 170A also called “speaker” is used to convert audio electrical signals into sound signals.
  • Receiver 170B also called “earpiece” is used to convert audio electrical signals into sound signals.
  • Microphone 170C also called “microphone” or “microphone”, is used to convert sound signals into electrical signals.
  • the headphone interface 170D is used to connect wired headphones.
  • the pressure sensor 180A is used to sense pressure signals and can convert the pressure signals into electrical signals.
  • pressure sensor 180A may be disposed on display screen 194 .
  • the gyro sensor 180B may be used to determine the motion posture of the electronic device 100 .
  • Air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
  • the acceleration sensor 180E can detect the acceleration of the electronic device 100 in various directions (generally three axes).
  • Distance sensor 180F for measuring distance.
  • Fingerprint sensor 180H is used to collect fingerprints.
  • Touch sensor 180K also called “touch panel”.
  • the touch sensor 180K can be disposed on the display screen 194.
  • the touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen”.
  • Bone conduction sensor 180M can acquire vibration signals.
  • the bone conduction sensor 180M can acquire the vibration signal of the vibrating bone mass of the human body's vocal part.
  • the bone conduction sensor 180M can also contact the human body's pulse and receive blood pressure beating signals.
  • the buttons 190 include a power button, a volume button, etc.
  • the motor 191 can generate vibration prompts.
  • the indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, or may be used to indicate messages, missed calls, notifications, etc.
  • the SIM card interface 195 is used to connect a SIM card.
  • the software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture.
  • the embodiment of this application takes the Android system with a layered architecture as an example to illustrate the software structure of the electronic device 100 .
  • FIG. 2 is a software structure block diagram of the electronic device 100 according to the embodiment of the present application.
  • the layered architecture divides the software into several layers, and each layer has clear roles and division of labor.
  • the layers communicate through software interfaces.
  • the Android system is divided into four layers, from top to bottom: application layer, application framework layer, Android runtime and system libraries, and kernel layer.
  • the application layer can include a series of application packages.
  • the application package can include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, wallet, and mobile phone manager.
  • the mobile phone manager can restrict the user's use of applications of the electronic device when the electronic device enters the emergency power saving mode.
  • the application framework layer provides an application programming interface (API) and programming framework for applications in the application layer.
  • API application programming interface
  • the application framework layer includes some predefined functions.
  • the application framework layer can include window manager, content provider, view system, phone manager, resource manager, notification manager, power management service, battery management service, etc.
  • a window manager is used to manage window programs.
  • the window manager can obtain the display size, determine whether there is a status bar, lock the screen, capture the screen, etc.
  • Content providers are used to store and retrieve data and make this data accessible to applications.
  • Said data can include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
  • the view system includes visual controls, such as controls that display text, controls that display pictures, etc.
  • a view system can be used to build applications.
  • the display interface can be composed of one or more views.
  • a display interface including a text message notification icon may include a view for displaying text and a view for displaying pictures.
  • the phone manager is used to provide communication functions of the electronic device 100 .
  • call status management including connected, hung up, etc.
  • the resource manager provides various resources to applications, such as localized strings, icons, pictures, layout files, video files, etc.
  • the notification manager allows applications to display notification information in the status bar, which can be used to convey notification-type messages and can automatically disappear after a short stay without user interaction.
  • the notification manager is used to notify download completion, message reminders, etc.
  • the notification manager can also be notifications that appear in the status bar at the top of the system in the form of charts or scroll bar text, such as notifications for applications running in the background, or notifications that appear on the screen in the form of conversation windows. For example, text information is prompted in the status bar, a beep sounds, the electronic device vibrates, the indicator light flashes, etc.
  • Power management services can include querying interfaces and opening/closing interfaces.
  • the query interface is used by the desktop process to query whether there is a boost circuit.
  • the on/off interface is used by electronic devices to turn the boost circuit on or off.
  • Battery management services may include exit interfaces.
  • the exit interface can be used by the electronic device to send a broadcast message to exit the emergency power saving mode to the mobile phone manager and the desktop process through the exit interface.
  • Android runtime includes core libraries and virtual machines. Android runtime is responsible for the scheduling and management of the Android system.
  • the core library contains two parts: one is the functional functions that need to be called by the Java language, and the other is the core library of Android.
  • the application layer and application framework layer run in virtual machines.
  • the virtual machine executes the java files of the application layer and application framework layer into binary files.
  • the virtual machine is used to perform object life cycle management, stack management, thread management, security and exception management, and garbage collection and other functions.
  • System libraries can include multiple functional modules. For example: surface manager (surface manager), media libraries (media libraries), 3D graphics processing libraries (for example: OpenGL ES), 2D graphics engines (for example: SGL), desktop processes (systemUI, syeUI), etc.
  • surface manager surface manager
  • media libraries media libraries
  • 3D graphics processing libraries for example: OpenGL ES
  • 2D graphics engines for example: SGL
  • desktop processes systemUI, syeUI
  • the surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications.
  • the media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc.
  • the media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
  • the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, composition, and layer processing.
  • 2D Graphics Engine is a drawing engine for 2D drawing.
  • systemUI is used to manage the desktop of electronic devices, detect the power of electronic devices, etc.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer at least includes display driver, camera driver, audio driver, sensor driver, boost circuit driver, power driver, etc.
  • the usage time of electronic devices depends on the battery power. In order to fully extend the standby time of electronic devices using limited power, various manufacturers have launched a variety of power-saving modes. Generally, when the battery power of an electronic device reaches a preset power level (eg, 1%), the electronic device will automatically shut down and become unusable.
  • a preset power level eg, 1%
  • embodiments of the present application provide a power saving method and electronic equipment.
  • This technical solution can further limit the use of the user's electronic equipment on the basis of making full use of the battery power of the electronic equipment, thereby improving the performance of the electronic equipment when the power is low. The duration of use below.
  • Figure 3 is a schematic diagram of a set of graphical user interfaces (graphical user interface, GUI) provided by an embodiment of the present application. Among them, (a) to (f) in FIG. 3 show the process of the user using the emergency power saving mode.
  • GUI graphical user interface
  • the GUI is the display desktop 310 of the mobile phone.
  • the display desktop 310 may include icons of multiple application programs installed by the user. After the mobile phone detects the user's click on the icon 311 of the settings application, the GUI shown in (b) of Figure 3 can be displayed.
  • the GUI is a display interface 320 for settings of the mobile phone.
  • the display interface 320 may include multiple setting options, such as biometrics and passwords, applications and services, battery, storage, security, and so on.
  • the GUI shown in (c) in Figure 3 can be displayed.
  • the GUI is a battery display interface 330.
  • the display interface 330 can include multiple modes supported by the mobile phone, for example, it can include performance mode 331, power saving mode 332, and super power saving 333. and emergency power saving 334. The user can select different modes according to needs.
  • the display interface 330 can also include a battery percentage display mode, more battery settings, etc.
  • the GUI is the display interface 340 when the mobile phone enters the emergency power saving mode.
  • the display interface 340 may include a phone App, an information App, and App1 and App2.
  • the App1 and App2 may be payment Apps. , such as Huawei Pay;
  • the display interface 340 can display the payment QR code or barcode of the App1 and App2;
  • the display interface 340 can also include an exit function button 341 for exiting the emergency power saving mode.
  • the GUI shown in (e) in Figure 3 can be displayed.
  • the user can use the applications in the display interface 340 to make calls, send text messages, make payments and other basic functions, but the user is restricted from using other applications to satisfy the requirements as much as possible. Users can further extend the usage time while meeting their basic needs.
  • a text prompt box 360 can pop up in the display interface 340 of the mobile phone.
  • the text prompt box 360 can include the text content "Do you want to exit the emergency power saving mode?", and the text prompt box can also include Cancel button 361 and exit button 362.
  • the GUI shown in (f) in Figure 3 can be displayed.
  • the mobile phone After the mobile phone detects that the user clicks the exit button 362, if the battery power of the mobile phone is greater than the preset value at this time, the mobile phone can display the normal system desktop.
  • a text prompt box 350 may pop up in the display interface 340 of the mobile phone.
  • the text prompt box 350 may include the text content "The phone will shut down in 30 seconds.”
  • the battery setting interface in the mobile phone provides the user with multiple modes, including the emergency power saving mode, so that the user can choose to enter the emergency power saving mode in extreme circumstances to maximize the improvement. How long the phone has been used.
  • FIG. 4 is a schematic diagram of another set of GUIs provided by an embodiment of the present application. Among them, the process of the user using the emergency power saving mode is shown from (a) to (d) in FIG. 4 .
  • the GUI is the display interface 430 of the battery of the mobile phone.
  • the display interface 430 can include multiple modes supported by the mobile phone, for example, it can include performance mode 431, power saving mode 432, super power saving 433.
  • the display interface 430 can also include battery percentage display mode, more Battery settings and more.
  • the super power saving 433 in the display interface 430 of the mobile phone may further include an emergency power saving 435.
  • the mobile phone detects that the user clicks the function button 436 in the emergency power saving 435, it may display The GUI shown in (c) in Figure 4.
  • a text prompt box 450 can pop up in the display interface 430 of the mobile phone.
  • the text content "Do you want to enter the emergency power saving mode?" is displayed.
  • the text prompt box 450 may also include function controls 451 and 452. When the mobile phone detects the user's click on the function control 451, it may display (d in Figure 4 ).
  • the GUI is the display interface 440 when the mobile phone enters the emergency power saving mode. Please refer to the relevant description in (d) in Figure 3.
  • the emergency power saving mode is a further power saving solution under the super power saving mode.
  • the emergency power saving mode can be further selected.
  • the phone can enter emergency power saving mode.
  • the phone can enter super power saving mode.
  • a text prompt box may pop up to prompt the user whether to enter the emergency power saving mode.
  • the mobile phone can enter the emergency power saving mode.
  • the mobile phone calls the shutdown interface to shut down.
  • the mobile phone automatically enters the emergency power saving mode.
  • FIG. 5 is a schematic diagram of another set of GUIs provided by an embodiment of the present application. Among them, the process of the mobile phone entering the emergency power saving mode is shown from (a) to (d) in FIG. 5 .
  • the mobile phone when the mobile phone detects that the battery power is lower than a preset value, such as 10%, the mobile phone can enter the super power saving mode.
  • a preset value such as 10%
  • the GUI is the display interface 220 when the mobile phone enters the super power saving mode.
  • the display interface 220 may include a phone App and a text message App.
  • the display interface 220 may also include add function controls 223 and 224, exit function control 221, and edit function control 222.
  • the mobile phone When the user clicks on the exit function 221, the mobile phone can exit the super power saving mode; when the user clicks on the add function control 223 or 224, the user can select the application they wish to add in the pop-up interface, that is, the mobile phone can be used in the super power saving mode.
  • Application programs when the user clicks on the editing function control 222, the application programs in the display interface 220 can be selectively deleted.
  • the mobile phone can display a GUI as shown in (c) of Figure 5 .
  • a text prompt box 250 can pop up in the display interface 220 of the mobile phone.
  • the text prompt box 250 can display the text content "Do you want to enter the emergency power saving mode?".
  • the text prompt box 250 can also display It includes function controls 251 and 252. When the mobile phone detects the user's click on function control 251, the GUI shown in (d) in Figure 5 can be displayed.
  • the mobile phone when the mobile phone detects that the battery level is 1%, it can also directly enter the emergency power saving mode, which is not limited by the embodiments of this application.
  • the mobile phone when the mobile phone detects that the battery level is 1%, it can also first determine whether it supports the emergency power saving mode. If it supports it, it directly enters the emergency power saving mode. If it does not support it, it can directly shut down the phone.
  • the GUI is the display interface 230 when the mobile phone enters the emergency power saving mode.
  • the relevant description of (d) in FIG. 4 please refer to the relevant description of (d) in FIG. 4 .
  • the user when the user is in the super power saving mode and the power reaches a preset value, the user can enter the emergency power saving mode.
  • the emergency power saving mode the user will be restricted to only use applications in the display interface.
  • FIG. 6 is a schematic diagram of another set of GUIs provided by an embodiment of the present application. Among them, (a) to (d) in FIG. 6 show the process of the mobile phone from entering the emergency power saving mode to exiting the emergency power saving mode.
  • the GUI is the display desktop 510 of the mobile phone.
  • a text prompt box 520 can pop up in the display desktop 510 .
  • the text prompt box 520 may display the text content "The phone will shut down in 60 seconds! Whether to enter the emergency power saving mode.”
  • the text prompt box 520 may also include function controls 521 and 522.
  • the GUI shown in (b) in Figure 6 can be displayed.
  • the mobile phone when the mobile phone detects that the user clicks on the function control 522, the mobile phone can display the text content "The mobile phone will shut down in 60 seconds", or the mobile phone can directly call the shutdown interface to shut down.
  • the mobile phone when the mobile phone detects that the battery power is reduced to 1%, it can also voice prompt the user whether to enter the emergency power saving mode. When the user answers “yes” or “enter the emergency power saving mode", etc., it is used to indicate " When the words "OK” are spoken, the mobile phone can display as shown in Figure 6 The GUI shown in (b). Alternatively, the mobile phone can also provide voice prompts and so on while displaying the text prompt box.
  • the user may be prompted whether to enter the emergency power saving mode by popping up a card.
  • the GUI is the display interface 530 when the mobile phone enters the emergency power saving mode.
  • the display interface 530 may include a phone App, a messaging App, App1, and App2.
  • the App1 and App2 may be payment Apps, such as Huawei Pay, WeChat Pay, Alipay Pay, etc.
  • the display interface 530 may also include an exit function button 531 .
  • the display interface 530 can display the payment QR code or barcode of App1 and App2, thereby facilitating the user to make direct payment; or, by clicking on the icon of the QR code or barcode to enter the payment interface, etc.
  • the application examples are not limiting.
  • the display interface 530 may also display only the phone App, the information App, and App1 or the phone App, the information App, and App2.
  • the mobile phone manager in the mobile phone can close all running applications and only allow the user to use some applications in the emergency power saving mode. Or, when the mobile phone enters the emergency power saving mode, the mobile phone manager in the mobile phone can close all applications except the applications in the emergency power saving mode to save power consumption of the mobile phone.
  • a text prompt box 560 can pop up in the display interface of the mobile phone.
  • the text prompt box 560 can include the text content "Do you want to exit the emergency power saving mode?".
  • the text prompt box 560 can also include Cancel button 561 and exit button 562. After the mobile phone detects the user's operation of clicking the exit button 562, the GUI shown in (d) in Figure 6 can be displayed.
  • a text prompt box 550 pops up in the mobile phone display interface 530, and the text prompt box 550 can display the text content "The phone will shut down in 30 seconds.”
  • the text content in the text prompt box 550 may also be that the mobile phone will shut down in 15 seconds, or 40 seconds, etc.
  • the embodiment of the present application does not limit the specific time period.
  • the user when the power of the mobile phone is reduced to 1%, the user can be prompted whether to enter the emergency power saving mode.
  • the user can switch to the emergency power saving interface to increase the use time of the electronic device. . Users can also actively click the exit function button to exit the emergency power saving mode, thereby retaining some power.
  • FIG. 7 is a schematic diagram of another set of GUIs provided by an embodiment of the present application. Among them, (a) to (c) in FIG. 7 illustrate the user's process from entering the emergency power saving mode to exiting the emergency power saving mode.
  • the mobile phone When the mobile phone is in the emergency power saving mode and detects that the last 1% of the battery is about to be exhausted, the mobile phone can display a GUI as shown in (c) in Figure 7 .
  • a text prompt box 560 may be displayed on the display interface 530 of the mobile phone.
  • the text prompt box 560 may include the text content "The battery is exhausted and the mobile phone will shut down in 30 seconds.”
  • the mobile phone can make a voice announcement saying "The battery is exhausted and the mobile phone will shut down in 30 seconds.”
  • the mobile phone when the mobile phone enters the emergency power-saving mode, when the last 1% of the mobile phone battery is exhausted, the mobile phone calls the shutdown interface to shut down. At this time, the mobile phone cannot be turned on without replenishing the battery.
  • FIG. 8 is a schematic diagram of another set of GUIs provided by an embodiment of the present application. Among them, (a) to (c) in FIG. 8 illustrate the user's process from entering the emergency power saving mode to exiting the emergency power saving mode.
  • the mobile phone When the mobile phone is in the emergency power-saving mode, the user charges the mobile phone.
  • the mobile phone detects that the battery power reaches the second preset value (such as 2%), the mobile phone can display the GUI as shown in (c) in Figure 8.
  • the GUI is the display desktop 840 of the mobile phone. That is to say, when the battery power reaches the second preset value, the mobile phone can automatically exit the emergency power saving mode and display the normal desktop. At this point, the user can use the phone normally.
  • the mobile phone manager does not need to restrict applications, and the user can normally use all applications installed on the mobile phone.
  • the mobile phone when the user charges the mobile phone and the mobile phone detects that the power reaches the second preset value (such as 2%), the mobile phone can automatically exit the emergency power saving mode and display the normal system desktop, thereby eliminating the need for the user to manually exit. Can improve user experience.
  • the second preset value such as 2%
  • Figure 9 is a schematic diagram of another set of GUIs provided by an embodiment of the present application.
  • the mobile phone detects that the battery power of the mobile phone has dropped, When it reaches the first preset value (such as 1%), a text prompt box 720 can pop up in the display interface 710 of the mobile phone, and the text prompt box 720 can display the text content "The battery is about to be exhausted, and the mobile phone will shut down in 60 seconds.” .
  • the first preset value such as 1%
  • the mobile phone when the mobile phone detects that the power of the mobile phone battery has dropped to 1%, the mobile phone can detect whether it supports the emergency power saving mode, such as whether there is a boost circuit in the mobile phone. When the mobile phone detects that there is no boost circuit, then It can be determined that the phone does not support emergency power saving mode. At this time, the phone can display "The battery is about to be exhausted and the phone will shut down in 60 seconds.”
  • the emergency power saving mode such as whether there is a boost circuit in the mobile phone.
  • the mobile phone when the mobile phone detects that the battery power has dropped to 1%, it can also give a voice prompt that "the battery is about to be exhausted and the mobile phone will shut down in 60 seconds.” Alternatively, the mobile phone can also provide voice prompts and so on while displaying the text prompt box.
  • FIG. 10 is a schematic flow chart for entering the emergency power saving mode according to an embodiment of the present application. As shown in FIG. 10 , the method 900 can be applied in an electronic device, and the method 900 can include steps 910 to 960 .
  • the electronic device detects that the battery power is the first preset value.
  • the first preset value may be 1%, 2%, etc., or the first preset value may also be a value range, such as 0.8% to 1.5%, etc., the embodiment of the present application does not be limited.
  • the first preset value is 1%. As the user uses the electronic device, when the battery power of the electronic device becomes 1%, it means that the battery power of the electronic device is extremely low at this time and will be shut down.
  • the desktop process (systemUI) in the electronic device can detect the battery power in real time, and when it is detected that the battery power is 1%, step 920 can be performed.
  • the electronic device determines whether there is a boost circuit.
  • the boost circuit may be a chopper (boost) boost circuit.
  • boost chopper
  • the last 1% of battery power can be released through this boost circuit.
  • boost circuit can also be other boost circuits, which are not limited by the embodiments of this application.
  • a power management service is provided in the application framework layer (framework, FWK).
  • the power management service may include a query interface for querying whether there is a boost circuit. Through the query interface, it may be queried whether There is a boost circuit.
  • the power management service also provides an on or off interface for turning on or off the boost circuit.
  • this step 920 is an optional step. In some embodiments, this step 920 may not be performed. By default, the electronic device has a boost circuit.
  • the electronic device can remind the user that it is about to shut down in the form of voice broadcast, text display, card, etc.
  • 60s in the prompt is preset, and may also be other values, such as 30s, etc., which are not limited by the embodiments of this application.
  • the electronic device confirms that there is a boost circuit, it prompts the user whether to enter the emergency power saving mode.
  • the electronic device may ask the user whether to enter the emergency power saving mode in the form of a text prompt box.
  • the mobile phone can prompt the user in a text prompt box 520 whether to enter the emergency power saving mode.
  • the user can choose to enter the emergency power saving mode, and then step 950 can be performed.
  • the mobile phone when the mobile phone detects that the user clicks on the function control 521 , the mobile phone can enter the emergency power saving mode.
  • the user may choose not to enter the emergency power saving mode, and then step 960 may be performed.
  • the electronic device can enter the emergency power saving mode and display the emergency power saving interface.
  • the mobile phone manager of the electronic device can close all running applications and only allow the user to use applications in the emergency power saving interface.
  • the display interface 530 of the mobile phone entering the emergency power saving mode includes a phone App, a messaging App, App1, and App2, thereby meeting the user's needs for making calls, sending text messages, and making payments.
  • Other applications cannot be used to extend the use time of the phone as much as possible.
  • step 960 can be performed.
  • the electronic device calls the shutdown interface to shut down. Electronic devices cannot be turned on without charging.
  • the electronic device when the user chooses not to enter the emergency power saving mode, can also call the shutdown interface to shut down, but the As long as the battery still has 1% power left, the electronic device can be turned on according to the user's power-on operation after shutting down. At this time, the electronic device can directly enter the emergency power-saving mode after being turned on.
  • the electronic device when the electronic device detects that the battery power reaches 1%, it can prompt the user whether to enter the emergency power saving mode.
  • the user When the user chooses to enter the emergency power saving mode, it switches to the emergency power saving interface to Extend the use time of electronic devices.
  • This technical solution allows electronic devices to make full use of the last 1% of battery power to extend the use time.
  • users can perform operations such as making phone calls, sending text messages, and making payments, thereby improving the user experience.
  • FIG. 11 is another schematic flow chart for entering the emergency power saving mode according to an embodiment of the present application. As shown in FIG. 11 , the method 1500 may be applied to an electronic device, and the method 1500 may include steps 1510 to 1570 .
  • the electronic device detects that the battery power is the first preset value and enters the super power saving mode.
  • the electronic device when the electronic device detects that the battery power is the first preset value, it can enter the super power saving mode.
  • the first preset value may be 10%, 5%, etc., and the embodiment of the present application does not limit the specific value of the first preset value.
  • the user can actively enter the super power saving mode.
  • the user can select the super power saving function control on the battery setting interface to enter the super power saving mode.
  • the display interface in the super power saving mode can be displayed. See (c) in Figure 5 .
  • the user can Click the Add button to add the application program you want to use to the display interface 220. For applications whose icons are not displayed in the display interface 220, the user will not be able to use them.
  • the electronic device detects that the battery power is a second preset value, where the second preset value is smaller than the first preset value.
  • the battery power is consumed from the first preset value to the second preset value.
  • the second preset value may be 1%, 2%, etc.
  • the embodiment of the present application is for this third preset value.
  • the specific value of the second preset value is not limited.
  • step 1530 may also be performed at this time.
  • the electronic device determines whether a boost circuit is present.
  • the electronic device confirms that there is a boost circuit, it prompts the user whether to enter the emergency power saving mode.
  • steps 1530 to 1570 can detect relevant descriptions of steps 920 to 960. For the sake of brevity, they will not be described again here.
  • the electronic device when the battery power reaches the first preset value, the electronic device can enter the super power saving mode. As the power is consumed, when the battery power reaches the second preset value (such as 1%), the electronic device can enter the super power saving mode.
  • the device can enter the emergency power-saving mode according to the user's choice or on its own, further restricting the user's use of electronic devices, thereby achieving two-stage power saving and further extending the use time of electronic devices.
  • FIG. 12 is another schematic flow chart for entering the emergency power saving mode according to an embodiment of the present application. As shown in FIG. 12 , the method 1000 can be applied to an electronic device, and the method 1000 can include steps 1010 to 1050 .
  • the electronic device detects that the battery power reaches the first preset value, and the user chooses not to enter the emergency power saving mode.
  • the first preset value may refer to the previous description, and may be 1%, for example.
  • step 1020 can be performed.
  • the electronic device calls the shutdown interface to shut down.
  • the electronic device can also detect whether there is a boost circuit. When it is determined that the boost circuit exists, the power-on action is performed; when it is determined that the boost circuit does not exist, the power-on action is not performed.
  • the electronic device enters the emergency power saving mode and displays the emergency power saving interface.
  • the electronic device directly enters the emergency power saving mode after being turned on, and the display interface displays the emergency power saving interface.
  • the emergency power saving interface can be referred to the relevant description in the previous article, and will not be described again for the sake of brevity.
  • the electronic device detects that the power is exhausted and calls the shutdown interface to shut down.
  • the electronic device In the emergency power saving mode, when the electronic device detects that the battery power is exhausted, it calls the shutdown interface to shut down. At this time, since the last 1% of the battery's power is also consumed, the electronic device cannot be turned on without charging.
  • the electronic device when the battery power of the electronic device reaches a preset value and the user chooses not to enter the emergency power saving mode, the electronic device performs a shutdown action.
  • the electronic device can activate the boost circuit to release the battery power, so that it can perform the power-on action, and directly enter the emergency power-saving mode after power-on to improve the efficiency of the device. How long electronic devices are used.
  • FIG. 13 is a schematic flow chart for exiting the emergency power saving mode according to an embodiment of the present application. As shown in FIG. 13 , the method 1100 can be applied in electronic devices, and the method 1100 includes steps 1110 to 1120 .
  • the electronic device detects that the user clicks to exit the function control in the emergency power saving mode.
  • the electronic device calls the shutdown interface to shut down.
  • the mobile phone calls the mobile phone interface to shut down, and displays the text content "The mobile phone will shut down in 30 seconds.”
  • the user can exit the emergency power-saving mode through active operation in the emergency power-saving mode, thereby retaining part of the power of the electronic device.
  • FIG. 14 is another schematic flow chart for exiting the emergency power saving mode provided by an embodiment of the present application. As shown in FIG. 14 , the method 1200 may be applied to an electronic device, and the method 1200 may include steps 1210 to 1220 .
  • the electronic device detects that the battery power is about to be exhausted, and prompts that it will shut down in 30 seconds.
  • the electronic device calls the shutdown interface to shut down.
  • the electronic device detects that the battery power is about to be exhausted, it may also prompt that it will shut down after 60 seconds.
  • the embodiment of the present application does not limit the specific time period.
  • the electronic device when the electronic device enters the emergency power saving mode, when the last 1% of the electronic device's power is exhausted, the electronic device calls the shutdown interface to shut down. At this time, without replenishing the power, Electronic devices cannot be turned on.
  • FIG. 15 is another schematic flow chart for exiting the emergency power saving mode provided by an embodiment of the present application. As shown in FIG. 15 , the method 1300 may be applied to an electronic device, and the method 1300 may include steps 1310 to 1320 .
  • the electronic device can detect changes in power in real time. When it is detected that the battery power is greater than the second preset value (eg, 2%), the electronic device can exit the emergency power saving mode.
  • the second preset value eg, 2%
  • the application framework layer in the electronic device includes an exit interface.
  • the electronic device can send a broadcast message to the electronic device manager and systemUI through the exit interface.
  • systemUI receives the broadcast message, it switches the electronic device desktop from the emergency power-saving mode display interface to the system desktop.
  • the electronic device manager releases restrictions on other applications and returns the electronic device to normal.
  • the electronic device displays the system desktop.
  • the mobile phone when the battery power is greater than the second preset value, the mobile phone can exit the emergency power saving mode and display the system desktop. At this time, Mobile Manager no longer restricts users' use of applications.
  • the electronic device when a user charges an electronic device and the electronic device detects that the power reaches a second preset value (such as 2%), the electronic device can automatically exit the emergency power saving mode and display the normal system desktop. This eliminates the need for users to manually exit and improves user experience.
  • a second preset value such as 2%
  • Figure 16 is a schematic flow chart of a power saving method provided by an embodiment of the present application. As shown in FIG. 16 , the method 1600 may be applied to an electronic device, and the method 1600 may include steps 1610 to 1620 .
  • the electronic device When the power-saving mode trigger condition is met, the electronic device enters the first power-saving mode.
  • the battery power of the electronic device when entering the first power-saving mode is the first power.
  • the power saving mode triggering condition may include the electronic device detecting that the battery power is reduced to the first power level, and/or the electronic device detecting the user's first operation, and the first operation is used to instruct the electronic device to enter the first power level.
  • a power saving mode may include the electronic device detecting that the battery power is reduced to the first power level, and/or the electronic device detecting the user's first operation, and the first operation is used to instruct the electronic device to enter the first power level.
  • the electronic device may be a mobile phone
  • the first power saving mode may be super power saving
  • the phone in response to the user clicking the super power saving function button 434 , the phone can enter super power saving mode.
  • the phone when the phone detects that the battery level is at the first level, it can also enter the super power saving mode.
  • the first power level may be 5%, 4%, and so on.
  • the phone detects that the battery level is the first level and the user clicks the OK button, it enters the super Power saving mode.
  • a prompt box can also pop up, and when no user selection operation is detected within a preset time period, the electronic device can also automatically enter the first power saving mode. model.
  • the electronic device In the first power saving mode, when the electronic device detects that the battery power is reduced to the second power, the electronic device enters the second power saving mode, where the second power is smaller than the first power.
  • the electronic device when the mobile phone is in the super power saving mode and detects that the battery power has dropped to the second power level, the electronic device can enter the emergency power saving mode.
  • the second electric quantity may be 0.8% to 1.2%, and the embodiment of the present application does not limit the specific value of the second electric quantity.
  • the electronic device when the electronic device detects the trigger condition of the power saving mode, it can enter the first power saving mode automatically or in response to the user's operation. In the first power saving mode, further, when the battery power is reduced to When the second power level is reached, the electronic device can enter the second power saving mode.
  • This technical solution can reduce the power consumption rate of electronic devices through multi-level power saving modes, thereby increasing the use time of electronic devices under low battery conditions.
  • the method 1600 may also include:
  • the electronic device When the electronic device detects that the battery power is reduced to the second power, it starts the boost circuit.
  • the electronic device when the electronic device detects that the battery power is reduced to the second power level, the electronic device can also activate the boost circuit. Through the boost circuit, the final power of the battery can be fully released, thereby extending the use time of the electronic device.
  • the first power-saving mode may be the same as the second power-saving mode, and when the battery power is detected as the second power, the boost circuit may be started.
  • This technical solution can further release battery power in power saving mode to extend the use time of electronic devices.
  • the electronic device when the electronic device detects the trigger condition of the power saving mode, it enters the first power saving mode. In the first power saving mode, if it detects that the battery power is reduced to the second power, the boost circuit can be started. . This technical solution can further release battery power in power saving mode to extend the use time of electronic devices.
  • the method 1600 may also include:
  • the electronic device displays a first display interface in the first power saving mode.
  • the first display interface includes preset application programs, and the applications in the first display interface can be added or removed.
  • the first display interface may be the display interface 220 of a mobile phone
  • the preset application may be a phone application and a text message application
  • the applications in the display interface 220 The program can be changed, such as adding some applications or removing some applications, and users of the applications in the display interface 220 can use them normally.
  • preset application program can also be other applications.
  • the first display interface may also include preset application components.
  • the electronic device has a dedicated first display interface in the first power saving mode.
  • the first display interface may include a preset application program, so that the user can use The preset application.
  • the user can also change, such as add or remove, the applications in the first display interface through operations, thereby improving the user's control over the electronic device and improving the user experience.
  • the method 1600 may also include:
  • the electronic device In response to the user's second operation, the electronic device adds the application program selected by the user to the first display interface, or removes one or more preset application programs from the first display interface.
  • the user can select other applications to be added to the display interface 220 in the pop-up interface by clicking the add function button 223 or 224.
  • the user can also click the edit button 222 to add The selected application is removed from the display interface 220.
  • This technical solution allows users to select the applications they need to use in power-saving mode, thereby improving users' control over electronic devices and improving user experience.
  • the method 1600 may also include:
  • the electronic device displays a second display interface in the second power-saving mode.
  • the second display interface includes preset applications and/or application components, and the applications and/or application components in the second display interface cannot be added or cannot be added. Remove.
  • the second display interface may be the display interface 230 of the mobile phone
  • the application program and/or application component may be a phone application program, a text message application program, and App1 and App2.
  • the applications and/or application components that can be included in the display interface 230 cannot be changed, such as added or removed. That is to say, in this emergency power-saving mode, the electronic device can only use these applications and/or application components in the display interface, and other applications will not be available, thereby reducing battery power consumption.
  • an application widget (application widget, app widget), which may also be called a card or a service card or a service component (service widget) or an application widget or an application widget, may be a small window or widget.
  • Application components are usually used to display important information of an application (Application) on the desktop of an electronic device to implement a certain business feature of the application. Users can use application components through shortcut gestures to achieve one-step direct service and reduce hierarchical jumps. the goal of.
  • application components based on Android operating system settings can be called ongoing cards, and application components based on Hongmeng operating system settings can be called service cards, such as (form ability, FA).
  • App1 is a service card for Huawei Pay.
  • the QR code or barcode of Huawei Pay can be displayed in the enlarged card to provide the user with payment functions.
  • the electronic device has a proprietary second display interface in the second power saving mode, and the second display interface may include preset application programs and/or application components. , and the second display interface cannot be changed, such as adding or removing applications and/or application components, etc.
  • the electronic device is further limited to only use preset applications and/or application cards, thereby ensuring that the user can use the basic functions of the electronic device while limiting the use of other applications, which can further reduce the cost of the electronic device.
  • the speed at which battery power is consumed increases the use time of electronic devices.
  • the electronic device enters the second power saving mode, including: in response to a third operation performed by the user in an interface displayed when the electronic device detects that the battery power is reduced to the second power level, the electronic device enters the second power saving mode.
  • the third operation may be an operation in which the user clicks a confirmation button in a prompt box that pops up on the electronic device.
  • the electronic device can also directly enter the second power saving mode.
  • a prompt box can pop up to the user, and when the user clicks to confirm, the electronic device can enter the second power saving mode.
  • activating the boost circuit includes: the electronic device detects whether the electronic device includes a boost circuit; and when it is determined that the electronic device includes the boost circuit, the electronic device activates the boost circuit.
  • the electronic device may not include a boost circuit. In this case, the electronic device may directly prompt that it is about to shut down.
  • the electronic device needs to first determine whether there is a boost circuit in the electronic device. When it is determined that the boost circuit exists, the boost circuit can be started. Through the boost circuit, the battery power can be effectively released and the battery can be improved. How long electronic devices are used.
  • the method 1600 may also include:
  • the electronic device In response to the user's fourth operation, the electronic device exits the second power saving mode and shuts down.
  • the fourth operation may be an operation in which the user clicks an exit button.
  • the fourth operation may be an operation in which the user clicks the exit button 562, and the mobile phone may exit the second power saving mode and prompt the user that the mobile phone will shut down in 30 seconds.
  • the user can click the exit button to exit the second power saving mode and shut down, thereby saving part of the battery power of the electronic device so that the user can use it when needed.
  • the method 1600 may also include:
  • the electronic device In response to the user's power-on operation, the electronic device enters the second power saving mode.
  • the electronic device when the electronic device shuts down the electronic device by clicking the exit button, there is still some power in the battery of the electronic device.
  • the electronic device When the user turns it on again, the electronic device directly enters the second power saving mode, which can make the electronic device can continue to be used.
  • the method 1600 may further include: in the second power saving mode, the electronic device detects that the battery power is exhausted, and the electronic device shuts down.
  • the method 1600 may further include: in the second power saving mode, when the electronic device detects that the battery power is increased to a third power level, the electronic device exits the second power saving mode, where the third power level is greater than the third power level. Second power.
  • the electronic device may display the system desktop when exiting the second power saving mode.
  • the system desktop may be the display interface 840 of the mobile phone.
  • the system desktop may be the main interface of the mobile phone, for example, it may be the main interface displayed after the screen lock password is entered after the mobile phone is turned on.
  • the third power level may be 2%, 3%, etc.
  • the electronic device when the electronic device detects that the battery power is a third power greater than the second power, it can silently exit the second power saving mode and display the normal system desktop, so that the user can normally Use electronic devices that enable users to Better experience.
  • the method 1600 further includes:
  • the electronic device when the electronic device detects that the battery power is increased to the third power level, the electronic device exits the second power saving mode and displays the system desktop, where the third power level is greater than the first power level.
  • the system desktop when the battery power increases to a third power level that is greater than the first power level, the system desktop can be automatically displayed and the user can resume normal use.
  • This technical solution can prevent the electronic device from reentering the second power-saving mode when the power drops rapidly when using high-power-consuming applications, thus improving the user experience.
  • the method 1600 may also include:
  • the boost circuit is turned off.
  • the boost circuit when the electronic device exits the second power saving mode, the boost circuit can be turned off, thereby saving the power consumption of the electronic device.
  • the second charge is 1%.
  • an electronic device will prompt the user to shut down when the battery power is 1%.
  • the electronic device can enter the second power-saving mode, thereby extending the life of the electronic device. Length of use.
  • Figure 17 is a schematic flow chart of a power saving method provided by an embodiment of the present application. As shown in FIG. 17 , the method 1700 may be applied to an electronic device, and the method 1700 may include steps 1710 to 1720 .
  • the electronic device detects that the battery power is reduced to a second power level, where the second power level is the battery power level when the electronic device prompts that it is about to shut down.
  • the electronic device activates the boost circuit.
  • the second power level is 1%.
  • the electronic device in the present application can activate the boost circuit.
  • the second electric quantity can also be other values, which are not limited in the embodiments of this application.
  • the electronic device can activate the boost circuit to release the battery power to extend the usage time.
  • the electronic device when the electronic device detects that the battery power is reduced to the second power level, it can enter the second power saving mode. In response to the battery power being reduced to the second power level, the electronic device activates the boost circuit. In this technical solution, by activating the boost circuit, the battery power can be fully used, further extending the use time of the electronic device.
  • the electronic device may be in the normal mode or the above-mentioned super power saving mode before the battery power is reduced to the second power level, which is not limited by the embodiments of this application.
  • the electronic device when the battery power is reduced to the second power level, the electronic device can activate the boost circuit, so that the battery power can be fully used, further extending the use time of the electronic device.
  • the method 1700 may also include:
  • the electronic device enters the second power saving mode when detecting that the battery power is reduced to the second power level
  • the electronic device displays a second display interface in the second power-saving mode, wherein the second display interface includes preset applications and/or application components, and the applications and/or application components in the second display interface cannot be added. or irremovable.
  • the second display interface may be the display interface 530 of the mobile phone
  • the preset application and/or application card may be a phone application, a text message application, App1, and App2.
  • the phone can only use these applications and/or application cards. In other words, in this emergency power-saving mode, other applications will not be available, thus reducing battery power consumption.
  • the electronic device when the electronic device detects that the battery power is reduced to the second power, it can enter the second power saving mode.
  • the electronic device In the second power saving mode, the electronic device has a dedicated second display interface.
  • the second display interface may include preset applications and/or application cards, and the electronic device may only use the preset applications. Program and/or application cards.
  • the electronic device when the battery power is low, the electronic device can enter the second power-saving mode and display a proprietary interface, restricting the user's use of the electronic device, and further increasing the use time of the electronic device.
  • the electronic device enters the second power saving mode, including: in response to the user's first operation in the first display interface, the electronic device enters the second power saving mode, and the first display interface is the electronic device entering the second power saving mode. 2. The interface before power saving mode.
  • the first display interface may be the display interface 510 of the mobile phone, and the first operation may be the operation of the user clicking on the function control 521 .
  • the electronic device can also directly enter the second power saving mode.
  • a prompt box can pop up to the user, and when the user clicks to confirm, the electronic device can enter the second power saving mode.
  • the electronic device starts the boost circuit, including: the electronic device detects whether the electronic device includes a boost circuit; and when it is determined that the electronic device includes the boost circuit, the electronic device starts the boost circuit.
  • the electronic device may not include a boost circuit. In this case, the electronic device may directly prompt that it is about to shut down.
  • the electronic device needs to first determine whether there is a boost circuit in the electronic device. When it is determined that the boost circuit exists, the boost circuit can be started. Through the boost circuit, the battery power can be effectively released and the battery can be improved. How long electronic devices are used.
  • the method 1700 further includes:
  • the electronic device turns off the boost circuit and shuts down.
  • the second operation may be an operation in which the user clicks an exit button.
  • the second operation may be the user clicking the exit button 562, then the mobile phone can turn off the boost circuit and prompt the user that the mobile phone will shut down in 30 seconds.
  • the user can click the exit button to exit the second power saving mode and shut down, thereby saving part of the battery power of the electronic device so that the user can use it when needed.
  • the method 1700 further includes:
  • the electronic device In response to the user's power-on operation, the electronic device enters the second power saving mode.
  • the electronic device in response to the user's long press of the power button, the electronic device is powered on and directly enters the emergency power saving mode.
  • the electronic device when the electronic device shuts down the electronic device by clicking the exit button, there is still some power in the battery of the electronic device.
  • the electronic device When the user turns it on again, the electronic device directly enters the second power saving mode, which can make the electronic device can continue to be used.
  • the method 1700 may also include:
  • the electronic device detects that the battery power is exhausted, and the electronic device shuts down.
  • the electronic device in the second power saving mode, when the electronic device detects that the battery power is increased to a third power level, the electronic device turns off the boost circuit, where the third power level is greater than the second power level.
  • the system desktop when the electronic device exits the second power saving mode, the system desktop may be displayed.
  • the system desktop may be the display interface 840 of the mobile phone.
  • the system desktop may be the main interface of the mobile phone, for example, it may be the main interface displayed after the screen lock password is entered after the mobile phone is turned on.
  • the third power level may be 2%, 3%, etc.
  • the electronic device when the electronic device detects that the battery power is a third power greater than the second power, it can silently exit the second power saving mode and display the normal system desktop, so that the user can normally Use electronic devices to make the user experience better.
  • the second charge is 1%.
  • the embodiment of the present application also provides a power saving method, which can be applied to electronic devices, and the method can include steps 1810 to 1820.
  • the electronic device When the electronic device detects the power saving mode trigger condition, the electronic device displays a first display interface.
  • the first display interface includes preset applications, and the applications in the first display interface can be added or removed.
  • the battery power of the electronic device when entering the first power saving mode is the first power.
  • the electronic device may be a mobile phone
  • the first display interface may be the display interface 220 of the mobile phone.
  • the preset application can be a phone application and a text message application, and the applications in the display interface 220 can be changed, such as adding some applications or removing some applications.
  • the electronic device When the electronic device detects that the battery power continues to decrease to the second power level, the electronic device activates the boost circuit and displays the second display interface.
  • the second display interface includes preset applications and/or application components, and the second display Apps and/or app cards in the interface cannot be added or removed.
  • the second display interface may be the display interface 230 of a mobile phone.
  • the preset application or application card can be a phone application, a text message application, App1, and App2, and the applications or application cards that can be included in the display interface 230 cannot be changed, such as added or removed.
  • the first display interface may also include preset application components.
  • the electronic device when it detects the trigger condition of the power saving mode, it displays the first display interface, and the applications in the first display interface can be added or removed. After detecting that the battery power continues to decrease to the second power level, When the second display interface includes preset application programs and/or application components, the second display interface is displayed, and the application programs and/or application components in the second display interface cannot be added or removed.
  • the battery power when the battery power is low, the user's use of the electronic device can be restricted by levels, thereby reducing the consumption rate of the battery power of the electronic device; further, by activating the boost circuit, the battery of the electronic device can be The final power is fully released, further extending the use time of electronic devices.
  • the second display interface includes an exit button, and the method further includes:
  • the electronic device closes the boost circuit and shuts down.
  • the user can click the exit button to turn off the boost circuit and shut down the device, thereby saving part of the battery power of the electronic device so that the user can use it when needed.
  • the method further includes:
  • the electronic device activates the boost circuit and displays the second display interface.
  • the electronic device when the electronic device shuts down the electronic device by clicking the exit button, there is still some power in the battery of the electronic device.
  • the electronic device When the user turns it on again, the electronic device directly enters the second display interface, which can enable the electronic device to continue to use.
  • the method further includes:
  • the electronic device When the electronic device detects that the battery power is increased to the third power level, the electronic device turns off the boost circuit and displays the system desktop, where the third power level is greater than the second power level.
  • a normal system desktop when charging an electronic device, when the electronic device detects that the battery power is a third power level that is greater than the second power level, a normal system desktop can be displayed, so that the user can use the electronic device normally, making the user experience better. good.
  • the second charge is 1%.
  • An embodiment of the present application also provides an electronic device, including: one or more processors; one or more memories; the one or more memories store one or more computer programs, and the one or more computer programs include instructions , when the instruction is executed by one or more processors, the power saving method as described in any of the previous possible implementations is executed.
  • An embodiment of the present application also provides a chip.
  • the chip includes a processor and a communication interface.
  • the communication interface is used to receive signals and transmit the signals to the processor.
  • the processor processes the signals. This causes the power saving method described in any of the previous possible implementations to be executed.
  • This embodiment also provides a computer-readable storage medium.
  • Computer instructions are stored in the computer-readable storage medium.
  • the electronic device causes the electronic device to execute the above-mentioned related method steps to implement the above-mentioned embodiments. Ways to save power.
  • This embodiment also provides a computer program product.
  • the computer program product When the computer program product is run on a computer, it causes the computer to perform the above related steps to implement the power saving method in the above embodiment.
  • inventions of the present application also provide a device.
  • This device may be a chip, a component or a module.
  • the device may include a connected processor and a memory.
  • the memory is used to store computer execution instructions.
  • the processor can execute computer execution instructions stored in the memory, so that the chip performs the power saving method in each of the above method embodiments.
  • the electronic devices, computer-readable storage media, computer program products or chips provided in this embodiment are all used to execute the corresponding methods provided above. Therefore, the beneficial effects they can achieve can be referred to the above provided The beneficial effects of the corresponding methods will not be described again here.
  • the disclosed systems, devices and methods can be implemented in other ways.
  • the device embodiments described above are only illustrative.
  • the division of the units is only a logical function division. In actual implementation, there may be other division methods.
  • multiple units or components may be combined or can be integrated into another system, or some features can be ignored, or not implemented.
  • the coupling or direct coupling or communication connection between each other shown or discussed may be through some interfaces, and the indirect coupling or communication connection of the devices or units may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or they may be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional unit in various embodiments of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
  • the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium.
  • the technical solution of the present application is essentially or the part that contributes to the existing technology or the part of the technical solution can be embodied in the form of a software product.
  • the computer software product is stored in a storage medium, including Several instructions are used to cause a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of this application.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk and other media that can store program code. .

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Power Sources (AREA)

Abstract

本申请实施例提供了一种省电方法和电子设备,该省电方法可以应用于电子设备。该省电方法中,可以采用多级省电模式,电子设备在进入不同的省电模式时具有不同的电池电量。从而可以提升电子设备的使用时长。该省电方法中,还可以在电池电量降低为提示即将关机的电池电量时,启动升压电路,该技术方案可以充分利用电池电量,或者进一步降低电池电量的耗电速度,提升了电子设备在低电量下的使用时长。

Description

省电方法和电子设备
本申请要求于2022年07月29日提交中国专利局、申请号为202210907364.2、申请名称为“省电方法和电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请实施例涉及电子技术领域,并且更具体地,涉及一种省电方法和电子设备。
背景技术
电子设备的使用时长依赖电池的电量,为了使用有限电量充分延长电子设备的待机时间,各个厂商已经推出了省电模式。一般情况下,当电子设备的电池电量消耗到预设电量时,电子设备就会自动关机无法使用。
因此,如何在有限的电池电量下,提升电子设备的使用时长,成为需要解决的技术问题。
发明内容
本申请实施例提供一种省电方法和电子设备,该技术方案可以增加电池电量的使用时长,从而提升了电子设备在低电量下的使用时长。
第一方面,提供了一种省电方法,所述省电方法应用于电子设备,所述方法包括:所述电子设备在省电模式触发条件满足时,进入第一省电模式,所述电子设备在进入所述第一省电模式时的电池电量为第一电量;在所述第一省电模式下,所述电子设备检测到所述电池电量降低为第二电量时,进入第二省电模式,所述第二电量小于所述第一电量。
本申请实施例中,当电子设备检测到省电模式触发条件时,可以自动或响应于用户的操作进入第一省电模式,在该第一省电模式下,进一步地,当电池电量降低为第二电量时,电子设备可以进入第二省电模式。该技术方案可以通过多级省电模式,可以降低电子设备的耗电速度,从而提升了电子设备在低电量下的使用时长。
结合第一方面,在第一方面的一种实现方式中,所述省电模式触发条件包括所述电子设备检测到所述电池电量降低为第一电量,和/或,所述电子设备检测到用户的第一操作,所述第一操作用于指示所述电子设备进入第一省电模式。
本申请实施例中,电子设备可以在检测到电池电量降低为第一电量时,自动进入第一省电模式,和/或,也可以在检测到用户点击进入第一省电模式的操作时进入第一省电模式。
结合第一方面,在第一方面的一种实现方式中,所述方法还包括:所述电子设备在检测到所述电池电量降低为所述第二电量时,启动升压电路。
本申请实施例中,电子设备在检测到电池电量降低为第二电量时,还可以启动升压电路,通过该升压电路可以充分释放电池最后的电量,进而提升电子设备的使用时长。
在另一些实施例中,该第一省电模式可以和第二省电模式相同,在电池电量检测为第二电量时,可以启动升压电路。
结合第一方面,在第一方面的一种实现方式中,所述方法还包括:所述电子设备在所述第一省电模式下显示第一显示界面,所述第一显示界面包括预设的应用程序,且,所述第一显示界面中的应用程序可添加或可移除。
示例性地,该预设的应用程序可以是电话应用程序、短信应用程序等。
本申请实施例中,电子设备在第一省电模式下,具有该第一省电模式下的专有第一显示界面,该第一显示界面中可以包括预设的应用程序,从而用户可以使用该预设的应用程序。此外,用户还可以通过操作对第一显示界面中的应用程序进行更改如添加或移除,从而可以提升用户对电子设备的控制,提升了用户体验。
结合第一方面,在第一方面的一种实现方式中,所述方法还包括:响应于用户的第二操作,所述电子设备将用户选择的应用程序添加至所述第一显示界面,或者将所述预设的应用程序中的一个或多个从所述第一显示界面中移除。
示例性地,该第一显示界面中可以包括添加按钮或移除按钮,该第二操作可以是用户点击该添加按钮在弹出的界面中选择应用程序的操作,或者,该第二操作可以是点击移除按钮移除应用程序的操作。
该技术方案可以使得用户在省电模式下选择需要使用的应用程序,从而可以提升用户对电子设备的控制,提升了用户体验。
结合第一方面,在第一方面的一种实现方式中,所述方法还包括,所述电子设备在所述第二省电模式下显示第二显示界面,所述第二显示界面包括预设的应用程序和/或应用组件,且,所述第二显示界面中的应用程序和/或应用组件不可添加或不可移除。
示例性地,该预设的应用程序可以是电话应用程序、短信应用程序等,该应用组件可以是支付类应用程序的支付卡片,如二维码,条形码等,该应用卡片还可以是其他应用程序的卡片等。
本申请实施例中,电子设备在第二省电模式下,具有该第二省电模式下的专有第二显示界面,该第二显示界面中可以包括预设的应用程序和/或应用组件,且该第二显示界面不可更改如添加或移除应用程序和/或应用组件等。该技术方案中,进一步限定了电子设备仅能够使用预设的应用程序和/或应用卡片,从而可以在保证用户使用电子设备的基础功能的同时,限制使用其他应用程序,能够进一步降低电子设备的电池电量消耗的速度,提升电子设备的使用时长。
结合第一方面,在第一方面的一种实现方式中,所述电子设备进入第二省电模式,包括:响应于用户在所述电子设备检测到所述电池电量降低为所述第二电量时显示的界面中的第三操作,所述电子设备进入所述第二省电模式。
示例性地,该第三操作可以是用户在电子设备弹出的提示框中点击确认按钮的操作。
在一些实施例中,电子设备也可以直接进入第二省电模式。
本申请实施例中,电子设备在进入第二省电模式时,可以向用户弹出提示框,在用户点击确认时,可以进入第二省电模式。该技术方案可以提升用户的自主权,提升用户对电子设备的控制。
结合第一方面,在第一方面的一种实现方式中,所述启动升压电路,包括:所述电子设备检测所述电子设备是否包括所述升压电路;在确定所述电子设备包括所述升压电路时,所述电子设备启动所述升压电路。
本申请实施例中,电子设备在进入第二省电模式时,需要先确定电子设备中是否存在升压电路,在确定存在升压电路时,可以启动该升压电路,通过该升压电路可以使得电池电量得到有效释放,能够提升电子设备的使用时长。
在另一些实施例中,当电子设备检测到不存在升压电路时,可以调用关机接口关机。
结合第一方面,在第一方面的一种实现方式中,所述方法还包括:响应于用户的第四操作,所述电子设备退出所述第二省电模式并关机。
示例性地,该第四操作可以是用户点击退出按钮的操作。
本申请实施例中,用户可以通过点击退出按钮,退出第二省电模式并关机,从而可以保存电子设备的部分电池电量,使得用户在需要时使用。
在另一些实施例中,所述方法还包括:响应于用户的开机操作,所述电子设备进入所述第二省电模式。
本申请实施例中,当电子设备通过点击退出按钮使得电子设备关机时,电子设备的电池中还存在部分电量,当用户再次开机时,电子设备直接进入第二省电模式,可以使得该电子设备能够继续使用。
结合第一方面,在第一方面的一种实现方式中,所述方法还包括:在所述第二省电模式下,所述电子设备检测到电池电量耗尽,所述电子设备关机。
结合第一方面,在第一方面的一种实现方式中,所述方法还包括:在所述第二省电模式下,所述电子设备检测到所述电池电量提升为第三电量时,所述电子设备退出所述第二省电模式,其中,所述第三电量大于所述第二电量。
本申请实施例中,当为电子设备充电时,当电子设备检测到电池电量为大于第二电量值的第三电量时,可以静默退出第二省电模式,显示正常的系统桌面,从而用户可以正常使用电子设备,使得用 户体验更佳。
在另一些实施例中,所述方法还包括:在所述第二省电模式下,所述电子设备检测到所述电池电量提升为第三电量时,所述电子设备退出所述第二省电模式,其中,所述第三电量大于所述第一电量。
本申请实施例中,当电池电量提升为大于第一电量的第三电量时,可以自动显示系统桌面,恢复用户正常使用。该技术方案可以在用户使用功耗高的应用程序时,避免电量迅速下降使得电子设备重新进入第二省电模式,从而能够提升用户体验。
结合第一方面,在第一方面的一种实现方式中,所述方法还包括:在所述电子设备退出所述第二省电模式时,关闭所述升压电路。
本申请实施例中,当电子设备退出第二省电模式时,可以关闭升压电路,从而可以节省电子设备功耗。
结合第一方面,在第一方面的一种实现方式中,所述第二电量为1%。
通常情况下,电子设备在电池电量为1%时,会提示用户即将关机,而本申请实施例中,电池电量为1%时,电子设备可以进入第二省电模式,从而延长了电子设备的使用时长。
第二方面,提供了一种省电方法,所述省电方法应用于电子设备,所述方法包括:
所述电子设备检测到省电模式触发条件时,所述电子设备显示第一显示界面,所述第一显示界面中包括预设的应用程序,且,所述第一显示界面中的应用程序可添加或可移除,所述电子设备在进入所述第一省电模式时的电池电量为第一电量;
所述电子设备检测到电池电量继续降低为第二电量时,所述电子设备启动升压电路并显示第二显示界面,所述第二显示界面中包括预设的应用程序和/或应用组件,且所述第二显示界面中的应用程序和/或应用组件不可添加或不可移除。
本申请实施例中,电子设备在检测到省电模式触发条件时,显示第一显示界面,并且第一显示界面中的应用程序可添加或可移除,在检测到电池电量继续降低为第二电量时,显示包括预设的应用程序和/或应用卡片的第二显示界面,并且第二显示界面中的应用程序或应用卡片不可添加或不可移除。该技术方案中,可以在电池电量较低时,通过分级限制用户对电子设备的使用,从而可以降低电子设备的电池电量的消耗速度;进一步地,通过启动升压电路,可以使得电子设备电池的最后的电量充分释放,进一步提升了电子设备的使用时长。
应理解,该省电模式触发条件可以参见第一方面中的相关描述。
结合第二方面,在第二方面的一种实现方式中,所述第二显示界面中包括退出按钮,所述方法还包括:响应于用户点击所述退出按钮的操作,所述电子设备关闭所述升压电路并关机。
本申请实施例中,用户可以通过点击退出按钮,关闭升压电路并关机,从而可以保存电子设备的部分电池电量,使得用户在需要时使用。
结合第二方面,在第二方面的一种实现方式中,所述方法还包括:响应于用户的开机操作,所述电子设备启动所述升压电路并显示所述第二显示界面。
本申请实施例中,当电子设备通过点击退出按钮使得电子设备关机时,电子设备的电池中还存在部分电量,当用户再次开机时,电子设备直接进入第二显示界面,可以使得该电子设备能够继续使用。
结合第二方面,在第二方面的一种实现方式中,所述方法还包括:所述电子设备检测到所述电池电量提升为第三电量时,所述电子设备关闭所述升压电路,并显示系统桌面,其中,所述第三电量大于所述第二电量。
本申请实施例中,当为电子设备充电时,当电子设备检测到电池电量为大于第二电量的第三电量时,可以显示正常的系统桌面,从而用户可以正常使用电子设备,使得用户体验更佳。
结合第二方面,在第二方面的一种实现方式中,所述第二电量为1%。
通常情况下,电子设备在电池电量为1%时,会提示用户即将关机,而本申请实施例中,电池电量为1%时,电子设备可以进入第二省电模式,从而延长了电子设备的使用时长。
第三方面,提供了一种省电方法,所述省电方法应用于电子设备,所述方法包括:所述电子设备检测到电池电量降低为第二电量,其中,所述第二电量为所述电子设备提示即将关机时的电池电量;响应于所述电池电量降低为所述第二电量,所述电子设备启动升压电路。
本申请实施例中,当电子设备检测到电池电量降低为第二电量,响应于该电池电量降低为第二电量,电子设备启动升压电路。该技术方案中,通过启动升压电路,可以使得电池的电量得到充分使用, 进一步提升了电子设备的使用时长。
结合第三方面,在第三方面的一种实现方式中,所述方法还包括:所述电子设备在检测到所述电池电量降低为所述第二电量时,进入第二省电模式;所述电子设备在所述第二省电模式下显示第二显示界面,其中,所述第二显示界面包括预设的应用程序和/或应用组件,且,所述第二显示界面中的应用程序和/或应用组件不可添加或不可移除,其中,所述电子设备仅可使用所述第二显示界面中的应用程序和/或应用组件。
本申请实施例中,在该第二省电模式下,电子设备具有专有的第二显示界面,在该第二显示界面可以包括预设的应用程序和/或应用组件,且电子设备仅可使用该预设的应用程序和/或应用组件。该技术方案中,当电池电量较低时,电子设备可以进入第二省电模式并显示专有界面,限制用户对电子设备的使用进一步提升了电子设备的使用时长。
结合第三方面,在第三方面的一种实现方式中,所述电子设备进入所述第二省电模式,包括:响应于用户在第一显示界面中的第一操作,所述电子设备进入第二省电模式,所述第一显示界面为所述电子设备在进入第二省电模式之前的界面。
示例性地,该第一操作可以是用户在电子设备弹出的提示框中点击确认按钮的操作。
在一些实施例中,电子设备也可以直接进入第二省电模式。
本申请实施例中,电子设备在进入第二省电模式时,可以向用户弹出提示框,在用户点击确认时,可以进入第二省电模式。该技术方案可以提升用户的自主权,提升用户对电子设备的控制。
结合第三方面,在第三方面的一种实现方式中,所述电子设备启动升压电路,包括:所述电子设备检测所述电子设备是否包括所述升压电路;在确定所述电子设备包括所述升压电路时,所述电子设备启动所述升压电路。
本申请实施例中,电子设备需要先确定电子设备中是否存在升压电路,在确定存在升压电路时,可以启动该升压电路,通过该升压电路可以使得电池电量得到有效释放,能够提升电子设备的使用时长。
在另一些实施例中,当电子设备检测到不存在升压电路时,可以调用关机接口关机。
结合第三方面,在第三方面的一种实现方式中,所述方法还包括:响应于用户的第二操作,所述电子设备关闭所述升压电路并关机。
示例性地,该第二操作可以是用户点击退出按钮的操作。
本申请实施例中,用户可以通过点击退出按钮,退出第二省电模式并关机,从而可以保存电子设备的部分电池电量,使得用户在需要时使用。
结合第三方面,在第三方面的一种实现方式中,响应于用户的开机操作,所述电子设备进入所述第二省电模式。
本申请实施例中,当电子设备通过点击退出按钮使得电子设备关机时,电子设备的电池中还存在部分电量,当用户再次开机时,电子设备直接进入第二省电模式,可以使得该电子设备能够继续使用。
结合第三方面,在第三方面的一种实现方式中,所述方法还包括:在所述第二省电模式下,所述电子设备检测到电池电量耗尽,所述电子设备关机。
结合第三方面,在第三方面的一种实现方式中,所述方法还包括:在所述第二省电模式下,所述电子设备检测到所述电池电量提升为第三电量时,所述电子设备关闭所述升压电路,其中,所述第三电量大于所述第二电量。
本申请实施例中,当为电子设备充电时,当电子设备检测到电池电量为大于第二电量的第三电量时,可以静默退出第二省电模式,显示正常的系统桌面,从而用户可以正常使用电子设备,使得用户体验更佳。
结合第三方面,在第三方面的一种实现方式中,所述第二电量为1%。
通常情况下,电子设备在电池电量为1%时,会提示用户即将关机,而本申请实施例中,电池电量为1%时,电子设备可以进入第二省电模式,从而延长了电子设备的使用时长。
第四方面,提供了一种电子设备,包括:一个或多个处理器;一个或多个存储器;该一个或多个存储器存储有一个或多个计算机程序,该一个或多个计算机程序包括指令,当该指令被一个或多个处理器执行时,使得如第一方面至第三方面及其任一种可能的实现方式中所述的省电方法被执行。
第五方面,提供了一种省电装置,包括用于实现如第一方面至第三方面及其任一种可能的实现方 式中所述的省电方法中的模块。
第六方面,提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口用于接收信号,并将所述信号传输至所述处理器,所述处理器处理所述信号,使得如第一方面至第三方面及其任一种可能的实现方式中所述的省电方法被执行。
第七方面,提供了一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有计算机指令,当所述计算机指令在计算机上运行时,使得如第一方面至第三方面及其任一种可能的实现方式中所述的省电方法被执行。
第八方面,提供了一种计算机程序产品,所述计算机程序产品包括计算机程序代码,当所述计算机程序代码在计算机上运行时,使得如第一方面至第三方面及其任一种可能的实现方式中所述的省电方法被执行。
附图说明
图1是本申请实施例提供的电子设备的结构示意图。
图2是本申请实施例提供的电子设备的软件结构示意图。
图3是本申请实施例提供的一组GUI的示意图。
图4是本申请实施例提供的一组GUI的示意图。
图5是本申请实施例提供的一组GUI的示意图。
图6是本申请实施例提供的一组GUI的示意图。
图7是本申请实施例提供的一组GUI的示意图。
图8是本申请实施例提供的一组GUI的示意图。
图9是本申请实施例提供的一组GUI的示意图。
图10是本申请实施例提供的一种进入救急省电模式的方法的示意性流程图。
图11是本申请实施例提供的另一种进入救急省电模式的方法的示意性流程图。
图12是本申请实施例提供的另一种进入救急省电模式的方法的示意性流程图。
图13是本申请实施例提供的一种退出救急省电模式的方法的示意性流程图。
图14是本申请实施例提供的另一种退出救急省电模式的方法的示意性流程图。
图15是本申请实施例提供的另一种退出救急省电模式的方法的示意性流程图。
图16是本申请实施例提供的一种省电方法的示意性流程图。
图17是本申请实施例提供的另一组省电方法的示意性流程图。
具体实施方式
下面将结合附图,对本申请实施例中的技术方案进行描述。
本申请实施例中的控制电量的方法可以应用于智能手机、平板电脑、笔记本电脑、个人计算机(personal computer,PC)、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本、个人数字助理(personal digital assistant,PDA)、车载设备、可穿戴设备等电子设备中,还可以应用于车机、机器人等移动设备中。
图1示出了电子设备100的结构示意图。电子设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。
可以理解的是,本申请实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application  processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
其中,控制器可以是电子设备100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。
I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器110与无线通信模块160。
MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件。
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器110与摄像头193,显示屏194,无线通信模块160,音频模块170,传感器模块180等。
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。
可以理解的是,本申请实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。
电源管理模块141用于连接电池142,充电管理模块140与处理器110。
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视 频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),低功耗蓝牙(bluetooth low energy,BLE),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。
在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),也可以采用有机发光二极管(organic light-emitting diode,OLED)、有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode,AMOLED)、柔性发光二极管(flex light-emitting diode,FLED)、Miniled、MicroLed、Micro-oLed或量子点发光二极管(quantum dot light emitting diodes,QLED)等材料中的一种所制作的显示面板。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。
电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。
ISP用于处理摄像头193反馈的数据。摄像头193用于捕获静态图像或视频。
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。
视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行电子设备100的各种功能应用以及数据处理。
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。
耳机接口170D用于连接有线耳机。
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。
陀螺仪传感器180B可以用于确定电子设备100的运动姿态。
气压传感器180C用于测量气压。在一些实施例中,电子设备100通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。
加速度传感器180E可检测电子设备100在各个方向上(一般为三轴)加速度的大小。
距离传感器180F,用于测量距离。
指纹传感器180H用于采集指纹。
触摸传感器180K,也称“触控面板”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。
骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。
按键190包括开机键,音量键等。
马达191可以产生振动提示。
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。
SIM卡接口195用于连接SIM卡。
电子设备100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本申请实施例以分层架构的Android系统为例,示例性说明电子设备100的软件结构。
图2是本申请实施例的电子设备100的软件结构框图。分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和系统库,以及内核层。应用程序层可以包括一系列应用程序包。
如图2所示,应用程序包可以包括相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息,钱包,手机管家等应用程序。本申请实施例中,手机管家可以在电子设备进入救急省电模式时,限制用户对电子设备的应用程序的使用。
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。
如图2所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器,电源管理服务,电池管理服务等。
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。
电话管理器用于提供电子设备100的通信功能。例如通话状态的管理(包括接通,挂断等)。
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。
电源管理服务可以包括查询接口、打开/关闭接口。其中,查询接口用于桌面进程查询是否存在升压电路。打开/关闭接口用于电子设备打开或关闭升压电路。
电池管理服务可以包括退出接口。其中,退出接口可以用于电子设备通过该退出接口向手机管家和桌面进程发送退出救急省电模式的广播消息。
Android runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(media libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL),桌面进程(systemUI,syeUI)等。
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。
三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。
2D图形引擎是2D绘图的绘图引擎。
systemUI用于管理电子设备的桌面、检测电子设备的电量等。
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动,升压电路驱动,电量驱动等。
电子设备的使用时长依赖电池的电量,为了使用有限电量充分延长电子设备的待机时间,各个厂商已经推出了多种省电模式。一般情况下,当电子设备的电池电量达到预设电量(如,1%)时,电子设备就会自动关机无法使用。
因此,如何在有限的电池电量下,提升电子设备的使用时长,成为需要解决的技术问题。
有鉴于此,本申请实施例提供一种省电方法和电子设备,该技术方案可以在充分利用电子设备的电池电量的基础上,进一步限制用户电子设备的使用,从而提升了电子设备在低电量下的使用时长。
图3是本申请实施例提供的一组图形用户界面(graphical user interface,GUI)的示意图。其中,从图3中的(a)至(f)示出了用户使用救急省电模式的过程。
参见图3中的(a),该GUI为手机的显示桌面310,该显示桌面310中可以包括用户安装的多个应用程序的图标。当手机检测到用户点击设置应用程序的图标311的操作之后,可以显示如图3中的(b)所示的GUI。
参见图3中的(b),该GUI为手机的设置的显示界面320,该显示界面320中可以包括多个设置选项,如生物识别和密码、应用和服务、电池、存储、安全等等。当手机检测到用户点击电池所在区域的操作后,可以显示如图3中的(c)所示的GUI。
参见图3中的(c),该GUI为电池的显示界面330,该显示界面330中可以包括手机所支持的多种模式,例如,可以包括性能模式331、省电模式332、超级省电333和救急省电334,用户可以根据需求选择不同的模式,该显示界面330中还可以包括电池百分比显示方式、更多电池设置等内容。当手机检测到用户点击救急省电334中的功能按钮335的操作后,可以显示如图3中的(d)所示的GUI。
参见图3中的(d),该GUI为手机进入救急省电模式下的显示界面340,该显示界面340中可以包括电话App、信息App和App1和App2,该App1和App2可以是支付类App,如华为支付;该显示界面340中可以显示该App1和App2的支付二维码或条形码等;该显示界面340中还可以包括用于退出救急省电模式的退出功能按钮341。当手机检测到用户点击该退出功能按钮341的操作之后,可以显示如图3中的(e)所示的GUI。
本申请实施例中,在手机进入救急省电模式后,用户可以使用显示界面340中的应用程序打电话、发短信以及支付等基本功能,但是限制用户对其他应用程序的使用,以在尽量满足用户基本使用需求的同时进一步延长使用时长。
参见图3中的(e),手机的显示界面340中可以弹出文本提示框360,该文本提示框360中可以包括文本内容“是否退出救急省电模式?”,该文本提示框中还可以包括取消按钮361和退出按钮362。当手机检测到用户点击退出按钮362的操作之后,若此时手机的电池电量小于预设值,则可以显示如图3中的(f)所示的GUI。
应理解,当手机检测到用户点击退出按钮362的操作之后,若此时手机的电池电量大于该预设值,则手机可以显示正常系统桌面。
参见图3中的(f),手机的显示界面340中可以弹出文本提示框350,该文本提示框350中可以包括文本内容“手机将在30s后关机”。
本申请实施例中,手机中的电池的设置界面中,为用户提供了多种模式,其中包括救急省电模式,从而用户可以在极端情况下,选择进入救急省电模式,以尽可能的提升手机的使用时长。
图4是本申请实施例提供的另一组GUI的示意图。其中,从图4中的(a)至(d)示出了用户使用救急省电模式的过程。
参见图4中的(a),该GUI为手机的电池的显示界面430。其中,该显示界面430中可以包括手机所支持的多种模式,例如,可以包括性能模式431、省电模式432、超级省电433,该显示界面430中还可以包括电池百分比显示方式、更多电池设置等内容。当手机检测到用户点击超级省电433的功能按钮434的操作后,可以显示如图4中的(b)所示的GUI。
参见图4中的(b),手机的显示界面430中的超级省电433中可以进一步包括救急省电435,当手机检测到用户点击救急省电435中的功能按钮436的操作后,可以显示如图4中的(c)所示的GUI。
参见图4中的(c),手机的显示界面430中可以弹出文本提示框450,该文本提示框450中可以 显示文本内容“是否进入救急省电模式?”,该文本提示框450中还可以包括功能控件451和452,当手机检测到用户点击功能控件451的操作后,可以显示如图4中的(d)所示的GUI。
应理解,当手机检测到用户点击功能控件452的操作之后,则可以进入超级省电的界面。
参见图4中的(d),该GUI为手机进入救急省电模式下的显示界面440。可以参见图3中的(d)中的相关描述。
本申请实施例中,救急省电模式是超级省电模式下的进一步的省电方案,当用户选择超级省电模式时,可以进一步选择救急省电模式,当用户确定进入救急省电模式时,手机可以进入救急省电模式。当用户选择不进入救急省电模式时,手机可以进入超级省电模式。
在另一些实施例中,在手机进入超级省电模式后,当手机的电量为1%即将关机时,可以弹出文本提示框提示用户是否进入救急省电模式,当用户选择进入救急省电模式时,手机可以进入救急省电模式,当用户选择不进入救急省电模式时,手机调用关机接口关机。或者,在手机进入超级省电模式后,当手机的电量为1%即将关机时,手机自动进入救急省电模式。
图5是本申请实施例提供的另一组GUI的示意图。其中,从图5中的(a)至(d)示出了手机进入救急省电模式的过程。
图5中的(a)可以参见图4中的(a)的相关描述,为了简洁,不再赘述。当手机检测到用户点击超级省电433的功能控件434的操作之后,可以显示如图5中的(b)所示的GUI。
在另一些实施例中,当手机检测到电池电量低于预设值时,例如10%,则手机可以进入超级省电模式。
参见图5中的(b),该GUI为手机进入超级省电模式下的显示界面220。该显示界面220中可以包括电话App、短信App,该显示界面220中还可以包括添加功能控件223和224、退出功能控件221以及编辑功能控件222。
当用户点击退出功能221时,手机可以退出超级省电模式;当用户点击添加功能控件223或224时,可以在弹出的界面中选择希望添加的应用程序,即可以在超级省电模式下使用该应用程序;当用户点击编辑功能控件222时,可以对显示界面220中的应用程序选择性删除。
在超级省电模式下,手机的电池电量降低为第一预设值(如1%)时,手机可以显示如图5中的(c)所示的GUI。
参见图5中的(c),手机的显示界面220中可以弹出文本提示框250,该文本提示框250中可以显示文本内容“是否进入救急省电模式?”,该文本提示框250中还可以包括功能控件251和252,当手机检测到用户点击功能控件251的操作之后,可以显示如图5中的(d)所示的GUI。
在一些实施例中,当手机检测到电量为1%时,也可以直接进入到救急省电模式,本申请实施例不予限定。
在一些实施例中,当手机检测到电量为1%时,也可以先判断是否支持救急省电模式,若支持,则直接进入救急省电模式,若不支持,可以直接关机。
参见图5中的(d),该GUI为手机进入救急省电模式下的显示界面230,具体可以参见图4中的(d)的相关描述。
本申请实施例中,当用户在超级省电模式下,电量达到预设值时,可以进入救急省电模式,在该救急省电模式下,将限制用户只能使用显示界面中的应用程序。该技术方案可以实现两级省电,从而可以充分利用电池的电量,尽可能提升电子设备的使用时长。
图6是本申请实施例提供的另一组GUI的示意图。其中,从图6中的(a)至(d)示出了手机从进入救急省电模式到退出救急省电模式的过程。
参见图6中的(a),该GUI为手机的显示桌面510,当手机检测到电池电量降低为第一预设值(如1%)时,可以在显示桌面510中弹出文本提示框520。该文本提示框520中可以显示文本内容“手机将在60s后关机!是否进入救急省电模式”,该文本提示框520中还可以包括功能控件521和522。当手机检测到用户点击功能控件521的操作时,可以显示如图6中的(b)所示的GUI。
应理解,当手机检测到用户点击功能控件522时,手机可以显示文本内容“手机将在60s后关机”,或者,手机可以直接调用关机接口关机。
在另一些实施例中,当手机检测到电池电量降低为1%时,也可以语音提示用户是否进入救急省电模式,当用户回答“是”或“进入救急省电模式”等用于表示“确定”的话语时,手机可以显示如图6 中的(b)所示的GUI。或者,手机也可以在显示文本提示框的同时进行语音提示等等。
在另一些实施例中,当手机检测到电池电量降低为1%时,也可以通过弹出卡片的方式提示用户是否进入救急省电模式。
参见图6中的(b),该GUI为手机进入救急省电模式下的显示界面530。其中,该显示界面530中可以包括电话App、信息App、App1、App2,该App1、App2可以为支付类App,如华为支付、微信支付、支付宝支付等。该显示界面530中还可以包括退出功能按钮531。
在一些实施例中,该显示界面530中可以显示App1、App2的支付二维码或条形码,从而有利于用户进行直接支付;或者,通过点击二维码或条形码的图标,进入支付界面等,本申请实施例不予限定。在一些实施例中,该显示界面530中也可以只显示电话App、信息App、App1或者电话App、信息App、App2。
应理解,当手机进入到救急省电模式时,手机中的手机管家可以关闭所有正在运行的应用程序,只允许用户使用救急省电模式下的部分应用程序。或者,当手机进入到救急省电模式时,手机中的手机管家可以关闭除救急省电模式下的应用程序之外的所有应用程序,以节省手机功耗。
当手机检测到用户点击退出功能按钮531的操作之后,可以显示如图5中的(c)所示的GUI。
参见图6中的(c),手机的显示界面中可以弹出文本提示框560,该文本提示框560中可以包括文本内容“是否退出救急省电模式?”,该文本提示框中560还可以包括取消按钮561和退出按钮562。当手机检测到用户点击退出按钮562的操作之后,可以显示如图6中的(d)所示的GUI。
参见图6中的(d),手机显示界面530中弹出文本提示框550,该文本提示框550中可以显示文本内容“手机将在30s后关机”。
在一些实施例中,该文本提示框550中的文本内容也可以是手机将在15s、或者40s后关机等等,本申请实施例对该具体时长不予限定。
本申请实施例中,当手机电量降低到1%时,可以提示用户是否进入救急省电模式下,当用户选择进入救急省电模式时,切换至救急省电界面,以提升电子设备的使用时长。用户也可以通过主动点击退出功能按钮来退出救急省电模式,从而可以保留部分电量。
图7是本申请实施例提供的另一组GUI的示意图。其中,从图7中的(a)至(c)示出了用户从进入救急省电模式到退出救急省电模式的过程。
应理解,图7中的(a)、(b)可以参见图6中的(a)、(b)的相应描述,为了简洁,不再赘述。
手机在救急省电模式下,当手机检测到电池的最后1%的电量即将耗尽时,手机可以显示如图7中的(c)所示的GUI。
参见图7中的(c),手机的显示界面530中可以显示文本提示框560,该文本提示框560中可以包括文本内容“电量耗尽,手机将在30s后关机”。或者,手机可以语音播报“电量耗尽,手机将在30s后关机”。
基于本申请实施例,在手机进入救急省电模式下,当手机电池最后的1%电量也耗尽时,手机调用关机接口关机,此时,在不补充电量的情况下,手机不可开机。
图8是本申请实施例提供的另一组GUI的示意图。其中,从图8中的(a)至(c)示出了用户从进入救急省电模式到退出救急省电模式的过程。
应理解,图8中的(a)、(b)可以参见图6中的(a)、(b)的相应描述,为了简洁,不再赘述。
手机在救急省电模式下,用户为手机充电,当手机检测到电池的电量达到第二预设值(如2%时),手机可以显示如图8中的(c)所示的GUI。
参见图8中的(c),该GUI为手机的显示桌面840。也就是说,当电池电量达到第二预设值时,手机可以自动退出救急省电模式,显示正常的桌面。此时,用户可以正常使用手机。
应理解,当手机退出救急省电模式时,手机管家可以无需对应用程序进行限制,用户可以正常使用手机安装的所有应用程序。
本申请实施例中,当用户为手机充电,手机检测到电量达到第二预设值(如2%)时,手机可以自动退出救急省电模式,显示正常的系统桌面,从而无需用户手动退出,可以提升用户的体验。
图9是本申请实施例提供的另一组GUI的示意图。如图9所示,当手机检测到手机电池的电量降 低到第一预设值(如1%)时,手机的显示界面710中可以弹出文本提示框720,该文本提示框720中可以显示文本内容“电量即将耗尽,手机将在60s后关机”。
示例性地,当手机检测到手机电池的电量降低到1%时,手机可以检测其是否支持救急省电模式,如手机中是否存在升压电路,当手机检测到不存在升压电路时,则可以确定手机不支持救急省电模式,此时手机可以显示“电量即将耗尽,手机将在60s后关机”。
在另一些实施例中,当手机检测到电池电量降低到1%时,也可以语音提示“电量即将耗尽,手机将在60s后关机”。或者,手机也可以在显示文本提示框的同时进行语音提示等等。
图10是本申请实施例提供的一种进入救急省电模式的示意性流程图。如图10所示,该方法900可以应用于电子设备中,该方法900可以包括步骤910至步骤960。
910,电子设备检测到电池电量为第一预设值。
应理解,该第一预设值可以是1%,也可以是2%等,或者,该第一预设值也可以是一个取值范围,例如0.8%至1.5%等,本申请实施例不予限定。例如,该第一预设值为1%,随着用户对电子设备的使用,当电子设备的电池电量变为1%时,意味着此时电子设备的电池电量极低,即将关机。
示例性地,电子设备中的桌面进程(systemUI)可以实时检测电池电量,当检测到电池电量为1%时,可以执行步骤920。
920,电子设备确定是否存在升压电路。
示例性地,该升压电路可以是斩波(boost)升压电路。通过该boost升压电路可以释放电池最后的1%的电量。
应理解,该升压电路还可以是其他升压电路,本申请实施例不予限定。
在一些实施例中,应用程序框架层(framework,FWK)中提供有电源管理服务,该电源管理服务中可以包括用于查询是否存在boost升压电路的查询接口,通过该查询接口可以查询到是否存在boost升压电路。该电源管理服务中还提供有用于打开或关闭boost升压电路的打开或关闭接口。
应理解,该步骤920为可选步骤,在一些实施例中,该步骤920可以不执行,默认电子设备存在升压电路。
930,当电子设备确认不存在升压电路时,提示电量即将耗尽,将在60s后关机。
示例性地,电子设备可以以语音播报、文本显示、卡片等方式提示用户即将关机。
在一些实施例中,该提示中的60s是预设的,还可以为其他值,如30s等,本申请实施例不予限定。
940,当电子设备确认存在升压电路时,提示用户是否进入救急省电模式。
示例性地,电子设备可以以文本提示框的方式向用户询问是否进入救急省电模式。参见图5,手机可以文本提示框520提示用户是否进入救急省电模式。
在一种可能的实现方式中,用户可以选择进入救急省电模式,则可以执行步骤950。
示例性地,参见图6中的(a),当手机检测到用户点击功能控件521时,手机可以进入救急省电模式。
在另一种可能的实现方式中,用户可以选择不进入救急省电模式,则可以执行步骤960。
950,进入救急省电模式,电子设备显示救急省电界面。
当用户选择进入救急省电模式时,电子设备可以进入救急省电模式,并显示救急省电界面。
应理解,该救急省电界面中,可以仅显示电话、短信、支付类应用程序的付款二维码或条形码,其他应用程序不允许使用。
在一些实施例中,电子设备的手机管家在电子设备进入救急省电模式之后,可以关闭正在运行的所有应用程序,并仅允许用户使用救急省电界面中的应用程序。
示例性地,参见图6中的(b),手机进入救急省电模式下的显示界面530中,包括电话App、信息App、App1、App2,从而可以满足用户打电话、发短信以及支付需求,其他应用不可使用,以尽量延长手机的使用时长。
当电子设备在救急省电模式下,电池电量耗尽时,可以执行步骤960。
960,调用关机接口关机。
在一个示例中,当电子设备最后的1%的电池电量耗尽时,电子设备调用关机接口关机。在不充电的情况下,电子设备不可开机。
在另一个示例中,当用户选择不进入救急省电模式时,电子设备也可以调用关机接口关机,但由 于电池还留有1%的电量,则电子设备可以在关机后根据用户开机操作开机,此时电子设备在开机后可以直接进入救急省电模式。
在本申请的一个实施例中,当电子设备检测到电池电量到达1%时,可以提示用户是否进入救急省电模式下,当用户选择进入救急省电模式时,切换至救急省电界面,以提升电子设备的使用时长。该技术方案可以使得电子设备充分利用电池最后1%的电量,以延长使用时间。进一步地,在救急省电模式下,用户可以执行打电话、发短信以及支付等操作,进而可以提升用户体验。
图11是本申请实施例提供的另一种进入救急省电模式的示意性流程图。如图11所示,该方法1500可以应用于电子设备,该方法1500可以包括步骤1510至步骤1570。
1510,电子设备检测到电池电量为第一预设值,进入超级省电模式。
应理解,当电子设备检测到电池电量为第一预设值时,可以进入超级省电模式。该第一预设值可以是10%,5%等,本申请实施例对该第一预设值的具体取值不予限定。
在另一些实施例中,用户可以主动进入超级省电模式,例如,用户可以在电池的设置界面选择超级省电的功能控件,从而进入超级省电模式。
在一些实施例中,当电子设备进入超级省电模式后,可以显示超级省电模式下的显示界面,参见图5中的(c),在该超级省电模式的显示界面220中,用户可以点击添加按钮,将希望使用的应用程序添加到显示界面220中,对于显示界面220中未显示图标的应用程序,用户将无法使用。
1520,在超级省电模式下,电子设备检测到电池电量为第二预设值,其中,第二预设值小于第一预设值。
应理解,电子设备在超级省电模式下,电池电量从第一预设值消耗到第二预设值,该第二预设值可以是1%、2%等,本申请实施例对于该第二预设值的具体取值不予限定。
在另一些实施例中,当超级省电模式下,电子设备检测到手机即将关机,此时也可以执行步骤1530。
1530,电子设备确定是否存在升压电路。
1540,当电子设备确认不存在升压电路时,提示电量即将耗尽,将在60s后关机。
1550,当电子设备确认存在升压电路时,提示用户是否进入救急省电模式。
1560,进入救急省电模式,电子设备显示救急省电界面。
1570,调用关机接口关机。
其中,步骤1530至步骤1570可以检测步骤920至960的相关描述,为了简洁,此处不再赘述。
本申请实施例中,当电池电量为第一预设值时,电子设备可以进入超级省电模式下,随着电量的消耗,当电池电量为第二预设值(如1%)时,电子设备可以根据用户的选择或自行进入救急省电模式,进一步限制用户对电子设备的使用,从而可以实现两阶段省电,进一步提升电子设备的使用时长。
图12是本申请实施例提供的另一种进入救急省电模式的示意性流程图。如图12所示,该方法1000可以应用于电子设备,该方法1000可以包括步骤1010至步骤1050。
1010,电子设备检测到电池电量到达第一预设值,且用户选择不进入救急省电模式。
应理解,该第一预设值可以参见前文中的描述,例如可以是1%。
示例性地,电子设备在检测到电池电量达到1%时,在显示界面中弹出提示框,询问用户是否进入救急省电模式,当用户选择否时,可以执行步骤1020。
1020,电子设备调用关机接口关机。
1030,检测到用户长按电源键的操作,电子设备执行开机动作。
应理解,由于在电子设备关机之前,用户选择不进入救急省电模式,所以电子设备的电池中还留有1%的电量,电子设备可以启动升压电路释放电池电量,从而可以执行开机操作。
在一些实施例中,电子设备还可以检测是否存在boost升压电路,在确定存在升压电路时,执行开机动作;在确定不存在boost升压电路时,不执行开机动作。
1040,电子设备进入救急省电模式,显示救急省电界面。
应理解,电子设备在开机后直接进入救急省电模式,显示界面显示救急省电界面。应理解,该救急省电界面可以参见前文中的相关描述,为了简洁不再赘述。
1050,电子设备检测到电量耗尽,调用关机接口关机。
在救急省电模式下,当电子设备检测到电池电量耗尽时,调用关机接口关机。此时,由于电池最后的1%的电量也消耗完,在不充电的情况下,电子设备不可开机。
在本申请的一个实施例中,当电子设备电池电量达到预设值,且用户选择不进入救急省电模式时,电子设备执行关机动作。当用户长按电源键时,由于电池还留有最后的1%的电量,电子设备可以启动升压电路释放电池电量,从而可以执行开机动作,且在开机后直接进入救急省电模式,以提升电子设备的使用时长。
图13是本申请实施例提供的一种退出救急省电模式的示意性流程图。如图13所示,该方法1100可以应用于电子设备中,该方法1100包括步骤1110至步骤1120。
1110,电子设备检测到用户在救急省电模式下点击退出功能控件的操作。
示例性地,参见图6中的(b),当手机检测到用户点击退出功能控件531的操作时,可以退出救急省电模式。
1120,电子设备调用关机接口关机。
示例性地,参见图6中的(c),手机调用手机接口关机,并显示文本内容“手机将在30s后关机”。
在本申请的一个实施例中,用户可以在救急省电模式下,通过主动操作退出救急省电模式,从而可以保留电子设备的部分电量。
图14是本申请实施例提供的另一种退出救急省电模式的示意性流程图。如图14所示,该方法1200可以应用于电子设备,该方法1200可以包括步骤1210至步骤1220。
1210,电子设备检测到电池电量即将耗尽,提示将在30s后关机。
1220,电子设备调用关机接口关机。
示例性地,参见图7中的(b)、(c),当手机在救急省电模式下,检测到电池电量即将耗尽时,会提示用户手机将在30s关机。
应理解,电子设备恩在检测到电池电量即将耗尽时,也可以提示将在60s后关机,本申请实施例对该具体时长不予限定。
在本申请的一个实施例中,在电子设备进入救急省电模式下,当电子设备最后的1%电量也耗尽时,电子设备调用关机接口关机,此时,在不补充电量的情况下,电子设备不可开机。
图15是本申请实施例提供的另一种退出救急省电模式的示意性流程图。如图15所示,该方法1300可以应用于电子设备,该方法1300可以包括步骤1310至步骤1320。
1310,电子设备检测到电池电量大于第二预设值时,退出救急省电模式。
应理解,用户为电子设备充电的情况下,电子设备可以实时检测到电量变化,当检测到电池电量大于第二预设值(如,2%)时,电子设备可以退出救急省电模式。
在一些实施例中,电子设备中的应用框架层中包括退出接口,当电池电量大于第二预设值时,电子设备可以通过该退出接口向电子设备管家和systemUI发送广播消息。systemUI接收到该广播消息之后,将电子设备桌面从救急省电模式的显示界面切换为系统桌面,电子设备管家接收到该广播消息之后,放开对其他应用程序的限制,使电子设备恢复正常。
1320,电子设备显示系统桌面。
示例性地,参见图8中的(b)、(c),当电池电量大于第二预设值时,手机可以退出救急省电模式,显示系统桌面。此时,手机管家不再限制用户对于应用程序的使用。
在本申请的一个实施例中,当用户为电子设备充电,电子设备检测到电量达到第二预设值(如2%)时,电子设备可以自动退出救急省电模式,显示正常的系统桌面,从而无需用户手动退出,可以提升用户的体验。
图16是本申请实施例提供的一种省电方法的示意性流程图。如图16所示,该方法1600可以应用于电子设备,该方法1600可以包括步骤1610至步骤1620。
1610,电子设备在省电模式触发条件满足时,进入第一省电模式,电子设备在进入第一省电模式时的电池电量为第一电量。
在一些实施例中,该省电模式触发条件可以包括电子设备检测到电池电量降低为第一电量,和/或,电子设备检测到用户的第一操作,第一操作用于指示电子设备进入第一省电模式。
示例性地,参见图5中的(a)、(b),该电子设备可以是手机,该第一省电模式可以是超级省电,响应于用户点击超级省电的功能按钮434的操作之后,手机可以进入超级省电模式。
或者,当手机检测到电池电量为第一电量时,也可以进入超级省电模式。示例性地,该第一电量可以为5%、4%等等。或者,当手机检测到电池电量为第一电量,且用户点击确定按钮后,进入超级 省电模式。
在一些实施例中,当电子设备检测到电池电量为第一电量时,也可以弹出提示框,当在预设时间段内未检测到用户的选择操作时,也可以自动进入该第一省电模式。
1620,在第一省电模式下,电子设备检测到电池电量降低为第二电量时,电子设备进入第二省电模式,其中,第二电量小于第一电量。
示例性地,参见图5中的(c)、(d),当手机在超级省电模式下,检测到电池电量降低为第二电量时,电子设备可以进入救急省电模式。
例如,该第二电量可以为0.8%至1.2%,本申请实施例对于该第二电量的具体取值不予限定。
本申请实施例中,当电子设备检测到省电模式触发条件时,可以自动或响应于用户的操作进入第一省电模式,在该第一省电模式下,进一步地,当电池电量降低为第二电量时,电子设备可以进入第二省电模式。该技术方案可以通过多级省电模式,可以降低电子设备的耗电速度,从而提升了电子设备在低电量下的使用时长。
在一些实施例中,该方法1600还可以包括:
电子设备在检测到电池电量降低为第二电量时,启动升压电路。
本申请实施例中,电子设备在检测到电池电量降低为第二电量时,还可以启动升压电路,通过该升压电路可以充分释放电池最后的电量,进而提升电子设备的使用时长。
在另一些实施例中,该第一省电模式可以和第二省电模式相同,在电池电量检测为第二电量时,可以启动升压电路。该技术方案可以在省电模式下进一步释放电池电量,以提升电子设备的使用时长。
在另一些实施例中,电子设备在检测到省电模式触发条件时,进入第一省电模式,在第一省电模式下,检测到电池电量降低为第二电量,则可以启动升压电路。该技术方案可以在省电模式下进一步释放电池电量,以提升电子设备的使用时长。
在一些实施例中,该方法1600还可以包括:
电子设备在第一省电模式下显示第一显示界面,第一显示界面包括预设的应用程序,且,第一显示界面中的应用程序可添加或可移除。
示例性地,参见图5中的(b),该第一显示界面可以是手机的显示界面220,该预设的应用程序可以是电话应用程序和短信应用程序,且该显示界面220中的应用程序是可更改的,如添加一些应用程序或移除一些应用程序,该显示界面220中的应用程序用户可以正常使用。
应理解,该预设的应用程序还可以是其他应用程序。
在另一些实施例中,该第一显示界面中也可以包括预设的应用组件。
本申请实施例中,电子设备在第一省电模式下,具有该第一省电模式下的专有第一显示界面,该第一显示界面中可以包括预设的应用程序,从而用户可以使用该预设的应用程序。此外,用户还可以通过操作对第一显示界面中的应用程序进行更改如添加或移除,从而可以提升用户对电子设备的控制,提升了用户体验。
在一些实施例中,该方法1600还可以包括:
响应于用户的第二操作,电子设备将用户选择的应用程序添加至第一显示界面,或者将预设的应用程序中的一个或多个从第一显示界面中移除。
示例性地,参见图5中的(b),用户通过点击添加功能按钮223或224,可以在弹出的界面中选择其他应用程序添加至显示界面220中,用户还可以通过点击编辑按钮222,将选择的应用程序从显示界面220中移除。
该技术方案可以使得用户在省电模式下选择需要使用的应用程序,从而可以提升用户对电子设备的控制,提升了用户体验。
在一些实施例中,该方法1600还可以包括:
电子设备在第二省电模式下显示第二显示界面,第二显示界面包括预设的应用程序和/或应用组件,且,第二显示界面中的应用程序和/或应用组件不可添加或不可移除。
示例性地,参见图5中的(d),该第二显示界面可以是手机的显示界面230,该应用程序和/或应用组件可以是电话应用程序、短信应用程序和App1、App2。且该显示界面230中能够包括的应用程序、和/或应用组件是不可更改的,如添加或移除。也就是说,在该救急省电模式下,电子设备仅能够使用显示界面中的这些应用程序和/或应用组件,其他应用程序将无法使用,从而可以降低电池电量的消耗。
应理解,应用组件(application widget,app widget),也可以称为卡片或服务卡片或服务组件(service widget)或应用微件或应用小组件,可以是一种小窗口或小部件。应用组件通常用于将应用程序(Application)的重要信息展示在电子设备的桌面上,实现应用程序的某个业务特性,用户可以通过快捷手势使用应用组件,以达到服务一步直达、减少层级跳转的目的。
例如,基于安卓操作系统设置的应用组件可以称为进行中卡片(ongoing card),基于鸿蒙操作系统设置的应用组件可以称为服务卡片,如(form ability,FA)。
示例性地,该App1为华为支付的服务卡片,当用户点击该服务卡片时,可以在放大的卡片中显示华为支付的二维码或条形码,以为用户提供支付功能。
本申请实施例中,电子设备在第二省电模式下,具有该第二省电模式下的专有第二显示界面,该第二显示界面中可以包括预设的应用程序和/或应用组件,且该第二显示界面不可更改如添加或移除应用程序和/或应用组件等。该技术方案中,进一步限定了电子设备仅能够使用预设的应用程序和/或应用卡片,从而可以在保证用户使用电子设备的基础功能的同时,限制使用其他应用程序,能够进一步降低电子设备的电池电量消耗的速度,提升电子设备的使用时长。
在一些实施例中,电子设备进入第二省电模式,包括:响应于用户在电子设备检测到电池电量降低为第二电量时显示的界面中的第三操作,电子设备进入第二省电模式。
示例性地,该第三操作可以是用户在电子设备弹出的提示框中点击确认按钮的操作。
在一些实施例中,电子设备也可以直接进入第二省电模式。
本申请实施例中,电子设备在进入第二省电模式时,可以向用户弹出提示框,在用户点击确认时,可以进入第二省电模式。该技术方案可以提升用户的自主权,提升用户对电子设备的控制。
在一些实施例中,启动升压电路,包括:电子设备检测电子设备是否包括升压电路;在确定电子设备包括升压电路时,电子设备启动升压电路。
在一些实施例中,电子设备中也可能不包括升压电路,此时,电子设备可以直接提示即将关机。
本申请实施例中,电子设备需要先确定电子设备中是否存在升压电路,在确定存在升压电路时,可以启动该升压电路,通过该升压电路可以使得电池电量得到有效释放,能够提升电子设备的使用时长。
在一些实施例中,该方法1600还可以包括:
响应于用户的第四操作,电子设备退出所述第二省电模式并关机。
示例性地,该第四操作可以是用户点击退出按钮的操作。参见图6中的(c)、(d),该第四操作可以是用户点击退出按钮562的操作,则手机可以退出所述第二省电模式并提示用户手机将在30s后关机。
本申请实施例中,用户可以通过点击退出按钮,退出第二省电模式并关机,从而可以保存电子设备的部分电池电量,使得用户在需要时使用。
在一些实施例中,该方法1600还可以包括:
响应于用户的开机操作,电子设备进入第二省电模式。
本申请实施例中,当电子设备通过点击退出按钮使得电子设备关机时,电子设备的电池中还存在部分电量,当用户再次开机时,电子设备直接进入第二省电模式,可以使得该电子设备能够继续使用。
在一些实施例中,该方法1600还可以包括:在第二省电模式下,电子设备检测到电池电量耗尽,电子设备关机。
示例性地,参见图7,在救急省电模式下,手机电池耗尽时,可以提示用户手机将在30s后关机。此时,在不补充电量的情况下,手机不可开机。
在一些实施例中,该方法1600还可以包括:在第二省电模式下,电子设备检测到电池电量提升为第三电量时,电子设备退出第二省电模式,其中,第三电量大于第二电量。
在一些实施例中,电子设备退出第二省电模式时可以显示系统桌面。
示例性地,参见图8中(c),该系统桌面可以是手机的显示界面840,该系统桌面可以是手机的主界面,例如可以是开机输入锁屏密码之后显示的主界面。
应理解,该第三电量可以是2%、3%等等。
本申请实施例中,当为电子设备充电时,当电子设备检测到电池电量为大于第二电量的第三电量时,可以静默退出第二省电模式,显示正常的系统桌面,从而用户可以正常使用电子设备,使得用户 体验更佳。
在一些实施例中,该方法1600还包括:
在第二省电模式下,电子设备检测到电池电量提升为第三电量时,电子设备退出第二省电模式,并显示系统桌面,其中,第三电量大于第一电量。
本申请实施例中,当电池电量提升为大于第一电量的第三电量时,可以自动显示系统桌面,恢复用户正常使用。该技术方案可以在用户使用功耗高的应用程序时,避免电量迅速下降使得电子设备重新进入第二省电模式,从而能够提升用户体验。
在一些实施例中,该方法1600还可以包括:
在电子设备退出第二省电模式时,关闭升压电路。
本申请实施例中,当电子设备退出第二省电模式时,可以关闭升压电路,从而可以节省电子设备功耗。
在一些实施例中,第二电量为1%。
通常情况下,电子设备在电池电量为1%时,会提示用户即将关机,而本申请实施例中,电池电量为1%时,电子设备可以进入第二省电模式,从而延长了电子设备的使用时长。
图17是本申请实施例提供的一种省电方法的示意性流程图。如图17所示,该方法1700可以应用于电子设备,该方法1700可以包括步骤1710至步骤1720。
1710,电子设备检测到电池电量降低为第二电量,其中,第二电量为电子设备提示即将关机时的电池电量。
1720,响应于电池电量降低为第二电量,电子设备启动升压电路。
在一些实施例中,该第二电量为1%,在电子设备检测到电池电量为1%时,本申请中的电子设备可以启动升压电路。该第二电量还可以为其他值,本申请实施例不予限定。
在电子设备电池电量降低为第二电量时,电子设备可以启动升压电路释放电池电量,以提升使用时长。
本申请实施例中,当电子设备检测到电池电量降低为第二电量时,可以进入第二省电模式,响应于该电池电量降低为第二电量,电子设备启动升压电路。该技术方案中,通过启动升压电路,可以使得电池的电量得到充分使用,进一步提升了电子设备的使用时长。
在另一些实施例中,电子设备在电池电量降低为第二电量之前,可以处于正常模式,也可以处于上述超级省电模式,本申请实施例不予限定。
本申请实施例中,当电池电量降低为第二电量时,电子设备可以启动升压电路,从而可以使得电池的电量得到充分使用,进一步提升了电子设备的使用时长。
在一些实施例中该方法1700还可以包括:
电子设备在检测到电池电量降低为第二电量时,进入第二省电模式;
电子设备在第二省电模式下显示第二显示界面,其中,第二显示界面包括预设的应用程序和/或应用组件,且,第二显示界面中的应用程序和/或应用组件不可添加或不可移除。
示例性地,参见图6中的(b),该第二显示界面可以是手机的显示界面530,该预设的应用程序和/或应用卡片可以是电话应用程序、短信应用程序和App1、App2,且手机只能够使用这些应用程序和/或应用卡片。也就是说,在该救急省电模式下,其他应用程序将无法使用,从而可以降低电池电量的消耗。
本申请实施例中,当电子设备检测到电池电量降低为第二电量时,可以进入第二省电模式。在该第二省电模式下,电子设备具有专有的第二显示界面,在该第二显示界面可以包括预设的应用程序和/或应用卡片,且电子设备仅可使用该预设的应用程序和/或应用卡片。该技术方案中,当电池电量较低时,电子设备可以进入第二省电模式并显示专有界面,限制用户对电子设备的使用,进一步提升了电子设备的使用时长。
在一些实施例中,电子设备进入第二省电模式,包括:响应于用户在第一显示界面中的第一操作,电子设备进入第二省电模式,第一显示界面为电子设备在进入第二省电模式之前的界面。
参见图6,该第一显示界面可以是手机的显示界面510,该第一操作可以是用户点击功能控件521的操作。
在一些实施例中,电子设备也可以直接进入第二省电模式。
本申请实施例中,电子设备在进入第二省电模式时,可以向用户弹出提示框,在用户点击确认时,可以进入第二省电模式。该技术方案可以提升用户的自主权,提升用户对电子设备的控制。
在一些实施例中,电子设备启动升压电路,包括:电子设备检测电子设备是否包括升压电路;在确定电子设备包括升压电路时,电子设备启动升压电路。
在一些实施例中,电子设备中也可能不包括升压电路,此时,电子设备可以直接提示即将关机。
本申请实施例中,电子设备需要先确定电子设备中是否存在升压电路,在确定存在升压电路时,可以启动该升压电路,通过该升压电路可以使得电池电量得到有效释放,能够提升电子设备的使用时长。
在一些实施例中,该方法1700还包括:
响应于用户的第二操作,电子设备关闭升压电路并关机。
示例性地,该第二操作可以是用户点击退出按钮的操作。参见图6中的(c)、(d),该第二操作可以是用户点击退出按钮562的操作,则手机可以关闭升压电路并提示用户手机将在30s后关机。
本申请实施例中,用户可以通过点击退出按钮,退出第二省电模式并关机,从而可以保存电子设备的部分电池电量,使得用户在需要时使用。
在一些实施例中,该方法1700还包括:
响应于用户的开机操作,所述电子设备进入所述第二省电模式。
例如,响应于用户长按电源键的操作,电子设备开机并直接进入救急省电模式。
本申请实施例中,当电子设备通过点击退出按钮使得电子设备关机时,电子设备的电池中还存在部分电量,当用户再次开机时,电子设备直接进入第二省电模式,可以使得该电子设备能够继续使用。
在一些实施例中,该方法1700还可以包括:
在第二省电模式下,电子设备检测到电池电量耗尽,电子设备关机。
示例性地,参见图7,在救急省电模式下,手机电池耗尽时,可以提示用户手机将在30s后关机。此时,在不补充电量的情况下,手机不可开机。
在一些实施例中,在第二省电模式下,电子设备检测到电池电量提升为第三电量时,电子设备关闭升压电路,其中,第三电量大于第二电量。
在一些实施例中,电子设备退出第二省电模式时,可以显示系统桌面。
示例性地,参见图8中(c),该系统桌面可以是手机的显示界面840,该系统桌面可以是手机的主界面,例如可以是开机输入锁屏密码之后显示的主界面。
应理解,该第三电量可以是2%、3%等等。
本申请实施例中,当为电子设备充电时,当电子设备检测到电池电量为大于第二电量的第三电量时,可以静默退出第二省电模式,显示正常的系统桌面,从而用户可以正常使用电子设备,使得用户体验更佳。
在一些实施例中,该第二电量为1%。
本申请实施例还提供一种省电方法,该省电方法可以应用于电子设备,该方法可以包括1810至1820。
1810,电子设备检测到省电模式触发条件时,电子设备显示第一显示界面,第一显示界面中包括预设的应用程序,且,第一显示界面中的应用程序可添加或可移除,电子设备在进入第一省电模式时的电池电量为第一电量。
示例性地,参见图5中的(a)、(b),该电子设备可以是手机,该第一显示界面可以是手机的显示界面220。该预设的应用程序可以是电话应用程序和短信应用程序,且该显示界面220中的应用程序是可更改的,如添加一些应用程序或移除一些应用程序。
1820,电子设备检测到电池电量继续降低为第二电量时,电子设备启动升压电路并显示第二显示界面,第二显示界面中包括预设的应用程序和/或应用组件,且第二显示界面中的应用程序和/或应用卡片不可添加或不可移除。
示例性地,参见图5中的(c)、(d),该第二显示界面可以是手机的显示界面230。该预设的应用程序或应用卡片可以是电话应用程序、短信应用程序和App1、App2,且该显示界面230中能够包括的应用程序或应用卡片是不可更改的,如添加或移除。
在另一些实施例中,该第一显示界面中也可以包括预设的应用组件。
本申请实施例中,电子设备在检测省电模式触发条件时,显示第一显示界面,并且第一显示界面中的应用程序可添加或可移除,在检测到电池电量继续降低为第二电量时,显示包括预设的应用程序和/或应用组件的第二显示界面,并且第二显示界面中的应用程序和/或应用组件不可添加或不可移除。该技术方案中,可以在电池电量较低时,通过分级限制用户对电子设备的使用,从而可以降低电子设备的电池电量的消耗速度;进一步地,通过启动升压电路,可以使得电子设备电池的最后的电量充分释放,进一步提升了电子设备的使用时长。
应理解,该省电模式触发条件可以参见前文中的相关描述。
在一些实施例中,该第二显示界面中包括退出按钮,该方法还包括:
响应于用户点击退出按钮的操作,电子设备关闭升压电路并关机。
本申请实施例中,用户可以通过点击退出按钮,关闭升压电路并关机,从而可以保存电子设备的部分电池电量,使得用户在需要时使用。
在一些实施例中,该方法还包括:
响应于用户的开机操作,电子设备启动升压电路并显示第二显示界面。
本申请实施例中,当电子设备通过点击退出按钮使得电子设备关机时,电子设备的电池中还存在部分电量,当用户再次开机时,电子设备直接进入第二显示界面,可以使得该电子设备能够继续使用。
在一些实施例中,该方法还包括:
电子设备检测到电池电量提升为第三电量时,电子设备关闭升压电路,并显示系统桌面,其中,第三电量大于第二电量。
本申请实施例中,当为电子设备充电时,当电子设备检测到电池电量为大于第二电量的第三电量时,可以显示正常的系统桌面,从而用户可以正常使用电子设备,使得用户体验更佳。
在一些实施例中,该第二电量为1%。
本申请实施例还提供一种电子设备,包括:一个或多个处理器;一个或多个存储器;该一个或多个存储器存储有一个或多个计算机程序,该一个或多个计算机程序包括指令,当该指令被一个或多个处理器执行时,使得如前文中任一种可能的实现方式中所述的省电方法被执行。
本申请实施例还提供一种芯片,所述芯片包括处理器和通信接口,所述通信接口用于接收信号,并将所述信号传输至所述处理器,所述处理器处理所述信号,使得如前文中任一种可能的实现方式中所述的省电方法被执行。
本实施例还提供一种计算机可读存储介质,该计算机可读存储介质中存储有计算机指令,当该计算机指令在电子设备上运行时,使得电子设备执行上述相关方法步骤实现上述实施例中的省电方法。
本实施例还提供了一种计算机程序产品,当该计算机程序产品在计算机上运行时,使得计算机执行上述相关步骤,以实现上述实施例中的省电方法。
另外,本申请的实施例还提供一种装置,这个装置具体可以是芯片,组件或模块,该装置可包括相连的处理器和存储器;其中,存储器用于存储计算机执行指令,当装置运行时,处理器可执行存储器存储的计算机执行指令,以使芯片执行上述各方法实施例中的省电方法。
其中,本实施例提供的电子设备、计算机可读存储介质、计算机程序产品或芯片均用于执行上文所提供的对应的方法,因此,其所能达到的有益效果可参考上文所提供的对应的方法中的有益效果,此处不再赘述。
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。

Claims (25)

  1. 一种省电方法,其特征在于,所述省电方法应用于电子设备,所述方法包括:
    所述电子设备在省电模式触发条件满足时,进入第一省电模式,所述电子设备在进入所述第一省电模式时的电池电量为第一电量;
    在所述第一省电模式下,所述电子设备检测到所述电池电量降低为第二电量时,进入第二省电模式,所述第二电量小于所述第一电量。
  2. 根据权利要求1所述的方法,其特征在于,所述省电模式触发条件包括所述电子设备检测到所述电池电量降低为第一电量,和/或,所述电子设备检测到用户的第一操作,所述第一操作用于指示所述电子设备进入第一省电模式。
  3. 根据权利要求1或2所述的方法,其特征在于,所述方法还包括:
    所述电子设备在检测到所述电池电量降低为所述第二电量时,启动升压电路。
  4. 根据权利要求1-3中任一项所述的方法,其特征在于,所述方法还包括:
    所述电子设备在所述第一省电模式下显示第一显示界面,所述第一显示界面包括预设的应用程序,且,所述第一显示界面中的应用程序可添加或可移除。
  5. 根据权利要求4所述的方法,其特征在于,所述方法还包括:
    响应于用户的第二操作,所述电子设备将用户选择的应用程序添加至所述第一显示界面,或者将所述预设的应用程序中的一个或多个从所述第一显示界面中移除。
  6. 根据权利要求1-5中任一项所述的方法,其特征在于,所述方法还包括:
    所述电子设备在所述第二省电模式下显示第二显示界面,所述第二显示界面包括预设的应用程序和/或应用组件,且,所述第二显示界面中的应用程序和/或应用组件不可添加或不可移除。
  7. 根据权利要求1-6中任一项所述的方法,其特征在于,所述进入第二省电模式,包括:
    响应于用户在所述电子设备检测到所述电池电量降低为所述第二电量时显示的界面中的第三操作,所述电子设备进入第二省电模式。
  8. 根据权利要求3-7中任一项所述的方法,其特征在于,所述启动升压电路,包括:
    所述电子设备检测所述电子设备是否包括所述升压电路;
    在确定所述电子设备包括所述升压电路时,所述电子设备启动所述升压电路。
  9. 根据权利要求1-8中任一项所述的方法,其特征在于,所述方法还包括:
    响应于用户的第四操作,所述电子设备退出所述第二省电模式并关机。
  10. 根据权利要求9所述的方法,其特征在于,所述方法还包括:
    响应于用户的开机操作,所述电子设备进入所述第二省电模式。
  11. 根据权利要求1-10中任一项所述的方法,其特征在于,所述方法还包括:
    在所述第二省电模式下,所述电子设备检测到电池电量耗尽,所述电子设备关机。
  12. 根据权利要求1-11中任一项所述的方法,其特征在于,所述方法还包括:
    在所述第二省电模式下,所述电子设备检测到所述电池电量提升为第三电量时,所述电子设备退出所述第二省电模式,其中,所述第三电量大于所述第二电量。
  13. 根据权利要求8-12中任一项所述的方法,其特征在于,所述方法还包括:
    在所述电子设备退出所述第二省电模式时,关闭所述升压电路。
  14. 根据权利要求1-13中任一项所述的方法,其特征在于,所述第二电量为1%。
  15. 一种省电方法,其特征在于,所述省电方法应用于电子设备,所述方法包括:
    所述电子设备检测到电池电量降低为第二电量,其中,所述第二电量为所述电子设备提示即将关机时的电池电量;
    响应于所述电池电量降低为所述第二电量,所述电子设备启动升压电路。
  16. 根据权利要求15所述的方法,其特征在于,所述方法还包括:
    所述电子设备在检测到所述电池电量降低为所述第二电量时,进入第二省电模式;
    所述电子设备在所述第二省电模式下显示第二显示界面,其中,所述第二显示界面包括预设的应用程序和/或应用组件,且,所述第二显示界面中的应用程序和/或应用组件不可添加或不可移除。
  17. 根据权利要求15或16所述的方法,其特征在于,所述电子设备进入第二省电模式,包括:
    响应于用户在第一显示界面中的第一操作,所述电子设备进入第二省电模式,所述第一显示界面为所述电子设备在进入第二省电模式之前的界面。
  18. 根据权利要求15-17中任一项所述的方法,其特征在于,所述电子设备启动升压电路,包括:
    所述电子设备检测所述电子设备是否包括所述升压电路;
    在确定所述电子设备包括所述升压电路时,所述电子设备启动所述升压电路。
  19. 根据权利要求15-18中任一项所述的方法,其特征在于,所述方法还包括:
    响应于用户的第二操作,所述电子设备关闭所述升压电路并关机。
  20. 根据权利要求19所述的方法,其特征在于,所述方法还包括:
    响应于用户开机的操作,所述电子设备进入所述第二省电模式。
  21. 根据权利要求15-20中任一项所述的方法,其特征在于,所述方法还包括:
    在所述第二省电模式下,所述电子设备检测到电池电量耗尽,所述电子设备关机。
  22. 根据权利要求15-21中任一项所述的方法,其特征在于,所述方法还包括:
    在所述第二省电模式下,所述电子设备检测到所述电池电量提升为第三电量时,所述电子设备关闭所述升压电路,其中,所述第三电量大于所述第二电量。
  23. 根据权利要求15-22中任一项所述的方法,其特征在于,所述第二电量为1%。
  24. 一种电子设备,其特征在于,包括:一个或多个处理器;一个或多个存储器;该一个或多个存储器存储有一个或多个计算机程序,该一个或多个计算机程序包括指令,当该指令被一个或多个处理器执行时,使得如权利要求1-23中任一项所述的省电方法被执行。
  25. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有计算机指令,当所述计算机指令在计算机上运行时,使得如权利要求1-23中任一项所述的省电方法被执行。
PCT/CN2023/108669 2022-07-29 2023-07-21 省电方法和电子设备 WO2024022255A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210907364.2A CN117528719A (zh) 2022-07-29 2022-07-29 省电方法和电子设备
CN202210907364.2 2022-07-29

Publications (1)

Publication Number Publication Date
WO2024022255A1 true WO2024022255A1 (zh) 2024-02-01

Family

ID=89705478

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/108669 WO2024022255A1 (zh) 2022-07-29 2023-07-21 省电方法和电子设备

Country Status (2)

Country Link
CN (1) CN117528719A (zh)
WO (1) WO2024022255A1 (zh)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2876537A1 (en) * 2013-11-22 2015-05-27 Creoir Oy Power-save mode in electronic apparatus
CN106528378A (zh) * 2016-11-14 2017-03-22 上海斐讯数据通信技术有限公司 一种智能设备的充电提醒装置和方法
CN107219465A (zh) * 2017-06-08 2017-09-29 西安蜂语信息科技有限公司 一种延长待机时间的方法及装置
CN109803358A (zh) * 2018-12-13 2019-05-24 平安普惠企业管理有限公司 移动终端电量控制方法、装置、计算机设备及存储介质
CN111240456A (zh) * 2020-01-10 2020-06-05 北京小米移动软件有限公司 省电设置方法、省电设置装置及计算机存储介质

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2876537A1 (en) * 2013-11-22 2015-05-27 Creoir Oy Power-save mode in electronic apparatus
CN106528378A (zh) * 2016-11-14 2017-03-22 上海斐讯数据通信技术有限公司 一种智能设备的充电提醒装置和方法
CN107219465A (zh) * 2017-06-08 2017-09-29 西安蜂语信息科技有限公司 一种延长待机时间的方法及装置
CN109803358A (zh) * 2018-12-13 2019-05-24 平安普惠企业管理有限公司 移动终端电量控制方法、装置、计算机设备及存储介质
CN111240456A (zh) * 2020-01-10 2020-06-05 北京小米移动软件有限公司 省电设置方法、省电设置装置及计算机存储介质

Also Published As

Publication number Publication date
CN117528719A (zh) 2024-02-06

Similar Documents

Publication Publication Date Title
WO2021052263A1 (zh) 语音助手显示方法及装置
KR102470275B1 (ko) 음성 제어 방법 및 전자 장치
EP4030422B1 (en) Voice interaction method and device
WO2021057868A1 (zh) 一种界面切换方法及电子设备
WO2022068483A9 (zh) 应用启动方法、装置和电子设备
WO2020073288A1 (zh) 一种触发电子设备执行功能的方法及电子设备
US20230367418A1 (en) Method for Adjusting Touch Panel Sampling Rate and Electronic Device
JP7397861B2 (ja) スタイラスペン検出方法、システムおよび関連装置
WO2021078032A1 (zh) 用户界面的显示方法及电子设备
WO2021249281A1 (zh) 一种用于电子设备的交互方法和电子设备
WO2022053062A1 (zh) 一种IoT设备的管理方法及终端
WO2024021519A1 (zh) 卡片显示方法、终端设备
CN111381996B (zh) 内存异常处理方法及装置
WO2022033355A1 (zh) 一种邮件处理方法及电子设备
WO2024022255A1 (zh) 省电方法和电子设备
CN115083400A (zh) 语音助手唤醒方法及装置
CN114398108A (zh) 电子设备及其驱动加载方法、介质
CN111475363A (zh) 卡死识别方法及电子设备
WO2023246783A1 (zh) 调整设备功耗的方法及电子设备
WO2024087961A1 (zh) 显示方法和穿戴式设备
WO2024114285A1 (zh) 显示方法、显示装置和可穿戴设备
CN117116258B (zh) 一种语音唤醒方法及电子设备
WO2024109573A1 (zh) 悬浮窗显示的方法和电子设备
WO2024067599A1 (zh) 应用显示的方法和电子设备
WO2023051357A1 (zh) 一种虚拟设备运行方法

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23845465

Country of ref document: EP

Kind code of ref document: A1