Display screen control method and related apparatus
By receiving user input and switching display operating modes in electronic devices, and using display drivers and frame rate managers to control the display to switch between multiple modes, the problem of electronic devices being unable to adapt to user needs is solved, improving user experience and display flexibility.
Patent Information
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- HONOR DEVICE CO LTD
- Filing Date
- 2025-08-07
- Publication Date
- 2026-04-30
AI Technical Summary
Electronic devices struggle to adapt flexibly to users' varying demands for high refresh rates and smooth displays, resulting in a diminished user experience.
By receiving user input, the system sends frame-switching commands to the display to switch operating modes. It utilizes the display driver and frame rate manager to control the display to switch between multiple modes, including setting hardware parameters and frame rate strategies, and supports multiple display modes.
It improves the flexibility of electronic device display methods and user experience, meets users' needs for display screens, and reduces the probability of failure when switching working modes.
Smart Images

Figure CN2025113195_30042026_PF_FP_ABST
Abstract
Description
Display screen control method and related devices
[0001] This application claims priority to Chinese Patent Application No. 202411508412.6, filed on October 25, 2024, entitled “Display Control Method and Related Apparatus”, the entire contents of which are incorporated herein by reference. Technical Field
[0002] This application relates to the field of terminal technology, and in particular to display screen control methods and related devices. Background Technology
[0003] With the development of electronic device displays, displays that can support higher refresh rates and better smoothness have gradually emerged.
[0004] However, when electronic devices with displays that support higher refresh rates and better smoothness are launched, some users report that the display effects of such displays are not suitable. Electronic devices are unable to flexibly adapt to the needs of these users, thereby reducing the user experience. Summary of the Invention
[0005] The display control method and related apparatus provided in this application can improve the flexibility of the display mode of electronic devices, thereby enhancing the user experience.
[0006] In a first aspect, the display screen control method provided in the embodiments of this application is applied to an electronic device including a display screen, and the method includes:
[0007] The system receives an operation to switch from a first operating mode to a second operating mode; wherein, the reset black bar displayed on the screen in the first operating mode is more numerous than the reset black bar displayed on the screen in the second operating mode. Based on the operation, a first frame-switching command is sent to the screen to adapt it to the second operating mode. In this way, the electronic device can support switching between multiple display modes. For example, by sending a first frame-switching command to the screen to adapt it to the second operating mode, the screen can switch from the first operating mode to the second operating mode, realizing the switching of the screen's operating mode, meeting the user's needs for the screen, improving the flexibility of the electronic device's display methods, and enhancing the user experience.
[0008] In one possible implementation, sending a first frame-switching command to the display screen according to an operation includes: indicating first information to a display driver in the electronic device according to the operation, the first information indicating mode switching; and the display driver sending the first frame-switching command to the display screen based on the first information, the first frame-switching command indicating switching to a first frame rate, the first frame rate being a frame rate supported by a second operating mode. Thus, by indicating the first information to the display driver, the display driver can send the first frame-switching command to the display screen based on the first information, enabling convenient control of the display screen to perform frame switching.
[0009] In one possible implementation, the display driver is configured with first hardware parameters adapted to a first operating mode and second hardware parameters adapted to a second operating mode. The display driver sends a first frame-switching command to the display screen based on the first information, including: in response to the first information, the display driver sends the first frame-switching command to the display screen based on the second hardware parameters. In this way, the display driver can conveniently send the first frame-switching command to the display screen based on the second hardware parameters, thereby instructing the display screen to switch to a first frame rate.
[0010] In one possible implementation, the application framework layer in the electronic device includes a frame rate manager, and the hardware abstraction layer includes a hardware display module. The frame rate manager is configured with a first frame rate strategy adapted to a first operating mode and a second frame rate strategy adapted to a second operating mode. Before sending the first frame-switching command to the display screen, the implementation further includes: the frame rate manager determining to switch to the second operating mode; the frame rate manager instructing the hardware display module to provide second information, which is used to instruct the switch to the second operating mode; instructing the display driver in the electronic device to provide the first information includes: the hardware display module instructing the display driver to provide the first information based on the second information. Thus, the frame rate manager can be configured with a first frame rate strategy and a second frame rate strategy to control the frame rate of the display screen through the frame rate strategy adapted to the operating mode. The frame rate manager, through the second information, can instruct the hardware display module to instruct the display driver to provide the first information, thereby effectively controlling the display screen to switch operating modes and achieving the goal of adapting the display screen to the second operating mode.
[0011] In one possible implementation, before instructing the display driver in the electronic device to the first information, the method further includes: instructing the display driver to provide third information, which indicates a switch to a second frame rate, wherein the second frame rate is a frame rate supported by both the first and second operating modes; and, based on the third information, the display driver sends a second frame-switching command to the display screen based on the first hardware parameters, which instructs the switch to the second frame rate. Thus, by sending the second frame-switching command to the display screen based on the first hardware parameters according to the third information, the display driver can switch the display screen's frame rate to a frame rate supported by both the first and second operating modes before the operating mode switch, thereby reducing the probability of switching failure due to the new operating mode not supporting the frame rate of the previous operating mode and improving the success rate of the display screen's operating mode switching.
[0012] In one possible implementation, the hardware abstraction layer in the electronic device includes a hardware compositor. The third information is given by the hardware compositor to the display driver after the frame rate manager instructs it to switch to the second frame rate. Thus, before the operating mode switch, the hardware compositor in the hardware abstraction layer can first instruct the display driver with the third information to achieve the purpose of switching the display's frame rate to the second frame rate.
[0013] In one possible implementation, the frame rate manager is configured with a first frame rate strategy adapted to a first working mode and a second frame rate strategy adapted to a second working mode. The frame rate manager is used to use the second frame rate strategy when the display is working in the second working mode; or, to use the first frame rate strategy when the display is working in the first working mode. The application framework layer includes one or more of the following: a screen rendering manager, a desktop environment manager, or a touch manager. The screen rendering manager is used to disable a first function when the display is working in the second working mode, or to enable a first function when the display is working in the first working mode. The first function includes: a first working mode in the screen rendering manager... The system includes functions supported by the first working mode but not supported by the second working mode. The desktop environment manager contains parameters related to a first display effect adapted to the first working mode and parameters related to a second display effect adapted to the second working mode. The desktop environment manager is used to use these parameters when the display is in the second working mode, or to use them when the display is in the first working mode. The touch manager is used to disable the second function when the display is in the second working mode, or to enable it when the display is in the first working mode. The second function includes functions supported by the first working mode but not supported by the second working mode in the touch manager. Thus, when switching to the second working mode, the display frame rate can be controlled using a second frame rate strategy. The screen rendering manager can adapt to the second working mode by disabling the first function; the desktop environment manager can adapt to the second working mode by using the second display effect parameters; and the touch manager can adapt to the second working mode by disabling the second function. This allows the electronic device to adapt to the display's working mode switching, improving its usability.
[0014] In one possible implementation, the application layer of the electronic device includes a settings application. The database of the settings application includes configuration items, which are configured to indicate information for switching to a second operating mode or switching to a first operating mode. Thus, the configuration items allow for convenient indication of switching to either the first or second operating mode.
[0015] In one possible implementation, the frame rate manager subscribes to configuration items. When the configuration items change from information indicating a first operating mode to information indicating a second operating mode, the frame rate manager determines to switch to the second operating mode. This method of subscribing to configuration items allows the frame rate manager to obtain the configuration items quickly and efficiently with lower data overhead, thereby improving the efficiency of the frame rate manager in determining whether to switch operating modes.
[0016] In one possible implementation, before receiving the operation to switch from the first working mode to the second working mode, the method further includes: displaying a switch control and a prompt message, the prompt message indicating that the second working mode is enabled, and / or, the functional limitations of enabling the second working mode; receiving the operation to switch from the first working mode to the second working mode includes: receiving a trigger operation on the switch control. In this way, the operation to switch from the first working mode to the second working mode can be conveniently received through the switch control. The prompt message allows users to be promptly informed of enabling the second working mode, and / or, the functional limitations that exist after enabling the second working mode, thus improving the user experience.
[0017] Secondly, embodiments of this application provide a display screen control device, which may be an electronic device, or a chip or chip system within an electronic device. The device may include a processing unit and a display unit. When the device is an electronic device, the display unit may be a display screen. The display unit is used to perform display steps to cause the electronic device to implement the methods described in the first aspect or any possible implementation of the first aspect. The processing unit is used to implement any processing-related method performed by the electronic device in the first aspect or any possible implementation of the first aspect. When the device is an electronic device, the processing unit may be a processor. The device 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 cause the electronic device to implement the methods described in the first aspect or any possible implementation of the first aspect. When the device 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 cause the electronic device to implement the methods described in the first aspect or any possible implementation of the first aspect. The storage unit can be a storage unit within 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.).
[0018] For example, the processing unit is configured to receive an operation to switch from a first operating mode to a second operating mode; wherein the number of reset black bars displayed on the display screen in the first operating mode is greater than the number of reset black bars displayed on the display screen in the second operating mode; and according to the operation, to send a first frame-switching instruction to the display screen to adapt the display screen to the second operating mode.
[0019] In one possible implementation, the processing unit is configured to: instruct a display driver in the electronic device, according to an operation, that the first information is used to indicate a mode switch; and that the display driver sends a first frame-switching instruction to the display screen based on the first information, that the first frame-switching instruction is used to indicate a switch to a first frame rate, the first frame rate being a frame rate supported by the second operating mode.
[0020] In one possible implementation, the display driver is configured with first hardware parameters adapted to a first working mode and second hardware parameters adapted to a second working mode; the processing unit is configured to: in response to the first information, the display driver sends a first frame-slicing instruction to the display screen based on the second hardware parameters.
[0021] In one possible implementation, the application framework layer in the electronic device includes a frame rate manager, and the hardware abstraction layer in the electronic device includes a hardware display module. The frame rate manager is configured with a first frame rate strategy adapted to a first working mode and a second frame rate strategy adapted to a second working mode. The processing unit is further configured to: determine whether to switch to the second working mode; indicate second information to the hardware display module, the second information being used to indicate the switch to the second working mode; and indicate the first information to the display driver in the electronic device, including: the hardware display module indicating the first information to the display driver based on the second information.
[0022] In one possible implementation, the processing unit is further configured to: indicate third information to the display driver, the third information indicating a switch to a second frame rate, the second frame rate being a frame rate supported by both the first and second working modes; and, based on the third information, the display driver sends a second frame-switching instruction to the display screen based on first hardware parameters, the second frame-switching instruction indicating a switch to the second frame rate.
[0023] In one possible implementation, the hardware abstraction layer in the electronic device includes a hardware synthesizer, and the third information is the instruction from the hardware synthesizer to the display driver after the frame rate manager instructs the hardware synthesizer to switch to the second frame rate.
[0024] In one possible implementation, the frame rate manager is configured with a first frame rate strategy adapted to a first working mode and a second frame rate strategy adapted to a second working mode. The frame rate manager is used to use the second frame rate strategy when the display is working in the second working mode; or, to use the first frame rate strategy when the display is working in the first working mode. The application framework layer includes one or more of the following: a screen rendering manager, a desktop environment manager, or a touch manager. The screen rendering manager is used to disable a first function when the display is working in the second working mode, or to enable a first function when the display is working in the first working mode. The first function includes: a first working mode in the screen rendering manager. The first working mode supports functions that are not supported by the second working mode; the desktop environment manager is configured with first display effect parameters adapted to the first working mode and second display effect parameters adapted to the second working mode. The desktop environment manager is used to use the second display effect parameters when the display is working in the second working mode; or, when the display is working in the first working mode, to use the first display effect parameters; the touch manager is used to disable the second function when the display is working in the second working mode, or to enable the second function when the display is working in the first working mode; the second function includes functions supported by the first working mode but not supported by the second working mode in the touch manager.
[0025] In one possible implementation, the application layer of the electronic device includes a settings application, and the database of the settings application includes configuration items for configuring information to indicate the second operating mode when switching to a second operating mode, or for configuring information to indicate the first operating mode when switching to a first operating mode.
[0026] In one possible implementation, the frame rate manager subscribes to configuration items, and when the configuration items change from information indicating a first operating mode to information indicating a second operating mode, the frame rate manager determines to switch to the second operating mode.
[0027] In one possible implementation, the display unit is used to: display a switch control and a prompt message, the prompt message being used to indicate that a second working mode is enabled, and / or, the functional limitations of enabling the second working mode; the processing unit is used to: receive a trigger operation for the switch control.
[0028] Thirdly, embodiments of this application provide an electronic device including a display screen, a memory, and a processor. The memory is used to store a computer program, and the processor is used to execute the computer program to perform the method described in the first aspect or any possible implementation of the first aspect.
[0029] Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer program or instructions that, when executed, cause a computer to perform the method described in the first aspect or any possible implementation thereof.
[0030] Fifthly, embodiments of this application provide a computer program product, including a computer program that, when run, causes a computer to perform the methods described in the first aspect or any possible implementation thereof.
[0031] Sixthly, this application provides a chip or chip system applied to an electronic device, including at least one processor and a communication interface. The communication interface and the at least one processor are interconnected via a circuit. The at least one processor is 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.
[0032] 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.).
[0033] 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
[0034] Figure 1 is a schematic diagram of resetting the blackbody under different modes provided in the embodiments of this application;
[0035] Figure 2 is a schematic diagram of the structure of an electronic device provided in an embodiment of this application;
[0036] Figure 3 is a schematic diagram of the software architecture of the electronic device provided in an embodiment of this application;
[0037] Figure 4 is a schematic diagram of the working mode switching interface provided in the embodiment of this application;
[0038] Figure 5 is a flowchart of a display screen control method provided in an embodiment of this application;
[0039] Figure 6 is a schematic diagram of the structure of a chip provided in an embodiment of this application. Detailed Implementation
[0040] 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:
[0041] 1. Terminology
[0042] 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.
[0043] 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.
[0044] 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, ac, bc, or abc, where a, b, and c can be single or multiple.
[0045] 2. Electronic equipment
[0046] The electronic device in this application embodiment can also be any form of terminal device. For example, the electronic device may include: mobile phone, tablet computer, handheld computer, laptop computer, mobile internet device (MID), virtual reality (VR) device, augmented reality (AR) device, wireless terminal in industrial control, wireless terminal in self-driving, wireless terminal in remote medical surgery, wireless terminal in smart grid, wireless terminal in transportation safety, wireless terminal in smart city, wireless terminal in smart home, cellular phone, cordless phone, session initiation protocol (SIP) phone, wireless local loop (WLL) station, personal digital assistant (PDA), handheld device with wireless communication function, computing device or other processing device connected to a wireless modem, vehicle-mounted device, electronic device in 5G network, or future evolved public land mobile communication network. The embodiments of this application do not limit the scope of electronic devices in a network (PLMN).
[0047] 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.
[0048] Furthermore, in this application embodiment, 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.
[0049] The electronic equipment in the embodiments of this application may also be referred to as: 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.
[0050] In this embodiment, the electronic device or various network devices include a hardware layer, an operating system layer running on top of the hardware layer, and an application layer running on top of the operating system layer. The hardware layer includes hardware such as a central processing unit (CPU), a memory management unit (MMU), and memory (also called 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, instant messaging software, cameras, and / or image processing.
[0051] Low-temperature polycrystalline oxide (LTPO) displays are a type of display that utilizes low-temperature polycrystalline oxide technology. LTPO displays can support dynamic frame rates, intelligently adjusting the frame rate within a certain range based on the usage scenario to improve display smoothness, reduce power consumption, and extend the battery life of electronic devices. For example, LTPO displays may include 8T LTPO displays and 7T LTPO displays.
[0052] An 8T LTPO display is also called an 8T (3P3H) screen, or simply an 8T screen. A 7T LTPO display is also called a 7T (1P1H) screen or a 7T screen. 8T and 7T screens differ in their hardware circuit structure. For example, an 8T screen includes 8 transistors, compared to a 7T screen with 7 transistors. The 8T screen adds a set of transistor circuitry for pixel reset. Because the 8T screen's hardware structure includes more transistors than the 7T screen's, the switching logic of these additional transistors allows the 8T screen to display in either 8T or 7T mode; conversely, the 7T screen's hardware cannot support 8T screen operation.
[0053] The working mode of an 8T screen can also be called 8T mode, and the working mode of a 7T screen can also be called 7T mode. Working mode can be understood as the way the display's hardware circuitry operates after being configured with certain timings, parameters, and / or working states. Different working modes correspond to different display effects.
[0054] The 8T screen offers advantages such as a higher refresh rate and smoother operation in 8T mode compared to 7T mode. In 8T mode, the display's refresh rate can reach up to 360Hz, while in 7T mode, the maximum refresh rate is 120Hz. When displaying dynamic content, a higher refresh rate provides a smoother visual experience. In this embodiment, the display's frame rate can also be understood as its refresh rate.
[0055] When an electronic device's camera captures a picture of a display screen showing content, a black reset bar may appear in the image captured by the camera due to factors such as the scanning method used to capture the image. In this scenario, due to the nature of how displays update pixels, an 8T screen will have a relatively large number of black reset bars when displaying content in 8T mode, while an 8T screen or a 7T screen will have a relatively small number of black reset bars when displaying content in 7T mode.
[0056] Figure 1 is a schematic diagram of the reset black bar under different modes provided in the embodiments of this application. As shown in Figure 1, interfaces a and b are images obtained by taking pictures of the display screen with the camera of another mobile phone. For example, interface a in Figure 1 shows the reset black bar that appears on the screen when an 8T screen phone or a 7T screen phone displays content in 7T mode; interface b in Figure 1 shows the reset black bar that appears on the screen when an 8T screen phone displays content in 8T mode. It can be seen that the number of reset black bars in 7T mode is less than that in 8T mode. It is understandable that the reset black bar is usually only visible when the display screen is photographed with the camera of another electronic device; if the display screen is viewed directly by the eye, the reset black bar cannot be seen or is not easily visible.
[0057] In current implementations, electronic devices, including those with 8T screens, only allow the display to operate in 8T mode, lacking a mechanism for switching between 8T and 7T modes. Since 8T and 7T modes have different display characteristics, users may prefer either mode when using electronic devices. Therefore, if an electronic device cannot support switching between 8T and 7T modes, it may fail to meet user needs for the display, making it difficult to flexibly adapt to user requirements and ultimately reducing the user experience.
[0058] When an electronic device's display screen has the capability to operate in at least two working modes, the operating modes of the display screen can be controlled to switch between them, thus meeting the user's usage needs. For example, if the display screen has the capability to operate in a first working mode and a second working mode, the user can control the display screen's operating mode by switching it from the first working mode to the second working mode, or vice versa, to meet the user's usage needs. The first and second working modes can be any two different working modes supported by the display screen. For example, in an 8T screen, the first working mode can be 8T mode, and the second working mode can be 7T mode. It should be understood that the first and second working modes can also be other working modes besides 8T and 7T modes, as long as the reset black bar displayed on the display screen in the first working mode is more numerous than the reset black bar displayed on the display screen in the second working mode.
[0059] In view of this, embodiments of this application provide a display screen control method and related apparatus. By sending a first frame-switching command to the display screen to enable the display screen to adapt to a second working mode, the display screen can be switched from a first working mode to a second working mode, thereby realizing the switching of the display screen's working mode, meeting the user's usage needs for the display screen, improving the flexibility of the display mode of electronic devices and the user's experience.
[0060] The display screen control method provided in this application can be implemented based on an electronic device including a display screen. To facilitate understanding of the display screen control method provided in this application, the hardware structure of the electronic device provided in this application is described below.
[0061] For example, Figure 2 is a schematic diagram of the structure of an electronic device provided in an embodiment of this application.
[0062] The electronic device may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone jack 170D, a sensor module 180, buttons 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an accelerometer sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0063] It is understood that the structures illustrated in the embodiments of the present invention 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 include hardware, software, or a combination of software and hardware.
[0064] Processor 110 may include one or more processing units, such as 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.
[0065] The controller can generate operation control signals based on the instruction opcode and timing signals to complete the control of instruction fetching and execution.
[0066] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can retrieve it directly from the aforementioned memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0067] In some embodiments, the processor 110 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 SIM card interface, and / or a USB interface, etc.
[0068] 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 limitation on the structure of the electronic device. In other embodiments of this application, the electronic device may also employ different interface connection methods or combinations of multiple interface connection methods as described in the above embodiments.
[0069] Internal memory 121 can be used to store executable program code, including instructions. Internal memory 121 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 settings, smart tabletop, etc.), etc. The data storage area may store data created during the use of the electronic device (such as system configuration data, image data, video streams, etc.). Furthermore, internal memory 121 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. Processor 110 executes various functional applications and data processing of the electronic device by running instructions stored in internal memory 121 and / or instructions stored in memory located within the processor.
[0070] For example, in this embodiment of the application, by running executable program code related to the display control method provided in this embodiment of the application through processor 110, the working mode of the display can be switched to the working mode desired by the user to meet the user's needs. For example, upon receiving an operation from the user to switch the working mode of the 8T screen from 8T mode to 7T mode, in response to the operation, the electronic device sends a frame-switching command to the display, causing the working mode of the display to switch to 7T mode, so that the 8T screen displays content in 7T mode.
[0071] Display screen 194 is used to display images and videos, etc. Display screen 194 includes a display panel. In some embodiments, an electronic device may include at least one display screen 194. The electronic device implements display functions through a GPU, display screen 194, and application processor, etc. The GPU is a microprocessor for image processing, connected to the display screen 194 and the application processor. Display screen 194 may be, for example, an 8T screen, etc.
[0072] The electronic device implements display functions through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, connecting the display screen 194 and the application processor. The GPU performs mathematical and geometric calculations and is used for graphics rendering. The processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information. The electronic device can implement shooting functions through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.
[0073] Figure 3 is a schematic diagram of the software architecture of the electronic device provided in an embodiment of this application. The layered architecture divides the software into several layers, each with a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android operating system can be divided into five layers, from top to bottom: applications, application framework, hardware abstraction layer (HAL), kernel, and hardware layer.
[0074] The application layer can include a series of application packages. The application layer runs applications by calling the application programming interface (API) provided by the application framework layer. As shown in Figure 3, application packages can include applications such as settings, system user interface (system UI), smart capsules, smart tabletop, games, and game manager. Applications can include system applications and third-party applications.
[0075] The application framework layer provides APIs and a programming framework for applications in the application layer. The application framework layer includes some predefined functions. As shown in Figure 3, the application framework layer may include system services, which may include activities and package manager services (APS), game assistants, and gamekit servers, among others.
[0076] As shown in Figure 3, the application framework layer can also include system libraries, which can also be called the Native layer. The Native layer can include multiple functional modules such as a frame rate manager, a screen rendering manager, a desktop environment manager, and a touch manager. For example, the frame rate manager can include an advanced graphics platform (AGP); the screen rendering manager can include a surfaceflinger; the desktop environment manager can include a display engine (DE); and the touch manager can include modules for touch management, such as iTouch or touch panel (TP).
[0077] AGP can be a functional module that switches the display's operating mode and manages the display's frame rate. Surfaceflinger can be used to manage and composite the graphics content displayed on the screen, and also to manage the responsiveness of electronic devices. Responsiveness can be understood as the performance of an electronic device in responding to hand movements that touch the display, such as the speed at which it composites and displays interface images when following a finger swipe on the screen. DE can be a functional module that manages the display's display effects. iTouch or TP can be functional modules that manage the display's touch enhancement functions.
[0078] As shown in Figure 3, the hardware abstraction layer can include a hardware display module (Hwdisplay), a hardware composer (HWC), and a sensor hardware abstraction layer (SensorHAL). Hwdisplay provides a communication path between the application framework layer and the display screen in the hardware layer, enabling the application framework layer to control the display screen. For example, the communication path provided by Hwdisplay can control an 8T screen to switch between 7T and 8T modes. HWC can be used to implement the composition and display of window layers. The communication path provided by HWC can be used to adjust the display screen's refresh rate. SensorHAL can be used to adjust the sensor parameters of the sensors related to the display screen.
[0079] The kernel layer is the layer between hardware and software. As shown in Figure 3, this kernel layer can include one or more of the following: LCD kit driver, display engine driver (DE driver), and sensor driver. The LCD kit driver can be used to drive displays such as those using organic light-emitting diodes (OLEDs), performing tasks such as power-on and power-off initialization. The DE driver can be used to drive the display during image transmission. The sensor driver can be used to drive the sensors associated with the display, controlling their operation in corresponding working modes.
[0080] The hardware layer may include hardware such as a data processing unit (DPU), a display screen, and sensors.
[0081] It should be understood that in some embodiments, layers that perform the same function may be called by other names, or layers that can perform the functions of multiple layers may be considered as one layer, or layers that can perform the functions of multiple layers may be divided into multiple layers. This application does not impose such limitations.
[0082] It should be noted that the embodiments of this application are only illustrated using the Android operating system as an example. In other operating systems (such as Windows operating system, iOS operating system, etc.), as long as the functions implemented by each functional module are similar to those in the embodiments of this application, the solution of this application can also be implemented.
[0083] The implementation of the display screen control method provided in the embodiments of this application will be described in detail below with reference to Figure 3.
[0084] S301, Receive user's operation to switch the working mode of the display screen.
[0085] For example, the operating mode of a display screen can refer to the operating state of the display screen when it is working, including the operating state and operating parameters of the display screen hardware components. A display screen can include at least two operating modes; for example, a display screen can include a first operating mode and a second operating mode. The reset black bar displayed on the display screen in the first operating mode is more numerous than the reset black bar displayed on the display screen in the second operating mode. Users can switch the operating mode of the display screen from the first operating mode to the second operating mode, and vice versa.
[0086] Taking an 8T screen as an example, if all 8 transistors are actively working, this corresponds to the 8T mode, which is the first working mode. If 7 transistors are actively working and 1 transistor is in a non-operating state (e.g., disabled), this corresponds to the 7T mode, which is the second working mode. It's understandable that if a display can operate in more states, it includes more working modes.
[0087] In one possible implementation, the application can pre-set operation objects such as options or switches for switching the display's operating mode, so as to receive user commands to switch the display's operating mode through these operation objects. For example, a switch control for switching the display's operating mode can be set in the settings application's interface, so that the user's command to switch the display's operating mode can be received through this switch control.
[0088] Figure 4 is a schematic diagram of the working mode switching interface provided in this application embodiment. As shown in Figure 4, the switch control for switching working modes can be displayed in the developer options interface. In Figure 4, the switch control on the right side of the 8T LTOP single scan mode is a 7T / 8T switch for switching between 7T and 8T modes. The name of the 7T / 8T switch can also be preset to other names. In response to the user clicking the switch control on the right side of the 8T LTOP single scan mode, the system can receive the user's trigger operation to switch between 7T and 8T modes on the display screen.
[0089] In one possible implementation, functional limitations after switching working modes can be indicated around the object being operated on. This could include one or more warning messages such as changes in display performance, application content display, and electronic device performance. For example, as shown in Figure 4, below the 8T LTOP single-scan mode, a warning message states, "After activation, the all-day and timed display modes of the full-screen always-on display are unavailable. The smart tabletop will display a clock style after 20 seconds, and power consumption, smoothness, and display effect will be affected." This message informs the user of the functional limitations of the electronic device after switching the display from 8T mode to 7T mode.
[0090] It is understood that, in this embodiment, the 7T / 8T switch can be set in the developer options or other settings, such as settings related to the display screen. Alternatively, the 7T / 8T switch can also be set in other application interfaces; this embodiment does not limit this.
[0091] S302, In response to the user's operation of switching the operating mode of the display screen, modify the configuration items in the database.
[0092] The database can be the database of the application that receives the user's operation mode switching command. Configuration items can be set in the database to indicate whether to switch the display's operating mode. Upon receiving the user's operation to switch the display, the state of the configuration items can be modified in response to the operation, thus determining whether to switch the display's operating mode.
[0093] In one possible implementation, a system property configuration item (prop configuration item) corresponding to the 7T / 8T switch is set in the application's database. The prop configuration item can represent a flag bit of the 7T / 8T switch, and the state of the flag bit can indicate either an "on" or "off" state. For example, a preset prop configuration item with the first value indicates that the 7T / 8T switch is in the "on" state, corresponding to the display's operating mode being 7T mode; a preset prop configuration item with the second value indicates that the 7T / 8T switch is in the "off" state, corresponding to the display's operating mode being 8T mode. The first and second values can be any two different values, for example, the first value being 0 and the second value being 1.
[0094] For example, a user clicks the 7T / 8T switch to switch the operating mode of the 8T screen from 8T mode to 7T mode. In response to this click, the electronic device modifies the value of the prop configuration item corresponding to the 7T / 8T switch from 1 to 0 in the settings database to confirm the switch of the display's operating mode from 8T mode to 7T mode.
[0095] S303. Determine whether to switch the display's operating mode via the frame rate manager.
[0096] For example, the frame rate manager in the native layer could be AGP, which can obtain configuration items from the application database in real time. For instance, AGP can subscribe to configuration items in the application database, and if the value of a configuration item is modified, AGP can promptly obtain the modified value to determine whether to switch the display's operating mode.
[0097] S304 (not shown in the figure) and the frame rate manager instruct the modules related to the display's operating mode to switch the display's operating mode.
[0098] After the frame rate manager determines the operating mode of the switching display, it can indicate the information of switching the operating mode of the display to the modules related to the operating mode of the display in the Native layer and HAL layer, so that the modules related to the operating mode of the display can adjust their status or control the hardware such as the display to switch the operating mode.
[0099] For example, S304 may include S3041, S3042, S3043, S3044 and / or S3045, wherein the timing of each step is not limited.
[0100] S3041, The frame rate manager instructs the screen rendering manager to switch the operating mode of the display.
[0101] As shown in Figure 3, AGP can include a 7T / 8T switching module for switching between 7T and 8T modes of the display. When AGP determines to switch the display's operating mode based on the modified configuration item value, it can use the 7T / 8T switching module to indicate the switching operating mode information to Surfaceflinger in the Native layer, so that Surfaceflinger can adjust its state.
[0102] For example, SurfaceFlinger may include responsiveness-related configurations. Electronic devices generally have lower responsiveness in 7T mode compared to 8T mode. 8T mode may include more optimized responsiveness configurations compared to 7T mode. When an 8T screen switches from 8T mode to 7T mode, SurfaceFlinger can disable responsiveness configurations adapted to 8T mode to adapt to the responsiveness of 7T mode. Alternatively, when an 8T screen switches from 7T mode to 8T mode, SurfaceFlinger can enable responsiveness configurations adapted to 8T mode to adapt to the responsiveness of 8T mode.
[0103] A display driver integrated circuit (DDIC) is a driver device used to control a display screen. A DDIC can be a dedicated chip that drives the display screen. The DDIC generates signals used to control image delivery, such as timing engine (TE) signals. In 8T mode, the DDIC can generate a TE signal of up to 360Hz, while in 7T mode, the TE signal generated by the DDIC is limited to a maximum of 120Hz. When the display screen operates in 8T mode, it can generate a 360Hz TE signal between two 120Hz TE signals, thus speeding up image delivery.
[0104] In one possible implementation, after receiving the AGP instruction to switch to 7T mode, SurfaceFlinger can adjust its hand-tracking-related configurations to adapt image composition and display in 7T mode. For example, SurfaceFlinger might enable 7T hand-tracking adaptation while disabling configurations related to adapting to the 360Hz high-frequency TE signal in 8T mode. Similarly, after receiving the AGP instruction to switch to 8T mode, SurfaceFlinger can adjust its hand-tracking-related configurations to adapt to image composition and display in 8T mode. For example, SurfaceFlinger might enable 8T hand-tracking adaptation while enabling configurations related to adapting to the 360Hz high-frequency TE signal in 8T mode.
[0105] S3042, The frame rate manager instructs the desktop environment manager to switch the operating mode of the display.
[0106] As shown in Figure 3, when AGP determines to switch the operating mode of the display screen, it can use the 7T / 8T switching module to indicate the switching operating mode information to the DE in the Native layer so that the DE can adjust its state.
[0107] For example, after receiving the information about the switching operating mode indicated by AGP, the DE can switch the configuration of display effect-related parameters. For instance, the DE can store a set of display effect-related parameters adapted to 7T mode and another set of display effect-related parameters adapted to 8T mode. These display effect-related parameters can be one or more parameters used to adjust the color display of the screen, such as the color value and / or color temperature value of the screen.
[0108] For example, when the DE receives the information indicating a switch to 7T mode from the AGP, it can use the display effect parameters adapted to 7T mode and disable the display effect parameters adapted to 8T mode; when the DE receives the information indicating a switch to 8T mode from the AGP, it can use the display effect parameters adapted to 8T mode and disable the display effect parameters adapted to 7T mode.
[0109] S3043, The frame rate manager instructs the touch manager to switch the operating mode of the display.
[0110] As shown in Figure 3, when AGP determines to switch the working mode of the display, it can use the 7T / 8T switching module to indicate the information of switching the working mode to iTouch in the Native layer so that iTouch can adjust its state.
[0111] For example, the iTouch may include a touch enhancement module to enhance the touch performance of the display. The iTouch can have a touch enhancement switch to control whether touch enhancement is enabled or disabled. When the iTouch receives an AGP indication to switch to 7T mode, it can disable the touch enhancement switch to adapt the iTouch to 7T mode. When the iTouch receives an AGP indication to switch to 8T mode, it can enable the touch enhancement switch to adapt the iTouch to 8T mode, allowing touch enhancement to run in 8T mode.
[0112] S3044, the frame rate manager instructs the hardware display module in the hardware abstraction layer to switch the operating mode of the display screen.
[0113] As shown in Figure 3, the 7T / 8T switching module in AGP can use a predefined application programming interface to indicate the information for switching the working mode of the display screen to the hardware display module in the HAL layer, so that the hardware display module can control the display screen to switch working modes.
[0114] S3045, the frame rate manager instructs the sensor hardware abstraction layer in the hardware abstraction layer to switch the operating mode of the display.
[0115] As shown in Figure 3, the 7T / 8T switching module in AGP can indicate the information for switching the working mode of the display screen to the sensor hardware abstraction layer in the HAL layer through a predefined application programming interface, so that the sensor hardware abstraction layer can control the sensors related to the display screen.
[0116] For example, the hardware display module in the HAL layer might be Hwdisplay, and the hardware sensor module might be SensorHAL. Depending on the software system version requirements of the electronic device, Android Interface Definition Language (AIDL) or Hardware Abstraction Layer Interface Definition Language (HAL Interface Definition Language, HIDL) interfaces can be predefined to pass information to Hwdisplay and / or SensorHAL. AGP can then use predefined AIDL and / or HIDL interfaces to pass information indicating the switching of the display's operating mode to Hwdisplay and / or SensorHAL.
[0117] When AGP determines that a configuration item value has been modified, it can invoke a predefined AIDL interface to instruct Hwdisplay and SensorHAL to switch the display's operating mode. The mode switching instruction can include a first value or a second value; for example, the first value can be 0 and the second value can be 1. When the mode switching instruction includes 0, it instructs Hwdisplay and SensorHAL to switch to the second operating mode, such as 7T mode. When the mode switching instruction includes 1, it instructs Hwdisplay and SensorHAL to switch to the first operating mode, such as 8T mode.
[0118] SensorHAL can control sensors separately for 8T and 7T modes using different sensor control strategies to ensure the sensors function correctly in the switched modes. For example, after switching to 7T mode, AGP can instruct SensorHAL to adjust the configuration of sensors related to ambient light, proximity light, and color temperature via a predefined AIDL interface to adapt to the display's operating mode. The sensors related to ambient light, proximity light, and color temperature can be the same sensor or different sensors, such as a proximity light sensor. The sensor control strategy can include strategies for adjusting the sensor's acquisition parameters.
[0119] For example, the reset black bar appearing on the display is related to DDIC control. The proximity sensor's operation outside the reset black bar affects visual perception; therefore, it can be configured to operate within the reset black bar's range. The number of reset black bars on the display differs between 7T and 8T modes, and the frequency with which the proximity sensor operates within the reset black bar's range also differs. Therefore, after passing a status command indicating display mode switching to SensorHAL, SensorHAL can switch the sensor control strategy and adjust the sensor's acquisition parameters, such as the acquisition period or acquisition frequency, according to the sensor control strategy corresponding to the display's switched operating mode to adapt to the new operating mode. For example, SensorHAL can instruct the kernel-level sensor driver to switch the display's operating mode, allowing the sensor driver to adjust the sensor's acquisition parameters.
[0120] In one possible implementation, AGP can adaptively control the display's refresh rate. This can be understood as adjusting the display's refresh rate adaptively based on preset conditions. For example, if the current display refresh rate is 120Hz, and the displayed content changes to a static image, AGP can send a command to the DDIC to adjust the frame rate. This command reduces the display's refresh rate from 120Hz to a lower rate, such as 1Hz, to save power. This process of adjusting the refresh rate can be understood as a form of adaptive control.
[0121] Due to the inherent limitations of display technology, when the display brightness is low (e.g., less than 5 nits), the refresh rate cannot be reduced to 1Hz; for example, it can only be reduced to a minimum of 10Hz. Therefore, 5 nits corresponds to a frame rate threshold of 10Hz, which serves as a threshold for adaptive frame rate control. Based on the fact that multiple display brightness levels correspond to their respective frame rate thresholds, a strategy table can be obtained that includes the correspondence between multiple display brightness levels and threshold values. This strategy table allows for adaptive frame rate control of the display.
[0122] For example, since the correspondence between display brightness and threshold values differs between 7T and 8T modes, their strategy tables also differ. For instance, in 8T mode, the refresh rate cannot be reduced to 1Hz when the display brightness is less than or equal to 2 nits; in 7T mode, the refresh rate cannot be reduced to 1Hz when the display brightness is less than or equal to 10 nits. Therefore, the strategy tables for 7T and 8T modes set different correspondences between display brightness and threshold values, allowing for different strategy tables for each mode.
[0123] Furthermore, the refresh rate levels supported by 7T and 8T modes are not entirely the same. For example, 8T mode supports refresh rates including 30Hz, 60Hz, 90Hz, and 120Hz; while 7T mode supports 30Hz, 60Hz, and 120Hz, but does not support 90Hz. Because the refresh rate levels supported by 7T and 8T modes are different, their respective strategy tables will also differ.
[0124] In one possible implementation, AGP includes a 7T / 8T frame rate strategy for frame rate control of the display. The 7T / 8T frame rate strategy includes a 7T strategy table corresponding to 7T mode, used for adaptive frame rate control and refresh rate level control of the 8T screen in 7T mode; it also includes an 8T strategy table corresponding to 8T mode, used for adaptive frame rate control and refresh rate level control of the 8T screen in 8T mode. When AGP determines to switch the display's operating mode, the 7T / 8T frame rate strategy also switches between the 7T and 8T strategy tables. For example, when AGP determines that the display is switching to 7T mode, the 7T / 8T frame rate strategy uses the 7T strategy table and disables the 8T strategy table; when AGP determines that the display is switching to 8T mode, the 7T / 8T frame rate strategy uses the 8T strategy table and disables the 7T strategy table.
[0125] In one possible implementation, applications related to the display's operating mode can also retrieve configuration items from the database in real time and adjust their own configurations when a modification is detected. For example, when an 8T screen switches from 8T mode to 7T mode, applications such as Always-on Display (AOD), Smart Tabletop, Dynamic Capsule, and games in the system UI may experience perceptible display changes. Therefore, these applications can retrieve configuration items in real time and adjust their own configuration items when modifications occur. For instance, Smart Tabletop can associate with the prop configuration item corresponding to the 7T / 8T switch to obtain the prop configuration item's value. After determining that the prop configuration item's value has changed, Smart Tabletop sets its configuration items so that it displays a clock style after 20 seconds. If switching to 7T mode, the application can disable configuration items related to the 8T mode display characteristics to adapt the application to the 7T mode display.
[0126] S305. Indicate first information to the display driver through the hardware display module, wherein the first information is information indicating to the display driver to switch the display screen working mode.
[0127] For example, modules for controlling mode switching can be configured in both Hwdisplay and the lcdkit driver. As shown in Figure 3, modules for 7T / 8T switching between 7T and 8T modes can be configured in both Hwdisplay and the lcdkit driver. After receiving the mode switching instruction from AGP, Hwdisplay can use the 7T / 8T switching module to indicate the first information to the lcdkit driver in the kernel layer via a read / write node approach. After writing the first information, the lcdkit driver can configure the display driver based on the first information to adapt the display to the switched working mode.
[0128] The 7T / 8T switching module in the LCD kit driver can send a frame-switching command to the display screen based on the first written information, so that the display screen adapts to the switched working mode. For example, the 7T / 8T switching module sends a first frame-switching command to the display screen to adapt it to the second working mode.
[0129] In one possible implementation, the first frame-switching instruction can be an instruction to instruct the display to switch its refresh rate to a first frame rate, which can be a frame rate supported by the switching operating mode. For example, if the 7T operating mode supports frame rates such as 30Hz, 60Hz, and 120Hz, then when switching to 7T mode, the first frame-switching instruction could be an instruction to switch the display to 7T 30Hz, 7T 60Hz, or 7T 120Hz.
[0130] S306. The display driver configures the display screen based on the first information to adapt the display screen to the switched working mode.
[0131] As shown in Figure 3, the LCD kit driver can include a 7T / 8T frame rate adaptation module. This module can set a configuration file for driving the display screen. This configuration file can include hardware parameters for configuring the display screen corresponding to different frame rates in different working modes.
[0132] For example, the configuration file for driving the display is a driver device tree file, which includes hardware parameters for multiple display configurations corresponding to 7T 30Hz, 7T 60Hz, 7T 120Hz, 8T 30Hz, 8T 60Hz, 8T 90Hz, and 8T 120Hz. The 7T / 8T switching in the LCD kit driver can, based on the operating mode and frame rate indicated by the first information, call the hardware parameters of the display corresponding to that operating mode and frame rate, and send the corresponding first frame-switching command to the display.
[0133] For example, if the first information indicates that the display's working mode should be switched to 120Hz refresh rate in 7T mode, then the 7T / 8T switching calls the hardware parameters of the 7T 120Hz configuration display in the driver device tree file, generates a frame-switching instruction to switch to 7T 120Hz, and sends it to DDIC to drive the display to work at 120Hz refresh rate in 7T mode, thereby realizing the switching of the display's working mode.
[0134] In one implementation, when the 7T / 8T switching module in the LCD kit driver sends the first frame switching command to the DPU, the DPU can then send the first frame switching command to the display screen via the MIPI standard interface.
[0135] For example, the DPU includes: a layer mixer (LM) responsible for mixing multiple image layers together to generate the final displayed image; local tone mapping (LTM) used to improve the local contrast and detail of the image on the display device; a display subsystem pre-processor (DSPP) used to preprocess the image before it is sent to the display screen, such as scaling and color conversion; a scaler responsible for scaling the image to adapt to the display requirements of different resolutions; rate control / smart panel refresh (RC / SPR), where RC controls the data transfer rate to optimize performance and power consumption; and SPR refers to intelligently refreshing the display panel to improve efficiency and reduce energy consumption. The display serial interface (DSI) is a communication protocol used to connect the monitor and the graphics processor, supporting high-speed data transfer. After receiving the first frame-cutting instruction, the DPU can sequentially send the first frame-cutting instruction to the display screen using the MIPI standard interface through LM, LTM, DSPP, Scaler, RC / SPR, and DSI.
[0136] For example, 8T mode supports a 90Hz refresh rate, while 7T mode does not. Therefore, the 7T / 8T frame rate adaptation module will not contain the hardware parameters corresponding to a 7T 90Hz display configuration. Consequently, if the display is currently operating in 8T mode at a 90Hz refresh rate, and a switch to the same refresh rate (90Hz) is performed from 8T mode to 7T mode, the first frame switching command for 7T 90Hz cannot be generated, resulting in a switching failure. To avoid this problem, the frame rate of the current operating mode can be adjusted to a second frame rate supported by both the current and target operating modes before performing the mode switch.
[0137] In one possible implementation, after AGP determines to switch the operating mode of the display, it can first pass a frame rate switching instruction to HWC in the HAL layer to adjust the frame rate of the display to a second frame rate supported by both the current operating mode and the operating mode to be switched to. The second frame rate can be, for example, 30Hz, 60Hz or 120Hz.
[0138] After the display switches to the second frame rate, AGP sends a mode switching command to Hwdisplay to switch the display's operating mode via Hwdisplay and the LCDkit driver. This ensures that the frame rates before and after the mode switch are supported by both the current and the new operating modes, reducing the probability of switching failures due to the new operating mode not supporting the frame rate of the previous mode.
[0139] For example, in a scenario where an 8T screen switches from 90Hz refresh rate in 8T mode to 7T mode, after AGP determines that the display's operating mode needs to be switched, it can first send a frame rate switching command to HWC. This command includes switching the display's operating mode to 120Hz refresh rate in 8T mode. Upon receiving this command, HWC instructs the LCDKit driver to switch the display's operating mode to 120Hz in 8T mode. The LCDKit driver, upon receiving this command, instructs the DDIC to switch the display's frame rate to 120Hz. For instance, the LCDKit driver, through a 7T / 8T frame rate adaptation module, calls the hardware parameters of the 8T 120Hz configuration display to generate the 8T 120Hz frame rate switching command and sends it to the DDIC.
[0140] After receiving the frame-switching command to switch to 8T 120Hz, DDIC, based on the hardware parameters of the 8T 120Hz configured display, can adjust the display's current refresh rate from 90Hz to 120Hz, enabling the display to operate at 120Hz refresh rate in 8T mode. At this point, DDIC can return a successful mode / frame rate switch reply to AGP. Upon receiving this reply, AGP can use the predefined AIDL interface to instruct Hwdisplay in the HAL layer to switch the display's operating mode to 7T 120Hz. After receiving this mode-switching command, Hwdisplay can use the 7T / 8T switching module to write first information to the lcdkit driver in the kernel layer via a read / write node approach. This first information then instructs the lcdkit driver to instruct DDIC to switch the display to 7T 120Hz. After receiving the first frame-switching command to switch to 7T 120Hz, DDIC configures the display screen according to the hardware parameters of the 7T 120Hz configuration, enabling the display screen to switch to 7T mode, thus allowing an 8T screen to switch from 8T mode to 7T mode. This improves the success rate of display screen working mode switching.
[0141] In one possible implementation, after the display completes the operating mode switch, it can remain in the switched operating mode. Furthermore, AGP's 7T / 8T frame rate strategy can adaptively adjust the display's frame rate in the current operating mode via HWC and the LCD kit driver, thus adapting the display's frame rate to the switched operating mode.
[0142] Based on this, the display screen control method provided in this application embodiment can switch the working mode of the display screen through the above steps to adapt to the user's needs for the display screen, meet the user's personalized selection of display characteristics such as refresh rate, smoothness and number of reset black bars, improve the applicability of electronic devices and the user's experience.
[0143] For example, Smart Desktop is a mobile application that enables personalized desktop display. After opening Smart Desktop, various personalized content such as time, weather, pictures, and text can be displayed by placing the phone horizontally in the screen-off or locked state, making the phone desktop more vivid and personalized.
[0144] In 8T mode, the smart table display can show the same status all day long, while in 7T mode, it cannot. After activating the smart table display, if you switch from 8T mode to 7T mode, the display needs to switch to the AOD (Always On Demand) interface after a preset time. The preset time can be any duration, such as 10 seconds or 20 seconds.
[0145] As shown in Figure 3, to adapt to the display requirements of the smart table when the display switches from 8T mode to 7T mode, an AOD (Always-On) state switching function module or interface can be added to Hwdisplay. This allows the display to change its state after switching to 7T mode, thus adapting to the display requirements of the smart table in 7T mode. The display state can include on-screen state and AOD state.
[0146] For example, in addition to smart screen display, if other applications need to change certain display states in the switched working mode, they can also add new interfaces in Hwdisplay or add corresponding functions to the existing interfaces in Hwdisplay to meet the display state requirements of the application for normal operation.
[0147] The display screen control method of this application will be described in detail below through specific embodiments. The following embodiments can be implemented in combination with each other or independently, and the same or similar concepts or processes may not be described again in some embodiments.
[0148] Figure 5 is a flowchart of a display screen control method provided in an embodiment of this application. The method is applied to an electronic device including a display screen. As shown in Figure 5, the method includes:
[0149] S501, Received an operation to switch from the first working mode to the second working mode; wherein, the number of reset black bars displayed on the display screen in the first working mode is greater than the number of reset black bars displayed on the display screen in the second working mode.
[0150] For example, the number of reset bars displayed on the screen in the first operating mode is greater than the number of reset bars displayed on the screen in the second operating mode. For instance, the first operating mode is 8T mode and the second operating mode is 7T mode. The operation of switching from the first operating mode to the second operating mode can be received through the implementation of S301 in the embodiment corresponding to Figure 3 above, or it can be received in other ways, without limitation.
[0151] S502. According to the operation, send a first frame-switching command to the display screen to adapt the display screen to the second working mode.
[0152] For example, the first frame-switching command may be a frame-switching command corresponding to the second working mode. For instance, in response to a user's operation, the first frame-switching command can be sent to the display screen through the 7T / 8T switching module of the lcdkit driver in the embodiment corresponding to Figure 3 above.
[0153] In this embodiment of the application, the electronic device can support switching between multiple display modes. For example, by sending a first frame-switching instruction to the display screen to enable the display screen to adapt to the second working mode, the display screen can be switched from the first working mode to the second working mode, thereby realizing the switching of the display screen's working mode, meeting the user's needs for the display screen, improving the flexibility of the electronic device's display mode and the user's experience.
[0154] Optionally, according to the operation, sending a first frame-switching instruction to the display screen includes: according to the operation, indicating first information to the display driver in the electronic device, the first information being used to indicate mode switching; the display driver sending the first frame-switching instruction to the display screen based on the first information, the first frame-switching instruction being used to indicate switching to a first frame rate, the first frame rate being the frame rate supported by the second working mode.
[0155] For example, the display driver could be an LCD kit driver. The first information could be an instruction to the display driver to switch the display's operating mode. The first frame rate could be a frame rate supported by the second operating mode; for example, when the second operating mode is 7T mode, the first frame rate could be a frame rate supported by 7T mode, such as 60Hz or 120Hz.
[0156] For example, Hwdisplay can use a 7T / 8T switching module to write first information to the lcdkit driver in the kernel layer via read / write nodes. This first information may include the first frame rate. After the first information is written to the read / write node, the lcdkit driver can execute the instructions corresponding to the first information to send the first frame-switching instruction to the display screen, controlling the display screen to switch the frame rate to the first frame rate.
[0157] The process of sending the first frame-slicing instruction to the display screen through the display driver can be referred to the description in the embodiment corresponding to Figure 3, and will not be repeated here.
[0158] In this embodiment of the application, by indicating the first information to the display driver, the display driver can send a first frame-slicing command to the display screen based on the first information, thereby enabling convenient control of the display screen to slice frames.
[0159] Optionally, the display driver is configured with first hardware parameters adapted to the first working mode and second hardware parameters adapted to the second working mode; the display driver sends a first frame-switching command to the display screen based on the first information, including: in response to the first information, the display driver sends a first frame-switching command to the display screen based on the second hardware parameters.
[0160] For example, the display driver may be configured with first hardware parameters adapted to a first operating mode and second hardware parameters adapted to a second operating mode. Both the first and second hardware parameters are hardware parameters used for driver configuration of the display screen.
[0161] In one possible implementation, if the display can switch between multiple operating modes, multiple sets of hardware parameters can be configured in the display driver, each adapted to a different operating mode. When switching to any operating mode, a frame-switching command can be sent to the display based on the hardware parameters corresponding to that mode.
[0162] The process of the display driver sending the first frame-switching command to the display screen based on the first information can be referred to the description in the embodiment corresponding to Figure 3, and will not be repeated here.
[0163] In this embodiment, the display driver can conveniently send a first frame-switching command to the display screen based on the second hardware parameters, thereby instructing the display screen to switch to the first frame rate.
[0164] Optionally, the application framework layer in the electronic device includes a frame rate manager, and the hardware abstraction layer in the electronic device includes a hardware display module. The frame rate manager is configured with a first frame rate strategy adapted to a first working mode and a second frame rate strategy adapted to a second working mode. Before sending the first frame-switching instruction to the display screen, the method further includes: the frame rate manager determining to switch to the second working mode; the frame rate manager indicating second information to the hardware display module, the second information being used to indicate the switch to the second working mode; indicating the first information to the display driver in the electronic device includes: the hardware display module indicating the first information to the display driver based on the second information.
[0165] For example, a frame rate manager can be used to switch the display's operating mode or to control the display's frame rate; the frame rate manager can be, for example, AGP. The hardware display module can be, for example, Hwdisplay.
[0166] The frame rate manager has a first frame rate policy adapted to the first operating mode and a second frame rate policy adapted to the second operating mode. For example, the first frame rate policy may include an 8T policy table corresponding to the 8T mode, and the second frame rate policy may include a 7T policy table corresponding to the 7T mode. The frame rate manager can control the frame rate of the display screen through the first and second frame rate policies, as described in the embodiment corresponding to Figure 3, and will not be repeated here.
[0167] The second information can be a mode switching instruction used to instruct the hardware display module to switch to a second operating mode. The hardware display module can then instruct the display driver to provide the first information based on the second information. Referring to the description in the embodiment corresponding to FIG3, the second information can, for example, be a mode switching instruction including a first value. For example, when AGP determines to switch to the second operating mode, it can instruct Hwdisplay to provide the mode switching instruction including the first value by calling a predefined AIDL interface. After receiving the mode switching instruction including the first value, Hwdisplay can instruct the display driver to provide the first information based on the mode switching instruction including the first value.
[0168] In this embodiment, the frame rate manager can be configured with a first frame rate strategy and a second frame rate strategy to control the display's frame rate through a frame rate strategy adapted to the working mode. The frame rate manager, through the second information, can instruct the hardware display module to send the first information to the display driver, thereby effectively controlling the display to switch working modes and adapting the display to the second working mode.
[0169] Optionally, before indicating the first information to the display driver in the electronic device, the method further includes: indicating third information to the display driver, the third information being used to indicate switching to a second frame rate, the second frame rate being a frame rate supported by both the first working mode and the second working mode; and, based on the third information, the display driver sending a second frame-switching instruction to the display screen based on the first hardware parameters, the second frame-switching instruction being used to indicate switching to the second frame rate.
[0170] For example, the third information may be an instruction to instruct the display driver to switch the display to a second frame rate. The second frame rate may be, for example, 30Hz, 60Hz, or 120Hz. According to the third information, the display driver may send a second frame-switching instruction to the display based on the first hardware parameters, so that the display switches the frame rate to the second frame rate while adapting to the first working mode, thus preparing for the frame rate switch to the second working mode. For details, please refer to the description in the above embodiments, which will not be repeated here.
[0171] In this embodiment of the application, according to the third information, the display driver sends a second frame-switching instruction to the display screen based on the first hardware parameters. Before switching the working mode, the frame rate of the display screen can be switched to a frame rate supported by both the first and second working modes. This can reduce the probability of switching failure due to the working mode not supporting the frame rate of the working mode before switching, and improve the success rate of the display screen working mode switching.
[0172] Optionally, the hardware abstraction layer in the electronic device includes a hardware synthesizer, and the third information is the instruction from the hardware synthesizer to the display driver after the frame rate manager instructs the hardware synthesizer to switch to the second frame rate.
[0173] For example, the hardware synthesizer can be an HWC. Referring to the description in the embodiment corresponding to FIG3, before the working mode switch, AGP can instruct HWC to switch the display to the second frame rate. After the display is successfully switched to the second frame rate, AGP then performs the working mode switch through Hwdisplay. The specific process will not be described in detail.
[0174] In this embodiment of the application, before switching the working mode, the hardware synthesizer in the hardware abstraction layer can first indicate third information to the display driver in order to achieve the purpose of switching the frame rate of the display screen to the second frame rate.
[0175] Optionally, the frame rate manager is configured with a first frame rate strategy adapted to the first operating mode and a second frame rate strategy adapted to the second operating mode. The frame rate manager is used to use the second frame rate strategy when the display is operating in the second operating mode; or, to use the first frame rate strategy when the display is operating in the first operating mode.
[0176] The application framework layer includes one or more of the following: screen rendering manager, desktop environment manager, or touch manager;
[0177] The screen rendering manager is used to disable the first function when the display is operating in the second working mode, or to enable the first function when the display is operating in the first working mode; the first function includes: functions supported by the first working mode but not supported by the second working mode in the screen rendering manager.
[0178] The desktop environment manager contains parameters related to a first display effect adapted to the first working mode and parameters related to a second display effect adapted to the second working mode. The desktop environment manager is used to use the second display effect parameters when the display is working in the second working mode; or, when the display is working in the first working mode, to use the first display effect parameters.
[0179] The touch manager is used to disable the second function when the display is operating in the second operating mode, or to enable the second function when the display is operating in the first operating mode; the second function includes functions supported by the first operating mode but not supported by the second operating mode in the touch manager.
[0180] For example, the screen rendering manager could be SurfaceFlinger, the desktop environment manager could be DE, and the touch manager could be iTouch or TP. The first function could be, for example, a function related to responsiveness. The first and second display effects could be display effects corresponding to the first and second operating modes, including color and / or color temperature when the display is on. The second function could be, for example, a function related to touch enhancement. Refer to the description in the corresponding embodiment of Figure 3; further details are omitted here.
[0181] It should be understood that "opening" can refer to the state of being open, but should not be understood as the instant of opening or the action of opening.
[0182] In this embodiment, when switching to the second working mode, the frame rate of the display screen can be controlled by using a second frame rate strategy; the screen rendering manager can adapt to the second working mode by disabling the first function; the desktop environment manager can adapt to the second working mode by using second display effect related parameters; and the touch manager can adapt to the second working mode by disabling the second function. In this way, the electronic device can adapt to the switching of the display screen's working mode, thereby improving the applicability of the electronic device.
[0183] Optionally, the application layer of the electronic device includes a settings application, the database of which includes configuration items for information to indicate the second operating mode when switching to the second operating mode, or information to indicate the first operating mode when switching to the first operating mode.
[0184] For example, a configuration item could be a `prop` configuration item. Information indicating the first operating mode in the configuration item could be a second value, and information indicating the second operating mode could be a first value. Refer to the description of S302 in the embodiment corresponding to Figure 3 above; further details are omitted here.
[0185] In this embodiment of the application, the configuration items can be used to conveniently indicate whether to switch to the first working mode or to the second working mode.
[0186] Optionally, the frame rate manager subscribes to configuration items, and if the configuration items change from information indicating the first operating mode to information indicating the second operating mode, the frame rate manager determines to switch to the second operating mode.
[0187] For example, the frame rate manager can subscribe to configuration items. The configuration items can be small amounts of data, and the data overhead generated by subscribing to configuration items is also small. Therefore, by subscribing to configuration items, configuration items can be obtained quickly and efficiently with low data overhead, thereby improving the efficiency of the frame rate manager in determining whether to switch working modes. For details, please refer to the description in the embodiment corresponding to Figure 3 above, which will not be repeated here.
[0188] In this embodiment of the application, the frame rate manager can obtain configuration items quickly and efficiently with low data overhead by subscribing to configuration items, thereby improving the efficiency of the frame rate manager in determining whether to switch working modes.
[0189] Optionally, before receiving the operation to switch from the first working mode to the second working mode, the method further includes: displaying a switch control and a prompt message, the prompt message being used to prompt the activation of the second working mode, and / or, the functional limitations of activating the second working mode; receiving the operation to switch from the first working mode to the second working mode includes: receiving a trigger operation for the switch control.
[0190] For example, the switch control can be a switch control in the application interface corresponding to the switching of the display's working mode. Through the user's triggering operation of the switch control, a switch operation from the first working mode to the second working mode can be received. The prompt information can be any enhancement used to prompt the activation of the second working mode, and / or the functional limitations of activating the second working mode. The enhancement information can be any form of prompt, such as text, image, and / or voice. Refer to the description in the embodiment corresponding to Figure 3 above; further details will not be repeated here.
[0191] In this embodiment, a switch control can conveniently receive the operation of switching from a first working mode to a second working mode. Prompt messages allow users to be promptly informed of activating the second working mode and / or the functional limitations that exist after activating the second working mode, thus improving the user experience.
[0192] 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.
[0193] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, use and processing of the relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and corresponding operation portals are provided for users to choose to authorize or refuse.
[0194] The foregoing primarily describes the solutions provided by the embodiments of this application from a methodological perspective. To achieve the aforementioned functions, it includes corresponding hardware structures and / or software modules for executing each function. Those skilled in the art should readily recognize that, based on the method steps of the examples described in conjunction with the embodiments disclosed herein, this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed in hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0195] This application embodiment can divide the apparatus for implementing the method into functional modules based on the above method examples. For example, each function can be divided into its own functional modules, or two or more functions can be integrated into one processing module. The integrated module can be implemented in hardware or as a software functional module. It should be noted that the module division in this application embodiment is illustrative and only represents one logical functional division; other division methods may be used in actual implementation.
[0196] Figure 6 is a schematic diagram of the structure of a chip provided in an embodiment of this application. The chip 600 includes one or more processors 601, communication lines 602, communication interfaces 603, and memory 604.
[0197] In some implementations, memory 604 stores elements such as executable modules or data structures, or subsets thereof, or extended sets thereof.
[0198] 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.
[0199] 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.
[0200] The processor 601, memory 604 and communication interface 603 can communicate with each other via communication line 602.
[0201] 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.
[0202] This application also provides a computer program product comprising one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the flow or function according to the embodiments of this application is generated. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, computer instructions may be transmitted from a website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a server or data center that integrates one or more available media. For example, available media may include magnetic media (e.g., floppy disk, hard disk, or magnetic tape), optical media (e.g., digital versatile disc (DVD)), or semiconductor media (e.g., solid-state disk (SSD)).
[0203] This application also provides a computer-readable storage medium. The methods described in the above embodiments can be implemented, in whole or in part, by software, hardware, firmware, or any combination thereof. The computer-readable medium may include computer storage media and communication media, and may also include any medium capable of transferring a computer program from one place to another. The storage medium can be any target medium accessible by a computer.
[0204] In one possible implementation, a computer-readable medium may include a compact disc read-only memory (CD-ROM), RAM, ROM, EEPROM, or other optical disc storage; a computer-readable medium may also include a disk storage device or other disk storage device. Furthermore, any connecting cable may also be 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 (CD), laser discs, optical discs, digital versatile discs (DVD), floppy disks, and Blu-ray discs, where disks typically reproduce data magnetically, while optical discs optically reproduce data using lasers.
[0205] This application describes embodiments with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. 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 data processing apparatus to produce a machine, such that the instructions, which execute via the processing unit of the computer or other programmable data processing apparatus, create means for implementing the functions specified in one or more blocks of the flowchart illustrations and / or one or more blocks of the block diagrams.
[0206] 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 control method, characterized in that, Applied to an electronic device including a display screen, the method includes: The system receives an operation to switch from a first operating mode to a second operating mode; wherein, the number of reset black bars displayed on the display screen in the first operating mode is greater than the number of reset black bars displayed on the display screen in the second operating mode. According to the operation, a first frame-slicing command is sent to the display screen to adapt the display screen to the second working mode.
2. The method according to claim 1, characterized in that, Sending a first frame-slicing command to the display screen according to the operation includes: According to the operation, first information is indicated to the display driver in the electronic device, the first information being used to indicate mode switching; The display driver sends the first frame-switching instruction to the display screen based on the first information. The first frame-switching instruction is used to indicate switching to a first frame rate, which is the frame rate supported by the second working mode.
3. The method according to claim 2, characterized in that, The display driver is configured with a first hardware parameter adapted to the first working mode and a second hardware parameter adapted to the second working mode. The display driver sends the first frame-switching command to the display screen based on the first information, including: In response to the first information, the display driver sends the first frame-switching command to the display screen based on the second hardware parameters.
4. The method according to claim 2 or 3, characterized in that, The application framework layer in the electronic device includes a frame rate manager, and the hardware abstraction layer in the electronic device includes a hardware display module. The frame rate manager is configured with a first frame rate strategy adapted to the first working mode and a second frame rate strategy adapted to the second working mode. Before sending the first frame-slicing command to the display screen, the method further includes: The frame rate manager determines to switch to the second working mode; The frame rate manager indicates second information to the hardware display module, the second information being used to indicate switching to the second working mode; The instruction of first information to the display driver in the electronic device includes: the hardware display module instructing the first information to the display driver based on the second information.
5. The method according to any one of claims 2-4, characterized in that, Before instructing the display driver in the electronic device to provide the first information, the method further includes: The display driver is instructed with third information, which is used to indicate a switch to a second frame rate, the second frame rate being a frame rate supported by both the first working mode and the second working mode; According to the third information, the display driver sends a second frame-switching instruction to the display screen based on the first hardware parameters. The second frame-switching instruction is used to indicate switching to the second frame rate.
6. The method according to claim 5, characterized in that, The hardware abstraction layer in the electronic device includes a hardware synthesizer, and the third information is indicated by the hardware synthesizer to the display driver after the frame rate manager instructs the hardware synthesizer to switch to the second frame rate.
7. The method according to any one of claims 4-6, characterized in that, The frame rate manager is configured with a first frame rate strategy adapted to the first working mode and a second frame rate strategy adapted to the second working mode. The frame rate manager is used to use the second frame rate strategy when the display is working in the second working mode. Alternatively, if the display screen is operating in the first operating mode, the first frame rate strategy may be used. The application framework layer includes one or more of the following: screen rendering manager, desktop environment manager, or touch manager; The screen rendering manager is used to disable the first function when the display screen is working in the second working mode, or to enable the first function when the display screen is working in the first working mode; the first function includes: functions supported by the first working mode but not supported by the second working mode in the screen rendering manager; The desktop environment manager is configured with a first display effect related parameter adapted to the first working mode and a second display effect related parameter adapted to the second working mode. The desktop environment manager is used to use the second display effect related parameter when the display screen is working in the second working mode; or, when the display screen is working in the first working mode, use the first display effect related parameter. The touch manager is used to disable the second function when the display is operating in the second operating mode, or to enable the second function when the display is operating in the first operating mode; the second function includes: functions supported by the first operating mode but not supported by the second operating mode in the touch manager.
8. The method according to any one of claims 1-7, characterized in that, The application layer of the electronic device includes a settings application, and the database of the settings application includes configuration items, which are configured to indicate information of the second working mode when switching to the second working mode, or to indicate information of the first working mode when switching to the first working mode.
9. The method according to claim 8, characterized in that, The frame rate manager subscribes to the configuration item, and when the configuration item changes from information indicating the first operating mode to information indicating the second operating mode, the frame rate manager determines to switch to the second operating mode.
10. The method according to any one of claims 1-9, characterized in that, Before receiving the operation to switch from the first working mode to the second working mode, the method further includes: Display switch control and prompt information, the prompt information being used to prompt the activation of the second working mode, and / or, the functional limitations of activating the second working mode; The receiving of the operation to switch from the first working mode to the second working mode includes: receiving a trigger operation for the switch control.
11. An electronic device, characterized in that, include: A display screen, a memory, and a processor, the memory for storing a computer program, and the processor for executing the computer program to perform the method as claimed in any one of claims 1-10.
12. 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-10.
13. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores instructions that, when executed, cause a computer to perform the method as described in any one of claims 1-10.
14. A computer program product, characterized in that, Includes a computer program that, when run, causes an electronic device to perform the method as described in any one of claims 1-10.
Citation Information
Patent Citations
Power consumption control method and electronic equipment
CN116055623A
Refresh rate switching method and electronic equipment
CN116092452A
Display control method and device and electronic equipment
CN116486745A
Power consumption control method and electronic equipment
CN117676003A
Frame rate control method and related device
CN118381869A