CN114415816A - Information screen display method and electronic equipment - Google Patents

Information screen display method and electronic equipment Download PDF

Info

Publication number
CN114415816A
CN114415816A CN202111453302.0A CN202111453302A CN114415816A CN 114415816 A CN114415816 A CN 114415816A CN 202111453302 A CN202111453302 A CN 202111453302A CN 114415816 A CN114415816 A CN 114415816A
Authority
CN
China
Prior art keywords
screen
electronic equipment
electronic device
information
user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111453302.0A
Other languages
Chinese (zh)
Inventor
高前
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202111453302.0A priority Critical patent/CN114415816A/en
Publication of CN114415816A publication Critical patent/CN114415816A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • G06F1/3231Monitoring the presence, absence or movement of users
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/325Power saving in peripheral device
    • G06F1/3265Power saving in display device

Abstract

The application provides a message screen display method and electronic equipment, relates to the technical field of terminals, and can solve the problem that the power consumption of the electronic equipment is high when the electronic equipment is in standby. The method comprises the following steps: the electronic equipment receives a screen-off event; the screen-off event is used for starting a screen-off display function; the electronic equipment responds to the screen-off event and acquires target parameters; the target parameters at least comprise the ambient light brightness and the direction of a display screen of the electronic equipment; when the target parameter meets a preset condition, starting a camera by the electronic equipment; the preset conditions comprise that the ambient light brightness is in a first interval, and the direction of a display screen of the electronic equipment is in a second interval; when the electronic equipment detects a user image through the camera, displaying a screen displaying interface; and the screen turning interface is used for displaying screen turning information.

Description

Information screen display method and electronic equipment
Technical Field
The application relates to the technical field of terminals, in particular to an information screen display method and electronic equipment.
Background
The information on display (AOD) function may also be referred to as an off display or an off display function. The AOD function is a characteristic of screen display that depends on the electronic device, and when a user triggers an operation of screen display (for example, the user presses a power key), the electronic device can display screen information (such as some patterns, time, messages, and the like) on a screen that has been turned off with lower power consumption.
However, the current AOD function is normally on. When the AOD function is turned on, a sensor hub (sensor hub) of the electronic device continues to operate, which results in higher power consumption when the electronic device is in a standby state.
Disclosure of Invention
The embodiment of the application provides a message screen display method and electronic equipment, which are used for solving the problem of high power consumption of the electronic equipment during standby.
In order to achieve the above purpose, the embodiment of the present application adopts the following technical solutions:
in a first aspect, a method for displaying a message screen is provided, which includes: the electronic equipment receives a screen-off event; the screen-off event is used for starting a screen-off display function; the electronic equipment responds to the screen-off event and acquires target parameters; the target parameters at least comprise the ambient light brightness and the direction of a display screen of the electronic equipment; when the target parameter meets a preset condition, starting a camera by the electronic equipment; the preset conditions comprise that the ambient light brightness is in a first interval, and the direction of a display screen of the electronic equipment is in a second interval; when the electronic equipment detects a user image through the camera, displaying a screen displaying interface; and the screen turning interface is used for displaying screen turning information.
Based on the first aspect, when the electronic device receives a screen turn-off event, the electronic device responds to the screen turn-off event and acquires a target parameter; when the target parameter meets the preset condition, namely the ambient light brightness is in the first interval, the direction of the display screen of the electronic equipment is in the second interval, the electronic equipment starts the camera and detects whether a user image exists through the camera, when the electronic equipment detects the user image, the electronic equipment displays the screen-off interface and displays screen-off information on the screen-off interface, and therefore the time for displaying the screen-off interface can be effectively shortened, and the power consumption of the equipment is further reduced.
In one possible design of the first aspect, before the electronic device starts the camera, the method further includes: the electronic device determines that the electronic device is in a stationary state.
In the design mode, under the condition that the target parameters meet the preset conditions, if the electronic equipment is in a static state, the electronic equipment can start the camera, the actual screen display can be further reduced, and the power consumption of the equipment is further reduced.
In one possible design of the first aspect, the target parameter further includes a distance between a display screen of the electronic device and a face of the user; the preset condition further comprises that the distance between the display screen of the electronic equipment and the face of the user is larger than a preset value.
In this design, the target parameter further includes a distance between a display screen of the electronic device and the face of the user; the preset condition further comprises that the distance between the display screen of the electronic equipment and the face of the user is larger than a preset value, therefore, when the target parameter meets the preset condition, the electronic equipment starts the camera, the reality of screen display can be further reduced, and the power consumption of the equipment is further reduced.
In one possible design of the first aspect, the target parameter further includes a current time; the preset condition further includes that the current time is within a preset time period.
In this design, since the target parameter also includes the current time; the preset conditions further include that the current time is within a preset time period, therefore, when the target parameters meet the preset conditions, the electronic equipment starts the camera, the actual screen display can be further reduced, and the power consumption of the equipment is further reduced.
In one possible design of the first aspect, the electronic device turns off the message screen display function when the target parameter does not satisfy the preset condition.
In the design mode, when the target parameter does not meet the preset condition, the electronic equipment closes the screen-off display function, and the power consumption of the equipment is reduced.
In one possible design of the first aspect, the method further includes: when the electronic equipment is changed from a static state to a motion state, the electronic equipment acquires a target parameter; and when the target parameter does not meet the preset condition, the electronic equipment closes the camera.
In the design mode, when the electronic equipment is changed from a static state to a motion state, the electronic equipment acquires target parameters; that is to say, the electronic device can obtain the target parameter at variable times, and when the target parameter does not satisfy the preset condition, the electronic device closes the camera, thereby being beneficial to reducing the power consumption of the device.
In one possible design of the first aspect, the method further includes: and when the target parameters acquired by the electronic equipment in the period duration do not meet the preset conditions, the electronic equipment closes the camera.
In the design mode, when the target parameters acquired by the electronic equipment within the period duration do not meet the preset conditions, the electronic equipment closes the camera; that is to say, the electronic device can periodically acquire the target parameter, and when the target parameter does not satisfy the preset condition, the electronic device closes the camera, thereby being beneficial to reducing the power consumption of the device.
In a possible design of the first aspect, the period duration is a set period duration for a first time, and the method further includes: when the electronic equipment obtains the target parameters which do not meet the preset conditions within the period duration of the second time, the electronic equipment closes the camera; or when the electronic equipment obtains the target parameters which do not meet the preset conditions within the period duration of the set continuous N times, the electronic equipment closes the camera; wherein N is more than 1.
In the design mode, when the electronic equipment obtains the target parameter which does not meet the preset condition within the period duration of the second time, the electronic equipment closes the camera; or when the electronic equipment obtains the target parameters which do not meet the preset conditions within the period duration of the set continuous N times, the electronic equipment closes the camera; that is to say, when the electronic device periodically acquires the target parameters and the target parameters acquired continuously for multiple times do not satisfy the preset conditions, the electronic device closes the camera, which is beneficial to improving the user experience.
In one possible design of the first aspect, after the electronic device detects the user image through the camera, the method further includes: the electronic equipment displays prompt information; the prompt message is used for prompting whether to display information of the screen for the user; the electronic equipment responds to the confirmation operation of the user and displays a screen displaying interface; the screen turning interface comprises screen turning information.
In the design mode, the electronic equipment displays prompt information after detecting the user image, and the prompt information is used for prompting the user whether to display information of a screen; the electronic equipment responds to the confirmation operation of the user, and displays the screen information in the screen information interface, so that the user experience is improved.
In one possible design of the first aspect, the range of the first interval comprises [200cd/m [2,600cd/m2](ii) a The second interval includes [30 DEG, 180 DEG ]]。
In this design, the range of the first interval includes 200cd/m2,600cd/m2](ii) a The second interval includes [30 DEG, 180 DEG ]]Therefore, when the ambient light brightness is in the first interval and the direction of the display screen of the electronic equipment is in the second interval, the electronic equipment starts the camera, and the accuracy of starting the camera by the electronic equipment is improved.
In a second aspect, an electronic device is provided, which has the function of implementing the first aspect. The function can be realized by hardware, and can also be realized by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the functions described above.
In a third aspect, an electronic device is provided that includes a display screen, one or more cameras, a memory, and one or more processors; the display screen is used for displaying information of the screen; the camera is used for detecting a user image; the memory has stored therein computer program code comprising computer instructions that, when executed by the processor, cause the electronic device to perform the steps of: the electronic equipment receives a screen-off event; the screen-off event is used for starting a screen-off display function; the electronic equipment responds to the screen-off event and acquires target parameters; the target parameters at least comprise the ambient light brightness and the direction of a display screen of the electronic equipment; when the target parameter meets a preset condition, starting a camera by the electronic equipment; the preset conditions comprise that the ambient light brightness is in a first interval, and the direction of a display screen of the electronic equipment is in a second interval; when the electronic equipment detects a user image through the camera, displaying a screen displaying interface; and the screen turning interface is used for displaying screen turning information.
In one possible design of the third aspect, before the electronic device starts up the camera, the computer instructions, when executed by the processor, cause the electronic device to further perform the steps of: the electronic device determines that the electronic device is in a stationary state.
In one possible design of the third aspect, the target parameter further includes a distance between a display screen of the electronic device and a face of the user; the preset condition further comprises that the distance between the display screen of the electronic equipment and the face of the user is larger than a preset value.
In one possible design of the third aspect, the target parameter further includes a current time; the preset condition further includes that the current time is within a preset time period.
In one possible design of the third aspect, the computer instructions, when executed by the processor, cause the electronic device to further perform the steps of: and when the target parameter does not meet the preset condition, the electronic equipment closes the message screen display function.
In one possible design of the third aspect, the computer instructions, when executed by the processor, cause the electronic device to further perform the steps of: when the electronic equipment is changed from a static state to a motion state, the electronic equipment acquires a target parameter; and when the target parameter does not meet the preset condition, the electronic equipment closes the camera.
In one possible design of the third aspect, the computer instructions, when executed by the processor, cause the electronic device to further perform the steps of: and when the target parameters acquired by the electronic equipment in the period duration do not meet the preset conditions, the electronic equipment closes the camera.
In a possible design of the third aspect, the period duration is a set period duration for the first time, and the computer instructions, when executed by the processor, cause the electronic device to further perform the steps of: when the electronic equipment obtains the target parameters which do not meet the preset conditions within the period duration of the second time, the electronic equipment closes the camera; or when the electronic equipment obtains the target parameters which do not meet the preset conditions within the period duration of the set continuous N times, the electronic equipment closes the camera; wherein N is more than 1.
In one possible design of the third aspect, after the electronic device detects the user image through the camera, the computer instructions, when executed by the processor, cause the electronic device to further perform the steps of: the electronic equipment displays prompt information; the prompt message is used for prompting whether to display information of the screen for the user; the electronic equipment responds to the confirmation operation of the user and displays a screen displaying interface; the screen turning interface comprises screen turning information.
In one possible design of the third aspect, the range of the first interval includes [200cd/m ]2,600cd/m2](ii) a The second interval includes [30 DEG, 180 DEG ]]。
In a fourth aspect, a computer-readable storage medium is provided, in which computer instructions are stored, and when the computer instructions are executed on a computer, the computer is enabled to execute the message screen display method of any one of the above first aspects.
In a fifth aspect, there is provided a computer program product comprising instructions which, when run on a computer, cause the computer to perform the information screen display method of any of the first aspects above.
For technical effects brought by any one of the design manners in the second aspect to the fourth aspect, reference may be made to technical effects brought by different design manners in the first aspect, and details are not described herein.
Drawings
Fig. 1 is a schematic diagram of a screen of a mobile phone watched by a user according to an embodiment of the present application;
FIG. 2a is a schematic diagram of a user interface provided in an embodiment of the present application;
FIG. 2b is a schematic diagram of another user interface provided by an embodiment of the present application;
FIG. 2c is a schematic diagram of another user interface provided by an embodiment of the present application;
FIG. 2d is a schematic diagram of another user interface provided by an embodiment of the present application;
FIG. 2e is a schematic diagram of another user interface provided in the embodiments of the present application;
FIG. 2f is a schematic diagram of yet another user interface provided by an embodiment of the present application;
fig. 3 is a schematic hardware structure diagram of an electronic device according to an embodiment of the present disclosure;
fig. 4 is a schematic composition diagram of an electronic device according to an embodiment of the present disclosure;
fig. 5a is a schematic view of an included angle between a screen of a mobile phone and a horizontal plane according to an embodiment of the present disclosure;
fig. 5b is a schematic view of an included angle between a screen of another mobile phone and a horizontal plane according to an embodiment of the present application;
fig. 5c is a schematic view of an included angle between a screen of another mobile phone and a horizontal plane according to the embodiment of the present application;
fig. 5d is a schematic diagram of an included angle between a screen of another mobile phone and a horizontal plane according to an embodiment of the present application;
fig. 6 is a schematic diagram of a software structure of an electronic device according to an embodiment of the present application;
fig. 7 is a schematic flowchart of a method for displaying an information screen according to an embodiment of the present application;
fig. 8 is an interface schematic diagram of a method for displaying an information screen according to an embodiment of the present application;
fig. 9 is a schematic flowchart of another message screen display method according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of a chip system according to an embodiment of the present disclosure.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application. Where in the description of the present application, "/" indicates a relationship where the objects associated before and after are an "or", unless otherwise stated, for example, a/B may indicate a or B; in the present application, "and/or" is only an association relationship describing an associated object, and means that there may be three relationships, for example, a and/or B, and may mean: a exists alone, A and B exist simultaneously, and B exists alone, wherein A and B can be singular or plural. Also, in the description of the present application, "a plurality" means two or more than two unless otherwise specified. "at least one of the following" or similar expressions refer to any combination of these items, including any combination of the singular or plural items. For example, at least one (one) of a, b, or c, may represent: a, b, c, a-b, a-c, b-c, or a-b-c, wherein a, b, c may be single or multiple. In addition, in order to facilitate clear description of technical solutions of the embodiments of the present application, in the embodiments of the present application, terms such as "first" and "second" are used to distinguish the same items or similar items having substantially the same functions and actions. Those skilled in the art will appreciate that the terms "first," "second," etc. do not denote any order or quantity, nor do the terms "first," "second," etc. denote any order or importance. Also, in the embodiments of the present application, words such as "exemplary" or "for example" are used to mean serving as examples, illustrations or illustrations. Any embodiment or design described herein as "exemplary" or "e.g.," is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present relevant concepts in a concrete fashion for ease of understanding.
Currently, in the AOD function, the electronic device may determine whether to display information according to the state of the user. For example, the AOD function may enable an electronic device to display information if and only if a user is looking at a screen of the electronic device. Illustratively, the AOD function is used to light a partial area of the display screen in which important information such as time, date, power, notification, etc. is displayed when the electronic device is turned off. Taking an electronic device as an example of a mobile phone, as shown in fig. 1, when a user holds the mobile phone and looks at the mobile phone screen, the mobile phone screen displays information. For example, as shown in fig. 2a, after the mobile phone enters the screen-off state, the mobile phone may display a screen-off animation corresponding to the electric quantity in the first area 10 of the screen. Also, the mobile phone may display the current time, date, power, or notification message in the second area 20. Certainly, the mobile phone may also display the identifier of the fingerprint identification in the second area 20 in the state of the information screen, and the content displayed in the second area 20 is not limited in this embodiment.
In some embodiments, the electronic device may generate dynamic or static screen-off information according to a user's travel mode, time, weather, location, height, and display the screen-off information when the user turns off the screen.
2 b-2 f are diagrams illustrating exemplary user interfaces displayed when the electronic device is in the flight mode and the electronic device is turned off after the turn-off display function is turned on.
As shown in fig. 2b, the user interface includes a picture display area 311 and an information display area 312. The picture display area 311 is used for displaying a picture generated by the electronic device according to the information of the user, such as the travel mode, the time, the weather, and the like, and the information display area 312 is used for displaying information of the time, the date, the electric quantity, the notification, and the like, wherein the picture and the information jointly form information of a screen of the electronic device. As can be seen from the picture display region 311 shown in fig. 2b, the picture display region 311 is used to simulate the view of a user looking outward through an airplane window on an airplane, thereby increasing the interest of the screen display. The outline of the picture display region 311 is the outline of an airplane window, and UI elements such as scenes, the sun, and clouds are displayed in the picture display region 311. The scenery may be a UI element selected by the electronic device according to a viewing angle of the scenery viewed on the airplane in the airplane travel mode, and the sun may be a time element determined by the electronic device when the current time is determined to be in the daytime according to the current time. Similarly, when the electronic device determines that the current time is at night according to the current time, the sun may change to moon. The cloud may be a weather element determined by the electronic device when the weather of the geographic location of the electronic device is judged to be cloudy according to the weather. Similarly, when the electronic device determines that the weather of the geographic location of the electronic device is light rain, the cloud may be changed to a raindrop.
In the user interface shown in fig. 2b, the electronic device may receive a touch operation of the user action with the picture display area 311, and in response to the operation, the electronic device displays the user interface 31 shown in fig. 2 c. At this time, the picture displayed in the picture display area 311 may be updated from fig. 2b to the content displayed in fig. 2 c.
As shown in fig. 2c, the picture displayed in the picture display area 311 is used to simulate an image that can be seen by a user when the aircraft window is closed. It can be seen that when the aircraft window is closed, no elements such as scenery, sun, cloud, etc. are displayed in the picture display area 311. When the electronic device detects again a user operation on the picture display area 311 by the user, the picture displayed in the picture display area 311 is updated to the picture displayed in the picture display area 311 in fig. 2 d.
As shown in fig. 2d, the picture displayed in the picture display region 311 contains UI elements such as scenes, sun, and clouds, and unlike fig. 2b, the scenes contained in the picture display region 311 may be different. That is, the electronic apparatus may continuously update the off-screen displayed picture, for example, when the electronic apparatus receives a user operation applied to the picture display region 311, the electronic apparatus updates the scene in the off-screen displayed picture. Therefore, the interest of screen-off display can be increased, and the screen-off display content can be enriched.
In some embodiments, the screen-out image displayed by the electronic device may also contain UI elements related to the vehicle the user is traveling on. For example, as shown in fig. 2e, in the user interface 31 displayed by the electronic device, the picture display area 311 may contain an airplane element 311A. The reason is that when the electronic device acquires that the current travel mode of the user is the airplane travel mode, the electronic device can add wing elements to the screen-off image to enrich the content of the screen-off image, and the electronic device is more suitable for the scene observed when the user browses the scenery through the airplane window in the actual airplane travel scene. Similarly, when the travel mode is a train travel mode, the train body and the like may be included in the screen-out image.
In some embodiments, the screen-out image displayed by the electronic device may also indicate the travel progress of the user. For example, as shown in fig. 2f, the user interface 31 displayed on the electronic device may further include a travel progress bar 313, where the travel progress bar 313 is used to indicate the progress of the user in the out-trip. Specifically, if the electronic device acquires that the user is in the airplane travel mode from point 8 to point 11, when the electronic device detects that the user is off the screen at point 9, since the electronic device calculates that the user has spent one third of the airplane journey, the travel progress bar 313 displayed by the electronic device may indicate that the user has spent one third of the boarding time on the airplane. Therefore, the electronic equipment can display the screen-off image related to the user trip, and simultaneously further inform the user of the trip time, and help the user to quickly know the trip condition of the user.
It should be noted that, in the above embodiments, the user interfaces shown in fig. 2a to fig. 2f are all illustrated by taking an electronic device as a mobile phone as an example. Of course, the electronic device may also be other suitable devices (such as a tablet computer, a smart watch, and the like), which is not limited in this application.
In some embodiments, the AOD function enables dynamic display of information on a screen via Always On (AON) technology. Specifically, the AON technology needs to detect whether there is a user image (e.g., user face information) in real time while the AP (application processor) side is asleep. When the electronic equipment detects that a user image exists, the electronic equipment enters a screen-off state and displays screen-off information; when the electronic device does not detect the user image, the electronic device enters a black screen state. However, in this solution, the electronic device is required to collect the ambient light brightness in real time, which inevitably increases the power consumption of the electronic device, and further affects the performance and the lifetime of the electronic device.
Based on this, an embodiment of the present application provides an information screen display method, where the method is capable of identifying scene information (such as ambient light brightness and posture information) of a scene where an electronic device is currently located, and when the scene information meets a preset condition, the electronic device detects whether there is a user image. If the electronic equipment detects the user image, the electronic equipment displays screen information, so that the screen information displaying time can be effectively shortened, and the power consumption of the equipment is further reduced.
Illustratively, the electronic device detecting whether there is a user image includes: the electronic device first collects the ambient light brightness through the camera and takes a low power picture (such as a low power picture) based on the ambient light brightness. And then, the electronic equipment detects whether the picture contains the user image or not according to the collected low-power-consumption picture. In addition, when the electronic device performs the information display, a part of pixels in the display screen of the electronic device are lighted up, so that the electronic device can display the information display with low power consumption.
The preset conditions comprise a first preset condition and a second preset condition. The first preset condition includes that the ambient light brightness is within a first preset range (or called a first interval); the second preset condition includes that an included angle between a screen of the electronic device and a horizontal plane is within a second preset range (or called a second interval). In some embodiments, the preset condition further includes that the electronic device is in a static state, and for example, the first preset range may be, for example, 200nits to 600 nits. The second preset range may be, for example, 30 ° to 180 °. In some embodiments, the second preset range may also be referred to as a screen of the electronic device facing up or in an elevation state.
It should be noted that the above embodiments are merely illustrative of the first preset range and the second preset range, and do not limit the present application. The first preset range and the second preset range may also be other suitable ranges, and are not limited in this embodiment of the application, specifically based on actual settings.
For example, the information screen display method provided in the embodiment of the present application may be applied to electronic devices such as a mobile phone, a tablet computer, a Personal Computer (PC), a Personal Digital Assistant (PDA), a smart watch, a netbook, a wearable electronic device, an Augmented Reality (AR) device, a Virtual Reality (VR) device, an in-vehicle device, an intelligent automobile, and an intelligent audio device, and the embodiment of the present application does not limit the scope of the present application.
Fig. 3 is a schematic structural diagram of the electronic device 100. Among them, the electronic device 100 may include: the mobile terminal includes a processor 110, an external memory interface 120, an internal memory 121, a Universal Serial Bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, a Subscriber Identity Module (SIM) card interface 195, and the like.
The sensor module 180 may include sensors such as a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor (a-sensor)180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and a gravity sensor (G-sensor) 180N.
In some embodiments, the sensor module 180 may be a sensor hub; the acceleration sensor 180E and the gravity sensor 180N may also be collectively referred to as an attitude sensor, and are configured to acquire an attitude of the electronic device (e.g., a static or moving state of the electronic device, an angle between a display screen of the electronic device and a horizontal plane, and the like). In the embodiment of the present application, the acceleration sensor 180E and the gravity sensor 180N may also be referred to as a + G devices.
In some embodiments, the ambient light sensor 180L is used to obtain environmental information (e.g., ambient light level); the acceleration sensor 180E and the gravity sensor 180N are used to obtain posture information (such as a static state or a moving state, an included angle between a display screen of the electronic device and a horizontal plane, and the like) of the electronic device. In addition, in the embodiment of the present application, an AON control module may be further disposed in the sensor module 180. The AON control module is used for controlling the AON function, and the AON function is used for detecting the user image. For example, the AON control module is used to turn AON functions on or off. When the AON control module starts the AON function, the electronic device 100 detects whether there is a user image; when the AON control module turns off the AON function, the electronic device 100 does not detect the user image, nor turns on the information screen display function. I.e. the electronic device 100 is in a black screen state.
It is to be understood that the illustrated structure of the present embodiment does not constitute a specific limitation to the electronic apparatus 100. In other embodiments, electronic device 100 may include more or fewer components than shown, or combine certain components, or split certain components, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Processor 110 may include one or more processing units, such as: the processor 110 may include an Application Processor (AP), a modem processor, a Graphics Processing Unit (GPU), an Image Signal Processor (ISP), a controller, a memory, a video codec, a Digital Signal Processor (DSP), a baseband processor, and/or a neural-Network Processing Unit (NPU), etc. The different processing units may be separate devices or may be integrated into one or more processors.
Illustratively, in the embodiment of the present application, an AON module may be disposed in the application processor. The AON module is used for detecting a user image. For example, when the AON module detects a user image, the electronic device 100 turns on a message screen display function; when the AON module does not detect the user image, the electronic device 100 does not turn on the information display function, that is, the electronic device 100 is in a black screen state.
The controller may be a neural center and a command center of the electronic device 100. The controller can generate an operation control signal according to the instruction operation code and the timing signal to complete the control of instruction fetching and instruction execution.
A memory may also be provided in processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Avoiding repeated accesses reduces the latency of the processor 110, thereby increasing the efficiency of the system.
In some embodiments, processor 110 may include one or more interfaces. The interface may include an integrated circuit (I2C) interface, an integrated circuit built-in audio (I2S) interface, a Pulse Code Modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a Mobile Industry Processor Interface (MIPI), a general-purpose input/output (GPIO) interface, a Subscriber Identity Module (SIM) interface, and/or a Universal Serial Bus (USB) interface, etc.
It should be understood that the interface connection relationship between the modules illustrated in this embodiment is only an exemplary illustration, and does not constitute a limitation on the structure of the electronic device. In other embodiments, the electronic device may also adopt different interface connection manners or a combination of multiple interface connection manners in the above embodiments.
The charging management module 140 is configured to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive a wireless charging input through a wireless charging coil of the electronic device. The charging management module 140 may also supply power to the electronic device through the power management module 141 while charging the battery 142.
The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140 and provides power to the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 may also be used to monitor parameters such as battery capacity, battery cycle count, battery state of health (leakage, impedance), etc. In some other embodiments, the power management module 141 may also be disposed in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may be disposed in the same device.
The wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The electronic device 100 implements display functions via the GPU, the display screen 194, and the application processor. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and an application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
The display screen 194 is used to display images, video, and the like. The display screen 194 includes a display panel. The display panel may adopt a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (active-matrix organic light-emitting diode, AMOLED), a flexible light-emitting diode (FLED), a Mini-LED, a Micro-OLED, a quantum dot light-emitting diode (QLED), and the like.
The electronic device 100 may implement a shooting function through the ISP, the camera 193, the video codec, the GPU, the display 194, the application processor, and the like.
The electronic device 100 may implement an audio function through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the like. Such as music playing, recording, etc.
The audio module 170 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be disposed in the processor 110, or some functional modules of the audio module 170 may be disposed in the processor 110. The speaker 170A, also called a "horn", is used to convert the audio electrical signal into an acoustic signal. The receiver 170B, also called "earpiece", is used to convert the electrical audio signal into an acoustic signal. The microphone 170C, also referred to as a "microphone," is used to convert sound signals into electrical signals.
The headphone interface 170D is used to connect a wired headphone. The headset interface 170D may be the USB interface 130, or may be a 3.5mm open mobile electronic device platform (OMTP) standard interface, a cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to extend the memory capability of the electronic device. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as audio, video, etc. are saved in an external memory card.
The internal memory 121 may be used to store computer-executable program code, which includes instructions. The processor 110 executes various functional applications of the electronic device and data processing by executing instructions stored in the internal memory 121. For example, in the embodiment of the present application, the processor 110 may execute instructions stored in the internal memory 121, and the internal memory 121 may include a program storage area and a data storage area.
The storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required by at least one function, and the like. The data storage area can store data (such as audio data, phone book and the like) created in the using process of the electronic device. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (UFS), and the like.
With reference to the electronic device 100 shown in fig. 3, as shown in fig. 4, a composition diagram of an electronic device 100 provided in the embodiment of the present application is shown. As shown in fig. 4, the electronic device 100 includes an AON control module, an ambient light module, an attitude sensor module (or referred to as an a + G module), and an AON module. Wherein, the AON module is arranged at the side of the application processor (namely the AP side); (ii) a The AON control module, the environment light module and the attitude sensor module are arranged at a sensing concentrator end (namely a sensor hub end). In some embodiments, the ambient light module may be, for example, the ambient light sensor 180L in the above embodiments. The attitude sensor module may include, for example, the acceleration sensor 180E and the gravity sensor 180N in the above-described embodiments.
Illustratively, the ambient light module is configured to collect brightness of current ambient light, and send (or transfer) the current ambient light brightness to the AON control module. The attitude sensor module is used for acquiring the attitude information of the current electronic equipment and sending (or transmitting) the attitude information to the AON control module. The posture information is used for indicating an included angle between a display screen of the electronic device and a horizontal plane and a state (such as a static state or a motion state) of the electronic device. On the basis, after the AON control module receives the ambient light brightness sent by the ambient light module and the attitude information sent by the attitude sensor module; the AON control module judges whether the environmental light brightness and the posture information meet preset conditions. If the environmental light brightness and the posture information meet preset conditions, the AON control module controls the AON module to be started; and if the environmental light brightness and the posture information do not meet the preset conditions, the AON control module controls the AON module to be closed.
It is understood that the AON module may be used to detect the user image after the AON module is turned on. When the AON module detects a user image, the electronic equipment enters a screen-off state and displays screen-off information; when the AON function does not detect the user image, the electronic apparatus does not display information (e.g., the electronic apparatus enters a black screen state).
In addition, if the ambient light brightness and the posture information do not meet the preset conditions, the AON module is closed, and at the moment, the electronic equipment does not start the screen displaying function, namely, the electronic equipment does not display the screen displaying information.
The electronic device may detect the user image, for example, the electronic device may detect the user image through a camera. Based on this, when the AON module is opened, the AON module can be used for starting the camera to make electronic equipment pass through the camera and detect user's image.
In the above embodiment, the preset condition includes that the ambient light brightness is within a first preset range; the electronic equipment is in a static state, and an included angle between a screen of the electronic equipment and a horizontal plane is within a second preset range. The second preset range may be, for example, 30 ° to 180 °. When the included angle between the screen of the electronic device and the horizontal plane is 30-180 degrees, the user can see the screen of the electronic device when watching the front. At this time, the camera of the electronic device can acquire the user image. And when the included angle between the electronic screen and the horizontal plane is 0-30 degrees, the user can not see the screen of the electronic equipment when watching the front. At this time, the camera of the electronic device cannot acquire the user image.
Taking an electronic device as a mobile phone as an example, as shown in fig. 5a, an angle between a screen of the mobile phone and a horizontal plane is 180 °. When the included angle between the screen of the mobile phone and the horizontal plane is 180 degrees, the front of the screen of the mobile phone is upward.
For another example, as shown in fig. 5b, the screen of the mobile phone forms an angle of 90 ° with the horizontal plane. When the included angle between the screen of the mobile phone and the horizontal plane is 90 degrees, the screen of the mobile phone is opposite to the face of the user, namely, the eyes of the user can directly look at the screen of the mobile phone.
For another example, as shown in fig. 5c, the screen of the mobile phone has an angle of 30 ° with the horizontal plane. When the angle between the screen of the mobile phone and the horizontal plane is 30 degrees, the user can hardly see the screen of the mobile phone directly.
For another example, as shown in fig. 5d, the screen of the mobile phone has an angle of 0 ° with the horizontal plane. When the included angle between the screen of the mobile phone and the horizontal plane is 0 degree, the screen of the mobile phone is completely buckled on the horizontal plane, and at the moment, the user cannot see the screen of the mobile phone.
In some embodiments, the software system of the electronic device 100 may employ a hierarchical architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. The embodiment of the present invention exemplarily illustrates a software architecture of the electronic device 100 by taking an Android system with a layered architecture as an example.
Fig. 6 is a block diagram of a software structure of the electronic device 100 according to an embodiment of the present disclosure.
It will be appreciated that the hierarchical architecture divides the software into several layers, each layer having a clear role and division of labor. The layers communicate with each other through a software interface. In some embodiments, the Android system may include an application layer (APP), an application framework layer (FWK), a Hardware Abstraction Layer (HAL), and a kernel layer (kernel). In some embodiments, fig. 6 also illustrates a hardware structure (e.g., a display screen) of the electronic device.
Illustratively, as shown in fig. 6, the application layer may include APP1, APP2, APPN. The application framework layer provides an Application Programming Interface (API) and a programming service for an application of the application layer. The application framework layer includes a number of predefined functions. In some embodiments, as shown in FIG. 6, the application framework layer includes a message screen display service (or AOD service). The screen displaying service is used for responding to a screen event and triggering a screen event instruction (or called a face event subscription instruction). The screen-off event may be, for example, an operation of the electronic device 100 pressing a power key while the screen is on. Alternatively, the screen-off event may be, for example, an event that the electronic apparatus 100 does not detect a user operation for a certain time while the screen is on.
The hardware abstraction layer is an interface layer located between the kernel layer and the hardware, and can be used for abstracting the hardware. In some embodiments, a hardware abstraction layer interface definition language (HIDL) is further included between the application layer framework layer and the hardware abstraction layer. HIDL is the interface between the application layer framework layer and the hardware abstraction layer implementation. Illustratively, a rest screen display service in the application framework layer may call the HIDL interface to send a rest screen instruction to the hardware abstraction layer. Then, the hardware abstraction layer calls a sensor execution environment (SSE) interface to send the information screen command to the kernel layer.
The kernel layer provides underlying drivers for various hardware of the electronic device. Illustratively, as shown in fig. 6, the kernel layer includes an AON control module, an ambient light module, an attitude sensor module, and an AON module. The environment light module is used for collecting the current environment light brightness; the attitude sensor module is used for acquiring attitude information of the electronic equipment; the AON control module is used for controlling the AON module to be opened or closed according to the ambient light brightness and the posture information. For example, the AON module is used to detect user images. Illustratively, the hardware abstraction layer calls an SSE interface to send a message screen instruction to an AON control module of the kernel layer; and then, the AON control module receives the screen information instruction, acquires the current environment light brightness and the posture information and determines whether the current environment light brightness and the posture information meet preset conditions. If the current ambient light brightness and the current attitude information meet preset conditions, the AON control module controls the AON module to be started; and if the current ambient light brightness and the current attitude information do not meet the preset conditions, the AON control module returns the first information to the information screen display service. The first information is used for informing the information screen that the current ambient light brightness and the posture information of the display service do not meet preset conditions.
In some embodiments, the screen-off event may periodically trigger the screen-off command, that is, the AON control module may periodically receive the screen-off command. On this basis, after the message screen display service receives the first information, the message screen display service does not send a message screen instruction to the AON control module any more, that is, the message screen display function is turned off.
Illustratively, the AON control module calls an SSE interface to return the first information to the hardware abstraction layer; and then, calling the HIDL interface by the hardware abstraction layer to return the first information to the message screen display service.
Under the condition that the current ambient light brightness and the current attitude information meet the preset conditions, the AON control module controls the AON module to be opened, and the AON module starts to detect whether user images exist. If the AON module detects that a user image exists, the electronic equipment enters a screen-off state and displays screen-off information; and if the AON module does not detect the user image, the electronic equipment does not display information of the screen.
In some embodiments, the environment light module is further configured to report the brightness of the environment light to the AON control module; the attitude sensor module is also used for reporting attitude information to the AON control module. And then, the AON control module determines whether the environmental light brightness and the posture information meet preset conditions according to the environmental light brightness reported by the environmental light module and the posture information reported by the posture sensor module. If the environmental light brightness and the posture information meet the preset conditions, the AON module continues to detect whether a user image exists; and if the environmental light brightness and the posture information do not meet the preset conditions, the AON control module controls the AON module to be closed. Then, the AON module cannot detect the user image, and the electronic device will not display information.
It should be noted that, when the AON module detects whether there is a user image, the camera needs to be started for detection, so in this embodiment of the application, when the AON module is started, that is, the AON module controls the camera to detect whether there is a user image; when the AON module is turned off, the AON module turns off the camera.
Next, a screen display method according to an embodiment of the present application will be described with reference to the electronic device shown in fig. 6 as an example. Illustratively, as shown in conjunction with fig. 6 and 7, the message screen display method includes steps a 1-a 10.
Step A1, the electronic device registers the interface through the AON control module and the environment light module.
Exemplarily, the AON control module sends a registration request message to the ambient light module; the registration request message is used for indicating the identification information of the AON control module. Then, the environment optical module replies a response message to the AON control module; the response message is used to indicate identification information of the ambient light module. The AON control module and the environment optical module register an interface according to the registration request message and the response message, so that the AON control module can call the interface to access the environment optical module; the environment light module can call the interface to access the AON control module.
And step A2, the electronic equipment registers an interface through the AON control module and the attitude sensor module.
Illustratively, the AON control module sends a registration request message to the attitude sensor module; the registration request message is used for indicating the identification information of the AON control module. Then, the attitude sensor module replies a response message to the AON control module; the response message is used to indicate identification information of the attitude sensor module. The AON control module and the attitude sensor module register an interface according to the registration request message and the response message, so that the AON control module can call the interface to access the attitude sensor module; the attitude sensor module can also call the interface to access the AON control module.
Step A3, the electronic device registers the interface through the AON control module and the AON module.
Illustratively, the AON control module sends a registration request message to the AON module; the registration request message is used for indicating the identification information of the AON control module. Then, the AON module replies a response message to the AON control module; the response message is used to indicate the identification information of the AON module. The AON control module and the AON module register an interface according to the registration request message and the response message, so that the AON control module can call the interface to access the AON module; the AON module can call the interface to access the AON control module.
It should be noted that, the electronic device may perform step a 1-step A3 at the same time; or the electronic device may perform step a1, then perform step a2, and finally perform step A3, where the sequence of step a1 to step A3 is not limited in this embodiment of the application.
In addition, in steps a1 to A3, the interface may be registered when the electronic device is powered on, or may be registered when the electronic device is shipped from a factory, which is not limited in this embodiment of the present application. The registration interface when the electronic device is powered on may be a registration interface when the electronic device is powered on for the first time, or may be a registration interface when the electronic device is powered on each time.
Step A4, the electronic device receives the screen-playing instruction through the AON control module.
Illustratively, as described in connection with FIG. 6, the screenshot display service triggers a screenshot command in response to a screenshot event. And then, the information screen display service calls the HIDL interface to send the information screen command to the hardware abstraction layer, and the hardware abstraction layer calls the SSE interface to send the information screen command to the AON control module.
And A5, the electronic equipment acquires the ambient light brightness through the AON control module according to the information screen instruction.
For example, the AON control module obtains the ambient light level from the ambient light module.
And A6, the electronic equipment acquires the attitude information through the AON control module according to the information screen instruction.
For example, the AON control module acquires pose information to a pose sensor module. The posture information is used to indicate a state (such as a static state or a motion state) of the electronic device and an angle between a screen (or called a display screen) of the electronic device and a horizontal plane.
It should be noted that, the electronic device may perform step a5 and step a6 at the same time; or the electronic device may perform step a5 first and then perform step a6, and the steps of step a5 and step a6 are not limited in this embodiment of the application.
And step A7, the electronic equipment determines that the ambient light brightness and the posture information meet preset conditions through the AON control module, and executes step A8.
The preset conditions include that the ambient light brightness is within a first preset range (e.g., 200nits to 600nits), the electronic device is in a static state, and an included angle between a screen of the electronic device and a horizontal plane is within a second preset range (e.g., 30 to 180 °).
Step A8, the electronic device opens the AON module through the AON control module.
Illustratively, when the AON control module determines that the ambient light brightness and the posture information satisfy the preset conditions, the AON control module controls the AON module to be turned on, and the AON module starts to detect whether there is a user image. If the AON module detects the user image, the electronic equipment enters a screen-off state and displays screen-off information; and if the AON module does not detect the user image, the electronic equipment does not display information of the screen.
And step A9, the electronic equipment determines that the ambient light brightness and the posture information do not meet the preset conditions through the AON control module, and executes step A10.
Step A10, the electronic device returns the first information through the AON control module.
Illustratively, as shown in connection with FIG. 6, the AON control module returns the first information to the message screen display service. The first information is used for informing the information screen that the current ambient light brightness and the posture information of the display service do not meet preset conditions. And then, after receiving the first information, the information screen display service does not send an information screen instruction to the AON control module. That is, the electronic device turns off the message screen display function.
Illustratively, the AON control module calls an SSE interface to return the first information to the hardware abstraction layer; and then, calling the HIDL interface by the hardware abstraction layer to return the first information to the message screen display service.
And A11, the electronic equipment reports the ambient light brightness to the AON control module through the ambient light module.
And A12, the electronic equipment reports the attitude information to the AON control module through the attitude sensor module.
In some embodiments, when the electronic device changes from a static state to a moving state (e.g., the electronic device is lifted by a user or moved by a user), the ambient light module reports the ambient light brightness to the AON control module, and the gesture sensor module reports the gesture information to the AON control module. In other embodiments, the ambient light module reports the ambient light brightness to the AON control module within a period of time, and the attitude sensor module reports the attitude information to the AON control module within the period of time.
It should be noted that the period duration may be, for example, 30s, 1min, or another suitable period duration, and the period duration is not limited in the embodiment of the present application. In addition, the electronic device may perform step A8 and step a9 simultaneously; alternatively, the electronic device may perform step A8 first and then perform step a9, where the sequence of step A8 and step a9 is not limited in this embodiment of the application.
And step A13, the electronic equipment confirms that the ambient light brightness and the posture information do not meet the preset conditions through the AON control module, and executes step A14.
It should be noted that, for the illustration of the preset condition, reference may be made to the foregoing embodiments, and details are not described herein.
Step A14, the electronic device turns off the AON module through the AON control module.
Illustratively, when the AON control module determines that the ambient light brightness and the posture information do not satisfy the preset conditions, the AON control module turns off the AON module. In addition, when the AON control module confirms that the environmental light brightness and the posture information meet the preset conditions, the AON module continues to detect whether the user image exists.
In some embodiments, the period duration is a set period duration for the first time; on the basis, when the AON control module confirms that the environmental light brightness and the posture information do not meet the preset conditions in the period duration of the set second time, the AON control module closes the AON module. Or; and when the AON control module confirms that the environmental light brightness and the posture information do not meet the preset conditions in the period duration of which the period duration is the set contact duration for N times, the AON control module closes the AON module. Wherein N is more than 1.
It can be appreciated that when the AON module is turned off, the AON module cannot detect the user image and the electronic device does not display information.
In the embodiment of the application, the electronic device recognizes the current ambient light brightness and the posture information of the electronic device, and the electronic device starts to detect the user image when the ambient light brightness and the posture information meet the preset conditions. If the electronic equipment detects the user image, the electronic equipment displays screen information, so that the screen display time can be effectively shortened, and the power consumption of the equipment is reduced.
In some embodiments, when the electronic device confirms that the ambient light brightness and the posture information satisfy the preset conditions and the electronic device detects the user image, a display screen of the electronic device displays prompt information. The prompt information is used for prompting whether to enter a screen-off state or not to a user. Illustratively, as shown in fig. 8, the prompt message 30 displayed on the display screen of the electronic device may be, for example, "whether to enter the screen saver state". If the user clicks the "confirm" control, the display screen of the electronic device displays screen-turning information (the screen-turning information shown in fig. 2 in the above embodiment); and if the user clicks the 'cancel' control, the electronic equipment does not display screen-turning information.
In the embodiment, when the electronic equipment confirms that the ambient light brightness and the posture information meet the preset conditions and the electronic equipment detects the user image, a display screen of the electronic equipment displays prompt information; because the prompt message is used for prompting the user whether to enter the screen-off state, the user can select whether to enter the screen-off state according to the prompt message, and the user experience is improved.
In some embodiments, as shown in fig. 9, a flowchart of a method for displaying a message screen provided in an embodiment of the present application is shown. Referring to fig. 9, the screen display method includes S201 to S204.
S201, the electronic equipment receives a screen turning-off event.
And the screen turning event is used for starting a screen turning display function. Illustratively, the screen-off event may be, for example, an operation of the electronic device that the user presses a power key while the screen is on. Alternatively, the screen-off event may be, for example, an event that the electronic device does not detect a user operation for a certain time while the electronic device is on the screen.
S202, the electronic equipment responds to the screen-turning event and obtains target parameters.
Wherein the target parameters at least include an ambient light level and a direction of a display screen of the electronic device.
For example, the display screen of the electronic device may be oriented at an angle to the horizontal plane.
In some embodiments, the target parameters also include a distance between a display screen of the electronic device and a face of the user (e.g., an ear of the user or a face of the user), a current time, and a state of the electronic device (e.g., a stationary state or a moving state).
And S203, when the target parameter meets a preset condition, starting the camera by the electronic equipment.
The preset conditions comprise a first preset condition and a second preset condition. The first preset condition is that the ambient light brightness is within a first interval (or called a first preset range); the second preset condition includes that the direction of the display screen of the electronic device (i.e., the included angle between the display screen of the electronic device and the horizontal plane) is within a second interval (or called a second preset range).
Illustratively, the first interval may be, for example, 200nits to 600nits, or [200cd/m [ ]2,600cd/m2](ii) a The second interval may be, for example, 30 ° to 180 °, or [30 °, 180 ° ]]。
The above is merely an example of the first interval and the second interval, and does not limit the present application. The first interval and the second interval may also be other suitable ranges, and are specifically set as the standard, which is not limited in the embodiments of the present application.
In some embodiments, the preset conditions further include that a distance between a display screen of the electronic device and the face of the user is greater than a preset value, a current time is within a preset time period, and a state of the electronic device is a stationary state.
Illustratively, the preset value may be, for example, 10 cm; the preset time period may be, for example, 6:00 to 2:00(24 hours). In some embodiments, the preset time period may be, for example, a fixed time period. For example, the time period preset by the electronic device at the time of factory shipment, or the time period set by the user in the "setting application" of the electronic device. In other embodiments, the preset time period may be a dynamically changing time period, for example. For example, the electronic device may determine the preset time period according to historical data of the user using the electronic device within a certain time period (e.g., a week or a month). For example, a user often uses the electronic device at 8:00-22:00(24 hours system) for a certain period of a week, and thus 8:00-22:00 may be set to a preset time period. For another example, the user often uses the electronic device at 10:00-00:00 (24-hour system) during the next one-week period, and thus 10:00-00:00 can be set to the preset time period.
It should be noted that the foregoing is only an example of the preset value and the preset time period, and does not limit the application, and the specific setting is subject to the standard.
And S204, when the electronic equipment detects the user image through the camera, displaying a screen displaying interface.
The screen turning interface is used for displaying screen turning information.
It can be understood that when the target parameter satisfies the preset condition, the electronic device starts the camera to detect whether there is a user image. When the electronic equipment detects the user image through the camera, a screen-switching interface is displayed, and screen-switching information is displayed on the screen-switching interface.
With reference to the foregoing embodiments, it should be noted that, since the preset value is 10cm, if the distance between the display screen of the electronic device and the face of the user is smaller than or equal to the preset value, it indicates that the display screen of the electronic device is close to the face of the user (for example, the user is making a call with the electronic device being held by the user, or the user is close to the face with the electronic device being held by the user). In this case, although the ambient light brightness is in the first interval, and the included angle between the display screen of the electronic device and the horizontal plane is in the second interval, since the display screen of the electronic device is close to the user's face, the user cannot see even if the electronic device displays information on the screen, so that the electronic device needs to determine whether the distance between the display screen of the electronic device and the user's face is greater than the preset value in the case that the ambient light brightness is in the first interval and the included angle between the display screen of the electronic device and the horizontal plane is in the second interval.
In addition, it should be noted that, since the preset time period is 6:00-2:00(24 hours), if the current time is not within the preset time period, it indicates that the current time is in the evening (for example, two points in the morning to six points in the morning), most users will not use the mobile phone at this time, and therefore, the message screen display is not needed. In this case, although the ambient light brightness is in the first interval, and the included angle between the display screen of the electronic device and the horizontal plane is in the second interval, since the current time is in the evening, even if the electronic device displays information, the user may not see the information at rest, and therefore, in the case that the ambient light brightness is in the first interval and the included angle between the display screen of the electronic device and the horizontal plane is in the second interval, the electronic device needs to determine whether the current time is within the preset time period.
In some embodiments, the electronic device does not display information when the electronic device does not detect a user image through the camera.
In the embodiment of the application, when the electronic equipment receives a screen turn-off event, the electronic equipment responds to the screen turn-off event and acquires a target parameter; when the target parameter meets the preset condition, namely the ambient light brightness is in the first interval, the direction of the display screen of the electronic equipment is in the second interval, the electronic equipment starts the camera and detects whether a user image exists through the camera, when the electronic equipment detects the user image, the electronic equipment displays the screen-off interface and displays screen-off information on the screen-off interface, and therefore the time for displaying the screen-off interface can be effectively shortened, and the power consumption of the equipment is further reduced.
An embodiment of the present application provides an electronic device, which may include: a display screen (e.g., a touch screen), memory, and one or more processors. The display screen, memory and processor are coupled. The memory is for storing computer program code comprising computer instructions. When the processor executes the computer instructions, the electronic device may perform various functions or steps performed by the mobile phone in the above-described method embodiments. The structure of the electronic device may refer to the structure of the electronic device 100 shown in fig. 3.
The embodiment of the present application further provides a chip system, as shown in fig. 10, the chip system 1800 includes at least one processor 1801 and at least one interface circuit 1802. The processor 1801 may be the processor 110 shown in fig. 3 in the foregoing embodiment. The interface circuit 1802 may be, for example, an interface circuit between the processor 110 and the external memory 120; or an interface circuit between the processor 110 and the internal memory 121.
The processor 1801 and the interface circuit 1802 may be interconnected by wires. For example, the interface circuit 1802 may be used to receive signals from other devices (e.g., a memory of an electronic device). Also for example, the interface circuit 1802 may be used to send signals to other devices, such as the processor 1801. Illustratively, the interface circuit 1802 may read instructions stored in the memory and send the instructions to the processor 1801. The instructions, when executed by the processor 1801, may cause the electronic device to perform the steps performed by the handset 180 in the embodiments described above. Of course, the chip system may further include other discrete devices, which is not specifically limited in this embodiment of the present application.
The embodiment of the present application further provides a computer storage medium, where the computer storage medium includes computer instructions, and when the computer instructions are run on an electronic device, the electronic device is caused to perform each function or step performed by a mobile phone in the foregoing method embodiment.
The embodiment of the present application further provides a computer program product, which when running on a computer, causes the computer to execute each function or step executed by the mobile phone in the above method embodiments.
Through the description of the above embodiments, it is clear to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device may be divided into different functional modules to complete all or part of the above described functions.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described device embodiments are merely illustrative, and for example, the division of the modules or units is only one logical functional division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another device, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may be one physical unit or a plurality of physical units, that is, may be located in one place, or may be distributed in a plurality of different places. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially or partially contributed to by the prior art, or all or part of the technical solutions may be embodied in the form of a software product, where the software product is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, or the like) or a processor (processor) to execute all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above description is only an embodiment of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions within the technical scope of the present disclosure should be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (12)

1. A method for displaying an information screen, comprising:
the electronic equipment receives a screen-off event; the screen-off event is used for starting a screen-off display function;
the electronic equipment responds to the screen turning event and acquires target parameters; the target parameters at least comprise the ambient light brightness and the direction of a display screen of the electronic equipment;
when the target parameter meets a preset condition, the electronic equipment starts a camera; the preset conditions comprise that the ambient light brightness is in a first interval, and the direction of a display screen of the electronic equipment is in a second interval;
when the electronic equipment detects a user image through the camera, displaying a screen displaying interface; the screen turning interface is used for displaying screen turning information.
2. The method of claim 1, wherein prior to the electronic device activating a camera, the method further comprises:
the electronic device determines that the electronic device is in a stationary state.
3. The method of claim 1 or 2, wherein the target parameter further comprises a distance between a display screen of the electronic device and a face of a user; the preset condition further comprises that the distance between the display screen of the electronic equipment and the face of the user is larger than a preset value.
4. The method of any of claims 1-3, wherein the target parameters further include a current time; the preset condition further comprises that the current time is within a preset time period.
5. The method according to any one of claims 1-4, further comprising:
and when the target parameter does not meet the preset condition, the electronic equipment closes the screen displaying function.
6. The method of claim 2, further comprising:
when the electronic equipment is changed from a static state to a motion state, the electronic equipment acquires the target parameters;
and when the target parameter does not meet the preset condition, the electronic equipment closes the camera.
7. The method according to any one of claims 1-4, further comprising:
and when the target parameter acquired by the electronic equipment in the period duration does not meet the preset condition, the electronic equipment closes the camera.
8. The method according to claim 7, wherein the period duration is the set period duration for the first time; the method further comprises the following steps:
when the target parameter acquired by the electronic equipment does not meet the preset condition within the period duration of the set second time, the electronic equipment closes the camera; alternatively, the first and second electrodes may be,
when the electronic equipment obtains the target parameters which do not meet the preset conditions within the set cycle duration of N continuous times, the electronic equipment closes the camera; wherein N is more than 1.
9. The method of any of claims 1-8, wherein after the electronic device detects a user image via the camera, the method further comprises:
the electronic equipment displays prompt information; the prompt information is used for prompting whether screen information is displayed or not to a user;
the electronic equipment responds to the confirmation operation of the user and displays a screen displaying interface; the screen turning interface comprises the screen turning information.
10. The method according to any one of claims 1 to 9,
the range of the first interval comprises [200cd/m2,600cd/m2](ii) a The range of said second interval comprises [30 °, 180 ° ]]。
11. An electronic device, comprising: a display screen, one or more cameras, a memory, and one or more processors;
the display screen is used for displaying information of the screen; the camera is used for detecting a user image; the memory has stored therein computer program code comprising computer instructions which, when executed by the processor, cause the electronic device to perform the method of any of claims 1-10.
12. A computer readable storage medium comprising computer instructions which, when executed on an electronic device, cause the electronic device to perform the method of any of claims 1-10.
CN202111453302.0A 2021-11-30 2021-11-30 Information screen display method and electronic equipment Pending CN114415816A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111453302.0A CN114415816A (en) 2021-11-30 2021-11-30 Information screen display method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111453302.0A CN114415816A (en) 2021-11-30 2021-11-30 Information screen display method and electronic equipment

Publications (1)

Publication Number Publication Date
CN114415816A true CN114415816A (en) 2022-04-29

Family

ID=81264737

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111453302.0A Pending CN114415816A (en) 2021-11-30 2021-11-30 Information screen display method and electronic equipment

Country Status (1)

Country Link
CN (1) CN114415816A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116382786A (en) * 2023-06-07 2023-07-04 荣耀终端有限公司 Method for entering long standby mode, electronic device and readable storage medium
WO2023130928A1 (en) * 2022-01-10 2023-07-13 荣耀终端有限公司 Always-on display control method, electronic device and medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109067983A (en) * 2018-07-17 2018-12-21 Oppo广东移动通信有限公司 Information cuing method, storage medium and electronic equipment
CN109840061A (en) * 2019-01-31 2019-06-04 华为技术有限公司 The method and electronic equipment that control screen is shown
CN110554815A (en) * 2018-05-30 2019-12-10 北京小米移动软件有限公司 Icon awakening method, electronic device and storage medium
CN110658906A (en) * 2019-08-30 2020-01-07 华为技术有限公司 Display method and electronic equipment
CN112513801A (en) * 2018-09-18 2021-03-16 深圳市欢太科技有限公司 Display method, related device and storage medium
CN112671976A (en) * 2019-09-30 2021-04-16 华为技术有限公司 Control method of electronic equipment and electronic equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110554815A (en) * 2018-05-30 2019-12-10 北京小米移动软件有限公司 Icon awakening method, electronic device and storage medium
CN109067983A (en) * 2018-07-17 2018-12-21 Oppo广东移动通信有限公司 Information cuing method, storage medium and electronic equipment
CN112513801A (en) * 2018-09-18 2021-03-16 深圳市欢太科技有限公司 Display method, related device and storage medium
CN109840061A (en) * 2019-01-31 2019-06-04 华为技术有限公司 The method and electronic equipment that control screen is shown
CN110658906A (en) * 2019-08-30 2020-01-07 华为技术有限公司 Display method and electronic equipment
CN112671976A (en) * 2019-09-30 2021-04-16 华为技术有限公司 Control method of electronic equipment and electronic equipment

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023130928A1 (en) * 2022-01-10 2023-07-13 荣耀终端有限公司 Always-on display control method, electronic device and medium
CN116382786A (en) * 2023-06-07 2023-07-04 荣耀终端有限公司 Method for entering long standby mode, electronic device and readable storage medium
CN116382786B (en) * 2023-06-07 2023-09-01 荣耀终端有限公司 Method for entering long standby mode, electronic device and readable storage medium

Similar Documents

Publication Publication Date Title
CN110569095B (en) Method and electronic equipment for displaying page elements
CN108234875B (en) Shooting display method and device, mobile terminal and storage medium
CN113192464B (en) Backlight adjusting method and electronic equipment
CN114415816A (en) Information screen display method and electronic equipment
CN113490943B (en) Integrated chip and method for processing sensor data
CN112351194A (en) Service processing method and device
CN114365074A (en) Display method of equipment with folding screen and folding screen equipment
CN113778663B (en) Scheduling method of multi-core processor and electronic equipment
CN110147380B (en) Data updating method, device, server and storage medium
CN113625860B (en) Mode switching method and device, electronic equipment and chip system
CN109835209B (en) Method and device for determining driving mileage of automobile and storage medium
CN113613028B (en) Live broadcast data processing method, device, terminal, server and storage medium
CN111553846A (en) Super-resolution processing method and device
CN111949879A (en) Method and device for pushing message, electronic equipment and readable storage medium
CN113206913B (en) Holding posture detection method and electronic equipment
CN110705614A (en) Model training method and device, electronic equipment and storage medium
CN114237646A (en) Game trial playing method and related device
CN112770177B (en) Multimedia file generation method, multimedia file release method and device
CN111880661A (en) Gesture recognition method and device
CN113781959B (en) Interface processing method and device
CN116684525A (en) Event reminding method, electronic equipment and storage medium
CN111581119B (en) Page recovery method and device
CN110549897B (en) Charging scheduling method and device for self-walking equipment
WO2022188511A1 (en) Voice assistant wake-up method and apparatus
CN111651835A (en) Method and device for determining output capacity of electric vehicle and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination