Method and device for reducing power consumption
By registering a listener on the terminal device and using motion and light data to detect pocket mode, the problem of increased power consumption caused by device shaking in a pocket is solved, and the effect of reducing power consumption in pocket mode is achieved.
Patent Information
- Application Number
- CN202111414111.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2021-08-12
- Filing Date
- 2021-11-25
- Publication Date
- 2025-01-28
- Estimated Expiration
- 2041-11-25
AI Technical Summary
During the Always-On Display (AOD) process on a terminal device, if the user puts the device in their pocket, the device is constantly shaken, causing the application processor to wake up and increasing power consumption.
By registering a listener on the terminal device, motion and light data are monitored to detect pocket patterns, block AOD displays, and reduce power consumption.
When the device is detected to be in pocket mode, the terminal device blocks the AOD display to reduce unnecessary power consumption and improve battery life.
Smart Images

Figure CN114375027B_ABST
Abstract
Description
[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office of China on August 12, 2021, with application number 202110927040.0 and application name “Method and Device for Reducing Power Consumption”, the entire contents of which are incorporated by reference in this application. Technical Field
[0002] The present application relates to the field of terminal technology, and in particular to a method and device for reducing power consumption. Background Art
[0003] With the popularization and development of the Internet, people's functional requirements for terminal devices are becoming more and more diverse. For example, in order to meet the user's needs to check the time, incoming call messages, or notification messages on the terminal device display at any time, many terminal devices can support always on display (AOD). Among them, AOD can be understood as a low-power display state when the screen is off.
[0004] Normally, when the user turns off the power button, the AOD can enter the DOZE state and display the AOD animation. When the user does not trigger the display for a period of time, the AOD can be hidden. If the user puts the terminal device into a pocket while the AOD is displayed after the screen is off, the application processor (AP) may be constantly awakened to implement the AOD as the user moves around, resulting in higher power consumption and faster power consumption. Summary of the invention
[0005] The embodiments of the present application provide a method and apparatus for reducing power consumption, which can intercept the display of the AOD when it is detected that the terminal device is placed in a pocket, so as to achieve the purpose of reducing power consumption.
[0006] In the first aspect, the embodiment of the present application provides a method for reducing power consumption, the method comprising: before the terminal device detects the first trigger operation to display the AOD on the screen, the terminal device monitors whether the terminal device meets the pocket mode through a monitor to obtain a monitoring result; wherein the first trigger operation is an operation for triggering the terminal device to perform AOD, and the monitoring result is obtained based on motion data and light data; when the monitoring result indicates that the terminal device meets the pocket mode, the terminal device turns off the screen; when the monitoring result indicates that the terminal device does not meet the pocket mode, the terminal device performs AOD through an AOD application. In this way, the terminal device can intercept AOD when it detects that the device is in pocket mode, so as to achieve the purpose of reducing power consumption.
[0007] In one possible implementation, the terminal device is in a first mode, and the first mode is: the AOD display mode is performed when a touch screen operation is detected in the screen-off state of the terminal device, and the first trigger operation includes any one of the following operations: a press operation on the power button detected in the screen-on state of the terminal device, an operation of the terminal device in the screen-on state and more than a first time period from the last touch screen detection, a touch operation on the display screen detected in the screen-off state of the terminal device, and a proximity operation detected by the proximity light sensor during the AOD process of the terminal device. In this way, by detecting a variety of first trigger operations, it is possible to more accurately determine whether the terminal device meets the pocket mode. Among them, the first mode can be the light touch display in the embodiment of the present application.
[0008] In a possible implementation, the first trigger operation is: a pressing operation on the power button detected when the terminal device is in a screen-on state, or an operation when the terminal device is in a screen-on state and the time interval from the last touch screen detection exceeds a first time period, and the method further includes: the terminal device turns off the screen when the first trigger operation is detected; the terminal device registers a listener; when the monitoring result indicates that the terminal device meets the pocket mode, the terminal device turns off the screen, including: when the monitoring result indicates that the terminal device meets the pocket mode, the terminal device keeps the screen off. In this way, the terminal device can monitor the status of the terminal device through the listener, and intercept the AOD when it is detected that the device is in pocket mode, keep the screen off, and reduce power consumption.
[0009] In a possible implementation, the method further includes: when the terminal device is in AOD for a time exceeding a time threshold, the terminal device cancels the listener and turns off the screen. In this way, the influence of AOD being in the display state on power consumption can be avoided, thereby reducing power consumption.
[0010] In one possible implementation, the first trigger operation is: a touch operation on the display screen detected by the terminal device in the screen-off state. Before the terminal device detects the first trigger operation and displays the AOD on the screen-off state, the method also includes: the terminal device registers a listener. In this way, the terminal device can register the listener in time when a touch operation on the display screen is detected, quickly monitor the state of the terminal device, adjust the display process of the AOD according to the state of the terminal device, and save power consumption to the greatest extent while maintaining the AOD function. In addition, the pocket mode can be detected in the screen-off state, without the need for screen-on detection, which can save power consumption.
[0011] In a possible implementation, the first trigger operation is: a proximity operation detected by a proximity light sensor during the AOD process of the terminal device, and the method further includes: the terminal device turns off the screen when detecting the first trigger operation; when the monitoring result indicates that the terminal device meets the pocket mode, the terminal device turns off the screen, including: when the monitoring result indicates that the terminal device meets the pocket mode, the terminal device keeps the screen off. In this way, the terminal device can turn off the screen in time when receiving the proximity operation, avoiding the impact of AOD on power consumption when the device is blocked, and reducing power consumption.
[0012] In a possible implementation, the terminal device is in a second mode, the second mode is: the terminal device performs an AOD display mode in the screen-off state or the terminal device performs an AOD display mode when the screen is off during a preset time period of a day, and the first trigger operation includes any one of the following operations: a press operation on the power button detected in the screen-on state of the terminal device, an operation of the terminal device in the screen-on state and more than a first time period from the last touch screen detection, a touch operation on the display screen detected when the terminal device is in a stationary state of AOD, and a proximity operation detected by the proximity light sensor during the AOD process of the terminal device; wherein the terminal device is in a stationary state of AOD refers to a state in which the last frame of the preset animation is displayed after the preset animation is displayed by the AOD application. In this way, by detecting a variety of first trigger operations, it is possible to more accurately determine whether the terminal device meets the pocket mode. Among them, the second mode can be the all-day display or timed display in the embodiment of the present application.
[0013] In a possible implementation, the first trigger operation is: a pressing operation on the power button detected when the terminal device is in a screen-on state, or an operation when the terminal device is in a screen-on state and the time interval from the last touch screen detection exceeds a first time period, and the method further includes: the terminal device turns off the screen when the first trigger operation is detected; the terminal device registers a listener; when the monitoring result indicates that the terminal device meets the pocket mode, the terminal device turns off the screen, including: when the monitoring result indicates that the terminal device meets the pocket mode, the terminal device keeps the screen off. In this way, the terminal device can monitor the status of the terminal device through the listener, and intercept the AOD when it is detected that the device is in pocket mode, keep the screen off, and reduce power consumption.
[0014] In a possible implementation, the terminal device performs AOD through the AOD application, including: the terminal device displays a preset animation through the AOD application, and displays the last frame of the preset animation after the preset animation is displayed. In this way, the influence of the AOD being in the display state on power consumption can be avoided, thereby reducing power consumption.
[0015] In a possible implementation, the first trigger operation is: when the terminal device is in a stationary state of the AOD, a touch operation on the display screen is detected, and when the monitoring result indicates that the terminal device satisfies the pocket mode, the terminal device turns off the screen, including: when the monitoring result indicates that the terminal device satisfies the pocket mode, the terminal device switches from displaying the last frame to turning off the screen. In this way, in the DOZE_SUPPEND state of the last frame of the AOD animation, the terminal device can also turn off the screen when it detects that the device is in the pocket mode, thereby reducing power consumption.
[0016] In a possible implementation, the first trigger operation is: a proximity operation detected by a proximity light sensor during the AOD process of the terminal device, and the method further includes: the terminal device turns off the screen when detecting the first trigger operation; when the monitoring result indicates that the terminal device meets the pocket mode, the terminal device turns off the screen, including: when the monitoring result indicates that the terminal device meets the pocket mode, the terminal device keeps the screen off. In this way, the terminal device can turn off the screen in time when receiving the proximity operation, avoiding the impact of AOD on power consumption when the device is blocked, and reducing power consumption.
[0017] In a possible implementation, the light data includes proximity light data or ambient light data, and the terminal device monitors whether the terminal device satisfies the pocket mode through a monitor to obtain a monitoring result, including: when all of the following conditions are met, the monitoring result obtained by the terminal device indicates that the terminal device satisfies the pocket mode: the terminal device determines that the orientation of the terminal device satisfies the first preset direction according to the motion data, the terminal device determines that the proximity light data is less than the first distance threshold, and the terminal device determines that the ambient light data is less than the first brightness threshold; or, when any of the following conditions are met, the monitoring result obtained by the terminal device indicates that the terminal device does not meet the pocket mode: the terminal device determines that the orientation of the terminal device is a direction other than the first preset direction according to the motion data, the terminal device determines that the proximity light data is greater than the second distance threshold, and the terminal device determines that the ambient light data is greater than the second brightness threshold; wherein the second distance threshold is greater than the first distance threshold, the second brightness threshold is greater than the first brightness threshold, and the first preset direction is the direction in which the head of the terminal device is facing the ground. In this way, the terminal device can accurately detect the pocket mode based on the first preset direction, the proximity light data, and the ambient light data. Wherein, the first preset direction is the head-down direction in the embodiment of the present application.
[0018] In a possible implementation, the method further includes: after the monitoring result indicates that the terminal device satisfies the pocket mode, the terminal device continues to monitor whether the terminal device exits the pocket mode according to the motion data and the light data; when any of the following conditions is met, the monitoring result obtained by the terminal device indicates that the terminal device does not meet the pocket mode and exits the pocket mode: the terminal device determines that the orientation of the terminal device is a direction other than the first preset direction according to the motion data, the terminal device determines that the approaching light data is greater than the second distance threshold, and the terminal device determines that the ambient light data is greater than the second brightness threshold. In this way, the terminal device can exit the pocket mode and perform AOD when the conditions corresponding to the first preset direction, the approaching light data, and the ambient light data are not met, thereby increasing the integrity of the algorithm.
[0019] In a second aspect, an embodiment of the present application provides a device for reducing power consumption, the device comprising a processing unit and a display unit; before the terminal device detects a first trigger operation to display AOD on the screen, the processing unit monitors whether the terminal device meets the pocket mode through a listener to obtain a monitoring result; wherein the first trigger operation is an operation for triggering the terminal device to perform AOD, and the monitoring result is obtained based on motion data and light data; when the monitoring result indicates that the terminal device meets the pocket mode, the display unit turns off the screen; when the monitoring result indicates that the terminal device does not meet the pocket mode, the display unit performs AOD through an AOD application.
[0020] In one possible implementation, the terminal device is in a first mode, and the first mode is: an AOD display mode is performed when a touch screen operation is detected in a screen-off state of the terminal device, and the first trigger operation includes any one of the following operations: a power button pressing operation detected in a screen-on state of the terminal device, an operation in which the terminal device is in a screen-on state and the time period from the last touch screen detection exceeds a first time period, a touch operation on the display screen is detected in a screen-off state of the terminal device, and a proximity operation detected by a proximity light sensor during AOD.
[0021] In one possible implementation, the first trigger operation is: a pressing operation on the power button is detected when the terminal device is in a screen-on state, or an operation of pressing the power button is detected when the terminal device is in a screen-on state and the time period from the last touch screen detection exceeds a first time period, and the display unit is also used to turn off the screen when the first trigger operation is detected; the processing unit is also used to register a listener; when the monitoring result indicates that the terminal device meets the pocket mode, the display unit is also used to keep the screen off.
[0022] In a possible implementation, when the time when the terminal device is in AOD exceeds a time threshold, the processing unit is further used to deregister the listener and the display unit is further used to turn off the screen.
[0023] In a possible implementation, the first trigger operation is: a touch operation on the display screen detected when the terminal device is in a screen-off state, and the processing unit is also used to register a listener.
[0024] In one possible implementation, the first trigger operation is: the terminal device detects a proximity operation through a proximity light sensor during the AOD process, and the display unit is also used to turn off the screen when the first trigger operation is detected; when the monitoring result indicates that the terminal device meets the pocket mode, the display unit is also used to keep the screen off.
[0025] In one possible implementation, the terminal device is in a second mode, the second mode being: a display mode of AOD performed when the terminal device is in a screen-off state or a display mode of AOD performed when the terminal device is in a screen-off state within a preset time period of a day, and the first trigger operation includes any one of the following operations: a pressing operation on a power button detected when the terminal device is in a screen-on state, an operation performed when the terminal device is in a screen-on state and the time interval from the last touch screen detection exceeds a first time period, a touch operation on the display screen detected when the terminal device is in a stationary state of AOD, and a proximity operation detected by a proximity light sensor during the AOD process; wherein, the terminal device being in a stationary state of AOD refers to a state in which the last frame of a preset animation is displayed after the preset animation is displayed through the AOD application.
[0026] In one possible implementation, the first trigger operation is: a pressing operation on the power button is detected when the terminal device is in a screen-on state, or an operation of touching the screen is detected in a screen-on state and the first time period has passed since the last time the touch screen was detected. When the first trigger operation is detected, the display unit is also used to turn off the screen; the processing unit is also used to register a listener; when the monitoring result indicates that the terminal device meets the pocket mode, the display unit is also used to keep the screen off.
[0027] In a possible implementation, the display unit is specifically configured to display a preset animation through an AOD application, and display a last frame of the preset animation after the preset animation is displayed.
[0028] In one possible implementation, the first trigger operation is: a touch operation on the display screen is detected when the terminal device is in a stationary state of the AOD. When the monitoring result indicates that the terminal device meets the pocket mode, the display unit is specifically used to switch from displaying the last frame of the screen to the screen off state.
[0029] In one possible implementation, the first trigger operation is: the terminal device detects a proximity operation through a proximity light sensor during the AOD process, and the display unit is also used to turn off the screen when the first trigger operation is detected; when the monitoring result indicates that the terminal device meets the pocket mode, the display unit is also used to keep the screen off.
[0030] In one possible implementation, the light data includes proximity light data or ambient light data. When all of the following conditions are met, the monitoring result obtained by the processing unit indicates that the terminal device satisfies the pocket mode: the processing unit is specifically used to: determine, based on the motion data, that the orientation of the terminal device satisfies the first preset direction, determine that the proximity light data is less than the first distance threshold, and determine that the ambient light data is less than the first brightness threshold; or, when any one of the following conditions is met, the monitoring result obtained by the processing unit indicates that the terminal device does not satisfy the pocket mode: the processing unit is also specifically used to: determine, based on the motion data, that the orientation of the terminal device is a direction other than the first preset direction, determine that the proximity light data is greater than the second distance threshold, and determine that the ambient light data is greater than the second brightness threshold; wherein the second distance threshold is greater than the first distance threshold, the second brightness threshold is greater than the first brightness threshold, and the first preset direction is the direction in which the head of the terminal device is facing the ground.
[0031] In one possible implementation, after the monitoring result indicates that the terminal device satisfies the pocket mode, the processing unit is specifically used to continue to monitor whether the terminal device exits the pocket mode based on the motion data and the light data; when any one of the following conditions is met, the monitoring result obtained by the processing unit indicates that the terminal device does not satisfy the pocket mode and exits the pocket mode: the processing unit is specifically used to: determine that the orientation of the terminal device is a direction other than a first preset direction based on the motion data, determine that the proximity light data is greater than a second distance threshold, and determine that the ambient light data is greater than a second brightness threshold.
[0032] In a third aspect, an embodiment of the present application provides a device for reducing power consumption, comprising a processor and a memory, the memory being used to store code instructions; the processor being used to run the code instructions so that the electronic device executes the method for reducing power consumption as described in the first aspect or any one of the implementations of the first aspect.
[0033] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores instructions. When the instructions are executed, the computer executes the method for reducing power consumption as described in the first aspect or any implementation of the first aspect.
[0034] In a fifth aspect, a computer program product includes a computer program. When the computer program is executed, the computer executes the method for reducing power consumption as described in the first aspect or any one of the implementations of the first aspect.
[0035] It should be understood that the second to fifth aspects of the present application correspond to the technical solutions of the first aspect of the present application, and the beneficial effects achieved by each aspect and the corresponding feasible implementation methods are similar and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Figure 1 A schematic diagram of the hardware structure of a terminal device provided in an embodiment of the present application;
[0037] Figure 2 A schematic diagram of the software structure of a terminal device provided in an embodiment of the present application;
[0038] Figure 3 A flowchart of a method for reducing power consumption based on light touch display provided in an embodiment of the present application;
[0039] Figure 4 A schematic diagram of an AOD interface provided in an embodiment of the present application Figure 1 ;
[0040] Figure 5 A schematic diagram of an AOD interface provided in an embodiment of the present application Figure 2 ;
[0041] Figure 6 A schematic diagram of an animation display provided in an embodiment of the present application;
[0042] Figure 7 A schematic diagram of an AOD interface provided in an embodiment of the present application Figure 3 ;
[0043] Figure 8 A schematic diagram of an AOD interface provided in an embodiment of the present application Figure 4 ;
[0044] Fig. 9 A schematic diagram of an AOD interface provided in an embodiment of the present application Figure 5 ;
[0045] Fig.10 A schematic diagram of an AOD interface provided in an embodiment of the present application Figure 6 ;
[0046] Fig.11 A flowchart of a method for reducing power consumption based on all-day display provided in an embodiment of the present application;
[0047] Fig.12 A schematic diagram of an AOD interface provided in an embodiment of the present application Figure 7 ;
[0048] Fig.13 A schematic diagram of an AOD interface provided in an embodiment of the present application Figure 8 ;
[0049] Fig.14 A schematic diagram of an AOD interface provided in an embodiment of the present application Figure 9 ;
[0050] Fig.15A schematic diagram of an AOD interface provided in an embodiment of the present application Figure 10 ;
[0051] Fig.16 A schematic diagram of the structure of a device for reducing power consumption provided in an embodiment of the present application;
[0052] Fig.17 A schematic diagram of the hardware structure of a control device provided in an embodiment of the present application;
[0053] Fig.18 A schematic diagram of the structure of a chip provided in an embodiment of the present application. DETAILED DESCRIPTION
[0054] In order to facilitate the clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, words such as "first" and "second" are used to distinguish between identical or similar items with substantially the same functions and effects. For example, the first value and the second value are only used to distinguish different values, and their order is not limited. Those skilled in the art can understand that words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not necessarily limit them to be different.
[0055] It should be noted that, in this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in this application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0056] In the present application, "at least one" means one or more, and "plurality" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can mean: a, b, c, a and b, a and c, b and c, or a, b and c, where a, b, c can be single or multiple.
[0057] When the user puts the terminal device into a pocket or bag while the AOD is displayed on the screen of the terminal device, the display screen may be constantly touched (or the proximity light detected by the proximity light sensor may be constantly approaching and moving away) as the user moves around. The device may continuously enter the DOZE state, the display screen may continuously display the AOD, and the AP may be continuously awakened, resulting in high power consumption and faster power consumption of the device.
[0058] In view of this, the embodiment of the present application provides a method for reducing power consumption, whereby the terminal device can monitor the pocket mode by registering a listener, and intercept the AOD when the state of the terminal device meets the pocket mode, so as to achieve the purpose of reducing power consumption. The pocket mode can be understood as the user placing the terminal device in a pocket or bag, so that the terminal device can appear in states such as head down, detecting weak ambient light, and detecting that the distance between the device and the pocket is close.
[0059] It is understandable that the above-mentioned terminal device can also be called terminal, user equipment (UE), mobile station (MS), mobile terminal (MT), etc. The terminal device can be a mobile phone with AOD function, a smart TV, a wearable device, a tablet computer (Pad), a computer with wireless transceiver function, a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, a wireless terminal in industrial control, a wireless terminal in self-driving, a wireless terminal in remote medical surgery, a wireless terminal in smart grid, a wireless terminal in transportation safety, a wireless terminal in smart city, a wireless terminal in smart home, etc. The embodiments of the present application do not limit the specific technology and specific device form adopted by the terminal device.
[0060] Therefore, in order to better understand the embodiment of the present application, the structure of the terminal device of the embodiment of the present application is introduced below. Figure 1 A schematic diagram of the structure of a terminal device provided in an embodiment of the present application.
[0061] The terminal device 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, 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 module 180, a button 190, an indicator 192, a camera 193, and a display screen 194, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0062] It is to be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the terminal device. In other embodiments of the present application, the terminal device may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0063] 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 processor (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), etc. Different processing units may be independent devices or integrated into one or more processors.
[0064] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.
[0065] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0066] 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 circuits 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, etc.
[0067] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple groups of I2C buses. The processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, etc. through different I2C bus interfaces. For example: the processor 110 may be coupled to the touch sensor 180K through the I2C interface, so that the processor 110 communicates with the touch sensor 180K through the I2C bus interface, thereby realizing the touch function of the terminal device 100.
[0068] The I2S interface can be used for audio communication. In some embodiments, the processor 110 can include multiple I2S buses. The processor 110 can be coupled to the audio module 170 via the I2S bus to achieve communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 can transmit an audio signal to the wireless communication module 160 via the I2S interface to achieve the function of answering a call through a Bluetooth headset.
[0069] The PCM interface can also be used for audio communication, sampling, quantizing and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 can be coupled via a PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 via the PCM interface to implement the function of answering calls via a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
[0070] The UART interface is a universal serial data bus for asynchronous communication. The bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is generally used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function. In some embodiments, the audio module 170 can transmit an audio signal to the wireless communication module 160 through the UART interface to implement the function of playing music through a Bluetooth headset.
[0071] The MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193. The MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), etc. In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to implement the shooting function of the terminal device 100. The processor 110 and the display screen 194 communicate via the DSI interface to implement the display function of the terminal device 100.
[0072] The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.
[0073] The USB interface 130 is an interface that complies with the USB standard specification, and specifically 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 charge the terminal device 100, and can also be used to transmit data between the terminal device 100 and peripheral devices. It can also be used to connect headphones to play audio through the headphones. The interface can also be used to connect other electronic devices, such as AR devices, etc.
[0074] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present application is a schematic illustration and does not constitute a structural limitation on the terminal device 100. In other embodiments of the present application, the terminal device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
[0075] The charging management module 140 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through a wireless charging coil of the terminal device 100. While the charging management module 140 is charging the battery 142, it may also power the terminal device through the power management module 141.
[0076] 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 supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.
[0077] The wireless communication function of the terminal 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.
[0078] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. The antenna in terminal device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of the antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0079] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G applied to the terminal 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.
[0080] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a 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.
[0081] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the terminal device 100. 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, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0082] In some embodiments, the antenna 1 of the terminal 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 terminal device 100 can communicate with the network and other 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. GNSS may include the global positioning system (GPS), the global navigation satellite system (GLONASS), the Beidou navigation satellite system (BDS), the quasi-zenith satellite system (QZSS) and / or the satellite based augmentation system (SBAS).
[0083] The terminal device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs, which execute program instructions to generate or change display information.
[0084] The display screen 194 is used to display images, videos, etc. 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), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the terminal device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1. When the screen-off display is set on the terminal device, the display screen 194 can be displayed on part of the display screen.
[0085] The terminal device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.
[0086] ISP is used to process the data fed back by camera 193. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to ISP for processing and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on the noise, brightness, and skin color of the image. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, ISP can be set in camera 193.
[0087] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted 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 RGB, YUV or other format. In some embodiments, the terminal device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.
[0088] The digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the terminal device 100 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
[0089] Video codecs are used to compress or decompress digital videos. The terminal device 100 may support one or more video codecs. Thus, the terminal device 100 may play or record videos in various coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
[0090] NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can also continuously self-learn. Through NPU, applications such as intelligent cognition of the terminal device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, etc.
[0091] 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 terminal device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function, such as storing music, video and other files in the external memory card.
[0092] The internal memory 121 can be used to store computer executable program codes, and the executable program codes include instructions. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the terminal device 100 (such as 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 applications and data processing of the terminal device 100 by running instructions stored in the internal memory 121 and / or instructions stored in a memory provided in the processor.
[0093] The terminal device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
[0094] 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 arranged in the processor 110, or some functional modules of the audio module 170 can be arranged in the processor 110.
[0095] The speaker 170A, also called a "speaker", is used to convert an audio electrical signal into a sound signal. The terminal device 100 can listen to music or listen to a hands-free call through the speaker 170A.
[0096] The receiver 170B, also called a "handset", is used to convert audio electrical signals into sound signals. When the terminal device 100 receives a call or voice message, the voice can be received by placing the receiver 170B close to the ear.
[0097] Microphone 170C, also called "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 terminal device 100 can be provided with at least one microphone 170C. In other embodiments, the terminal 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 terminal device 100 can also be provided with three, four or more microphones 170C to realize the collection of sound signals, noise reduction, identification of sound sources, realization of directional recording function, etc.
[0098] The earphone interface 170D is used to connect a wired earphone and can be a USB interface 130 or a 3.5 mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.
[0099] The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A can be set on the display screen 194. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. A capacitive pressure sensor can be a parallel plate including at least two conductive materials. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The terminal device 100 determines the intensity of the pressure based on the change in capacitance. When a touch operation acts on the display screen 194, the terminal device 100 detects the intensity of the touch operation according to the pressure sensor 180A. The terminal device 100 can also calculate the position of the touch based on the detection signal of the pressure sensor 180A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities can correspond to different operation instructions.
[0100] The gyroscope sensor 180B can be used to determine the motion posture of the terminal device. The air pressure sensor 180C is used to measure air pressure. In some embodiments, the angular velocity of the terminal device around three axes (i.e., x, y, and z axes) can be determined by the gyroscope sensor 180B. The gyroscope sensor 180B can be used for anti-shake shooting. For example, when the shutter is pressed, the gyroscope sensor 180B detects the angle of the terminal device shaking, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shaking of the terminal device through reverse movement to achieve anti-shake. The gyroscope sensor 180B can also be used for navigation and somatosensory game scenes.
[0101] The acceleration sensor 180E can detect the magnitude of the acceleration of the terminal device in all directions (generally three axes). When the terminal device is stationary, it can detect the magnitude and direction of gravity. It can also be used to identify the posture of the terminal device and is applied to applications such as horizontal and vertical screen switching and pedometers.
[0102] In the embodiment of the present application, the gyro sensor 180B can be used together with the acceleration sensor 180E to detect whether the user places the terminal device head down, that is, the terminal device can collect motion data through the gyro sensor 180B and the acceleration sensor 180E, and detect whether the state of the terminal device is head down according to the motion data. Among them, the head down state can be used as one of the judgment conditions of the pocket mode.
[0103] The proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The terminal device emits infrared light outward through the light emitting diode. The terminal device uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the terminal device. When insufficient reflected light is detected, the terminal device can determine that there is no object near the terminal device. The terminal device can use the proximity light sensor 180G to detect that the user holds the terminal device close to the ear to talk, so as to automatically turn off the screen to achieve the purpose of power saving.
[0104] The ambient light sensor 180L is used to sense the brightness of the ambient light. The terminal device can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures.
[0105] In the embodiment of the present application, the ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the terminal device is in a pocket to prevent accidental touch. The ambient light sensor 180L can be arranged above the display screen of the terminal device.
[0106] The fingerprint sensor 180H is used to collect fingerprints. The temperature sensor 180J is used to detect temperature. The touch sensor 180K is also called a "touch control device". The bone conduction sensor 180M can obtain vibration signals.
[0107] The touch sensor 180K can be arranged on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, or a "touch screen". The touch sensor 180K is used to detect a touch operation acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180K can also be arranged on the surface of the terminal device, which is different from the position of the display screen 194.
[0108] The key 190 includes a power key, a volume key, etc. The key 190 may be a mechanical key or a touch key. The terminal device 100 may receive key input and generate key signal input related to user settings and function control of the terminal device 100.
[0109] The motor 191 can generate a vibration prompt. The indicator 192 can be an indicator light, which can be used to indicate the charging status, power change, and can also be used to indicate messages, missed calls, notifications, etc. The SIM card interface 195 is used to connect a SIM card.
[0110] The software system of the terminal device can adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture, etc., which will not be elaborated here.
[0111] For example, Figure 2 A schematic diagram of the software structure of a terminal device provided in an embodiment of the present application.
[0112] like Figure 2 As shown, the layered architecture divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system can be divided into four layers, from top to bottom, the application layer, the application framework layer, the hardware abstraction layer (HAL) layer, and the kernel layer. In a possible implementation, the layered architecture may also include a hardware layer, a sensor kernel layer, and the like.
[0113] The application layer may include a series of applications. For example, the application may include applications such as AOD. The AOD may be an application for realizing the screen-off display of the terminal device.
[0114] The framework layer can provide an application programming interface (API) and a programming framework for the application programs in the application layer. The framework layer may include some predefined functions.
[0115] like Figure 2 As shown, the framework layer may include a proximity light manager, an input system, a motion module, and a pocket mode listener. In a possible implementation, the framework layer may also include an activity manager, a location manager, a notification manager, a power manager, and a view system. Figure 2 not shown).
[0116] The proximity light manager is used to manage the proximity light data received by the terminal device, for example, to receive the proximity light data sent by the HAL layer and to transmit the proximity light data to the AOD of the application layer.
[0117] The input system is used to manage the program of the input device. For example, the input system can determine input operations such as mouse click operations, keyboard input operations, key input operations, and touch sliding operations. In the embodiment of the present application, the input system can be used to identify the user's touch operation on the touch screen, or to trigger the operation of the key in the device, etc.
[0118] The motion module is used to forward messages sent by the AOD application to the hardware abstraction layer, and forward messages sent via the hardware abstraction layer to the AOD application. The motion module can also be used to receive a registration instruction sent by the AOD application to register the pocket mode, and register the pocket mode listener based on the registration instruction.
[0119] The pocket mode listener is used to monitor the status of the terminal device. For example, the pocket mode listener can be used to monitor whether the terminal device meets the pocket mode.
[0120] The power manager can switch the state of the system through locks and timers, so that the system can reduce power consumption. In an embodiment of the present application, the power manager can provide a wake-up lock mechanism. When applying for a wake-up lock, the system is in an AP wake-up state; when releasing the wake-up lock, the system can be in an AP sleep state. Furthermore, the wake-up lock can include an identifier of whether it is a timeout state. For example, a timed wake-up lock will be automatically released after the timeout, and the system can start the mechanism to enter the sleep state.
[0121] The purpose of the HAL layer is to abstract the hardware and provide a unified interface for querying hardware devices for upper-layer applications, such as an interface that follows the Hardware Abstraction Layer Interface Description Language (HIDL) protocol. The HAL layer hides the hardware interface details of a specific platform and provides a virtual hardware platform for the operating system, making it hardware-independent and portable on multiple platforms. From the perspective of software and hardware testing, the testing of software and hardware can be completed based on the hardware abstraction layer, making it possible to conduct software and hardware testing in parallel.
[0122] The HAL layer can provide a variety of interfaces, such as audio interface, video interface, call interface, and global positioning system (GPS) interface. Figure 2 not shown).
[0123] The kernel layer is the layer between hardware and software. Figure 2 As shown, the kernel layer may include multiple drivers, such as TP driver and LCD screen driver. In a possible implementation, the drivers in the kernel layer may also include touch panel driver, display driver, Bluetooth driver, WIFI driver, keyboard driver, shared memory driver and camera driver. Figure 2 not shown).
[0124] The sensor kernel layer may include: a fusion algorithm module for fusing the drive data. The drive data may include light drive data and motion drive data, the light drive data may include proximity light drive data (obtained by proximity light sensor) and ambient light drive data (obtained by ambient light sensor), and the motion drive data may include acceleration drive data (obtained by acceleration sensor) and gyroscope drive data (obtained by gyroscope sensor).
[0125] It can be understood that the sensor kernel is used to fuse different types of sensor data so that the terminal device can implement new functions derived from the combination of multiple sensor data.
[0126] The hardware layer can include sensor devices, such as accelerometers, gyroscopes, touch sensors, proximity sensors, and ambient light sensors. For the functions of the above sensors, see Figure 1 The corresponding embodiments will not be described in detail here.
[0127] The following is a detailed description of the technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems with specific embodiments. The following specific embodiments can be implemented independently or in combination with each other, and the same or similar concepts or processes may not be repeated in some embodiments. It can be understood that more terminal devices can support AOD, and with the further improvement of the AOD function, the terminal device can support multiple modes of AOD, for example, the AOD mode may include touch display, all-day display, and timed display.
[0128] In the embodiment of the present application, the touch display mode (such as Figure 3 corresponding embodiments) and all-day display mode (such as Figure 7 Taking the corresponding embodiment) as an example, the method of reducing power consumption in the AOD process is illustrated, and the example does not constitute a limitation on the embodiments of the present application.
[0129] For example, Figure 3 A flowchart of a method for reducing power consumption based on light-touch display provided in an embodiment of the present application.
[0130] In AOD mode, the terminal device has four display screen states: 1. OFF state (or OFF state for short), 2. ON state, 3. DOZE state, 4. DOZE_SUPPEND state. In the OFF and DOZE_SUPPEND states, the terminal device's AP is in a dormant state.
[0131] For example, Figure 4 A schematic diagram of an AOD interface provided in an embodiment of the present application Figure 1 .exist Figure 4 In the corresponding embodiments, a mobile phone as the terminal device is used as an example for illustration, and this example does not constitute a limitation on the embodiments of the present application.
[0132] When the mobile phone receives an instruction to open the interface corresponding to the display mode in the AOD application, the mobile phone can display the following Figure 4 The interface shown can display touch display, all-day display, and timing display, etc. When the battery level of the mobile phone is less than 10%, the "off screen display" will not appear.
[0133] If the AOD mode turned on by the terminal device is touch display, then in the screen-off state, if a touch screen is detected, the terminal device enters the DOZE state for screen-off display. Specifically, in the touch display mode, the AOD animation may not continue to display after a period of time (or be understood as AOD hiding), and the display screen of the terminal device enters the OFF state, at which time the AP is dormant; when the terminal device receives a touch on the display screen, the AP is awakened, the display screen of the terminal device enters the DOZE state again, and the AOD is started.
[0134] Further, when the terminal device receives the user's Figure 4 After the corresponding embodiment turns on AOD and selects the display mode, the terminal device can display the Figure 5 The corresponding interface. Figure 5 In the corresponding interface, the terminal device can play the animation according to the preset target display, such as Figure 6 An example of the animation playback process is shown.
[0135] For example, Figure 5 A schematic diagram of an AOD interface provided in an embodiment of the present application Figure 2 .exist Figure 5 In the corresponding embodiments, a mobile phone as the terminal device is used as an example for illustration, and this example does not constitute a limitation on the embodiments of the present application.
[0136] When the user turns on AOD, when the terminal device receives an operation of lightly touching the screen, the terminal device can display the following Figure 5 The corresponding interface. Figure 5 As shown, the interface may display one or more of the following, for example: target display animation 501, such as a polar bear lying on the ice, time information 502, and date information 503. In a possible implementation, the Figure 5 The corresponding interface can also display information such as fingerprint identification and power level identification. Figure 5The content displayed in the corresponding interface may include other content according to the actual scenario, which is not limited in the embodiments of the present application.
[0137] For example, Figure 6 A schematic diagram of an animation display provided in an embodiment of the present application. Figure 6 As shown, the target display animation may include multiple consecutive frames, for example, including: Figure 6 The first frame shown in a in FIG. Figure 6 The screen shown in b in the figure is as follows: Figure 6 The screen shown in c in the figure is as follows: Figure 6 The screen shown in d in the figure and Figure 6 The last frame shown in e in FIG. Figure 6 The first frame shown in a and Figure 6 The pictures shown in b in FIG. 1 and 2 can all be pictures of polar bears lying on the ice. Figure 6 The picture shown in c in FIG. 1 may be a picture of a polar bear lying on the ice and raising its head, such as Figure 6 The picture shown in d in FIG. 1 may be a picture of a polar bear walking on ice, such as Figure 6 The last frame shown in e in FIG. 1 may be a picture of a polar bear walking to the edge of the ice.
[0138] In the touch display, when the terminal device receives the operation of touching the screen, the terminal device can Figure 6 The target display animation is displayed, as shown by Figure 6 The first frame shown in a in the figure is played to Figure 6 The last frame of the picture shown in e in FIG. 1 is shown in FIG. 2 . When the target display animation is finished playing, the terminal device can turn off the screen and enter the OFF state.
[0139] In a possible implementation, during the process of turning off the screen of the terminal device, when the terminal device receives an operation of the user touching the screen, the terminal device can display a target display animation or another preset display animation.
[0140] In possible implementations, for the above-mentioned different AOD modes, during the AOD process, when the terminal device detects an object approaching through the proximity light sensor, it will enter a screen-off state. When the proximity light sensor detects that the object is moving away, the terminal device can wake up the AP again to perform AOD. For example, in the touch display mode, when the terminal device detects that the user is approaching the proximity light sensor while playing the target display animation, the terminal device can interrupt the target animation display and turn off the screen, and the AP goes into sleep mode; and when the terminal device receives an operation in which the user moves away from the display screen, the terminal device can wake up the AP and continue the animation display along the corresponding screen when the animation was interrupted. For example, Figure 6 As shown, when the terminal device is Figure 6 The first frame shown in a in the figure is played to Figure 6 When receiving the screen shown in c in the figure, the terminal device may interrupt the operation of the user approaching the proximity light sensor. Figure 6 The next frame of the picture shown in c is played, and the AP is dormant. Further, when the terminal device receives an operation that the user moves away from the display screen, the terminal device can wake up the AP, as shown in FIG. Figure 6 The next frame of the picture shown in c in FIG. 1 starts to play, and the AP is in the awake state.
[0141] It is understandable that in the light touch mode, the proximity and distance between the user and the proximity light sensor, or the triggering of the display screen, can affect the display process of the AOD. Based on the above introduction to light touch display, the method for reducing power consumption based on light touch display may include the following steps:
[0142] S301. When the terminal device receives a screen-off instruction, the display screen turns off and enters the OFF state.
[0143] Among them, the screen-off instruction can be triggered by the user's operation, or it can be triggered by no user operation detected for a period of time in the screen-on state. The user's operation that triggers the screen-off instruction can be the user's voice operation, or the user's click operation on the power button, etc., which is not limited in the embodiments of the present application. Exemplarily, when the display screen is on, when the terminal device receives the user's operation of pressing the power button, or when the terminal device does not detect the user's operation for a period of time when the display screen is on, the terminal device can turn off the display screen, and the display screen goes off and enters the OFF state.
[0144] For example, Figure 7 A schematic diagram of an AOD interface provided in an embodiment of the present application Figure 3 .exist Figure 7 In the corresponding embodiment, a mobile phone is used as an example for explanation. Figure 7 As shown in a in FIG. 1 , the right edge of the mobile phone is provided with a button 701 for adjusting the volume, and a button 702 for turning off the display screen or shutting down the phone (the button 702 may also be called a power button). Figure 7 The interface shown in a is the same as Figure 4 The interface shown is similar and will not be described again here.
[0145] like Figure 7 In the interface shown in a of FIG. 1 , when the mobile phone receives the operation of the user clicking the button 702, the mobile phone can first turn off the screen and enter the OFF state, for example, by Figure 7 The interface shown in a in the figure switches to Figure 7 The screen-off interface shown in b.
[0146] After S301, the user may place the terminal device in a pocket (or backpack), etc. When the user walks or exercises, the terminal device in the pocket (or backpack) may continue to shake with the user's movement, thereby continuously triggering the display screen (or the approach and distance of the proximity light, or the brightness and darkness of the ambient light), etc., which may continuously wake up the AP and increase power consumption.
[0147] S302: The terminal device registers a pocket mode listener.
[0148] The pocket mode monitor is used to monitor whether the terminal device is in pocket mode.
[0149] Possible implementations include Figure 2 Corresponding software structure diagram: after the terminal device starts the AOD function, the AOD in the application layer can send a registration instruction for registering the pocket mode listener to the motion module in the framework layer. The motion module in the framework layer receives the registration instruction and registers the pocket mode listener.
[0150] S303: The terminal device determines whether the device meets the pocket mode.
[0151] In an embodiment of the present application, the terminal device can monitor whether the terminal device satisfies the pocket mode through a registered pocket mode listener. When the terminal device determines that the pocket mode is not satisfied based on the status of the device, the terminal device can execute the steps shown in S304; or, when the terminal device determines that the pocket mode is satisfied based on the status of the device, the terminal device can execute the steps shown in S309.
[0152] Exemplarily, the terminal device may determine whether the terminal device satisfies the pocket mode based on motion data and light data. The light data may include proximity light data and ambient light data, and the motion data may include acceleration data and gyroscope data. Specifically, the pocket mode may be understood as the proximity state between the terminal device and the pocket being satisfied within a certain time threshold.
[0153] Exemplarily, the proximity state between the terminal device and the pocket can be determined by whether the terminal device satisfies the head-down state, the relationship between the proximity light detected by the terminal device and the proximity light threshold, and the relationship between the ambient light detected by the terminal device and the ambient light threshold. The head-down state can be calculated based on the fusion of acceleration data and gyroscope data.
[0154] Specifically, when the terminal device satisfies the upside-down state, the distance between a pocket (or a user's hand) detected by a proximity light sensor of the terminal device and the proximity light sensor is less than (or less than or equal to) a first distance threshold, and the ambient light detected by the ambient light sensor of the terminal device is less than (or less than or equal to) a first brightness threshold, then the terminal device can recognize that it is currently in a proximity state (or understood as satisfying the pocket mode).
[0155] When the terminal device does not meet the head-down state, or the distance between the pocket (or the user's hand) detected by the proximity light sensor of the terminal device and the proximity light sensor is greater than or equal to (or greater than) the second distance threshold, or the ambient light detected by the ambient light sensor of the terminal device is greater than or equal to (or greater than) the second brightness threshold, the terminal device can identify that it is currently in the away state (or understood as not meeting the pocket mode). In other words, if the terminal device meets any of the above three states, it can be judged as not meeting the pocket mode.
[0156] Among them, the second distance threshold is greater than the first distance threshold, and the second brightness threshold is greater than the first brightness threshold. The first distance threshold, the second distance threshold, the first brightness threshold and the second brightness threshold can all be obtained based on the learning of historical touch data generated when the terminal device is in pocket mode, and the specific values of the above thresholds are not limited in the embodiments of the present application.
[0157] Possible implementations include Figure 2 The corresponding software structure diagram shows that after registering the pocket mode listener in the framework layer, the pocket mode listener can listen to the pocket mode detection results obtained by the sensor core through HIDL based on the fusion calculation of light drive data and motion drive data. Furthermore, the pocket mode listener can report the monitored pocket mode detection results to the AOD in the application layer, and then the AOD can determine whether to change the display state based on the pocket mode detection results.
[0158] S304: The terminal device performs AOD.
[0159] During the AOD process, the display screen enters the DOZE state and the AP is in the awake state.
[0160] Exemplarily, the terminal device may apply for wakelock and display based on the display content provided in the AOD, wherein the display content may be other display content such as an AOD animation, a frame of image, static information, etc., which is not limited in the embodiments of the present application.
[0161] For example, Figure 8 A schematic diagram of an AOD interface provided in an embodiment of the present application Figure 4 . In Figure 8In the case of the screen being off as shown in a of FIG. 1 , when the terminal device determines that the pocket mode is not satisfied according to the state of the device in the step shown in S303, the terminal device can be Figure 8 The interface shown in a in the figure switches to Figure 8 The interface shown in b in the figure is used to perform AOD. Figure 8 The content displayed in the interface shown in b can be compared with Figure 5 The contents displayed in the interface shown are similar and will not be repeated here.
[0162] S305: The terminal device turns off the screen after timeout, and the AP enters a dormant state.
[0163] Exemplarily, when the time for the terminal device to enter the DOZE state exceeds a time threshold, for example, when the time for entering the DOZE state exceeds 5 seconds, the display screen turns off, the terminal device deregisters the pocket mode listener, and the AP is in a sleep state.
[0164] For example, Fig. 9 A schematic diagram of an AOD interface provided in an embodiment of the present application Figure 5 , Fig. 9 The status shown is Figure 8 The status after the b interface is displayed. Fig. 9 In the corresponding embodiment, the AOD content is AOD animation as an example for illustration.
[0165] In such Fig. 9 In the case of displaying the first frame of the AOD animation as shown in a in FIG, the mobile phone can continue to display the entire content of the AOD animation, for example, Fig. 9 The interface shown in a in the figure is displayed until Fig. 9 The interface shown in b in the figure is displayed. Fig. 9 The interface shown in c in the figure. Fig. 9 When the interface shown in c in the figure is the last frame of the AOD animation, the terminal device can display the last frame of the AOD animation after it is finished. Fig. 9 The interface shown in c in the figure switches to Fig. 9 The screen-off interface shown in d in FIG. Fig. 9 The interface shown in a, Fig. 9 The interface shown in b in the figure, and Fig. 9 The interface shown in c can be used with Figure 5 The interface shown is similar and will not be described again here.
[0166] After S305, the user may place the terminal device in a pocket (or backpack), etc. When the user walks or exercises, the terminal device in the pocket (or backpack) may continuously shake with the user's movement, thereby continuously triggering the display screen (or the approaching and moving away conditions of the proximity light, or the brightness and darkness of the ambient light), etc., so that the terminal device executes the step shown in S306. The pocket is not limited to a backpack, etc., and may also be replaced by any portable storage item, such as a suitcase, etc.
[0167] S306: The terminal device receives a tap operation from the user.
[0168] Among them, the light touch operation can be a triggering operation of the display screen by the user using a finger or a stylus, and the specific implementation of the light touch operation is not specifically limited in the embodiment of the present application.
[0169] Possible implementations include Figure 2 The corresponding software structure diagram shows that when the terminal device is in the screen-off state, when the TP driver in the kernel layer detects a light touch operation based on the touch sensor, the light touch operation can be reported to the AOD along the interface HIDL in the HAL layer and the input system in the framework layer, so that the terminal can execute the steps shown in S307.
[0170] S307: The terminal device registers a pocket mode listener.
[0171] Among them, the content of registering the pocket mode listener in S307 can refer to the description of registering the pocket mode listener in the step shown in S302, which will not be repeated here.
[0172] S308: The terminal device determines whether the device meets the pocket mode.
[0173] In an embodiment of the present application, when the terminal device determines that the pocket mode is not satisfied based on the status of the device, the terminal device can execute the steps shown in S304; or, when the terminal device determines that the pocket mode is satisfied based on the status of the device, the terminal device can execute the steps shown in S309.
[0174] Among them, the content of determining whether the terminal device meets the pocket mode in S308 can be found in the description of the method for determining whether the device meets the pocket mode in the step shown in S303, and will not be repeated here.
[0175] S309: The display screen of the terminal device is in the OFF state, and the wake lock is released.
[0176] In one implementation, Figure 8In the case of the screen off as shown in a in FIG, when the terminal device determines that the pocket mode is currently satisfied based on the state of the device in the step shown in S303, the terminal device can maintain the screen off state and display the following Figure 8 The screen-off interface shown in c.
[0177] It can be understood that after the user turns off the screen based on the steps shown in S301, the terminal device can monitor the status of the device at any time based on the pocket mode listener in the step shown in S302. When the terminal device meets the pocket mode, the screen can remain off to avoid the energy consumption of AOD when placed in the pocket.
[0178] In another implementation, when the terminal device performs AOD, when the terminal device determines that the pocket mode is currently satisfied based on the state of the device in step S308, the terminal device can switch from the AOD interface to the off-screen state, and display the following: Figure 8 The screen-off interface shown in c.
[0179] S310: The terminal device indicates that the TP driver is in a low power mode.
[0180] Possible implementations include Figure 2 Corresponding software structure diagram, the AOD in the application layer can send instructions to the TP driver in the kernel layer along the proximity light manager in the framework layer and the interface HIDL in the hardware abstraction layer, indicating that the TP driver is in low power mode and intercepting the AOD, so that the display screen switches from the DOZE state to the OFF state. The power management in the framework layer can release the wakelock, and the AP is in sleep state.
[0181] It is understandable that in low power mode, even if the terminal device continues to be in the pocket, there may be situations where the terminal device detects touch or changes in proximity light (or ambient light) due to the user's movement, etc., the terminal device will not perform AOD, thereby saving power consumption.
[0182] S311. The terminal device determines whether to exit pocket mode.
[0183] In a possible implementation, when the terminal device satisfies the pocket mode, when the user takes the terminal device out of the pocket, the terminal device can determine that the pocket mode is not currently satisfied according to the state of the device, and the terminal device can perform AOD. Fig.10 A schematic diagram of an AOD interface provided in an embodiment of the present application Figure 6 , Fig.10 The status shown is Figure 8The possible states after the middle interface c. When the terminal device meets the pocket mode, the terminal device can display the following Fig.10 Further, when the terminal device receives the user's operation of taking the terminal device out of the pocket, and the terminal device detects that the pocket mode is not satisfied based on the state of the device, the terminal device can display the following Fig.10 The AOD interface shown in b in FIG. Fig.10 The interface shown in b can be used with Figure 5 The interface shown is similar and will not be described again here.
[0184] In an embodiment of the present application, when the terminal device determines to exit the pocket mode based on the status of the device, the terminal device can execute the steps shown in S304; or, when the terminal device determines not to exit the pocket mode based on the status of the device, the terminal device can execute the steps shown in S309.
[0185] In one implementation, when the distance between the pocket (or the user's hand) detected by the terminal device based on the proximity light sensor and the proximity light sensor is greater than or equal to (or greater than) a third distance threshold, and / or when the ambient light detected by the terminal device based on the ambient light sensor is greater than or equal to (or greater than) a third brightness threshold, the terminal device can identify that it is currently in a away state (or understood as a state of exiting the pocket mode). The third distance threshold is greater than or equal to the second distance threshold in the step shown in S303, and the third brightness threshold is greater than or equal to the second brightness threshold in the step shown in S303.
[0186] Based on this, in the touch mode, the terminal device can intercept the display of the AOD when it detects that the terminal device is placed in a pocket, ensuring that the AP is in a dormant state, thereby achieving the purpose of reducing power consumption.
[0187] For example, Fig.11 A flowchart of a method for reducing power consumption based on all-day display provided in an embodiment of the present application.
[0188] like Figure 5 As shown, if the AOD mode turned on by the terminal device is all-day display, then in the screen-off state, the terminal device enters the DOZE state for off-screen display. After a period of AOD animation, the terminal device can enter the DOZE_SUPPEND state. In the DOZE_SUPPEND state, a still picture can be displayed, for example, the last frame of the AOD animation or other preset pictures can be displayed, and the AP is dormant at this time; when the terminal device receives a trigger from the user for the display screen, the AOD switches from the DOZE_SUPPEND state to the DOZE state, wakes up the AP, and starts the AOD again.
[0189] like Figure 5As shown, the timed display can be understood as implementing the AOD mode within a preset time. The timed display process can refer to the all-day display process, which will not be repeated here. The difference is that when the terminal device turns off the screen, the terminal device can first determine whether the current time meets the preset time range. If the current time does not meet the time range set by the user, the mobile phone can continue to be in the off-screen state without AOD. At this time, even if the user's touch operation is received, the terminal device does not need to start AOD.
[0190] like Figure 6 As shown, in the all-day display, when the terminal device receives the power off operation, the terminal device can Figure 6 The target display animation is displayed, as shown by Figure 6 The first frame shown in a in the figure is played to Figure 6 When the target display animation is finished playing, the terminal device can continue to display the last frame of the picture shown in e. Figure 6 The last frame of the picture is shown in e, at this time, the AP is in sleep mode.
[0191] Possible implementations include Figure 6 As shown, the terminal device continues to display Figure 6 During the last frame of the picture shown in e in FIG. 1 , when the terminal device receives the user's touch screen operation, the terminal device can wake up the AP to display the following Figure 6 The target shown displays an animation or displays another preset display animation.
[0192] For the all-day display mode, the terminal device can detect the approach or distance of other objects through the proximity sensor while playing the target display animation or continuously displaying the last frame of the picture, and can detect the user's touch operation on the screen. For example, when the proximity sensor detects that an object is approaching the proximity sensor, the terminal device will enter the screen-off state. When the proximity sensor detects that the object is away from the proximity sensor, the terminal device can wake up the AP again to perform AOD.
[0193] It is understandable that in the all-day mode, the proximity or distance between the user and the proximity light sensor, or the triggering of the display screen, can affect the display process of the AOD and increase power consumption.
[0194] Based on the above introduction about all-day display, the method for reducing power consumption based on all-day display may include the following steps:
[0195] S1101. When the terminal device receives a screen-off instruction, the display screen turns off and enters the OFF state.
[0196] It can be understood that the content of S1101 can refer to the relevant description in the step shown in S301, and will not be repeated here.
[0197] For example, Fig.12 A schematic diagram of an AOD interface provided in an embodiment of the present application Figure 7 .like Fig.12 In the interface shown in a of FIG. 1 , when the mobile phone receives the operation of the user clicking the button 1201, the mobile phone can turn off the screen and enter the OFF state, for example, displaying Fig.12 The interface shown in b in the figure. Fig.12 The interface shown in a is the same as Figure 4 The interface shown is similar and will not be described again here.
[0198] After S1101, the user can place the terminal device in a pocket (or backpack), etc. When the user walks or exercises, the terminal device in the pocket (or backpack) can continue to shake with the user's movement, thereby continuously triggering the display screen (or the approach and distance of the proximity light, or the brightness and darkness of the ambient light), etc.
[0199] S1102. The terminal device registers a pocket mode listener.
[0200] It can be understood that the content of registering the pocket mode listener in S1102 can refer to the description of registering the pocket mode listener in the step shown in S302, which will not be repeated here.
[0201] S1103: The terminal device determines whether the device meets the pocket mode.
[0202] In an embodiment of the present application, when the terminal device determines that the pocket mode is not satisfied based on the state of the device, the terminal device can execute the steps shown in S1104; or, when the terminal device determines that the pocket mode is satisfied based on the state of the device, the terminal device can execute the steps shown in S1108.
[0203] It can be understood that the method of determining whether the device meets the pocket mode in the step shown in S1103 can refer to the description of the step of determining whether the device meets the pocket mode in the step shown in S303, and will not be repeated here.
[0204] S1104. The terminal device performs AOD.
[0205] During the AOD process, the display screen enters the DOZE state and the AP is in the awake state.
[0206] For example, Fig.13 A schematic diagram of an AOD interface provided in an embodiment of the present application Figure 8 ; Fig.14A schematic diagram of an AOD interface provided in an embodiment of the present application Figure 9 .like Fig.13 In the case of the screen-off interface shown in a in FIG. 1 , when the terminal device determines that the pocket mode is not satisfied according to the state of the device, the AOD can be performed, for example, displaying Fig.13 The interface shown in b in the figure. Fig.13 The interface shown in b is the same as Figure 5 The interface shown is similar and will not be described again here.
[0207] Furthermore, the terminal device may be configured as follows: Fig.14 The first frame of the AOD animation shown in a in FIG. is displayed as follows Fig.14 The last frame of the AOD animation shown in b. Fig.14 The interface shown in a in the figure, and Fig.14 The interfaces shown in b are the same as Figure 5 The interface shown is similar and will not be described again here.
[0208] S1105. AOD enters DOZE_SUPPEND state.
[0209] In the DOZE_SUPPEND state, the AP is in a dormant state.
[0210] For example, Fig.14 In the interface shown in b, after the last frame of the AOD animation is displayed, the terminal device continues to display the last frame of the AOD animation. At this time, the AOD state switches from the DOZE state to the DOZE_SUPPEND state, and the AP switches from the awake state to the sleep state.
[0211] After S1105, the user can place the terminal device in a pocket (or backpack), etc. When the user walks or exercises, the terminal device in the pocket (or backpack) can continue to shake with the user's movement, thereby continuously triggering the display screen (or the approach and distance of the proximity light, or the brightness and darkness of the ambient light), etc., so that the terminal device executes the steps shown in S1106.
[0212] S1106. The terminal device receives the first trigger operation of the user.
[0213] Among them, the first trigger operation can be a trigger operation of the display screen by the user using a finger or a stylus; the first trigger operation can be a change in proximity light detected by the terminal device based on a proximity light sensor; or, the first trigger operation can be a change in ambient light detected by the terminal device based on an ambient light sensor, etc. The specific implementation of the first trigger operation is not specifically limited in the embodiments of the present application.
[0214] S1107: The terminal device determines whether the device meets the pocket mode.
[0215] In an embodiment of the present application, when the terminal device determines that the pocket mode is not satisfied based on the state of the device, the terminal device can execute the steps shown in S1104; or, when the terminal device determines that the pocket mode is satisfied based on the state of the device, the terminal device can execute the steps shown in S1108.
[0216] S1108. The display screen of the terminal device is in the OFF state, and the wakelock is released.
[0217] In one implementation, Fig.13 In the case of the screen off as shown in a in FIG, when the terminal device determines that the pocket mode is satisfied based on the state of the device in the step shown in S1103, the terminal device can keep the screen off, for example, displaying Fig.13 The screen-off interface shown in c.
[0218] It can be understood that after the user turns off the screen based on the steps shown in S1101, the terminal device can monitor the status of the device at any time based on the pocket mode listener in the step shown in 1102. When the terminal device meets the pocket mode, the screen can remain off to avoid the energy consumption of AOD when placed in the pocket.
[0219] In another implementation, when the terminal device performs AOD, when the terminal device determines that the pocket mode is currently satisfied based on the state of the device in the step shown in S1107, the terminal device can switch from the last frame of the AOD animation to the off-screen state, and display the following: Fig.13 The screen-off interface shown in c in the figure is Fig.14 In the interface shown in b, if the user puts the terminal into a pocket, the terminal device detects that the pocket mode is met and can execute step S1108 and subsequent steps.
[0220] S1109: The terminal device indicates that the TP driver is in low power mode.
[0221] In low power mode, the AP is in a dormant state. It is understandable that in low power mode, even if the terminal device is in the pocket continuously, the terminal device may detect a touch or a change in proximity light (or ambient light) due to the user's movement, and the terminal device will not perform AOD.
[0222] S1110. The terminal device determines whether to exit pocket mode.
[0223] In an embodiment of the present application, when the terminal device determines to exit the pocket mode based on the status of the device, the terminal device can execute the steps shown in S1104; or, when the terminal device determines not to exit the pocket mode based on the status of the device, the terminal device can execute the steps shown in S1108.
[0224] In a possible implementation, when the terminal device satisfies the pocket mode, when the user takes the terminal device out of the pocket, the terminal device can determine that the pocket mode is not currently satisfied based on the state of the device, and the terminal device can perform AOD animation display.
[0225] For example, Fig.15 A schematic diagram of an AOD interface provided in an embodiment of the present application Figure 10 , Fig.15 Shown Fig.13 The possible display interface after the c interface in the figure. When the terminal device meets the pocket mode, the terminal device can display the following Fig.15 Further, when the terminal device receives the operation of the user taking the terminal device out of the pocket, and the terminal device detects that the pocket mode is not satisfied based on the state of the device, the terminal device can be Fig.15 The interface shown in a in the figure switches to Fig.15 The AOD interface shown in b.
[0226] Furthermore, the terminal device may be configured as follows: Fig.15 The first frame of the AOD animation shown in b is displayed as follows Fig.15 After the last frame of the AOD animation is displayed, continue to Fig.15 The last frame of the AOD animation shown in c is displayed. Fig.15 The interface shown in a, Fig.15 The interface shown in b in the figure, and Fig.15 The interfaces shown in c are all the same as Figure 5 The interface shown is similar and will not be described again here.
[0227] Based on this, in the all-day mode, the terminal device can intercept the display of AOD when it detects that the terminal device is placed in a pocket, ensuring that the AP is in a dormant state, thereby achieving the purpose of reducing power consumption.
[0228] It can be understood that within the set time range in the timing display mode, the method of reducing power consumption based on timing display can refer to the description of the steps shown in the above S1101-S1110, which will not be repeated here.
[0229] It is understandable that the interface provided in the embodiment of the present application is only an example and does not constitute a further limitation on the embodiment of the present application. Figure 4-Figure 12 , the method provided in the embodiment of the present application is described, and the device for executing the above method provided in the embodiment of the present application is described below. Fig.16 As shown, Fig.16 A structural schematic diagram of a device for reducing power consumption provided in an embodiment of the present application. The device for reducing power consumption may be a terminal device in an embodiment of the present application, or may be a chip or chip system in the terminal device.
[0230] like Fig.16 As shown, the apparatus 160 for reducing power consumption can be used in a communication device, a circuit, a hardware component or a chip, and the apparatus 160 for reducing power consumption includes: a display unit 1601 and a processing unit 1602. The display unit 1601 is used to support the display step performed by the apparatus 160 for reducing power consumption; and the processing unit 1602 is used to support the apparatus 160 for reducing power consumption to perform information processing steps.
[0231] An embodiment of the present application provides a device 160 for reducing power consumption, which includes a processing unit 1602 and a display unit 1601; before the terminal device detects a first trigger operation to display AOD on the screen, the processing unit 1602 monitors whether the terminal device meets the pocket mode through a listener to obtain a monitoring result; wherein the first trigger operation is an operation for triggering the terminal device to perform AOD, and the monitoring result is obtained based on motion data and light data; when the monitoring result indicates that the terminal device meets the pocket mode, the display unit 1601 turns off the screen; when the monitoring result indicates that the terminal device does not meet the pocket mode, the display unit 1601 performs AOD through an AOD application.
[0232] In one possible implementation, the terminal device is in a first mode, and the first mode is: an AOD display mode is performed when a touch screen operation is detected in a screen-off state of the terminal device, and the first trigger operation includes any one of the following operations: a power button pressing operation detected in a screen-on state of the terminal device, an operation in which the terminal device is in a screen-on state and the time period from the last touch screen detection exceeds a first time period, a touch operation on the display screen is detected in a screen-off state of the terminal device, and a proximity operation detected by a proximity light sensor during AOD.
[0233] In one possible implementation, the first trigger operation is: a pressing operation on the power button is detected when the terminal device is in a screen-on state, or an operation of pressing the power button is detected when the terminal device is in a screen-on state and the time period from the last touch screen detection exceeds a first time period, the display unit 1601 is also used to turn off the screen when the first trigger operation is detected; the processing unit 1602 is also used to register a listener; when the monitoring result indicates that the terminal device meets the pocket mode, the display unit 1601 is also used to keep the screen off.
[0234] In a possible implementation, when the time when the terminal device is in AOD exceeds a time threshold, the processing unit 1602 is further used to deregister the listener and the display unit 1601 is further used to turn off the screen.
[0235] In a possible implementation, the first trigger operation is: a touch operation on the display screen detected when the terminal device is in a screen-off state, and the processing unit 1602 is further used to register a listener.
[0236] In one possible implementation, the first trigger operation is: the terminal device detects a proximity operation through a proximity light sensor during the AOD process, and when the first trigger operation is detected, the display unit 1601 is also used to turn off the screen; when the monitoring result indicates that the terminal device meets the pocket mode, the display unit 1601 is also used to keep the screen off.
[0237] In one possible implementation, the terminal device is in a second mode, the second mode being: a display mode of AOD performed when the terminal device is in a screen-off state or a display mode of AOD performed when the terminal device is in a screen-off state within a preset time period of a day, and the first trigger operation includes any one of the following operations: a pressing operation on a power button detected when the terminal device is in a screen-on state, an operation performed when the terminal device is in a screen-on state and the time interval from the last touch screen detection exceeds a first time period, a touch operation on the display screen detected when the terminal device is in a stationary state of AOD, and a proximity operation detected by a proximity light sensor during the AOD process; wherein, the terminal device being in a stationary state of AOD refers to a state in which the last frame of a preset animation is displayed after the preset animation is displayed through the AOD application.
[0238] In one possible implementation, the first trigger operation is: a pressing operation on the power button is detected when the terminal device is in a screen-on state, or an operation of pressing the power button is detected when the terminal device is in a screen-on state and the time period from the last touch screen detection exceeds a first time period. When the first trigger operation is detected, the display unit 1601 is also used to turn off the screen; the processing unit 1602 is also used to register a listener; when the monitoring result indicates that the terminal device meets the pocket mode, the display unit 1601 is also used to keep the screen off.
[0239] In a possible implementation, the display unit 1601 is specifically configured to display a preset animation through an AOD application, and display a last frame of the preset animation after the preset animation is displayed.
[0240] In one possible implementation, the first trigger operation is: a touch operation on the display screen is detected when the terminal device is in a stationary state of the AOD. When the monitoring result indicates that the terminal device meets the pocket mode, the display unit 1601 is specifically used to switch from displaying the last frame of the screen to the screen off state.
[0241] In one possible implementation, the first trigger operation is: the terminal device detects a proximity operation through a proximity light sensor during the AOD process, and the display unit 1601 is also used to turn off the screen when the first trigger operation is detected; when the monitoring result indicates that the terminal device meets the pocket mode, the display unit 1601 is also used to keep the screen off.
[0242] In one possible implementation, the light data includes proximity light data or ambient light data. When all of the following conditions are met, the monitoring result obtained by the processing unit 1602 indicates that the terminal device satisfies the pocket mode: the processing unit 1602 is specifically used to: determine, based on the motion data, that the orientation of the terminal device satisfies the first preset direction, determine that the proximity light data is less than the first distance threshold, and determine that the ambient light data is less than the first brightness threshold; or, when any one of the following conditions is met, the monitoring result obtained by the processing unit 1602 indicates that the terminal device does not satisfy the pocket mode: the processing unit 1602 is also specifically used to: determine, based on the motion data, that the orientation of the terminal device is a direction other than the first preset direction, determine that the proximity light data is greater than the second distance threshold, and determine that the ambient light data is greater than the second brightness threshold; wherein the second distance threshold is greater than the first distance threshold, the second brightness threshold is greater than the first brightness threshold, and the first preset direction is the direction in which the head of the terminal device is facing the ground.
[0243] In one possible implementation, after the monitoring result indicates that the terminal device satisfies the pocket mode, the processing unit 1602 is specifically used to continue to monitor whether the terminal device exits the pocket mode based on the motion data and the light data; when any one of the following conditions is met, the monitoring result obtained by the processing unit 1602 indicates that the terminal device does not satisfy the pocket mode and exits the pocket mode: the processing unit 1602 is specifically used to: determine, based on the motion data, that the orientation of the terminal device is a direction other than a first preset direction, determine that the proximity light data is greater than a second distance threshold, and determine that the ambient light data is greater than a second brightness threshold.
[0244] In a possible embodiment, the apparatus 160 for reducing power consumption may further include: a communication unit 1603. The communication unit 1603 may be an input or output interface, a pin or a circuit.
[0245] In a possible embodiment, the apparatus 160 for reducing power consumption may further include: a storage unit 1604. The processing unit 1602 and the storage unit 1604 are connected via a line.
[0246] The storage unit 1604 may include one or more memories, and the memory may be a device in one or more devices or circuits for storing programs or data.
[0247] The storage unit 1604 may exist independently and be connected to the processing unit 1602 of the apparatus for reducing power consumption 160 through a communication line. The storage unit 1604 may also be integrated with the processing unit 1602.
[0248] The storage unit 1604 may store computer-executable instructions of the method in the terminal device, so that the processing unit 1602 executes the method in the above embodiment.
[0249] The storage unit 1604 may be a register, a cache, or a RAM, etc. The storage unit 1604 may be integrated with the processing unit 1602. The storage unit 1604 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, and the storage unit 1604 may be independent of the processing unit 1602.
[0250] Fig.17 A schematic diagram of the hardware structure of a control device provided in an embodiment of the present application is shown in FIG. Fig.17 As shown, the control device includes a processor 1701, a communication line 1704 and at least one communication interface ( Fig.17 The communication interface 1703 is used as an example for explanation).
[0251] Processor 1701 may be a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the program of the present application.
[0252] Communications link 1704 may include circuitry for transmitting information between the above-described components.
[0253] The communication interface 1703 uses any transceiver or other device for communicating with other devices or communication networks, such as Ethernet, wireless local area networks (WLAN), etc.
[0254] Possibly, the control device may further include a memory 1702 .
[0255] The memory 1702 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory may exist independently and be connected to the processor via a communication line 1704. The memory may also be integrated with the processor.
[0256] The memory 1702 is used to store computer-executable instructions for executing the solution of the present application, and the execution is controlled by the processor 1701. The processor 1701 is used to execute the computer-executable instructions stored in the memory 1702, thereby realizing the method for reducing power consumption provided in the embodiment of the present application.
[0257] Possibly, the computer-executable instructions in the embodiments of the present application may also be referred to as application code, and the embodiments of the present application do not specifically limit this.
[0258] In a specific implementation, as an embodiment, the processor 1701 may include one or more CPUs, such as Fig.17 CPU0 and CPU1 in.
[0259] In a specific implementation, as an embodiment, the control device may include multiple processors, such as Fig.17 1701 and 1705 in the embodiment of the present invention. Each of these processors may be a single-CPU processor or a multi-CPU processor. The processor herein may refer to one or more devices, circuits, and / or processing cores for processing data (e.g., computer program instructions).
[0260] For example, Fig.18 A schematic diagram of the structure of a chip provided in an embodiment of the present application. The chip 180 includes one or more (including two) processors 1820 and a communication interface 1830 .
[0261] In some embodiments, the memory 1840 stores the following elements: executable modules or data structures, or a subset thereof, or an extended set thereof.
[0262] In the embodiment of the present application, the memory 1840 may include a read-only memory and a random access memory, and provide instructions and data to the processor 1820. A portion of the memory 1840 may also include a non-volatile random access memory (NVRAM).
[0263] In the embodiment of the present application, the memory 1840, the communication interface 1830 and the memory 1840 are coupled together through the bus system 1810. The bus system 1810 may include a power bus, a control bus and a status signal bus in addition to a data bus. Fig.18 Various buses are labeled as bus system 1810.
[0264] The method described in the above embodiment of the present application can be applied to the processor 1820, or implemented by the processor 1820. The processor 1820 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware or software instructions in the processor 1820. The above processor 1820 can be a general-purpose processor (for example, a microprocessor or a conventional processor), a digital signal processor (digital signal processing, DSP), an application specific integrated circuit (application specific integrated circuit, ASIC), a field-programmable gate array (field-programmable gate array, FPGA) or other programmable logic devices, discrete gates, transistor logic devices or discrete hardware components. The processor 1820 can implement or execute the disclosed methods, steps and logic block diagrams in the embodiments of the present invention.
[0265] The steps of the method disclosed in the embodiment of the present application can be directly embodied as being executed by a hardware decoding processor, or being executed by a combination of hardware and software modules in the decoding processor. Among them, the software module can be located in a mature storage medium in the field such as a random access memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable read only memory (EEPROM). The storage medium is located in the memory 1840, and the processor 1820 reads the information in the memory 1840 and completes the steps of the above method in combination with its hardware.
[0266] In the above embodiments, the instructions stored in the memory for execution by the processor may be implemented in the form of a computer program product, wherein the computer program product may be pre-written in the memory, or may be downloaded and installed in the memory in the form of software.
[0267] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can be any available medium that a computer can store or a data storage device such as a server or data center that includes one or more available media integrated. For example, the available medium can include a magnetic medium (e.g., a floppy disk, a hard disk or a tape), an optical medium (e.g., a digital versatile disc (digital versatile disc, DVD)), or a semiconductor medium (e.g., a solid state drive (solid state disk, SSD)), etc.
[0268] The embodiments of the present application also provide a computer-readable storage medium. The methods described in the above embodiments can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. Computer-readable media may include computer storage media and communication media, and may also include any medium that can transfer a computer program from one place to another. The storage medium may be any target medium that can be accessed by a computer.
[0269] As a possible design, the computer readable medium may include a compact disc read-only memory (CD-ROM), RAM, ROM, EEPROM or other optical disc storage; the computer readable medium may include a magnetic disk storage or other magnetic disk storage device. Moreover, any connection line may also be appropriately referred to as a computer readable medium. For example, if the software is transmitted from a website, server or other remote source using a coaxial cable, fiber optic cable, twisted pair, DSL or wireless technology (such as infrared, radio and microwave), the coaxial cable, fiber optic cable, twisted pair, DSL or wireless technology such as infrared, radio and microwave are included in the definition of medium. Disk and disc as used herein include compact disc (CD), laser disc, optical disc, digital versatile disc (DVD), floppy disk and Blu-ray disc, where disks usually reproduce data magnetically, while optical discs reproduce data optically using lasers.
[0270] The above combinations should also be included in the scope of computer-readable media. The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.
Claims
1. A method for reducing power consumption, characterized in that: The method comprises: The terminal device is in a first mode, wherein the first mode is: an AOD display mode is performed when a touch screen operation is detected in the screen-off state of the terminal device; When the terminal device receives a screen-off instruction, the terminal device turns off the screen; When the terminal device is in a screen-off state, the terminal device registers a listener at the framework layer; When the screen of the terminal device is off, and before the terminal device detects a first trigger operation to display the AOD on the off screen, the terminal device monitors whether the terminal device satisfies the pocket mode through the monitor to obtain a monitoring result; wherein the first trigger operation includes any one of the following operations: a pressing operation on the power button detected when the screen of the terminal device is on, an operation of the terminal device being on and the time period from the last touch screen detection exceeding a first time period, a touch operation on the display screen detected when the terminal device is off screen, and a proximity operation detected by a proximity light sensor during the AOD process of the terminal device, the monitoring result is obtained based on motion data and light data, the motion data is used to determine whether the terminal device satisfies the head-down state, the light data includes proximity light data and ambient light data, and the motion data includes acceleration data and gyroscope data; When the monitoring result indicates that the terminal device satisfies the pocket mode, the terminal device keeps the screen off and releases the wake-up lock, the AP is in a dormant state when the wake-up lock is released, the terminal device indicates that the TP driver is in a low power mode, and the terminal device determines whether to exit the pocket mode; When it is detected that the terminal device has not exited the pocket mode, the terminal device keeps the screen off and releases the wake-up lock; When the monitoring result indicates that the terminal device does not meet the pocket mode, or the terminal device exits the pocket mode, the terminal device performs AOD through the AOD application; when the time when the terminal device enters the DOZE state exceeds the first time threshold, the terminal device deregisters the listener and turns off the screen, so that the AP is in a sleep state.
2. The method according to claim 1, characterized in that The first trigger operation is: a pressing operation on a power button detected when the terminal device is in a screen-on state, or an operation in the terminal device is in a screen-on state and the time interval from the last time a touch screen is detected exceeds the first time period, and the method further includes: The terminal device turns off the screen when detecting the first trigger operation; The terminal device registers the listener; When the monitoring result indicates that the terminal device satisfies the pocket mode, the terminal device turns off the screen, including: when the monitoring result indicates that the terminal device satisfies the pocket mode, the terminal device keeps the screen off.
3. The method according to claim 2, characterized in that The first trigger operation is: a proximity operation detected by a proximity light sensor during the AOD process of the terminal device, The method further comprises: When the terminal device detects the first trigger operation, the screen is turned off; When the monitoring result indicates that the terminal device satisfies the pocket mode, the terminal device turns off the screen, including: when the monitoring result indicates that the terminal device satisfies the pocket mode, the terminal device keeps the screen off.
4. The method according to claim 1, characterized in that: The terminal device is in a second mode, the second mode being: a display mode of the AOD in a screen-off state of the terminal device or a display mode of the AOD in a screen-off state of the terminal device during a preset time period of a day, The first trigger operation includes any one of the following operations: a pressing operation on a power button detected when the terminal device is in a screen-on state, an operation when the terminal device is in a screen-on state and the time interval from the last touch screen detection exceeds a first time period, a touch operation on the display screen detected when the terminal device is in a stationary state of AOD, and a proximity operation detected by a proximity light sensor during AOD of the terminal device; The AOD static state of the terminal device refers to a state in which the last frame of the preset animation is displayed after the preset animation is displayed by the AOD application.
5. The method according to claim 4, characterized in that The first trigger operation is: a pressing operation on a power button detected when the terminal device is in a screen-on state, or an operation in the terminal device is in a screen-on state and the time interval from the last time a touch screen is detected exceeds the first time period, and the method further includes: The terminal device turns off the screen when detecting the first trigger operation; The terminal device registers the listener; When the monitoring result indicates that the terminal device satisfies the pocket mode, the terminal device turns off the screen, including: when the monitoring result indicates that the terminal device satisfies the pocket mode, the terminal device keeps the screen off.
6. The method according to claim 4, characterized in that The terminal device performs AOD through the AOD application, including: The terminal device displays the preset animation through the AOD application, and displays the last frame of the preset animation after the preset animation is displayed.
7. The method according to claim 6, characterized in that The first trigger operation is: a touch operation on the display screen detected when the terminal device is in a stationary state of the AOD, When the monitoring result indicates that the terminal device satisfies the pocket mode, the terminal device turns off the screen, including: when the monitoring result indicates that the terminal device satisfies the pocket mode, the terminal device switches from displaying the last frame to turning off the screen.
8. The method according to claim 6, characterized in that The first trigger operation is: a proximity operation detected by a proximity light sensor during the AOD process of the terminal device, The method further comprises: When the terminal device detects the first trigger operation, the screen is turned off; When the monitoring result indicates that the terminal device satisfies the pocket mode, the terminal device turns off the screen, including: when the monitoring result indicates that the terminal device satisfies the pocket mode, the terminal device keeps the screen off.
9. The method according to any one of claims 1 to 8, characterized in that The light data includes proximity light data or ambient light data, and the terminal device monitors whether the terminal device satisfies the pocket mode through a monitor, and obtains a monitoring result, including: When all of the following conditions are met, the monitoring result obtained by the terminal device indicates that the terminal device meets the pocket mode: the terminal device determines, based on the motion data, that the orientation of the terminal device meets the first preset direction, the terminal device determines that the proximity light data is less than a first distance threshold, and the terminal device determines that the ambient light data is less than a first brightness threshold; or, When any one of the following conditions is met, the monitoring result obtained by the terminal device indicates that the terminal device does not meet the pocket mode: the terminal device determines, based on the motion data, that the orientation of the terminal device is a direction other than the first preset direction, the terminal device determines that the proximity light data is greater than a second distance threshold, and the terminal device determines that the ambient light data is greater than a second brightness threshold; Among them, the second distance threshold is greater than the first distance threshold, the second brightness threshold is greater than the first brightness threshold, and the first preset direction is the direction in which the head of the terminal device is facing the ground.
10. The method according to claim 9, characterized in that The method further comprises: After the monitoring result indicates that the terminal device satisfies the pocket mode, the terminal device continues to monitor whether the terminal device exits the pocket mode according to the motion data and the light data; When any one of the following conditions is met, the monitoring result obtained by the terminal device indicates that the terminal device does not meet the pocket mode and exits the pocket mode: the terminal device determines, based on the motion data, that the orientation of the terminal device is a direction other than the first preset direction, the terminal device determines that the proximity light data is greater than the second distance threshold, and the terminal device determines that the ambient light data is greater than the second brightness threshold.
11. A device for reducing power consumption, characterized in that: The device comprises a processing unit and a display unit; The terminal device is in a first mode, wherein the first mode is: an AOD display mode is performed when a touch screen operation is detected in the screen-off state of the terminal device; When the terminal device receives a screen-off instruction, the display unit is used to turn off the screen; When the terminal device is in a screen-off state, the processing unit is used to register a listener at the framework layer; When the screen of the terminal device is off, and before the terminal device detects a first trigger operation to display the AOD on the off screen, the processing unit monitors whether the terminal device satisfies the pocket mode through the monitor to obtain a monitoring result; wherein the first trigger operation includes any one of the following operations: a pressing operation on the power button detected when the screen of the terminal device is on, an operation of the terminal device being on and the time period from the last touch screen detection exceeding a first time period, a touch operation on the display screen detected when the terminal device is off screen, and a proximity operation detected by a proximity light sensor during the AOD process of the terminal device, the monitoring result is obtained based on motion data and light data, the motion data is used to determine whether the terminal device satisfies the head-down state, the light data includes proximity light data and ambient light data, and the motion data includes acceleration data and gyroscope data; When the monitoring result indicates that the terminal device satisfies the pocket mode, the display unit keeps the screen off and the processing unit releases the wake-up lock, and the AP is in a dormant state when the wake-up lock is released; the processing unit is also used to indicate that the TP driver is in a low power mode and determine whether to exit the pocket mode; When it is detected that the terminal device has not exited the pocket mode, the display unit keeps the screen off and the processing unit releases the wake-up lock; When the monitoring result indicates that the terminal device does not meet the pocket mode, or the terminal device exits the pocket mode, the display unit performs AOD through the AOD application; when the time when the terminal device enters the DOZE state exceeds the first time threshold, the processing unit deregisters the listener and the display unit turns off the screen, so that the AP is in a sleep state.
12. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the electronic device executes the method according to any one of claims 1 to 10.
13. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the computer is caused to perform the method according to any one of claims 1 to 10.
14. A computer program product, characterized in that The invention comprises a computer program which, when being executed, causes a computer to execute the method according to any one of claims 1 to 10.
Citation Information
Patent Citations
Always on display method, mobile terminal and memory medium
CN108696639A
False-triggering-preventive method and false-triggering-preventive device for mobile terminal, mobile terminal and storage medium
CN108900710A
Method and electronic device for displaying indication information
CN111108506A
Terminal control method and device, mobile terminal and storage medium
CN111290690A