Method for adjusting operating state of electronic device, electronic device, and computer-readable storage medium
By monitoring motion sensors and screen touch status, the operating status of electronic devices is adjusted, solving the problem of power consumption when the user's focus shifts, and improving user experience and sleep quality.
Patent Information
- Application Number
- PCT/CN2025/096194
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-07-19
- Filing Date
- 2025-05-21
- Publication Date
- 2026-01-22
AI Technical Summary
Electronic devices continue to consume power even when the user's focus shifts, causing battery anxiety and affecting the user experience, especially when the device is not turned off while the user is asleep and playing audio or games.
By monitoring motion sensors and screen touch status, changes in user focus can be identified, and the operating status of electronic devices can be adjusted, such as reducing screen brightness, refresh rate, volume, and sleep mode, to reduce power consumption.
Accurately identify changes in user focus, reduce power consumption of electronic devices, improve user experience, avoid battery anxiety, and optimize sleep quality.
Smart Images

Figure CN2025096194_22012026_PF_FP_ABST
Abstract
Description
Method for adjusting running state of electronic device, electronic device and computer readable storage medium
[0001] The present application claims priority to the Chinese patent application No. 202410979026.9, filed on July 19, 2024, entitled "Method for adjusting running state of electronic device, electronic device and computer readable storage medium", the whole content of which is incorporated herein by reference. TECHNICAL FIELD
[0002] Embodiments of the present application relate to the technical field of intelligent terminal, in particular to a method for adjusting running state of electronic device, an electronic device and a computer readable storage medium. BACKGROUND
[0003] With the development of technology, the functions of electronic devices such as mobile phones and tablets are no longer limited to making phone calls. Electronic devices can also provide users with many entertainment functions, such as playing audio and / or video, playing games, etc. If the user falls asleep while watching a video or live broadcast, the electronic device will continue to play the video or live broadcast until the electronic device is powered off or enters a low power mode, and the user will experience power anxiety after waking up, affecting the user's normal use. Similarly, if the user falls asleep during the game, the electronic device will also continue to display the game interface until the electronic device is powered off or enters a low power mode, and the user will also experience power anxiety after waking up, affecting the user's normal use, and the user will trigger the anti-addiction reminder repeatedly when playing the game the next day.
[0004] In the above scenarios, the user's focus has shifted, and for a long period of time, the user's focus is no longer on the electronic device, but the electronic device still consumes system resources. As a result, when the user's focus returns to the electronic device, the user will find that the power of the electronic device has been consumed a lot, resulting in power anxiety, which greatly reduces the user's experience. In addition, in the scenario where the user falls asleep, the audio played by the electronic device will also affect the user's sleep quality, resulting in a poor user experience. SUMMARY
[0005] Embodiments of the present application provide a method for adjusting running state of electronic device, an electronic device and a computer readable storage medium, to accurately identify the change of user's focus, and then adjust the running state of the electronic device according to the change of user's focus, reduce the power consumption of the electronic device, and improve the user's experience.
[0006] In a first aspect, the present application provides a method for adjusting the running state of an electronic device, comprising: running a target application in the foreground of the electronic device; obtaining the state of a motion state sensor in the electronic device and the touch state of the screen of the electronic device during the running of the target application; and if the motion state sensor is in a stationary state and the touch state of the screen is in an idle state, adjusting the running state of the electronic device according to the duration that the motion state sensor is in the stationary state and the touch state of the screen is in the idle state.
[0007] In the above method for adjusting the running state of an electronic device, the electronic device runs a target application in the foreground, obtains the state of a motion state sensor in the electronic device and the touch state of the screen of the electronic device during the running of the target application, and if the motion state sensor is in a stationary state and the touch state of the screen is in an idle state, adjusts the running state of the electronic device according to the duration that the motion state sensor is in the stationary state and the touch state of the screen is in the idle state, thereby accurately identifying the change in the user's focus and adjusting the running state of the electronic device according to the change in the user's focus, reducing the power consumption of the electronic device and improving the user's experience.
[0008] In one possible implementation, the adjusting of the running state of the electronic device according to the duration that the motion state sensor is in the stationary state and the touch state of the screen is in the idle state comprises: grading the running parameters of the electronic device according to the duration that the motion state sensor is in the stationary state and the touch state of the screen is in the idle state.
[0009] In one possible implementation, the running parameters of the electronic device comprise one or a combination of the following: screen brightness, screen refresh rate, audio volume, and screen burst rate.
[0010] In one possible implementation, after the grading of the running parameters of the electronic device, the method further comprises: if the motion state sensor is still in the stationary state and the touch state of the screen is still in the idle state, controlling the electronic device to enter a sleep state according to the duration that the motion state sensor is in the stationary state and the touch state of the screen is in the idle state.
[0011] In one possible implementation, after the grading of the running parameters of the electronic device, the method further comprises: if the motion state sensor is no longer in the stationary state and / or the touch state of the screen is no longer in the idle state, restoring the running parameters of the electronic device to the running parameters before the grading.
[0012] In a possible implementation, before the adjusting the running state of the electronic device, the method further includes: displaying prompt information on the current display interface of the target application according to the motion state sensor being in the stationary state and the touch state of the screen being in the idle state for a duration, the prompt information being used to remind the user that the electronic device will perform a running state adjustment operation; and the adjusting the running state of the electronic device includes: after the first duration, if no operation of the user is detected, adjusting the running state of the electronic device after the end time of the first duration is reached.
[0013] In a possible implementation, the displaying the prompt information on the current display interface of the target application includes: displaying a pop-up interface on the current display interface of the target application, and displaying the prompt information in the pop-up interface; and after the displaying the prompt information in the pop-up interface, the method further includes: if the operation of the user is detected, canceling the display of the pop-up interface, and restoring the running parameter of the electronic device to the running parameter before the reduction.
[0014] In a possible implementation, the displaying the prompt information on the current display interface of the target application includes: displaying the prompt information in the form of a system message on the current display interface of the target application; and after the displaying the prompt information in the form of the system message, the method further includes: hiding the prompt information after the end time of the first duration is reached.
[0015] In a second aspect, an embodiment of the present application provides an electronic device, including: one or more processors; a memory; a plurality of application programs; and one or more computer programs, wherein the one or more computer programs are stored in the memory, and the one or more computer programs include instructions, which, when executed by the electronic device, cause the electronic device to perform the method in the first aspect.
[0016] It should be understood that the second aspect of the embodiment of the present application is consistent with the technical solution of the first aspect of the embodiment of the present application, and the beneficial effects obtained by each aspect and the corresponding feasible implementation are similar, which will not be repeated.
[0017] In a third aspect, an embodiment of the present application provides a computer readable storage medium, and the computer readable storage medium stores a computer program, which, when executed on a computer, causes the computer to perform the method in the first aspect.
[0018] In a fourth aspect, an embodiment of the present application provides a computer program, which, when executed on a computer, is used to perform the method in the first aspect.
[0019] In one possible design, the program in the fourth aspect can be stored wholly or partially on a storage medium packaged with the processor, or it can be stored wholly or partially on a memory not packaged with the processor. Attached Figure Description
[0020] Figure 1 is a schematic diagram of the structure of an electronic device provided in an embodiment of this application;
[0021] Figure 2 is a schematic diagram of the system resource management architecture of an electronic device 100 provided in one embodiment of this application;
[0022] Figure 3 is a flowchart of a method for adjusting the operating state of an electronic device according to an embodiment of this application;
[0023] Figure 4 is a schematic diagram of a target application provided in one embodiment of this application;
[0024] Figure 5 is a flowchart of a method for adjusting the operating state of an electronic device according to another embodiment of this application;
[0025] Figure 6 is a schematic diagram of a display prompt message provided in an embodiment of this application;
[0026] Figure 7 is a schematic diagram of displaying prompt information provided in another embodiment of this application;
[0027] Figure 8 is a flowchart of a method for adjusting the operating state of an electronic device according to another embodiment of this application;
[0028] Figure 9 is a flowchart of a method for adjusting the operating state of an electronic device provided in another embodiment of this application;
[0029] Figure 10 is a schematic diagram of displaying prompt information provided in another embodiment of this application;
[0030] Figure 11 is a schematic diagram of the structure of an electronic device provided in another embodiment of this application. Detailed Implementation
[0031] The terminology used in the implementation section of this application is for the purpose of explaining specific embodiments of this application only, and is not intended to limit this application.
[0032] In response to the problem in existing technologies where electronic devices continue to consume system resources even after the user's focus has shifted, resulting in excessive power consumption, this application provides a method for adjusting the operating state of an electronic device. This method can accurately identify changes in the user's focus and adjust the operating state of the electronic device accordingly, thereby reducing power consumption and improving the user experience.
[0033] The method for adjusting the operating state of an electronic device provided in this application embodiment can be applied to electronic devices, wherein the aforementioned electronic devices can be smartphones, tablets, wearable devices, in-vehicle devices, augmented reality (AR) / virtual reality (VR) devices, laptops, ultra-mobile personal computers (UMPCs), netbooks, or personal digital assistants (PDAs), etc.; this application embodiment does not impose any restrictions on the specific type of electronic device.
[0034] For example, Figure 1 is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. As shown in Figure 1, the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone jack 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an accelerometer sensor 180E, a distance sensor 180F, a proximity 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.
[0035] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0036] Processor 110 may include one or more processing units, such as application processor (AP), modem processor, graphics processing unit (GPU), image signal processor (ISP), controller, video codec, digital signal processor (DSP), baseband processor, and / or neural network processing unit (NPU). These different processing units may be independent devices or integrated into one or more processors.
[0037] The controller can generate operation control signals based on the instruction opcode and timing signals to complete the control of instruction fetching and execution.
[0038] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can retrieve it directly from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0039] In some embodiments, the processor 110 may include one or more interfaces. Interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.
[0040] USB port 130 is a USB standard compliant interface, specifically a Mini USB port, Micro USB port, USB Type-C port, etc. USB port 130 can be used to connect a charger to charge electronic device 100, and can also be used for data transfer between electronic device 100 and peripheral devices. It can also be used to connect headphones for audio playback. This interface can also be used to connect other electronic devices, such as AR devices.
[0041] It is understood that the interface connection relationships between the modules illustrated in the embodiments of this application are merely illustrative and do not constitute a structural limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may also employ different interface connection methods or combinations of multiple interface connection methods as described in the above embodiments.
[0042] The charging management module 140 receives charging input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 receives charging input from the wired charger via a USB interface 130. In some wireless charging embodiments, the charging management module 140 receives wireless charging input via the wireless charging coil of the electronic device 100. While charging the battery 142, the charging management module 140 can also supply power to the electronic device 100 via the power management module 141.
[0043] The power management module 141 connects 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, providing power to the processor 110, internal memory 121, display screen 194, camera 193, and wireless communication module 160, etc. The power management module 141 can also monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage current, impedance). In some other embodiments, the power management module 141 may also be located within the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may be located in the same device.
[0044] The wireless communication function of electronic device 100 can be realized through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor, etc.
[0045] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover one or more communication frequency bands. Different antennas can also be multiplexed to improve antenna utilization. For example, antenna 1 can be multiplexed as a diversity antenna for a wireless local area network. In some other embodiments, the antennas can be used in conjunction with tuning switches.
[0046] The mobile communication module 150 can provide solutions for wireless communication, including 2G / 3G / 4G / 5G, applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves via antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to a modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via antenna 1. In some embodiments, at least some functional modules of the mobile communication module 150 may be housed in the processor 110. In some embodiments, at least some functional modules of the mobile communication module 150 and at least some modules of the processor 110 may be housed in the same device.
[0047] The modem processor may include a modulator and a demodulator. The modulator modulates the low-frequency baseband signal to be transmitted into a mid-to-high frequency signal. The demodulator demodulates 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 processing by the baseband processor, the low-frequency baseband signal is transmitted to the application processor. The application processor outputs sound signals through an audio device (not limited to speaker 170A, receiver 170B, etc.) or displays images or videos through the display screen 194. In some embodiments, the modem processor may be a separate device. In other embodiments, the modem processor may be independent of the processor 110 and may be housed in the same device as the mobile communication module 150 or other functional modules.
[0048] The wireless communication module 160 can provide solutions for wireless communication applications on the electronic device 100, 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), and infrared (IR) technologies. 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 antenna 2, performs frequency modulation and filtering of the electromagnetic wave signals, and sends the processed signal to processor 110. The wireless communication module 160 can also receive signals to be transmitted from processor 110, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 2.
[0049] In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, enabling electronic device 100 to communicate with networks and other devices via 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-CDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technologies, etc. The 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 satellite-based augmentation systems (SBAS).
[0050] Electronic device 100 implements display functions through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. Processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.
[0051] 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 (AMOLED), a flexible light-emitting diode (FLED), a Miniled LED, a MicroLED, a Micro-OLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include one or N display screens 194, where N is a positive integer greater than 1.
[0052] Electronic device 100 can perform shooting functions through ISP, camera 193, video codec, GPU, display 194 and application processor.
[0053] The ISP (Image Signal Processor) is used to process data fed back from the camera 193. For example, when taking a picture, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, and the camera's photosensitive element transmits the electrical signal to the ISP for processing, transforming it into an image visible to the naked eye. The ISP can also perform algorithmic optimization of image noise, brightness, and skin tone. The ISP can also optimize parameters such as exposure and color temperature of the shooting scene. In some embodiments, the ISP can be set in the camera 193.
[0054] Camera 193 is used to capture still images or videos. An object is projected onto a photosensitive element by generating an optical image through the lens. The photosensitive element can be a charge-coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, which is then passed to an ISP for conversion into a digital image signal. The ISP outputs the digital image signal to a DSP for processing. The DSP converts the digital image signal into image signals in standard RGB, YUV, or other formats. In some embodiments, the electronic device 100 may include one or N cameras 193, where N is a positive integer greater than 1.
[0055] Digital signal processors (DSPs) are used to process digital signals. Besides digital image signals, they can also process other digital signals. For example, when electronic device 100 selects a frequency, the DSP can perform Fourier transforms on the frequency energy.
[0056] Video codecs are used to compress or decompress digital video. Electronic device 100 may support one or more video codecs. Thus, electronic device 100 can play or record videos in various encoding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
[0057] An NPU (Neural Processing Unit) is a computational processor for neural networks (NNs). By borrowing the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, it can rapidly process input information and continuously learn on its own. NPUs enable intelligent cognitive applications in electronic devices, such as image recognition, facial recognition, speech recognition, and text understanding.
[0058] The external storage interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external storage interface 120 to perform data storage functions. For example, music, video, and other files can be saved on the external memory card.
[0059] Internal memory 121 can be used to store computer executable program code, which includes instructions. Internal memory 121 may include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function (such as sound playback, image playback, etc.), etc. The data storage area may store data created during the use of electronic device 100 (such as audio data, phonebook, etc.). Furthermore, internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc. Processor 110 executes various functional applications and data processing of electronic device 100 by running instructions stored in internal memory 121 and / or instructions stored in memory located in the processor.
[0060] Electronic device 100 can implement audio functions, such as music playback and recording, through audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, and application processor.
[0061] The audio module 170 is used to convert digital audio information into analog audio signals for output, and also to convert analog audio input into digital audio signals. The audio module 170 can also be used for encoding and decoding audio signals. In some embodiments, the audio module 170 may be located in the processor 110, or some functional modules of the audio module 170 may be located in the processor 110.
[0062] The speaker 170A, also known as a "loudspeaker," is used to convert audio electrical signals into sound signals. The electronic device 100 can listen to music or make hands-free calls through the speaker 170A.
[0063] The receiver 170B, also known as the "earpiece," is used to convert audio electrical signals into sound signals. When the electronic device 100 answers a telephone call or voice message, the receiver 170B can be brought close to the ear to listen to the voice.
[0064] Microphone 170C, also known as a "microphone" or "voice transducer," is used to convert sound signals into electrical signals. When making a phone call or sending a voice message, the user can speak by bringing their mouth close to microphone 170C, inputting the sound signal into microphone 170C. Electronic device 100 may have at least one microphone 170C. In some embodiments, electronic device 100 may have two microphones 170C, which, in addition to collecting sound signals, can also perform noise reduction. In other embodiments, electronic device 100 may also have three, four, or more microphones 170C, which can collect sound signals, reduce noise, identify the sound source, and perform directional recording, etc.
[0065] The 170D headphone jack is used to connect wired headphones. The 170D headphone jack can be a USB 130 interface or a 3.5mm Open Mobile Terminal Platform (OMTP) standard interface, a CTIA (Cellular Telecommunications Industry Association of the USA) standard interface.
[0066] Buttons 190 include a power button, volume buttons, etc. Buttons 190 can be mechanical buttons or touch-sensitive buttons. Electronic device 100 can receive button input and generate key signal inputs related to user settings and function control of electronic device 100.
[0067] Motor 191 can generate vibration alerts. Motor 191 can be used for incoming call vibration alerts or for touch vibration feedback. For example, different vibration feedback effects can correspond to touch operations performed on different applications (such as taking photos, playing audio, etc.). Motor 191 can also correspond to different vibration feedback effects for touch operations performed on different areas of the display screen 194. Different application scenarios (such as time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also be customized.
[0068] Indicator 192 can be an indicator light, used to indicate charging status, power changes, or to indicate messages, missed calls, notifications, etc.
[0069] The SIM card interface 195 is used to connect a SIM card. The SIM card can be inserted into or removed from the SIM card interface 195 to make contact with and separate from the electronic device 100. The electronic device 100 can support one or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc. Multiple cards can be inserted into the same SIM card interface 195 simultaneously. The multiple cards can be of the same or different types. The SIM card interface 195 is also compatible with different types of SIM cards. The SIM card interface 195 is also compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to realize functions such as calls and data communication. In some embodiments, the electronic device 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
[0070] The system resource management architecture of the electronic device 100 is described below. Figure 2 is a schematic diagram of the system resource management architecture of the electronic device 100 provided in an embodiment of this application.
[0071] As shown in Figure 2, the system resource management architecture includes a touch management module and a power management module. The power management module connects to modules such as the audio management module, display management module, network management module, and system sleep module. These modules are located in the framework (FW) layer of the electronic device 100's software system. The touch management module can switch the screen's touch state between active and idle states. The power management module connects to a sensor hub.
[0072] Specifically, the touch panel integrated circuit (TPIC) reports screen touch data to the touch management module. Based on the screen touch data, the touch management module switches the screen touch state between active and idle according to touch-related algorithms, and reports the current touch state of the screen to the power management module.
[0073] The sensor hub can acquire data from motion state sensors, determine the state of motion state sensors based on the data, and report the data to the power management module. The motion state sensors may include gyroscope sensor 180B and / or accelerometer sensor 180E. Of course, the motion state sensors may also include other sensors that can reflect the motion state of electronic device 100. This embodiment does not limit the type of motion state sensors.
[0074] The power management module adjusts the operating status of the electronic device based on the status reported by the touch management module and the sensor hub, and notifies the user interface (UI), mobile phone manager and / or system message modules to provide pop-up services.
[0075] For ease of understanding, the following embodiments of this application will take an electronic device with the structure shown in Figures 1 and 2 as an example, and, in conjunction with the accompanying drawings and application scenarios, specifically illustrate the method for adjusting the operating state of the electronic device provided in the embodiments of this application.
[0076] Figure 3 is a flowchart of a method for adjusting the operating state of an electronic device according to an embodiment of this application. As shown in Figure 3, the method for adjusting the operating state of the electronic device may include:
[0077] Step 301: The target application is run in the foreground on the electronic device 100.
[0078] The target application can be a video playback application, a game application, or an application that can provide live streaming functionality. This embodiment does not limit the type of the target application, as long as the target application can continuously output content without user operation.
[0079] Taking a video playback application as an example, as shown in Figure 4, in response to the user clicking the icon 41 of the target application, the electronic device 100 can launch the target application and run it in the foreground, displaying its interface as shown in Figure 42. The user can then select and click on the content they want to watch in the target application's interface 42, and the electronic device 100, in response to the user's operation, plays the selected video content, as shown in Figure 43. Figure 4 is a schematic diagram of a target application provided in an embodiment of this application.
[0080] Step 302: During the operation of the target application, the electronic device 100 acquires the status of the motion sensor in the electronic device 100 and the touch status of the screen of the electronic device 100.
[0081] Taking video playback applications as an example, during the process of playing the video content selected by the user, the electronic device 100 can obtain the status of the motion sensor in the electronic device 100 and the touch status of the screen of the electronic device 100.
[0082] The aforementioned motion state sensor can be a gyroscope sensor 180B and / or an accelerometer sensor 180E.
[0083] Step 303: If the motion state sensor is in a stationary state and the touch state of the screen is in an idle state, the electronic device 100 adjusts its operating state according to the duration of the motion state sensor being in a stationary state and the duration of the touch state of the screen being in an idle state.
[0084] When the motion sensor is stationary and the touch screen is idle, it indicates that the user's focus is no longer on the electronic device 100, thus allowing the system to recognize a change in the user's focus.
[0085] Specifically, the electronic device 100 adjusts its operating state based on the duration for which the motion sensor is stationary and the screen is idle. This adjustment can be achieved by progressively reducing the operating parameters of the electronic device 100 based on the duration for which the motion sensor is stationary and the screen is idle. The operating parameters of the electronic device 100 may include one or a combination of the following: screen brightness, screen refresh rate, audio volume, and screen pop rate.
[0086] In some examples, after the electronic device 100 progressively reduces its operating parameters, if the motion sensor remains stationary and the screen's touch state remains idle, the electronic device 100 is controlled to enter a sleep state based on the duration of the stationary motion sensor and the idle touch state. In this example, if the motion sensor remains stationary and the screen's touch state remains idle after the electronic device 100 progressively reduces its operating parameters, it indicates that the user has not perceived the reduction in the electronic device 100's operating parameters, thus clearly demonstrating that the user's focus has shifted for an extended period.
[0087] In specific implementation, when the duration of the motion sensor being stationary and the screen being idle reaches the Mth duration, the electronic device 100 can progressively reduce its operating parameters. After progressively reducing the operating parameters, if the duration of the motion sensor being stationary and the screen being idle reaches the Nth duration, the electronic device 100 can control itself to enter a sleep state. The Mth duration can be counted from the moment the motion sensor is stationary and the screen is idle, and is reset to zero once the motion sensor is no longer stationary and / or the screen is no longer idle. The Nth duration can be counted from the moment the electronic device 100 completes the reduction of its operating parameters. This embodiment does not limit the relationship between the Mth and Nth durations.
[0088] Additionally, it should be noted that when progressively reducing the operating parameters of the electronic device 100, the Mth duration can also be segmented. For example, the Mth duration can be divided into M1 and M2 sub-durations. Timing begins from the moment the motion sensor is stationary and the screen's touch state is idle. When the duration of the motion sensor being stationary and the screen's touch state being idle reaches the M1 sub-duration, the electronic device 100 reduces its operating parameters by one level, for example, reducing the screen brightness by xx. The device 100 reduces the screen refresh rate from 120Hz to 60Hz (or from 90Hz to 30Hz), reduces the audio volume by xx%, and reduces the screen pop rate from 300 / 120 to 60 / 30. Starting from the moment the device 100 completes the reduction of the operating parameters by one level, when the duration of the motion sensor being stationary and the screen being idle reaches the M2th sub-duration, the device 100 can continue to reduce the operating parameters by one level, for example: reducing the screen brightness to the minimum, reducing the screen refresh rate to the minimum, turning off the audio volume, and controlling the intelligent power allocator (IPA).
[0089] In other examples, after electronic device 100 progressively lowers its operating parameters, if the motion sensor is no longer stationary and / or the touchscreen is no longer idle, then electronic device 100 restores its operating parameters to their previous state. In these examples, if the motion sensor is no longer stationary and / or the touchscreen is no longer idle after progressively lowering the operating parameters, it indicates that the user's focus has returned to electronic device 100, therefore the operating parameters need to be restored to their previous state.
[0090] In the above-mentioned method for adjusting the operating state of an electronic device, the electronic device 100 runs a target application in the foreground. During the operation of the target application, the electronic device 100 acquires the state of the motion sensor and the touch state of the screen. If the motion sensor is stationary and the touch state of the screen is idle, the electronic device 100 adjusts its operating state based on the duration of the stationary state and the idle state. This allows for accurate identification of changes in user focus, and the adjustment of the operating state of the electronic device 100 based on these changes, thereby reducing power consumption and improving the user experience.
[0091] Figure 5 is a flowchart of a method for adjusting the operating state of an electronic device according to another embodiment of this application. As shown in Figure 5, in the embodiment shown in Figure 3 of this application, before step 303, the following may also be included:
[0092] Step 501: If the motion state sensor is in a stationary state and the touch state of the screen is in an idle state, the electronic device 100 displays a prompt message on the current display interface of the target application based on the duration of the motion state sensor being in a stationary state and the duration of the touch state of the screen being in an idle state. The prompt message is used to remind the user that the electronic device 100 will perform an operation state adjustment.
[0093] Thus, step 303 can be:
[0094] Step 502: If no user operation is detected within the first time period after the electronic device 100 displays the prompt information, the operating state of the electronic device 100 is adjusted after the end of the first time period.
[0095] The length of the first duration can be set by the system based on performance and / or implementation requirements during the specific implementation. This embodiment does not limit the length of the first duration. For example, the first duration can be 5 seconds.
[0096] In one implementation, displaying the prompt message on the current display interface of the target application can be done by displaying a pop-up window on the current display interface of the target application, and displaying the prompt message in the pop-up window.
[0097] In this implementation, after displaying the prompt information in the pop-up window, if the user's operation is detected, the electronic device 100 will cancel the display of the pop-up window and restore the operating parameters of the electronic device 100 to the previous reduced operating parameters.
[0098] Specifically, taking a video playback application as an example, the pop-up window interface can be as shown in Figure 6, 61. The pop-up window in 61 displays the following message: "The system is considering saving resources for you and will soon downgrade your service. You can exit and restore your service by performing any operation." Additionally, the pop-up window interface 61 may also include an "Exit" icon 62. Figure 6 is a schematic diagram of the display of prompt information provided in one embodiment of this application.
[0099] The aforementioned pop-up window can be displayed in its entirety, meaning that if no user interaction is detected, the pop-up window will remain displayed on the target application's current screen. Therefore, after displaying the prompt information in the pop-up window, if the electronic device 100 detects a user interaction, the electronic device 100 will cancel the display of the pop-up window. Furthermore, because the user has interacted with the device, the screen's touch state is no longer idle and / or the motion sensor's state is no longer static. Therefore, the operating parameters of the electronic device 100 need to be restored to their previous reduced state. The user interaction can be: clicking the "Exit" icon 62, swiping from the side of the screen to the center, or clicking or long-pressing any area of the screen. This embodiment does not limit the user interaction described above.
[0100] In addition, since the pop-up window is displayed on the entire screen, if no user operation is detected, the pop-up window will continue to be displayed on the current display screen of the target application. Therefore, if the prompt information is displayed in the form of a pop-up window, as long as the pop-up window does not disappear, the electronic device 100 does not need to repeatedly display the pop-up window during the process of adjusting the operating status.
[0101] Similarly, if a prompt message is displayed in the form of a pop-up window and the user does not take any action, it is clear that the user's focus has shifted for an extended period of time.
[0102] In another implementation, the prompt message can be displayed on the current display interface of the target application as a system message. After the prompt message is displayed as a system message, the electronic device 100 can hide the prompt message after the end of the first duration.
[0103] In this implementation, taking a video playback application as an example, the prompt message displayed in the form of a system message can be as shown in Figure 7, 71. The prompt message displayed in the form of a system message can be "xxx reminder: The system is considering saving your resources and will soon downgrade your service. You can exit and restore your service by performing any operation." Figure 7 is a schematic diagram of the display of prompt messages provided in another embodiment of this application.
[0104] System messages cannot occupy the entire screen; therefore, the electronic device 100 will hide the aforementioned prompt information after the first duration ends. Thus, if the prompt information were displayed as a system message, the electronic device 100 would need to display it as a system message every time it adjusts its operating state.
[0105] Figure 8 is a flowchart of a method for adjusting the operating state of an electronic device according to another embodiment of this application. As shown in Figure 8, the method for adjusting the operating state of the electronic device may include:
[0106] Step 801: The target application is run in the foreground on the electronic device 100.
[0107] The target application can be a video playback application, a game application, or an application that can provide live streaming functionality. This embodiment does not limit the type of the target application, as long as the target application can continuously output content without user operation.
[0108] Step 802: Electronic device 100 plays the content of the target application according to the normal business mode.
[0109] Taking a video playback application as an example, the interface for playing video content in the target application can be shown in Figure 4, 43.
[0110] Step 803: Electronic device 100 determines that the motion state sensor has entered a stationary state.
[0111] The aforementioned motion state sensor can be a gyroscope sensor 180B and / or an accelerometer sensor 180E.
[0112] Step 804: Electronic device 100 determines that the touch state of the screen has entered an idle state.
[0113] In step 805, the electronic device 100 determines whether the state of the motion sensor has changed. If so, it returns to step 802; if the state of the motion sensor has not changed, it proceeds to step 806.
[0114] Step 806: Electronic device 100 determines whether the touch state of the screen has changed. If so, it returns to step 802; if the touch state of the screen has not changed, it proceeds to step 807.
[0115] In step 807, the electronic device 100 determines that the duration for which the motion state sensor is in a stationary state and the touch state of the screen is in an idle state reaches the M1th sub-duration.
[0116] Step 808: The electronic device 100 displays a pop-up window on the current display interface of the target application and displays a prompt message in the pop-up window.
[0117] The pop-up window is displayed on the entire screen. Taking a video playback application as an example, the pop-up window can be shown as 61 in Figure 6.
[0118] As mentioned above, since the pop-up interface is displayed on the entire screen, if the prompt information is displayed in the form of a pop-up interface, as long as the pop-up interface does not disappear, the electronic device 100 does not need to repeatedly display the pop-up interface during the process of adjusting the operating status.
[0119] In step 809, the electronic device 100 determines whether a user operation has been detected within the first time period after the pop-up window is displayed. If a user operation is detected, the process returns to step 802; if no user operation is detected, the process proceeds to step 810.
[0120] The length of the first duration can be set by the system based on performance and / or implementation requirements during the specific implementation. This embodiment does not limit the length of the first duration. For example, the first duration can be 5 seconds.
[0121] Step 810: After the end of the first duration is reached, the electronic device 100 will reduce the operating parameters by one level.
[0122] Specifically, electronic device 100 can reduce screen brightness by xx nits, reduce screen refresh rate from 120Hz to 60Hz (or from 90Hz to 30Hz), reduce audio volume by xx%, and reduce screen pop rate from 300 / 120 to 60 / 30.
[0123] Step 811: Electronic device 100 determines whether the state of the motion state sensor has changed. If so, it returns to step 802; if the state of the motion state sensor has not changed, it proceeds to step 812.
[0124] In step 812, the electronic device 100 determines whether the touch state of the screen has changed. If so, it returns to step 802; if the touch state of the screen has not changed, it proceeds to step 813.
[0125] Step 813, the electronic device 100 determines that the duration for which the motion state sensor is in a stationary state and the touch state of the screen is in an idle state reaches the M2th sub-duration.
[0126] In practice, the duration of the M2 sub-duration can be started from the moment when the electronic device 100 completes step 810.
[0127] Step 814, the electronic device 100 continues to lower the operating parameters by one level.
[0128] Specifically, electronic device 100 can reduce screen brightness to the minimum, reduce screen refresh rate to the minimum, turn off audio volume, and control IPA.
[0129] In step 815, the electronic device 100 determines whether the state of the motion sensor has changed. If so, it returns to step 802; if the state of the motion sensor has not changed, it proceeds to step 816.
[0130] Step 816: Electronic device 100 determines whether the touch state of the screen has changed. If yes, it returns to step 802; if the touch state of the screen has not changed, it proceeds to step 817.
[0131] Step 817, the electronic device 100 determines that the duration for which the motion state sensor is in a stationary state and the duration for which the touch state of the screen is in an idle state has reached the Nth duration.
[0132] Step 818: Electronic device 100 controls electronic device 100 to enter sleep mode.
[0133] It should be noted that after step 813, the electronic device 100 can continue to lower the operating parameters by one level, or it can directly control the electronic device 100 to enter a sleep state. If the electronic device 100 controls the electronic device 100 to enter a sleep state after step 813, then there is no need to execute steps 814 to 818.
[0134] In addition, in this embodiment, when the electronic device 100 returns to the execution step 802, it means that the electronic device 100 plays the content of the target application according to the normal business mode. If the operation of reducing the operating parameters of the electronic device 100 was performed before returning to the execution step 802, then after returning to the execution step 802, the electronic device 100 will restore the operating parameters of the electronic device 100 to the parameters before the reduction.
[0135] In the above-mentioned method for adjusting the operating status of electronic devices, electronic device 100 initially identifies a shift in user focus based on the status of motion sensors and the touch status of the screen of electronic device 100. Then, electronic device 100 displays a pop-up interface on the full screen. If the user is unaware of the prompt information displayed on the full screen, it means that the user's focus has shifted for a long time. This allows for accurate identification of changes in user focus, and further adjustment of the operating status of electronic device 100 based on changes in user focus, thereby reducing the power consumption of electronic device 100 and improving the user experience.
[0136] Figure 9 is a flowchart of a method for adjusting the operating state of an electronic device according to another embodiment of this application. As shown in Figure 9, the method for adjusting the operating state of the electronic device may include:
[0137] Step 901: The target application is run in the foreground on the electronic device 100.
[0138] The target application can be a video playback application, a game application, or an application that can provide live streaming functionality. This embodiment does not limit the type of the target application, as long as the target application can continuously output content without user operation.
[0139] Step 902: Electronic device 100 plays the content of the target application according to the normal business mode.
[0140] Taking a video playback application as an example, the interface for playing video content in the target application can be shown in Figure 4, 43.
[0141] Step 903: Electronic device 100 determines that the motion state sensor has entered a stationary state.
[0142] The aforementioned motion state sensor can be a gyroscope sensor 180B and / or an accelerometer sensor 180E.
[0143] Step 904: Electronic device 100 determines that the touch state of the screen has entered an idle state.
[0144] In step 905, the electronic device 100 determines whether the state of the motion sensor has changed. If so, it returns to step 902; if the state of the motion sensor has not changed, it proceeds to step 906.
[0145] Step 906: Electronic device 100 determines whether the touch state of the screen has changed. If yes, it returns to step 902; if the touch state of the screen has not changed, it proceeds to step 907.
[0146] In step 907, the electronic device 100 determines that the duration for which the motion state sensor is in a stationary state and the touch state of the screen is in an idle state reaches the M1th sub-duration.
[0147] In step 908, the electronic device 100 displays a prompt message in the form of a system message on the current display interface of the aforementioned target application.
[0148] Taking a video playback application as an example, the prompt message displayed in the form of a system message can be as shown in Figure 7, 71.
[0149] In step 909, electronic device 100 determines whether a user operation has been detected within the first time interval after the system message is displayed. If a user operation is detected, it returns to step 902; if no user operation is detected, it proceeds to step 910.
[0150] The length of the first duration can be set by the system based on performance and / or implementation requirements during the specific implementation. This embodiment does not limit the length of the first duration. For example, the first duration can be 5 seconds.
[0151] Step 910: After the end of the first duration is reached, the electronic device 100 will reduce the operating parameters by one level.
[0152] Specifically, electronic device 100 can reduce screen brightness by xx nits, reduce screen refresh rate from 120Hz to 60Hz (or from 90Hz to 30Hz), reduce audio volume by xx%, and reduce screen pop rate from 300 / 120 to 60 / 30.
[0153] Step 911: Electronic device 100 determines whether the state of the motion sensor has changed. If so, it returns to step 902; if the state of the motion sensor has not changed, it proceeds to step 912.
[0154] Step 912: Electronic device 100 determines whether the touch state of the screen has changed. If yes, it returns to step 902; if the touch state of the screen has not changed, it proceeds to step 913.
[0155] Step 913, electronic device 100 determines that the duration for which the motion state sensor is in a stationary state and the touch state of the screen is in an idle state reaches the M2th sub-duration.
[0156] In practice, the duration of the M2 sub-duration can be started from the moment when the electronic device 100 completes step 910.
[0157] Step 914: The electronic device 100 displays a prompt message in the form of a system message on the current display interface of the target application.
[0158] Taking a video playback application as an example, the prompt message displayed in the form of a system message can be as shown in Figure 7, 71.
[0159] In step 915, the electronic device 100 determines whether a user operation has been detected within the first time interval after the system message is displayed. If a user operation is detected, the process returns to step 902; otherwise, step 916 is executed.
[0160] Step 916, electronic device 100 continues to lower the operating parameters by one level.
[0161] Specifically, electronic device 100 can reduce screen brightness to the minimum, reduce screen refresh rate to the minimum, turn off audio volume, and control IPA.
[0162] In step 917, the electronic device 100 determines whether the state of the motion sensor has changed. If so, it returns to step 902; if the state of the motion sensor has not changed, it proceeds to step 918.
[0163] In step 918, the electronic device 100 determines whether the touch state of the screen has changed. If so, it returns to step 902; if the touch state of the screen has not changed, it proceeds to step 919.
[0164] In step 919, the electronic device 100 determines that the duration for which the motion state sensor is in a stationary state and the duration for which the touch state of the screen is in an idle state has reached the Nth duration.
[0165] In step 920, the electronic device 100 displays a prompt message in the form of a system message on the current display interface of the target application.
[0166] Taking a video playback application as an example, the prompt message displayed as a system message can be as shown in 1001 of Figure 10. The prompt message can be something like "xxx reminder: The system is considering saving your resources and will soon enter sleep mode. You can exit and resume your service by performing any operation." Figure 10 is a schematic diagram of the display of prompt messages provided in another embodiment of this application.
[0167] Step 921: Electronic device 100 determines whether a user operation has been detected within the first time interval after the system message is displayed. If a user operation is detected, it returns to step 902; if no user operation is detected, it proceeds to step 922.
[0168] Step 922: Electronic device 100 controls electronic device 100 to enter sleep mode.
[0169] It should be noted that after step 915, electronic device 100 can continue to lower the operating parameters by one level, or it can directly control electronic device 100 to enter a sleep state. If electronic device 100 is controlled to enter a sleep state after step 915, then steps 916 to 922 do not need to be executed.
[0170] In addition, in this embodiment, when the electronic device 100 returns to the execution step 902, it means that the electronic device 100 plays the content of the target application according to the normal business mode. If the operation of reducing the operating parameters of the electronic device 100 was performed before returning to the execution step 902, then after returning to the execution step 902, the electronic device 100 will restore the operating parameters of the electronic device 100 to the parameters before the reduction.
[0171] In the above-mentioned method for adjusting the operating status of electronic devices, electronic device 100 initially identifies a shift in user focus based on the status of motion sensors and the touch status of the screen of electronic device 100. Then, electronic device 100 displays a prompt message in the form of a system message. If the user is unaware of the displayed prompt message, it means that the user's focus has shifted for a long time. This allows for accurate identification of changes in user focus, and further adjustment of the operating status of electronic device 100 based on changes in user focus, thereby reducing the power consumption of electronic device 100 and improving the user experience.
[0172] Additionally, it should be noted that the method of displaying prompts in a pop-up window and the method of displaying prompts in the form of system messages can be used alone or in combination. That is, prompts can be displayed in the form of system messages while the pop-up window is displayed in full screen. This embodiment does not limit this.
[0173] The method for adjusting the operating state of electronic devices provided in this application can solve the problem that users may fall asleep and forget to stop watching videos, games, or live streams, resulting in the electronic device being completely drained of battery power when they wake up. It can also solve the problem that users may fall asleep and forget to stop watching videos, games, live streams, or audio, thus affecting their rest. Furthermore, it can bring resource benefits, not only saving battery power but also saving data usage and reducing the triggering of anti-addiction measures for non-real-world gaming experiences.
[0174] It is understood that some or all of the steps or operations in the above embodiments are merely examples, and other operations or variations thereof can be performed in the embodiments of this application. Furthermore, the steps may be performed in different orders as presented in the above embodiments, and it is not necessary to perform all the operations in the above embodiments.
[0175] It is understood that, in order to achieve the above-mentioned functions, electronic devices include hardware and / or software modules that perform the respective functions. Based on the algorithm steps of the examples described in conjunction with the embodiments disclosed in this application, this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed by hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application in conjunction with the embodiments, but such implementation should not be considered beyond the scope of this application.
[0176] This embodiment can divide the electronic device into functional modules according to the above method embodiment. For example, each function can be divided into its own functional module, or two or more functions can be integrated into one module. The integrated module can be implemented in hardware. It should be noted that the module division in this embodiment is illustrative and only represents one logical functional division. In actual implementation, there may be other division methods.
[0177] Figure 11 is a schematic diagram of the structure of an electronic device provided in another embodiment of this application. When each functional module is divided according to its corresponding functions, Figure 11 shows a possible composition of the electronic device 1100 involved in the above embodiment. As shown in Figure 11, the electronic device 1100 may include: a receiving unit 1101, a processing unit 1102 and a transmitting unit 1103.
[0178] The processing unit 1102 can be used to support the electronic device 1100 in executing steps 301 to 303, and steps 501 to 502, and / or other processes used in the technical solutions described in the embodiments of this application.
[0179] It should be noted that all relevant content of each step involved in the method embodiments shown in Figures 3 to 9 of this application can be referenced from the functional description of the corresponding functional module, and will not be repeated here.
[0180] The electronic device 1100 provided in this embodiment is used to execute the method for adjusting the operating state of the electronic device provided in the embodiments shown in Figures 3 to 9 of this application, and thus can achieve the same effect as the above method.
[0181] It should be understood that electronic device 1100 can correspond to electronic device 100 shown in FIG1. The functions of receiving unit 1101 and transmitting unit 1103 can be implemented by processor 110, antenna 1, and mobile communication module 150 in electronic device 100 shown in FIG1, and / or by processor 110, antenna 2, and wireless communication module 160; the function of processing unit 1102 can be implemented by processor 110 and touch sensor 180K in electronic device 100 shown in FIG1.
[0182] When using integrated units, the electronic device 1100 may include a processing module, a storage module, and a communication module.
[0183] The processing module can be used to control and manage the actions of the electronic device 1100. For example, it can support the electronic device 1100 in executing the steps performed by the receiving unit 1101, processing unit 1102, and sending unit 1103. The storage module can support the electronic device 1100 in storing program code and data. The communication module can support communication between the electronic device 1100 and other devices.
[0184] The processing module can be a processor or controller, which can implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. The processor can also be a combination of functions that implement computing capabilities, such as a combination of one or more microprocessors, a combination of digital signal processing (DSP) and a microprocessor, etc. The storage module can be a memory. The communication module can specifically be a device that interacts with other electronic devices, such as radio frequency circuitry, a Bluetooth chip, and / or a Wi-Fi chip.
[0185] In one embodiment, when the processing module is a processor and the storage module is a memory, the electronic device 1100 involved in this embodiment can be a device having the structure shown in FIG1.
[0186] This application also provides a computer-readable storage medium storing a computer program that, when run on a computer, causes the computer to execute the method provided in the embodiments shown in Figures 3 to 9 of this application.
[0187] This application also provides a computer program product, which includes a computer program that, when run on a computer, causes the computer to execute the method provided in the embodiments shown in Figures 3 to 9 of this application.
[0188] In this application embodiment, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent the existence of A alone, A and B simultaneously, or B alone. A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one of the following" and similar expressions refer to any combination of these items, including any combination of singular or plural items. For example, at least one of a, b, and c can represent: a, b, c, a and b, a and c, b and c, or a and b and c, where a, b, and c can be single or multiple.
[0189] Those skilled in the art will recognize that the units and algorithm steps described in the embodiments disclosed herein can be implemented using electronic hardware, computer software, or a combination of electronic hardware and software. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0190] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0191] In the several embodiments provided in this application, any function, if implemented as a software functional unit and sold or used as an independent product, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, essentially, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0192] The above description is merely a specific embodiment of this application. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the protection scope of this application. The protection scope of this application should be determined by the protection scope of the claims.
Claims
A method for adjusting a running state of an electronic device, characterized in that The method comprises: an electronic device runs a target application in a foreground; during running of the target application, a state of a motion state sensor in the electronic device and a touch state of a screen of the electronic device are acquired; if the motion state sensor is in a stationary state and the touch state of the screen is in an idle state, a running state of the electronic device is adjusted according to a duration that the motion state sensor is in the stationary state and the touch state of the screen is in the idle state. The method of claim 1, wherein The adjusting the running state of the electronic device according to the duration that the motion state sensor is in the stationary state and the touch state of the screen is in the idle state comprises: gradually reducing a running parameter of the electronic device according to the duration that the motion state sensor is in the stationary state and the touch state of the screen is in the idle state. The method according to claim 2, characterized in that The running parameter of the electronic device comprises one or a combination of the following: screen brightness, screen refresh rate, audio volume, and screen burst rate. The method of claim 1, wherein After the gradually reducing the running parameter of the electronic device, the method further comprises: if the motion state sensor is still in the stationary state and the touch state of the screen is still in the idle state, controlling the electronic device to enter a sleep state according to the duration that the motion state sensor is in the stationary state and the touch state of the screen is in the idle state. The method according to claim 2, characterized in that After the gradually reducing the running parameter of the electronic device, the method further comprises: if the motion state sensor is no longer in the stationary state and / or the touch state of the screen is no longer in the idle state, restoring the running parameter of the electronic device to a running parameter before the reduction. The method of claim 1, wherein Before the adjusting the running state of the electronic device, the method further comprises: displaying prompt information above a current display interface of the target application according to the duration that the motion state sensor is in the stationary state and the touch state of the screen is in the idle state, the prompt information being used to remind the user that the electronic device will perform a running state adjustment operation; The adjusting the running state of the electronic device comprises: after a first duration after displaying the prompt information, adjusting the running state of the electronic device if no operation of the user is detected within the first duration. The method according to claim 6, characterized in that The displaying the prompt information above the current display interface of the target application comprises: displaying a pop-up interface above the current display interface of the target application, and displaying the prompt information in the pop-up interface; After the displaying the prompt information in the pop-up interface, the method further comprises: if the operation of the user is detected, canceling display of the pop-up interface and restoring the running parameter of the electronic device to the running parameter before the reduction. The method according to claim 6, characterized in that The displaying the prompt information above the current display interface of the target application comprises: displaying the prompt information in the form of a system message above the current display interface of the target application; After the displaying the prompt information in the form of the system message, the method further comprises: hiding the prompt information after the end time of the first duration is reached. An electronic device, characterized by comprising: The method comprises: one or more processors; a memory; a plurality of application programs; and one or more computer programs, wherein the one or more computer programs are stored in the memory, the one or more computer programs comprising instructions, which when executed by the electronic device, cause the electronic device to perform the method of any one of claims 1-8. A computer-readable storage medium, characterized by The computer readable storage medium has stored thereon a computer program which, when run on a computer, causes the computer to perform the method of any one of claims 1-8.
Citation Information
Patent Citations
Power-saving processing method, mobile terminal and computer storage medium
CN111163504A
Method and device for increasing endurance duration, electronic equipment and storage medium
CN116339492A
Electronic apparatus, power source control method of electronic apparatus, and power source control program
JP2017220120A
Portable electronic device and power-saving method thereof
TW200928713A
Operational management methods and systems for a wireless connecting unit
US20160353381A1