A screen control method, electronic device, storage medium, and program product.

By identifying the screen protector's status and adjusting the corresponding performance parameters, the problem of screen protectors affecting screen performance was solved, improving brightness, touch and stylus performance after screen protector application, and enhancing the user experience.

CN119271064BActive Publication Date: 2025-11-14HONOR DEVICE CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410458946.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-16
Publication Date
2025-11-14
Estimated Expiration
2044-04-16

AI Technical Summary

Technical Problem

After a screen protector is applied to the screen, it will affect the screen's performance, such as inaccurate screen brightness, reduced touch performance, and reduced stylus performance, resulting in a poor user experience.

Method used

Electronic devices can identify the screen protector application status and adjust corresponding performance parameters, such as screen brightness adjustment parameters and touch performance parameters, to ensure that the screen performance is close to or reaches the level before the screen protector is applied.

Benefits of technology

It improves screen performance after applying a screen protector, enhances brightness adjustment, touch and stylus performance, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119271064B_ABST
    Figure CN119271064B_ABST
Patent Text Reader

Abstract

This application provides a screen control method, electronic device, storage medium, and program product, relating to the field of terminal technology. After a protective film is applied to the screen, the method can mitigate the performance degradation problem caused by the application of a protective film, enabling the screen's performance to reach or approach that of the screen without a protective film, thus improving screen performance. Specifically, the electronic device identifies the screen's protective film application status. When the screen is protected by a protective film, the electronic device can control the screen based on a first performance parameter. This results in a screen with a protective film applied exhibiting better performance under control using the first performance parameter than a screen with a protective film applied under control using a second performance parameter. The second performance parameter is the initial performance parameter used by the electronic device when the screen is not protected by a protective film.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of terminal technology, and in particular to a screen control method, electronic device, storage medium, and program product. Background Technology

[0002] With the development of technology, users can interact with electronic devices through touch and tapping screens. When users operate the screen, a protective film can be applied to the display. Protective films can include: privacy films, tempered glass films, anti-reflective coatings (AR films), soft films, hard films, and anti-glare (AG films), etc. For example, a privacy film can be applied to the screen to prevent peeping and protect the privacy of the screen content.

[0003] However, applying a screen protector may degrade screen performance; for example, the screen may not respond quickly and accurately to user finger taps. Therefore, applying a screen protector will affect screen performance. Summary of the Invention

[0004] This application provides a screen control method, electronic device, storage medium, and program product, which can make the performance of the screen after applying a protective film reach or approach the performance of the screen without a protective film, thereby improving the user experience.

[0005] To achieve the above objectives, the embodiments of this application adopt the following technical solutions:

[0006] In a first aspect, a screen control method is provided, which can be applied to an electronic device including a screen. The method includes: the electronic device can identify the screen's protective film application status; when the electronic device identifies that the screen is covered with a protective film, the electronic device can control the screen using a first performance parameter, wherein the performance after the screen is covered with a protective film and controlled using the first performance parameter is better than the performance after the screen is covered with a protective film and controlled using a second performance parameter, the second performance parameter being an initial performance parameter used by the electronic device when the screen is not covered with a protective film.

[0007] In the above solution, the second performance parameter is more suitable for the screen without a screen protector. After a screen protector is applied, the protective film will affect the screen performance. If the second performance parameter is used to control the screen, the screen performance will decrease. If the first performance parameter, which matches the screen protector application state, is used to control the screen after a screen protector is applied, the screen performance can reach or approach the performance of the screen without a screen protector, thus improving screen performance and enhancing the user experience.

[0008] In one possible implementation of the first aspect, the screen protector state includes the type of the protective film applied to the screen, and the electronic device can control the screen through a first performance parameter, including: the electronic device can determine the first performance parameter corresponding to the type of the protective film currently applied to the screen, and control the screen through the first performance parameter.

[0009] In the above solution, when the screen is in a protective film applied state, different types of protective films may have different impacts on the screen's performance. Therefore, different first performance parameters are set for different film types. Electronic devices can control the screen through the first performance parameters corresponding to the type of protective film currently applied, so that even when different types of protective films are applied, the screen performance can still reach or approach that of the unprotected state.

[0010] In another possible implementation of the first aspect, the electronic device can identify the screen's film application status by: the protective film having a preset film structure; the electronic device performing detection processing on the screen corresponding to the preset film structure; and determining the screen's film application status based on the detection results of the detection processing, such as: whether the screen is in a film application state or an unfilm application state; or whether the screen is in a film type state with a protective film applied.

[0011] In the above solution, by performing detection processing on the screen corresponding to the preset film structure, the electronic device can automatically identify whether a protective film is applied to the screen, without requiring the user to manually input the film application status, thereby improving automation and user experience.

[0012] In another possible implementation of the first aspect, the electronic device includes at least two ambient light sensors. The protective film has first preset positions corresponding to the positions of the at least two ambient light sensors, with different first preset positions providing different degrees of occlusion of ambient light. The ambient light sensors are used to detect the ambient light at the corresponding first preset position. The electronic device detects ambient light using the at least two ambient light sensors, obtains light intensity values, and determines the screen protector application status based on the difference between the light intensity values ​​detected by the at least two ambient light sensors.

[0013] In the above solution, changes can be made to the structure or coating of the protective film to vary the light-blocking degree at different preset positions, thereby causing the ambient light sensors at different positions to receive different ambient light. Therefore, the screen protector application status can be determined by the difference in light intensity values ​​detected by the two ambient light sensors. Furthermore, the process of identifying the screen protector application status is imperceptible to the user and will not affect the user experience.

[0014] In another possible implementation of the first aspect, the electronic device includes a touch sensor disposed on the screen. The protective film has preset touch recognition points and wires, the endpoints of which include a first endpoint and a second endpoint. The first endpoint and the touch recognition point correspond to the same position on the screen. The electronic device performs touch detection on a second preset position on the screen via the touch sensor. The second preset position corresponds to the second endpoint of the wire, and the screen's film application status is determined based on the touch detection result at the second preset position.

[0015] In the above solution, a touch recognition point and a wire can be added to the protective film. One end of the wire is the touch recognition point, and the other end of the wire corresponds to a second preset position on the screen. When the touch recognition point is touched, an electrical signal is generated at the screen position corresponding to the touch recognition point. The wire transmits the electrical signal to the second preset position corresponding to the second endpoint, so that the second preset position on the screen can also receive the electrical signal. When the electrical signal is detected at the second preset position, the electronic device can automatically recognize that a protective film is applied to the screen, thereby achieving the effect of automatically recognizing the screen film application status.

[0016] In another possible implementation of the first aspect, the electronic device includes a camera, and the surface of the protective film is provided with a preset mark that is displayed in invisible light, the preset mark being located within the field of view of the camera. The electronic device controls the camera to capture an image in invisible light, detects whether the captured image includes the preset mark, obtains the mark detection result, and determines the screen protector application status based on the mark detection result.

[0017] In the above solution, the electronic device can control the camera to capture images in invisible light. By identifying whether there are preset marks in the image, the screen protector status can be automatically identified, ensuring the efficiency of automatic identification of the screen protector status.

[0018] In another possible implementation of the first aspect, before the electronic device controls the screen via the first performance parameter, the electronic device further includes: determining the first performance parameter based on the second performance parameter and the performance influencing factors corresponding to the protective film, wherein the performance influencing factors are the factors that affect the performance of the screen by the protective film.

[0019] It is understandable that screen protectors can affect performance. These factors are known as performance influencing factors. In the above solution, these performance influencing factors can be used as the basis for adjusting performance parameters. By using the second performance parameter and the performance influencing factors corresponding to the protective film, the first performance parameter can be determined. This allows the performance of the screen after applying a protective film to reach or approach the performance of the screen without a protective film, resulting in a more accurate improvement in screen performance and an enhanced user experience.

[0020] In another possible implementation of the first aspect, the first performance parameter includes a first screen brightness adjustment parameter, the second performance parameter includes a second screen brightness adjustment parameter, the performance influencing factor includes the light transmittance corresponding to the protective film, and the electronic device determines the first performance parameter based on the second performance parameter and the performance influencing factor corresponding to the protective film, including: the electronic device adjusts the second screen brightness adjustment parameter based on the light transmittance to obtain the first screen brightness adjustment parameter.

[0021] In the above scheme, the light transmittance of the protective film can affect the intensity of ambient light transmitted after the film is applied. Therefore, light transmittance is an important performance factor. Electronic devices can adjust the second screen brightness adjustment parameters based on the light transmittance to obtain the first screen brightness adjustment parameters that are more suitable for the screen when the film is applied. After the screen is applied, the screen brightness can be adjusted using the first screen brightness adjustment parameters to make the screen brightness of the electronic device appropriate and improve the screen brightness adjustment performance after the film is applied.

[0022] In another possible implementation of the first aspect, the electronic device adjusts the second screen brightness adjustment parameter based on the light transmittance corresponding to the film type of the protective film to obtain the first screen brightness adjustment parameter that matches the film type.

[0023] In the above solution, the effects of different types of protective films on ambient light may vary. For example, thicker protective films have lower light transmittance than thinner ones. Therefore, the second screen brightness adjustment parameters can be adjusted based on the light transmittance of different types of protective films. When different types of protective films are applied to the screen, the screen brightness adjustment performance can reach or approach the screen brightness adjustment performance when no protective film is applied. The screen brightness adjustment performance is improved more accurately, and the user experience is enhanced.

[0024] In another possible implementation of the first aspect, the electronic device adjusts the screen brightness adjustment parameters in stages to gradually adjust the second screen brightness adjustment parameters to the first screen brightness adjustment parameters, and before proceeding to the next stage of parameter adjustment, the electronic device controls the screen brightness based on the currently adjusted screen brightness adjustment parameters.

[0025] In the above solution, when adjusting the screen brightness adjustment parameters, the current screen brightness is automatically adjusted based on the adjusted parameters. If the screen brightness changes too drastically, it will irritate the user's eyes, resulting in a poor user experience and potentially damaging the screen itself. Therefore, electronic devices should gradually adjust the second screen brightness adjustment parameter to the first screen brightness adjustment parameter in stages to avoid large increases in screen brightness and improve the user experience.

[0026] In another possible implementation of the first aspect, before adjusting the screen brightness adjustment parameters at each stage, the electronic device re-identifies the screen protector status to obtain a re-identified screen protector status. If the re-identified screen protector status matches the previously identified screen protector status, the electronic device adjusts the screen brightness adjustment parameters for the current stage.

[0027] In the above scheme, to prevent the current screen brightness and screen brightness adjustment parameters from being inconsistent with the current screen protector status, the electronic device can re-identify the screen protector status before adjusting the screen brightness adjustment parameters at each stage. If the re-identified screen protector status matches the previously identified screen protector status, the electronic device will then adjust the screen brightness adjustment parameters for the current stage. This ensures that the current screen brightness and screen brightness adjustment parameters are more consistent with the current screen protector status, avoiding incorrect adjustments to the screen brightness adjustment parameters in case of misidentification of the screen protector status or changes in the screen protector status. This improves the accuracy of screen brightness adjustment parameter adjustment and, consequently, the accuracy of screen control.

[0028] In another possible implementation of the first aspect, when the first performance parameter is a first touch performance parameter and the second performance parameter is a second touch performance parameter, the performance influencing factors include touch performance influencing factors, which are factors that affect the touch performance of the screen by the protective film. The touch sensitivity of the screen with the protective film applied when controlled by the first touch performance parameter is higher than the touch sensitivity of the screen with the protective film applied when controlled by the second touch performance parameter.

[0029] And / or, when the first performance parameter includes a first stylus performance parameter and the second performance parameter includes a second stylus performance parameter, the performance influencing factors include stylus performance influencing factors. Stylus touch performance influencing factors are those factors that affect the screen's stylus performance. The stylus touch sensitivity of the screen with the stylus applied, when controlled using the first stylus performance parameter, is higher than the stylus touch sensitivity of the screen with the stylus applied, when controlled using the second stylus performance parameter.

[0030] In the above solution, when a protective film is applied to the screen, the touch performance will be affected by the protective film. The screen can be controlled by a first touch performance parameter that is more adapted to the screen with the protective film applied, so that the touch performance of the screen with the protective film applied can reach or approach the touch performance of the screen without the protective film applied. The screen touch performance is accurately improved and the user experience is enhanced.

[0031] Similarly, the screen protector can affect the screen's reception of signals emitted by the stylus on the touchscreen. Therefore, if a screen protector is applied, the screen's stylus performance parameters can be optimized based on the factors affecting the screen's stylus touch performance and the second stylus performance parameters. By controlling the screen using the first stylus performance parameters, the stylus performance after applying the screen protector can reach or approach the stylus performance when the screen is not protected. This accurately improves the screen's stylus performance and enhances the user experience.

[0032] In another possible implementation of the first aspect, the first touch performance parameter includes a first touch response signal threshold, the second touch performance parameter includes a second touch response signal threshold, and the touch performance influencing factors include a first signal value, which is the expected touch signal value generated when the screen is touched with a protective film applied. The process by which the electronic device determines the first touch performance parameter through the second touch performance parameter and the touch performance influencing factors can be: the electronic device reduces the second touch response threshold based on the first signal value to obtain the first touch response threshold.

[0033] In the above solution, after a protective film is applied to the screen, the touch signal generated during touch is reduced due to the influence of the protective film. The touch performance of the screen can be improved by adjusting the touch response signal threshold so that the reduced touch signal can still be responded to.

[0034] In another possible implementation of the first aspect, the first stylus performance parameter includes a first weighting ratio coefficient, and the second stylus performance parameter includes a second weighting ratio coefficient. The first weighting ratio coefficient is the ratio coefficient between channels on the screen when the screen with a protective film is touched by the stylus, and the second weighting ratio coefficient is the ratio coefficient between channels on the screen when the screen without a protective film is touched by the stylus. The stylus performance influencing factors include the touch signal difference corresponding to the protective film, where the touch signal difference is the estimated difference between the stylus signals received by the channels before and after the screen is touched by the stylus before and after the protective film is applied. The process by which the electronic device determines the first stylus performance parameter through the second stylus performance parameter and the stylus performance influencing factors can be: the electronic device can adjust the second weighting ratio coefficient based on the touch signal difference to obtain the first weighting ratio coefficient.

[0035] In the above solution, after the screen is covered with a protective film, the protective film will affect the screen's reception of the stylus signal. The touch position of the stylus can be determined more accurately by adjusting the weight ratio coefficient, so that the touch sensitivity of the stylus when the screen is controlled by the first weight ratio coefficient after the film is applied is improved.

[0036] Secondly, this application provides an electronic device, which includes a memory, a screen, and a processor; the memory and the screen are coupled to the processor. The memory stores computer program code, which includes computer instructions. When the computer instructions are executed by the processor, the electronic device controls the screen to perform the methods described in the first aspect and any possible implementation thereof.

[0037] Thirdly, embodiments of this application provide a computer storage medium including computer instructions that, when executed on an electronic device, cause the electronic device to perform the method as described in the first aspect and any possible implementation thereof.

[0038] Fourthly, embodiments of this application provide a computer program product that, when run on a computer, causes the computer to perform the method as described in the first aspect and any possible implementation thereof. The computer may be an electronic device as described in the second aspect and any possible implementation thereof.

[0039] Understandably, the beneficial effects that the electronic device of the second aspect, the computer storage medium of the third aspect, and the computer program product of the fourth aspect provided above can be referenced to the beneficial effects of the first aspect and any possible implementation thereof, which will not be repeated here. Attached Figure Description

[0040] Figure 1 This is a schematic diagram illustrating the change in screen brightness before and after applying a screen protector, provided in an embodiment of this application.

[0041] Figure 2 This is a schematic diagram illustrating the change in touch performance before and after applying a film, as provided in an embodiment of this application.

[0042] Figure 3 This is a schematic diagram illustrating the performance changes of a stylus before and after applying a film, as provided in an embodiment of this application.

[0043] Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application;

[0044] Figure 5 This is a flowchart illustrating a screen control method provided in an embodiment of this application;

[0045] Figure 6 This is a schematic diagram of the distribution of an ambient light sensor provided in an embodiment of this application;

[0046] Figure 7 This is a schematic diagram of the structure of a protective film provided in an embodiment of this application;

[0047] Figure 8 The embodiments provided in this application will Figure 7 The diagram shows a protective film applied to the screen.

[0048] Figure 9 This is a schematic diagram of another protective film provided in an embodiment of this application;

[0049] Figure 10 The embodiments provided in this application will Figure 9 The diagram shows a protective film applied to the screen.

[0050] Figure 11 This is a schematic diagram of another protective film provided in an embodiment of this application;

[0051] Figure 12 The embodiments provided in this application will Figure 11 The diagram shows a protective film applied to the screen.

[0052] Figure 13 This is a schematic diagram illustrating the application of two other protective films on a screen, as provided in an embodiment of this application.

[0053] Figure 14 This is a schematic diagram of another protective film provided in an embodiment of this application;

[0054] Figure 15 The embodiments provided in this application will Figure 14 The diagram shows a protective film applied to the screen.

[0055] Figure 16 This is a schematic diagram of another protective film provided in an embodiment of this application;

[0056] Figure 17 This is a comparative diagram of the first screen brightness adjustment parameters and the second screen brightness adjustment parameters provided in the embodiments of this application;

[0057] Figure 18 This is a comparative diagram of the touch performance parameters provided in the embodiments of this application. Detailed Implementation

[0058] Hereinafter, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this embodiment, unless otherwise stated, "a plurality of" means two or more.

[0059] A screen is an input / output device that displays information for users to view. Electronic devices can interact with users through their screens.

[0060] In practical applications, users often apply screen protectors to the screens of electronic devices. For example, mobile phones typically have privacy screen protectors, tempered glass screen protectors, AR screen protectors, soft screen protectors, hard screen protectors, AG screen protectors, etc. However, applying a screen protector can negatively impact screen performance. This is because performance parameters are set for electronic devices at the factory, allowing them to control the screen for optimal performance. However, when a screen protector is applied, it affects the screen's performance. If the factory-set performance parameters are used, the screen's performance after applying the protector will be lower than before. For instance, screen brightness is determined by the ambient light intensity. However, with a screen protector, the electronic device's detection of ambient light intensity becomes less accurate, resulting in insufficient brightness and a less user-friendly experience. Alternatively, the thickness of the screen protector can reduce touchscreen and stylus performance.

[0061] To facilitate understanding, the following diagram illustrates the impact of screen protectors on screen performance (such as screen brightness adjustment, touch performance, and stylus performance).

[0062] (a) Impact on screen brightness adjustment performance:

[0063] Generally, there is a positive correlation between screen brightness and ambient light intensity. The higher the ambient light intensity detected by the ambient light sensor on an electronic device, the brighter the screen; conversely, the lower the ambient light intensity detected by the sensor, the lower the screen brightness. Therefore, when a protective film is applied to the screen, the electronic device's detection of ambient light intensity becomes less accurate, resulting in an inappropriate adaptive brightness adjustment based on the ambient light intensity.

[0064] Figure 1 This is a schematic diagram illustrating the change in screen brightness adjustment performance before and after applying a protective film, provided as an embodiment of this application. It is used to illustrate the impact of applying a protective film to an electronic device on its screen brightness adjustment performance under the same environment.

[0065] Figure 1 (a) in the diagram illustrates the screen brightness controlled by the factory-set screen brightness adjustment parameters when no protective film is applied. Figure 1 (b) illustrates the screen brightness controlled by the factory-set screen brightness adjustment parameters after the protective film is applied. The screen brightness corresponding to the actual ambient light intensity is as follows: Figure 1 As shown in (a) above. But... Figure 1In (b) of the above, when a user applies a protective film to the screen, the ambient light sensor on the electronic device may not accurately detect the light intensity of the surrounding environment due to reasons such as the protective film not being completely transparent. This may result in the electronic device detecting a light intensity that is less than the actual ambient light intensity, which in turn causes the screen brightness adjusted by the electronic device based on the actual detected light intensity to be lower than the screen brightness corresponding to the actual ambient light intensity, resulting in a lower screen brightness.

[0066] (ii) Impact on touch performance:

[0067] Taking a touchscreen as an example, due to the thickness of the protective film, the touch signal generated when the finger touches the screen is weakened after the screen protector is applied. This will reduce the sensitivity, response speed, and responsiveness of the finger touch on the screen, thus affecting the touch performance of the screen.

[0068] Figure 2 This is a schematic diagram illustrating the change in touch performance before and after applying a film, as provided in an embodiment of this application.

[0069] Figure 2 (a) in the diagram illustrates the touch performance controlled by the factory-set touch performance parameters when no protective film is applied. Figure 2 (b) in the diagram illustrates the touch performance after applying a protective film, using the factory-set touch performance parameters. For example... Figure 2 As shown in (a), without a protective film, the screen responds quickly to user touch. However, the touch signal generated when the screen is touched with a protective film is weaker than the touch signal generated when the screen is touched without a protective film. Figure 2 As shown in (b), if the touch signal generated when a finger touches the screen is too small when a protective film is applied, the screen may not be able to respond to the touch, resulting in decreased screen sensitivity. Simultaneously, the decreased touch sensitivity causes the screen to be unable to respond to the user's swipe gestures in a timely manner, thus reducing the screen's responsiveness. Furthermore, the protective film acts as an obstacle between the finger and the screen, further delaying the response time after the finger touches the screen.

[0070] (III) Impact on stylus performance:

[0071] Because of the thickness of the protective film, applying a protective film to the screen will affect the screen's reception of signals sent by the stylus, which will reduce the stylus's touch response speed and responsiveness, thus affecting the stylus's performance.

[0072] Figure 3 This is a schematic diagram illustrating the performance changes of a stylus before and after applying a film, as provided in an embodiment of this application.

[0073] Figure 3 (a) in the diagram illustrates the touch effect of the stylus when the protective film is not applied, using the factory-set stylus performance parameters. Figure 3 (b) in the diagram illustrates the touch effect of the stylus controlled by the factory-set performance parameters after the protective film is applied. For example... Figure 3 As shown in (a), without a protective film, the screen exhibits high sensitivity, short response time to the stylus, and high responsiveness. The electronic device can promptly determine the stylus's position on the screen, and the lines drawn by the user on the touchscreen are identical to the lines received by the touchscreen through touch control, with smooth lines. Figure 3 As shown in (b), when a protective film is applied to the screen, the screen sensitivity decreases, the response time to the stylus is longer, the responsiveness is low, and the electronic device cannot determine the position of the stylus on the screen in time, resulting in a difference between the lines drawn by the user on the touch screen and the lines received by the touch screen through touch.

[0074] Therefore, to prevent screen performance degradation after applying a screen protector, such as decreased touch performance, stylus performance, or inappropriate adaptive brightness adjustment, this application provides a screen control method. This method can be applied to electronic devices with a screen protector to adaptively optimize screen performance. Specifically, when a screen protector is applied to the screen of an electronic device, the device can control the screen using a new set of performance parameters different from the factory settings, so that screen performance is unaffected by the screen protector or the impact of the screen protector on the screen is reduced.

[0075] In some embodiments, when a protective film is applied to the electronic device, the electronic device can control the screen using a first performance parameter, such that the performance of the screen with the protective film applied, after being controlled using the first performance parameter, is better than the performance of the screen with the protective film applied, after being controlled using a second performance parameter. The second performance parameter is the initial performance parameter used by the electronic device when the screen is not covered with a film, and the initial performance parameter may be the performance parameter set at the factory of the electronic device.

[0076] For example, an electronic device can first identify the screen's protective film status. When the electronic device detects that a protective film is applied to the screen, it controls the screen through a first performance parameter so that the performance of the screen after the protective film is applied can reach or approach the performance of the screen without a protective film, thereby improving the user experience.

[0077] Among these, performance parameters are parameters related to screen performance. Screen performance can include at least one of screen brightness adjustment performance, touch performance, or stylus performance. Electronic devices control the screen through performance parameters to optimize screen performance. A first performance parameter can include at least one of a first screen brightness adjustment parameter, a first touch performance parameter, or a first stylus performance parameter. When the first performance parameter is a first screen brightness adjustment parameter, the second performance parameter is a second screen brightness adjustment parameter. Similarly, when the first performance parameter is a first touch performance parameter, the second performance parameter is a second touch performance parameter. When the first performance parameter is a first stylus performance parameter, the second performance parameter is a second stylus performance parameter. Electronic devices can simultaneously use at least one of the first screen brightness adjustment parameter, the first touch performance parameter, and the first stylus performance parameter to control the screen.

[0078] When the screen with a protective film applied is used with the first touch performance parameter, touch performance issues such as decreased sensitivity, reduced responsiveness, and prolonged response time can be improved. When the screen with a protective film applied is used with the first stylus performance parameter, the issues of decreased responsiveness and discrepancies between lines drawn by the user and received by the touchscreen can be improved. When the screen with a protective film applied is used with the first screen brightness adjustment parameter, the inconsistency between the screen brightness and the brightness corresponding to actual ambient light can be improved. Therefore, the embodiments of this application can improve the performance degradation problem after applying a protective film, enabling the screen performance with a protective film to reach or approach the performance of the screen without a protective film, thus improving the user experience. For example, Figure 3 (c) in the diagram illustrates the stylus touch performance after being controlled using the first stylus performance parameters. It is quite obvious that... Figure 3 (c) in comparison to Figure 3 Regarding (b) of the above, the stylus touch performance has been significantly improved, approaching [the performance of the stylus]. Figure 3 The stylus touch performance is shown in (a) above.

[0079] For example, the protective film may have a preset film structure, and the electronic device may perform detection processing on the screen corresponding to the preset film structure, and determine the screen's film application status based on the detection results.

[0080] When a screen protector is applied, the electronic device can determine a first performance parameter. Based on this parameter, the device controls the screen to achieve or approximate its performance without a screen protector, thus improving the user experience. For example, the screen protector application status may include whether a screen protector is applied and / or the type of the applied protector. It is understood that when the screen protector application status includes the type of the applied protector, the electronic device can determine the corresponding first performance parameter based on that type.

[0081] For example, the aforementioned electronic device may be a mobile phone, tablet computer, smart remote control, wearable device (such as smart bracelet, smartwatch, or smart glasses), PDA, augmented reality (AR) / virtual reality (VR) device. Alternatively, the electronic device 400 may also be a portable multimedia player (PMP), media player, or other types of electronic device. This application embodiment does not impose any limitations on the specific type of electronic device.

[0082] Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application.

[0083] Please refer to Figure 4 This application uses a mobile phone as an example to describe the electronic device 400 provided in this application. Figure 4 As shown, the electronic device 400 may include: a processor 410, an external memory interface 420, an internal memory 421, a universal serial bus (USB) interface 430, a charging management module 440, a power management module 441, a battery 442, antenna 1, antenna 2, a mobile communication module 450, a wireless communication module 460, an audio module 470, a speaker 470A, a receiver 470B, a microphone 470C, a headphone jack 470D, a sensor module 480, buttons 490, an indicator 492, a camera 493, and a display screen 494. The sensor module 480 may include a pressure sensor 480A, a magnetic sensor 480B, a proximity sensor 480C, a fingerprint sensor 480D, a touch sensor 480E, an ambient light sensor 480F, etc.

[0084] In the embodiments of this application, the electronic device 400 can detect the preset film structure of the protective film through an ambient light sensor 480F, a camera 493, a touch sensor 480E, etc. The processor 410 on the electronic device 400 then determines the film application status of the display screen 494 based on the detection results, such as whether the display screen 494 has a protective film applied, or what type of protective film is applied to the display screen 494. If the display screen 494 has a protective film applied, the processor 410 then uses the first performance parameter to control the display screen 494.

[0085] It is understood that the structures illustrated in the embodiments of the present invention do not constitute a specific limitation on the electronic device 400. In other embodiments of this application, the electronic device 400 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware. For ease of understanding, the above-mentioned components will be briefly described below.

[0086] Processor 410 may include one or more processing units, such as: application processor (AP), modem processor, graphics processing unit (GPU), image signal processor (ISP), controller, memory, video codec, digital signal processor (DSP), baseband processor, and / or neural network processing unit (NPU), etc. The different processing units may be independent devices or integrated into one or more processors.

[0087] The controller can be the nerve center and command center of the electronic device 400. The controller can generate operation control signals based on the instruction opcode and timing signals to control the fetching and execution of instructions.

[0088] The processor 410 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 410 is a cache memory. This memory can store instructions or data that the processor 410 has just used or that are used repeatedly. If the processor 410 needs to use the instruction or data again, it can retrieve it directly from the memory. This avoids repeated accesses, reduces the waiting time of the processor 410, and thus improves the efficiency of the system.

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

[0090] It is understood that the interface connection relationships between the modules illustrated in the embodiments of the present invention are merely illustrative and do not constitute a structural limitation on the electronic device 400. In other embodiments of this application, the electronic device 400 may also employ different interface connection methods or combinations of multiple interface connection methods as described in the above embodiments.

[0091] The charging management module 440 receives charging input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 440 receives charging input from the wired charger via a USB interface 430. In some wireless charging embodiments, the charging management module 440 receives wireless charging input via the wireless charging coil of the electronic device 400. While charging the battery 442, the charging management module 440 can also supply power to the electronic device via the power management module 441.

[0092] The power management module 441 connects the battery 442, the charging management module 440, and the processor 410. The power management module 441 receives input from the battery 442 and / or the charging management module 440, providing power to the processor 410, internal memory 421, external memory, display screen 494, camera 493, and wireless communication module 460. The power management module 441 can also monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage current, impedance). In some other embodiments, the power management module 441 may also be located within the processor 410. In other embodiments, the power management module 441 and the charging management module 440 may be housed in the same device.

[0093] The wireless communication function of electronic device 400 can be realized through antenna 1, antenna 2, mobile communication module 450, wireless communication module 460, modem processor and baseband processor, etc.

[0094] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 400 can be used to cover one or more communication frequency bands. Different antennas can also be multiplexed to improve antenna utilization. For example, antenna 1 can be multiplexed as a diversity antenna for a wireless local area network. In some other embodiments, the antennas can be used in conjunction with a tuning switch.

[0095] The mobile communication module 450 can provide solutions for wireless communication, including 2G / 3G / 4G / 5G, applied to the electronic device 400. The mobile communication module 450 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 450 can receive electromagnetic waves via antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to a modem processor for demodulation. The mobile communication module 450 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via antenna 1. In some embodiments, at least some functional modules of the mobile communication module 450 may be housed in the processor 410. In some embodiments, at least some functional modules of the mobile communication module 450 and at least some modules of the processor 410 may be housed in the same device.

[0096] The modem processor may include a modulator and a demodulator. The modulator modulates the low-frequency baseband signal to be transmitted into a mid-to-high frequency signal. The demodulator demodulates the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After processing by the baseband processor, the low-frequency baseband signal is transmitted to the application processor. The application processor outputs sound signals through an audio device (not limited to a speaker 470A, receiver 470B, etc.) or displays images or videos through a display screen 494. In some embodiments, the modem processor may be a separate device. In other embodiments, the modem processor may be independent of the processor 410 and may be housed in the same device as the mobile communication module 450 or other functional modules.

[0097] The wireless communication module 460 can provide solutions for wireless communication applications on the electronic device 400, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR) technologies. The wireless communication module 460 can be one or more devices integrating at least one communication processing module. The wireless communication module 460 receives electromagnetic waves via antenna 2, performs frequency modulation and filtering of the electromagnetic wave signals, and sends the processed signal to processor 410. The wireless communication module 460 can also receive signals to be transmitted from processor 410, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 2.

[0098] In some embodiments, antenna 1 of electronic device 400 is coupled to mobile communication module 450, and antenna 2 is coupled to wireless communication module 460, enabling electronic device 400 to communicate with networks and other devices via wireless communication technology. Wireless communication technology may include Global System for Mobile Communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Time Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technologies, etc. GNSS can include the Global Positioning System (GPS), the Global Navigation Satellite System (GLONASS), the BeiDou Navigation Satellite System (BDS), the Quasi-Zenith Satellite System (QZSS), and / or satellite-based augmentation systems (SBAS).

[0099] Electronic device 400 implements display functions through a GPU, a display screen 494, and an application processor. The GPU is a microprocessor for image processing, connecting the display screen 494 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. Processor 410 may include one or more GPUs, which execute program instructions to generate or modify display information.

[0100] Display screen 494 is used to display images, videos, etc. Display screen 494 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a miniature LED, a microLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, electronic device 400 may include one or N displays 494, where N is a positive integer greater than 1.

[0101] Electronic device 400 can perform shooting functions through ISP, camera 493, video codec, GPU, display 494 and application processor.

[0102] The ISP (Image Signal Processor) is used to process data fed back from the camera 493. For example, when taking a picture, the shutter is opened, and light is transmitted through the lens to the camera's image sensor. The light signal is converted into an electrical signal, and the image sensor transmits the electrical signal to the ISP for processing, transforming it into an image visible to the naked eye. The ISP can also perform algorithmic optimizations on image noise, brightness, and skin tone. The ISP can also optimize parameters such as exposure and color temperature of the shooting scene. In some embodiments, the ISP can be integrated into the camera 493.

[0103] Camera 493 is used to capture still images or videos. An object is projected onto a photosensitive element by generating an optical image through the lens. The photosensitive element can be a charge-coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, which is then passed to an ISP for conversion into a digital image signal. The ISP outputs the digital image signal to a DSP for processing. The DSP converts the digital image signal into image signals in standard RGB, YUV, or other formats. In some embodiments, the electronic device 400 may include one or N cameras 493, where N is a positive integer greater than 1.

[0104] Digital signal processors (DSPs) are used to process digital signals. Besides digital image signals, they can also process other digital signals. For example, when electronic device 400 is selecting a frequency, the DSP is used to perform Fourier transforms on the frequency energy.

[0105] Video codecs are used to compress or decompress digital video. Electronic device 400 may support one or more video codecs. Thus, electronic device 400 can play or record video in various encoding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.

[0106] An NPU (Neural Processing Unit) is a neural network (NN) computing processor that, by borrowing the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, rapidly processes input information and can continuously learn on its own. NPUs enable intelligent cognitive applications in electronic devices, such as image recognition, facial recognition, speech recognition, and text understanding.

[0107] The external storage interface 420 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 400. The external memory card communicates with the processor 410 through the external storage interface 420 to perform data storage functions. For example, music, video, and other files can be saved on the external memory card.

[0108] Internal memory 421 can be used to store computer executable program code, which includes instructions. Processor 410 executes various functional applications and data processing of electronic device 400 by running the instructions stored in internal memory 421. Internal memory 421 may include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function (such as sound playback, image playback, etc.), etc. The data storage area may store data created during the use of electronic device 400 (such as audio data, phonebook, etc.). Furthermore, internal memory 421 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc.

[0109] Electronic device 400 can implement audio functions such as music playback and recording through audio module 470, speaker 470A, receiver 470B, microphone 470C, headphone jack 470D, and application processor.

[0110] The audio module 470 is used to convert digital audio information into analog audio signal output, and also to convert analog audio input into digital audio signal. The audio module 470 can also be used for encoding and decoding audio signals. In some embodiments, the audio module 470 may be located in the processor 410, or some functional modules of the audio module 470 may be located in the processor 410.

[0111] The speaker 470A, also known as a "loudspeaker," is used to convert audio electrical signals into sound signals. Electronic device 400 can listen to music or make hands-free calls through the speaker 470A.

[0112] The receiver 470B, also known as the "earpiece," is used to convert audio electrical signals into sound signals. When the electronic device 400 answers a telephone call or voice message, the receiver 470B can be brought close to the listener's ear to hear the voice.

[0113] Microphone 470C, also known as a "microphone" or "voice transducer," is used to convert sound signals into electrical signals. When making a phone call or sending a voice message, the user can speak by bringing their mouth close to microphone 470C, inputting the sound signal into microphone 470C. Electronic device 400 may have at least one microphone 470C. In some embodiments, electronic device 400 may have two microphones 470C, which, in addition to collecting sound signals, can also perform noise reduction. In other embodiments, electronic device 400 may have three, four, or more microphones 470C, which can collect sound signals, reduce noise, identify the sound source, and perform directional recording, etc.

[0114] The 470D headphone jack is used to connect wired headphones. The 470D headphone jack can be a USB 430 interface or a 3.5mm Open Mobile Terminal Platform (OMTP) standard interface, a CTIA (Cellular Telecommunications Industry Association of the USA) standard interface.

[0115] Pressure sensor 480A is used to sense pressure signals and convert them into electrical signals. In some embodiments, pressure sensor 480A can be disposed on display screen 494. There are many types of pressure sensors 480A, such as resistive pressure sensors, inductive pressure sensors, and capacitive pressure sensors. A capacitive pressure sensor may include at least two parallel plates with conductive material. When force is applied to pressure sensor 480A, the capacitance between the electrodes changes. Electronic device 400 determines the pressure intensity based on the change in capacitance. When a touch operation is applied to display screen 494, electronic device 400 detects the touch operation intensity based on pressure sensor 480A. Electronic device 400 can also calculate the touch position based on the detection signal from pressure sensor 480A. In some embodiments, touch operations applied to the same touch position but with different touch operation intensities can correspond to different operation commands. For example: when a touch operation with an intensity less than a first pressure threshold is applied to the SMS application icon, a command to view an SMS is executed. When a touch operation with an intensity greater than or equal to the first pressure threshold is applied to the SMS application icon, a command to create a new SMS is executed.

[0116] The magnetic sensor 480B includes a Hall effect sensor. The electronic device 400 can use the magnetic sensor 480B to detect the opening and closing of the flip cover. In some embodiments, when the electronic device 400 is a flip phone, the electronic device 400 can detect the opening and closing of the flip cover based on the magnetic sensor 480B. Then, based on the detected opening and closing state of the cover or the flip cover, features such as automatic unlocking of the flip cover can be set.

[0117] The proximity sensor 480C may include, for example, a light-emitting diode (LED) and a light detector, such as a photodiode. The LED may be an infrared LED. The electronic device 400 emits infrared light outward through the LED. The electronic device 400 uses the photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that an object is near the electronic device 400. When insufficient reflected light is detected, the electronic device 400 can determine that no object is near the electronic device 400. The electronic device 400 may use the proximity sensor 480C to detect when a user holds the electronic device 400 close to their ear for a phone call, so as to automatically turn off the screen to save power. The proximity sensor 480C can also be used in holster mode and pocket mode for automatic unlocking and locking of the screen.

[0118] The ambient light sensor 480F is used to sense the brightness of ambient light. Electronic device 400 can adaptively adjust the brightness of its display screen 494 based on the sensed ambient light level. The ambient light sensor 480F can also be used to automatically adjust the white balance when taking a picture. The ambient light sensor 480F can also work in conjunction with the proximity sensor 480C to detect whether electronic device 400 is in a pocket, preventing accidental touches.

[0119] The fingerprint sensor 480D is used to collect fingerprints. The electronic device 400 can utilize the characteristics of the collected fingerprints to achieve fingerprint unlocking, accessing application locks, taking photos with fingerprints, answering calls with fingerprints, etc.

[0120] Touch sensor 480E, also known as a "touch panel," can be located on display screen 494. The touch sensor 480E and display screen 494 together form a touchscreen, also known as a "touchscreen." Touch sensor 480E detects touch operations applied to or near it. The touch sensor can transmit 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 display screen 494. In other embodiments, touch sensor 480E may also be located on the surface of electronic device 400, in a different position than display screen 494.

[0121] Buttons 490 include a power button, volume buttons, etc. Buttons 490 can be mechanical buttons or touch-sensitive buttons. Electronic device 400 can receive button input and generate key signal inputs related to user settings and function control of electronic device 400.

[0122] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the electronic device. In other embodiments of this application, the electronic device may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0123] The screen control method provided in the embodiments of this application will be described in detail below with reference to the accompanying drawings.

[0124] As mentioned above, the screen protector's application status determines which performance parameters are used for more accurate screen control; therefore, accurately determining the screen protector's application status is crucial. In some embodiments, the screen protector's application status can be determined using at least one of the following two methods (i.e., Method A and Method B):

[0125] Method A: Consider the protective film's structure and perform corresponding detection processing to automatically identify the screen's film application status based on the detection results.

[0126] It is understood that some protective films may have structural characteristics. Therefore, in this application embodiment, a corresponding detection method can be set for the structural characteristics of the protective film to detect whether the screen is covered with a protective film with such structural characteristics.

[0127] For example, in this application embodiment, a protective film with a preset film structure is provided. The screen control method in this application embodiment can automatically identify whether an electronic device is covered with the aforementioned protective film with the preset film structure. When the protective film is covered, the screen of the electronic device can be controlled more accurately to maintain the screen's performance. It is understood that the preset film structure may be a protective film innovatively proposed in this application embodiment. It should be noted that the methods in various embodiments of this application are based on the structural characteristics of the protective film to identify the film application status. Therefore, in addition to detecting whether a protective film with a preset film structure is covered on the screen, it can also detect whether a protective film with other structural characteristics is covered on the screen; this is not limited.

[0128] Method B: Determine the screen protector status by obtaining the screen protector status manually entered by the user.

[0129] In some embodiments, in addition to automatically recognizing the screen protector application status, the electronic device can also obtain the screen protector application status manually input by the user. For example, assuming the screen protector used by the user has no obvious structural characteristics, the electronic device may not be able to accurately recognize the application status. For instance, it may not be able to recognize whether a screen protector is applied, or it may recognize that a screen protector is applied but not what type of screen protector it is. In this case, the electronic device can provide an entry point on the interface for inputting the screen protector application status, and obtain the application status input by the user in this entry point. For example, it can obtain the screen protector type manually input. The electronic device then determines the corresponding first performance parameter based on the screen protector type and controls the screen based on the first performance parameter.

[0130] Figure 5 This is a flowchart illustrating a screen control method provided in an embodiment of this application. The method specifically includes the following steps:

[0131] S501: The electronic device performs detection processing on the screen corresponding to the preset membrane structure.

[0132] It is understood that in this embodiment, the protective film has a preset film structure. Because the protective film has a preset film structure, applying it to the screen will cause some data collected by the electronic device to differ from the data collected when the protective film is not applied. For example, the data collected by the ambient light sensor, camera, or touch sensor in the electronic device will differ from the data collected when the protective film is not applied. Therefore, data detection processing corresponding to the preset film structure can be performed to determine whether a protective film is applied to the screen.

[0133] In some embodiments, the preset film structure may include preset changes to the appearance, shape, and internal structure of the protective film. For example, at least one preset film structure may be used, such as creating a cutout at a preset location on the protective film, setting a preset mark on the external structure of the protective film, or setting a special coating inside the protective film. The aforementioned preset film structure can be used to help electronic devices identify whether a protective film is applied to the screen. Specifically, the electronic device can perform corresponding detection on the preset film structure and determine the screen's protective film application status based on the detection results.

[0134] For example, setting a preset mark on the outer structure of the protective film can include patterns, text, symbols, etc., printed on the protective film. Specifically, patterns, text, symbols, etc., can be printed on the protective film using screen printing, which refers to setting patterns, text, symbols, etc., on the surface of the protective film using special inks or pigments through a screen printing process.

[0135] S502: Determine the screen protector status based on the test results.

[0136] In some embodiments, the screen protector application status may include: no screen protector, screen protector with a screen protector, or at least one of the following screen protector types: screen protector with no screen protector, screen protector with a screen protector with a screen protector with a screen protector with a screen protector of a specific type.

[0137] In some embodiments, protective films can be classified according to their functions to obtain different types of protective films, such as privacy protective films, blue light blocking protective films, tempered glass films, etc.

[0138] In other embodiments, protective films can also be classified according to their thickness, material, structure, and coating. This application does not limit the classification method for protective film types.

[0139] In one example, when a screen protector is applied, a pre-defined film structure on the protector causes the sensor readings on the electronic device to differ from those when the screen is unprotected. For instance, the pre-defined film structure can cause the ambient light sensor to detect different ambient light levels before and after the protector is applied. Therefore, the electronic device can determine the screen protector status by observing changes in sensor readings, such as whether a protector is applied or what type of protector is being used.

[0140] In another example, when a screen protector is applied, the pre-defined film structure on the protector causes the image captured by the camera on the electronic device to be different from the image captured by the camera when the screen is not covered. Therefore, the electronic device can determine the screen protector status by observing the changes in the images captured by the camera.

[0141] In some embodiments, the pre-set membrane structure may be different for different types of protective films. For example, the cutout positions may be different for different types of protective films; or the pre-set markings on the protective films may be different for different types of protective films; or the coatings inside the protective films may be different for different types of protective films.

[0142] In one possible implementation, the electronic device includes at least two ambient light sensors, and the preset film structure of the protective film is set based on the positions of the ambient light sensors. Specifically, the protective film has first preset positions corresponding to the at least two ambient light sensors respectively; different first preset positions have different degrees of occlusion of ambient light; the ambient light sensors are used to detect the ambient light at their corresponding first preset positions. The electronic device obtains light intensity values ​​by detecting ambient light through the at least two ambient light sensors, and determines the screen's film application status based on the difference between the light intensity values ​​detected by the at least two ambient light sensors.

[0143] For example, the different degrees of shading of ambient light at different first preset positions on the protective film can be achieved in at least one of the following ways:

[0144] Method 1: The protective film has a cutout at one of the multiple preset positions. Ambient light will directly illuminate the ambient light sensor corresponding to the cutout. Therefore, the cutout cannot block the ambient light. However, other preset positions on the protective film, excluding the cutout, will block the ambient light. That is, different preset positions on the protective film achieve different degrees of ambient light blocking.

[0145] Figure 6 This is a schematic diagram of an ambient light sensor distribution provided in an embodiment of this application. Figure 7 This is a schematic diagram of the structure of a protective film provided in an embodiment of this application. Figure 8 The embodiments provided in this application will Figure 7 The diagram shows a protective film applied to a screen. Figure 6 The diagram illustrates the distribution of the two ambient light sensors (i.e., ambient light sensor 601 and ambient light sensor 602) on the screen when no screen protector is applied. Figure 7 The protective film shown also has two first preset positions, namely 701 and 702. The two first preset positions correspond to the positions of the two ambient light sensors respectively. The first preset position 701 corresponding to the ambient light sensor 601 is hollowed out, that is, the protective film has a hollowed-out part 701a, so that the degree of occlusion of ambient light is different at the first preset positions of different positions.

[0146] Figure 8 In the diagram, dashed and solid lines are used to illustrate whether the protective film obstructs or does not obstruct the ambient light sensor. For example... Figure 8 As shown, after the protective film is applied to the screen, the ambient light sensor 601 is not obstructed because it corresponds to the cutout portion 701a, and is therefore marked with a solid line. The ambient light sensor 602, however, is obstructed by the protective film and is therefore distinguished by a dashed line.

[0147] like Figure 8 As shown, ambient light directly illuminates ambient light sensor 601. In this case, ambient light sensor 601 receives the same ambient light as when the screen is not covered with a protective film. However, for ambient light sensor 602, ambient light passes through a protective film before reaching it. Due to the protective film's incomplete light transmission, it obstructs the light, causing the ambient light received by ambient light sensor 601 and ambient light sensor 602 to differ, resulting in different light intensity values ​​detected by them. Electronic devices can determine whether a protective film is applied to the screen based on the difference in light intensity values ​​detected by ambient light sensor 602 and ambient light sensor 601. This difference can be the numerical value of the light intensity detected by ambient light sensor 602 and ambient light sensor 601.

[0148] Electronic devices can also have three or more ambient light sensors, and the protective film can have one or more cutouts, with the number of cutouts being less than the number of ambient light sensors. For example, an electronic device can have three ambient light sensors, and the protective film can have one or two cutouts. The positions of the cutouts correspond to the positions of the ambient light sensors on the electronic device, so that the degree of occlusion of ambient light by the cutouts is less than the degree of occlusion of ambient light by other positions on the protective film. The electronic device can then determine the screen protector application status by the difference between the light intensity values ​​detected by at least two ambient light sensors.

[0149] Method Two: The first preset positions of the protective film correspond to the positions of the ambient light sensors. Different types of coatings can be applied to different first preset positions on the protective film, each with varying degrees of ambient light occlusion. Therefore, if the screen is covered with this protective film, the degree of occlusion by the corresponding ambient light sensors will differ depending on the first preset position of the coating. Thus, the electronic device can determine the screen's film application status by analyzing the differences in light intensity values ​​detected by at least two ambient light sensors.

[0150] Figure 9 This is a schematic diagram of another protective film provided in an embodiment of this application. Figure 10 The embodiments provided in this application will Figure 9 The diagram shows a protective film applied to a screen. Figure 9In this process, the protective film has two coatings, and these two coatings have different effects on ambient light. For example, when ambient light passes through different coatings on the protective film, the degree of obstruction varies. Figure 10 As shown, the phone has two ambient light sensors. Figure 9 When a protective film is applied to an electronic device, the protective film coating on ambient light sensor 1001 is different from that on ambient light sensor 1002. Therefore, the ambient light received by ambient light sensors 1001 and 1002 is different, resulting in different detection results for light intensity. Consequently, the difference in light intensity detected by ambient light sensors 1001 and 1002 allows the electronic device to determine whether a protective film is applied to the screen.

[0151] The protective film can have three or more coatings, and the electronic device can have two or more ambient light sensors, provided that at least two of the ambient light sensors have different protective film coatings. For example, the protective film has three coatings, and the electronic device has three ambient light sensors. The ambient light sensors under the protective film with different coatings are different. Alternatively, any one coating can have two ambient light sensors under it, and one of the remaining two coatings can have one ambient light sensor under it.

[0152] Method 3: The type of coating can be the same at different first preset positions on the protective film, but the thickness of the coating can vary at different first preset positions. Different coating thicknesses result in different levels of ambient light occlusion. Therefore, if this protective film is applied to the screen, the degree of ambient light occlusion at the first preset positions with different coating thicknesses will differ for the corresponding ambient light sensors. Thus, the electronic device can determine the screen's film application status by analyzing the differences in light intensity values ​​detected by at least two ambient light sensors.

[0153] For example, the protective film 1 has a coating 1. The coating thickness in region 1 of the protective film 1 is 1 mm, and the coating thickness in region 2 of the protective film 1 is 4 mm. Different coating thicknesses result in different levels of light blocking for ambient light. When the protective film 1 is applied to the screen, ambient light sensor 1 is located below region 1, and ambient light sensor 2 is located below region 2. There is a difference between the light intensity values ​​detected by ambient light sensor 1 and ambient light sensor 2, thus confirming that a protective film is applied to the screen.

[0154] Furthermore, electronic devices can not only determine whether a protective film is applied to the screen by the difference in light intensity, but also determine the type of protective film applied.

[0155] In one example, assume that different types of protective films use the same coating (i.e., coating category), but the coating thickness varies in different areas, resulting in different levels of light blocking for different areas. When different types of protective films are applied to the screen, the light intensity values ​​obtained by at least two ambient light sensors will differ, allowing the screen to determine the type of protective film based on these differences. For example, protective film 1 and protective film 2 are different types of protective films, both using the same type of coating. Protective film 1 has a coating thickness of 1 mm in area 1 and 4 mm in area 2, while protective film 2 has a coating thickness of 1 mm in area 2 and 6 mm in area 2. These different coating thicknesses result in different levels of light blocking for different areas. When protective films 1 and 2 are applied to an electronic device, ambient light sensor 1 is located below area 1, and ambient light sensor 2 is located below area 2. When protective film 1 is applied to an electronic device, the difference between the light intensity value detected by ambient light sensor 1 and the light intensity value detected by ambient light sensor 2 is recorded as difference 1. When protective film 2 is applied to an electronic device, the difference between the light intensity value detected by ambient light sensor 1 and the light intensity value detected by ambient light sensor 2 is recorded as difference 2. Difference 1 and difference 2 are different. Difference 1 represents that the film type is protective film 1, and difference 2 represents that the film type is protective film 2. Therefore, the film type of the protective film applied to the screen is determined by the different differences.

[0156] In another example, when two types of coatings are applied to the protective film, the at least two coating types used in the different film types are different. These different coating types have different levels of light blocking for ambient light, and different ambient light sensors can be positioned under each type of coating. When different types of protective films are applied to the screen, the differences in light intensity values ​​obtained by the at least two ambient light sensors during ambient light detection are different, and the film type of the protective film can be determined by these differences. For example, protective film 1 has coatings 1 and 2, and protective film 2 has coatings 3 and 4. Protective film 1 and protective film 2 are different film types. When protective film 1 is applied to an electronic device, coating 1 is applied above ambient light sensor 1, and coating 2 is applied above ambient light sensor 2. When protective film 2 is applied to an electronic device, coating 3 is applied above ambient light sensor 1, and coating 4 is applied above ambient light sensor 2. When protective film 1 is applied to an electronic device, the difference between the light intensity value detected by ambient light sensor 1 and the light intensity value detected by ambient light sensor 2 is recorded as difference 1. When protective film 2 is applied to an electronic device, the difference between the light intensity value detected by ambient light sensor 1 and the light intensity value detected by ambient light sensor 2 is recorded as difference 2. Difference 1 and difference 2 are different. Difference 1 represents that the film type is protective film 1, and difference 2 represents that the film type is protective film 2. Therefore, the film type of the protective film applied to the screen is determined by the different differences.

[0157] In another possible implementation, the protective film has preset touch recognition points and wires. The wires have a first endpoint and a second endpoint, and the first endpoint and the touch recognition point correspond to the same position on the screen. The electronic device includes a touch sensor disposed on the screen. The electronic device performs touch detection on a second preset position on the screen using the touch sensor. The second preset position corresponds to the second endpoint of the wire; that is, the position of the second endpoint of the wire on the screen is the second preset position. The electronic device can determine the screen protector application status based on the touch detection result at the second preset position.

[0158] In this embodiment, a touch recognition point refers to a touch location set on the protective film. When a user touches a touch recognition point, the touch sensor detects the touch at the corresponding screen location and converts the touch at that location into an electrical signal. The number of touch recognition points can be one or more, and they can be located anywhere on the screen, such as the screen edge. The touch area of ​​the touch recognition point on the protective film can be set to any shape, such as a circle, square, or triangle. The size of the touch recognition point can be arbitrary, for example, 4*4 millimeters. Since the wires are set on the protective film, to prevent them from obstructing the user's view and affecting the user experience, the wires can be made of transparent material, and one or more wires can be set within the protective film to connect to the touch recognition points.

[0159] In this embodiment, when a user touches a touch recognition point on the protective film, the touch sensor converts the touch at the corresponding screen location into an electrical signal. This electrical signal is then transmitted through a wire to the other end of the wire, i.e., the second endpoint. The location of the second endpoint on the screen is the second preset position. The second preset position can be understood as a starting point on the screen. When the touch recognition point is touched, an electrical signal is received at the second preset position via the wire. If an electrical signal is detected at the second preset position on the screen, it indicates that a protective film is applied to the screen. The size of the second preset position can be arbitrary, for example, 2mm*2mm. There can be one or more second preset positions, and they can be located anywhere on the screen, such as the screen edge.

[0160] Figure 11 This is a schematic diagram of another protective film provided in an embodiment of this application. Figure 12 The embodiments provided in this application will Figure 11 The diagram shows a protective film applied to a screen. Figure 11 In the case of a screen protector, a touch recognition point 1101 and a wire 1102 are provided. When the screen is not covered by a protective film, the touch sensor detects the touch location as the user's touch position on the screen, and the touch sensor can convert the touch at that location into an electrical signal. However... Figure 12 In the middle, when Figure 11When the protective film is applied to the screen, when the user touches the touch recognition point 1101, the touch sensor receives the user's touch on the touch recognition point 1101, converts the touch into an electrical signal, and transmits the electrical signal to the second preset position 1103 on the screen through the wire 1102, so that the screen position where the second preset position 1103 is located can receive the electrical signal. Therefore, when the screen detects both the electrical signal of the second preset position 1103 and the electrical signal generated by the touch recognition point 1101, the electronic device can determine that the screen is covered with a protective film.

[0161] In other examples, the protective film may contain a touch recognition point and multiple wires. That is, one touch recognition point in the protective film is connected to multiple wires, corresponding to multiple second preset positions on the screen, the number of which is the same as the number of wires. When a user touches the touch recognition point on the protective film, multiple second preset positions on the screen can receive electrical signals. When the screen simultaneously detects electrical signals from at least one second preset position and the electrical signal generated by the touch recognition point, it is determined that a protective film is applied to the screen.

[0162] In other examples, Figure 13 This is a schematic diagram illustrating the application of two other protective films on a screen, as provided in the embodiments of this application. Figure 13 Taking (a) as an example, the protective film can have multiple touch recognition points 1301, and each touch recognition point 1301 is connected to a wire 1302. The number of touch recognition points 1301 is the same as the number of wires 1302. When the user touches any touch recognition point 1301 on the protective film, the other end of the wire 1302 can receive an electrical signal at the corresponding second preset position 1303 on the screen.

[0163] After different types of protective films are applied to the screen, the second preset position on the screen can be different, and the electronic device can determine the type of protective film applied to the screen by receiving electrical signals from different second preset positions on the screen. Figure 12 and Figure 13 The protective film applied to the screen in (b) is a different type of protective film. Figure 12 The position of the second preset position 1103 on the screen is shown. Figure 13(b) shows the position of the second preset position 1304 on the screen. When the user touches the touch recognition point 1101 and the second preset position 1103 on the screen receives an electrical signal, the position of the second preset position 1103 on the screen can be detected to determine that the screen is covered with a protective film 1. When the user touches the touch recognition point 1305 and the second preset position 1304 on the screen receives an electrical signal, the position of the second preset position 1304 on the screen can be detected to determine that the screen is covered with a protective film 2.

[0164] In another possible implementation, the surface of the protective film can also be set with a preset mark. When the protective film is applied to the screen and the electronic device controls the camera to take a picture, the preset mark can be located within the field of view of the camera. The preset mark can be a pattern, text, symbol, etc., and can be displayed in invisible light, such as infrared light. Since the camera is used by the user to take pictures normally, the image obtained is under visible light. Therefore, setting the preset mark to be displayed in invisible light can prevent the preset mark from appearing in the user's photos, improving the user experience. Subsequently, the electronic device controls the camera to take an image in invisible light and detects whether the captured image includes the preset mark, obtaining the mark detection result. Based on the mark detection result, the screen protector application status is determined. The electronic device can recognize the preset mark when the camera is turned on; for example, after the camera is turned on, the preset mark is detected within the camera's field of view using infrared light. When the electronic device is a mobile phone, the camera can be a front-facing camera.

[0165] Figure 14 This is a schematic diagram of another protective film provided in an embodiment of this application. Figure 15 The embodiments provided in this application will Figure 14 The diagram shows a protective film applied to a screen. Figure 14 In the example of the default identifier 1401, such as... Figure 15 As shown, when Figure 14 When the protective film is applied to the screen, the electronic device detects concentric circles 1401 within the camera's field of view under invisible light, thus confirming that the screen is in a protective film application state.

[0166] Different types of protective films may have different preset markings, and electronic devices can determine the type of protective film corresponding to different preset markings by recognizing the different preset markings. Figure 16 This is a schematic diagram of another protective film provided in an embodiment of this application. Figure 14 and Figure 16 The protective films shown are of different types. Figure 14 The protective film 1 is marked with concentric circles 1401. Figure 16 The protective film 2 is marked with a triangle 1601. Protective film 1 and protective film 2 are different types of protective films. When... Figure 14 When the protective film 1 is applied to the screen, the electronic device, under invisible light, detects concentric circles 1401 within the camera's field of view, thus confirming that the protective film applied to the screen at this time is protective film 1. Figure 16 When the protective film 2 is applied to the screen, the electronic device recognizes the presence of triangle 1601 within the camera's field of view under invisible light, thus determining that the protective film applied to the screen at this time is the protective film 2.

[0167] S503: When the screen is in the state of applying a protective film, the electronic device controls the screen based on the first performance parameter corresponding to the film type.

[0168] In some embodiments, each film type has its own corresponding first performance parameter. After determining the protective film to be applied to the screen and the type of the applied protective film, the electronic device determines the first performance parameter corresponding to that film type and controls the screen through the first performance parameter. In this embodiment, since different types of protective films have different effects on screen performance, the first performance parameter corresponding to different film types can be determined by identifying the film type. Even if different types of protective films are applied to the screen, the screen performance can reach or approach the performance of the screen without a protective film, thus improving screen performance and enhancing the user experience.

[0169] In some embodiments, protective films of the same type may use the same first performance parameter. For example, if protective film 1 and protective film 2 belong to the same type, the first performance parameter used by the screen when protective film 1 is applied to the screen may be the same as the first performance parameter used by the screen when protective film 2 is applied to the screen.

[0170] For example, when different types of protective films have different effects on screen performance, the first performance parameter corresponding to different types of protective films can be different. For instance, protective films can be classified by their thickness. That is, different types of protective films have different thicknesses. Suppose that a thinner protective film has less impact on the screen's touch performance than a thicker protective film. Therefore, the first touch performance parameter in the first performance parameter corresponding to a thinner protective film is different from the first touch performance parameter corresponding to a thicker protective film.

[0171] For example, when different types of protective films have the same impact on screen performance, the first performance parameter corresponding to different types of protective films can be the same. For instance, protective film 1 and protective film 2 belong to different film types. Assuming that the light transmittance of protective film 1 and protective film 2 is the same, then protective film 1 and protective film 2 have the same impact on the ambient light sensor detection of the electronic device. Therefore, protective film 1 and protective film 2 can correspond to the same first screen brightness adjustment parameter. It should be understood that, in the embodiments of this application, the first performance parameter corresponding to different types of protective films can be determined by the impact of different types of protective films on screen performance.

[0172] In the above embodiments, the performance of the screen may be affected differently when different types of protective films are applied to the screen. In this embodiment, even when different types of protective films are applied to the screen, the electronic device determines the corresponding first performance parameter by the film type of the protective film currently applied to the screen, and controls the screen by the first performance parameter, so that the screen performance can still reach or approach the screen performance in the uncoated state even when different types of protective films are applied to the screen.

[0173] In some embodiments, the electronic device determines a first performance parameter based on a second performance parameter and performance influencing factors corresponding to the protective film, wherein the performance influencing factors are those factors that affect the performance of the screen.

[0174] Taking the first performance parameter as the first screen brightness adjustment parameter as an example, performance influencing factors may include: the impact of the protective film on the light intensity detection of the ambient light sensor on the electronic device. Specifically, due to reasons such as the protective film not being completely transparent, the ambient light intensity detected by the ambient light sensor on the electronic device after the protective film is applied differs from the actual ambient light intensity. This results in a discrepancy between the screen brightness adjusted based on the light intensity after the protective film is applied and the screen brightness corresponding to the actual ambient light, thus affecting the screen's brightness adjustment performance.

[0175] Taking the first performance parameter as the first touch performance parameter as an example, performance influencing factors can include: the impact of the protective film on the touch signal. That is, the touch signal generated when touching the screen with a protective film applied is less than the touch signal generated when touching the screen without a protective film. When the touch signal is lower, the electronic device will not be able to respond to the touch, affecting the screen's touch performance. The touch signal can also be referred to as an electrical signal.

[0176] Taking the first performance parameter as the stylus performance parameter as an example, performance influencing factors can include: the impact of the protective film on the screen's reception of the stylus signal. That is, when a protective film is applied to the screen, the signal received by the screen from the stylus is less than the signal received by the screen from the stylus when no protective film is applied, which may cause the electronic device to be unable to respond to the stylus touch, thus affecting the screen's stylus performance.

[0177] In this embodiment, after the screen is covered with a protective film, the electronic device can determine the first performance parameter corresponding to the protective film through the second performance parameter and the performance influencing factors corresponding to the protective film, and control the screen through the first performance parameter. The screen performance can reach or approach the screen performance in the uncovered state, thereby improving the screen performance.

[0178] In other embodiments, over time, the protective film applied to the screen may be subject to external wear, resulting in a decrease in its thickness and surface smoothness, or aging of its coating. This causes the protective film's impact on screen performance to change over time. In this case, both the protective film's usage time and its impact on screen performance can be used as the basis for adjusting the first performance parameter. That is, the electronic device determines the first performance parameter based on the second performance parameter, the performance impact factors corresponding to the protective film, and the protective film's usage time.

[0179] In one possible implementation, taking a first screen brightness adjustment parameter as the first performance parameter, the screen brightness adjustment parameter can be characterized by a screen brightness adjustment curve. The electronic device can adaptively adjust the screen brightness according to the ambient light intensity, that is, different ambient light intensities correspond to different screen brightness. However, after a protective film is applied to the screen, it affects the transmittance of ambient light. Therefore, the light intensity detected by the ambient light sensor when the screen is covered does not match the actual ambient light intensity, resulting in a mismatch between the adjusted screen brightness after the film is applied and the screen brightness corresponding to the actual ambient light intensity. Therefore, the light transmittance corresponding to the protective film can be used as a performance influencing factor. The initial screen brightness adjustment parameter used when the screen is not covered (i.e., the second screen brightness adjustment parameter) can be adjusted based on the light transmittance of the protective film to obtain the suitable screen brightness adjustment parameter after the screen is covered (i.e., the first screen brightness adjustment parameter).

[0180] Furthermore, different types of protective films can have different light transmittance. Electronic devices can adjust the second screen brightness adjustment parameters based on the light transmittance corresponding to the film type to obtain the first screen brightness adjustment parameters corresponding to the film type. The specific process can be: first, determine the type of protective film; then, determine the light transmittance corresponding to that film type; and then adjust the second screen brightness adjustment parameters based on the light transmittance to obtain the first screen brightness adjustment parameters corresponding to that film type. It should be understood that if different types of protective films have the same light transmittance, the first screen brightness adjustment parameters corresponding to different types of protective films can also be the same.

[0181] Specifically, the light transmittance corresponding to the film type of the protective film can be determined based on the light transmittance of different manufacturers for the same film type, and the final light transmittance corresponding to the film type used in this application embodiment can be determined.

[0182] In some embodiments, for any film type, the average light transmittance of protective films of that type produced by different manufacturers can be calculated to obtain the final light transmittance corresponding to that film type. For example, the light transmittance of protective films of the same type produced by multiple manufacturers can be collected, the maximum and minimum values ​​can be removed, and the average value can be calculated using the remaining light transmittance as the final light transmittance corresponding to that film type.

[0183] Taking privacy screen protectors as an example, assuming that the light transmittance of the privacy screen protector produced by manufacturer A is 30%, the light transmittance of the privacy screen protector produced by manufacturer B is 40%, the light transmittance of the privacy screen protector produced by manufacturer C is 37%, the light transmittance of the privacy screen protector produced by manufacturer D is 45%, and the light transmittance of the privacy screen protector produced by manufacturer E is 50%, we can take the average value to obtain the average light transmittance of privacy screen protectors on the market (30%+40%+37%+45%+50%) / 5 = 40.4%, and take this average value of 40.4% as the light transmittance of the film type privacy screen protector.

[0184] In other embodiments, for any film type, the electronic device can represent the light transmittance of protective films of the same film type produced by multiple manufacturers using a normal distribution function, and then use the center value of the normal distribution function as the light transmittance corresponding to that film type.

[0185] In the embodiments of this application, the method of determining the light transmittance corresponding to the film type of the protective film is not limited.

[0186] Figure 17 This is a comparative diagram of the first screen brightness adjustment parameters and the second screen brightness adjustment parameters provided in an embodiment of this application. Figure 17The two coordinate axes in the diagram can be denoted as the first coordinate axis and the second coordinate axis. The first coordinate axis represents the light intensity in the ambient light, and the second coordinate axis represents the screen brightness corresponding to each light intensity. Taking the screen brightness adjustment parameter as a representation through the screen brightness adjustment curve as an example, the first screen brightness adjustment parameter corresponding to the film type is obtained by adjusting the second screen brightness adjustment parameter through light transmittance. The process can be as follows: After determining the light transmittance corresponding to the film type, the following calculation is performed: First screen brightness adjustment curve = Second screen brightness adjustment curve * (2 - T%), where T% represents the light transmittance, and the first screen brightness adjustment curve is finally determined.

[0187] In some embodiments, the electronic device performs parameter adjustment processing in stages based on light transmittance to gradually adjust the second screen brightness adjustment parameter to the first screen brightness adjustment parameter. Before proceeding to the next stage of parameter adjustment, the electronic device controls the screen brightness based on the currently adjusted screen brightness adjustment parameter. The second screen brightness adjustment curve can be adjusted to the first screen brightness adjustment curve in one or more stages, and each adjustment can be based on either the second or first screen brightness adjustment curve. Alternatively, the second screen brightness adjustment curve can be adjusted directly to the first screen brightness adjustment curve without stages.

[0188] For example, such as Figure 17 As shown, adjusting the screen brightness adjustment curve mainly refers to adjusting the brightness values ​​of various ambient light intensities along the second coordinate axis. After determining the first screen brightness adjustment curve, the electronic device can adjust the second screen brightness adjustment curve to match the first screen brightness adjustment curve in stages. In the first screen brightness adjustment curve, the brightness values ​​corresponding to various ambient light intensities along the second coordinate axis are the target brightness values. During the staged adjustment process, each stage adjusts according to a different proportion of the target brightness value, gradually increasing the proportion to progressively adjust the brightness values ​​along the second coordinate axis to the target brightness value.

[0189] The following is an illustration of the adjustment process in three stages.

[0190] In the first stage, adjustments can be made in increments of 10%. That is, the brightness value of the second screen brightness adjustment curve in the second coordinate axis direction is adjusted to 10% of the target brightness value to obtain the screen brightness adjustment curve after the first stage adjustment. Then, based on the screen brightness adjustment curve after the first stage adjustment, the brightness value corresponding to the current ambient light intensity is determined, and the screen brightness is controlled according to this brightness value.

[0191] In the second stage, adjustments can be made in increments of 50%, that is, the brightness value along the second coordinate axis is adjusted to 50% of the target brightness value to obtain the screen brightness adjustment curve after the second stage adjustment. Then, based on this screen brightness adjustment curve after the second stage adjustment, the brightness value corresponding to the current ambient light intensity is determined, and the screen brightness is controlled according to this brightness value.

[0192] In the third stage, the brightness can be adjusted by 100%, that is, the brightness value in the second coordinate axis direction is finally adjusted to 100% of the target brightness value to obtain the screen brightness adjustment curve after the third stage adjustment. Then, based on the screen brightness adjustment curve after the third stage adjustment, the brightness value corresponding to the current ambient light intensity is determined, and the screen brightness is controlled according to the brightness value.

[0193] It is understandable that adjusting the screen brightness adjustment curve according to the above three stages can smoothly adjust the current display brightness of the screen during the process of adjusting performance parameters, avoiding sudden changes in screen brightness that may affect the user experience and also preventing damage to the screen caused by sudden changes in screen brightness.

[0194] In some embodiments, after recognizing a screen protector application indicating that a protective film is applied to the screen, a preset time can be waited before performing the aforementioned phased adjustment of the screen brightness curve. After the screen recognizes a protective film, the film may be readjusted by the user, and the screen's application status may change. For example, the screen may change from a protective film-applied state to an unapplied state, or the user may replace the applied film with a different type. The corresponding first screen brightness adjustment parameters are different for different screen protector application states. If the screen brightness is adjusted immediately after recognizing a protective film application, it will need to be readjusted again when the electronic device recognizes a new application status. Therefore, waiting a preset time after recognizing a protective film application before adjusting the screen brightness can prevent multiple adjustments to the screen brightness and avoid damage to the screen caused by sudden changes in screen brightness.

[0195] In other embodiments, before each stage of parameter adjustment processing, the electronic device re-identifies the screen protector status to obtain a re-identified screen protector status. If the re-identified screen protector status matches the previously identified screen protector status, the electronic device proceeds with the parameter adjustment processing for the current stage. That is, each time the screen brightness adjustment curve is adjusted in stages, the electronic device re-identifies the screen protector status, for example, identifying whether a screen protector is applied and its type, to determine if the screen protector type in the current stage is the same as the screen protector type identified in the previous stage. If the screen protector status is the same, the screen brightness adjustment curve continues to be adjusted. For example, if a screen protector is still applied in the current stage, and the screen protector type in the current stage is the same as the screen protector type identified in the previous stage, the screen brightness adjustment curve continues to be adjusted.

[0196] The method for recognizing the screen protector application status can be the same or different each time. For example, the recognition of the screen protector application status at each stage can be done through an ambient light sensor, or through a touch sensor, or through a camera; or the first stage of screen protector application status can be recognized through a touch sensor, the second stage through a camera, and the third stage through an ambient light sensor, etc.

[0197] For example, adjustments are made in three stages to illustrate the concept.

[0198] After determining the first screen brightness adjustment curve, the electronic device can adjust it in increments of 10%. That is, the brightness value of the second screen brightness adjustment curve in the second coordinate axis direction is adjusted to 10% of the target brightness value to obtain the screen brightness adjustment curve after the first stage adjustment. Then, based on the screen brightness adjustment curve after the first stage adjustment, the brightness value corresponding to the current ambient light intensity is determined, and the screen brightness is controlled according to this brightness value.

[0199] The electronic device re-identifies whether a screen protector is applied and its type. If a screen protector is applied, and the type of screen protector in the current stage is the same as the type identified in the previous stage, it is adjusted by 50%. That is, the brightness value in the second coordinate axis direction is adjusted to 50% of the target brightness value to obtain the screen brightness adjustment curve after the second stage adjustment. Then, based on this screen brightness adjustment curve, the brightness value corresponding to the current ambient light intensity is determined, and the screen brightness is controlled according to this brightness value. This process is repeated until the screen brightness adjustment curve is adjusted to the first screen brightness adjustment curve, that is, the brightness value in the second coordinate axis direction is adjusted to 100% of the target brightness value.

[0200] If, after adjusting by 10% and before adjusting by 50%, the electronic device detects that no protective film is applied, or if a protective film is applied but the type of the protective film in the current stage is different from the type of the protective film identified in the previous stage, then the screen brightness curve adjustment will stop, the screen brightness curve will be restored to the second screen brightness curve, and the screen brightness will be readjusted according to the second screen brightness adjustment curve.

[0201] In another possible implementation, when the first performance parameter is the first touch performance parameter and the second performance parameter is the second touch performance parameter, the performance influencing factors include touch performance influencing factors, which are the factors that affect the touch performance of the screen by the protective film. The touch sensitivity of the screen with the protective film applied when controlled by the first touch performance parameter is higher than the touch sensitivity of the screen with the protective film applied when controlled by the second touch performance parameter.

[0202] In this embodiment, touch performance parameters can refer to the performance parameters related to touching the screen. Figure 18 This is a comparative diagram of touch performance parameters provided in the embodiments of this application. Figure 18 In the table, rows RX represent receive electrodes, which receive electrical charges. Columns TX represent transmit electrodes, which are part of the screen and responsible for transmitting signals or generating electric fields. RX and TX are distributed across the screen. The screen can be divided horizontally into multiple rows, with one RX electrode per row, and vertically into multiple columns, with one TX electrode per column. The screen is then divided into multiple regions based on rows and columns. When a user touches a region, the touch signal value for that region is obtained. Figure 18 For example, the screen is divided into three rows (RX2-RX4) and three columns (TX2-TX4). The values ​​in TX2-TX4 and RX2-RX4 represent the touch signal values ​​corresponding to a specific row and column within the three rows and three columns. Specifically, TX2 and RX2 represent the position in the first row and first column on the screen. Figure 18 In (a), the touch signal value in column TX2 and row RX2 is 733, meaning 733 is the touch signal value generated when the user touches the position in the first row and first column of the screen. Figure 18 (a) in the text represents the touch performance without a protective film. Figure 18 Table (b) in the table characterizes the touch performance when the screen protector is applied. The values ​​in each row and column represent the touch signal values ​​generated when a user's finger or other object touches the screen. Figure 18 (a) and Figure 18Comparing (b) in the example of the TX3 and RX3, the touch signal without a screen protector is 1760, higher than the 1480 with a screen protector. This is because the thickness of the screen protector affects the touch signal. Touch signal and touch sensitivity are closely related; a highly sensitive screen responds quickly to touch signals. However, if the touch signal is low, the user's touch may not respond quickly, resulting in low sensitivity. Therefore, when a screen protector is applied, touch performance is affected. The touch sensitivity of a screen with a screen protector, controlled by the first touch performance parameter, will be higher than that controlled by the second touch performance parameter.

[0203] Furthermore, the first touch performance parameter includes a first touch response signal threshold, the second touch performance parameter includes a second touch response signal threshold, and the touch performance influencing factors include a first signal value, which is the expected touch signal value generated when the screen is touched with a protective film applied. The process by which the electronic device determines the first touch performance parameter through the second touch performance parameter and the touch performance influencing factors can be: the electronic device reduces the second touch response threshold based on the first signal value to obtain the first touch response threshold.

[0204] Specifically, the sensitivity of screen touch can be adjusted by changing the touch response signal threshold. For example, corresponding to... Figure 18 In (a) the touch signal value without a protective film, the touch response signal threshold can be set to 600. When the touch signal value reaches 600, any touch by the user on the screen can be responded to. And in the corresponding... Figure 18 In (b) with the protective film applied, if the touch response signal threshold is still set to 600, the touch signal value generated when only the screen positions where TX3 and RX3 are located are touched can exceed 600, while the touch signal values ​​generated in other positions on the screen do not exceed 600. This means that the user cannot respond when touching other positions on the screen besides the screen positions where TX3 and RX3 are located, and the touch sensitivity of the screen will decrease. At this time, the touch response signal threshold can be set to 200, so that the user's touch on the screen can be responded to, and the touch sensitivity of the screen is improved.

[0205] In some embodiments, the screen is covered with protective films of different types, and the expected touch signal values ​​generated when the screen is touched while covered may be different. Therefore, the touch response signal threshold adjusted based on the touch signal values ​​may be different.

[0206] In another possible implementation, when the first performance parameter includes a first stylus performance parameter and the second performance parameter includes a second stylus performance parameter, the performance influencing factors include stylus performance influencing factors. These stylus touch performance influencing factors are the factors that affect the screen's performance in relation to the stylus. The stylus touch sensitivity of a screen with a protective film applied, controlled using the first stylus performance parameter, is higher than the stylus touch sensitivity of a screen with a protective film applied, controlled using the second stylus performance parameter. Stylus performance parameters refer to performance-related parameters when the stylus touches the screen.

[0207] Understandably, after applying a screen protector, due to its thickness and other factors, the screen's reception of signals emitted by the stylus on the touchscreen can be affected. Therefore, continuing to control the screen using the second stylus performance parameters will result in a decrease in stylus touch sensitivity. However, by using the screen protector and determining the first stylus performance parameters based on its impact on stylus touch performance and the second stylus performance parameters, and then controlling the screen using these parameters, the stylus touch sensitivity when using the first stylus performance parameters on a screen with a screen protector is higher than when using the second stylus performance parameters on a screen with a screen protector. This allows the stylus performance with a screen protector to reach or approach the performance of a screen without a screen protector, thus improving both screen and stylus performance and enhancing the user experience.

[0208] Furthermore, the first stylus performance parameter includes a first weighting ratio coefficient, and the second stylus performance parameter includes a second weighting ratio coefficient. The first weighting ratio coefficient is the ratio between channels on the screen when the screen with a protective film is touched by the stylus, and the second weighting ratio coefficient is the ratio between channels on the screen when the screen without a protective film is touched by the stylus. Factors affecting stylus performance include differences in touch signals corresponding to the protective film, where the touch signal difference is the estimated difference between the stylus signals received by the channels before and after the screen is touched by the stylus before and after the protective film is applied. The process by which the electronic device determines the first stylus performance parameter using the second stylus performance parameter and factors affecting stylus performance can be as follows: the electronic device can adjust the second weighting ratio coefficient based on the touch signal difference to obtain the first weighting ratio coefficient.

[0209] For example, stylus performance parameters may include weighting coefficients between channels on the screen, such as the weighting coefficient between the touched channel and its adjacent channels. The weighting coefficient between channels on the screen refers to the coefficients used to weight the channel signals when locating the stylus touch position. Factors affecting stylus touch performance may include touch signal differences, which refer to the estimated difference between the stylus signals received by the touched channel and its adjacent channels before and after a protective film is applied to the screen.

[0210] As can be understood, taking a touchscreen as an example, the screen has multiple channels. When using a stylus, the electronic device receives signals emitted by the stylus on the touchscreen through different channels (referred to as "stylus signals"). When the stylus touches a certain channel, the touched channel and its adjacent channels can both receive the stylus signal. Furthermore, the electronic device can weight the signals received by the touched channel and its adjacent channels according to a weighted ratio coefficient, and determine the touch position of the stylus based on the weighted signal.

[0211] When no screen protector is applied, the system uses a factory-set second weighting factor to weight the signals from each channel on the screen to determine the stylus touch position. However, when a screen protector is applied, its thickness and other factors can affect the reception of stylus signals by at least some channels. For example, some channels on the screen may not receive a stylus signal or may receive a very low signal. If the second weighting factor is continued to be used to weight the signals received by each channel, the stylus touch position cannot be accurately determined.

[0212] Therefore, after the screen protector is applied, a first weighting ratio is obtained based on the difference in touch signals between the screen protector and the screen and the second weighting ratio coefficient. The stylus signals received by each channel after the screen protector is applied are weighted using the first weighting ratio coefficient, thereby more accurately determining the touch position of the stylus.

[0213] For example, suppose there are two adjacent channels on the screen, channel 1 and channel 2. When the screen is not covered with a protective film, touching channel 1 (the channel being touched) records the stylus signal value 1 received by channel 1 and the stylus signal value 2 received by channel 2 (the adjacent channel). The stylus signal values ​​1 and 2 are compared to obtain a first proportional coefficient. Similarly, when the screen is covered with a protective film, touching channel 1 records the stylus signal value 3 received by channel 1 and the stylus signal value 4 received by channel 2. The stylus signal values ​​3 and 4 are compared to obtain a second proportional coefficient. The proportional relationship between the first and second proportional coefficients represents the estimated difference in the stylus signals received by the channels before and after the protective film is applied; that is, the proportional relationship between the first and second proportional coefficients represents the touch signal difference among the factors affecting stylus performance. Subsequently, the second weighted proportional coefficient is adjusted based on the proportional relationship between the first and second proportional coefficients to obtain the first weighted proportional coefficient. The difference between the first proportional coefficient and the second proportional coefficient can also be used to represent the estimated difference between the stylus signals received by the channel before and after the protective film is applied and when the stylus is touched. That is, the difference between the first proportional coefficient and the second proportional coefficient is the difference in touch signals among the factors affecting stylus performance.

[0214] For example, when no protective film is applied, if a stylus touches channel 1 on the screen, the stylus signal value received by channel 1 is 100, and the stylus signal value received by channel 2 is 20. The ratio of the stylus signals received by channel 1 and channel 2 is 5:1. Assuming that the stylus touch performance is best when the ratio of the stylus signals received by channel 1 and channel 2 is 2:1, the ratio coefficient between channel 1 and channel 2 can be set to 2:5. That is, 2:5 is the second weight ratio coefficient when the screen is not covered with a protective film. However, when a screen protector is applied, and the stylus touches channel 1 on the screen, the stylus signal value received by channel 1 is 100, while the stylus signal value received by channel 2 is 10. The ratio of the stylus signals received by channel 1 and channel 2 is 10:1. At this time, if the second weighting ratio coefficient of 2:5 is used when the screen is not covered, the ratio of the stylus signals between channel 1 and channel 2 cannot be set to 2:1. Instead, the ratio of the stylus signals received by channel 1 and channel 2 after the screen protector is applied (10:1) can be compared with the ratio of the stylus signals received by channel 1 and channel 2 before the screen protector is applied (5:1) to obtain a touch signal difference of 2:1. Then, the second weighting ratio coefficient of 2:5 is adjusted based on the touch signal difference of 2:1 to obtain the weighting ratio coefficient between channel 1 and channel 2 after the screen protector is applied, which is 1:5. Therefore, 1:5 is the first weighting ratio coefficient when the screen is covered.

[0215] Understandably, after applying a screen protector, the protector will affect the screen's reception of stylus signals. By adjusting the weighting ratio coefficient, the signals received by each channel on the screen can be weighted using the adjusted first weighting ratio coefficient to accurately determine the stylus touch position. This allows the stylus touch sensitivity of the screen with the protector applied, when controlled by the first weighting ratio coefficient, to approach or reach the stylus touch sensitivity of the screen without the protector applied, when controlled by the second stylus performance parameter. This improves the stylus performance after applying the screen protector and enhances the user experience.

[0216] Other embodiments of this application provide an electronic device that may include: the aforementioned screen (such as a touchscreen or display screen), a memory, and one or more processors. The screen, memory, and processor are coupled. The memory stores computer program code, which includes computer instructions. When the computer instructions are executed by the processor, the electronic device causes the screen to control the screen to perform various functions or steps in the above method embodiments. The structure of the electronic device can be referred to... Figure 4 The structure of the electronic device 400 shown.

[0217] This application also provides a computer storage medium that includes computer instructions. When the computer instructions are executed on the electronic device, the electronic device performs various functions or steps performed by the electronic device in the above method embodiments.

[0218] This application also provides a computer program product that, when run on a computer, causes the computer to perform various functions or steps performed by the electronic device in the above method embodiments.

[0219] Through the above description of the embodiments, those skilled in the art can clearly understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0220] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another apparatus, or some features may be ignored or not executed. Furthermore, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.

[0221] The units described as separate components may or may not be physically separate. A component shown as a unit can be one or more physical units; that is, it can be located in one place or distributed in multiple different locations. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0222] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0223] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, in essence, or the parts that contribute to the prior art, or all or part of the technical solutions, can be embodied in the form of a software product. This software product is stored in a storage medium and includes several instructions to cause a device (which may be a microcontroller, chip, etc.) or processor to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0224] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A screen control method, characterized in that, The method is applied to an electronic device including a screen, the electronic device being provided with a first device; the method includes: The electronic device performs detection processing on the screen through the first device, corresponding to a preset film structure, and identifies the screen's film application status based on the detection result; the film application status includes whether the screen has a protective film applied, and the type of the protective film applied to the screen; the type of protective film includes at least one of privacy screen protectors, blue light blocking screen protectors, and tempered glass screen protectors. When the screen is not covered by a protective film, the electronic device controls the screen based on a second performance parameter; the second performance parameter is the initial performance parameter used by the electronic device when the screen is not covered by a protective film. When the screen is covered with a protective film, the electronic device determines a first performance parameter based on the second performance parameter and the performance influencing factors corresponding to the protective film, and controls the screen based on the first performance parameter. The performance influencing factors are those factors that affect the performance of the screen. The performance of the screen with the protective film covered and controlled using the first performance parameter is better than the performance of the screen with the protective film covered and controlled using the second performance parameter. The second performance parameter includes at least one of a second screen brightness adjustment parameter, a second touch performance parameter, or a second stylus performance parameter, and the types of the performance influencing factors, the second performance parameter, and the first performance parameter are all the same. The first device includes at least two ambient light sensors; the protective film has first preset positions corresponding to the at least two ambient light sensors respectively; different first preset positions have different degrees of occlusion of ambient light; the ambient light sensors are used to detect the ambient light at their corresponding first preset positions; The electronic device performs detection processing on the screen using the first device, corresponding to a preset film structure, and identifies the film application status of the screen based on the detection result, including: The electronic device detects ambient light using the at least two ambient light sensors to obtain a light intensity value; The screen protector status is determined based on the difference between the light intensity values ​​detected by the at least two ambient light sensors.

2. The method according to claim 1, characterized in that, The electronic device includes a touch sensor disposed on the screen; the protective film has a preset touch recognition point and a wire, the endpoints of the wire include a first endpoint and a second endpoint, the first endpoint and the touch recognition point correspond to the same position on the screen; The electronic device performs detection processing on the screen corresponding to a preset membrane structure through the first device, including: The electronic device detects touch at a second preset position on the screen using the touch sensor; the second preset position corresponds to the second endpoint of the wire. Determining the screen protector application status based on the detection results includes: The screen protector status is determined based on the touch detection results at the second preset position.

3. The method according to claim 1, characterized in that, The electronic device includes a camera, and the surface of the protective film is provided with a preset mark that is displayed under invisible light; the preset mark is located within the field of view of the camera; The electronic device performs detection processing on the screen corresponding to a preset membrane structure through the first device, including: The electronic device controls the camera to capture images in invisible light and detects whether the captured images include the preset identifier, thereby obtaining the identifier detection result; Determining the screen protector application status based on the detection results includes: The screen protector status is determined based on the identification detection results.

4. The method according to claim 1, characterized in that, The first performance parameter includes a first screen brightness adjustment parameter, and the second performance parameter includes a second screen brightness adjustment parameter; the performance influencing factors include the light transmittance corresponding to the protective film; The electronic device determines the first performance parameter based on the second performance parameter and the performance influencing factors corresponding to the protective film, including: The electronic device adjusts the second screen brightness adjustment parameter based on the light transmittance to obtain the first screen brightness adjustment parameter.

5. The method according to claim 4, characterized in that, The light transmittance corresponding to the protective film includes the light transmittance corresponding to the film type of the protective film; The electronic device adjusts the second screen brightness adjustment parameters based on the light transmittance to obtain the first screen brightness adjustment parameters, including: The electronic device adjusts the second screen brightness adjustment parameter based on the light transmittance corresponding to the film type to obtain the first screen brightness adjustment parameter that matches the film type.

6. The method according to claim 4, characterized in that, The electronic device adjusts the second screen brightness adjustment parameters based on the light transmittance to obtain the first screen brightness adjustment parameters, including: The electronic device performs parameter adjustment in stages based on the light transmittance to gradually adjust the second screen brightness adjustment parameter to the first screen brightness adjustment parameter. The method further includes: Before proceeding to the next stage of parameter adjustment, the electronic device controls the screen brightness based on the currently adjusted screen brightness adjustment parameters.

7. The method according to claim 6, characterized in that, The method further includes: Before the parameter adjustment process at each stage, the electronic device re-identifies the film application status to obtain the re-identified film application status. If the re-identified film application status matches the previously identified film application status, the electronic device will perform parameter adjustment processing for the current stage.

8. The method according to claim 1, characterized in that, The first performance parameter includes a first touch performance parameter, and the second performance parameter includes a second touch performance parameter; the performance influencing factors include touch performance influencing factors; the touch performance influencing factors are the factors that affect the touch performance of the screen by the protective film; The touch sensitivity of the screen with the protective film applied is higher when controlled using the first touch performance parameter than when controlled using the second touch performance parameter. And / or, The first performance parameter includes a first stylus performance parameter, and the second performance parameter includes a second stylus performance parameter; the performance influencing factors include stylus performance influencing factors; the stylus performance influencing factors are the factors that affect the screen's stylus performance. The stylus touch sensitivity of the screen with the protective film applied is higher when the screen with the protective film applied is controlled using the first stylus performance parameters than the stylus touch sensitivity of the screen with the protective film applied is controlled using the second stylus performance parameters.

9. The method according to claim 8, characterized in that, The first touch performance parameter includes a first touch response signal threshold, the second touch performance parameter includes a second touch response signal threshold, and the touch performance influencing factors include a first signal value; the first signal value is the signal value expected to be generated when the screen is touched with a protective film applied. The electronic device determines the first performance parameter based on the second performance parameter and the performance influencing factors corresponding to the protective film, including: The electronic device reduces the second touch response threshold based on the first signal value to obtain the first touch response threshold.

10. The method according to claim 8, characterized in that, The first stylus performance parameter includes a first weighting ratio coefficient, and the second stylus performance parameter includes a second weighting ratio coefficient. The first weighting ratio coefficient is the ratio coefficient between channels on the screen when the screen with the protective film is touched by the stylus. The second weighting ratio coefficient is the ratio coefficient between channels on the screen when the screen without a protective film is touched by the stylus; the stylus performance influencing factors include the touch signal difference corresponding to the protective film; the touch signal difference refers to the estimated difference between the stylus signals received by the channels when the screen is touched by the stylus before and after the protective film is applied. The electronic device determines the first performance parameter based on the second performance parameter and the performance influencing factors corresponding to the protective film, including: The electronic device adjusts the second weighting ratio coefficient based on the difference in the touch signal to obtain the first weighting ratio coefficient.

11. An electronic device, characterized in that, The electronic device includes a memory, a screen, and a processor; the memory and the screen are coupled to the processor; wherein the memory stores computer program code, the computer program code including computer instructions, which, when executed by the processor, cause the electronic device to control the screen to perform the method as described in any one of claims 1-10.

12. A computer storage medium, characterized in that, Includes computer instructions that, when executed on an electronic device, cause the electronic device to perform the method as described in any one of claims 1-10.

13. A computer program product, characterized in that, When the computer program product is run on a computer, it causes the computer to perform the method as described in any one of claims 1-10.

Citation Information

Patent Citations

  • Method for detecting surface film of intelligent information equipment

    CN104881160A

  • Method and device for adjusting touch panel parameters and terminal equipment

    CN105975125A

  • Desktop display equipment and control method thereof, to-be-recognized object and recognition method thereof

    CN107340965A

  • Method and device for adjusting operation mode of equipment and electronic equipment

    CN113157082A

  • Method and device for determining handwriting correction parameter of handwriting pen

    CN117707353A