Display screen display optimization method, electronic equipment, chip system, storage medium and program product

By maintaining a consistent width of the striped area in the display of electronic devices, the screen flicker problem is solved, improving the user experience and protecting the user's eyes.

CN122050296APending Publication Date: 2026-05-15HONOR DEVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
HONOR DEVICE CO LTD
Filing Date
2024-11-05
Publication Date
2026-05-15

AI Technical Summary

Technical Problem

The varying width of black bars on electronic device screens at different frame rates causes flickering to be perceived by users, affecting the user experience.

Method used

By maintaining a consistent width of the bar area at different frame rates, adjusting the width of the bar area using the display driver to match the width at the highest frame rate, and employing DC dimming and PWM dimming methods, the display optimization method is optimized.

Benefits of technology

It reduces the screen flicker rate perceived by users, improves the user experience, and protects users' eyes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122050296A_ABST
    Figure CN122050296A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a display screen display optimization method, electronic equipment, a chip system, a storage medium and a program product, relates to the technical field of terminals, and is beneficial to reducing the probability that a user feels stroboflash of a screen of the electronic equipment and improving the user experience. The method comprises the steps that a strip-shaped area exists in a display screen of the electronic equipment at the first moment, the strip-shaped area can cover content displayed by the display screen under the strip-shaped area, the width of the strip-shaped area is the first width, and the frame rate at the first moment is the first frame rate; at the second moment, the width of the strip-shaped area is the first width, and the frame rate at the second moment is the second frame rate; wherein the second moment is different from the first moment, and the second frame rate is different from the first frame rate.
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 display screen optimization method, electronic device, chip system, storage medium and program product. Background Technology

[0002] Electronic devices have become an integral part of people's daily lives, used for work, study, and entertainment. These devices typically have screens, and most daily use is achieved through interaction with them. Prolonged use of electronic devices, especially under inappropriate lighting conditions, can easily lead to eye fatigue, dryness, and even decreased vision. Adjusting the screen brightness appropriately can help reduce eye strain. For example, in bright sunlight outdoors, the screen brightness can be increased to ensure clear visibility and prevent eye strain, while in dim environments, the screen brightness can be decreased to reduce eye irritation.

[0003] However, users may experience screen flickering during use, which affects the user experience. Summary of the Invention

[0004] This application provides a display optimization method, electronic device, chip system, storage medium, and program product, which are applied in the field of terminal technology and help reduce the probability of users experiencing screen flickering on electronic devices, thereby improving the user experience.

[0005] In a first aspect, this application proposes a display screen optimization method applied to an electronic device, the electronic device including a display screen, the method comprising: a first moment, the display screen of the electronic device having a strip-shaped area, the strip-shaped area being able to cover the content displayed on the display screen below the strip-shaped area, the width of the strip-shaped area being a first width, and the frame rate of the first moment being a first frame rate; a second moment, the width of the strip-shaped area being the first width, and the frame rate of the second moment being a second frame rate; wherein, the second moment is different from the first moment, and the second frame rate is different from the first frame rate.

[0006] For example, the strip-shaped region could be, for instance, Figure 1 The 'a' in the text indicates 101. Figure 1 b indicates 102, or Figure 1 The value 'c' in the diagram represents 103. It's worth noting that the presence of the striped area is unrelated to the specific content displayed on the screen; it's a limitation imposed by the screen's hardware.

[0007] Optionally, the number of strip regions in the display screen can be one or more. When there are multiple strip regions in the display screen, the spacing between the strip regions can be uniform, but this application does not specifically limit this.

[0008] Alternatively, the strip-shaped region can be as follows: Figure 1 The strip area shown in 101 is parallel to the shorter border of the display screen (or perpendicular to the longer border of the display screen), and may also form a certain angle with the two borders intersecting on the display screen. This application does not specifically limit the angle between the strip area in the display screen and the border of the display screen.

[0009] The embodiments of this application can make the width of the strip area consistent under different frame rates, which helps to reduce the probability of users experiencing screen flickering on electronic devices and improves the user experience.

[0010] In conjunction with the first aspect, in some implementations of the first aspect, the first width is the width of the strip region corresponding to the highest frame rate allowed by the electronic device.

[0011] It should be understood that the wider the strip area on an electronic device screen, the stronger the user's perception and the more likely it is to cause harm to the user's eyes.

[0012] In one possible implementation, the width of the strip area corresponding to the highest frame rate allowed by the electronic device is the smallest. Due to some hardware limitations of the screen, it is difficult to further reduce the width of this strip area based on the width of the strip area corresponding to the highest frame rate allowed by the electronic device. Therefore, in this embodiment, the first width is set to the width of the strip area corresponding to the highest frame rate allowed by the electronic device. In this way, while ensuring that the width of the strip area is consistent at different frame rates, the width of the strip area is reduced to the maximum extent possible, which helps to reduce the damage of the screen to the user's eyes and achieve a more eye-friendly purpose.

[0013] Optionally, the highest frame rate allowed by the electronic device may be 120Hz, and the first width may be 10H as described below, but this application does not limit it.

[0014] In conjunction with the first aspect, in some implementations of the first aspect, the electronic device includes a display driver, and the method further includes: when the display driver determines that the frame rate of the electronic device is a first frame rate, sending a first instruction to the display screen, the first instruction corresponding to the first frame rate, the first instruction being used to indicate that the width of the strip area is the first width; the display screen receiving the first instruction, and adjusting the width of the strip area to the first width based on the first instruction.

[0015] In conjunction with the first aspect, in some implementations of the first aspect, the method further includes: when the display driver determines that the frame rate of the electronic device is a second frame rate, sending a second instruction to the display screen, the second instruction corresponding to the second frame rate, the second instruction being used to indicate that the width of the strip area is the first width, and the program code contained in the first instruction and the second instruction being different; the display screen receiving the second instruction and adjusting the width of the strip area to the first width based on the second instruction.

[0016] For example, the first frame rate can be 60Hz, and the first instruction can be the program code corresponding to 60Hz. The second frame rate can be 90Hz, and the second instruction can be the program code corresponding to 90Hz. The inherent meaning of the first instruction and the second instruction can be to indicate that the width of the strip area is the first width, but their specific program codes can be different. This is because in some implementations, the first width corresponding to the first instruction is obtained based on the width of the strip area corresponding to the first frame rate before the implementation of this application and coefficient 1, while the first width corresponding to the second instruction is obtained based on the width of the strip area corresponding to the second frame rate before the implementation of this application and coefficient 2. In this way, the original operating logic of the display screen can be modified without making too many changes, and the stability of the strip area displayed on the display screen can be maintained while optimizing the width of the strip area.

[0017] Among them, coefficient 1 can be related to the first frame rate, and coefficient 2 can be related to the second frame rate. This application does not limit the specific values ​​of coefficient 1 and coefficient 2.

[0018] In conjunction with the first aspect, in some implementations of the first aspect, the strip-shaped region is black.

[0019] In conjunction with the first aspect, in some implementations of the first aspect, the dimming method of the display screen includes direct current dimming (DC dimming) and / or pulse width modulation (PWM) dimming.

[0020] Secondly, embodiments of this application provide a display screen optimization apparatus, which can be an electronic device, or a chip or chip system within an electronic device. The display screen optimization apparatus may include a display unit and a processing unit. When the display screen optimization apparatus is an electronic device, the display unit may be a display screen. The display unit is used to perform display steps to enable the electronic device to implement a display screen optimization method described in the first aspect or any possible implementation of the first aspect. When the display screen optimization apparatus is an electronic device, the processing unit may be a processor. The display screen optimization apparatus may further include a storage unit, which may be a memory. The storage unit is used to store instructions, and the processing unit executes the instructions stored in the storage unit to enable the electronic device to implement a display screen optimization method described in the first aspect or any possible implementation of the first aspect. When the display screen optimization apparatus is a chip or chip system within an electronic device, the processing unit may be a processor. The processing unit executes the instructions stored in the storage unit to enable the electronic device to implement a display screen optimization method described in the first aspect or any possible implementation of the first aspect. The storage unit can be a storage unit inside the chip (e.g., a register, cache, etc.) or a storage unit located outside the chip within the electronic device (e.g., a read-only memory, random access memory, etc.).

[0021] Thirdly, embodiments of this application provide an electronic device including one or more processors and a memory, the memory being coupled to one or more processors, the memory being used to store computer program code, the computer program code including computer instructions, and one or more processors calling the computer instructions to cause the electronic device to perform the methods described in the first aspect or any possible implementation of the first aspect.

[0022] Fourthly, embodiments of this application provide a computer-readable storage medium, which includes a computer program or instructions that, when executed on a computer, cause the computer to perform the methods described in the first aspect or any possible implementation thereof.

[0023] Fifthly, embodiments of this application provide a computer program product, which includes computer program code. When the computer program code is run on a computer, it causes the computer to perform the methods described in the first aspect or any possible implementation of the first aspect.

[0024] Sixthly, this application provides a chip or chip system including one or more processors and a communication interface. The communication interface and the one or more processors are interconnected via a circuit. The one or more processors are used to run computer programs or instructions to perform the methods described in the first aspect or any possible implementation of the first aspect. The communication interface in the chip can be an input / output interface, pins, or circuits, etc.

[0025] In one possible implementation, the chip or chip system described above in this application further includes at least one memory storing instructions. The memory can be an internal storage unit of the chip, such as a register or cache, or it can be a storage unit of the chip itself (e.g., read-only memory, random access memory, etc.).

[0026] It should be understood that the second to sixth aspects of this application correspond to the technical solutions of the first aspect of this application, and the beneficial effects achieved by each aspect and the corresponding feasible implementation are similar, and will not be repeated here. Attached Figure Description

[0027] Figure 1 This is a schematic diagram of the display screen before optimization, provided in an embodiment of this application.

[0028] Figure 2 A schematic block diagram of an electronic device software structure provided in this application embodiment;

[0029] Figure 3 A schematic flowchart illustrating a display optimization method for a display screen provided in an embodiment of this application;

[0030] Figure 4 A schematic flowchart illustrating yet another display optimization method provided in this application embodiment;

[0031] Figure 5 A schematic block diagram of an electronic device hardware structure provided in this application embodiment;

[0032] Figure 6 This is a schematic block diagram of a chip structure provided in an embodiment of this application. Detailed Implementation

[0033] To facilitate a clear description of the technical solutions in the embodiments of this application, some terms and technologies involved in the embodiments of this application will be briefly introduced below:

[0034] 1. Basic Terminology

[0035] In the embodiments of this application, terms such as "first" and "second" are used to distinguish identical or similar items with substantially the same function and purpose. For example, "first chip" and "second chip" are used only to distinguish different chips and do not limit their order of execution. Those skilled in the art will understand that terms such as "first" and "second" do not limit the quantity or execution order, and that "first" and "second" do not necessarily imply that they are different.

[0036] It should be noted that, in the embodiments of this application, the terms "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design scheme described as "exemplary" or "for example" in this application should not be construed as being more preferred or advantageous than other embodiments or design schemes. Specifically, the use of terms such as "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.

[0037] In this application embodiment, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can represent: a, b, c, ab, a--c, bc, or abc, where a, b, and c can be single or multiple.

[0038] 2. Electronic equipment

[0039] The electronic devices in this application embodiment may include handheld devices with displays, vehicle-mounted devices, etc. For example, some electronic devices include: mobile phones, tablets, PDAs, laptops, mobile internet devices (MIDs), wearable devices, virtual reality (VR) devices, augmented reality (AR) devices, wireless terminals in industrial control, wireless terminals in self-driving, wireless terminals in remote medical surgery, wireless terminals in smart grids, wireless terminals in transportation safety, wireless terminals in smart cities, wireless terminals in smart homes, cellular phones, cordless phones, session initiation protocol (SIP) phones, wireless local loop (WLL) stations, personal digital assistants (PDAs), handheld devices with wireless communication capabilities, computing devices or other processing devices connected to a wireless modem, in-vehicle devices, wearable devices, electronic devices in 5G networks, or future evolution of public land mobile networks. The embodiments of this application do not limit the scope of electronic devices in a network (PLMN).

[0040] By way of example and not limitation, in this embodiment, the electronic device can also be a wearable device. Wearable devices, also known as wearable smart devices, are a general term for devices that utilize wearable technology to intelligently design and develop everyday wearables, such as glasses, gloves, watches, clothing, and shoes. Wearable devices are portable devices that are worn directly on the body or integrated into the user's clothing or accessories. Wearable devices are not merely hardware devices, but also achieve powerful functions through software support, data interaction, and cloud interaction. Broadly speaking, wearable smart devices include those that are feature-rich, large in size, and can achieve complete or partial functions without relying on a smartphone, such as smartwatches or smart glasses, as well as those that focus on a specific type of application function and require the use of other devices such as smartphones, such as various smart bracelets and smart jewelry for vital sign monitoring.

[0041] Furthermore, in this embodiment of the application, the electronic device can also be an electronic device in the Internet of Things (IoT) system. IoT is an important part of the future development of information technology. Its main technical feature is to connect objects to the network through communication technology, thereby realizing an intelligent network of human-machine interconnection and object-to-object interconnection.

[0042] The electronic device in this application embodiment may also be referred to as: electronic device, user equipment (UE), mobile station (MS), mobile terminal (MT), access terminal, user unit, user station, mobile station, mobile station, remote station, remote terminal, mobile device, user terminal, terminal, wireless communication equipment, user agent or user device, etc.

[0043] In this embodiment, the electronic device includes a hardware layer, an operating system layer running on top of the hardware layer, and an application layer running on the operating system layer. The hardware layer includes hardware such as a central processing unit (CPU), a memory management unit (MMU), and main memory. The operating system can be any one or more computer operating systems that implement business processing through processes, such as Linux, Unix, Android, iOS, or Windows. The application layer includes applications such as browsers, address books, word processing software, and instant messaging software.

[0044] Electronic devices have become an integral part of people's daily lives, used for work, study, and entertainment. These devices typically have screens, and most daily use is achieved through interaction with them. Prolonged use of electronic devices, especially under inappropriate lighting conditions, can easily lead to eye fatigue, dryness, and even decreased vision. Adjusting the screen brightness appropriately can help reduce eye strain. For example, in bright sunlight outdoors, the screen brightness can be increased to ensure clear visibility and prevent eye strain, while in dim environments, the screen brightness can be decreased to reduce eye irritation.

[0045] Organic light-emitting diode (OLED) screens are widely used by electronic device manufacturers due to their advantages such as high color saturation, fast screen response speed, and the ability to be designed to be thinner and lighter without the need for a backlight layer and other complex layers. However, the current-driven light-emitting principle and characteristics of OLEDs result in problems such as poor uniformity of image color and brightness in some scenarios. Based on this, some electronic devices use direct current (DC) dimming to dim the screen in high frame rate scenarios and pulse width modulation (PWM) dimming to dim the screen in low frame rate scenarios in order to reduce the image color and brightness problems of OLED screens.

[0046] DC dimming adjusts brightness by regulating current or voltage, directly controlling the supply current or voltage to achieve stable brightness changes. However, due to the structure and display principle of OLED screens, the color of OLED pixels is affected by the current, causing color shifts. Therefore, OLED screens cannot achieve the same stable brightness changes as DC dimming, resulting in black stripes appearing on the screen in some scenarios. PWM dimming, on the other hand, uses pulse signals to control the on / off state of a circuit, thus adjusting the perceived brightness. Within a unit cycle, if the circuit is on for a longer time than off, the screen is brighter, and vice versa. However, this control method can also cause black stripes on the screen in some situations.

[0047] Researchers have found a negative correlation between the width of black bars on electronic device screens and the device's frame rate. For example, the higher the frame rate, the narrower the black bars, while the lower the frame rate, the wider the black bars. Figure 1 The width of the black bars on the screen is shown at frame rates of 60Hz, 90Hz, and 120Hz. For example, at a frame rate of 120Hz, the width of the black bars could be 10H, for instance... Figure 1 The black stripe 101 shown in Figure 'a' can have a width of 30H at a frame rate of 90Hz, for example. Figure 1 The black stripe 102 shown in b can have a width of 72H at a frame rate of 60Hz, for example. Figure 1 The black stripe 103 shown in b in the figure can be understood as a constant. In one possible implementation, the electronic device uses DC dimming at a frame rate of 120 Hz and PWM dimming at a frame rate of 60 Hz or 90 Hz. However, this application does not specifically limit the dimming method of the electronic device at any frame rate. Regardless of the dimming method, the OLED screen may display black stripes.

[0048] Electronic devices can switch frame rates in various usage scenarios. For example, when switching from a normal usage scenario to a gaming scenario, a high frame rate is used to ensure smooth gameplay, and a low frame rate is used when the phone battery is low to reduce power consumption. Furthermore, the change in the width of the black bars on the screen of electronic devices caused by the frame rate change can easily give color-sensitive users a flickering sensation.

[0049] In view of this, embodiments of this application provide a display optimization method, electronic device, chip system, storage medium, and program product, which can make the width of the strip area consistent under different frame rates, thereby reducing the probability of users experiencing screen flickering, optimizing user experience, and achieving a more eye-friendly effect.

[0050] To facilitate understanding of this application, the software structure of the electronic device involved in this application will first be described below. It should be understood that a layered architecture divides the software of an electronic device into several layers, each with a clear role and division of labor. Layers communicate with each other through software interfaces. Figure 2 This is a software structure block diagram of an electronic device according to an embodiment of this application.

[0051] Taking the Android system as an example, the Android system can be divided into five layers, from top to bottom: application layer, application framework layer, system runtime library layer, hardware abstraction layer, and kernel layer.

[0052] 1. Application Layer

[0053] The application layer may include a series of application packages, which may include system applications and third-party applications. For example, the application packages may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, and SMS. This application does not specifically limit which application packages are included in the application layer.

[0054] 2. Application Framework Layer

[0055] The application framework layer provides application programming interfaces (APIs) and programming frameworks for applications in the application layer. For example, the application framework layer may include input manager service (IMS), power manager service (PMS), window manager service (WMS), and display manager service (DMS), etc.

[0056] In this embodiment, the input management service can be used to read input events, process, filter, and transform the events into instructions readable by the application framework layer and higher layers, and process the events through the InputReader and InputDispatcher threads; the power management service can be used for power state management and control; the window management service can be used to interact with the power management service to respond to changes in power state and perform corresponding window management operations; and the display management service can be used for screen display state management and control.

[0057] 3. System Runtime Layer

[0058] The system runtime library layer is the core layer connecting the upper layers (application layer and application framework layer) and the lower layers. It can include native C / C++ libraries and the Android runtime (ART) library (not shown in the diagram). The native C / C++ libraries provide interfaces to upper-layer applications through the application framework layer, enabling developers to leverage these powerful functions to build rich and varied applications. Native C / C++ libraries may include, for example, the SurfaceFlinger (SF) display compositing service. The Android runtime library converts the application's bytecode into native machine code and executes the application.

[0059] For example, C / C++ libraries may include media libraries, 3D graphics processing libraries (e.g., OpenGL ES), 2D graphics engines (e.g., SGL), etc.

[0060] 4. Kernel layer

[0061] The kernel layer is the layer between hardware and software. The kernel layer contains at least an input driver and a display driver.

[0062] Furthermore, the electronic device also includes a hardware layer. In this embodiment, the hardware includes at least a power button and a display screen.

[0063] It should be noted that the module names involved in the embodiments of this application can all be defined as other names, as long as they can achieve the function of each module, and no specific restrictions are placed on the module names.

[0064] The following example illustrates the workflow of electronic device software and hardware, using the scenario of an electronic device being powered on and its screen lighting up.

[0065] As one possible scenario, a user briefly presses the power button. In response, the power button reports an input event to the input management service at the application framework layer via the input driver. The input management service reads this event and converts it into instructions readable by the application framework layer and higher layers. If the input event is recognized as a short press of the power button, it invokes the power management service to handle the screen wake-up process. The power management service instructs the window management service to prepare the corresponding window and simultaneously invokes the display management service to execute screen wake-up. The display management service, based on the window content from the window management service, instructs the display composition service to perform rendering and composition. The display composition service then transmits the rendered and composed interface to the display screen via the display driver, at which point the screen lights up and displays the interface.

[0066] Optionally, the display driver can turn on the display by calling the lcdkit on() function, but this application does not specifically limit this.

[0067] As a possible scenario, during the use of an electronic device, when a user launches a new application or switches from the current application to another, the electronic device may dynamically adjust the frame rate based on the application's performance requirements and system resource status. For example, when switching from a web application to a game or video application, the electronic device may switch to a higher frame rate to provide a smoother visual experience. Conversely, when switching from a game or video application to an application with more static content, such as a webpage or e-book, the electronic device may switch to a lower frame rate to save power and extend battery life. As mentioned above, there is a correlation between the width of the black bars displayed on the screen and the frame rate of the electronic device. The changes in the width of the black bars caused by the frame rate switching based on the application scenario may harm the user's eyes. Based on this, this application provides a display optimization method that can make the width of the bar area consistent at different frame rates, thereby protecting the user's eyes.

[0068] The following is a detailed description of a display optimization method 300 provided in an embodiment of this application. This method can be applied to electronic devices, and the software structure of the electronic device can be as follows: Figure 2 As shown, the hardware structure can be as follows Figure 5 As shown, but this application does not specifically limit it.

[0069] The method 300 may include:

[0070] S301, The SurfaceFlinger service receives a frame-cutting instruction, which includes the target frame rate.

[0071] Optionally, the frame-switching instruction can be directed by a high-level software module such as the UI framework or game engine of the electronic device. For example, when the electronic device detects that the user is performing an operation that requires a high frame rate display, a high-level software module in the electronic device's software architecture may instruct SurfaceFlinger to increase the frame rate to ensure a smooth user experience. This application does not specifically limit the source of the frame-switching instruction.

[0072] Optionally, the frame-slicing instruction can be implemented by calling the set mode() function, which is not limited in this application.

[0073] S302, the SurfaceFlinger service switches the frame rate to the target frame rate.

[0074] It should be understood that SurfaceFlinger is a system service in Android responsible for compositing and managing screen display content. It receives drawing requests from various applications and composites them onto the screen. When SurfaceFlinger receives a frame-switching instruction to change the frame rate, it may adjust its internal rendering loop to match the new frame rate. In one implementation, SurfaceFlinger synchronizes the screen refresh rate by receiving a hardware vertical synchronization (Vsync) signal to ensure that the screen refreshes according to the new frame rate.

[0075] S303, Display Compositing Service delivers images to the display driver at the target frame rate.

[0076] In some implementations, the display compositing service delivers the image to the display driver at a new frame rate (i.e., the target frame rate). This can also be understood as the display compositing service issuing a frame-switching instruction (set mode) to the display driver, indicating that the frame rate has been switched, and simultaneously indicating the value of the target frame rate.

[0077] The display driver executes S304 when it detects a frame rate switch.

[0078] S304: The display driver determines whether the target frame rate is the preset frame rate. If the target frame rate is determined to be the preset frame rate, S305 is executed; otherwise, the process ends.

[0079] S305, The display driver sends instruction 1 to the display screen. Instruction 1 is used to change the width of the black stripe. Instruction 1 includes the target value of the black stripe width corresponding to the preset frame rate.

[0080] In some implementations, the frame rate of electronic devices is usually set to 60Hz, 90Hz or 120Hz. The preset frame rate can be any one of 60Hz, 90Hz or 120Hz. Each frame rate can correspond to its own instruction for changing the width of the black bars. The target value of the black bar width included in the instruction can be the same, but the code of the instruction can be different. This application does not make specific limitations on this.

[0081] Researchers have found that the width of the black bars displayed on an electronic device screen is negatively correlated with the device's frame rate. In other words, assuming the hardware of the electronic device's display cannot be changed, the higher the frame rate, the narrower the black bars. Therefore, to improve the user experience, the target value for the black bar width can optionally be set to the width of the black bars corresponding to the electronic device running at its highest allowed frame rate (e.g., 120Hz), but this application does not specifically limit this.

[0082] In some implementations, due to screen hardware limitations, the width of the corresponding black bars is difficult to reduce when electronic devices are running at their highest allowed frame rate (e.g., 120Hz).

[0083] It should be understood that the display screen controls brightness adjustment and other aspects through a display driver integrated circuit (DDIC). In one possible implementation, the brightness of the display screen can be adjusted by adjusting the emission (EM) switch in the display driver integrated circuit. In the embodiments of this application, the aforementioned instruction 1 can be understood as the display driver sending an instruction to the display screen to adjust the working time of the EM switch. For example, it can indicate that the working time of the EM switch is the same when the frame rate is 60Hz or 90Hz as it is when the frame rate is 120Hz. In this way, the working time of the EM switch can be consistent in the dimming scenario caused by frame rate switching. It can also be understood as the duty cycle of the EM signal (the ratio of the EM switch closing time to the period time in one cycle) is consistent. This allows the width of the black stripes to be the same when the frame rate is 60Hz or 90Hz as it is when the frame rate is 120Hz. This is beneficial for making the width area of ​​the black stripes consistent at different frame rates, which helps to reduce the width of the black stripes on the screen of electronic devices at low frame rates, reduce the variation in the width of the black stripes on the screen of electronic devices, optimize the user experience, and achieve a more eye-friendly purpose.

[0084] In one possible implementation, the width of the black stripes displayed on the screen of an electronic device can also be referred to as the EM width.

[0085] Optionally, embodiments of this application can be applied to electronic devices including OLED screens, where black stripes on the screen cannot be logically eliminated due to screen hardware limitations.

[0086] In one possible implementation, people who are more sensitive to screen colors can directly see the black stripes on the screen of an electronic device while it is running; in other implementations, users can see the black stripes on the screen of another running electronic device through the camera of one electronic device, and the resolution of the two electronic devices can be the same.

[0087] The following describes a display optimization method 400 provided in an embodiment of this application. This method 400 can be applied to electronic devices, and the software structure of the electronic devices can be as follows: Figure 2 As shown, the hardware structure can be as follows: Figure 5 As shown, but this application does not specifically limit it.

[0088] Method 400 includes the following steps:

[0089] S401. At the first moment, there is a strip-shaped area in the display screen of the electronic device. The strip-shaped area can cover the content displayed on the display screen below the strip-shaped area. The width of the strip-shaped area is the first width, and the frame rate at the first moment is the first frame rate.

[0090] S402, at the second moment, the width of the strip region is the first width, and the frame rate at the second moment is the second frame rate; wherein, the second moment is different from the first moment, and the second frame rate is different from the first frame rate.

[0091] For example, the strip-shaped region could be, for instance, Figure 1 The 'a' in the text indicates 101. Figure 1 b indicates 102, or Figure 1 The value 'c' in the diagram represents 103. It's worth noting that the presence of the striped area is unrelated to the specific content displayed on the screen; it's a limitation imposed by the screen's hardware.

[0092] Optionally, the number of strip regions in the display screen can be one or more. When there are multiple strip regions in the display screen, the spacing between the strip regions can be uniform, but this application does not specifically limit this.

[0093] Alternatively, the strip-shaped region can be as follows: Figure 1 The strip area shown in 101 is parallel to the shorter border of the display screen (or perpendicular to the longer border of the display screen), and may also form a certain angle with the two borders intersecting on the display screen. This application does not specifically limit the angle between the strip area in the display screen and the border of the display screen.

[0094] The embodiments of this application can make the width of the strip area consistent under different frame rates, which helps to reduce the probability of users experiencing screen flickering on electronic devices and improves the user experience.

[0095] Optionally, the color of the strip area is black, or any other color that can cover the content displayed on the screen below the strip area. This application does not limit the color of the strip area.

[0096] As an optional embodiment, the first width is the width of the strip region corresponding to when the electronic device is running at the highest frame rate allowed by the electronic device.

[0097] The first width can be understood to have a similar meaning to the target value described above.

[0098] In one possible implementation, the width of the strip area corresponding to the highest frame rate allowed by the electronic device is the smallest. Due to some hardware characteristics of the screen, it is difficult to further reduce the width of this strip area. Therefore, in this embodiment, the first width is set to the width of the strip area corresponding to the highest frame rate allowed by the electronic device. In this way, while ensuring that the width of the strip area is consistent at different frame rates, the width of the strip area is reduced to the maximum extent possible, which helps to reduce the damage of the screen to the user's eyes and achieve a more eye-friendly purpose.

[0099] Optionally, the highest frame rate allowed by the electronic device may be 120Hz, and the first width may be 10H as described above, but this application does not limit it.

[0100] As an optional embodiment, the electronic device includes a display driver, and the method further includes: when the display driver determines that the frame rate of the electronic device is a first frame rate, sending a first instruction to the display screen, the first instruction corresponding to the first frame rate, the first instruction being used to indicate that the width of the strip area is a first width; the display screen receiving the first instruction, and adjusting the width of the strip area to the first width based on the first instruction.

[0101] As another optional embodiment, the method further includes: when the display driver determines that the frame rate of the electronic device is a second frame rate, sending a second instruction to the display screen, the second instruction corresponding to the second frame rate, the second instruction being used to indicate that the width of the strip area is a first width, and the program code contained in the first instruction and the second instruction being different; the display screen receiving the second instruction and adjusting the width of the strip area to the first width based on the second instruction.

[0102] For example, the first frame rate can be 60Hz, and the first instruction can be the program code corresponding to 60Hz. The second frame rate can be 90Hz, and the second instruction can be the program code corresponding to 90Hz. The inherent meaning of the first instruction and the second instruction can be to indicate that the width of the strip area is the first width, but their specific program codes can be different. This is because in some implementations, the first width corresponding to the first instruction is obtained based on the width of the strip area corresponding to the first frame rate before the implementation of this application and coefficient 1, while the first width corresponding to the second instruction is obtained based on the width of the strip area corresponding to the second frame rate before the implementation of this application and coefficient 2. In this way, the original operating logic of the display screen can be modified without making too many changes, and the stability of the strip area displayed on the display screen can be maintained while optimizing the width of the strip area.

[0103] Among them, coefficient 1 can be related to the first frame rate, and coefficient 2 can be related to the second frame rate. This application does not limit the specific values ​​of coefficient 1 and coefficient 2.

[0104] As another optional embodiment, the method further includes: when the display driver determines that the frame rate of the electronic device is a third frame rate, it sends a third instruction to the display screen, the third instruction corresponding to the third frame rate, the third instruction being used to indicate that the width of the strip area is a first width, and the program code contained in the third instruction is different from that in the first instruction and the second instruction; the display screen receives the third instruction and adjusts the width of the strip area to the first width based on the third instruction.

[0105] For example, the third frame rate could be the highest frame rate allowed by the electronic device, such as 120Hz, and the third instruction could be the program code corresponding to 120Hz. After the display driver determines that the electronic device's frame rate has switched to the third frame rate, the third instruction is used to indicate that the width of the bar area is the first width. Since the first width can be the width of the bar area corresponding to the highest frame rate allowed by the electronic device, the third instruction can also be understood as indicating that the width of the bar area be adjusted to the original width of the bar area when the electronic device is running at the third frame rate.

[0106] Optionally, the dimming method of the display screen includes DC dimming and / or pulse width modulation (PWM) dimming. This application embodiment does not specifically limit which dimming method the electronic device uses at what frame rate. The correspondence between frame rate and dimming method mentioned above is only exemplary.

[0107] The display optimization method of this application has been described above. The apparatus for performing the above method provided in this application is described below. Those skilled in the art will understand that the methods and apparatus can be combined with and referenced by each other, and the related apparatus provided in this application can perform the steps in the above method.

[0108] Figure 5 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application is shown. For example... Figure 5 As shown, the electronic device may include a processor 510, a memory 520, a display screen 530, a sensor module 540, a universal serial bus (USB) interface 550, a charging management module 560, a power management module 561, a battery 562, etc.

[0109] Processor 510 may include one or more processing units, such as a central processing unit (CPU), application processor (AP), modem processor, graphics processing unit (GPU), image signal processor (ISP), controller, video codec, digital signal processor (DSP), baseband processor, and / or neural network processing unit (NPU). These different processing units may be independent devices or integrated into one or more processors.

[0110] The memory 520 can be used to store computer executable program code, which includes instructions, such as the program code corresponding to the method described above in the embodiments of this application.

[0111] The display screen 530 is used to display images, videos, etc. The display screen 530 includes a display panel. In some embodiments, the electronic device may include one or N display screens 530, where N is a positive integer greater than 1. The electronic device implements display functions through a GPU, the display screens 530, and an application processor, etc. In this embodiment, the display screen of the electronic device may be an OLED screen.

[0112] It should be noted that the module names involved in the embodiments of this application can all be defined as other names, as long as they can achieve the function of each module, and no specific restrictions are placed on the module names.

[0113] The display optimization method provided in this application embodiment can be applied to electronic devices including a display screen, and the software structure of the electronic device can be as follows: Figure 2 As shown, the hardware structure can be as follows Figure 5 As shown, the specific form of the electronic device can be referred to the above description, and will not be repeated here.

[0114] Figure 6 An exemplary schematic diagram of a chip structure provided in an embodiment is shown. Chip 600 includes one or more processors 601, communication lines 602, communication interfaces 603, and memory 604.

[0115] In some implementations, memory 604 stores elements such as executable modules or data structures, or subsets thereof, or extended sets thereof.

[0116] The methods described in the embodiments of this application can be applied to, or implemented by, processor 601. Processor 601 may be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above methods can be completed by integrated logic circuits in the hardware of processor 601 or by instructions in software form. Processor 601 may be a general-purpose processor (e.g., a microprocessor or conventional processor), a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gates, transistor logic devices, or discrete hardware components. Processor 601 can implement or execute the various processing-related methods, steps, and logic block diagrams disclosed in the embodiments of this application.

[0117] The steps of the method disclosed in the embodiments of this application can be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software modules can be located in mature storage media in the art, such as random access memory, read-only memory, programmable read-only memory, or electrically erasable programmable read-only memory (EEPROM). This storage medium is located in memory 604, and processor 601 reads information from memory 604 and, in conjunction with its hardware, completes the steps of the above method.

[0118] The processor 601, memory 604 and communication interface 603 can communicate with each other through communication line 602.

[0119] In the above embodiments, the instructions stored in the memory for execution by the processor can be implemented in the form of a computer program product. This computer program product can be pre-written into the memory, or it can be downloaded and installed into the memory as software.

[0120] In the embodiments of this application, the chip 600 may also be a chip system, such as a system on chip (SOC), and this application does not limit it.

[0121] This application provides an electronic device, which includes: one or more processors and a memory; the memory is coupled to one or more processors, and stores computer program code, which includes computer instructions; one or more processors invoke the computer instructions to cause the electronic device to perform the methods described in the above embodiments.

[0122] This application provides a chip or chip system. The chip or chip system is applied to an electronic device and includes one or more processors. These processors invoke computer instructions to cause the electronic device to execute the methods described in the above embodiments. Its implementation principle and technical effects are similar to the related embodiments described above, and will not be repeated here.

[0123] This application also provides a computer-readable storage medium. The computer-readable storage medium includes computer instructions. When these computer instructions are executed on an electronic device, they cause the electronic device to perform the methods described in the above embodiments. The methods described in the above embodiments can be implemented, in whole or in part, by software, hardware, firmware, or any combination thereof. If implemented in software, the functionality can be stored as one or more instructions or code on or transmitted on the computer-readable medium. The computer-readable medium can include computer storage media and communication media, and can also include any medium that can transfer a computer program from one place to another. The storage medium can be any target medium accessible by a computer.

[0124] In one possible implementation, a computer-readable medium may include RAM, ROM, compact disc read-only memory (CD-ROM) or other optical disc storage, disk storage or other magnetic storage devices, or any other medium targeted to carry or to store the required program code in the form of instructions or data structures, and accessible by a computer. Furthermore, any connection is appropriately referred to as a computer-readable medium. For example, if software is transmitted from a website, server, or other remote source using coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave, then coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of medium. As used herein, disks and optical discs include optical discs, laser discs, optical discs, digital versatile discs (DVDs), floppy disks, and Blu-ray discs, where disks typically reproduce data magnetically, while optical discs reproduce data using laser optics. Combinations of the above should also be included within the scope of computer-readable media.

[0125] This application provides a computer program product, which includes computer program code. When the computer program code is run on an electronic device, the electronic device performs the method described in the above embodiments.

[0126] This application describes embodiments of methods, apparatus (systems), and computer program products according to embodiments of this application with reference to flowchart illustrations and / or block diagrams. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processing unit of a general-purpose computer, special-purpose computer, embedded processor, or other programmable device to produce a machine, such that the instructions, which execute via the processing unit of the computer or other programmable data processing device, generate instructions for implementing the flowchart illustrations. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0127] The above specific embodiments further illustrate the purpose, technical solution, and beneficial effects of the present invention. It should be understood that the above are merely specific embodiments of the present invention and are not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc., made on the basis of the technical solution of the present invention should be included within the scope of protection of the present invention.

Claims

1. A display screen optimization method, characterized in that, Applied to an electronic device, the electronic device including a display screen, the method includes: At the first moment, there is a strip-shaped area in the display screen of the electronic device, which can cover the content displayed on the display screen below the strip-shaped area. The width of the strip-shaped area is a first width, and the frame rate at the first moment is a first frame rate. At the second moment, the width of the strip region is the first width, and the frame rate at the second moment is the second frame rate; wherein, the second moment is different from the first moment, and the second frame rate is different from the first frame rate.

2. The method according to claim 1, characterized in that, The first width is the width of the strip region corresponding to the highest frame rate allowed by the electronic device.

3. The method according to claim 1 or 2, characterized in that, The electronic device includes a display driver, and the method further includes: When the display driver determines that the frame rate of the electronic device is a first frame rate, it sends a first instruction to the display screen. The first instruction corresponds to the first frame rate and is used to indicate that the width of the strip area is the first width. The display screen receives the first instruction and adjusts the width of the strip area to the first width based on the first instruction.

4. The method according to claim 3, characterized in that, The method further includes: When the display driver determines that the frame rate of the electronic device is a second frame rate, it sends a second instruction to the display screen. The second instruction corresponds to the second frame rate and is used to indicate that the width of the strip area is the first width. The program code contained in the first instruction and the second instruction are different. The display screen receives the second instruction and adjusts the width of the strip area to the first width based on the second instruction.

5. The method according to any one of claims 1 to 4, characterized in that, The strip-shaped area is black.

6. The method according to any one of claims 1 to 5, characterized in that, The dimming methods of the display screen include DC dimming and / or pulse width modulation (PWM) dimming.

7. An electronic device, characterized in that, The electronic device includes: one or more processors and memory; The memory is coupled to the one or more processors, the memory being used to store computer program code, the computer program code including computer instructions, the one or more processors invoking the computer instructions to cause the electronic device to perform the method as described in any one of claims 1 to 6.

8. A chip system, characterized in that, The chip system is applied to an electronic device, the chip system including one or more processors, the one or more processors being used to invoke computer instructions to cause the electronic device to perform the method as described in any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium 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 to 6.

10. A computer program product, characterized in that, The computer program product includes computer program code that, when run on an electronic device, causes the electronic device to perform the method as described in any one of claims 1 to 6.