Display method, electronic device, and storage medium
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-23
- Publication Date
- 2026-08-11
AI Technical Summary
[0003]但是,在一些情况下,当屏幕切换刷新率时,尤其是从较高刷新率切换到较低刷新率时,人眼可能会感知到屏幕发生闪烁,从而影响用户的使用体验
[0023] Fourthly, embodiments of this application provide a computer program product including computer program code. When the computer program code is run on a computer, it causes the computer to implement the method described in any embodiment of the first aspect. The beneficial effects achievable in this fourth aspect can be found in the beneficial effects of the method provided in any embodiment of the first aspect, and will not be repeated here.
Smart Images

Figure CN121053875B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of screen display technology, and in particular to a display method, electronic device, and storage medium. Background Technology
[0002] Screens made of materials such as low-temperature polysilicon (LTPS) and low-temperature polycrystalline oxide (LTPO) can dynamically adjust their refresh rate to improve the smoothness of the screen display while reducing power consumption.
[0003] However, in some cases, when the screen refresh rate is switched, especially from a higher refresh rate to a lower refresh rate, the human eye may perceive screen flickering, thus affecting the user experience. Summary of the Invention
[0004] Some embodiments of this application provide a display method, an electronic device, and a storage medium. The following describes this application from multiple aspects, and the embodiments and beneficial effects of the following aspects can be referred to each other.
[0005] In a first aspect, this application provides a display method for an electronic device, comprising: refreshing and displaying a first interface at a first refresh rate; detecting a first event; and, when the electronic device is in a first state, refreshing and displaying a second interface at a second refresh rate, wherein the second refresh rate is greater than or equal to the first refresh rate, and the first state includes the electronic device having a first screen brightness and the ambient light brightness of the electronic device being in a first ambient light brightness; and, when the electronic device is in a second state, refreshing and displaying the second interface at a third refresh rate, wherein the third refresh rate is less than the first refresh rate, and the second state includes the electronic device having a second screen brightness and the ambient light brightness of the electronic device being in a second ambient light brightness; wherein the first screen brightness is greater than the second screen brightness, and the first ambient light brightness is greater than the second ambient light brightness.
[0006] When an electronic device refreshes and displays a first interface at a first refresh rate, upon detecting a first event, if the current screen brightness of the electronic device is the first screen brightness and the ambient light brightness is the first ambient light brightness, the electronic device switches to a second refresh rate greater than or equal to the first refresh rate to refresh and display a second interface. That is, the electronic device maintains its current screen refresh rate to refresh and display the second interface, or switches to a higher refresh rate to avoid the user perceiving screen flickering when the screen switches from a higher refresh rate to a lower refresh rate.
[0007] In some implementations, the brightness of the first screen is less than the preset screen brightness corresponding to the grayscale information of the first interface; the brightness of the second screen is greater than or equal to the preset screen brightness corresponding to the grayscale information of the first interface; the brightness of the first ambient light is less than the preset ambient light brightness corresponding to the grayscale information of the first interface; and the brightness of the second ambient light is greater than or equal to the preset ambient light brightness corresponding to the grayscale information of the first interface.
[0008] In some implementations, the grayscale information includes a first grayscale percentage, wherein the first grayscale percentage is the percentage of pixels in the first interface that are less than or equal to a preset grayscale value.
[0009] In some implementations, corresponding to a first grayscale ratio being greater than or equal to a preset grayscale ratio, the preset screen brightness is a first preset screen brightness, and the preset ambient light brightness is a first preset ambient light brightness; corresponding to a first grayscale ratio being less than a preset grayscale ratio, the preset screen brightness is a second preset screen brightness, and the preset ambient light brightness is a second preset ambient light brightness; wherein, the first preset screen brightness is greater than the second preset screen brightness, and the first preset ambient light brightness is greater than the second preset ambient light brightness.
[0010] When the proportion of low grayscale on the screen of an electronic device is large, and the screen brightness of the electronic device is lower than the first preset screen brightness, and the ambient light brightness of the electronic device is lower than the first preset ambient light brightness; or when the proportion of low grayscale on the screen of an electronic device is large, and the screen brightness of the electronic device is lower than the second preset screen brightness, and the ambient light brightness of the electronic device is lower than the second preset ambient light brightness, the electronic device switches to a higher refresh rate for display, or uses the current refresh rate for display instead of switching to a lower refresh rate. This can prevent the user from perceiving screen flicker when the electronic device switches to a lower refresh rate, thereby improving the user experience.
[0011] In some implementations, the first preset screen brightness, the second preset screen brightness, the first preset ambient light brightness, and the second preset ambient light brightness are determined based on the screen type of the electronic device.
[0012] In some implementations, the first event is used to switch the electronic device to a third refresh rate to refresh and display the second interface.
[0013] In some implementations, the second refresh rate is the maximum refresh rate supported by the screen of the electronic device.
[0014] In some implementations, the electronic device displays a first interface at a first refresh rate; the electronic device detects a first event; the electronic device determines whether the current screen brightness and the ambient light brightness meet the switching conditions corresponding to the grayscale information of the first interface; if so, the electronic device refreshes and displays a second interface at a second refresh rate; if not, the electronic device refreshes and displays a second interface at a third refresh rate.
[0015] In some embodiments, the switching conditions corresponding to the grayscale information of the first interface may include the following two:
[0016] (1) Switching to condition one:
[0017] When the proportion of low grayscale on the first interface is greater than or equal to the preset grayscale proportion, the current screen brightness of the electronic device is less than the first preset screen brightness, and the current ambient light brightness of the electronic device is less than the first preset ambient light brightness.
[0018] (2) Switching condition two:
[0019] When the proportion of low grayscale on the first interface is less than the preset grayscale proportion, the current screen brightness of the electronic device is less than the second preset screen brightness, and the ambient light brightness of the electronic device is less than the second preset ambient light brightness.
[0020] When the ambient light level of an electronic device meets either condition one or condition two above, switching to a higher refresh rate or displaying at the current refresh rate instead of a lower one can prevent the user from perceiving screen flicker, thus improving the user experience. When the ambient light level does not meet either condition one or condition two above, using a lower refresh rate can reduce the device's power consumption.
[0021] Secondly, embodiments of this application provide an electronic device, including a memory for storing instructions executable by one or more processors of the electronic device; and a processor, which, when executing the instructions in the memory, causes the electronic device to perform the method described in any embodiment of the first aspect of this application. The beneficial effects achievable in the third aspect can be referred to the beneficial effects of the method provided in any embodiment of the first aspect, and will not be repeated here.
[0022] Thirdly, embodiments of this application provide a computer-readable storage medium storing instructions that, when executed on a computer, cause the computer to perform the method described in any embodiment of the first aspect. The beneficial effects achievable in the fourth aspect can be found in the beneficial effects of the method provided in any embodiment of the first aspect, and will not be repeated here.
[0023] Fourthly, embodiments of this application provide a computer program product including computer program code. When the computer program code is run on a computer, it causes the computer to implement the method described in any embodiment of the first aspect. The beneficial effects achievable in this fourth aspect can be found in the beneficial effects of the method provided in any embodiment of the first aspect, and will not be repeated here. Attached Figure Description
[0024] Figure 1 Example diagrams of dark mode provided for embodiments of this application;
[0025] Figure 2 Example diagram of the light-colored mode provided in the embodiments of this application;
[0026] Figure 3 Example diagram of dynamically switching refresh rate in dark mode provided in the embodiments of this application;
[0027] Figure 4 This is an example diagram illustrating the dynamic switching of refresh rate in display mode provided in this application embodiment;
[0028] Figure 5 This is an example diagram showing the switching from fixed brightness to fixed refresh rate provided in an embodiment of this application;
[0029] Figure 6 An example diagram showing the switching to a fixed refresh rate when the brightness is reduced in dark mode, provided in an embodiment of this application;
[0030] Figure 7 An example diagram showing the switching to a fixed refresh rate when the brightness is reduced in light mode, as provided in an embodiment of this application.
[0031] Figure 8 An example diagram illustrating a display method provided in an embodiment of this application;
[0032] Figure 9A Example diagram of triggering interface switching in dark mode provided in the embodiments of this application;
[0033] Figure 9B Example diagram of triggering interface switching in light mode provided in the embodiments of this application;
[0034] Figure 10A Example diagrams for switching to a higher refresh rate in dark mode provided in this application embodiment;
[0035] Figure 10B An example diagram showing switching to a higher refresh rate in light mode as provided in this application embodiment;
[0036] Figure 11AExample diagram of switching to a lower refresh rate in dark mode provided in this application embodiment;
[0037] Figure 11B An example diagram showing switching to a lower refresh rate in light mode as provided in this application embodiment;
[0038] Figure 12 Example diagram of another display method provided in the embodiments of this application;
[0039] Figure 13 A system architecture example diagram provided for an embodiment of this application;
[0040] Figure 14A This application provides an example diagram illustrating the operation of switching from dark mode to light mode in an embodiment of the present application.
[0041] Figure 14B This application provides an example diagram illustrating the operation of switching from light mode to dark mode in an embodiment of the present application.
[0042] Figure 14C This is an example diagram illustrating the timed switching of display modes provided in an embodiment of this application;
[0043] Figure 15 A schematic diagram illustrating the determination of refresh rate switching constraints provided in an embodiment of this application;
[0044] Figure 16A Example diagram of an electronic device switching from a dark game interface to a light game interface, provided in an embodiment of this application;
[0045] Figure 16B Example diagram of an electronic device switching from a dark video interface to a light video interface, provided in an embodiment of this application;
[0046] Figure 17 This is a structural diagram of an electronic device provided in an embodiment of this application. Detailed Implementation
[0047] This application provides a display method to prevent users from perceiving screen flickering and improve the user experience.
[0048] To facilitate understanding, the terms used in this application will be explained below.
[0049] (1) Grayscale
[0050] Grayscale refers to the number of brightness levels divided from the lowest to the highest brightness of a screen. For example, the screen brightness can be divided into 256 levels from low to high, represented by grayscale values: 0, 1, 2...255. Each grayscale value corresponds to a brightness level. When the grayscale value of a pixel on the screen is 0, that pixel appears as pure black. When the grayscale value of that pixel is 255, that pixel appears as pure white.
[0051] (2) Dark Mode
[0052] Dark mode is a display mode where the screen primarily displays dark colors. In dark mode, the proportion of low grayscale values in the displayed image is larger, while the proportion of high grayscale values is smaller. For example, the proportion of low grayscale values is greater than or equal to a preset grayscale proportion (such as 0.5, 0.51, 0.52, etc.), while the proportion of high grayscale values is less than the preset grayscale proportion. Here, the low grayscale proportion refers to the percentage of pixels with low grayscale values in the displayed image, and the high grayscale proportion refers to the percentage of pixels with high grayscale values in the displayed image.
[0053] In this article, a low grayscale value is a grayscale value that is less than or equal to a preset grayscale value (such as 31, 32, etc., without limitation), and a high grayscale value is a grayscale value that is greater than the preset grayscale value.
[0054] For example, such as Figure 1 As shown, in dark mode, the screen 10 of electronic device 100 displays an image primarily in dark colors. The number of pixels with grayscale values of 0-32 accounts for a relatively large proportion (0.6444218), indicating a large proportion of low grayscale values. The number of pixels with grayscale values of 33-255 accounts for a relatively small proportion (0.3555782), indicating a small proportion of high grayscale values.
[0055] (3) Light mode
[0056] Light mode, also known as normal mode, is a display mode where the screen primarily displays light colors. In light mode, the proportion of low grayscale values in the electronic device's display is relatively small, while the proportion of high grayscale values is relatively large.
[0057] For example, such as Figure 2 As shown, in light mode, the screen 10 of electronic device 100 displays an image primarily in light colors. Specifically, the number of pixels with grayscale values of 0-32 accounts for 0.0426325, a relatively small proportion, indicating a small proportion of low grayscale values. The number of pixels with grayscale values of 33-255 accounts for 0.9573675, a relatively large proportion, indicating a relatively large proportion of high grayscale values.
[0058] It should be noted that the dark mode and light mode in this application can be system-level display modes or application-level display modes, and there is no limitation on them.
[0059] It should be noted that this application does not limit the specific form of the electronic device 100. The electronic device 100 can be a mobile phone, laptop computer, tablet, large-screen device, wearable device (e.g., watch, smart glasses, helmet), desktop computer, augmented reality (AR) / virtual reality (VR) device, personal digital assistant (PDA), or other device with a screen. The following uses a mobile phone as an example of the electronic device 100.
[0060] The application scenarios of this application are described below.
[0061] Scene 1:
[0062] Figure 3 This is an exemplary application scenario provided in the embodiments of this application.
[0063] refer to Figure 3 When the screen 10 of the electronic device 100 is displayed in dark mode with a dynamic refresh rate, if the screen brightness of the electronic device 100 is less than a certain screen brightness (such as a first preset screen brightness, specifically 120 nits) and the ambient light brightness is less than a certain ambient light brightness (such as a first preset ambient light brightness, specifically 300 lux), the user can easily perceive the screen 10 flickering when the screen 10 of the electronic device 100 switches from a higher refresh rate to a lower refresh rate for display.
[0064] For example, such as Figure 3 As shown, the electronic device 100 displays the interface 11 of a fitness and health application in dark mode at a refresh rate of 90Hz, with a screen brightness of 110 nits and an ambient light intensity of 290 lux. When the user clicks the control 31 on the interface 11, the display interface of the screen 10 of the electronic device 100 switches from interface 11 to interface 12. The refresh rate of the screen 10 switches from 90Hz to 60Hz. Because the screen brightness of the electronic device 100 is less than 120 nits and the ambient light intensity is less than 300 lux, the user may perceive a flickering on the screen 10 of the electronic device 100 when the refresh rate of the screen 10 switches from 90Hz to 60Hz.
[0065] Scene 2:
[0066] Figure 4 This is an exemplary application scenario two provided for the embodiments of this application.
[0067] refer to Figure 4When the screen 10 of the electronic device 100 is displayed in light mode with a dynamic refresh rate, if the screen brightness of the electronic device 100 is less than a certain screen brightness (such as a second preset screen brightness, specifically 80 nits) and the ambient light brightness is less than a certain ambient light brightness (such as a second preset ambient light brightness, specifically 100 lux), the user can easily perceive the screen 10 flickering when the screen 10 of the electronic device 100 switches from a higher refresh rate to a lower refresh rate for display.
[0068] For example, such as Figure 4 As shown, the electronic device 100 displays the interface 11 of a fitness and health application in light mode at a refresh rate of 90Hz, with a screen brightness of 70 nits and an ambient light brightness of 90 lux. When the user clicks the control 31 on the interface 11, the display interface of the screen 10 of the electronic device 100 switches from interface 11 to interface 12. The refresh rate of the screen 10 switches from 90Hz to 60Hz. Because the screen brightness of the electronic device 100 is less than 80 nits and the ambient light brightness is less than 100 lux, the user may perceive a flickering on the screen 10 of the electronic device 100 when the screen refresh rate switches from 90Hz to 60Hz.
[0069] Based on the above scenarios one and two, it can be seen that in the following two situations, when the screen of an electronic device switches from a higher refresh rate to a lower refresh rate, the user may perceive screen flickering.
[0070] Scenario 1: The screen of the electronic device displays a predominantly dark image, meaning that the proportion of low grayscale is large, and the screen brightness of the electronic device is less than the first preset screen brightness, and the ambient light brightness of the electronic device is less than the first preset ambient light brightness.
[0071] Scenario 2: The screen of the electronic device displays a predominantly light color, meaning that the proportion of high grayscale is relatively large, and the screen brightness of the electronic device is less than the second preset screen brightness, and the ambient light brightness of the electronic device is less than the second preset ambient light brightness.
[0072] It should be noted that this application does not limit the values of the first preset screen brightness, the first preset ambient light brightness, the second preset screen brightness, and the second preset ambient light brightness; their specific values can be determined based on the actual application scenario. In some embodiments, the first preset screen brightness is greater than the second preset screen brightness. The first preset ambient light brightness is greater than the second preset ambient light brightness.
[0073] To address the aforementioned technical problems, this application proposes a display method. In this method, under both of the above-mentioned conditions, when the electronic device detects a trigger event that would switch the current screen refresh rate to a lower refresh rate for display, the electronic device maintains the current screen refresh rate or switches to a higher refresh rate for display. This avoids the electronic device's screen switching from a higher refresh rate to a lower refresh rate, which could cause screen flickering perceived by the user and negatively impact the user experience.
[0074] In some embodiments, when the current screen brightness of the electronic device is greater than or equal to a second preset screen brightness but less than a first preset screen brightness, and the current ambient light brightness of the electronic device is greater than or equal to a second preset ambient light brightness but less than a first preset ambient light brightness, when the electronic device switches from dark mode to light mode, the electronic device adjusts the screen refresh rate from dynamic refresh rate to fixed refresh rate. Furthermore, the adjusted fixed refresh rate is greater than or equal to the current screen refresh rate of the electronic device. The electronic device then uses this fixed refresh rate for display.
[0075] For example, refer to Figure 5 The current screen brightness of electronic device 100 is 110 nits, and the current ambient light brightness is 200 lux. Since the current screen brightness (110 nits) is greater than the second preset screen brightness (80 nits), and the current ambient light brightness (200 lux) is greater than the second preset ambient light brightness (100 lux), the user will not perceive screen flickering when the screen 10 of electronic device 100 is displayed in light mode at a dynamic refresh rate. However, when electronic device 100 switches from light mode to dark mode, since the current screen brightness (110 nits) is less than the first preset screen brightness (120 nits), and the current ambient light brightness (200 lux) is less than the first preset ambient light brightness (300 lux), the human eye can easily perceive screen flickering when the screen 10 of electronic device 100 switches from a higher refresh rate to a lower refresh rate. Therefore, when the electronic device 100 switches from light mode to dark mode, the electronic device 100 can adjust the screen 10 from a dynamic refresh rate of 90Hz to a fixed refresh rate of 120Hz.
[0076] In other embodiments, when the current screen brightness of the electronic device is greater than or equal to a first preset screen brightness, and / or the current ambient light brightness of the electronic device is greater than or equal to a first preset ambient light brightness, when the electronic device is displaying in dark mode at a dynamic refresh rate, if the screen brightness of the electronic device drops to a level lower than the first preset screen brightness, and the ambient light brightness drops to a level lower than the first preset ambient light brightness, the electronic device adjusts the screen refresh rate from dynamic to fixed. Furthermore, the adjusted fixed refresh rate is greater than or equal to the current screen refresh rate of the electronic device. Then, the electronic device displays using this fixed refresh rate.
[0077] For example, refer to Figure 6 The current screen brightness of electronic device 100 (130 nits) is greater than the first preset screen brightness (120 nits), and the current ambient light brightness (310 lux) is greater than the first preset ambient light brightness (300 lux). Electronic device 100 displays in dark mode with a dynamic refresh rate. When the screen brightness of electronic device 100 decreases to less than the first preset screen brightness (110 nits), and the ambient light brightness of electronic device 100 decreases to less than the first preset ambient light brightness (290 lux), electronic device 100 adjusts the screen 10 to a fixed refresh rate of 120Hz.
[0078] In other embodiments, when the current screen brightness of the electronic device is greater than or equal to a second preset screen brightness, and / or the current ambient light brightness of the electronic device is greater than or equal to a second preset ambient light brightness, when the electronic device displays in light color mode at a dynamic refresh rate, if the screen brightness of the electronic device drops to a level lower than the second preset screen brightness, and the ambient light brightness of the electronic device drops to a level lower than the second preset ambient light brightness, the electronic device adjusts the screen refresh rate from dynamic to fixed. Furthermore, the adjusted fixed refresh rate is greater than or equal to the current screen refresh rate of the electronic device. Then, the electronic device displays using this fixed refresh rate.
[0079] For example, refer to Figure 7 The current screen brightness of electronic device 100 (160 nits) is greater than the second preset screen brightness (80 nits), and the current ambient light brightness of electronic device 100 (310 lux) is greater than the second preset ambient light brightness (100 lux). Electronic device 100 displays in light color mode with a dynamic refresh rate. When the screen brightness of electronic device 100 decreases to less than 70 nits of the second preset screen brightness, and the ambient light brightness of electronic device 100 decreases to less than 90 lux of the first preset ambient light brightness, electronic device 100 adjusts the screen 10 to a fixed refresh rate of 120Hz.
[0080] The technical solution of this application will be described below with reference to specific embodiments.
[0081] Figure 8 This is a flowchart illustrating a display method provided in an embodiment of this application.
[0082] refer to Figure 8 The display method includes the following steps:
[0083] S101: The electronic device refreshes and displays the first interface at the first refresh rate.
[0084] In some embodiments, the electronic device uses a dynamic refresh rate for display and displays a first interface at a first refresh rate. The first refresh rate can be any refresh rate within the refresh rate range supported by the screen of the electronic device (e.g., 0-120Hz). The first interface can be an application interface (e.g., the interface of a sports and health application, a conferencing application, a game application, a video application, an instant messaging application, etc.) or a system interface (e.g., the system desktop, the notification bar interface, etc.), and there is no limitation thereto.
[0085] For example, refer to Figure 9A The electronic device 100 displays the interface 11 of the sports and health application (as an example of the first interface) in dark mode using a dynamic refresh rate and refreshes the display at a refresh rate of 90Hz.
[0086] For example, refer to Figure 9B The electronic device 100 displays the interface 11 of the sports and health application in light color mode using a dynamic refresh rate and refreshes the display at a refresh rate of 90Hz.
[0087] S102: The electronic device detected the first event.
[0088] In some embodiments, the first event is used to switch the electronic device to a third refresh rate to refresh and display the second interface. For example, the first event includes, but is not limited to, the following events: the user triggers a control to switch to the second interface, the user performs a gesture to switch to the second interface, the user issues a voice command to switch to the second interface, and the electronic device automatically jumps to the second interface. The third refresh rate is lower than the first refresh rate.
[0089] For example, refer to Figure 9A and Figure 9B The electronic device 100 detects an event in which the user clicks on the control 31 on the interface 11. This event is used to refresh the display interface 12 at a refresh rate of 60Hz.
[0090] S103: When the electronic device is in the first state, the electronic device refreshes and displays the second interface at a second refresh rate, wherein the second refresh rate is greater than or equal to the first refresh rate, and the first state includes the electronic device having a first screen brightness and the ambient light brightness of the electronic device being in the first ambient light brightness.
[0091] Optionally, the second refresh rate can be the maximum refresh rate supported by the screen of the electronic device.
[0092] It is understandable that grayscale information includes the grayscale value of a pixel, the number of low grayscale pixels, the number of high grayscale pixels, the proportion of low grayscale (or "first grayscale proportion"), the proportion of high grayscale, and other information.
[0093] It can be understood that the brightness of the first screen is less than the preset screen brightness corresponding to the grayscale information of the first interface. When the grayscale information of the first interface indicates that the proportion of low grayscale values of the first interface is greater than or equal to the preset grayscale proportion, the preset screen brightness corresponding to the grayscale information of the first interface is the first preset screen brightness. When the grayscale information of the first interface indicates that the proportion of low grayscale values of the first interface is less than the preset grayscale proportion, the preset screen brightness corresponding to the grayscale information of the first interface is the second preset screen brightness. The second preset screen brightness is greater than the first preset screen brightness.
[0094] It is understood that the second ambient light brightness is less than the preset ambient light brightness corresponding to the grayscale information of the first interface displayed by the electronic device. When the grayscale information of the first interface indicates that the proportion of low grayscale values of the first interface is greater than or equal to the preset grayscale proportion, the preset ambient light brightness corresponding to the grayscale information of the first interface is the first preset ambient light brightness. When the grayscale information of the first interface indicates that the proportion of low grayscale values of the first interface is less than the preset grayscale proportion, the preset ambient light brightness corresponding to the grayscale information of the first interface is the second preset ambient light brightness. The second preset ambient light brightness is greater than the first preset ambient light brightness.
[0095] In some embodiments, the first preset screen brightness, the second preset screen brightness, the first preset ambient light brightness, and the second preset ambient light brightness are determined based on the screen type.
[0096] In some embodiments, when the grayscale information of the first interface indicates that the proportion of low grayscale values of the first interface is greater than or equal to the preset grayscale proportion, when the current screen brightness of the electronic device is less than the first preset screen brightness and the current ambient light brightness of the electronic device is less than the first preset ambient light brightness, the electronic device refreshes and displays the second interface at a second refresh rate.
[0097] The following description uses a preset grayscale ratio of 0.5, a first preset screen brightness of 120 nits, a first preset ambient light brightness of 300 lux, a second preset screen brightness of 80 nits, and a second preset ambient light brightness of 100 lux as examples to illustrate the technical solution of this application.
[0098] For example, refer to Figure 10A In dark mode, the electronic device 100 refreshes the display of the sports and health application interface 11 at a refresh rate of 90Hz. The low grayscale ratio of interface 11 is 0.6444218, which is greater than the preset grayscale ratio (0.5). The current screen brightness of the electronic device 100 is 110 nits, which is less than the first preset screen brightness (120 nits). The current ambient light brightness of the electronic device 100 is 290 lux, which is less than the first preset ambient light brightness (300 lux). Under these conditions, when the user clicks control 31 on the sports application interface 11 displayed on the electronic device 100, the electronic device 100 refreshes the display of the sports application interface 12 at a refresh rate of 90Hz.
[0099] In other embodiments, when the grayscale information of the first interface indicates that the proportion of low grayscale on the first interface is less than the preset grayscale proportion, when the current screen brightness of the electronic device is less than the first screen brightness of the second preset screen brightness, and the current ambient light brightness of the electronic device is less than the first ambient light brightness of the second preset ambient light brightness, the electronic device refreshes and displays the second interface at the second refresh rate.
[0100] For example, refer to Figure 10B In light-color mode, the electronic device 100 refreshes and displays the interface 11 of the sports and health application at a refresh rate of 90Hz. The low grayscale ratio of interface 11 is 0.3555782, which is less than the preset grayscale ratio (0.5). The current screen brightness of the electronic device 100 is 70 nits, which is less than the second preset screen brightness (80 nits). The current ambient light brightness of the electronic device 100 is 90 lux, which is less than the second preset ambient light brightness (100 lux). Under these conditions, when the user clicks control 31 on the interface 11 of the sports application displayed on the electronic device 100, the electronic device 100 refreshes and displays the interface 12 of the sports application at a refresh rate of 90Hz.
[0101] S104: When the electronic device is in the second state, the electronic device refreshes and displays the second interface at a third refresh rate, wherein the third refresh rate is less than the first refresh rate, and the second state includes the electronic device having a second screen brightness and the ambient light brightness of the electronic device being in the second ambient light brightness.
[0102] It can be understood that the brightness of the second screen is greater than or equal to the preset screen brightness corresponding to the grayscale information of the first interface. When the grayscale information of the first interface indicates that the proportion of low grayscale values of the first interface is greater than or equal to the preset grayscale proportion, the preset screen brightness corresponding to the grayscale information of the first interface is the first preset screen brightness. When the grayscale information of the first interface indicates that the proportion of low grayscale values of the first interface is less than the preset grayscale proportion, the preset screen brightness corresponding to the grayscale information of the first interface is the second preset screen brightness. The second preset screen brightness is greater than the first preset screen brightness.
[0103] It can be understood that the second ambient light brightness is greater than or equal to the preset ambient light brightness corresponding to the grayscale information of the first interface. When the proportion of low grayscale values of the first interface is greater than or equal to the preset grayscale proportion, the preset screen brightness corresponding to the grayscale information of the first interface is the first preset screen brightness. When the proportion of low grayscale values of the first interface is less than the preset grayscale proportion, the preset screen brightness corresponding to the grayscale information of the first interface is the second preset screen brightness. The second preset screen brightness is greater than the first preset screen brightness.
[0104] In some embodiments, when the grayscale information of the first interface indicates that the proportion of low grayscale values of the first interface is greater than or equal to a preset grayscale proportion, when the current screen brightness of the electronic device is a second screen brightness that is greater than or equal to a first preset screen brightness, and the current ambient light brightness of the electronic device is a second ambient light brightness that is greater than or equal to a first preset ambient light brightness, the electronic device refreshes and displays the second interface at a second refresh rate.
[0105] For example, refer to Figure 11A In dark mode, the electronic device 100 refreshes the display of the sports and health application interface 11 at a refresh rate of 90Hz. The low grayscale ratio of interface 11 is 0.6444218, which is greater than the preset grayscale ratio (0.5). The current screen brightness of the electronic device 100 is 130 nits, which is greater than the first preset screen brightness (120 nits). The current ambient light brightness of the electronic device 100 is 310 lux, which is greater than the first preset ambient light brightness (300 lux). Under these conditions, when the user clicks control 31 on the sports application interface 11 displayed on the electronic device 100, the electronic device 100 refreshes the display of the sports application interface 12 at a refresh rate of 60Hz.
[0106] In other embodiments, when the grayscale information of the first interface indicates that the proportion of low grayscale on the first interface is less than the preset grayscale proportion, when the current screen brightness of the electronic device is greater than or equal to the second preset screen brightness, and the current ambient light brightness of the electronic device is greater than or equal to the second preset ambient light brightness, the electronic device refreshes and displays the second interface at the second refresh rate.
[0107] For example, refer to Figure 11B In light-color mode, the electronic device 100 refreshes the display of the sports and health application interface 11 at a refresh rate of 90Hz. The low grayscale ratio of interface 11 is 0.3555782, which is less than the preset grayscale ratio (0.5). The current screen brightness of the electronic device 100 is 170 nits, which is greater than the second preset screen brightness (80 nits). The second ambient light brightness of the electronic device 100 is 320 lux, which is greater than the second preset ambient light brightness (100 lux). Under these conditions, when the user clicks control 31 on the sports application interface 11 displayed on the electronic device 100, the electronic device 100 refreshes the display of the sports application interface 12 at a refresh rate of 60Hz.
[0108] In this embodiment, when the proportion of low grayscale values on the screen of the electronic device is large, and the screen brightness of the electronic device is lower than a first preset screen brightness, and the ambient light brightness of the electronic device is lower than a first preset ambient light brightness; or when the proportion of low grayscale values on the screen of the electronic device is large, and the screen brightness of the electronic device is lower than a second preset screen brightness, and the ambient light brightness of the electronic device is lower than a second preset ambient light brightness, the electronic device switches to a higher refresh rate for display, or uses the current refresh rate for display instead of switching to a lower refresh rate. This avoids the user perceiving screen flicker when the electronic device switches to a lower refresh rate, thereby improving the user experience.
[0109] Correspondingly, when the proportion of low grayscale on the screen of an electronic device is small, and the screen brightness of the electronic device is greater than or equal to a first preset screen brightness, and the ambient light brightness of the electronic device is greater than or equal to a first preset ambient light brightness, and when the proportion of low grayscale on the screen of an electronic device is small, and the screen brightness of the electronic device is greater than or equal to a second preset screen brightness, and the ambient light brightness of the electronic device is greater than or equal to a second preset ambient light brightness, the electronic device can use a lower refresh rate to reduce power consumption. For example, in the above... Figure 10A and Figure 10B In the scenario shown, switching the electronic device 100 from a 90Hz refresh rate to a 60Hz refresh rate for display can reduce power consumption by 15mA to 30mA.
[0110] Figure 12 A flowchart illustrating another display method provided in an embodiment of this application.
[0111] refer to Figure 12 The display method includes the following steps:
[0112] S201: The electronic device refreshes and displays the first interface at the first refresh rate.
[0113] S202: The electronic device detected the first event.
[0114] Steps S201 to S202 are essentially the same as steps S101 to S102 above, and will not be repeated here.
[0115] S203: The electronic device determines whether the current screen brightness and the ambient light brightness meet the switching conditions corresponding to the grayscale information of the first interface.
[0116] If yes, proceed to step S204; otherwise, proceed to step S205.
[0117] In some embodiments, the switching conditions corresponding to the grayscale information of the first interface may include the following two:
[0118] (1) Switching to condition one:
[0119] When the proportion of low grayscale on the first interface is greater than or equal to the preset grayscale proportion, the current screen brightness of the electronic device is less than the first preset screen brightness, and the current ambient light brightness of the electronic device is less than the first preset ambient light brightness.
[0120] (2) Switching condition two:
[0121] When the proportion of low grayscale on the first interface is less than the preset grayscale proportion, the current screen brightness of the electronic device is less than the second preset screen brightness, and the ambient light brightness of the electronic device is less than the second preset ambient light brightness.
[0122] For example, Table 1 below shows examples of the two switching conditions mentioned above.
[0123] Table 1
[0124]
[0125] As shown in Table 1 above, when the grayscale ratio of the first interface displayed by the electronic device is greater than or equal to 0.5 (as an example of the preset grayscale ratio), the first switching condition is: the current screen brightness of the electronic device is less than 120 nits (as an example of the first preset screen brightness), and the current ambient light brightness of the electronic device is less than 300 lux (as an example of the first ambient light). When the grayscale ratio of the first interface displayed by the electronic device is less than 0.5, the second switching condition is: the current screen brightness of the electronic device is less than 80 nits (as an example of the second preset screen brightness), and the current ambient light brightness of the electronic device is less than 100 lux (as an example of the second preset ambient light brightness).
[0126] In some embodiments, when the electronic device determines that the current screen brightness and ambient light brightness meet the above-mentioned switching condition one or switching condition two, the electronic device executes the subsequent step S204. When the electronic device determines that the current screen brightness and ambient light brightness do not meet the above-mentioned switching condition one or switching condition two, the electronic device executes the subsequent step S205.
[0127] S204: The electronic device displays a second interface at a second refresh rate.
[0128] In some embodiments, after the electronic device determines that the current screen brightness and ambient light brightness meet either condition one or condition two, the electronic device displays the second interface at a second refresh rate.
[0129] For example, refer to the above Figure 10A In dark mode, the electronic device 100 refreshes the display of the sports and health application interface 11 at a refresh rate of 90Hz. When the user clicks the control 31 on the interface 11, the electronic device 100 determines that the current screen brightness (110 nits) and ambient light brightness (290 lux) meet condition one shown in Table 1 above. Then, the electronic device 100 refreshes the display of the sports and health application interface 12 at a refresh rate of 120Hz.
[0130] For example, refer to the above. Figure 10B In light mode, the electronic device 100 refreshes the display of the sports and health application interface 11 at a refresh rate of 90Hz. When the user clicks the control 31 on the interface 11, the electronic device 100 determines that the current screen brightness (70 nits) and ambient light brightness (90 lux) meet condition two shown in Table 1 above. Then, the electronic device 100 refreshes the display of the sports and health application interface 12 at a refresh rate of 120Hz.
[0131] S205: The electronic device displays the second interface at a third refresh rate.
[0132] In some embodiments, after the electronic device determines that the current screen brightness and ambient light brightness do not meet the conditions one or two above, the electronic device displays the second interface at a second refresh rate.
[0133] For example, refer to the above Figure 11A In dark mode, the electronic device 100 refreshes the display of the sports and health application interface 11 at a refresh rate of 90Hz. When the user clicks the control 31 on the interface 11, the electronic device 100 determines that the current screen brightness (130 nits) and ambient light brightness (310 lux) do not meet condition one shown in Table 1 above. Then, the electronic device 100 refreshes the display of the sports and health application interface 12 at a refresh rate of 60Hz.
[0134] For example, refer to the above. Figure 11BIn light mode, the electronic device 100 refreshes the interface 11 of the sports and health application at a refresh rate of 90Hz. When the user clicks the control 31 on the interface 11, the electronic device 100 determines that the current screen brightness (170 nits) and ambient light brightness (320 lux) do not meet condition two shown in Table 1 above. Then, the electronic device 100 refreshes the interface 12 of the sports and health application at a refresh rate of 60Hz.
[0135] In this embodiment, when the current ambient light level and the surrounding ambient light level of the electronic device meet either condition one or condition two, the electronic device switches to a higher refresh rate for display, or displays at the current refresh rate instead of switching to a lower refresh rate. This avoids the user perceiving screen flickering, thereby improving the user experience. When the current ambient light level and the surrounding ambient light level do not meet either condition one or condition two, using a lower refresh rate can reduce the power consumption of the electronic device.
[0136] The system architecture applicable to this application is described below.
[0137] Figure 13 This is a system architecture example diagram provided for an embodiment of this application.
[0138] refer to Figure 13 The system includes an application layer, an application framework layer, a native service layer, and a hardware abstraction layer.
[0139] The application layer includes the system user interface (UI) module. The system UI module is used to manage the switching between dark and light modes.
[0140] The application framework layer includes the Window Manager Service (WMS). The WMS manages all windows, including adding, deleting, updating, sorting, and resizing / positioning them. The WMS can monitor layout changes in the display interface through ViewRootImpl (the top of a view hierarchy).
[0141] The local service layer includes a graphics compositor (SurfaceFlinger) and a refresh rate management service. The graphics compositor generates image data to be displayed. It includes a first refresh rate switching module, which adjusts the generation frequency of the image data. The refresh rate management service includes a refresh rate policy decision module, a scene switching module, and a grayscale data management module. The refresh rate policy decision module decides whether to switch the refresh rate threshold. The scene switching management module determines the refresh rate threshold that matches the current scene. The grayscale data management module manages and stores refresh rate threshold data for different scenes.
[0142] The hardware synthesizer includes a second refresh rate switching module and a grayscale data acquisition module. The second refresh rate switching module is used to adjust the screen refresh rate. The grayscale data acquisition module is used to acquire grayscale data, such as histograms and grayscale values of individual pixels.
[0143] Based on the above system architecture, this application provides a display method. The method includes:
[0144] 1. Identify the scene.
[0145] 1.1 The display mode of the scenario switching module of the system UI notification refresh rate management service has been switched.
[0146] In some embodiments, when the system UI detects that the display mode of the electronic device has switched from dark mode to light mode, the system UI notifies the scene switching management module of the refresh rate management service that the display mode of the electronic device has switched from dark mode to light mode. Alternatively, when the system UI detects that the display mode of the electronic device has switched from light mode to dark mode, the system UI notifies the scene switching module of the refresh rate management service that the display mode of the electronic device has switched from light mode to dark mode.
[0147] It should be noted that the embodiments of this application do not limit the way the display mode of the electronic device is switched. Various methods can be used to switch the display mode of the electronic device, such as switching by a control that triggers mode switching, switching by timed switching, switching by voice command, etc.
[0148] For example, refer to Figure 14A When the electronic device 100 is displayed in light mode, the user can bring up the settings bar 16 by swiping down from the top right edge of the screen 10 of the electronic device 100, and then click the mode switching control 15 in the settings bar 16 to switch the electronic device 100 to dark mode.
[0149] For example, refer to Figure 14BWhen the electronic device 100 is displayed in dark mode, the user can bring up the settings bar 16 by swiping down from the top right edge of the screen 10 of the electronic device 100, and then click the mode switching control 15 in the settings bar 16 to switch the electronic device 100 to light mode.
[0150] For example, see reference Figure 14C When the electronic device 100 is displayed in dark mode, the user can open the dark mode settings interface 17 of the electronic device 100, and then click the timed start button 18 on the dark mode settings interface 17 to enable the timed start function of dark mode. After the user sets the start time of dark mode to "22:10" and the end time to "22:30", when the system time of the electronic device 100 is 22:10, the electronic device 100 switches to dark mode for display. When the system time of the electronic device 100 is 22:30, the electronic device 100 switches back to light mode for display.
[0151] 1.2 The interface layout of the window management service notification refresh rate management service scene switching module has changed.
[0152] In some embodiments, when the window management service detects a change in the layout of the currently displayed interface, the window management service notifies the scene switching module of the refresh rate management service that the layout of the displayed interface has changed.
[0153] 2. Set refresh rate switching threshold according to scene changes.
[0154] 2.1 The refresh rate management service's scene switching module obtains grayscale data through the grayscale data acquisition module of the hardware synthesizer.
[0155] It is understandable that grayscale data includes histograms and / or grayscale values of individual pixels.
[0156] In some embodiments, after the refresh rate management service receives a notification from the window management service, the scene switching module of the refresh rate management service can obtain the grayscale data of the screen A of the electronic device through the grayscale data acquisition module of the hardware synthesizer.
[0157] It can be understood that the grayscale data acquired by the grayscale data acquisition module can be the grayscale data of the current frame, or it can be the average grayscale data of the current frame and the previous n frames. Here, n is a positive integer.
[0158] 2.2 The scene switching module queries the corresponding refresh rate switching threshold data based on the scene through the grayscale data management module.
[0159] It is understood that the refresh rate switching threshold data includes the aforementioned first preset screen brightness, second preset screen brightness, first preset ambient light brightness, and second preset ambient light brightness.
[0160] It is understandable that different types of screen modules (such as screens produced by different manufacturers, screens from different batches, and screens of different models) have different characteristics, and their corresponding refresh rate switching threshold data will be different.
[0161] In some embodiments, reference Figure 15 For various screen modules, the refresh rate switching of each brightness dimension (including screen brightness and ambient light brightness) of the screen can be verified in advance based on the grayscale ratio of each level (grayscale range) of each application interface displayed on each screen. This yields refresh rate switching constraints for each interface, such as refresh rate switching threshold data. The obtained refresh rate switching threshold data is then stored in the grayscale data management module. In other words, the refresh rate switching threshold data (including first preset screen brightness, second preset screen brightness, first preset ambient light brightness, and second preset ambient light brightness) is determined based on the screen type, and the determined refresh rate switching threshold data is stored in the grayscale data management module for subsequent use.
[0162] Specifically, for various screen modules, it can be verified in advance whether there is flickering when the screen displays different application interfaces under different screen brightness and ambient light brightness conditions, when switching from a higher refresh rate to a lower refresh rate. Based on the verification results, the refresh rate switching threshold data corresponding to each type of screen is obtained, and then the obtained refresh rate switching threshold data is stored in the grayscale data management module.
[0163] In some embodiments, after the scene switching module obtains the grayscale data of screen A of the electronic device, the scene switching module can query the corresponding refresh rate switching threshold data through the grayscale data management module.
[0164] For example, when the grayscale data of screen A obtained by the scene switching module indicates that the proportion of grayscale values from 0 to 32 is greater than or equal to 0.5 (corresponding to dark mode), the refresh rate threshold data queried by the scene switching module through the grayscale data management module is threshold data one: screen brightness 120 nits (as an example of the first preset screen brightness) and ambient light brightness 300 lux (as an example of the first preset ambient light brightness). When the grayscale data obtained by the scene switching module indicates that the proportion of grayscale values from 0 to 32 is less than 0.5 (corresponding to light mode), the refresh rate threshold data queried by the scene switching module through the grayscale data management module is threshold data two: screen brightness 80 nits (as an example of the second preset screen brightness) and ambient light brightness 100 lux (as an example of the second preset ambient light brightness).
[0165] 3. Set the refresh rate.
[0166] 3.1 The refresh rate strategy decision module of the refresh rate management service formulates a new refresh strategy based on the refresh rate threshold data queried by the scene switching management module.
[0167] In some embodiments, after the refresh rate scene switching module queries the refresh rate threshold data through the grayscale data management module, the refresh rate strategy decision module can adjust the refresh strategy of the electronic device based on the refresh rate threshold data queried by the refresh rate scene switching module and the scene changes.
[0168] For example, the current screen brightness of an electronic device is 110 nits, and the ambient light intensity is 290 lux. When the grayscale value ratio of the electronic device (0-32) changes from less than 0.5 to greater than 0.5, the scene switching module retrieves the refresh rate switching threshold data from the grayscale data management module, which is threshold data one: screen brightness 120 nits, ambient light intensity 300 lux. Since both the current screen brightness and ambient light intensity of the electronic device are less than their respective threshold data, the refresh rate decision module adjusts the electronic device's dynamic refresh rate from 60Hz-120Hz to a fixed 120Hz refresh rate.
[0169] 3.2 The refresh rate strategy decision module notifies the first refresh rate switching module of the new refresh strategy.
[0170] In some embodiments, after the refresh rate policy decision module of the refresh rate management service formulates a new refresh policy, such as adjusting the electronic device's dynamic refresh rate from 60Hz to 120Hz to a fixed 120Hz refresh rate, the refresh rate policy decision module can notify the first refresh rate switching module of the new refresh policy. Then, the first refresh rate switching module adjusts the generation frequency of the image data to be displayed according to the new refresh policy, for example, adjusting the generation frequency of the image data to be displayed to a fixed 120Hz.
[0171] 3.3 The second refresh rate switching module of the hardware synthesizer adjusts the screen refresh rate of the electronic device based on the frequency of the image data generated by the first refresh rate switching module.
[0172] In some embodiments, the second refresh rate switching module of the hardware compositor adjusts the image generation frequency in response to the first refresh rate switching module of the graphics compositor, thereby adjusting the screen refresh rate of the electronic device to match the image generation frequency. For example, when the first refresh rate switching module adjusts the generation frequency of the image data to be displayed to a fixed 120Hz, the second refresh rate switching module can adjust the screen refresh rate of the electronic device to a fixed 120Hz. This avoids the electronic device switching from a higher refresh rate to a lower refresh rate, preventing the user from perceiving screen flicker.
[0173] In the above embodiments, the electronic device can adjust its refresh strategy according to the refresh rate switching threshold data of the display mode switching, thereby avoiding the user's perception of screen flickering.
[0174] For example, when an electronic device switches from dark mode to light mode, it can change the refresh rate switching threshold data from threshold data one: screen brightness 120 nits, ambient light brightness 300 lux, to threshold data two: screen brightness 80 nits, ambient light brightness 100 lux, and then adjust the refresh strategy according to threshold data two.
[0175] It should be noted that the display method of this application is not only applicable to the switching between dark mode and light mode, but also suitable for other scenarios with large grayscale changes in the interface, such as game scenarios and video scenarios, and is not limited thereto.
[0176] For example, refer to Figure 16A When electronic device 100 is running a game, the full-screen interface of electronic device 100 switches from game interface S1 to game interface S2. Game interface S1 has a dark background with a grayscale value ratio of 0-32 greater than 0.5. Game interface S2 has a light background with a grayscale value ratio of 0-32 less than 0.5. When electronic device 100 switches from game interface S1 to game interface S2, electronic device 100 can switch the refresh rate threshold switching data from threshold data one to threshold data two, and subsequently adjust the refresh strategy of electronic device 100 according to threshold data two.
[0177] For example, refer to Figure 16BWhen electronic device 100 plays a video in full screen, the full-screen display of electronic device 100 switches from video interface S3 to video interface S4. Video interface S3 has a dark background with a grayscale value ratio of 0-32 greater than 0.5. Video interface S4 has a light background with a grayscale value ratio of 0-32 less than 0.5. When electronic device 100 switches from video interface S3 to video interface S4, electronic device 100 can switch the refresh rate threshold switching data from the aforementioned threshold data one to the aforementioned threshold data two, and subsequently adjust the refresh strategy of electronic device 100 according to threshold data two.
[0178] Figure 17 A schematic diagram of the structure of electronic device 100 is shown. Electronic device 100 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, antenna 1, 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 screen 10, and a subscriber identification module (SIM) card interface 195, 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.
[0179] In some embodiments, the internal memory 121 is used to store refresh rate switching threshold data, namely, a first preset screen brightness, a first preset ambient light brightness, a second preset screen brightness, and a second preset ambient light brightness.
[0180] In some embodiments, the ambient light sensor 180L can detect the ambient light brightness of the current environment in which the electronic device 100 is located, and send the detected ambient light brightness to the processor 110 for processing.
[0181] In some embodiments, the processor 110 can obtain grayscale information (such as low grayscale ratio) and screen brightness of the screen 10, then query the preset screen brightness and preset ambient light brightness corresponding to the grayscale information from the internal memory 121, and then adjust the refresh rate of the screen 10 according to the queried preset screen brightness and preset ambient light brightness, as well as the current screen brightness of the screen 10 and the ambient light brightness of the environment.
[0182] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0183] 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). In some embodiments, processor 110 may include one or more interfaces. Interfaces may include inter-integrated circuit (I2C) interfaces, inter-integrated circuit sound (I2S) interfaces, pulse code modulation (PCM) interfaces, universal asynchronous receiver / transmitter (UART) interfaces, mobile industry processor interfaces (MIPI), general-purpose input / output (GPIO) interfaces, and subscriber identification module (SIM) interfaces.
[0184] The charging management module 140 receives charging input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 receives charging input from the wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 receives wireless charging input via the wireless charging coil of the electronic device 100. While charging the battery 142, the charging management module 140 can also supply power to the electronic device via the power management module 141.
[0185] The power management module 141 connects the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, providing power to the processor 110, internal memory 121, screen 10, camera 193, and wireless communication module 160, etc. The power management module 141 can also monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage current, impedance). In some other embodiments, the power management module 141 may also be located within the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may be located in the same device.
[0186] The wireless communication function of electronic device 100 can be realized through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor, etc.
[0187] The mobile communication module 150 can provide wireless communication solutions, including 2G / 3G / 4G / 5G, for use on the electronic device 100. The wireless communication module 160 can provide wireless communication solutions, including wireless local area networks (WLANs) (such as Wi-Fi), Bluetooth, Global Navigation Satellite System (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR) technologies, for use on the electronic device 100. In some embodiments, antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and antenna 2 is coupled to the wireless communication module 160, enabling the electronic device 100 to communicate with networks and other devices via wireless communication technologies.
[0188] Electronic device 100 implements display functions through a GPU, screen 10, and application processor. The GPU is a microprocessor for image processing, connected to the screen 10 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. Processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.
[0189] Screen 10 is used to display images, videos, etc. Screen 10 includes a display panel. In some embodiments, electronic device 100 may include one or N screens 10, where N is a positive integer greater than 1.
[0190] Electronic device 100 can perform shooting functions through ISP, camera 193, video codec, GPU, screen 10 and application processor.
[0191] The external storage interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external storage interface 120 to perform data storage functions. For example, music, video, and other files can be saved on the external memory card.
[0192] Internal memory 121 can be used to store computer executable program code, which includes instructions. Internal memory 121 may include a program storage area and a data storage area. Electronic device 100 can implement audio functions, such as music playback and recording, through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone jack 170D, and an application processor.
[0193] The embodiments disclosed in this application can be implemented in hardware, software, firmware, or a combination of these implementation methods. Embodiments of this application can be implemented as computer programs or program code executable on a programmable system, the programmable system including at least one processor, a storage system (including volatile and non-volatile memory and / or storage elements), at least one input device, and at least one output device.
[0194] Program code can be applied to input instructions to execute the functions described in this application and generate output information. The output information can be applied to one or more output devices in a known manner. For the purposes of this application, the processing system includes any system having a processor such as, for example, a digital signal processor, a microcontroller, an application-specific integrated circuit, or a microprocessor.
[0195] The program code can be implemented using a high-level procedural language or an object-oriented programming language to communicate with the processing system. Assembly language or machine language can also be used when needed. In fact, the mechanisms described in this application are not limited to any particular programming language. In either case, the language can be a compiled language or an interpreted language.
[0196] In some cases, the disclosed embodiments may be implemented in hardware, firmware, software, or any combination thereof. The disclosed embodiments may also be implemented as instructions carried or stored thereon on one or more temporary or non-temporary machine-readable (e.g., computer-readable) storage media, which may be read and executed by one or more processors. For example, the instructions may be distributed via a network or through other computer-readable media. Therefore, machine-readable media may include any mechanism for storing or transmitting information in a machine-readable (e.g., computer-readable) form, including but not limited to floppy disks, optical disks, optical discs, read-only memory, magneto-optical disks, random access memory, erasable programmable read-only memory, electrically erasable programmable read-only memory, magnetic cards or optical cards, flash memory, or tangible machine-readable storage for transmitting information (e.g., carrier waves, infrared signals, digital signals, etc.) using the Internet in the form of electrical, optical, acoustic, or other propagation signals. Therefore, machine-readable media include any type of machine-readable medium suitable for storing or transmitting electronic instructions or information in a machine-readable (e.g., computer-readable) form.
[0197] In the accompanying drawings, some structural or methodological features may be shown in a specific arrangement and / or order. However, it should be understood that such a specific arrangement and / or order may not be necessary. Rather, in some embodiments, these features may be arranged in a manner and / or order different from that shown in the illustrative drawings. Furthermore, the inclusion of structural or methodological features in a particular figure does not imply that such features are required in all embodiments, and in some embodiments, these features may be omitted or may be combined with other features.
[0198] It should be noted that all units / modules mentioned in the device embodiments of this application are logical units / modules. Physically, a logical unit / module can be a physical unit / module, a part of a physical unit / module, or a combination of multiple physical units / modules. The physical implementation of these logical units / modules themselves is not the most important factor; the combination of functions implemented by these logical units / modules is the key to solving the technical problems proposed in this application. Furthermore, to highlight the innovative aspects of this application, the above-described device embodiments of this application have not introduced units / modules that are not closely related to solving the technical problems proposed in this application. This does not mean that the above-described device embodiments do not contain other units / modules.
[0199] It should be noted that in the examples and description of this application, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one" does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0200] Although this application has been illustrated and described with reference to certain preferred embodiments thereof, those skilled in the art will understand that various changes in form and detail may be made thereto without departing from the scope of this application.
Claims
1. A display method for an electronic device, the method comprising: The method includes: The display interface of the electronic device is refreshed at a first refresh rate; A first event is detected, the first event being used to switch the screen refresh rate of the electronic device from the first refresh rate to a third refresh rate, wherein the third refresh rate is less than the first refresh rate; In response to the first event, when the electronic device is in a first state, the display interface of the electronic device is refreshed at a second refresh rate, wherein the second refresh rate is greater than or equal to the first refresh rate, the first state includes the electronic device being in dark mode, the electronic device having a first screen brightness, and the ambient light brightness of the electronic device being a first ambient light brightness, the first screen brightness being less than a first preset screen brightness, and the first ambient light brightness being less than a first preset ambient light brightness. When the electronic device is in the second state, the display interface of the electronic device is refreshed at the third refresh rate. The second state includes the electronic device being in dark mode, the electronic device having a second screen brightness, and the ambient light brightness of the electronic device being in the second ambient light brightness. The second screen brightness is greater than or equal to the first preset screen brightness, or the second ambient light brightness is greater than or equal to the first preset ambient light brightness. When the electronic device is in a third state, the display interface of the electronic device is refreshed at the second refresh rate. The third state includes the electronic device being in a light color mode, the electronic device having a third screen brightness, and the ambient light brightness of the electronic device being a third ambient light brightness. The third screen brightness is less than the second preset screen brightness, the third ambient light brightness is less than the second preset ambient light brightness, the second preset screen brightness is less than the first preset screen brightness, and the second preset ambient light brightness is less than the first preset ambient light brightness.
2. The method of claim 1, wherein, The second state also includes the electronic device being in a light color mode, the electronic device having a fourth screen brightness, and the ambient light brightness of the electronic device being in a fourth ambient light brightness, wherein the fourth screen brightness is greater than or equal to the second preset screen brightness, or the fourth ambient light brightness is greater than or equal to the second preset ambient light brightness.
3. The method according to claim 1 or 2, characterized in that, The dark mode includes a display mode in which the first grayscale ratio of the display interface of the electronic device is greater than or equal to a preset grayscale ratio. The light-colored mode includes the display mode of the electronic device in which the first grayscale ratio is less than the preset grayscale ratio. Wherein, the first grayscale ratio is the percentage of pixels in the display interface of the electronic device that are less than or equal to a preset grayscale value.
4. The method of claim 3, wherein, The first preset screen brightness, the second preset screen brightness, the first preset ambient light brightness, and the second preset ambient light brightness are determined based on the screen type of the electronic device.
5. The method of claim 1, wherein, The second refresh rate is the maximum refresh rate supported by the screen of the electronic device.
6. An electronic device, comprising: include: A memory for storing instructions executed by one or more processors of the electronic device; A processor, when executing the instructions in the memory, causes the electronic device to perform the display method according to any one of claims 1 to 5.
7. A computer readable storage medium characterized by The computer-readable storage medium stores instructions that, when executed on a computer, cause the computer to perform the display method according to any one of claims 1 to 5.
8. A computer program product comprising computer program code, which, when executed on a computer, causes the computer to implement the display method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Control method and electronic equipment
CN113889054A
Screen refresh rate switching method, electronic equipment and computer readable storage medium
CN116661724A