Screen-on processing method and device, chip, electronic equipment and medium

By performing status switching and parallel processing of screen brightening instructions in advance when the device lights up the screen, the problem of long-term screen brightening in the prior art is solved, and faster screen brightening time and better user experience are achieved.

CN119271280AActive Publication Date: 2025-01-07HONOR DEVICE CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202410486749.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-22
Publication Date
2025-01-07
Estimated Expiration
2044-04-22

AI Technical Summary

Technical Problem

After the user presses the power button, the screen time is long for existing electronic devices, resulting in poor user experience.

Method used

By performing the state switching and parallel processing of the screen brightening instructions, alignment processing and image issuance processes in advance when the device is requested to light up the screen, ensuring that the screen status parameter information is switched to the on state before the alignment processing is completed, thereby executing the underlying and upper-level processing in parallel.

Benefits of technology

It significantly shortens the time spent on the device to brighten the screen, optimizes the bright screen performance, and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119271280A_ABST
    Figure CN119271280A_ABST
Patent Text Reader

Abstract

The invention provides a screen-on processing method and device, a chip, electronic equipment and a medium. The method comprises the following steps: receiving an equipment screen-on request; in response to the equipment screen-on request, the steps of issuing a screen-on instruction and performing alignment processing are sequentially executed, and the alignment processing is used for synchronizing the screen refresh rate and the frame rate; before the alignment processing step is completed, the screen state parameter is switched into first information to trigger an image issuing process, and the first information is used for indicating that a display screen of the electronic equipment is in an on state. The application can shorten the time consumed for lighting the screen of the device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of electronic equipment, and in particular to a method, device, chip, electronic equipment and medium for bright screen processing. Background Art

[0002] When the device system is in sleep mode, the device screen is off and may be displayed as a black screen. The user can wake up the device system by pressing the power button or other operations, and the device screen will light up and display the bright screen image.

[0003] Currently, after a user performs an operation such as pressing a power button, the device takes a long time to light up the screen, resulting in a poor user experience. Summary of the invention

[0004] The present application provides a screen-lighting processing method, device, chip, electronic device and medium, which can shorten the time taken to light up the device screen.

[0005] In a first aspect, an embodiment of the present application provides a screen light processing method, comprising: receiving a device screen light request; in response to the device screen light request, sequentially executing the steps of issuing a screen light instruction and an alignment processing, the alignment processing being used to synchronize the screen refresh rate and the frame rate; before the alignment processing step is completed, switching the information of the screen status parameters to the first information to trigger the image sending process, the first information being used to indicate that the display screen of the electronic device is in the on state.

[0006] In practice, a screen-lighting instruction may be sent to a display driver of the electronic device, and the display driver may process the screen-lighting instruction to drive the display screen to power on and start initialization. Exemplarily, the step of executing the screen-lighting instruction may include: Figure 5 to Figure 7 As shown, after the HWC creates a new thread, the thread is driven by the display to trigger the process of powering on and initializing the display screen.

[0007] Exemplarily, the steps of performing the alignment process may include: Figure 5-6 As shown, after the HWC creates a new thread, the thread performs an alignment process to avoid screen tearing problems through alignment processing.

[0008] Optionally, the image sending process may include drawing an image, and sending the drawn image to a display screen. Figure 5 to Figure 7 The application layer shown sends images to the display screen layer by layer.

[0009] After the image sending process, the backlight brightness sending process may be executed to send the backlight brightness to the display screen. For example, the backlight brightness sending process may include: Figure 5 to Figure 7The application layer shown in the figure sends the backlight brightness to the display screen layer by layer. After receiving the backlight brightness and image, the display screen can display the screen accordingly.

[0010] In this application, after receiving the device screen light request, the state switching process is performed before completing the alignment process to realize the state switching in advance. Since the application layer can execute the processing of sending pictures and sending backlight brightness after the state switching, based on the early execution of the state switching, the upper layer can correspondingly execute the processing of sending pictures and sending backlight brightness in advance, without having to wait until the bottom layer completes the screen initialization, etc. before proceeding to the next step. In this way, the bottom layer processing and the upper layer processing can be executed in parallel. Compared with the screen light processing method of serial processing, this application is based on the parallel processing of the upper and bottom layers, which can shorten the time it takes to light up the device screen.

[0011] Optionally, before the alignment processing step is completed, the information of the screen status parameter is switched to the first information, including: before executing the step of issuing the screen light-up instruction, the information of the screen status parameter is switched to the first information.

[0012] Compared to executing the state switch in advance after issuing the screen-lighting command, by executing the state switch first and then issuing the screen-lighting command, that is, advancing the state switch to before issuing the screen-lighting command, the state switch can be completed as early as possible, corresponding to the earlier start of upper-level processing, thereby helping to shorten the time it takes to light up the device screen to a greater extent.

[0013] Optionally, the electronic device includes an HWC; the screen light processing method further includes: the HWC creates and starts a first thread (for example Figure 5 or Figure 7 The new thread shown); wherein the first thread is used to execute the steps of issuing a screen light instruction, aligning the screen, and switching the information of the screen status parameter to the first information.

[0014] Feasibly, the HWC may create and start a thread after receiving a screen-on instruction, which may be obtained according to a device screen-on request. Exemplarily, the electronic device may include a PMS and SurfaceFlinger, and the PMS may send a screen-on instruction to the HWC via SurfaceFlinger according to the device screen-on request.

[0015] By performing multi-threaded screen-on processing in HWC, upper and lower layers can be parallelized, which can shorten the device screen-on time and optimize the device screen-on performance.

[0016] Optionally, the electronic device also includes SurfaceFlinger; the step of performing the alignment process includes: the first thread reports a first signal to SurfaceFlinger to trigger SurfaceFlinger to perform signal calibration according to the first signal; the first signal is used to describe the screen refresh rate of the display screen, and the signal calibration is used to synchronize the screen refresh rate and the frame rate; the first thread receives a completion message returned by SurfaceFlinger after performing the signal calibration. Based on this, before the alignment process step is completed, the information of the screen status parameters is switched to the first information, including: before the first thread receives the completion message, the information of the screen status parameters is switched to the first information. Feasibly, the first thread can receive the first signal reported by the display driver.

[0017] The first thread switches the information of the screen status parameters at least before receiving the completion message, so that the upper layer can execute the processing of sending pictures and sending backlight brightness in advance accordingly, which helps to shorten the time it takes to light up the device screen.

[0018] Optionally, the electronic device also includes a PMS; receiving a device screen light-up request includes: the PMS receives the device screen light-up request, and sends a screen light-up notification to the HWC to trigger the HWC to create a first thread.

[0019] Exemplarily, the PMS may receive a device screen light-up request from an input device node in the electronic device, and send a screen light-up notification to the HWC in response to the received device screen light-up request. In other examples, the PMS may also receive a device screen light-up request from other components.

[0020] Optionally, the display screen is a touch screen, and the electronic device also includes an input device node; the device screen light method also includes: the input device node receives a screen light request event, the screen light request event is an event of operating a button of the electronic device or a display screen; the input device node responds to the screen light request event and sends a device screen light request to the PMS.

[0021] For example, when a user touches (or clicks) or double-clicks the display screen during the black screen period of the device, the touch screen driver of the electronic device can write the corresponding touch screen event to the input device node, and the input device node can then report the notification message of the touch screen event to the PMS. The PMS receiving the notification message can be represented as the PMS receiving a request to light up the device screen.

[0022] Based on the device node and PMS, the screen light-up request issued by the user by operating the device buttons and the device screen can be responded to, thereby meeting the user's device screen light-up demand in the corresponding usage scenario.

[0023] Optionally, the above-mentioned screen light request event is any one of the following events: when the display screen is in a sleep state, an event of clicking a power button of the electronic device, an event of touching the display screen, and an event of double-clicking the display screen.

[0024] Optionally, the electronic device also includes: a first module located at the application framework layer; the step of receiving a device screen-turning request includes: the first module detects a screen-turning request operation (which may indicate that the first module receives a device screen-turning request), and sends a screen-turning notification to the HWC; the screen-turning request operation is an operation that causes the data of the electronic device's sensors (such as posture sensors, camera sensors, distance sensors, etc.) to change.

[0025] In one embodiment, the first module may be a PMS. For example, if a user performs an operation of fingerprint unlocking under the screen or makes a gesture to request a screen light-up when the device screen is black, the PMS may detect changes in corresponding sensor data.

[0026] In other embodiments, the first module may be other functional modules in the application framework layer that are different from the PMS.

[0027] Based on the application framework layer, it is possible to respond to other types of screen-lighting requests issued by users without operating device buttons or operating the device screen, thereby meeting the user's device screen-lighting needs in corresponding usage scenarios.

[0028] Optionally, the above-mentioned screen light request operation includes at least one of the following operations: performing an under-screen fingerprint unlocking operation when the display screen is in a sleep state, performing a screen light request gesture operation when the display screen is in a sleep state, lifting the display screen when the display screen is in a sleep state, moving away from the display screen when the display screen is in a sleep state, and non-blocking the display screen when the display screen is in a sleep state.

[0029] Optionally, the electronic device is installed with a first application; the screen light processing method also includes: when the information of the screen status parameter is switched to the first information, the first application executes the step of drawing an image and sending the drawn image to the display screen.

[0030] Based on real-time monitoring of screen status parameter changes, it supports timely and advanced execution of image drawing, which helps to shorten the time it takes to light up the device screen. Figure 5 , the first application may include Figure 5 The image drawing module in the image drawing module is used to draw the bright screen image.

[0031] In a second aspect, an embodiment of the present application provides a screen-on processing device, the device comprising a unit for executing the method in the first aspect above. The method described in the first aspect above can be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules or units corresponding to the functions of the above method, such as a processing module or unit.

[0032] In a third aspect, an embodiment of the present application provides a chip, comprising: a processor, which is used to execute computer program instructions stored in a memory, wherein when the computer program instructions are executed by the processor, the chip is triggered to execute any method as in the first aspect.

[0033] In a fourth aspect, an embodiment of the present application provides an electronic device, comprising one or more memories for storing computer program instructions, and one or more processors, wherein when the computer program instructions are executed by the one or more processors, the electronic device is triggered to execute a method as described in any one of the first aspects.

[0034] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored. When the computer program runs on a computer, the computer executes any method in the first aspect.

[0035] In a sixth aspect, an embodiment of the present application provides a computer program product, which includes a computer program. When the computer program is run on a computer, the computer executes any method in the first aspect.

[0036] The technical effects of the aforementioned aspects can be referenced to each other and will not be elaborated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments are briefly introduced below.

[0038] Figure 1 A schematic diagram of a device system screen lighting process provided for an example;

[0039] Figure 2 A schematic diagram of a software architecture of an electronic device provided as an example;

[0040] Figure 3 A schematic diagram of the time consumption of a screen-lighting processing method provided for an example;

[0041] Figure 4 A schematic diagram of a device system screen lighting process provided in an embodiment of the present application;

[0042] Figure 5A schematic diagram of a software architecture of an electronic device provided in an embodiment of the present application;

[0043] Figure 6 A timing diagram of a screen-lighting processing method provided in an embodiment of the present application;

[0044] Figure 7 A schematic diagram of the time consumption of a screen-lighting processing method provided in an embodiment of the present application;

[0045] Figure 8 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0046] In order to better understand the technical solution of the present application, the embodiments of the present application are described in detail below with reference to the accompanying drawings.

[0047] It should be clear that the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.

[0048] The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the present application. The singular forms "a", "said" and "the" used in the embodiments of the present application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings.

[0049] It should be understood that the term "at least one" used in this article refers to one or more, and "plurality" refers to two or more. The term "and / or" used in this article is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. Among them, A and B can be singular or plural. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship. "At least one of the following" and similar expressions refer to any combination of these items, including any combination of singular or plural items. For example, at least one of a, b and c can be represented by: a, b, c, ab, ac, bc, or abc, wherein a, b, c can be single or multiple.

[0050] It should be understood that, although the terms first, second, etc. may be used to describe the set thresholds in the embodiments of the present application, these set thresholds should not be limited to these terms. These terms are only used to distinguish the set thresholds from each other. For example, without departing from the scope of the embodiments of the present application, the first set threshold may also be referred to as the second set threshold, and similarly, the second set threshold may also be referred to as the first set threshold.

[0051] When the device system (such as the Android system installed on the mobile phone) is in sleep mode, the device screen is turned off and may be displayed as a black screen. When the device system is in sleep mode, the power supply module of the device may cut off the power to the device screen, so that each pixel of the device screen does not emit light but appears black, making the device screen appear as a black screen. The user can wake up the device system by pressing the power button or other operations to turn on the device screen and display the bright screen image.

[0052] In one example (referred to as Example 1), the screen lighting process of the device system includes: when the device screen is off and displayed as a black screen, if the user requests to wake up the device system, the screen is initialized first, and after the bottom layer completes the screen initialization and alignment processing, the upper layer sends the image and backlight instructions to the bottom layer, thereby realizing the screen lighting display. For details, please refer to Figure 1 The device system screen lighting process of this example 1 may include the following steps 101 to 105.

[0053] Step 101: In response to a device screen-on request, a screen-on instruction is sent to a display driver of the electronic device. The display driver can instruct the display screen to power on and initialize by processing the screen-on instruction.

[0054] Step 102, performing alignment processing to synchronize the screen refresh rate and frame rate.

[0055] The screen refresh rate (or vertical refresh rate) can indicate the number of times the image displayed on the display screen is refreshed per second. The higher the screen refresh rate, the smoother the picture. The frame rate can indicate the number of frames of the image generated by the graphics card (graphics processor) per second. A high frame rate can produce smoother and more realistic animations. However, if the frame rate exceeds the screen refresh rate and the two are not synchronized, the display screen cannot be updated at the same speed, and the high frame rate will cause screen tearing. By performing alignment processing to synchronize the screen refresh rate and frame rate, the problem of screen tearing can be avoided.

[0056] Step 103: Switch the information of the screen status parameter to information indicating an on state (eg, from OFF to ON).

[0057] Figure 1 In the example 1 shown, the information of the screen status parameter is switched to ON only after the screen initialization and alignment processing are completed, that is, the screen has completed initialization at this time, and it can be considered that the screen is ready for bright screen display.

[0058] Step 104: draw an image and send the image to a display screen of the electronic device.

[0059] Step 105: Send the backlight brightness to the display screen. The display screen can display the screen brightly according to the backlight brightness and the image.

[0060] It can be seen that in the device system screen-lighting process of the above Example 1, the electronic device sequentially executes the steps of issuing screen-lighting instructions, alignment processing, state switching, image sending, and issuing backlight brightness.

[0061] based on Figure 1 The device system screen lighting process shown, Figure 2 The software architecture of an electronic device provided in the above example 1 is shown. Figure 2 As shown, taking the Android system as an example, the Android system can be divided into multiple layers, from top to bottom, they are application layer (applications, APP), application framework layer (applicationframework, FW), local service layer (native), hardware abstraction layer (hardware abstraction layer, HAL), and driver layer. The lower layer of the driver layer is the hardware layer (HW).

[0062] Among them, the application layer may include an image drawing module and a backlight brightness setting module, the application framework layer may include a power management service module (power manager service, PMS), the local service layer may include a surface drawing service module (SurfaceFlinger, SF), the hardware abstraction layer may include a hardware synthesis module (hwcomposer, HWC), the driver layer includes device nodes (or input device nodes) and display drivers, and the hardware layer may include a display screen and buttons (such as a power button, etc.).

[0063] refer to Figure 2 For example, if the user clicks the power button to trigger the device screen to light up, if the user clicks the power button to request the device to light up the screen during the device black screen period, then based on the key information of the power button, the corresponding key click event can be written into the corresponding device node, and the device node can report the notification information of the key click event to the PMS to report the device screen light up request to the PMS. In response to the notification message, the PMS can perform the logic processing corresponding to the key click event and send the screen light up notification to the HWC via the SF.

[0064] After receiving the screen light notification, HWC can send a screen light instruction to the display driver. By processing the screen light instruction, the display driver can drive the display screen to power on and start initialization. Feasibly, the display driver can return a completion message to HWC after driving the display screen to initialize. After the display screen is initialized, HWC can perform an alignment process to synchronize the screen refresh rate and frame rate, and after completing the alignment process, switch the information of the screen status parameter to information indicating the on state (for example, switching from OFF to ON) to switch the display state.

[0065] When the information of the screen status parameter is switched to information indicating the on state, the image drawing module in the application program can draw a bright screen image, and the application program then sends the drawn bright screen image layer by layer to the display screen. Figure 2 As shown, the bright screen image can be transmitted to the display screen via PMS, SF, HWC, and display driver in sequence.

[0066] After sending the bright screen image to the display screen, the backlight brightness setting module can send the backlight brightness to the display screen layer by layer, so that the display screen can display the bright screen according to the backlight brightness and the image. Figure 2 As shown, the backlight brightness can be transmitted to the display screen via PMS, SF, HWC, and display driver in sequence.

[0067] based on Figure 1 and Figure 2 The content shown, Figure 3 The time consumption of the screen bright processing method provided in the above example 1 is shown.

[0068] like Figure 3 As shown, the user can request the device to light up the screen by clicking a button (such as the power button of the device) during the black screen of the device. After the user clicks the button, the device node can report the notification information of the button click event to the PMS. In response to the notification message, the PMS can perform button logic processing to send a screen light up notification to the HWC via the SF.

[0069] After receiving the screen-on notification, the HWC can send a screen-on instruction to the display driver, so that the display driver processes the screen-on instruction to drive the display screen to power on and start initialization. After the display screen is initialized, the HWC can perform alignment processing to synchronize the screen refresh rate and frame rate, and after completing the alignment processing, switch the information of the screen status parameter to information indicating the on state.

[0070] When the above switching situation occurs, the application layer can draw a bright screen image, and then send the drawn bright screen image to the display screen layer by layer. After sending the bright screen image to the display screen, the application layer sends the backlight brightness to the display screen layer by layer. The display screen then displays the bright screen according to the backlight brightness and the image.

[0071] refer to Figure 1 to Figure 3 It can be seen that in the above Example 1, the device system screen-lighting process is a serial process (that is, the electronic device executes the steps of sending screen-lighting instructions, alignment processing, state switching, sending pictures, and sending backlight brightness in sequence). That is, after the user requests the device to light up the screen, the upper layer will proceed to the next step only after the bottom layer completes screen initialization, etc., to send pictures and send backlight brightness.

[0072] So, reference Figure 3For the serial processing screen-on processing method, the electronic device successively goes through the black screen stage, initialization stage, image refresh stage, and screen-on stage. The device screen-on time is the black screen stage time after the user clicks the button, the initialization stage time (such as Figure 3 t1 in the figure), and the total time spent in the refresh phase (as shown in Figure 3 As shown in t2 in the figure, the device takes a long time to light up the screen, resulting in a poor user experience.

[0073] In order to solve the above-mentioned problem of long screen lighting time, the present application parallelizes the bottom layer screen initialization with the upper layer drawing and sending backlight, thereby shortening the device screen lighting time based on the parallel processing of the upper and bottom layers. In order to achieve parallel processing, unlike the above-mentioned Example 1 of "switching the state after sending the screen lighting instruction and performing the alignment process", the present application advances the state switching process to be executed before the alignment process is completed. Since the application layer can execute the processing of sending pictures and sending backlight brightness after the state switching, based on the early execution of the state switching, the upper layer can correspondingly execute the processing of sending pictures and sending backlight brightness in advance, without having to wait until the bottom layer completes the screen initialization, etc. before the upper layer executes the above processing. In this way, the bottom layer processing and the upper layer processing can be executed in parallel.

[0074] In this way, the device system screen-lighting process provided by the embodiment of the present application may include: in response to the device screen-lighting request, sending a screen-lighting instruction to the display driver of the electronic device, and after sending the screen-lighting instruction, performing alignment processing, the alignment processing is used to synchronize the screen refresh rate and frame rate; before completing the alignment processing, switching the information of the screen state parameter to information indicating the on state; after the information of the screen state parameter is switched to information indicating the on state, drawing an image, and sending the image to the display screen of the electronic device; after sending the image to the display screen, sending the backlight brightness to the display screen. Among them, the display screen is used to display the screen according to the backlight brightness and the image.

[0075] By executing the state switch in advance, after the state switch is completed, the bottom layer screen initialization structure may not be completed, while the upper layer can send the image and send the backlight brightness, so that the bottom layer and the upper layer can be processed in parallel. Compared with the screen lighting processing method of serial processing, the screen lighting processing method of upper and bottom layers in parallel provided in the embodiment of the present application can shorten the screen lighting time, optimize the screen lighting performance, and thus improve the user experience.

[0076] Exemplarily, the screen light processing method provided in the embodiments of the present application can be applicable to simple sleep-wake-up scenarios, sleep-wake-up scenarios with screen-off display function, sleep-wake-up scenarios with fingerprint function and no screen-off display, sleep-wake-up scenarios with fingerprint function and screen-off display, sleep-wake-up scenarios in multi-screen collaborative scenarios, sleep-wake-up scenarios in projection scenarios, sleep-wake-up scenarios in car scenarios, etc.

[0077] In one embodiment, when the HWC receives a screen-on notification issued by the upper layer (such as PMS) according to the device screen-on request, it creates and starts a new thread; the new thread is used to perform the following steps: issue a screen-on instruction to the display driver; after issuing the screen-on instruction, perform alignment processing; before completing the alignment processing (for example, before issuing the screen-on instruction to the display driver), switch the information of the screen status parameter to information indicating the on state. By performing multi-threaded screen-on processing in the HWC, the upper and lower layers can be parallelized, which can shorten the device screen-on time and optimize the device screen-on performance.

[0078] In a feasible implementation, the application framework layer of the device system can respond to the device screen light-up request and send a screen light-up notification to the HWC via the SF.

[0079] For example, if the user operates a button or displays the screen (such as clicking the device power button, clicking or double-clicking the touch screen, etc.) to request the device to light up the screen when the device screen is black, the PMS of the application framework layer can receive notification information of the operation event (such as the power button click event, the touch screen event, etc.) reported by the device node of the driver layer, that is, it receives the device screen light up request. In response to the notification information, the PMS can perform logical processing to send a screen light up notification to the HWC via the SF.

[0080] In other examples, the application framework layer can also send a screen light notification to the HWC via SF based on other types of screen light request operations (such as fingerprint unlocking, screen light request gestures, and lifting, moving away, and non-blocking display screens, etc.). Feasibly, if there is a screen light request gesture or an under-screen fingerprint unlocking operation when the device screen is black, the PMS can send a screen light notification to the HWC via SF.

[0081] Compared with executing the state switching in advance after issuing the screen-on command, by executing the state switching first and then issuing the screen-on command, that is, advancing the state switching to before issuing the screen-on command, the state switching can be completed in advance to the greatest extent possible, corresponding to the earlier start of the upper layer processing, thereby helping to shorten the device screen-on time to a greater extent. Figure 4 , an embodiment of the present application provides a device system screen lighting process, which may include the following steps 401 to 405.

[0082] Step 401, in response to the device screen light request, the screen state parameter information is switched to information indicating the on state, and steps 402 and 404 are executed. That is, after the user requests the device to light up the screen, the state switch is executed first. After the state switch is completed, the bottom layer can initialize the screen, the upper layer can send the image and send the backlight brightness, and the bottom layer and the upper layer are processed in parallel.

[0083] In one embodiment, the state switching purpose can be achieved by calling the native setPowerState interface of the operating system to switch the display state.

[0084] Exemplarily, when the device system is in sleep mode, the user can request to turn on the device screen by using trigger methods such as clicking the device power button, lightly touching the device's touch screen, double-clicking the device's touch screen, lifting the device screen (for example, the user holds the device and performs a hand-raising action), fingerprint unlocking action, screen-lighting request gesture, action away from the device screen (for example, the user moves the phone screen away from the head during a call), and action without blocking the device screen (for example, the user opens the flip-cover leather case of the phone).

[0085] Optionally, the user may record the fingerprint through a touch screen or a touch button, where the touch button may be a power button of the device or a fingerprint recording button of the device that is different from the power button.

[0086] For example, when a user requests the device to light up the screen, the device screen may be black.

[0087] The information of the screen state parameter may be used to indicate the screen display state. When the user requests the device to light up the screen, the information of the screen state parameter may be information indicating an off state (such as OFF), and the electronic device may switch the information of the screen state parameter from information indicating an off state to information indicating an on state (such as ON) in response to the device screen light up request.

[0088] Figure 1 In the example 1 shown, when the information of the screen status parameter is switched to ON, the display screen has been initialized. Figure 4 In the embodiment of the present application shown, the state switching is performed first, and then the screen light instruction is issued to start initializing the display screen. When the information of the screen state parameter is switched to ON, the display screen has not yet completed initialization. That is, step 401 only switches the information of the screen state parameter to ON, but this does not mean that the display screen is already in the on state at this time.

[0089] Step 402: Send a screen-lighting instruction to the display driver of the electronic device. The display driver can drive the display screen to power on and start initialization by processing the screen-lighting instruction.

[0090] In one embodiment, the screen-lighting instruction may be issued by calling the native setPowerMode interface of the operating system.

[0091] It is feasible to power on and initialize the display screen by controlling the display screen IC (display driver integrated chip) to power on and initialize it.

[0092] Step 403, performing alignment processing to synchronize the screen refresh rate and frame rate.

[0093] In practice, the process of displaying an image on a device may involve APP drawing and rendering, SF synthesis, and display screen refresh display. By performing the alignment process, the synchronization of APP drawing and rendering, SF synthesis, and display screen refresh display can be achieved.

[0094] The display principle of the Android system can be based on the vertical synchronization (Vsync) mechanism. Under the Vsync mechanism, the Android system can have two types of Vsync signals: hardware-generated Vsync signals (Vsync-HW signals) and software-simulated Vsync signals (Vsync-APP signals and Vsync-SF signals). The signal period of the Vsync-HW signal is equal to the inverse of the screen refresh rate of the display screen. Among them, APP drawing and rendering can be triggered by the Vsync-APP signal, SF synthesis can be triggered by the Vsync-SF signal, and the display screen refresh display can be triggered by the Vsync c-HW signal.

[0095] It is feasible that based on the screen refresh rate of the display screen, the display driver can periodically report the Vsync-HW signal to the HAL layer, and the HAL layer can report the received Vsync-HW signal to SF to trigger SF to perform signal calibration processing. SF can perform Vsync signal calibration according to the Vsync-HW signal reported by the HAL layer, and periodically generate a software-simulated Vsync signal based on it, so that the two Vsync signals maintain periodic synchronization, thereby achieving alignment processing.

[0096] In one embodiment, the alignment purpose can be achieved by calling the native SetVsyncEnabled interface of the Android system to align Vsync. Since the output display tearing effect (TE) is interrupted after the screen is initialized for the first time, the upper layer SF aligns Vsync once to ensure the synchronization between the upper and lower parts, thus avoiding the problem of screen tearing.

[0097] In a feasible implementation, after the SF performs signal calibration, it can return a completion message to the HAL layer. When the HAL layer receives the completion message, it can indicate that the alignment process is completed.

[0098] In one embodiment, the HWC may create a thread after receiving a screen-on notification, and after the thread is started, the three operations of state switching, issuing a screen-on instruction, and alignment processing may be performed in sequence.

[0099] Step 404: draw an image and send the image to a display screen of the electronic device.

[0100]

[0066]

[0067] Feasibly, when the information of the screen status parameter is switched to information indicating an on state, the application layer may draw a bright screen image and send down the drawn image.

[0101] Exemplarily, the application layer may sequentially send the drawn bright screen image to the display screen through PMS, SF, HWC, and display driver.

[0102] In a feasible implementation, the application program of the application layer may monitor information changes of screen status parameters, and when, for example, it is detected that the information of the screen status parameters switches from OFF to ON, it draws a bright screen image and sends the drawn image.

[0103] In another feasible implementation, the application framework layer of the electronic device may include a monitoring module, which can monitor the information changes of the screen status parameters and notify the application application of the application layer when it detects that the information switches from OFF to ON, so as to trigger the application to draw a bright screen image and send down the drawn image.

[0104] Step 405: Send the backlight brightness to the display screen. The display screen can display the screen brightly according to the backlight brightness and the image.

[0105] Feasibly, the application layer can send the backlight brightness to the display screen after the bright screen image is sent to the display screen based on the set processing logic.

[0106] Exemplarily, the application layer may sequentially send the backlight brightness to the display screen through PMS, SF, HWC, and display driver.

[0107] It can be seen that in the embodiments of the present application Figure 4 In the device system screen-on process shown, after the electronic device completes the state switching, on the one hand, it sequentially executes the bottom-level processing steps of issuing screen-on instructions and alignment processing; on the other hand, it sequentially executes the upper-level processing steps of sending images and issuing backlight brightness. The bottom-level processing and the upper-level processing can be executed in parallel.

[0108] based on Figure 4 The device system screen lighting process of the embodiment of the present application shown in the figure, Figure 5 The software structure block diagram of an electronic device provided by an embodiment of the present application is shown. The layered architecture divides the software into several layers, each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system can be divided into multiple layers, from top to bottom, respectively, the application layer (APP), the application framework layer (FW), the local service layer (native), the hardware abstraction layer (HAL), the driver layer and the hardware layer (HW).

[0109] The application layer may include an image drawing module and a backlight brightness setting module, and may also include Figure 5A series of application packages not shown in the figure, such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message and other applications.

[0110] The image drawing module can be used to draw a bright screen image when the information of the screen status parameter is switched to information indicating the on state (for example, switched from OFF to ON). Then, the drawn bright screen image can be sent to the PMS, and the bright screen image can be transmitted layer by layer to the display screen via the SF, HWC, and display driver in sequence.

[0111] In one embodiment, the bright screen image may be an interface image of an application, and the image drawing module in the application may draw the application interface image. In another embodiment, the bright screen image may be a system main interface image, and the image drawing module in the desktop management software of the application layer may draw the system main interface image.

[0112] The backlight brightness setting module can be used to send the backlight brightness to the PMS after the bright screen image is sent to the display screen, and the backlight brightness can be transmitted to the display screen layer by layer through the SF, HWC, and display driver in sequence.

[0113] In a feasible implementation, the timing of sending the backlight brightness can be determined based on a preset logic process. For example, after the application layer starts sending the image, if a set time is reached, it can indicate that the image has been sent to the display screen, and the backlight brightness setting module can start sending the backlight brightness.

[0114] In another feasible implementation, the system service of the application framework layer can monitor the timing of sending the image to the display screen, and notify the backlight brightness setting module to trigger the backlight brightness setting module to send the backlight brightness.

[0115] After the display screen is initialized, it can display the screen brightly according to the bright screen image and backlight brightness sent from the upper layer.

[0116] The application framework layer provides an application programming interface (API) and programming framework for the application layer's applications. The application framework layer includes some predefined functions. Figure 5 As shown, the application framework layer may include a power management service module (PMS), and may also include Figure 5 The view system, resource manager, content provider, etc. are not shown.

[0117] PMS can be used to manage the power on and off of the display screen. The view system includes visual controls, such as controls for displaying text, controls for displaying pictures, etc. The view system can be used to build applications. The display interface can be composed of one or more views. The resource manager provides various resources for applications, such as localized strings, icons, pictures, layout files, video files, etc. The content provider is used to store and retrieve data and make the data accessible to applications.

[0118] The local service layer may include a surface graphics service module (SF). SF can be used to receive graphic display data from multiple sources, synthesize it and send it to the display device. Image display can be completed by multiple classes such as SF, HWC, display screen, etc.

[0119] The hardware abstraction layer acts as a bridge between software and hardware. It encapsulates the underlying hardware driver and provides a common interface for the application framework layer to call the driver. The hardware abstraction layer is an abstract interface for the device kernel driver, which provides the application programming interface for accessing the underlying device to the higher-level Java API framework. The hardware abstraction layer can contain multiple library modules, each of which implements an interface for a specific type of hardware component.

[0120] The hardware abstraction layer may include a hardware composition module (HWC). The HWC has the function or ability to combine and display image data using hardware, and provides hardware support for SF services.

[0121] In one embodiment of the present application, after receiving the screen light notification, the HWC can create a new thread. After the new thread is started, it can sequentially perform processing operations such as switching display status, issuing screen light instructions, and alignment processing.

[0122] The driver layer is the layer between hardware and software. Figure 5 As shown, the driver layer may include display drivers and device nodes, and may also include Figure 5 The camera driver, Bluetooth driver, audio driver and sensor driver etc. not shown in the figure.

[0123] The hardware layer may include hardware such as a display screen and buttons. For example, the display screen may be an LCD, and the display driver may be an LCD driver. The buttons may include a power button, etc.

[0124] refer to Figure 5 If the user clicks the power button during the black screen period to request the device to light up the screen, based on the key information of the power button, the corresponding key click event can be written into the corresponding device node, and the device node can report the notification information of the key click event to the PMS. In response to the notification message, the PMS can perform key logic processing to send a screen light up notification to the HWC via the SF.

[0125] Different from the implementation method in the above example 1, in which the HWC sequentially executes the screen light-up instruction, alignment processing, and display state switching after receiving the screen light-up notification, in the embodiment of the present application, the HWC can create a new thread after receiving the screen light-up notification. After the new thread is started, the display state can be switched first, and then the screen light-up instruction can be issued, and then the alignment processing can be performed, that is, compared with the above example 1, the state switching step will be executed in advance, thereby relatively executing the steps of sending pictures and issuing backlight brightness.

[0126] In one example, after the HWC creates a new thread, it can return a corresponding completion message to the PMS via the SF. After the new thread is started, the information of the screen status parameter can be switched from OFF to ON, and then a screen light instruction is sent to the display driver. The display driver can drive the display screen to power on and initialize by processing the screen light instruction. The display driver can return a completion message to the new thread after the screen is initialized, and then the new thread can perform alignment processing.

[0127] It is feasible that the display screen needs to consume a preset time to power on and initialize. In one feasible implementation, after receiving the screen-on instruction, the display driver can send a setting instruction to the display screen to trigger the display screen to start initialization, and after the preset time, send another setting instruction to the display screen to indicate that the display screen has completed initialization, and then return a completion message to the new thread. After the display screen completes initialization, the display task issued by the display driver can be executed.

[0128] Since the monitoring module in the electronic device can monitor the information changes of the screen status parameters in real time, and the image drawing module in the application program can draw and send the bright screen image when the monitoring module detects the above switching situation, Figure 5 As shown, after the new thread completes the state switching, the image drawing module can execute the image sending process without waiting for the display screen to be initialized. After sending the bright screen image to the display screen layer by layer, the backlight brightness setting module can send the backlight brightness to the display screen layer by layer, so that the display screen can display the bright screen according to the backlight brightness and the image.

[0129] Understandably, Figure 5 The layers in the software structure shown and the components contained in each layer do not constitute a specific limitation on the electronic device. In other embodiments of the present application, the electronic device may include more or fewer layers than shown in the figure, and each layer may include more or fewer components, which is not limited in the present application.

[0130] based on Figure 4 and Figure 5 The content shown, Figure 6 A timing diagram of a screen-lighting processing method provided in an embodiment of the present application is shown, which may include the following steps.

[0131] Step 1: If the user clicks the power button when the device screen is black, the device node performs a node operation according to the button information of the button click operation and reports notification information to the PMS.

[0132] Step 2: PMS executes key logic processing according to the notification information reported by the device node and sends a screen light notification to SF.

[0133] Step 3: After receiving the screen light notification sent by PMS, SF sends the screen light notification to HWC.

[0134] Step 4: After receiving the screen light notification sent by SF, HWC creates and starts a new thread (referred to as thread 1), and then returns a completion message to PMS via SF.

[0135] Step 5: Thread 1 switches the display state by switching the information of the screen state parameter from OFF to ON.

[0136] After step 5, steps 6 to 8 and steps 9 to 10 can be executed in parallel. That is, after the state of thread 1 is switched, thread 1 and the application layer can be processed in parallel.

[0137] Step 6: Thread 1 sends a screen-lighting instruction to the display driver.

[0138] Step 7: The display driver powers on and initializes the display screen by processing the screen-on instruction issued by thread 1, and then returns a completion message to thread 1.

[0139] Step 8: Thread 1 performs alignment processing.

[0140] Step 9: After the information of the screen status parameter is switched from OFF to ON, the application layer draws the image and transmits the drawn image to the display screen layer by layer.

[0141] Step 10: The application layer performs logic processing of sending backlight brightness to transmit the backlight brightness to the display screen layer by layer.

[0142] Step 11, after the display screen is initialized, the screen is brightly displayed according to the received backlight brightness and image.

[0143] Figure 6 In the embodiment shown, based on the early execution of the state switching, the upper layer can execute the processing of sending pictures and sending backlight brightness in advance accordingly, without having to wait until the bottom layer completes the screen initialization before proceeding to the next step. In this way, the bottom layer processing and the upper layer processing can be executed in parallel. Compared with the serial processing of the screen bright processing method, Figure 6 The illustrated embodiment is based on parallel processing of the upper layer and the bottom layer, which can shorten the time it takes to light up the device screen.

[0144] based on Figures 4 to 6 The content shown, Figure 7 The figure shows the time consumption of a screen lighting processing method provided in an embodiment of the present application.

[0145] See also Figure 7 , the user can request the device to light up the screen by clicking a button (such as the power button of the device) during the black screen of the device. After the user clicks the button, the corresponding button click event can be written into the corresponding device node, and the device node can report the button click event to the PMS. In response to the button click event, the PMS can perform button logic processing to send a screen light up notification to the HWC via the SF.

[0146] After HWC receives the screen-on notification, it can create a thread (such as Figure 7 The new thread shown in the figure is started and the thread is started, and then the corresponding completion message is returned to the upper layer. After the thread is started, the three operations of state switching, issuing screen light instructions, and alignment processing can be performed in sequence.

[0147] In one embodiment, after the HWC creates and starts a thread, the thread can call the native setPowerState interface of the operating system to switch the display state (for example, switch the information of the screen state parameter from OFF to ON), and then call the native setPowerMode interface of the operating system to send a screen light instruction to the display driver, and then perform an operation for aligning Vsync. Among them, the implementation of aligning Vsync may involve calling the native SetVsyncEnabled interface of the Android system.

[0148] It is feasible that after receiving the screen-on instruction issued by the thread, the display driver can process the screen-on instruction to drive the display screen to power on and initialize, and after the screen is initialized, report a corresponding completion message to the thread. The thread can align Vsync after the screen is initialized.

[0149] After the thread switches the display state to the on state, the application layer can draw the bright screen image, and then send the drawn bright screen image to the display screen layer by layer.

[0150] After sending the screen-lit image, the application layer can send the backlight brightness to the display screen layer by layer, so that the display screen can display the screen in a bright manner according to the backlight brightness and image. Figure 7 The duration of the initialization phase (t1) can be a set duration. If the initialization phase has not ended when the display driver receives the backlight brightness sent by the HWC, the display driver can wait until the end of the initialization phase before sending the backlight brightness to the display screen. After the display screen receives the backlight brightness, it can display the screen on accordingly, and the electronic device enters the screen on phase.

[0151] refer to Figure 1 to Figure 7It can be seen that, unlike the device system screen-lighting process in the above-mentioned Example 1, which is a serial processing (that is, the electronic device sequentially executes the steps of issuing screen-lighting instructions, alignment processing, state switching, sending pictures, and sending backlight brightness), the device system screen-lighting process in the embodiment of the present application is a parallel processing of the bottom layer and the upper layer. That is, after the user requests the device to turn on the screen, the upper layer does not need to wait until the bottom layer completes the screen initialization before proceeding to the next step. Instead, during the process of screen initialization at the bottom layer, the upper layer can send pictures and send backlight brightness.

[0152] So, see Figure 7 For the parallel processing of the screen-on processing method, the electronic device successively goes through the black screen stage, the initialization stage (including the parallel image refresh stage), and the screen-on stage. The device screen-on time is the black screen stage time after the user clicks the button, the initialization stage time (such as Figure 7 As shown in t1, Figure 3 The sum of t1 in (such as Figure 7 As shown in t3). Figure 3 and Figure 7 As shown, the time taken for the device in the above example 1 to turn on the screen is t2, and the time taken for the device in the embodiment of the present application to turn on the screen is t3, t2>t3, that is, the time taken for the device in the embodiment of the present application to turn on the screen is shorter, and there is a period of time ( Figure 7 The duration of the optimized part shown, i.e., the optimization of the screen-on time (t2-t3), can respond to the user's screen-on request more promptly.

[0153] Figure 7 The duration of the optimized part shown may generally be 90 to 110 ms. Therefore, compared with Example 1 above, the device screen lighting method of the embodiment of the present application may start the device screen lighting 90 to 110 ms in advance after the user presses the power button.

[0154] Figure 5 to Figure 7 It shows that in a device black screen scenario, when the user requests the device to turn on the screen by clicking the power button, the electronic device uses a parallel processing method to achieve the technical implementation of the device screen turning on processing. This parallel processing method is also applicable to device screen turning on processing in other scenarios and / or other screen turning on request operations, which will not be elaborated here.

[0155] The screen light processing method provided in any embodiment of the present application can be applicable to electronic devices such as mobile phones, tablet computers, personal digital assistants (PDA), desktops, laptops, notebook computers, ultra-mobile personal computers (UMPC), handheld computers, netbooks and wearable devices. The present application does not impose any special restrictions on the specific forms of the above-mentioned electronic devices.

[0156] The bright screen processing method provided in any embodiment of the present application can be applied to Figure 8 In the electronic device 100 shown. Figure 8 A schematic structural diagram of an electronic device 100 is shown.

[0157] The electronic device 100 may include a processor 110, an internal memory 121, a sensor module 180, a button 190, a motor 191, a camera 193, a display screen 194, etc. The sensor module 180 may include a pressure sensor, a gyroscope sensor, an acceleration sensor, a distance sensor, a proximity light sensor, an ambient light sensor, a fingerprint sensor, a touch sensor, etc.

[0158] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0159] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Among them, different processing units may be independent devices or integrated into one or more processors. The controller may generate an operation control signal according to the instruction opcode and the timing signal to complete the control of fetching and executing instructions.

[0160] In some embodiments, the processor 110 may be a system on chip (SOC), which may include a central processing unit (CPU) and may further include other types of processors. In some embodiments, the processor 110 may be a PWM control chip.

[0161] The processor 110 may also include necessary hardware accelerators or logic processing hardware circuits, such as ASICs, or one or more integrated circuits for controlling the execution of the technical solution program, etc. In addition, the processor 110 may have the function of operating one or more software programs, which may be stored in a storage medium.

[0162] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0163] In some embodiments, the memory of the electronic device 100 may be a read-only memory (ROM), other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), or any computer-readable medium that can be used to carry or store desired program code in the form of instructions or data structures and can be accessed by a computer.

[0164] In some embodiments, the processor 110 and the memory may be combined into a processing device, or may be independent components, and the processor 110 may be used to execute program codes stored in the memory. In specific implementation, the memory may also be integrated into the processor 110, or may be independent of the processor 110.

[0165] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

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

[0167] The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.

[0168] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.

[0169] The electronic device 100 can realize the shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor. The ISP is used to process the data fed back by the camera 193. The camera 193 is used to capture static images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. It is feasible to take a mobile phone as an example. If the camera 193 captures a screen light request gesture made by a user when the mobile phone screen is black, the mobile phone can display the screen light.

[0170] The internal memory 121 can be used to store computer executable program codes, which include instructions. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the electronic device 100 by running instructions stored in the internal memory 121, and / or instructions stored in a memory provided in the processor.

[0171] The pressure sensor is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor can be set on the display screen 194. There are many types of pressure sensors, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. When a touch operation is applied to the display screen 194, the electronic device 100 detects the touch operation intensity according to the pressure sensor. The electronic device 100 can also calculate the touch position according to the detection signal of the pressure sensor. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities can correspond to different operation instructions.

[0172] The gyroscope sensor can be used to determine the motion posture of the electronic device 100. The acceleration sensor can detect the magnitude of the acceleration of the electronic device 100 in various directions (generally three axes). Feasibly, taking a mobile phone as an example, based on the data collected by the gyroscope sensor and the acceleration sensor, if the user is detected to lift the mobile phone when the mobile phone screen is black, the mobile phone can light up the screen.

[0173] A distance sensor is used to measure the distance. The electronic device 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 can use a distance sensor to measure the distance to achieve fast focus. The proximity light sensor may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode. Feasibly, taking a mobile phone as an example, based on the data collected by the distance sensor or the proximity light sensor, if it is detected that the user's face is close to the mobile phone screen during a call, the mobile phone can automatically enter a black screen state to prevent accidental touches and save power. If it is detected that the user's face is away from the mobile phone screen during a call, the mobile phone can automatically switch to a bright screen display.

[0174] The ambient light sensor is used to sense the ambient light brightness. Preferably, the electronic device 100 can automatically adjust the backlight brightness of the device when the screen is on based on the ambient light brightness sensed in real time by the ambient light sensor to adapt to the ambient light brightness that changes in real time.

[0175] The fingerprint sensor is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to realize fingerprint unlocking, access application locks, fingerprint photography, fingerprint answering calls, etc. It is feasible to take a mobile phone as an example. If the user performs fingerprint unlocking when the mobile phone screen is black, the mobile phone can light up the screen if the unlocking is successful.

[0176] A touch sensor is also called a "touch control device". The touch sensor can be arranged on the display screen 194, and the touch sensor and the display screen 194 form a touch screen, also called a "touch control screen". The touch sensor is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor can also be arranged on the surface of the electronic device 100, which is different from the position of the display screen 194. Feasibly, taking a mobile phone as an example, if the user clicks or double-clicks the touch screen when the mobile phone screen is black, or performs an under-screen fingerprint unlock through the touch screen, the mobile phone can light up the screen.

[0177] The button 190 includes a power button, a volume button, etc. The button 190 can be a mechanical button or a touch button. The motor 191 can generate a vibration prompt. The motor 191 can be used for an incoming call vibration prompt or for touch vibration feedback. It is feasible to take a mobile phone as an example. If the user presses the power button when the screen of the mobile phone is black, the screen of the mobile phone can be brightened.

[0178] In addition, the electronic device runs an operating system on top of the above components. operating system, operating system, Operating system, etc. Application programs can be installed and run on the operating system.

[0179] The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. In one embodiment, taking the Android system of the layered architecture as an example, the software structure of the electronic device 100 may be as follows: Figure 5 shown.

[0180] An embodiment of the present application also provides a chip, which is installed in an electronic device. The chip includes: a processor, which is used to execute computer program instructions stored in a memory, wherein when the computer program instructions are executed by the processor, the chip is triggered to execute the method steps provided by any method embodiment of the present application.

[0181] An embodiment of the present application also proposes a terminal device, which includes a communication module, a memory for storing computer program instructions, and a processor for executing program instructions, wherein when the computer program instructions are executed by the processor, the terminal device is triggered to execute the method steps provided by any method embodiment of the present application.

[0182] An embodiment of the present application also provides an electronic device, which includes multiple antennas, a memory for storing computer program instructions, a processor for executing computer program instructions, and a communication device (such as a communication module that can implement 5G communication based on the NR protocol), wherein when the computer program instructions are executed by the processor, the electronic device is triggered to execute the method steps provided by any method embodiment of the present application.

[0183] Specifically, in an embodiment of the present application, one or more computer programs are stored in the above-mentioned memory, and the one or more computer programs include instructions. When the instructions are executed by the above-mentioned device, the above-mentioned device executes the method steps described in the embodiment of the present application.

[0184] Furthermore, the devices, apparatuses, and modules described in the embodiments of the present application may be implemented by computer chips or entities, or by products having certain functions.

[0185] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, devices, or computer program products. Therefore, the present application may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may take the form of a computer program product implemented on one or more computer-usable storage media containing computer-usable program code.

[0186] In the several embodiments provided in the present application, if any function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application.

[0187] Specifically, a computer-readable storage medium is also provided in an embodiment of the present application. The computer-readable storage medium stores a computer program, which, when executed on a computer, enables the computer to execute the method steps provided in the embodiment of the present application.

[0188] The embodiment of the present application also provides a computer program product, which includes a computer program. When the computer program is run on a computer, it enables the computer to execute the method steps provided by the embodiment of the present application.

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

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

[0191] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0192] The integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to perform some steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory, random access memory, disk or optical disk and other media that can store program code.

[0193] In the embodiments of the present application, the terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the presence of other identical elements in the process, method, commodity or device including the element.

[0194] The present application may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.

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

[0196] Those skilled in the art can clearly understand that for the convenience and simplicity of description, the same or similar parts between the various embodiments in this application can be referred to each other. For example, the specific working process of the system, device and unit described in the embodiments of this application can refer to the corresponding process in the method embodiment of this application, and will not be repeated here.

[0197] The above description is only a specific embodiment of the present application and is not intended to limit the present application. The protection scope of the present application shall be based on the claims.

Claims

1. A screen bright processing method, characterized in that: include: Receive device screen light-up request; In response to the device screen light-up request, sequentially executing the steps of issuing a screen light-up instruction and an alignment process, wherein the alignment process is used to synchronize a screen refresh rate and a frame rate; Before the alignment processing step is completed, the information of the screen status parameter is switched to the first information to trigger the image sending process, where the first information is used to indicate that the display screen of the electronic device is in the on state.

2. The method according to claim 1, characterized in that: Before the alignment processing step is completed, switching the information of the screen state parameter to the first information includes: Before executing the step of issuing the screen light-up instruction, the information of the screen status parameter is switched to the first information.

3. The method according to claim 1 or 2, characterized in that: The electronic device comprises a hardware synthesis module HWC; The method further includes: the HWC creating and starting a first thread; The first thread is used to execute the steps of issuing the screen light-up instruction, the alignment processing, and switching the information of the screen status parameter to the first information.

4. The method according to claim 3, characterized in that The electronic device also includes a surface drawing service module SurfaceFlinger; The performing alignment process comprises: The first thread reports a first signal to the SurfaceFlinger to trigger the SurfaceFlinger to perform signal calibration according to the first signal; the first signal is used to describe the screen refresh rate of the display screen, and the signal calibration is used to synchronize the screen refresh rate and the frame rate; The first thread receives a completion message returned by the SurfaceFlinger after performing the signal calibration; Before the alignment processing step is completed, switching the information of the screen state parameter to the first information includes: Before the first thread receives the completion message, the information of the screen status parameter is switched to the first information.

5. The method according to claim 3, characterized in that: The electronic device further comprises: a power management service module PMS; The receiving device screen light-up request comprises: The PMS receives the device screen light-up request and sends a screen light-up notification to the HWC.

6. The method according to claim 5, characterized in that The display screen is a touch screen, and the electronic device further comprises: an input device node; The method further comprises: The input device node receives a screen-on request event, where the screen-on request event is an event of operating a key of the electronic device or the display screen; The input device node sends the device screen light request to the PMS in response to the screen light request event.

7. The method according to claim 6, characterized in that The screen light request event is any one of the following events: when the display screen is in a sleep state, an event of clicking a power button of the electronic device, an event of touching the display screen, and an event of double-clicking the display screen.

8. The method according to claim 3, characterized in that The electronic device further comprises: a first module located at the application framework layer; The receiving device screen light-up request comprises: The first module detects a screen light-up request operation and sends a screen light-up notification to the HWC; the screen light-up request operation is an operation that causes sensor data of the electronic device to change.

9. The method according to claim 8, characterized in that The screen light-up request operation includes at least one of the following operations: an operation of performing under-screen fingerprint unlocking when the display screen is in a sleep state, an operation of performing a screen light-up request gesture when the display screen is in a sleep state, an operation of lifting the display screen when the display screen is in a sleep state, an operation of moving away from the display screen when the display screen is in a sleep state, and an operation of non-blocking the display screen when the display screen is in a sleep state.

10. The method according to claim 1 or 2, characterized in that: The electronic device is installed with a first application; The method further includes: when the information of the screen status parameter is switched to the first information, the first application executes the step of drawing an image and sending the drawn image to the display screen.

11. A chip, characterized in that: include: A processor, configured to execute computer program instructions stored in a memory, wherein when the computer program instructions are executed by the processor, the chip is triggered to execute the method according to any one of claims 1 to 10.

12. An electronic device, characterized in that: The electronic device comprises a display screen, one or more memories for storing computer program instructions, and one or more processors, wherein when the computer program instructions are executed by the one or more processors, the electronic device is triggered to execute the method as described in any one of claims 1-10.

13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed on a computer, the computer is enabled to execute the method according to any one of claims 1 to 10.

14. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is run on a computer, the computer is caused to perform the method according to any one of claims 1 to 10.

Citation Information

Patent Citations

  • Screen lightening method and device and electronic equipment

    CN106227539A

  • Terminal unlocking method and apparatus, and computer device

    CN106933576A

  • Screen brightening method and relevant equipment

    CN108762814A

  • Method for adjusting window refresh rate and electronic equipment

    CN113805983A

  • Control method of electronic equipment and electronic equipment

    CN116736999A