Screen state control method and electronic equipment

By entering the transition state when the display screen of the electronic device is about to turn off or enter the screen saver state, the user is reminded and the display status is controlled based on the user's operation or perception results, thereby solving the problem of the screen turning off caused by misjudgment in the existing technology, and improving the user experience.

CN118626183APending Publication Date: 2024-09-10HUAWEI TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202310264951.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-09
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

Existing electronic devices are prone to misjudgment when automatically controlling the display screen, causing the screen to turn off when the user needs to turn it on, affecting the user experience.

Method used

When the display is about to enter the screen-off or screen-saver state, it enters a transition state, and by reducing the brightness, displaying text information or emitting a prompt sound, it reminds the user and controls the display to enter the screen-off, screen saver or screen-on state based on the user's operation or perception results. state.

Benefits of technology

It improves the user experience, avoids screen status changes caused by misjudgment, and ensures that the display status meets user needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118626183A
    Figure CN118626183A
Patent Text Reader

Abstract

The invention discloses a screen state control method and electronic equipment, a display screen can be controlled to enter a screen-off state or a screen protection state under the condition that the display screen of the electronic equipment is in a screen-on state, and the method comprises the following steps: entering a transition state to indicate that the display screen is about to enter the screen-off state or the screen protection state; and in the transition state, controlling the display screen to enter one of the following states: a screen turn-off state, a screen protection state or a screen turn-on state according to user operation and / or a perception result of the user. When the display screen is about to enter the screen-off state or the screen protection state from the screen-on state, a user is reminded by entering the transition state, and the screen state of the display screen is further controlled according to the operation of the user and / or the sensing result of the user, so that the sudden change of the screen state of the display screen is avoided, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of terminal technology, and in particular to a screen status control method and electronic device. Background Art

[0002] With the development of technology, electronic devices such as mobile phones, laptops, and tablets are widely used in people's lives, bringing great convenience to people. Electronic devices are usually equipped with a display screen that can display the user's work content. When the electronic device is not in use, the display screen needs to be turned off to save energy or protect privacy.

[0003] Currently, electronic devices can automatically control the display screen to enter the off state or screen saver state. However, this control of the screen state often leads to misjudgment in actual use, causing the screen to be off when the user needs it to be on, affecting the user's normal use and providing a poor user experience. Summary of the invention

[0004] The present application provides a screen status control method and an electronic device, in order to improve user experience.

[0005] In the first aspect, the present application provides a screen state control method, which can be applied to electronic devices equipped with display screens, such as mobile phones, laptop computers, etc. The method can be executed by the electronic device, or it can also be executed by a component configured in the electronic device (such as a chip, a chip system, a processor, etc.), or it can also be implemented by a logic module or software that can realize all or part of the functions of the electronic device, and the present application does not limit this.

[0006] The method includes: when the display screen is in the screen-on state, entering a transition state to indicate that the display screen is about to enter the screen-off state or the screen-saver state; in the transition state, based on user operations and / or perception results of the user, controlling the display screen to enter one of the following states: the screen-off state, the screen-saver state or the screen-on state.

[0007] Among them, the screen-off state, screen-saver state or screen-on state is the state presented by the display screen of the electronic device. In the screen-on state, the display screen can display normal working content. In the screen-off state or screen-saver state, the display screen does not display normal working content.

[0008] When the display screen of an electronic device is about to change from a screen-on state to a screen-off state or a screen saver state, the electronic device can enter a transition state to prompt the user that the display screen is about to enter a screen-off state or a screen saver state. In this way, the user can get a prompt that the screen state of the display screen is about to change. In the transition state, the electronic device can detect the user's operation or the user's position, and control the display screen to enter a screen-off state or a screen saver state, or keep the display screen in a screen-on state accordingly. In this way, if the user needs to keep the display screen on, the electronic device can keep the screen on by inputting an operation or approaching the electronic device; if the user is not near the display screen, or the user has no need to turn on the screen, the display screen of the electronic device can enter a screen-off state or a screen saver state, thereby realizing intelligent control of the screen state of the display screen and improving the user experience.

[0009] In combination with the first aspect, in some possible implementations of the first aspect, entering the transition state includes: the brightness value of the display screen decreases from a first value to a second value, and the first value is greater than the second value; or, the display screen displays text information, and the text information is used to indicate that the screen is about to enter an off state or to indicate that the screen is about to enter a screen saver state; or, the electronic device emits a prompt sound, and the prompt sound is used to indicate that the screen is about to enter an off state or to indicate that the screen is about to enter a screen saver state.

[0010] The electronic device entering the transition state may be manifested by the electronic device controlling the display screen to reduce brightness, or by controlling the display screen to display text information. The electronic device may be equipped with a speaker, and the electronic device entering the transition state may also be manifested by controlling the speaker to send a prompt tone.

[0011] The electronic device can control the display and the speaker simultaneously. For example, the display screen can be controlled to reduce brightness while the speaker is controlled to emit a prompt sound. For another example, the display screen can be controlled to reduce brightness while the display screen is controlled to display text information.

[0012] In this way, the user can be reminded before the display screen enters the screen off state or screen saver state, and can perform operations in time, thereby improving the user experience.

[0013] The electronic device can maintain a transition state within a predefined time length. When the electronic device is in the transition state, the electronic device can detect the user's operating behavior or perceive the user's position, and control the display screen to enter one of the following states based on the user's operation and / or the user's perception results: screen off state, screen saver state or screen on state.

[0014] The following provides several possible implementations of an electronic device controlling a display screen to enter a screen-off state, a screen-saver state, or a screen-on state based on user operations and / or user perception results.

[0015] In a first possible implementation manner, the display screen is controlled to enter one of the following states based on user operations and / or user perception results: screen-off state, screen-saver state or screen-on state, including: controlling the display screen to enter the screen-off state or screen-saver state when no input signal is received from the user; or controlling the display screen to enter the screen-on state when an input signal is received from the user.

[0016] That is, in the transition state, the electronic device can control the display screen to enter the screen-on state, or control the display screen to enter the screen-off state or the screen-saver state according to the user's input signal. If the electronic device receives an input signal from the user, the display screen can be controlled to remain in the screen-on state, and the electronic device can exit the transition state. If the electronic device does not receive an input signal from the user in the transition state, the display screen can be controlled to enter the screen-off state or the screen-saver state at the end of the transition state.

[0017] In a second possible implementation, the display screen is controlled to enter one of the following states based on user operations and / or perception of the user: a screen-off state, a screen-saver state, or a screen-on state, including: when it is sensed that there is no user within a preset range, the display screen is controlled to enter the screen-off state or the screen-saver state; or, when it is sensed that there is a user within a preset range, the display screen is controlled to enter the screen-on state; wherein the preset range is determined based on the position of the display screen.

[0018] That is, in the transition state, the electronic device can control the display screen to enter the screen-on state, or control the display screen to enter the screen-off state or screen-saver state according to the perception result of the user. If the presence of a user is sensed within the preset range, the display screen can be controlled to remain in the screen-on state, and the electronic device can exit the transition state. If the electronic device senses that there is no user within the preset range in the transition state, the display screen can be controlled to enter the screen-off state or screen-saver state at the end of the transition state.

[0019] In a third possible implementation, the display screen is controlled to enter one of the following states based on user operations and / or perception of the user: a screen-off state, a screen-saver state, or a screen-on state, including: when no input signal is received from the user and it is perceived that there is no user within a preset range, the display screen is controlled to enter the screen-off state or the screen-saver state; or, when an input signal is received from the user and / or it is perceived that there is a user within a preset range, the display screen is controlled to enter the screen-on state; wherein the preset range is determined based on the position of the display screen.

[0020] That is, in the transition state, the electronic device can control the display screen to enter the screen-on state, or control the display screen to enter the screen-off state or the screen saver state based on the user's input signal and the user's perception results.

[0021] In this way, if the user needs to keep the display screen on, he can keep the screen on by inputting an operation or approaching the electronic device; if the user is not near the display screen, or the user does not need to turn on the screen, the display screen of the electronic device can enter the off state or screen protection state. In this way, the electronic device can realize intelligent control of the display screen state, and the user experience is also improved.

[0022] Optionally, the electronic device includes a detection module for detecting user operations and / or user positions, and a control module for controlling a display screen. Before entering the transition state, the method further includes: when the detection module does not detect that the duration of the user input signal exceeds a preset threshold, and / or detects that the user leaves a preset range, the detection module sends a first instruction to the control module, and the first instruction is used to notify the control module to control the display screen to enter a screen protection state or a screen off state. The preset range is determined based on the position of the display screen.

[0023] The electronic device may be configured with a detection module and a control module. The electronic device may enter a transition state when the detection module sends a first instruction to the control module. In other words, when the detection module does not detect that the duration of the user input signal exceeds a preset threshold, and / or detects that the user leaves a preset range, the detection module sends a first instruction to the control module to notify the control module to enter a screen-off state or a screen-saver state. When the control module receives the first instruction, it may control the display screen not to enter a screen-off state or a screen-saver state temporarily, but to control the electronic device to enter a transition state.

[0024] Optionally, the screen-on state includes a state of presenting an unlock interface, or a state of presenting a normal working interface.

[0025] That is, when the display screen presents an unlocking interface, the electronic device may enter a transitional state, and according to user operations and / or user perception results, the display screen may continue to present the unlocking interface, or enter a screen-off state or a screen-saver state. When the display screen presents a normal working interface, the electronic device may also enter a transitional state, and according to user operations and / or user perception results, the display screen may continue to present a normal working interface, or enter a screen-off state or a screen-saver state.

[0026] In a second aspect, the present application provides an electronic device that can implement the method in the first aspect and any possible implementation of the first aspect. The device includes a module or unit for implementing the method in the first aspect or any possible implementation of the first aspect. The included unit or module can be implemented by software and / or hardware.

[0027] In a third aspect, the present application provides an electronic device, including a processor and a display screen, wherein the processor can control the display screen to execute the method in the first aspect and any possible implementation manner of the first aspect.

[0028] Optionally, the electronic device may further include a memory for storing instructions and data. The memory is coupled to the processor, and when the processor executes the instructions stored in the memory, the methods described in the above aspects may be implemented.

[0029] In a fourth aspect, the present application provides a chip system comprising at least one processor for supporting the implementation of the functions involved in the above-mentioned first aspect and any possible implementation method of the first aspect, for example, controlling the display screen to enter an off state, a screen saver state or a on state.

[0030] In one possible design, the chip system also includes a memory, which is used to store program instructions and data, and the memory is located inside or outside the processor.

[0031] The chip system may be composed of the chip, or may include the chip and other discrete devices.

[0032] In a fifth aspect, the present application provides a computer-readable storage medium, comprising a computer program, which, when executed on a computer, enables the method in the above-mentioned first aspect or any possible implementation of the first aspect to be executed.

[0033] In a sixth aspect, the present application provides a computer program product, which includes: a computer program (also referred to as code, or instructions), which, when executed, enables the method in the above-mentioned first aspect or any possible implementation of the first aspect to be executed.

[0034] It should be understood that the second to sixth 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

[0035] Figure 1 It is a schematic diagram of a scenario applicable to the screen state control method provided in an embodiment of the present application;

[0036] Figure 2It is a schematic diagram of the hardware structure of an electronic device suitable for implementing the method provided in the embodiment of the present application;

[0037] Figure 3 is another schematic block diagram of an electronic device applicable to the method provided in the embodiment of the present application;

[0038] Figure 4 is a schematic flow chart of a screen state control method provided in an embodiment of the present application;

[0039] Figure 5 is a schematic diagram of an electronic device entering a transition state in an embodiment of the present application;

[0040] Figure 6 is a schematic diagram of the screen state change of the display screen in an embodiment of the present application;

[0041] Figure 7 is a schematic flow chart of a screen state control method provided in an embodiment of the present application;

[0042] Figure 8 is another schematic flow chart of the screen state control method provided in an embodiment of the present application;

[0043] Fig. 9 is a schematic flow chart of a screen state control method provided in an embodiment of the present application;

[0044] Fig.10 is another schematic flow chart of the screen state control method provided in an embodiment of the present application;

[0045] Fig.11 is a schematic diagram of a state in which a display screen in an embodiment of the present application changes from an off state to a state in which a normal working interface is displayed;

[0046] Fig.12 is a schematic block diagram of an electronic device provided in an embodiment of the present application;

[0047] Fig.13 It is another schematic block diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0048] The technical solution in this application will be described below in conjunction with the accompanying drawings.

[0049] For ease of understanding, the following points are first explained:

[0050] First, 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, the words "first", "second" and the like are used to distinguish the same items or similar items with substantially the same functions and effects. For example, the first preset threshold and the second preset threshold are only used to distinguish different time lengths, and do not limit their order. Those skilled in the art can understand that the words "first", "second" and the like do not limit the quantity and execution order, and the words "first", "second" and the like do not necessarily limit them to be different.

[0051] Second, the term "include" and its variations used in this application represent open inclusion, that is, "including but not limited to". "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 represent: the existence of A alone, the existence of A and B at the same time, and the existence of B alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and subsequent associated objects are in an "or" relationship. "At least one of the following items" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b and c can represent: a, or b, or c, or a and b, or a and c, or b and c, or a, b and c, where a, b, c can be single or multiple.

[0052] Third, in some processes described in the embodiments of the present application, multiple operations or steps appearing in a specific order are included, but it should be understood that these operations or steps may not be executed in the order in which they appear in the embodiments of the present application or in parallel, and the sequence number of the operation is only used to distinguish between different operations, and the sequence number itself does not represent any execution order. In addition, these processes may include more or fewer operations, and these operations or steps may be executed in sequence or in parallel, and these operations or steps may be combined.

[0053] Fourth, in the embodiments of the present application, “pre-defined”, “pre-configured” or “pre-set” can be implemented by pre-saving corresponding codes, tables or other methods that can be used to indicate relevant information in the electronic device, and the present application does not limit its specific implementation method.

[0054] Among them, "save" may mean to save in one or more memories, and the one or more memories may be set separately or integrated in an encoder, decoder, or electronic device. The one or more memories may also be partially set separately and partially integrated in a decoder, processor, or electronic device. The type of memory may be any form of storage medium, and this application is not limited to this.

[0055] Fifth, in the embodiments of the present application, descriptions such as “when…”, “at…”, “in the case of…”, “if” and “if” all mean that under certain objective circumstances, the device (such as the electronic device described below or the module in the electronic device) will perform corresponding processing, which is not a time limit, and does not require the device to have a judgment action when implementing it, nor does it mean that there are other limitations.

[0056] The following is a brief description of the terms used in the embodiments of the present application.

[0057] 1. Screen off state and screen saver state: In the screen off state or screen saver state, the display screen does not display normal working content.

[0058] The screen-off state refers to a state in which the display screen is off or does not display content. For example, after the electronic device is turned off, the display screen is off, and the display screen can be considered to be in the screen-off state; after the electronic device enters the sleep state, the display screen can also be off, and the display screen can be considered to be in the screen-off state.

[0059] The screen saver state refers to the state in which the display screen presents a predefined interface, which can be a picture and / or text interface, etc. When the electronic device is not used for a long time, the display screen can display a predefined picture and / or text interface to protect the display screen, or hide the user interface to protect the user's privacy. In the screen saver state, the display screen can only light up designated pixels to display valid information, and the valid information displayed can be user-configured or predefined, such as time, weather, message reminders, etc. The display screen can also reduce its brightness in the screen saver state to save power.

[0060] 2. Bright screen state: In the bright screen state, the display screen of the electronic device reaches a predefined brightness and can display content in response to user operations.

[0061] When the electronic device is used by the user, for example, when there is user input, the display screen of the electronic device may be in a screen-on state, and the electronic device may display a normal working interface through the display screen. For example, in the screen-on state, the electronic device may receive the user's operation instruction through the input device, and in response to the user's operation instruction, the display screen of the electronic device may display the icon of the application configured on the electronic device, or display the webpage content indicated by the user's operation instruction, or display the document content indicated by the user's operation instruction, or display the application interface, etc.

[0062] As an example, the electronic device may be configured with an input device, such as a keyboard. The electronic device may receive user input through the keyboard and display the content input by the user on a display screen.

[0063] As another example, the electronic device may be configured with a mouse controller, and in response to a user moving the mouse controller, the electronic device may display a moving icon on a display screen.

[0064] It should be understood that the present application does not limit the specific form of the input device, nor does it limit the specific way in which the electronic device receives user input, nor does it limit the specific content displayed on the display screen in response to user operations in the screen-on state.

[0065] The screen-on state in the embodiment of the present application may also include a state in which the display screen presents an unlocking interface. In this interface, corresponding content may be displayed in the unlocking interface in response to a user's input operation. For example, a password may be displayed in response to a user's input operation.

[0066] 3. Intelligent perception function: The intelligent perception function in the embodiment of the present application refers to the use of a perception device to perceive the distance and motion status of the user, so as to determine whether there is a user in front of the display screen of the electronic device. Among them, the perception device may include: a camera and a sensor, etc. The sensor may include but is not limited to an ultrasonic sensor, a proximity light sensor or a time of flight (ToF) sensor, etc. These perception devices can be configured in electronic devices to realize the intelligent perception function of the electronic device. Combined with the perception results of the intelligent perception function, the electronic device can control the display screen to enter the screen-on state, the screen-off state or the screen saver state.

[0067] When the display screen is in the on-screen state, if it senses that the user has left a preset range, the electronic device can control the display screen to enter the off-screen state; when the display screen is in the off-screen state, if it senses that the user has entered the preset range, the electronic device can control the display screen to enter the on-screen state.

[0068] Currently, in controlling the screen state of a display screen, when an event that triggers the display screen to turn off or on occurs, the electronic device can control the display screen to turn off or on immediately. Figure 1 When no user input signal is received within a predefined time length, or when the perception result of the smart perception function indicates that the user is away from the display screen, the display screen of the electronic device can immediately change from the on state to the off state.

[0069] This control of the screen state is sudden, that is, the transition from a screen-on state that the user can use normally to a screen-off state that the user cannot use normally occurs instantly. If a misjudgment occurs, for example, when the user has not operated the electronic device for a long time but needs to keep the screen on, or when the perception result of the smart perception function is inaccurate, the display screen will automatically turn off in a manner that does not meet the user's expectations, affecting the user experience.

[0070] To this end, the present application proposes a screen state control method, when the display screen of an electronic device is about to enter the screen-off state or screen-saver state from the screen-on state, the electronic device enters a transition state, for example, a text message is displayed on the display screen to remind the user that the display screen is about to turn off the screen or enter the screen-saver state. In the transition state, the electronic device can control the display screen to enter the screen-off state, screen-saver state or screen-on state according to the user's operation behavior and / or the user's perception result.

[0071] Based on the above technical content, the user can be reminded before the display screen is about to enter the screen-off state or screen-saver state. In response to the user's operation and / or based on the user's perception results, the electronic device can control the display screen to remain in the screen-on state, or control the display screen to enter the screen-off state or screen-saver state. In this way, the screen state change of the display screen of the electronic device is no longer sudden, and the user can perceive it in advance, so that the screen state presented by the display screen can meet the user's needs, which can improve the user experience.

[0072] The following will be combined Figures 2 to 13 Embodiments of the present application are described.

[0073] Figure 2 A schematic diagram showing the hardware structure of an electronic device that can implement the method provided in the embodiment of the present application.

[0074] The method provided in the present application can be applied to electronic devices equipped with display screens, including but not limited to: mobile phones, tablet computers, laptop computers, desktop computers, smart TVs, smart screens, smart homes, etc. The embodiments of the present application do not impose any limitations on the specific types of electronic devices.

[0075] For example, Figure 2 As shown, the electronic device 200 may include a processor 210, an external memory interface 220, an internal memory 221, a universal serial bus (USB) connector 230, a charging management module 240, a power management module 241, a battery 242, an antenna 1, an antenna 2, a mobile communication module 250, a wireless communication module 260, an audio module 270, a speaker 270A, a microphone 270B, a sensor module 280, an input module 290, a motor 291, an indicator 292, a camera 293 and a display screen 294, etc.

[0076] The processor 210 may include one or more processing units, for example, the processor 210 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.

[0077] The processor can generate operation control signals based on instruction opcodes and timing signals to complete the control of instruction fetching and execution.

[0078] The processor 210 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 210 may be a cache memory. The memory may store instructions or data that have been used or are frequently used by the processor 210. If the processor 210 needs to use the instruction or data, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 210, and thus improves the efficiency of the system.

[0079] In some embodiments, the processor 210 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, and / or a universal serial bus (USB) interface, etc. The processor 210 may be connected to a touch sensor, an audio module, a wireless communication module, a display screen, an input module, and the like through at least one of the above interfaces.

[0080] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the electronic device 200. In other embodiments of the present application, the electronic device 200 may also adopt an interface connection method different from that in the above embodiment, or a combination of multiple interface connection methods.

[0081] The external memory interface 220 can be used to connect an external memory card or storage device, such as a micro SD card, a hard disk, etc., to expand the storage capacity of the electronic device 200. The external storage device communicates with the processor 210 through the external memory interface 220 to implement a data storage function. For example, files such as music and videos are stored in the external storage device. Or files such as music and videos are transferred from the electronic device to the external storage device.

[0082] The internal memory 221 can be used to store computer executable program codes, which include instructions. The internal memory 221 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 electronic device 200 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 221 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 210 executes various functional methods or data processing of the electronic device 200 by running instructions stored in the internal memory 221, and / or instructions stored in a memory provided in the processor.

[0083] The USB connector 230 is an interface that complies with the USB standard specification, and can be used to connect the electronic device 200 and peripheral devices, and can specifically be a USB type A connector, a mini USB connector, a micro USB connector, a USB type C connector, etc. The USB connector 230 can be used to connect a charger to enable the charger to charge the electronic device 200, and can also be used to connect other electronic devices to enable data transmission between the electronic device 200 and other electronic devices. It can also be used to connect headphones to output audio stored in the electronic device through the headphones. It can also be used to connect an input device (for example, a mouse controller or a keyboard), and the electronic device 200 can receive input information from the input device. The connector can also be used to connect other electronic devices. In some embodiments, the standard specifications of the universal serial bus can be USB1.x, USB2.0, USB3.x and USB4.

[0084] The charging management module 240 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 240 may receive charging input from a wired charger through the USB interface 230. In some wireless charging embodiments, the charging management module 240 may receive wireless charging input through a wireless charging coil of the electronic device 200. While the charging management module 240 is charging the battery 242, it may also power the electronic device through the power management module 241.

[0085] The power management module 241 is used to connect the battery 242, the charging management module 240 and the processor 210. The power management module 241 receives input from the battery 242 and / or the charging management module 240, and supplies power to the processor 210, the internal memory 221, the display screen 294, the camera 293, and the wireless communication module 260. The power management module 241 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 241 can also be set in the processor 210. In other embodiments, the power management module 241 and the charging management module 240 can also be set in the same device.

[0086] The wireless communication function of the electronic device 200 can be implemented through the antenna 1, the antenna 2, the mobile communication module 250, the wireless communication module 260, the modem processor and the baseband processor.

[0087] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals.

[0088] The mobile communication module 250 can provide solutions for wireless communication technologies applied on the electronic device 200, including second-generation mobile communication technology (2G), third-generation mobile communication technology (3G), fourth-generation mobile communication technology (4G), and fifth-generation mobile communication technology (5G).

[0089] The wireless communication module 260 can provide wireless communication solutions for application in the electronic device 200, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), Bluetooth low energy (BLE), ultra wide band (UWB), global navigation satellite system (GNSS), frequency modulation (FM), near field communication technology (NFC), infrared technology (IR), etc.

[0090] In some embodiments, antenna 1 of electronic device 200 is coupled to mobile communication module 250, and antenna 2 is coupled to wireless communication module 260, so that electronic device 200 can communicate with the network and other electronic devices through wireless communication technology.

[0091] The electronic device 200 can implement audio functions such as music playing and recording through the audio module 270, the speaker 270A, the microphone 270C, and the application processor.

[0092] The audio module 270 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signal. The audio module 270 can also be used to encode and decode audio signals. In some embodiments, the audio module 270 can be arranged in the processor 210, or some functional modules of the audio module 270 can be arranged in the processor 210.

[0093] The speaker 270A, also called a "speaker", is used to convert an audio electrical signal into a sound signal. The electronic device 200 can listen to music or output an audio signal for a hands-free call through the speaker 270A.

[0094] Microphone 270B, 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 270B to input the sound signal into the microphone 270B. The electronic device 200 can be provided with at least one microphone 270B. In other embodiments, the electronic device 200 can be provided with two microphones 270B, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the electronic device 200 can also be provided with three, four or more microphones 270B to collect sound signals, reduce noise, identify the sound source, realize directional recording function, etc.

[0095] In an embodiment of the present application, the electronic device 200 can control the display screen 294 to enter or remain in a screen-on state when the microphone 270B receives a sound signal from the user. Before the screen state of the display screen 294 changes (for example, enters an off-screen state or a screen saver state), the speaker 270A can emit a prompt sound to prompt that the screen state of the display screen is about to change.

[0096] The sensor module 280 may include a pressure sensor 280A, a ToF sensor 280B, an ultrasonic sensor 280C, a magnetic sensor 280D, an acceleration sensor 280E, a distance sensor 280F, a proximity light sensor 280G, a fingerprint sensor 280H, a temperature sensor 280J, a touch sensor 280K, an ambient light sensor 280L, a bone conduction sensor 280M, and the like.

[0097] The pressure sensor 280A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 280A can be set on the display screen 294. There are many types of pressure sensors 280A, 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 280A, the capacitance between the electrodes changes. The electronic device 200 determines the intensity of the pressure based on the change in capacitance. When a touch operation acts on the display screen 294, the electronic device 200 detects the intensity of the touch operation based on the pressure sensor 280A. The electronic device 200 can also calculate the touch position based on the detection signal of the pressure sensor 280A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities can correspond to different operation instructions.

[0098] In the embodiment of the present application, the electronic device 200 can receive an input signal from the user through the pressure sensor 280A.

[0099] The ToF sensor 280B can be used to determine the distance between an object and the electronic device 200. Basic components of the ToF sensor 280B may include an infrared transmitter, an IR camera module, etc. The working principle of the ToF sensor is to calculate the distance between the ToF sensor and the object being photographed by the time it takes for infrared rays to return.

[0100] In an embodiment of the present application, the electronic device 200 can use the ToF sensor 280B to detect whether there is a user within a preset range, thereby controlling the display screen 294 to enter a screen-off state, a screen-saver state, or a screen-on state.

[0101] The ultrasonic sensor 280C includes an ultrasonic transmitter and an ultrasonic receiver. The ultrasonic transmitter can emit ultrasonic waves, and the ultrasonic receiver can receive ultrasonic echo signals reflected by an object. Based on the intensity of the echo signal and the time when the echo signal is received, the distance between the object to be measured and the ultrasonic sensor can be obtained. The electronic device 200 can measure the distance between the object to be measured and the electronic device 200 and the motion state of the object to be measured according to the ultrasonic sensor 280C.

[0102] In an embodiment of the present application, the electronic device 200 can use the ultrasonic sensor 280C to detect whether the user leaves the preset range, or whether the user enters the preset range, or whether there is a user within the preset range, thereby controlling the display screen 294 to enter the screen off state, screen saver state or screen on state.

[0103] The magnetic sensor 280D includes a Hall sensor. The electronic device 200 can use the magnetic sensor 280D to detect the opening and closing of the flip leather case. When the electronic device is a foldable electronic device, the magnetic sensor 280D can be used to detect the folding or unfolding of the electronic device, or the folding angle. In some embodiments, when the electronic device 200 is a flip machine, the electronic device 200 can detect the opening and closing of the flip according to the magnetic sensor 280D. In some embodiments, when the electronic device 200 is a laptop computer, the electronic device can detect the opening and closing of the display screen according to the magnetic sensor 280D. According to the detected opening and closing state of the leather case or the opening and closing state of the flip, features such as automatic unlocking of the flip can be set.

[0104] The acceleration sensor 280E can detect the magnitude of the acceleration of the electronic device 200 in all directions (generally three axes). When the electronic device 200 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the electronic device and is applied to applications such as horizontal and vertical screen switching and pedometers.

[0105] The distance sensor 280F is used to measure the distance. The electronic device 200 can measure the distance by infrared or laser. In the embodiment of the present application, the electronic device 200 can use the distance sensor 280F to measure the distance between the user and the display screen to determine whether there is a user within a preset range, thereby controlling the display screen 294 to enter the off-screen state, the screen protection state, or the on-screen state.

[0106] The proximity light sensor 280G 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 electronic device 200 emits infrared light outward through the light emitting diode. The electronic device 200 uses a photodiode to detect infrared reflected light from nearby objects. When the intensity of the detected reflected light is greater than a threshold value, it can be determined that there is an object near the electronic device 200. When the intensity of the detected reflected light is less than a threshold value, the electronic device 200 can determine that there is no object near the electronic device 200. The electronic device 200 can use the proximity light sensor 280G to detect that the user holds the electronic device 200 close to the ear to talk, so as to automatically turn off the screen to save power. The proximity light sensor 280G can also be used in leather case mode and pocket mode to automatically unlock and lock the screen.

[0107] In an embodiment of the present application, the electronic device 200 can use the proximity light sensor 280G to detect whether there is a user within a preset range, and then control the display screen 294 to enter the screen-off state, screen-saver state or screen-on state.

[0108] The ambient light sensor 280L can be used to sense the brightness of the ambient light. The electronic device 200 can adaptively adjust the brightness of the display screen 294 according to the perceived brightness of the ambient light. The ambient light sensor 280L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 280L can also cooperate with the proximity light sensor 280G to detect whether the electronic device 200 is blocked, such as when the electronic device is in a pocket. When it is detected that the electronic device is blocked or in a pocket, some functions (such as the touch function) can be disabled to prevent misoperation.

[0109] In an embodiment of the present application, the electronic device 200 can use the ambient light sensor 280L to detect whether there is a user within a preset range, and then control the display screen 294 to enter a screen-off state, a screen-saver state, or a screen-on state.

[0110] The fingerprint sensor 280H is used to collect fingerprints. The electronic device 200 can use the collected fingerprint characteristics to achieve fingerprint unlocking, access application locks, fingerprint photography, fingerprint answering calls, etc.

[0111] The temperature sensor 280J is used to detect temperature. In some embodiments, the electronic device 200 uses the temperature detected by the temperature sensor 280J to execute a temperature processing strategy. For example, when the temperature detected by the temperature sensor 280J exceeds a threshold, the electronic device 200 performs a reduction in processor performance to reduce the power consumption of the electronic device to implement thermal protection. In other embodiments, when the temperature detected by the temperature sensor 280J is lower than another threshold, the electronic device 200 heats the battery 242. In other embodiments, when the temperature is lower than another threshold, the electronic device 200 can boost the output voltage of the battery 242.

[0112] The touch sensor 280K is also called a "touch control device". The touch sensor 280K can be set on the display screen 294, and the touch sensor 280K and the display screen 294 form a touch screen, also called a "touch control screen". The touch sensor 280K is used to detect touch operations 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 294. For example, the display screen 294 can enter a bright screen state when a touch operation is detected. In other embodiments, the touch sensor 280K can also be set on the surface of the electronic device 200, which is different from the position of the display screen 294. For example, when the electronic device 200 is a laptop computer, the touch sensor 280K can be set on the touchpad configured for the laptop computer.

[0113] The bone conduction sensor 280M can obtain a vibration signal. In some embodiments, the bone conduction sensor 280M can obtain a vibration signal of a vibrating bone block of a human body's vocal part. The bone conduction sensor 280M can also contact a human body's pulse to receive a blood pressure pulse signal. In some embodiments, the bone conduction sensor 280M can also be disposed in an earphone to form a bone conduction earphone. The audio module 270 can parse a voice signal based on the vibration signal of a vibrating bone block of a vocal part obtained by the bone conduction sensor 280M to realize a voice function.

[0114] In an embodiment of the present application, the screen state of the display screen 294 can be controlled based on the perception result of the sensor module 280. For example, when the ToF sensor 280B, the ultrasonic sensor 280C, the distance sensor 280F or the proximity light sensor 280G senses that an object is close to the electronic device 200, or senses that there is a user within a preset range near the electronic device, the display screen 294 can be controlled to enter a bright screen state; when the object is sensed to be away from the electronic device 200, or senses that there is no user within a preset range near the electronic device 200, the display screen 294 can be controlled to enter a screen-off state or a screen protection state. For another example, when the pressure sensor 280A senses a pressure signal or the touch sensor 280K senses a touch operation, the display screen 294 can be controlled to enter a bright screen state.

[0115] The input module 290 can receive input signals from the user through the user's input operation. The electronic device 200 can receive input signals through the input module 290 and generate instructions related to the user settings and function control of the electronic device 200. The input module 290 may include a button 290A, and the button 290A may include a power button, a volume button, etc. The button 290 may be a mechanical button or a touch button. The input module 290 may also include other input devices 290B, such as a mouse, a keyboard, a touch pad, a digital tablet, etc. Other input devices 290 may also be external input devices connected to the electronic device 200 by wire or wirelessly. For example, other input devices can be connected to the electronic device 200 via a USB connector 230.

[0116] In an embodiment of the present application, when the input module 290 receives an input signal from a user, the screen state of the display screen 294 may change, for example, entering a bright screen state.

[0117] Motor 291 can generate vibration prompts. Motor 291 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. For touch operations acting on different areas of the display screen 294, motor 291 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.

[0118] In some embodiments of the present application, the motor 291 may vibrate to provide a prompt within a preset time length before the screen state of the display screen 294 changes.

[0119] The indicator 292 may be an indicator light, which may be used to indicate the charging status, power changes, messages, missed calls, notifications, etc. In an embodiment of the present application, the indicator 292 may be used to indicate that the screen status is about to change.

[0120] The electronic device 200 can realize the camera function through the camera 293, ISP, video codec, GPU, display screen 294, application processor AP, neural network processor NPU, etc.

[0121] The camera 293 can be used to collect image data and depth data of the photographed object. The ISP can be used to process the image data collected by the camera module 293. 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 the ISP for processing and converts it into an image visible to the naked eye. The ISP can also perform algorithm optimization on the noise, brightness, and skin color of the image. The ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.

[0122] In some embodiments, the photosensitive element of the camera 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, and then transmits 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.

[0123] In some embodiments, the camera 293 may include a ToF sensor 280B or a structured light 3D sensing module. Among them, structured light 3D sensing is an active depth sensing technology, and the basic components of the structured light 3D sensing module may include an infrared emitter, an IR camera, etc. The working principle of the structured light 3D sensing module is to first emit a light spot of a specific pattern to the object being photographed, then receive the light spot pattern coding on the surface of the object, and then compare the similarities and differences with the original projected light spot, and use the triangulation principle to calculate the three-dimensional coordinates of the object. The three-dimensional coordinates include the distance between the electronic device 200 and the object being photographed.

[0124] In other embodiments, the electronic device 200 may include two or more cameras. The two or more cameras may include a color camera, which may be used to collect color image data of the photographed object. The two or more cameras may use stereo vision technology to collect depth data of the photographed object. Stereo vision technology is based on the principle of human eye parallax. Under natural light, two or more cameras are used to capture images of the same object from different angles, and then triangulation and other operations are performed to obtain the distance information between the electronic device 200 and the photographed object, that is, the depth information.

[0125] In some embodiments, the CPU or GPU or NPU in the processor 210 can process the image data and depth data collected by the camera 293 to identify whether there is an authorized user within a preset range near the electronic device 200.

[0126] The display screen 294 is used to display images, videos, etc. The display screen 294 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, quantum dot light-emitting diodes (QLED), etc. In some embodiments, the electronic device 200 may include one or more display screens 294.

[0127] The electronic device 200 can realize the display function through a GPU, a display screen 294, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 294 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 210 may include one or more GPUs, which execute program instructions to generate or change display information.

[0128] In an embodiment of the present application, the electronic device 200 can control the display screen to present a variety of screen states, such as a screen-off state, a screen-saver state, or a screen-on state.

[0129] It is understandable that the structure shown in the embodiment of the present application does not constitute a specific limitation on the electronic device 200. In other embodiments of the present application, the electronic device 200 may include Figure 2 More or fewer components than those shown in the drawings may be used, some components may be combined, some components may be separated, or different component arrangements may be used. Figure 2 The components shown in the figure can be implemented in hardware, software, or a combination of software and hardware.

[0130] Figure 3 Another schematic block diagram of an electronic device suitable for the method provided in the embodiment of the present application is shown.

[0131] For example, Figure 3 As shown, the electronic device 300 may include an intelligent sensing module 310 , an input module 320 , a control module 330 and a display module 340 .

[0132] Among them, the smart perception module 310 may include a microphone, a speaker, a sensor, a camera, etc. The smart perception module 310 can be used to realize the smart perception function according to the data obtained by the microphone, the speaker, the camera, the sensor, etc. For example, the smart perception module 310 can be used to detect the user's motion state, or to detect whether there is a user within a preset range of the electronic device 300. When the presence of a user is detected within the preset range, the smart perception module 310 can also send an instruction to the control module 330 to control the display module 340 to enter the screen-on state; when the absence of a user is detected within the preset range, the smart perception module 310 can also send an instruction to the control module 330 to control the display module 340 to enter the screen-off state or the screen saver state.

[0133] The input module 320 can be used to receive input signals from the user through input devices such as buttons and mouse controllers, and can also detect the length of time when no user input signals are received. When receiving an input signal from the user, the input module 320 can also send an instruction to the control module 330 to control the display module 340 to enter a screen-on state; when the length of time when no input signal from the user is received exceeds a preset threshold, the input module 320 can also send an instruction to the control module 330 to control the display module 340 to enter a screen-off state or a screen saver state.

[0134] The control module 330 can be used to control the screen state of the display module 340, such as controlling the display module 340 to enter the screen-off state, screen-saver state or screen-on state. The control module 330 can also control the content displayed by the display module 340, such as controlling the display module 340 to display text information.

[0135] The control module 330 can also obtain the detection results of the intelligent perception module 310 and the detection results of the input module 320, and control the display module 340 to enter the screen-off state, screen protection state or screen-on state accordingly.

[0136] The control module 330 may also obtain state parameters of the display module 340 and determine the screen state of the display module 340 .

[0137] The control module 330 can also control other components configured in the electronic device 300, such as controlling the speaker to emit a prompt sound, controlling the indicator light to flash, etc., so that the electronic device 300 enters a transition state.

[0138] It should be understood that when the electronic device 300 enters the transition state, it may make different responses based on different settings, and these different responses are realized by relying on the control module 330 to control other components in the electronic device 300. For the convenience of understanding and description below, the process in which the control module 330 controls other components in the electronic device 300 to make the electronic device 300 enter the transition state is referred to as the control module 330 controlling the electronic device 300 to enter the transition state.

[0139] The display module 340 can enter a screen-off state, a screen-saver state, or a screen-on state in response to the control of the control module 330 .

[0140] It should be understood that Figure 3 The electronic device 300 shown is only an example given in the present application and does not constitute a limitation to the present application. The electronic device 300 may also include more or fewer modules. The division of modules in the present application is also only schematic. Each functional module may be configured separately, or two or more modules may be integrated into one module. For example, the intelligent perception module 310 may be configured in conjunction with the input module 320, which may be referred to as a detection module. The above modules may be implemented in the form of hardware, in the form of software functional modules, or in the form of a combination of hardware and software.

[0141] Figure 4 It is a schematic flow chart of the screen status control method provided in an embodiment of the present application. Figure 4 The method 400 shown may be applied to an electronic device, for example Figure 2 or Figure 3 The electronic device shown in the figure, the method can be executed by the electronic device, or it can also be executed by a component configured in the electronic device (such as a chip, a chip system, a processor, etc.), or it can also be implemented by a logic module or software that can realize all or part of the functions of the electronic device, and this application does not limit this. The following is an example of a control module configured in an electronic device. The control module can be, for example, Figure 3 The control module 330 is shown.

[0142] See also Figure 4 , the screen state control method 400 may include steps 410 to 430.

[0143] In step 410, it is determined whether the display screen is in a bright screen state.

[0144] The control module can obtain a state parameter indicating the current screen state of the display screen, and determine that the display screen is in a bright screen state based on the state parameter.

[0145] The state parameter may indicate the current screen state of the display screen. When the display screen is in the off state, the state parameter may indicate that the display screen is in the off state; when the display screen is in the on state, the state parameter may indicate that the display screen is in the on state; when the display screen is in the screen saver state, the state parameter may indicate that the display screen is in the screen saver state. The control module may obtain the state parameter from the application software for managing the display screen, or obtain the state parameter from the operating system of the electronic device.

[0146] It should be understood that step 410 is optional, that is, the electronic device may not perform the step of determining whether the display screen is in the screen-on state. For example, after the control module controls the display screen to enter the screen-on state from the screen-off state, it is not necessary to obtain the state parameters of the display screen to confirm whether the display screen is in the screen-on state. Alternatively, when there is a user input signal, the control module does not need to confirm whether the display screen is in the screen-on state.

[0147] In step 420, a transition state is entered to indicate that the display screen is about to enter a screen-off state or a screen-saver state.

[0148] When the display screen of the electronic device is about to enter the screen-off state or the screen-saver state from the screen-on state, for example, when the electronic device detects the user's movement away from the display screen through the intelligent sensing function, the control module can control the electronic device to enter the transition state to prompt the user that the display screen is about to enter the screen-off state or the screen-saver state. In other words, the control module can control the display screen not to enter the screen-off state or the screen-saver state temporarily, but first control the electronic device to enter the transition state, thereby prompting the user that the display screen is about to enter the screen-off state or the screen-saver state.

[0149] Exemplarily, the electronic device may be configured with a detection module for detecting the user's operation and / or the user's position. The detection module may include, for example: Figure 3The intelligent sensing module and input module shown. When the detection module detects a predefined event, it can send an instruction to the control module, which is used to notify the control module to control the display screen to enter the off state or screen protection state. For the sake of convenience, the instruction is called the first instruction. The control module can control the electronic device to enter the transition state when receiving the first instruction.

[0150] The predefined event may be, for example, that the duration of no user input signal being detected exceeds a preset threshold, and / or that the user is detected to have left a preset range.

[0151] In one example, the predefined event may be that the duration of not receiving the user input signal exceeds a preset threshold. For ease of distinction and explanation, the preset threshold is referred to as the first preset threshold. In the embodiment of the present application, the duration of not receiving the user input signal is a continuous duration, that is, the duration of not receiving the user input signal since the last time the user input signal was received. If the user input signal is received during the process of calculating the duration of not receiving the user input signal, the duration of not receiving the user input signal is recalculated from the moment the user input signal is received.

[0152] The detection module can receive an input signal from the user through an input device, such as a key, a touch panel, a mouse controller, etc., and count the duration of time when no user input signal is received. If no input signal from the user is received within a first preset threshold duration after the last time the user input signal was received, the detection module can send a first instruction to the control module, which is used to notify the control module to control the display screen to enter a screen-off state or a screen-saver state.

[0153] For example, the first preset threshold may be 10 minutes. When the detection module does not receive an input signal from the user for more than 10 minutes, the detection module may send a first instruction to the control module.

[0154] It should be understood that the above is only an example, and the specific value of the first preset threshold can be configured by the user, or pre-configured when the electronic device leaves the factory, or obtained by the electronic device through an application service or an upgrade service, and this application does not impose any restrictions on this.

[0155] In another example, the predefined event may be that there is no user within a preset range. The detection module may send a first instruction to the control module when detecting that there is no user within the preset range. For the sake of distinction and description, the preset range is referred to as a first preset range.

[0156] The first preset range can be determined based on the position of the display screen, for example, it can be a range centered on the display screen. There is no user within the first preset range, which may be because the distance between the user and the display screen is greater than the preset distance. For the sake of convenience of explanation and distinction, the preset distance is referred to as the first preset distance. The detection module can detect the distance between the user and the display screen through the intelligent sensing module. The detection module can periodically detect the distance between the user and the display screen, for example, once every 1 second. When the current detection result indicates that the distance is greater than the first preset distance, the electronic device can determine that there is no user within the preset range, and can send a first instruction to the control module.

[0157] The detection module may also identify the user's features through the intelligent perception module. If the user is not identified, the detection module may send a first instruction to the control module.

[0158] It should be understood that the first preset range may also be a range located in front of the display screen. The first preset range may be determined based on the position of the display screen, may be determined based on the positions of other components of the electronic device, or may be determined based on the position of the electronic device as a whole. The first preset range may be set by the user, or may be predefined. It should also be understood that the examples of the time intervals for detecting the user's position in the embodiments of the present application are only for illustration, and the time intervals for detecting the user's position may be any other duration, such as 0.5 seconds, such as 2 seconds, and the present application does not limit this. The detection module may also detect whether there is a user within the first preset range by other methods, for example, by detecting the user's breathing.

[0159] It should also be understood that the above description of predefined events is only illustrative and cannot be a limitation of the present application. For example, the predefined event may also be an action of the user moving away from the display screen. The detection module may detect the user's action through a camera. When the user moves away from the display screen, the detection module may send a first instruction to the control module. For another example, the predefined event may also be a sound issued by the user indicating entering a screen-off state or a screen-saver state. The detection module may receive the user's voice signal through a microphone. When the sound issued by the user indicating entering a screen-off state or a screen-saver state is received, the detection module may send a first instruction to the control module.

[0160] It should also be understood that the electronic device can be configured with multiple predefined events, and each predefined event can be used alone or in combination. For example, for the same electronic device, the detection module configured therein can send a first instruction to the control module when any predefined event is detected. The detection module can also send a first instruction to the control module when more than two predefined events are detected.

[0161] When the detection module needs to detect multiple predefined events and then send the first instruction to the control module, the detection module can perform detection simultaneously or sequentially, and the present application does not limit the order of detection. In this way, when the detection result of a predefined event is inaccurate, it can be judged in combination with the detection results of other events, which can avoid erroneously generating instructions in the case of misjudgment.

[0162] The first instruction is specifically used to notify the control module to control the display screen to enter the screen protection state or the screen off state. It can be configured by the user, pre-configured when the electronic device leaves the factory, or obtained by the electronic device through an application service or upgrade service. This application does not limit this.

[0163] As mentioned above, when the display screen of the electronic device is about to enter the screen-off state or the screen-saver state from the screen-on state, the electronic device can enter the transition state.

[0164] The electronic device entering the transition state may include one or more of the following: the control module controls the display screen to reduce the brightness, or controls the display screen to display text information for prompting the user, or controls the speaker configured in the electronic device to emit a prompt sound.

[0165] In some implementations, the electronic device entering the transition state may be manifested as the control module controlling the display screen to reduce the brightness. For example, when the electronic device is in the transition state, the brightness of the display screen may be lower than the brightness in the bright screen state. For example, it may be 80%, 60%, 50%, 40%, 20%, etc. of the brightness value of the display screen in the bright screen state. The present application does not limit the specific brightness value of the display screen in the transition state.

[0166] In this way, the user can be reminded that the display screen is about to enter the screen off state or screen saver state based on the change in the brightness of the display screen.

[0167] In some implementations, the electronic device entering the transition state may be manifested as a control module controlling the display screen to display text information indicating that the electronic device is about to enter a screen-off state or a screen-saver state.

[0168] For example, when the display screen is about to enter the screen-off state, the control module can control the display screen to display text information to indicate that it is about to enter the screen-off state. The displayed text information may be, for example, "about to enter the screen-off state" or "about to enter sleep".

[0169] For another example, when the display screen is about to enter the screen saver state, the control module can control the display screen to display text information to indicate that it is about to enter the screen saver state. The displayed text information can be, for example, "about to enter the screen saver" or "about to enter the screen saver state".

[0170] In the transition state, the control module controls the text information displayed on the display screen to further include a countdown, and the countdown is used to indicate to the user the length of time that the transition state can be maintained at the current moment.

[0171] In the transition state, the text information displayed on the display screen may also instruct the user on how to cancel the transition state. For example, the displayed text information may include "Please move the mouse or click any key on the keyboard to cancel."

[0172] As an example, Figure 5 This is a schematic diagram of an electronic device entering a transition state. Figure 5 As shown, after the electronic device enters the transition state, the display screen of the electronic device can display text information based on the content displayed in the screen-on state, and the text information can indicate that the screen is about to enter the off state and the operations that the user can perform.

[0173] In this way, through the text information displayed on the display screen, the user can be reminded that the display screen is about to enter the screen saver state or the screen off state, thereby improving the user experience.

[0174] It should be understood that the enumeration of text information displayed on the display screen when the electronic device is in a transition state in the present application is merely illustrative and cannot constitute a limitation of the present application. The present application does not limit the specific form of the text information, nor does it limit the specific location of the text information on the display screen, nor does it limit the specific content of the text information. Based on the content of the text information, the user can understand that the display screen is about to enter the screen-off state or the screen-saver state.

[0175] In some implementations, the electronic device is equipped with a speaker, and the electronic device entering the transition state can also be manifested as the control module controlling the speaker to emit a prompt sound to prompt the user that the display screen is about to enter the screen-off state or the display screen is about to enter the screen saver state.

[0176] For example, when the display screen is about to enter the screen-off state, the control module can control the speaker to play the voice of "the screen is about to be turned off". When the display screen is about to enter the screen saver state, the control module can control the speaker to play the voice of "the screen saver is about to enter".

[0177] In this way, the user can be reminded when the display screen is about to enter the screen-off state or the screen-saver state; when the user is not in front of the display screen, the user can also know that the display screen is about to enter the screen-off state or the screen-saver state based on the voice prompt issued by the speaker, thereby improving the user experience.

[0178] It should be understood that the present application does not limit the specific content of the prompt sound played by the speaker. The prompt sound played can also be a sound of a single content, such as "beep beep beep". The prompt sound played can be predefined or user-configured.

[0179] In some implementations, the electronic device may be configured with an indicator, such as an indicator light configured at the edge of a display screen. The electronic device entering a transition state may be manifested by the control module controlling the indicator light to flash, and the rule for the indicator light to flash may be predefined or user-configured.

[0180] When the display screen is about to enter the screen-off state or the screen-saver state, the user can be reminded by the flashing of the indicator light, thereby improving the user experience.

[0181] It should be understood that the above examples of implementation methods of the electronic device entering the transition state are only for illustration, and the present application does not limit the specific form of the electronic device entering the transition state.

[0182] The various implementations of the electronic device entering the transition state can be implemented separately or in combination. For example, the control module can control the display screen to reduce the brightness, and at the same time control the display screen to display prompt text information. For another example, the control module can control the display screen to display prompt text information, and at the same time control the speaker to emit a prompt sound. For another example, the control module can control the display screen to reduce the brightness, and at the same time control the display screen to display prompt text information, and at the same time control the speaker to emit a prompt sound. And so on, not listed one by one.

[0183] It should be understood that when the control module controls the electronic device to enter the transition state, the display screen can continue to display the content displayed when it is in the screen-on state. For example, when the control module controls the speaker to emit a prompt sound, or controls the indicator light to flash, the display screen can continue to display the content displayed when it is in the screen-on state.

[0184] It should also be understood that when the electronic device is about to enter the screen-off state and when the electronic device is about to enter the screen-saver state, the control module can control the electronic device to enter the same transition state or different transition states.

[0185] For example, when the screen is about to enter the off state, the control module can control the display screen to display a countdown, and when the screen is about to enter the screen saver state, the control module can also control the display screen to display a countdown. For another example, when the screen is about to enter the off state, the control module can control the display screen to display text information (such as a countdown, etc.), and when the screen is about to enter the screen saver state, the control module can control the indicator light to flash. And so on, not to be listed one by one.

[0186] Based on the above technical solution, when the display screen is about to change from the on-screen state to the off-screen state or the screen saver state, the electronic device can enter a transition state and remind the user by displaying text information, issuing a prompt sound, etc., so that the user can be reminded before the screen state changes and can perform operations in time, thereby improving the user experience.

[0187] In step 430, according to the user operation and / or the perception result of the user, the display screen is controlled to enter one of the following states: screen-off state, screen-saver state or screen-on state.

[0188] From the moment of entering the transition state, the control module can control the electronic device to maintain the transition state for a period of time, such as continuously controlling the display screen to display text information, or continuously controlling the speaker to emit a prompt sound. For the sake of distinction and explanation, the maximum length of time that the electronic device maintains the transition state is referred to as the second preset threshold, and the second preset threshold can be user-configured, predefined, or preconfigured when the electronic device leaves the factory, and this application does not limit this. Exemplarily, the preconfigured second preset threshold can be 5 seconds or 10 seconds.

[0189] When the electronic device is in a transition state, the detection module can detect the user operation and / or the user position. For example, it can detect whether an input signal from the user is received, or detect whether there is a user within a preset range. For the sake of distinction and description, the preset range is called the second preset range.

[0190] The method by which the detection module detects whether an input signal from a user is received, and the method by which the detection module detects whether a user exists within the second preset range, may refer to the description in step 420 .

[0191] Exemplarily, the detection module can detect the distance between the user and the display screen through the intelligent perception module. If the user is not detected within the preset distance from the display screen, it is considered that there is no user within the second preset range. For the convenience of distinction and description, the preset distance is called the second preset distance. The second preset distance and the aforementioned first preset distance can be the same value or different values. In other words, the second preset range and the aforementioned first preset range can be the same or different.

[0192] In the transition state, the detection module can also detect the user's actions, or receive the user's voice signals through a microphone, etc., which is not limited in this application.

[0193] The control module can obtain the detection result of the detection module, and control the screen state of the display screen according to the detection result, for example, controlling the display screen to enter the screen-on state in the transition state, or controlling the display screen to enter the screen-off state or the screen-saver state when the transition state ends.

[0194] In the case where the aforementioned first instruction instructs the display screen to enter the screen-off state, the control module can control the display screen to enter the screen-off state at the end of the transition state; in the case where the aforementioned first instruction instructs the display screen to enter the screen saver state, the control module can control the display screen to enter the screen saver state at the end of the transition state.

[0195] The control module controls the display screen to enter the bright screen state, which can be manifested as controlling the display screen to remain in the bright screen state and controlling the electronic device to exit the transition state. Controlling the electronic device to exit the transition state corresponds to the aforementioned control of the electronic device to enter the transition state, for example, it can include controlling the brightness of the display screen to increase to the brightness before entering the transition state, or controlling the speaker to stop emitting a prompt sound, or controlling the display screen to stop displaying text information for prompts, or controlling the indicator light to stop flashing, etc.

[0196] In some implementations, the control module may control the screen state of the display screen according to whether an input signal from the user is received.

[0197] For example, when the electronic device is in a transition state, if the detection module receives an input signal from the user, the control module can control the electronic device to exit the transition state and control the display screen to enter a bright screen state. If the detection module does not receive an input signal from the user from the beginning of the transition state to the end of the transition state, the control module can control the display screen to enter a screen-off state or a screen-saver state corresponding to the aforementioned first instruction.

[0198] In some implementations, the control module controls the screen state of the display screen according to the perception result of the user (for example, whether there is a user within the second preset range).

[0199] For example, when the electronic device is in the transition state, if the detection module detects that there is a user within the second range, the control module can control the electronic device to exit the transition state and control the display screen to enter the screen-on state. If the detection module does not detect that there is a user within the second range from the beginning of entering the transition state to the end of the transition state, the control module can control the display screen to enter the screen-off state or the screen-saver state.

[0200] In some implementations, the control module may control the screen state of the display screen in combination with the result of whether an input signal from the user is received and whether there is a user within the second preset range.

[0201] For example, if the detection module does not detect the presence of a user within the second range and does not receive an input signal from the user from the time the transition state is entered until the transition state ends, the control module can control the display screen to enter the screen-off state or the screen-saver state. In the transition state, if the detection module detects the presence of a user within the second range or receives an input signal from the user, the control module can control the electronic device to exit the transition state and control the display screen to enter the screen-on state. Alternatively, the control module can control the electronic device to exit the transition state and control the display screen to enter the screen-on state only when the detection module detects the presence of a user within the second range and receives an input signal from the user.

[0202] It should be understood that the above implementations are only examples given in this application and cannot be a limitation of this application. For example, the control module can also control the display screen to enter a bright screen state when the detection module receives a user's voice signal, or enter a bright screen state when the detection module detects a user's approaching action. The various implementations can also be combined with each other.

[0203] As an example, Figure 6 A schematic diagram of the screen state change of a display screen provided in an embodiment of the present application is given.

[0204] See also Figure 6 When the display screen is about to enter the screen-off state, the electronic device can enter the transition state. In the transition state, the display screen can display text information indicating that the screen is about to enter the screen-off state and display a countdown. Before the end of the transition state, if the electronic device does not receive an input signal from the user, the display screen can enter the screen-off state; before the end of the transition state, if the electronic device detects that there is a user within the second preset range or receives an input signal from the user, the display screen can enter the screen-on state.

[0205] See also Figure 6 When the display screen is about to enter the screen saver state, the electronic device can enter the transition state. In the transition state, the display screen can display text information indicating that the screen saver state is about to be entered, and display a countdown. Before the end of the transition state, if the electronic device does not receive an input signal from the user, the display screen can enter the screen saver state, and the display screen can display the current time or weather conditions in the screen saver state; before the end of the transition state, if the electronic device detects that there is a user within the second preset range or receives an input signal from the user, the display screen can enter the screen light state.

[0206] It should be understood that Figure 6 This is only an example and should not be construed as limiting the present application.

[0207] Based on the above technical solution, when the display screen is about to enter the screen-off state or the screen-saver state from the screen-on state, the electronic device can first enter the transition state to prompt the user that the display screen is about to enter the screen-off state or the screen-saver state. In this way, the user can get a prompt that the screen state of the display screen is about to change. In the transition state, the control module configured by the electronic device can control the screen state of the display screen based on the user's operation or the user's position. In this way, if the user needs to keep the display screen on, the electronic device can keep the screen on by inputting an operation or approaching the electronic device; if the user is not near the display screen, or the user has no need to turn on the screen, the display screen of the electronic device can enter the screen-off state or the screen-saver state. Thereby, intelligent control of the screen state of the display screen can be achieved, and the user experience can also be improved.

[0208] The above content gives the method of controlling the screen status of the display screen. Figures 7 to 9 , further illustrating the method provided in the embodiments of the present application.

[0209] See also Figure 7 , Figure 7 It is a schematic flow chart of the screen status control method provided in an embodiment of the present application. Figure 7 It specifically shows the process of the control module determining whether to enter a transition state in combination with the detection results of the intelligent perception function.

[0210] Figure 7 The method shown may include steps 701 to 705. Figure 7 Each step in is described below.

[0211] In step 701, the control module determines that the display screen is in a bright screen state.

[0212] In step 702, the control module detects that the user is away through the intelligent sensing function.

[0213] In step 703 , the control module determines whether there is a user input signal, and if so, executes step 704 ; if not, executes step 705 .

[0214] In step 704, the control module controls the display screen to remain in a bright state.

[0215] In step 705, the control module controls the electronic device to enter a transition state.

[0216] exist Figure 7In the method shown, after the user is detected to be away through the intelligent sensing function, the control module further determines whether there is a user input signal. If there is a user input signal, the control module can control the display screen to remain in a bright state. If there is no user input signal, the control module can control the electronic device to enter a transition state.

[0217] Based on the above technical content, the control module can further combine the user's input signal based on the detection results of the intelligent perception function to decide whether to control the electronic device to enter a transition state, thereby avoiding misjudgment caused by errors in the detection of the intelligent perception function, and can more accurately control the state of the electronic device and improve the user experience.

[0218] See also Figure 8 , Figure 8 This is another schematic flowchart of the screen status control method provided in an embodiment of the present application. Figure 8 It specifically shows the process of controlling the screen state of the display screen in combination with the intelligent sensing function when the control module receives an instruction to enter the screen off state or the screen saver state.

[0219] Figure 8 The method shown may include steps 801 to 822. Figure 8 Each step in is described below.

[0220] In step 801, the control module determines that the display screen is in a bright screen state.

[0221] In step 802, the control module determines whether to set the screen to never turn off. Exemplarily, the control module can obtain a configuration file configured in the memory of the electronic device, and the configuration file can include information indicating whether the user sets the screen to never turn off. According to the configuration file, it can be determined whether the user sets the screen to never turn off.

[0222] If yes, execute step 803; if no, execute step 804, or step 811, or step 818. It should be understood that which step the control module executes can be determined based on the received instruction.

[0223] In step 803, the control module controls the display screen to remain in a bright state.

[0224] In step 804, the control module may receive an instruction to control the display screen to enter a screen saver state, and the instruction may be, for example, the aforementioned first instruction. Exemplarily, the electronic device may be configured with a detection module for detecting an input signal from a user, and when the input signal from the user is not detected to exceed a first preset threshold, the detection module may send an instruction to control the display screen to enter a screen saver state to the control module.

[0225] In step 805, the control module determines whether the smart perception function is turned on. The smart perception function of the electronic device can be turned on or off according to the user's configuration. The control module can obtain a configuration file stored in the electronic device memory, and the configuration file may include information indicating whether the smart perception function is turned on. According to the configuration file, it can be determined whether the smart perception function is turned on.

[0226] If yes, go to step 806; if no, go to step 807.

[0227] In step 806 , the control module determines whether there is anyone within the preset range.

[0228] When the smart sensing function is turned on, the control module can obtain the sensing result of the smart sensing module and determine whether there is a person within a preset range. The preset range can be, for example, the first preset range or the second preset range, which can be determined based on the position of the display screen.

[0229] If yes, execute step 810 ; if no, execute step 807 .

[0230] In step 807, the control module controls the electronic device to enter a transition state. For example, the control module can control the display screen to display a prompt pop-up window, in which a prompt text message is displayed, prompting that the screen is about to enter the off state, and a countdown can also be displayed in the pop-up window. The control module can also control the display screen to reduce the brightness at the same time, for example, reducing the brightness of the display screen to 50% of the brightness when the screen is on.

[0231] In step 808, the control module determines whether a person is detected or whether an input signal from the user is received. When the electronic device is in a transitional state, the control module can obtain the detection result of the detection module to determine whether an input signal from the user is received. When the smart sensing function is turned on, the control module can also determine whether there is a person within the preset range based on the sensing result of the smart sensing module.

[0232] When the smart sensing function is turned on, if a user input signal is received or a person is detected within a preset range, step 810 is executed; if neither a user input signal is received nor a person is detected within the preset range, step 809 is executed.

[0233] When the smart sensing function is turned off, if a user input signal is received, step 810 is executed; if no user input signal is received, step 809 is executed.

[0234] In step 809, when the transition state duration ends, the control module controls the display screen to enter the screen saver state.

[0235] In step 810, the control module controls the display screen to remain in a bright state.

[0236] In step 811, the control module may receive an instruction to enter sleep mode, which may be, for example, the first instruction mentioned above.

[0237] In step 812, the control module determines whether the smart sensing function is turned on. If so, step 813 is executed; if not, step 814 is executed. Step 812 can be the same as the aforementioned step 805.

[0238] In step 813, the control module determines whether there is a person within the preset range. If so, step 817 is executed; if not, step 814 is executed. Step 813 can be the same as the aforementioned step 806.

[0239] In step 814, the control module controls the electronic device to enter a transition state. Step 814 may be the same as the aforementioned step 807.

[0240] In step 815 , the control module determines whether a person is detected or whether an input signal from a user is received.

[0241] When the smart sensing function is turned on, if a user input signal is received or a person is detected within the preset range, step 817 is executed; if neither a user input signal is received nor a person is detected within the preset range, step 816 is executed.

[0242] When the smart sensing function is turned off, if a user input signal is received, step 817 is executed; if no user input signal is received, step 816 is executed.

[0243] In step 816 , when the transition state duration ends, the control module controls the display screen to enter the screen saver state.

[0244] In step 817, the control module controls the display screen to enter a bright screen state.

[0245] In step 818, the control module receives an instruction to control the display screen to enter an off-screen state, and the instruction is issued by the intelligent perception module.

[0246] In step 819, the control module controls the electronic device to enter a transition state. For example, the control module may control the display screen to display a prompt pop-up window, in which a prompt text message is displayed, prompting that the screen is about to enter the off state, and a countdown may also be displayed in the pop-up window. The control module may also control the display screen to reduce the brightness at the same time, for example, reducing the brightness of the display screen to 50% of the brightness in the on screen state. Step 819 may be the same as the aforementioned step 807.

[0247] In step 820, the control module determines whether a person is detected or whether a user input signal is received. If a user input signal is received or a person is detected within a preset range, step 822 is executed; if neither a user input signal is received nor a person is detected within the preset range, step 821 is executed.

[0248] In step 821, when the transition state duration ends, the control module controls the display screen to enter the off state.

[0249] In step 822, the control module controls the display screen to enter a bright screen state.

[0250] Based on the above technical content, when the display screen is about to enter the screen-off state or the screen saver state, the control module can determine whether to enter the transition state in combination with the detection results of the intelligent perception function. By controlling the electronic device to enter the transition state, a reminder can be sent to the user that the display screen is about to enter the screen-off state, and based on the user's operation or the detection of the user's position, it can be determined whether to enter the screen-off state or the screen saver state. Before the display screen is turned off, the user can be reminded that the display screen is about to enter the screen-off state. If the user does not need to keep the display screen on, the display screen can also automatically enter the screen-off state. In this way, the user experience is improved.

[0251] In an embodiment of the present application, the screen-on state of the display screen may include a state in which the display screen presents an unlocking interface. When the display screen is in the screen-off state or the screen protection state, if it is detected that a user enters a preset range in front of the display screen, or an input signal from the user is received, the display screen may enter a state in which the unlocking interface is displayed from the screen-off state, and the brightness of the display screen in this state may be lower than the brightness when the display screen displays a normal working interface, for example, 50%, 70%, 30%, or other values ​​less than 100% of the brightness when the normal working interface is displayed.

[0252] See also Fig. 9 , Fig. 9 It is a schematic flow chart of the screen status control method provided in an embodiment of the present application. Fig. 9 It specifically shows the process of the control module combining the detection results of the intelligent perception function to determine whether to control the display screen to display the unlocking interface. Fig. 9 The method shown can be Figure 7 or Figure 8 The method shown was implemented before.

[0253] Fig. 9 The method shown may include steps 901 to 907. Fig. 9 Each step in is described below.

[0254] In step 901, the control module determines whether the display screen is in an off state.

[0255] As described in the aforementioned step 310, the control module may obtain the state parameters of the display screen. When the display screen of the electronic device is in the off state, the control module may determine that the display screen is in the off state based on the state parameters.

[0256] In step 902, the control module determines that the user is approaching based on the detection result of the smart sensing function. For example, when the smart sensing function detects that the user is approaching, or there is a user within a preset range, the control module can determine that the user is approaching. The preset range can be, for example, the first preset range or the second preset range mentioned above.

[0257] In step 903, the control module controls the display screen to display an unlocking interface.

[0258] When it is determined that the user is approaching, the control module can control the display screen to change from an off state to a state presenting an unlocking interface.

[0259] In step 904, the control module determines that the user is away based on the detection result of the smart sensing function. For example, when the smart sensing function detects that the user has left, or there is no user within the preset range, the control module can determine that the user is away. The preset range can be, for example, the first preset range or the second preset range.

[0260] In step 905 , the control module determines whether there is a user input signal. If yes, step 906 is executed; if not, step 907 is executed.

[0261] In step 906 , the control module controls the display screen to maintain the state of presenting the unlocking interface.

[0262] In step 907, the control module controls the display screen to enter a screen-off state.

[0263] Based on the above technical content, when the display screen of the electronic device is awakened, it can enter the state of displaying the unlocking interface. When the display screen is in this state, the control module can combine the detection results of the intelligent perception function and the detection results of the user input signal to determine whether to control the display screen to maintain the unlocking interface or return to the off-screen state. In this way, if the display screen is awakened by mistake, the display screen will not immediately enter the state of displaying normal working content, which can protect the user's privacy. When the user does not need to keep the screen on, the display screen can return to the off-screen state, thereby reducing the power consumption caused by the lighting of the display screen and saving energy.

[0264] See also Fig.10 , Fig.10 This is another schematic flowchart of the screen status control method provided in an embodiment of the present application. Fig.10The control process of the control module on the display screen state during the unlocking process is specifically shown.

[0265] Fig.10 The method shown may include steps 1001 to 1010 .

[0266] In step 1001, the control module determines that the display screen is in an off state.

[0267] In step 1002, the control module determines that a person is detected or an input signal from a user is received. For example, the control module may obtain the detection result of the detection module, and based on the detection result, may determine that a user exists within a preset range, or determine that an input signal from a user is received. The preset range may be, for example, the aforementioned first preset range or the second preset range.

[0268] In step 1003, the control module controls the display screen to display an unlocking interface.

[0269] When the detection module detects a person or receives an input signal from the user, the control module can control the display screen to display an unlocking interface. The unlocking interface can be, for example, an interface that displays text information such as "need to unlock" or an interface that displays text information such as "please press the enter key" to instruct the user to perform an operation. The specific form of the unlocking interface can be predefined or user-configured, and this application does not limit this.

[0270] In step 1004, the control module determines whether the device is locked. If so, step 1005 is executed; if not, step 1006 is executed.

[0271] Electronic devices may have a locking function, and users may lock their electronic devices by setting a face lock, fingerprint lock, and / or password lock.

[0272] The information indicating whether the electronic device is locked can be stored in the memory of the electronic device in the form of a configuration file, for example. The control module can obtain the configuration file from the memory to determine whether the electronic device is locked. If locked, the control module can also determine the locking method.

[0273] In step 1005, the control module controls the display screen to display unlocking prompt information.

[0274] As an example, if the electronic device is set to a facial unlocking mode, the control module can control the display screen to display information indicating that the face is being recognized, or to display information indicating that facial recognition is required, for example, text information or a pattern can be displayed.

[0275] As another example, if the electronic device is set with a password unlocking mode, the control module may control the display screen to display a prompt message requiring a password to be entered, for example, an input box for entering a password may be displayed.

[0276] This application does not limit the specific implementation method of displaying the unlock prompt information on the display screen.

[0277] In step 1006 , the control module determines whether the unlocking is successful.

[0278] When the display screen displays the unlock prompt information, the control module can receive the unlock information from the user through the detection module, such as receiving the user's fingerprint information, receiving the user's face information, or receiving the password entered by the user. The control module can compare the received unlock information with the locally stored unlock information. If the comparison results are consistent, it can be determined that the unlocking is successful. If the comparison results are inconsistent, it can be determined that the unlocking fails.

[0279] This application does not limit the specific implementation method of determining whether the unlocking is successful.

[0280] If the unlocking is successful, execute step 1007; if the unlocking fails, execute step 1009.

[0281] In step 1007, the control module determines whether the user presses the Enter key at the designated time.

[0282] The specified time is a continuous time length, and the value of the time length can be predefined or user-configured, for example, 5 seconds, 10 seconds, 15 seconds, etc., and this application does not limit it. The user presses the Enter key at the specified time, which means that the user presses the Enter key within the specified time length from the moment the unlocking is successful.

[0283] If the detection module receives the operation of the user pressing the Enter key within the specified time, the control module can determine that the user pressed the Enter key at the specified time, and then execute step 1008; if the detection module does not receive the operation of the user pressing the Enter key within the specified time, the control module can determine that the user did not press the Enter key at the specified time, and then execute step 1010.

[0284] It should be understood that the specific keys in the embodiments of the present application are only examples, and the present application is not limited to the Enter key. The Enter key can also be replaced by other keys, and the key action can also be replaced by other operation actions, such as touching the display screen. Accordingly, the display screen can display information to prompt the user to perform a key or touch operation.

[0285] In step 1008, the unlocking is successful, and the control module controls the display screen to display a normal working interface.

[0286] In step 1009 , the control module determines whether a person is detected or whether an input signal from a user is received.

[0287] After the unlocking fails, the control module can obtain the detection result of the detection module to determine whether there is a user within the preset range or whether an input signal from the user is received. If the user's input signal is received or the user is detected to be within the preset range, the aforementioned step 1005 is executed; if the user's input signal is not received and the user is not detected to be within the preset range, step 1010 is executed.

[0288] In step 1010, the electronic device enters a transition state. For example, the control module can control the display screen to display text information, and the text information indicates that the display screen is about to enter a screen-off state.

[0289] In the transition state, the control module can control the display screen to maintain the unlocked interface or control the display screen to enter the off-screen state based on the detection results of the detection module on the user operation and / or user position. The specific implementation method can be found in the aforementioned step 430 and will not be repeated here.

[0290] As an example, Fig.11 A schematic diagram is given of the state where the display screen changes from the off state to the normal working interface. Fig.11 As shown, when there is someone within the preset range in front of the display screen, or there is a user input signal, the display screen can change from the off-screen state to the state of displaying the unlocking interface. The unlocking interface can be an interface that prompts the user that the device is locked and prompts the user to enter a password. In the unlocking interface, if the user enters the correct content, the display screen can display information to prompt the user to press the Enter key. If the user presses the Enter key within the specified time, the display screen can display a normal working interface. When the display screen displays the unlocking interface, if the duration of the absence of the user's input signal exceeds the preset threshold, the electronic device can enter a transition state, and the display screen can display a countdown based on the unlocking interface. If there is no user input signal until the end of the countdown, the display screen can return to the off-screen state.

[0291] Based on the above technical content, when the display screen of an electronic device changes from an off-screen state to a bright-screen state, the display screen can present an unlocking interface, and can turn off the screen or display a normal working interface based on the user's operation. When the display screen is about to turn off, the electronic device can enter a transition state to indicate to the user that the display screen is about to enter the off-screen state, so that the user can be reminded. If the display screen turns on due to a misjudgment, the display screen can also return to the off-screen state. In this way, intelligent control of the display screen state can be achieved, and the user experience can also be improved.

[0292] It should be understood that the various embodiments provided in this application can be implemented separately or in combination, and this application does not limit this. For example, while executing the aforementioned steps 1003 to 1007, the aforementioned steps 904 to 907 can be executed.

[0293] The method provided in the present application can also be applied to electronic devices that do not have a smart sensing function. For example, for electronic devices that do not have a smart sensing function, when the display screen is in the screen-on state, if no input signal from the user is received that exceeds a preset threshold, the electronic device can enter a transition state. In the transition state, it can detect whether the user's input signal is received, and control the display screen to enter the screen-off state, screen protection state, or screen-on state.

[0294] The above content describes the method provided by the embodiment of the present application. Fig.12 and Fig.13 , the device provided in the embodiment of the present application is described.

[0295] Fig.12 is a schematic block diagram of an electronic device provided in an embodiment of the present application. Fig.12 As shown, the electronic device 1200 may include a processing unit 1210 and a display unit 1220 .

[0296] The processing unit 1210 is used to control the electronic device 1200 to enter a transition state when the display unit 1220 is in a screen-on state, so as to indicate that the display unit 1220 is about to enter a screen-off state or a screen-saver state; the processing unit 1210 is also used to control the display unit 1220 to enter one of the following states: a screen-off state, a screen-saver state, or a screen-on state according to user operations and / or user perception results when the electronic device 1200 is in a transition state. The display unit 1220 is used to enter one of the following states: a screen-off state, a screen-saver state, or a screen-on state in response to the control of the processing unit 1210.

[0297] Optionally, the above-mentioned screen-on state includes a state in which the display unit 1220 presents an unlocking interface, or a state in which a normal working interface is presented.

[0298] Optionally, when the display unit 1220 is in the screen-on state, the processing unit 1210 is specifically used to control the brightness value of the display unit 1220 to decrease from a first value to a second value, wherein the first value is greater than the second value; or, control the display unit 1220 to display text information, wherein the text information is used to indicate that the screen is about to enter an off state or a screen saver state; or, the electronic device 1200 may include a playback unit for emitting a prompt sound, and the processing unit 1210 may be used to control the playback unit to emit a prompt sound, wherein the prompt sound is used to indicate that the screen is about to enter an off state or a screen saver state.

[0299] In one implementation, when the electronic device 1200 is in a transition state, the processing unit 1210 is specifically used to control the display unit 1220 to enter a screen-off state or a screen-saver state when no input signal is received from the user; or to control the display unit 1220 to enter a screen-on state when an input signal is received from the user.

[0300] In one implementation, when the electronic device 1200 is in a transition state, the processing unit 1210 is specifically used to control the display unit 1220 to enter a screen-off state or a screen-saver state when it senses that there is no user within a preset range; or to control the display unit 1220 to enter a screen-on state when it senses that there is a user within a preset range; wherein the preset range is determined based on the position of the display unit 1220.

[0301] In one implementation, when the electronic device 1200 is in a transition state, the processing unit 1210 is specifically used to control the display unit 1220 to enter a screen-off state or a screen-saver state when no input signal is received from the user and when it is sensed that there is no user within a preset range; or, when an input signal is received from the user and / or when it is sensed that there is a user within a preset range, control the display unit 1220 to enter a screen-on state; wherein the preset range is determined based on the position of the display unit 1220.

[0302] Optionally, the processing unit 1210 includes a detection module and a control module, wherein the detection module is used to detect user operation and / or user position, and the control module is used to control the display unit 1220 .

[0303] When the display unit 1220 is in the screen-on state, the detection module is further used to send a first instruction to the control module when the duration of the user input signal not being detected exceeds a preset threshold and / or when the user is detected to have left a preset range, the first instruction is used to notify the control module to control the display unit 1220 to enter a screen protection state or a screen-off state, and the preset range is determined based on the position of the display screen. The control module is also used to control the electronic device 1200 to enter a transition state when receiving the first instruction.

[0304] It should be understood that the division of modules or units in the embodiments of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation. In addition, each functional module or unit in each embodiment of the present application may be configured separately, or two or more modules may be integrated into one module. The above-mentioned units or modules may be implemented in the form of hardware or in the form of software functional modules.

[0305] See also Fig.13 , Fig.13 is another schematic block diagram of an electronic device provided in an embodiment of the present application. Fig.13 As shown, the electronic device 1300 may include at least one processor 1310 and at least one display screen 1320. The processor 1310 may control the display screen 1320 to implement the functions performed by the control module in each method provided in the embodiments of the present application.

[0306] The electronic device 1300 may also include at least one memory 1330 for storing program instructions and / or data. The memory 1330 is coupled to the processor 1310. The coupling in the embodiment of the present application is an indirect coupling or communication connection between devices, units or modules, which may be electrical, mechanical or other forms, and is used for information exchange between devices, units or modules. The processor 1310 may operate in coordination with the memory 1330. The processor 1310 may execute program instructions stored in the memory 1330. At least one of the at least one memory 1330 may be included in the processor 1310.

[0307] The electronic device 1300 may also include at least one input device 1340 for receiving an input signal from a user, so that the electronic device 1300 can receive an input signal from the user. Exemplarily, the input device may include a button, a mouse controller, etc. The electronic device 1300 may also include an intelligent sensing module 1350 for sensing the position of the user. Exemplarily, the intelligent sensing module 1350 may include a distance sensor, an ultrasonic sensor, a ToF sensor, etc.

[0308] The processor 1310 may use the input device 1340 to receive an input signal from the user, and / or use the intelligent sensing module 1350 to sense the user's position, and to implement Figures 4 to 11 The method executed by the control module in the corresponding embodiment.

[0309] It should be noted that the above method embodiments can be applied to a processor or implemented by a processor. The processor may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method embodiment can be completed by an integrated logic circuit of hardware in the processor or an instruction in the form of software. The above processor may be a general-purpose processor, DSP, ASIC, FPGA or other programmable logic device, discrete gate or transistor logic device, discrete hardware component. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application can be directly embodied as a hardware decoding processor to be executed, or a combination of hardware and software modules in the decoding processor to be executed. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in a memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.

[0310] The memory in the embodiment of the present application can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memory. Wherein, the non-volatile memory can be a ROM, a PROM, an EPROM, an EEPROM or a flash memory. The volatile memory can be a RAM, which is used as an external cache. By way of exemplary but not limiting explanation, many forms of RAM are available, such as static random access memory (static RAM, SRAM), dynamic random access memory (dynamicRAM, DRAM), synchronous dynamic random access memory (synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (double data rate SDRAM, DDR SDRAM), enhanced synchronous dynamic random access memory (enhanced SDRAM, ESDRAM), synchronous connection dynamic random access memory (synchlink DRAM, SLDRAM) and direct memory bus random access memory (direct rambus RAM, DR RAM). It should be noted that the memory of the system and method described herein is intended to include but is not limited to these and any other suitable types of memory.

[0311] The present application provides a chip system, which includes at least one processor for supporting the functions involved in the control module in the above method embodiment, for example, controlling the display screen to enter an off state, a screen protection state, or a bright screen state.

[0312] In one possible design, the chip system also includes a memory, which is used to store program instructions and data, and the memory is located inside or outside the processor.

[0313] The chip system may be composed of the chip, or may include the chip and other discrete devices.

[0314] The present application also provides a computer program product, the computer program product comprising: a computer program (also referred to as code, or instruction), when the computer program is executed, Figures 4 to 11 The method in the illustrated embodiment is performed.

[0315] The present application also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program (also referred to as code or instruction). When the computer program is executed, Figures 4 to 11 The method in the illustrated embodiment is performed.

[0316] The method provided in the above embodiment can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product may include one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network or other programmable device. The computer instructions may 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 may be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital user (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic disk), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid state hard disk (SSD)), etc.

[0317] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0318] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0319] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0320] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0321] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0322] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory, a random access memory, a magnetic disk, or an optical disk.

[0323] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A screen state control method, characterized in that: Applied to an electronic device equipped with a display screen, the display screen is in a bright screen state, the method includes: Entering a transition state to indicate that the display screen is about to enter a screen-off state or a screen-saver state; In the transition state, the display screen is controlled to enter one of the following states according to the user operation and / or the perception result of the user: screen-off state, screen-saver state or screen-on state.

2. The method according to claim 1, characterized in that The entering the transition state comprises: The brightness value of the display screen decreases from a first value to a second value, and the first value is greater than the second value; The display screen displays text information, where the text information is used to indicate that the screen is about to enter a screen-off state or a screen-saver state; or The electronic device emits a prompt sound, and the prompt sound is used to prompt that the screen is about to enter a screen-off state or a screen-saver state.

3. The method according to claim 1 or 2, characterized in that The controlling the display screen to enter one of the following states according to the user operation and / or the perception result of the user: a screen-off state, a screen-saver state or a screen-on state includes: In the case of not receiving an input signal from the user, controlling the display screen to enter a screen-off state or a screen-saver state; or When an input signal is received from a user, the display screen is controlled to enter a bright screen state.

4. The method according to claim 1 or 2, characterized in that: The controlling the display screen to enter one of the following states according to the user operation and / or the perception result of the user: a screen-off state, a screen-saver state or a screen-on state includes: When it is sensed that there is no user within a preset range, controlling the display screen to enter a screen-off state or a screen-saver state; or When a user is detected within the preset range, the display screen is controlled to enter a bright screen state; Wherein, the preset range is determined based on the position of the display screen.

5. The method according to claim 1 or 2, characterized in that: The controlling the display screen to enter one of the following states according to the user operation and / or the perception result of the user: a screen-off state, a screen-saver state or a screen-on state includes: When no input signal is received from the user and it is sensed that there is no user within a preset range, controlling the display screen to enter a screen-off state or a screen-saver state; or When receiving an input signal from a user and / or sensing that a user exists within the preset range, controlling the display screen to enter a bright screen state; Wherein, the preset range is determined based on the position of the display screen.

6. The method according to any one of claims 1 to 5, characterized in that The electronic device includes a detection module for detecting user operation and / or user position, and a control module for controlling the display screen. Before entering the transition state, the method further includes: When the detection module detects that the duration of the user input signal exceeds a preset threshold, and / or detects that the user leaves a preset range, the detection module sends a first instruction to the control module, and the first instruction is used to notify the control module to control the display screen to enter a screen protection state or a screen off state, and the preset range is determined based on the position of the display screen.

7. The method according to any one of claims 1 to 6, characterized in that The screen-on state includes a state in which the display screen presents an unlocking interface, or a state in which the display screen presents a normal working interface.

8. An electronic device, characterized in that: Comprising means for performing the method as claimed in any one of claims 1 to 7.

9. An electronic device, characterized in that: The device comprises a processor, wherein the processor is coupled to a memory, wherein the memory is used to store instructions, and when the instructions are executed by the processor, the device performs the method according to any one of claims 1 to 7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed, the method according to any one of claims 1 to 7 is performed.

11. A computer program product, characterized in that The invention comprises a computer program which, when being executed, causes the method according to any one of claims 1 to 7 to be performed.

Citation Information

Cited By

  • Security enhancement for computing device state change

    US20250139238A1