Method for enabling power saving mode, and electronic device
By detecting the duration of the power-saving trigger state and providing a countdown interface for selection, the problem of terminal devices running out of power when users are unaware of power saving is solved, achieving more efficient power management and user experience.
Patent Information
- Application Number
- PCT/CN2024/078260
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-05-22
- Filing Date
- 2024-02-23
- Publication Date
- 2024-11-28
AI Technical Summary
The problem of users running their devices without any awareness of energy conservation leading to the battery being completely depleted.
By detecting the duration of the power-saving trigger state, it determines whether to activate the power-saving mode, including the user's inactive state, screen bright state, no-eye state, and sleep state. A countdown interface is provided for the user to choose whether to enter the power-saving mode, and power-saving management is performed based on whether the application has authorized it.
This prevents users from running out of battery due to applications running idly for extended periods without conscious power-saving measures, thus improving user experience and power efficiency.
Smart Images

Figure CN2024078260_28112024_PF_FP_ABST
Abstract
Description
Method for starting power saving mode and electronic device
[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office on May 22, 2023, with application number 202310581616.1 and application name “Method and electronic device for starting power saving mode”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of terminal technology, and in particular to a method for activating a power saving mode and an electronic device. Background Art
[0003] With the rapid development of smart terminals (hereinafter referred to as terminals), the functions of terminals are becoming more and more diverse. In real life, the time and frequency of users using terminals (such as mobile phones) have also increased. Correspondingly, the power consumption of terminals has also increased significantly. In the prior art, when the battery level of a terminal is lower than a threshold (for example, 20%), a power saving mode will be triggered. For example, the terminal background operating system will restrict the operation of certain applications, reduce the screen brightness, etc.
[0004] However, in some scenarios, users don't realize that applications on their devices are running idle for extended periods, causing the device's battery to drain quickly and shut down. For example, a user might fall asleep in bed watching a video on their phone, but the video continues playing until the battery runs out and the device shuts down. Another example is when a user is interrupted by something else and leaves the phone, which is still on, behind, causing it to drain.
[0005] Therefore, how to solve the problem of terminal battery being exhausted due to idling when users are not aware of power saving is an urgent problem that needs to be solved.
[0006] Summary of the Invention
[0007] The present application provides a method for starting a power saving mode and an electronic device, which solves the problem of the electronic device running out of power when the user is not aware of power saving.
[0008] In order to solve the above problems, this application adopts the following technical solutions:
[0009] In a first aspect, a method for starting a power saving mode is provided, which can be executed by an electronic device, or by a module (such as a processor, chip, or chip system) used in the electronic device, or by a logic node, logic module, or software that can realize all or part of the functions of the electronic device. The method includes: detecting the duration of a power saving trigger state, the power saving trigger state is used to trigger the electronic device to enter the power saving mode, and the power saving trigger state includes at least one of the following states: user no operation state, screen highlight state, no gaze state, sleep state; when the duration is greater than a time threshold, starting the electronic device to enter the power saving mode; or, when the duration is less than or equal to the time threshold, continuing to detect the duration and determining that the electronic device does not enter the power saving mode.
[0010] Usually, if users are not aware of power saving, electronic devices may waste power. Therefore, this method identifies the power saving trigger state and determines whether to start the electronic device into power saving mode based on the relationship between the duration of the power saving trigger state and the time threshold. For example, when the duration is less than or equal to the time threshold, the duration is continued to be detected and the electronic device is not started into power saving mode; when the duration is greater than the time threshold, the electronic device is started into power saving mode in a timely manner to avoid the situation where the electronic device wastes power due to the application running idle for a long time when the user is not aware of power saving.
[0011] In an optional embodiment, the power saving trigger state includes a user no operation state, and detecting the duration of the power saving trigger state includes: when a user operation event is detected, starting a first timer; and detecting the duration of the user no operation state through the first timer.
[0012] The electronic device determines whether to start the power saving mode by identifying the user's inactivity and recording the duration of the user's inactivity, thereby avoiding starting the power saving mode while the user is using the electronic device, thereby improving the user experience.
[0013] In an optional embodiment, the power saving trigger state includes a screen highlight state, which is a state in which the brightness value of the screen is greater than a brightness threshold; detecting the duration of the power saving trigger state includes: when the screen highlight state is detected, starting a second timer; and detecting the duration of the screen highlight state by the second timer.
[0014] The electronic device determines whether to start the power saving mode by identifying the screen highlight state and recording the duration of the screen highlight state, which can avoid starting the power saving mode while the user is using the electronic device, thereby improving the user experience.
[0015] In an optional embodiment, the power-saving trigger state includes a no-gaze state, which refers to a state in which the user's eyes are away from the screen; detecting the duration of the power-saving trigger state includes: when the no-gaze state is detected, starting a third timer; and detecting the duration of the no-gaze state by the third timer.
[0016] By identifying the no-gaze state and recording the duration of the no-gaze state, the electronic device can determine whether to activate the power saving mode, thereby avoiding activating the power saving mode when the user is using the electronic device, thereby improving the user experience.
[0017] In an optional embodiment, the power saving trigger state includes a sleep state, and detecting the duration of the power saving trigger state includes: when the sleep state is detected and the screen is in the bright screen state, starting a fourth timer; detecting the duration of the sleep state through the fourth timer.
[0018] By identifying the sleep state and recording the duration of the sleep state, the electronic device can determine whether to start the power saving mode, thereby avoiding starting the power saving mode when the user uses the electronic device, thereby improving the user experience.
[0019] In an optional embodiment, when the duration is greater than a time threshold, the method further includes: displaying a countdown interface of preset transparency on the screen of the electronic device, the countdown interface including a first option and a second option, the first option indicating agreement to start the power saving mode, and the second option being used to indicate disagreement to start the power saving mode.
[0020] By displaying a countdown interface with preset transparency on the screen, the electronic device can remind the user that the electronic device is about to enter the power saving mode, giving the user choice. The user can determine whether to enter the power saving mode before the countdown ends according to their own needs, thereby improving the user experience.
[0021] In an optional embodiment, when the duration is greater than a time threshold, the electronic device is started to enter a power saving mode, including: when the duration is greater than the time threshold and it is detected that the user selects the first option on the countdown interface, the electronic device is started to enter a power saving mode.
[0022] The electronic device determines to start the electronic device into the power saving mode according to the first option selected by the user on the countdown interface, rather than directly entering the power saving mode, which can improve the user experience.
[0023] In an optional embodiment, when the duration is greater than a time threshold, the electronic device is started to enter a power saving mode, including: when the duration is greater than the time threshold and at the end of the countdown on the countdown interface, no user is detected selecting the first option or the second option of the countdown interface, then the electronic device is started to enter a power saving mode.
[0024] If the electronic device does not detect the user's selection operation before the countdown ends, the electronic device will start to enter the power saving mode to avoid the situation where the application runs idle for a long time and the electronic device runs out of power.
[0025] In an optional embodiment, when starting the electronic device to enter the power saving mode, the method also includes: detecting whether the current application is an authorized application, an authorized application refers to an application that has obtained power saving management authorization; when the current application is an authorized application, performing power saving management on the current application; when the current application is not an authorized application, determining not to perform power saving management on the current application.
[0026] Users can set up authorization for power-saving management for current applications in advance based on their usage needs; electronic devices determine whether to perform power-saving management on the current application by detecting whether the current application is an authorized application; this method can support users to customize whether the application enters the power-saving management range according to their own habits or preferences, with flexible settings and improved user experience.
[0027] In a second aspect, an electronic device is provided, comprising a processor and a memory, wherein the memory is used to store a computer program, and the processor is used to call and run the computer program from the memory, so that the electronic device executes any one of the methods in the first aspect.
[0028] According to a third aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program. When the computer program is executed by a processor, the processor executes any one of the methods according to the first aspect.
[0029] In a fourth aspect, a computer program product is provided, the computer program product comprising: a computer program code, which, when executed by an electronic device, enables the electronic device to execute any one of the methods in the first aspect.
[0030] In a fifth aspect, a chip system is provided, which includes a memory and a processor, and the processor is configured to execute a computer program stored in the memory to implement any method in the first aspect.
[0031] The beneficial effects of the technical solutions in the second, third, fourth and fifth aspects of this application are the same as the beneficial effects of the technical solution in the first aspect and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] FIG1 is a schematic structural diagram of an electronic device 100 provided in an embodiment of the present application;
[0033] FIG2 is a schematic diagram of a software structure of an electronic device 100 provided in an embodiment of the present application;
[0034] FIG3 is a schematic diagram of a method for starting a power saving mode provided in an embodiment of the present application;
[0035] FIG4 is a schematic diagram of an interface of a method for starting a power saving mode provided in an embodiment of the present application;
[0036] FIG5 is a schematic diagram of an interface of another method for starting a power saving mode provided in an embodiment of the present application;
[0037] FIG6 is a schematic diagram of an interface of another method for starting the power saving mode provided in an embodiment of the present application;
[0038] FIG7 is a schematic structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0039] The technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings.
[0040] FIG1 shows a schematic structural diagram of an electronic device 100 to which the above method (ie, a method for starting a power saving mode) is applicable.
[0041] The electronic device 100 may include at least one of a mobile phone, a foldable electronic device, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a cellular phone, a personal digital assistant (PDA), an augmented reality (AR) device, a virtual reality (VR) device, an artificial intelligence (AI) device, a wearable device, an in-vehicle device, a smart home device, or a smart city device. The embodiments of the present application do not impose any particular restrictions on the specific type of the electronic device 100.
[0042] 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, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor 180, a button 190, an indicator 191, a subscriber identification module (SIM) card interface 192, a camera 193 and a display screen 194, etc.
[0043] It should be understood that the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than those in FIG. 1 , or may combine or separate certain components, or may have different component arrangements. The components in FIG. 1 may be implemented in hardware, software, or a combination of software and hardware.
[0044] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). The different processing units may be independent devices or integrated into one or more processors.
[0045] The processor can generate operation control signals based on instruction opcodes and timing signals to complete the control of instruction fetching and execution.
[0046] Processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 110 may be a cache memory. This memory can store instructions or data that have been used or are frequently used by processor 110. When processor 110 needs to use the instruction or data, it can directly access it from this memory. This avoids duplicate accesses, reduces processor 110 latency, and thus improves system efficiency.
[0047] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface. The processor 110 may be connected to modules such as a touch sensor, an audio module, a wireless communication module, a display (screen), and a camera module through at least one of the above interfaces.
[0048] It is understood that the interface connection relationship between the modules illustrated in the embodiments of the present application is merely an illustrative illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods from the above embodiments, or a combination of multiple interface connection methods.
[0049] The USB interface 130 is an interface that complies with USB standard specifications and can be used to connect the electronic device 100 and peripheral devices. Specifically, it can 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 enable the charger to charge the electronic device 100, and can also be used to connect other electronic devices to enable data transmission between the electronic device 100 and other electronic devices. It can also be used to connect headphones to output audio stored in the electronic device through the headphones. The interface can also be used to connect other electronic devices, such as VR devices. In some embodiments, the standard specifications of the universal serial bus can be USB1.x, USB2.0, USB3.x and USB4.
[0050] The charging management module 140 is configured to receive charging input from a charger. The charger can be either a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 can receive charging input from the wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 can receive wireless charging input via the wireless charging coil of the electronic device 100. While charging the battery 142, the charging management module 140 can also provide power to the electronic device 100 via the power management module 141.
[0051] The power management module 141 is used to connect the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140 and provides power to the processor 110, the internal memory 121, the display 194, the wireless communication module 160, and the like. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage, impedance). In some other embodiments, the power management module 141 can also be provided in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be provided in the same device.
[0052] 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.
[0053] Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In other embodiments, the antennas can be used in conjunction with a tuning switch.
[0054] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.
[0055] The modem processor may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be transmitted 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. After being processed by the baseband processor, the low-frequency baseband signal is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.) or displays an image or video through the display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.
[0056] The wireless communication module 160 can provide wireless communication solutions applied to the electronic device 100, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), Bluetooth low energy (BLE), ultra wide band (UWB), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (IR), etc. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0057] In some embodiments, 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 a network and other electronic devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).
[0058] Electronic device 100 can implement display functions using a GPU, display screen 194, and an application processor. A GPU is a microprocessor for image processing that connects display screen 194 and the application processor. The GPU is 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 modify display information.
[0059] 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. The external memory card communicates with the processor 110 via the external memory interface 120 to implement data storage functions. For example, files such as music and videos can be saved on the external memory card or transferred from the electronic device to the external memory card.
[0060] The internal memory 121 can be used to store computer executable program code, which includes instructions. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area can store an operating system, an application required for at least one function (for example, a sound playback function, an image playback function, etc.), etc. The data storage area can store data created during the use of the electronic device 100 (for example, audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 110 executes various functional methods or data processing of the electronic device 100 by running instructions stored in the internal memory 121, and / or instructions stored in a memory provided in the processor.
[0061] The electronic device 100 can implement audio functions such as music playback and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
[0062] 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. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be provided in the processor 110, or some functional modules of the audio module 170 can be provided in the processor 110.
[0063] The speaker 170A, also called a "speaker," is used to convert audio electrical signals into sound signals. The electronic device 100 can listen to music or output audio signals for hands-free calls through the speaker 170A.
[0064] The receiver 170B, also called a "handset", is used to convert audio electrical signals into sound signals. When the electronic device 100 receives a call or a voice message, the user can place the receiver 170B close to the ear to hear the voice.
[0065] Microphone 170C, also known as "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by putting their mouth close to the microphone 170C to input the sound signal into the microphone 170C. The electronic device 100 can be provided with at least one microphone 170C. In other embodiments, the electronic device 100 can be provided with two microphones 170C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify the source of sound, realize directional recording function, etc.
[0066] The headphone jack 170D is used to connect a wired headphone and can be the USB interface 130 or a 3.5mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.
[0067] The sensor 180 may include a pressure sensor, a gyroscope sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, a sleep monitoring sensor, etc., which is used to convert various signals from the outside world into electrical signals or other required forms of information output.
[0068] The buttons 190 may include a power button, a volume button, etc. The buttons 190 may be mechanical buttons or touch buttons. The electronic device 100 may receive key inputs and generate key signal inputs related to user settings and function control of the electronic device 100.
[0069] The indicator 191 may be an indicator light, which may be used to indicate charging status, power level changes, missed calls, notifications, etc.
[0070] The SIM card interface 192 is used to connect a SIM card. The SIM card can be connected to and separated from the electronic device 100 by inserting it into the SIM card interface 192 or removing it from the SIM card interface 192. The electronic device 100 can support one or more SIM card interfaces 192. The SIM card interface 192 can support Nano SIM cards, Micro SIM cards, SIM cards, etc. Multiple cards can be inserted into the same SIM card interface 192 at the same time. The types of multiple cards can be the same or different. The SIM card interface 192 can also be compatible with different types of SIM cards. The SIM card interface 192 can also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to achieve functions such as calls and data communications. In some embodiments, the electronic device 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
[0071] The electronic device 100 can realize the camera function through the camera 193, ISP, video codec, GPU, display screen 194, application processor AP, neural network processor NPU, etc.
[0072] The camera 193 can be used to collect color image data of the subject (for example, the user's facial image, so that the electronic device 100 can detect from the facial image whether the user's eyes are looking at the camera, and then infer whether the user's sight has left the display screen 194) and depth data. The ISP can be used to process the color image data collected by the camera 193. For example, when taking a picture, the shutter is opened, and light is transmitted to the camera's photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera's photosensitive element transmits the electrical signal to the ISP for processing and converting it into an image visible to the naked eye. The ISP can also perform algorithmic optimization on the noise, brightness, and skin color of the image. The ISP can also optimize parameters such as exposure and color temperature of the shooting scene. In some embodiments, the ISP can be set in the camera 193.
[0073] In some embodiments, the camera 193 may be composed of a color camera module and a 3D sensing module.
[0074] In some embodiments, the photosensitive element of the camera of the color camera module can be a charge coupled device (CCD) or complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, which is then transmitted to the ISP for conversion into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard format such as RGB or YUV.
[0075] In some embodiments, the 3D sensing module can be a time of flight (TOF) 3D sensing module or a structured light 3D sensing module. Structured light 3D sensing is an active depth sensing technology, and its basic components may include an infrared emitter, an IR camera module, and the like. The operating principle of a structured light 3D sensing module is to first emit a specific pattern of light spots at the object being photographed, then receive the light spot pattern coding on the object's surface, compare the similarities and differences with the original projected light spot, and calculate the object's three-dimensional coordinates using triangulation principles. These three-dimensional coordinates include the distance between the electronic device 100 and the object being photographed. TOF 3D sensing can be an active depth sensing technology, and its basic components may include an infrared emitter, an IR camera module, and the like. The operating principle of a TOF 3D sensing module is to calculate the distance (i.e., depth) between the TOF 3D sensing module and the object being photographed based on the time it takes for the infrared light to return, thereby generating a 3D depth map.
[0076] Structured light 3D sensing modules can also be used in facial recognition, motion-sensing game consoles, industrial machine vision inspection, and other fields. Time of Flight 3D sensing modules can also be used in game consoles, augmented reality (AR) and virtual reality (VR).
[0077] In other embodiments, the camera 193 may also be composed of two or more cameras. The two or more cameras may include a color camera, which can be used to collect color image data of the object being photographed. The two or more cameras may use stereo vision technology to collect depth data of the object being photographed. Stereo vision technology is based on the principle of human eye parallax. Under natural light, two or more cameras are used to capture images of the same object from different angles, and then triangulation and other calculations are performed to obtain distance information between the electronic device 100 and the object being photographed, that is, depth information.
[0078] In some embodiments, the electronic device 100 may include one or more cameras 193. Specifically, the electronic device 100 may include one front-facing camera and one rear-facing camera. The front-facing camera may be used to capture color image data and depth data of the user facing the display screen 194, while the rear-facing camera may be used to capture color image data and depth data of the subject (e.g., a person, scenery, or food) facing the user.
[0079] In some embodiments, the CPU or GPU or NPU in the processor 110 can process the color image data and depth data collected by the camera 193. In some embodiments, the NPU can identify the color image data collected by the camera 193 (specifically the color camera module) through a neural network algorithm based on the skeleton point recognition technology, such as a convolutional neural network algorithm (CNN), to determine the skeleton points of the person being photographed. The CPU or GPU can also run a neural network algorithm to determine the skeleton points of the person being photographed based on the color image data. In some embodiments, the CPU or GPU or NPU can also be used to confirm the figure of the person being photographed (such as body proportions, fatness and thinness of body parts between skeleton points) based on the depth data and identified skeleton points collected by the camera 193 (which can be a 3D sensing module), and can further determine the body beautification parameters for the person being photographed, and finally process the captured image of the person being photographed according to the body beautification parameters so that the body shape of the person being photographed in the captured image is beautified. How to perform body beautification processing on the image of the photographed person based on the color image data and depth data collected by the camera 193 will be described in detail in subsequent embodiments, which will not be described here in detail.
[0080] The display screen 194 is used to display captured images, countdown information for entering power saving mode, videos, and other data. For example, the display screen 194 can be used to display pictures and videos captured by the camera 193. The display screen 194 includes a display panel. The display panel can be 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 (AMOLED), a flexible light-emitting diode (FLED), a MiniLED, a MicroLed, a Micro-OLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include one or more display screens 194.
[0081] The software system of the electronic device 100 can adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. In the embodiment of the present application, the Android system with a layered architecture is used as an example to illustrate the software structure of the electronic device 100.
[0082] FIG2 is a block diagram of the software structure of the electronic device 100 according to an embodiment of the present application.
[0083] A layered architecture divides software into several layers, each with distinct roles and responsibilities. Layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into five layers: from top to bottom: the application layer, the application framework layer, the Android runtime (ART) and native C / C++ libraries, the hardware abstraction layer (HAL), and the kernel layer.
[0084] The application layer can include a series of application packages.
[0085] As shown in FIG2 , the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, and short message.
[0086] The application framework layer provides an application programming interface (API) and programming framework for applications in the application layer. The application framework layer includes some predefined functions.
[0087] As shown in FIG2 , the application framework layer may include a window manager, a content provider, a view system, a resource manager, a notification manager, an activity manager, an input manager, and the like.
[0088] The window manager provides window management services (WMS). WMS can be used for window management, window animation management, surface management, and as a transfer station for the input system.
[0089] Content providers are used to store and retrieve data and make it accessible to applications. This data can include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
[0090] The view system includes visual controls, such as those for displaying text and images. The view system is used to build applications. A display interface can consist of one or more views. For example, a display interface containing a text notification icon might include a view for displaying text and a view for displaying images.
[0091] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
[0092] The Notification Manager allows applications to display notifications in the status bar. These messages can be displayed briefly and then disappear automatically without user interaction. For example, the Notification Manager is used to notify users of completed downloads and message reminders. The Notification Manager can also display notifications in the top status bar of the system as icons or scrolling text, such as notifications from background applications, or as dialog windows on the screen. Examples include text messages in the status bar, beeps, vibrations on electronic devices, and flashing indicator lights.
[0093] The Activity Manager can provide Activity Management Service (AMS), which can be used to start, switch, and schedule system components (such as activities, services, content providers, and broadcast receivers) as well as manage and schedule application processes.
[0094] The Input Manager provides Input Management Service (IMS), which manages system inputs, such as touch screen input, key input, and sensor input. The IMS retrieves events from input device nodes and, through interaction with the WMS, distributes the events to the appropriate window.
[0095] The Android runtime consists of the core libraries and the Android runtime. The Android runtime is responsible for converting source code into machine code. It primarily utilizes ahead-of-time (AOT) and just-in-time (JIT) compilation technologies.
[0096] The core library is mainly used to provide basic Java class library functions, such as basic data structures, mathematics, IO, tools, databases, networks, etc. The core library provides an API for users to develop Android applications.
[0097] Native C / C++ libraries can include multiple functional modules, such as surface manager, media framework, libc, OpenGL ES, SQLite, Webkit, etc.
[0098] Among them, the surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications. The media framework supports the 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. OpenGL ES provides the drawing and operation of 2D graphics and 3D graphics in the application. SQLite provides a lightweight relational database for the application of the electronic device 100.
[0099] The hardware abstraction layer runs in user space, encapsulates kernel layer drivers, and provides a calling interface to the upper layer.
[0100] The kernel layer is the layer between hardware and software. The kernel layer includes at least display driver, camera driver, audio driver, and sensor driver.
[0101] The methods in the following embodiments can all be implemented in the electronic device 100 having the above-mentioned hardware structure and software structure.
[0102] For ease of understanding, the following embodiments of this application will take the electronic device 100 having the structure shown in Figures 1 and 2 as an example, and combine the accompanying drawings and application scenarios to specifically illustrate the method for starting the power saving mode provided in the embodiments of this application. It should be understood that the electronic device to which this method is applicable is not limited to the hardware and software structures shown in Figures 1 and 2. In actual applications, the hardware and software system architecture shown in Figures 1 and 2 can be modified according to specific application scenarios, and this application does not limit this.
[0103] The following describes the method for activating the power saving mode provided by the present application, using a mobile phone having the structure shown in Figures 1 and 2 as an example. The method can be executed by an electronic device, or by a module (such as a processor, chip, or chip system) used in the electronic device, or by a logical node, logic module, or software that can implement all or part of the functions of the electronic device.
[0104] Optionally, the electronic device may be a terminal device, such as a mobile phone. In an optional embodiment, the terminal device may include a power-saving module, and the terminal device may control whether the terminal device (i.e., the terminal device) enters a power-saving mode through the power-saving module, wherein the power-saving module is used to manage the operation or shutdown of at least one application; in another optional embodiment, the terminal device may not include the power-saving module, and the terminal device may control itself to enter the power-saving mode through other units or modules, either individually or in combination; in actual applications, the structure of the terminal device may be designed according to actual needs, and this application does not limit this.
[0105] The following uses a mobile phone as an example electronic device, wherein the mobile phone includes a power saving module, which is used to manage the operation or shutdown of at least one application. The mobile phone can activate itself to enter power saving mode through the power saving module. As shown in Figure 3, a method 300 for activating power saving mode is shown, which includes S301 and S302:
[0106] S301, the mobile phone detects the duration of the power saving trigger state, the power saving trigger state is used to trigger the mobile phone to enter the power saving mode, and the power saving trigger state includes at least one of the following states: user no operation state, screen highlight state, no gaze state, and sleep state.
[0107] Among them, the user no operation state means that the mobile phone does not detect any user operation event within a preset time period; the user operation event includes but is not limited to click events, sliding events, air gesture events and language command events, among which the click event can be a single-click event or a double-click event; the sliding event can be a sliding event to the top of the screen, a sliding event to the bottom of the screen, a sliding event to the left of the screen or a sliding event to the right of the screen; the air gesture event can be a static gesture event or a dynamic gesture event, for example, a static gesture event can be a five-finger spread gesture, an OK gesture and a fist gesture, etc., and a dynamic gesture event can be a finger drawing an M-shaped gesture, a finger drawing an L-shaped gesture, etc., and this application does not limit this; a language command event refers to the user operating the application on the mobile phone through the voice recognition command set by the mobile phone. For example, the user is currently using the mobile phone to watch a video. The user can wake up the voice recognition function of the mobile phone by shouting "***", and then shout to play the next episode. The mobile phone will switch the current episode to the next episode for playback according to the voice command of "Play next episode" input by the user.
[0108] The screen highlight state refers to the state in which the mobile phone detects that the brightness value of the display screen 194 is greater than or equal to the brightness threshold, where the brightness threshold can be 90% or 95%, which is not limited in this application; for example, if the brightness value of the display screen 194 is greater than 90%, it means that the display screen 194 is in the highlight state, that is, the mobile phone is currently in the screen highlight state. Correspondingly, the non-screen highlight state refers to the state in which the mobile phone detects that the brightness value of the display screen 194 is less than the brightness threshold.
[0109] The no-gaze state refers to a state in which the mobile phone detects that the user's gaze has left the mobile phone display screen 194 ; for example, the gaze perception module in the mobile phone detects that the user's gaze has left the display screen 194 .
[0110] The sleep state refers to the mobile phone detecting that the user is currently sleeping; for example, the mobile phone determines whether the user is currently sleeping by obtaining sleep data (such as alpha wave data) collected by a wearable device worn by the user.
[0111] It should be noted that in the following different scenarios, the power saving trigger state may include at least one of the following states: user no operation state, screen highlight state, no attention state, and sleep state. The specific scenarios are as follows:
[0112] In a scenario where the screen is on and the remaining battery power is greater than a battery threshold, one optional implementation is that the mobile phone can determine whether to activate the mobile phone into power saving mode by detecting whether the duration of any one of the following states, including the user's inactivity, screen highlighting, no gaze, or sleep state, is greater than a time threshold. Another optional implementation is that the mobile phone can determine whether to activate the mobile phone into power saving mode by detecting whether the duration of any two or more of the following states, including the user's inactivity, screen highlighting, no gaze, or sleep state, is greater than a time threshold. The remaining battery power refers to the current remaining battery power of the mobile phone.
[0113] When the screen is off and the remaining battery power is greater than the battery threshold, the mobile phone can determine whether it is necessary to start the mobile phone into power saving mode by detecting whether the duration of the user's inactivity and sleep state is greater than the time threshold.
[0114] When the screen is off and the power consumption is less than or equal to the power threshold, or when the screen is on and the power consumption is less than or equal to the power threshold, the phone will start to enter power saving mode, that is, the phone will enter low power consumption mode to save power and extend the usage time of the phone.
[0115] It should be noted that the above power threshold may be a preset power value, for example, 20% or 10%, and this application does not limit this.
[0116] S302, when the duration is greater than the time threshold, start the mobile phone to enter the power saving mode; or when the duration is less than or equal to the time threshold, continue to detect the duration and determine that the mobile phone does not enter the power saving mode.
[0117] Optionally, the mobile phone can manage the operation or shutdown of at least one application through the power-saving module, so that the mobile phone enters power-saving mode or low power consumption mode, that is, the mobile phone can start to enter power-saving mode by itself through the power-saving module. For example, if the mobile phone detects that the duration of the power-saving trigger state is greater than the time threshold, the power-saving module is triggered to work, so that the mobile phone enters power-saving mode; at this time, the power-saving module can close the currently running application or limit some functions of the currently running application. For example, the mobile phone is currently running applications A and B. When the power-saving module is triggered, the power-saving module can close application A and application B, or it can only close application A and limit some functions of application B, so that the mobile phone enters power-saving mode. For detailed descriptions, please refer to the embodiments below and will not be repeated here.
[0118] The time threshold refers to a preset duration, for example, the time threshold is 1 hour or 0.5 hour, etc. When the duration is greater than 1 hour (or 0.5 hour), the mobile phone starts the power saving module to make the mobile phone enter the power saving mode; otherwise, the power saving module is not started, that is, the mobile phone does not enter the power saving mode.
[0119] It should be noted that after the mobile phone starts the power saving module, the mobile phone will enter the power saving mode or low power consumption mode.
[0120] The phone uses a timer to detect the duration of the power-saving trigger state. When the duration is greater than the event threshold, the phone will start the power-saving module. At this time, the power-saving module will close the currently running application or limit some functions of the running application (for example, some high-power-consuming functions) to make the phone enter power-saving mode or low-power consumption mode, thereby extending the usage time of the phone.
[0121] It can be seen from this that if users are not aware of power saving, their mobile phones may waste power. Therefore, this method identifies the power saving trigger state and determines whether to start the mobile phone into power saving mode based on the relationship between the duration of the power saving trigger state and the time threshold. For example, when the duration is less than or equal to the time threshold, the duration is continued to be detected and the mobile phone is not started into power saving mode; when the duration is greater than the time threshold, the mobile phone is started into power saving mode in time to avoid the situation where the mobile phone wastes power due to the application running idle for a long time when the user is not aware of power saving.
[0122] In different scenarios, the method 300 has different implementations. The following describes the method of starting the power saving mode in combination with different scenarios.
[0123] Scenario 1: The screen is on and the remaining battery power is greater than the battery threshold
[0124] In an optional implementation, the power saving triggering state includes a user inactive state, and S301 specifically includes: when a user operation event is detected, starting a first timer; and detecting a duration of the user inactive state by using the first timer.
[0125] The first timer is used to record the duration of the user's inactivity.
[0126] For example, the user operation event is a click event, and the user is currently watching a video on a mobile phone. During the video watching process, the user will play the video by clicking the play button, the selection button, the volume button, the fast forward button, etc.; when the user clicks the play button of the video application on the display screen 194, the mobile phone starts the first timer to start timing, and uses the first timer to detect the duration of the user's inactivity; when the duration of the user's inactivity is greater than the time threshold, it means that the user may have fallen asleep, or may have left the phone to do other things. At this time, the mobile phone will generate a prompt message to remind the user that it is about to enter power saving mode or low power consumption mode; the user can choose whether to let the mobile phone enter power saving mode or low power consumption mode according to the prompt message; if the user chooses to enter power saving mode or the user does not make any choice within a preset time (for example, before the end of the countdown below), the mobile phone starts the power saving module; at this time, the power saving module will close the video application, causing the mobile phone to enter power saving mode or low power consumption mode to avoid the situation where the video application continues to play until the battery is exhausted and shuts down when the user is not aware of power saving. On the contrary, if the user chooses not to enter the power saving mode, the mobile phone determines not to start the power saving module and continues to play the video.
[0127] It should be noted that the user's unawareness of power saving refers to a state in which the user is unaware that applications on the phone continue to run even when the user is not using them. The prompt information can be a countdown message or a message reminder message, which is not limited in this application. Please refer to the relevant embodiments of the interface display below and will not be repeated here.
[0128] In this embodiment, the mobile phone determines whether to start the power saving mode by identifying the user's inactivity and recording the duration of the user's inactivity. This can avoid starting the power saving mode while the user is using the mobile phone, thereby improving the user experience.
[0129] In another optional embodiment, the power saving trigger state includes a screen highlight state, where the screen brightness is greater than a brightness threshold. S301 specifically includes: upon detecting the screen highlight state, starting a second timer; and detecting, by the second timer, the duration of the screen highlight state. The second timer is configured to record the duration of the screen highlight state.
[0130] It should be noted that the screen brightness is proportional to the power consumption. The longer the display screen 194 is in the high-brightness state, the greater the power consumption of the mobile phone.
[0131] For example, a user uses a mobile phone to watch a short video and adjusts the screen brightness of the display screen 194 to a high-brightness state; when the mobile phone detects that the user adjusts the screen brightness to a high-brightness state, the mobile phone starts a second timer to start timing, and uses the second timer to detect the duration of the high-brightness state; when the duration of the high-brightness state is greater than the time threshold, in order to avoid the user putting down the mobile phone to do other things and forgetting to turn off the short video playback, the mobile phone will generate a prompt message to remind the user that it is about to enter power saving mode or low power consumption mode; the user can choose whether to let the mobile phone enter power saving mode or low power consumption mode according to the prompt message; if the user chooses to enter power saving mode or the user does not make any choice within a preset time (for example, before the end of the countdown below), the mobile phone starts the power saving module; at this time, the power saving module will turn off the video application, causing the mobile phone to enter power saving mode or low power consumption mode to avoid the user playing short videos on the mobile phone until the battery is exhausted without watching.
[0132] This shows that the mobile phone determines whether to start the power saving mode by identifying the screen highlight state and recording the duration of the screen highlight state, which can avoid starting the power saving mode while the user is using the mobile phone, thereby improving the user experience.
[0133] In another optional embodiment, the power saving trigger state includes a no-gaze state, which refers to a state in which the user's eyes are away from the screen; S301 specifically includes: when the no-gaze state is detected, the mobile phone starts a third timer; and detects the duration of the no-gaze state by the third timer.
[0134] For example, when a user uses a mobile phone to read an e-book, the user may turn pages, slide the reading interface up and down, etc. during the process of reading the e-book; when the mobile phone detects that the user's eyes leave the display screen 194 (that is, the mobile phone detects a no-gaze state), the mobile phone starts a third timer to start timing, and uses the third timer to detect the duration of the no-gaze state; when the duration of the no-gaze state is greater than a time threshold, the mobile phone will generate a prompt message to remind the user that it is about to enter a power saving mode or a low power consumption mode; the user can choose whether to let the mobile phone enter the power saving mode or the low power consumption mode according to the prompt message; if the user chooses to enter the power saving mode or the user does not make any choice within a preset time (for example, before the end of the countdown below), the mobile phone starts the power saving module; at this time, the power saving module will turn off the e-book, causing the mobile phone to enter the power saving mode or the low power consumption mode, so as to avoid the situation where the e-book is always running when the user is not reading and the mobile phone battery is exhausted.
[0135] In this embodiment, the mobile phone determines whether to start the power saving mode by identifying the no-gaze state and recording the duration of the no-gaze state, which can avoid starting the power saving mode while the user is using the mobile phone, thereby improving the user experience.
[0136] In an optional embodiment, the power saving trigger state includes a sleep state, and detecting the duration of the power saving trigger state includes: when the sleep state is detected and the screen is in a bright state, starting a fourth timer; and detecting the duration of the sleep state by the fourth timer.
[0137] It should be noted that the mobile phone can obtain relevant data on whether the user is in a sleep state through the smart wearable device worn by the user (such as a smart watch, smart bracelet, etc.). For example, if the mobile phone determines that the user is in a sleep state based on the relevant data, the mobile phone starts the power saving module to make the mobile phone enter the power saving mode; if the mobile phone determines that the user is not in a sleep state based on the relevant data, the mobile phone determines not to start the power saving mode.
[0138] For example, a user wears a smart bracelet on their wrist that can monitor the user's sleep status and communicate with a mobile phone. When the user browses a shopping website using the mobile phone, the mobile phone will obtain relevant data reflecting whether the user is asleep from the smart bracelet at intervals (the period of time can be a preset time length, for example, 1 minute or 5 minutes, etc.), and determine whether the user is in a sleeping state based on the relevant data. When the mobile phone detects that the user is in a sleeping state, the mobile phone starts a fourth timer to start timing, and uses the fourth timer to detect the duration of the sleeping state. When the duration of the sleeping state exceeds a time threshold, the mobile phone will generate a prompt message to remind the user that it is about to enter a power saving mode or a low power consumption mode. The user can determine whether to enter the power saving mode or the low power consumption mode based on the prompt message. If the user chooses to enter the power saving mode or the user does not make any selection within a preset time length (for example, before the end of the countdown below), the mobile phone will start the power saving module. At this time, the power saving module will close the shopping website, causing the mobile phone to enter the power saving mode or the low power consumption mode to extend the usage time of the mobile phone.
[0139] This shows that by identifying the sleep state and recording the duration of the sleep state, the mobile phone determines whether to start the power saving mode, which can avoid starting the power saving mode while the user is using the mobile phone, thereby improving the user experience.
[0140] It should be noted that when the mobile phone detects that the user has been in a non-operating state for a long time, or the screen has been in a highlighted state for a long time, or the user has been in a non-attention state for a long time, or the sleep state for a long time is less than or equal to the time threshold, the mobile phone will continue to detect the duration of these four states and determine not to start the power saving module.
[0141] It should also be noted that when the mobile phone detects the duration of the power saving trigger state through a timer (e.g., a first timer, a second timer, etc.), when the power saving trigger state is interrupted, the timer will restart. Among them, the interruption of the trigger state can be understood as follows:
[0142] 1) When the mobile phone detects a user operation event, the mobile phone starts a first timer to record the duration of the user's inactivity; during the timing of the first timer, when the duration of the user's inactivity recorded by the first timer is less than or equal to the time threshold, if the mobile phone detects a user operation event again, the first timer will interrupt the currently recorded duration of the user's inactivity and restart the timing.
[0143] 2) When the mobile phone detects that the display screen 194 is in the screen highlight state, the mobile phone starts the second timer to start recording the duration of the screen highlight state; during the timing of the second timer, when the duration of the screen highlight state recorded by the second timer is less than or equal to the time threshold, if the mobile phone detects that the display screen 194 is in the non-screen highlight state, the second timer will interrupt the currently recorded duration of the screen highlight state and start a new timing.
[0144] 3) When the mobile phone detects that the user is not looking, the mobile phone starts a third timer to record the duration of the not looking state. During the counting process of the third timer, if the duration of the not looking state recorded by the third timer is less than or equal to the time threshold, if the mobile phone detects that the user is looking, the third timer will interrupt the current recording of the duration of the not looking state and restart the counting. The user looking state refers to the state where the user's gaze returns to the display screen 194.
[0145] 4) When the mobile phone detects that the user is in a sleeping state, the mobile phone starts a fourth timer to record the duration of the sleeping state; during the timing of the fourth timer, when the duration of the sleeping state recorded by the fourth timer is less than or equal to the time threshold, if the mobile phone detects that the user is in a non-sleeping state, the fourth timer will interrupt the currently recorded duration of the sleeping state and start a new timing.
[0146] In another optional implementation, the mobile phone can determine whether it is necessary to start the power saving module by detecting whether the duration of two or more of the user's no-operation state, screen highlight state, no-attention state, or sleep state is greater than a time threshold.
[0147] For example, the mobile phone determines whether to start the power saving module by monitoring the duration of the user's inactivity and the duration of the sleep state; when the user uses the mobile phone for video learning, the mobile phone will obtain relevant data reflecting whether the user is asleep from the smart meter at intervals (for example, 5 minutes), and determine whether the user is asleep based on the relevant data; when the mobile phone detects that the user is asleep, and when the mobile phone detects that the duration of the user's inactivity is greater than the first time threshold, and the duration of the sleep state is greater than the second time threshold, the mobile phone will generate a prompt message to remind the user that it is about to enter power saving mode or low power consumption mode; the user can determine whether to let the mobile phone enter power saving mode or low power consumption mode based on the prompt message; if the user chooses to enter power saving mode or the user does not make any choice within the preset time (for example, before the end of the countdown below), the mobile phone starts the power saving module; at this time, the power saving module will turn off the video, causing the mobile phone to enter power saving mode or low power consumption mode. It should be noted that the first time threshold and the second time threshold can be the same or different, and this application does not limit this; for the relevant description of the first time threshold and the second time threshold, please refer to the relevant description of the time threshold above, and will not be repeated here.
[0148] It should be understood that the mobile phone can also determine whether to start the power saving module by the duration of the screen highlight state, the duration of the no-gaze state and the duration of the sleep state; you can refer to the above description of the mobile phone determining whether to start the power saving mode by monitoring the duration of the user's no-operation state and the duration of the sleep state, which will not be repeated here.
[0149] Scenario 2: Screen off and remaining battery power greater than the battery threshold
[0150] The mobile phone can determine whether it needs to start the phone into power saving mode by detecting whether the duration of the user's no-operation state and sleep state is greater than a time threshold.
[0151] In an optional embodiment, a user uses a mobile phone to listen to audio, the mobile phone is in the screen-off state, and the remaining power is greater than the power threshold. The mobile phone can determine whether to start the power saving module by detecting the relationship between the duration of the user's inactivity or the duration of the sleep state and the time threshold, so that the mobile phone enters the power saving mode. For example, the user turns on the music player to listen to music and sets the mobile phone to the screen-off state as a user operation event. When the mobile phone detects the user operation event, it starts the first timer to record the duration of the user's inactivity. If the mobile phone detects the user operation event during the timing, the first timer is interrupted and restarted. When the duration of the user's inactivity recorded by the first timer is greater than the time threshold, the mobile phone will generate a prompt message on the display screen 194 to remind the user that it is about to enter the power saving mode or low power consumption mode; the user can choose whether to let the mobile phone enter the power saving mode or low power consumption mode according to the prompt message.
[0152] In another optional embodiment, when a user is listening to audio on a mobile phone, the screen is off, and the remaining battery power is greater than a battery threshold, the mobile phone may also determine whether to activate the power saving module by detecting the relationship between the duration of the user's inactivity and sleep state, respectively, and the time threshold. For details, please refer to the description in the above embodiment, in which the mobile phone determines whether to activate the power saving module by detecting whether the duration of two or more of the user's inactivity, screen highlight, no gaze, or sleep states is greater than a time threshold, and will not be repeated here.
[0153] The following further describes the method of starting the power saving mode in conjunction with the display interface of the display screen 194 shown in Figures 4 to 6.
[0154] In an optional embodiment, when the duration exceeds the time threshold, the mobile phone can display a prompt message to the user through the display screen 194 to remind the user that the power saving mode is about to be entered, so that the user can choose whether to enter the power saving mode. As can be seen from the above description, the prompt message can be a countdown message or a message reminder message (for example, a voice reminder, a pop-up box reminder, etc.).
[0155] In an optional embodiment, the prompt information is a countdown information, and the countdown information is displayed to the user via a countdown interface with a preset transparency. For example, when the duration is greater than a time threshold, method 300 further includes: displaying a countdown interface with a preset transparency on the screen of the mobile phone (i.e., display screen 194), the countdown interface including a first option and a second option, the first option indicating approval to activate the power saving mode, and the second option indicating disapproval of activation of the power saving mode.
[0156] The countdown interface is used to display countdown information to the user, and the countdown information can be a preset duration, for example, 15 seconds, 10 seconds, etc. The mobile phone can display the countdown information through the countdown interface with a preset transparency (for example, 50% transparency) to notify the user that the phone is about to enter power saving mode without affecting the user's normal use of the phone (for example, watching videos on the phone).
[0157] When the duration is greater than the time threshold, it means that the user may not be in front of the mobile phone. The mobile phone will display a countdown interface with preset transparency to the user through the display screen 194 to remind the user whether to enter the power saving mode; when the user selects the first option of the countdown interface, the mobile phone starts the power saving module and enters the power saving mode based on the first option selected by the user; when the user selects the second option of the countdown interface, the mobile phone determines not to start the power saving module and determines not to enter the power saving mode based on the second option selected by the user.
[0158] As an example, as shown in Figure 4 (a), a user is watching a video on a mobile phone. When the mobile phone determines that the power saving module needs to be started based on the duration of the power saving trigger state, the mobile phone will generate a countdown interface with a preset transparency (for example, the transparency is 60%) on the video interface, and display a countdown information of 15 seconds with a preset transparency (for example, the transparency is 60%) on the countdown interface to remind the user to choose whether to enter the power saving mode.
[0159] As another example, as shown in Figure 5 (a), the user is watching a video on a mobile phone. When the mobile phone determines that the power saving module needs to be started based on the duration of the power saving trigger state, the mobile phone will generate a power saving reminder window on the video interface. Optionally, the power saving reminder window can also be a message pop-up box with preset transparency, which is not limited in this application; the user can choose whether to start the power saving mode in the power saving reminder window. When the user selects the "Turn on now" option on the power saving reminder window, the mobile phone starts the power saving module and enters the power saving mode; when the user selects the "Do not turn on for the time being" option on the power saving reminder window, the mobile phone determines not to start the power saving module and determines not to enter the power saving mode.
[0160] In this embodiment, the mobile phone can remind the user that the mobile phone is about to enter the power saving mode by displaying prompt information (for example, countdown information) on the screen (i.e., display screen 194), giving the user choice space. The user can determine whether to enter the power saving mode before the countdown ends according to his or her own needs, thereby improving the user experience.
[0161] In another optional embodiment, when the duration is greater than the time threshold, the mobile phone is started to enter the power saving mode, including: when the duration is greater than the time threshold and it is detected that the user selects the first option on the countdown interface, the mobile phone is started to enter the power saving mode.
[0162] Optionally, the mobile phone determines whether to start the power saving module according to the user's selection on the countdown interface to determine whether to enter the power saving mode.
[0163] As an example, as shown in Figure 4, a user is watching a video on a mobile phone. When the mobile phone determines that the power saving module needs to be started based on the duration of the power saving trigger state, the mobile phone will generate a countdown interface with a preset transparency (for example, the transparency is 50%) on the video interface, and display a 15-second countdown information on the countdown interface, as shown in 401 of Figure (a) in Figure 4; the user can choose whether to enter the power saving mode by clicking the "Cancel" option (that is, the second option of the countdown interface above) or the "OK" option (that is, the first option of the countdown interface above) below the countdown information. When the user selects the "OK" option, as shown in 402 in Figure 4 (b), the countdown interface disappears from the video interface, and the mobile phone starts the power saving module according to the user's selection result; at this time, the power saving module will close the video application, and the mobile phone will call the screen-off lock screen interface to make the mobile phone enter the lock screen standby interface, as shown in Figure 4 (c), that is, the mobile phone enters the power saving mode; when the user selects the "Cancel" option, the countdown interface disappears from the video interface, the mobile phone determines not to start the power saving module, and continues to play the video for the user, as shown in Figure 4 (d).
[0164] In this embodiment, the mobile phone determines whether to start the mobile phone into power saving mode according to the first option or the second option selected by the user on the countdown interface, rather than directly entering the power saving mode, which can improve user experience.
[0165] In an optional embodiment, when the duration is greater than a time threshold, the mobile phone is started to enter power saving mode, including: when the duration is greater than the time threshold and at the end of the countdown on the countdown interface, no user is detected selecting the first option or the second option on the countdown interface, then the mobile phone is started to enter power saving mode.
[0166] Among them, if the mobile phone does not detect the user's selection operation on the countdown interface (or power saving reminder window) before the countdown ends (that is, within the preset time period), the mobile phone starts the power saving module and enters the power saving mode. Among them, the preset time period refers to a preset period of time, such as 10 seconds, 15 seconds, etc., and the preset period can be the length of a countdown. The selection operation includes a first operation and a second operation, wherein the first operation is used to instruct the user to select the mobile phone to enter the power saving mode. When the mobile phone detects the first operation, it will start the power saving module and enter the power saving mode; the second operation is used to instruct the user to select the mobile phone not to enter the power saving mode. When the mobile phone detects the second operation, it determines that the power saving module will not be started and determines that it will not enter the power saving mode. Among them, the first operation is the operation of the first option selected by the user on the countdown interface, and the second operation is the operation of the second option selected by the user on the countdown interface.
[0167] For example, as shown in Figure 4 (a), at the end of the countdown on the countdown interface, if the phone does not detect that the user has selected the first or second option on the countdown interface, the phone will activate the power saving module and enter power saving mode. In other words, if the user does not make any selection on the countdown interface, the phone will activate the power saving module after the 15-second countdown ends, close the video application, and enter the lock screen standby interface, that is, the phone enters power saving mode.
[0168] As another example, as shown in Figure 5, the user is watching a video on a mobile phone. When the mobile phone determines that it needs to start the power saving mode based on the duration of the power saving trigger state, the mobile phone will pop up a power saving reminder window on the video interface, as shown in 501 of Figure 5 (a); the user can choose whether to enter the power saving mode by selecting the "Start now" or "Do not start for now" option. When the user selects the "Start now" option, as shown in 502 of Figure 5 (b), the power saving reminder window disappears from the video interface, and the mobile phone starts the power saving module according to the result of the user's selection of "Start now"; at this time, the power saving module will close the video application, and the mobile phone calls the screen-off lock screen interface to make the mobile phone enter the lock screen standby interface, as shown in Figure 5 (c), that is, the mobile phone enters the power saving mode; when the user selects the "Do not start for now" option, as shown in 503 of Figure 5 (b), the power saving reminder window disappears from the video interface, the mobile phone determines not to start the power saving module, and continues to play the video for the user, as shown in Figure 5 (d). When the user does not make any selection on the power saving reminder window, the phone will start the power saving module after 10 seconds, close the video application, and enter the lock screen standby interface, that is, the phone enters power saving mode.
[0169] In this embodiment, if the mobile phone does not detect the user's selection operation before the countdown ends, the mobile phone enters the power saving mode by activating the power saving module to avoid the situation where the application runs idle for a long time and the mobile phone battery is exhausted.
[0170] In an optional embodiment, when starting the mobile phone to enter power saving mode, method 300 also includes: the mobile phone detects whether the current application is an authorized application, and the authorized application refers to an application that has obtained power saving management authorization; when the current application is an authorized application, the mobile phone performs power saving management on the current application; when the current application is not an authorized application, the mobile phone determines not to perform power saving management on the current application.
[0171] As an example, the mobile phone can detect whether the current application is an authorized application through the power saving module. The authorized application refers to an application that has obtained power saving management authorization; when the current application is an authorized application, the mobile phone performs power saving management on the current application through the power saving module; when the current application is not an authorized application, the mobile phone determines not to perform power saving management on the current application through the power saving module.
[0172] For example, in some scenarios, the user may not want the phone to close some applications through the power saving module. Therefore, the user can set which applications need to be managed by the power saving module on the power saving management setting interface.
[0173] As shown in Figure 6 (a), the power saving management setting interface has set a switch button for all applications on the mobile phone. The user can decide whether the application enters the management scope of the power saving module by selecting on or off; for example, the user can turn on the setting switch of 002 application, 003 application, 005 application, 006 application and 007 application on the power saving management setting interface, so that 002 application, 003 application, 005 application, 006 application and 007 application are authorized applications authorized by power saving management; when the mobile phone starts the power saving module, the authorized application will be managed by the power saving module. For example, when the current application is an authorized application, the power saving module will close the current application, or limit some functions of the current application, so that the mobile phone enters the lock screen standby interface, that is, the mobile phone enters power saving mode to save mobile phone power consumption. For other applications that are not set as authorized applications (for example, 001 application), for example, when the current application is not an authorized application, after the mobile phone starts the power saving module, the current application is not controlled by the power saving module and continues to operate normally.
[0174] Take, for example, the case where a user has set up authorized applications on the power saving management settings interface, as shown in Figure 6 (a). For example, the user is chatting on the phone using application software 002. When the phone determines that the power saving module needs to be activated based on the duration of the power saving trigger state, the phone will generate a countdown interface with a preset transparency on the chat interface and display a 15-second countdown information on the countdown interface, as shown in Figure 6 (b) 601. The user can choose whether to enter the power saving mode by clicking the "Cancel" or "Confirm" option below the countdown information. When the user selects the "Confirm" option, the countdown interface disappears from the chat interface, and the phone activates the power saving module based on the result of the user's selection. At this time, the power saving module will determine whether application 002 is an authorized application based on the authorized applications set by the user on the power saving management settings interface. If application 002 is an authorized application, the power saving module will shut down application 002 or restrict some functions of application 002, causing the phone to enter the power saving mode to save power consumption. When the user selects the "Cancel" option, the countdown interface disappears from the chat interface, the phone determines not to start the power saving module, and the user can continue to use the 002 software to chat.
[0175] For another example, a user is using the 004 app on their phone for a meeting. When the phone determines that the power saving module needs to be activated based on the duration of the power saving trigger state, the phone will generate a countdown interface with a preset transparency on the meeting interface and display a 15-second countdown message on the countdown interface, as shown in 602 in Figure 6(c). The user can choose whether to enter power saving mode by clicking "Cancel" or "Confirm" below the countdown message. When the user selects "Confirm", the countdown interface disappears from the meeting interface, and the phone activates the power saving module based on the user's selection. At this point, the power saving module determines whether the 004 app is an authorized app based on the authorized applications set by the user on the power saving management settings interface. If the 004 app is unauthorized, the power saving module will not shut down the 004 app or restrict some of the 004 app's functions, allowing the user to continue using the 004 app for the meeting. When the user selects "Cancel", the countdown message disappears from the meeting interface, confirming that the power saving module will not be activated, and the user can continue using the 004 app for the meeting.
[0176] For another example, when the user is listening to music using the 005 application on the mobile phone when the screen is off (i.e., the display screen 194 is black), the user can click the power button to wake up the mobile phone from the screen-off interface to the lock screen standby interface, and the relevant information about the 005 application playing music will be displayed on the lock screen standby interface; when the mobile phone determines that the power saving module needs to be started based on the duration of the power saving trigger state, the mobile phone will generate a countdown interface with a preset transparency on the lock screen standby interface, and display a 15-second countdown information on the countdown interface, as shown in 603 of Figure 6 (d); the user can choose whether to enter the power saving mode by clicking the "Cancel" or "OK" option below the countdown information. When the user selects "OK," the countdown disappears from the lock screen, and the phone activates the power saving module based on the user's selection. The module then determines whether App 005 is authorized based on the authorized apps set on the power saving management settings interface. If App 005 is authorized, the module disables App 005 or restricts some of its functions. When the user selects "Cancel," the countdown disappears from the lock screen, confirming the phone's decision not to activate the power saving module. The user can continue using App 005 to listen to music.
[0177] In this embodiment, the user can set up authorization for power-saving management of the current application in advance based on his or her usage requirements for the current application; the mobile phone determines whether to perform power-saving management on the current application by detecting whether the current application is an authorized application; this method can support users to customize whether the application program enters the management scope of the power-saving module according to their own habits or preferences, and the settings are flexible, which improves the user experience.
[0178] The above describes in detail an example of a method for starting a power saving mode provided by the present application. It is understandable that, in order to implement the above functions, the electronic device includes a hardware structure and / or software module corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in a hardware or computer software driven hardware manner depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0179] The present application can divide the method of starting the power saving mode into functional units based on the above method examples. For example, each function can be divided into various functional units, or two or more functions can be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of software functional units. It should be noted that the division of units in this application is schematic and is only a logical functional division. In actual implementation, there may be other division methods.
[0180] FIG7 shows a schematic diagram of the structure of an electronic device provided by the present application. The dotted lines in FIG7 indicate that the unit or module is optional. The electronic device 700 can be used to implement the method described in the above method embodiment. The electronic device 700 can be a terminal device or a chip (system).
[0181] The electronic device 700 includes one or more processors 701, which can support the electronic device 700 to implement the method in the method embodiment corresponding to Figure 3. The processor 701 can be a general-purpose processor or a special-purpose processor. For example, the processor 701 can be a central processing unit (CPU). The CPU can be used to control the electronic device 700, execute software programs, and process data of the software programs. The electronic device 700 can also include a communication unit 705 to implement signal input (reception) and output (transmission).
[0182] The electronic device 700 may be a chip (system) including a memory and a processor, wherein the processor is configured to execute a computer program stored in the memory to implement the methods shown in the above embodiments.
[0183] The communication unit 705 may be an input and / or output circuit of the chip (system), or the communication unit 705 may be a communication interface of the chip (system), and the chip (system) may be a component of the electronic device 700 .
[0184] For another example, the communication unit 705 may be a transceiver of the electronic device 700 , or the communication unit 705 may be a transceiver circuit of the electronic device 700 .
[0185] The electronic device 700 may include one or more memories 702, on which a program 704 is stored. The program 704 can be executed by the processor 701 to generate instructions 703, so that the processor 701 performs the method described in the above method embodiment according to the instructions 703. Optionally, data can also be stored in the memory 702. Optionally, the processor 701 can also read the data stored in the memory 702. The data can be stored at the same storage address as the program 704, or the data can be stored at a different storage address than the program 704.
[0186] The processor 701 and the memory 702 may be provided separately or integrated together, for example, integrated on a system on chip (SOC) of an electronic device.
[0187] The specific manner in which the processor 701 executes the method for starting the power saving mode can refer to the relevant description in the method embodiment.
[0188] It should be understood that each step of the above method embodiment can be completed by hardware logic circuits or software instructions in the processor 701. The processor 701 can be a CPU, a digital signal processor (DSP), a field programmable gate array (FPGA), or other programmable logic devices, such as discrete gates, transistor logic devices, or discrete hardware components.
[0189] The present application also provides a computer program product, which, when executed by the processor 701, implements the method of any method embodiment in the present application.
[0190] The computer program product may be stored in the memory 702 , for example, a program 704 , which is converted into an executable target file that can be executed by the processor 701 after undergoing preprocessing, compilation, assembly, and linking.
[0191] The present application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a computer, implements any method embodiment of the present application. The computer program may be a high-level language program or an executable target program.
[0192] The computer-readable storage medium is, for example, memory 702. Memory 702 may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memory. The non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SynchLink DRAM, SLDRAM), and direct RAM bus random access memory (DRRAM).
[0193] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and equipment and the technical effects produced can refer to the corresponding processes and technical effects in the aforementioned method embodiments, and will not be repeated here.
[0194] In several embodiments provided in this application, the disclosed systems, devices, and methods can be implemented in other ways. For example, some features of the method embodiments described above can be ignored or not executed. The device embodiments described above are merely schematic, and the splitting of units is only a logical function splitting. There may be other splitting methods in actual implementation, and multiple units or components may be combined or integrated into another system. In addition, the coupling between the units or the coupling between the components may be direct coupling or indirect coupling, and the above coupling includes electrical, mechanical or other forms of connection.
[0195] The above embodiments are intended only to illustrate the technical solutions of the present application and are not intended to limit the same. Although the present application has been described in detail with reference to the above embodiments, those skilled in the art should understand that they may still modify the technical solutions described in the above embodiments or replace some of the technical features therein with equivalents, and that such modifications or replacements do not deviate from the essence of the corresponding technical solutions within the scope of the technical solutions of the embodiments of the present application and are therefore intended to be included within the scope of protection of the present application.
[0196] Finally, the above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application shall be covered by the scope of protection of the present application. Therefore, the scope of protection of the present application shall be based on the scope of protection of the claims.
Claims
1. A method for starting a power saving mode, characterized in that: Applied to electronic equipment, the method comprises: Detecting the duration of a power saving trigger state, wherein the power saving trigger state is used to trigger the electronic device to enter a power saving mode, and the power saving trigger state includes at least one of the following states: a user no operation state, a screen highlight state, a no-attention state, and a sleep state; When the duration is longer than a time threshold, starting the electronic device to enter a power saving mode; Alternatively, when the duration is less than or equal to the time threshold, the duration continues to be detected and it is determined that the electronic device does not enter the power saving mode.
2. The method according to claim 1, characterized in that The power saving trigger state includes the user no operation state, and the duration of the power saving trigger state detection includes: When a user operation event is detected, starting a first timer; The first timer is used to detect the duration of the user's inactivity state.
3. The method according to claim 1 or 2, characterized in that: The power saving trigger state includes the screen highlight state, and the screen highlight state is a state where the brightness value of the screen is greater than a brightness threshold; The duration of detecting the power saving trigger state includes: When the screen is in a highlighted state, starting a second timer; The duration of the screen highlight state is detected by the second timer.
4. The method according to any one of claims 1 to 3, characterized in that The power saving trigger state includes the no-attention state, where the no-attention state refers to a state where the user's sight is away from the screen; The duration of detecting the power saving trigger state includes: When the no-gaze state is detected, starting a third timer; The duration of the no-attention state is detected by the third timer.
5. The method according to any one of claims 1 to 4, characterized in that The power saving trigger state includes a sleep state, and the duration of the power saving trigger state is detected, including: When the sleep state is detected and the screen is in a light-on state, starting a fourth timer; The duration of the sleep state is detected by the fourth timer.
6. The method according to any one of claims 1 to 5, characterized in that When the duration is greater than a time threshold, the method further includes: A countdown interface of preset transparency is displayed on the screen of the electronic device, wherein the countdown interface includes a first option and a second option, wherein the first option indicates agreement to start a power saving mode of the electronic device, and the second option is used to indicate disagreement to start a power saving mode of the electronic device.
7. The method according to claim 6, characterized in that When the duration is greater than a time threshold, starting the electronic device to enter the power saving mode includes: When the duration is greater than a time threshold and it is detected that a user selects a first option on the countdown interface, the electronic device is started to enter the power saving mode.
8. The method according to claim 6, characterized in that When the duration is greater than a time threshold, starting the electronic device to enter the power saving mode includes: When the duration is greater than the time threshold and when the countdown on the countdown interface ends, it is not detected that the user selects the first option or the second option on the countdown interface, the electronic device is started to enter the power saving mode.
9. The method according to any one of claims 1 to 8, characterized in that When starting the electronic device to enter the power saving mode, the method further includes: Detecting whether the current application is an authorized application, wherein the authorized application refers to an application that has obtained power saving management authorization; When the current application is the authorized application, performing power saving management on the current application; When the current application is not the authorized application, it is determined not to perform power saving management on the current application.
10. An electronic device, characterized in that: The electronic device comprises a processor and a memory, wherein the memory is used to store a computer program, and the processor is used to call and run the computer program from the memory, so that the electronic device executes the method according to any one of claims 1 to 9.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor is caused to execute the method according to any one of claims 1 to 9.
12. A computer program product, characterized in that The computer program product is configured to enable the electronic device to perform the method according to any one of claims 1 to 9 when the computer program product is run on the electronic device.
13. A chip system, characterized in that: The chip system includes a memory and a processor, and the processor is configured to execute a computer program stored in the memory to implement the method according to any one of claims 1 to 9.
Citation Information
Patent Citations
Method and device for saving energy of household appliances
CN103281064A
Method and system for automatically switching into dormant state
CN105183138A
Power saving mode setting method and apparatus
CN105404382A
A power-saving control method for wearable equipment and wearable equipment
CN109407813A
Electronic device, power saving control method, and program
CN109844686A
