A control method and an electronic device

By controlling the refresh rate of the display screen and extending the data generation interval under low brightness, the problem of screen flickering was solved, effectively reducing power consumption and ensuring display quality under low brightness.

CN115171603BActive Publication Date: 2025-10-28LENOVO (BEIJING) LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202210744134.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-27
Publication Date
2025-10-28
Estimated Expiration
2042-06-27

AI Technical Summary

Technical Problem

Reducing the refresh rate when displaying data at low brightness can easily cause screen flicker, affecting the user experience.

Method used

By controlling the screen refresh rate at the target refresh rate under low brightness conditions and extending the time interval between data generation, the refresh rate changes are avoided by making the data identical for two consecutive displays.

Benefits of technology

While maintaining display quality, reduce the power consumption of electronic devices, avoid screen flicker, and optimize power consumption under low brightness display conditions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115171603B_ABST
    Figure CN115171603B_ABST
Patent Text Reader

Abstract

This application discloses a control method and an electronic device, wherein the method includes: obtaining a brightness parameter of a display screen; if the brightness parameter is less than or equal to a target brightness, controlling the refresh rate of the display screen at the target refresh rate; obtaining display data based on a target time interval corresponding to the target refresh rate; wherein the display data obtained based on the target time interval includes at least two adjacent display data that are the same.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of data processing technology, and in particular to a control method and an electronic device. Background Technology

[0002] In practical applications, when displaying data at lower brightness, the refresh rate is often reduced to decrease power consumption. However, reducing the refresh rate can easily lead to screen flickering, where the screen flickers due to the refresh rate switching at low brightness, affecting user experience. Summary of the Invention

[0003] Based on the above problems, embodiments of this application provide a control method and an electronic device.

[0004] The technical solution provided in this application is as follows:

[0005] This application provides a control method, the method comprising:

[0006] Obtain the brightness parameters of the display screen;

[0007] If the brightness parameter is less than or equal to the target brightness, the refresh rate of the display screen is controlled at the target refresh rate;

[0008] Display data is obtained based on a target time interval corresponding to the target refresh rate; wherein the display data obtained based on the target time interval includes at least two consecutive identical display data.

[0009] In some embodiments, the display data in the cache space is updated based on a control time interval; wherein the target time interval is less than the control time interval; and the cache space is used for the display screen to obtain the display data.

[0010] In some embodiments, the control time interval is a multiple of the target time interval.

[0011] In some embodiments, updating the display data in the cache space based on the control time interval includes:

[0012] If the target application receives a synchronization signal, it is controlled to update the display data in the cache space based on the control time interval.

[0013] In some embodiments, the method further includes:

[0014] Obtain the synchronization signal;

[0015] The control strategy determines whether to send the synchronization signal to the target application.

[0016] In some embodiments, determining whether to send the synchronization signal to the target application based on a control policy includes:

[0017] Determine whether the application is the target application;

[0018] If the application is the target application, determine whether to send the synchronization signal to the target application based on the control policy.

[0019] In some embodiments, the step of determining whether to send the synchronization signal to the target application based on a control policy is as follows:

[0020] Based on the control strategy, the control time interval corresponding to the target application is determined;

[0021] Send a synchronization signal associated with the control time interval to the target application; wherein the synchronization signal associated with the control time interval includes at least a portion of the synchronization signal obtained from the synchronization signal during the control time interval;

[0022] Discard the synchronization signals other than the synchronization signals associated with the control time interval.

[0023] In some embodiments, determining whether an application is the target application includes:

[0024] The update rate and display area of ​​the data in the target window are obtained; wherein, the target window includes the data display window of the application corresponding to the display data;

[0025] If the update rate satisfies a first condition and the display area satisfies a second condition, the application is determined to be the target application; wherein, the first condition includes that the update rate of the first data is greater than the update rate of the second data; the second condition includes that the first display area is less than the second display area; the first display area includes the display area of ​​the first data in the target window; the second display area includes the display area of ​​the second data in the target window; the data displayed in the target window includes at least the first data and the second data.

[0026] In some embodiments, obtaining display data based on a target time interval corresponding to the target refresh rate includes:

[0027] If the application corresponding to the displayed data is the target application, the displayed data is obtained based on the target time interval.

[0028] This application also provides an electronic device, including a display screen and a processor, wherein:

[0029] The processor is used to obtain the brightness parameter of the display screen; if the brightness parameter is less than or equal to the target brightness, the refresh rate of the display screen is controlled at the target refresh rate, and display data is obtained based on the target time interval corresponding to the target refresh rate; wherein, the display data obtained based on the target time interval includes at least two adjacent display data that are the same.

[0030] This application also provides a computer-readable storage medium storing a computer program that, when executed by a processor of an electronic device, can implement the control method as described in any of the preceding embodiments.

[0031] Therefore, the control method provided in this application, under the condition that the brightness parameter of the display screen decreases, does not reduce the refresh rate of the display screen or switch the refresh rate, thus avoiding display screen flicker. Instead, it extends the time interval for generating display data for display screen display while maintaining the current refresh rate, i.e., reduces the frequency of display data generation. This effectively reduces the power consumption of the electronic device when the display screen is operating at the target refresh rate even at low brightness. Because the refresh rate of the display screen is controlled at the target refresh rate, the electronic device can ensure the display effect of the display data while effectively reducing the processing power consumption of the electronic device when the display screen is at low brightness. Attached Figure Description

[0032] Figure 1 A flowchart illustrating the control method provided in an embodiment of this application;

[0033] Figure 2 A flowchart illustrating the process of determining whether to send a synchronization signal to the target application, provided for an embodiment of this application;

[0034] Figure 3 Another flowchart illustrating the process of determining whether to send a synchronization signal to the target application, provided for an embodiment of this application;

[0035] Figure 4 A schematic diagram illustrating the process of determining the target application provided in an embodiment of this application;

[0036] Figure 5 Another schematic flowchart of the control method provided in the embodiments of this application;

[0037] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0038] The technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings.

[0039] It should be understood that the specific embodiments described herein are merely illustrative of this application and are not intended to limit this application.

[0040] When displaying data at lower brightness, the refresh rate is typically reduced to further decrease power consumption during data display. However, while lowering the refresh rate can reduce power consumption for data refresh to some extent, a low refresh rate may cause data stuttering or screen flickering, severely impacting the display's data quality.

[0041] To address the above problems, embodiments of this application provide a control method and an electronic device. The control method provided in this application can be implemented using a processor in the electronic device. It should be noted that the processor can be at least one of the following: Application Specific Integrated Circuit (ASIC), Digital Signal Processor (DSP), Digital Signal Processing Device (DSPD), Programmable Logic Device (PLD), Field Programmable Gate Array (FPGA), Central Processing Unit (CPU), controller, microcontroller, and microprocessor.

[0042] In one embodiment, the electronic device may include a computer device, such as a personal computer (PC) or a server device; for example, the electronic device may include a mobile electronic device, such as a smartphone or smartwatch, or a device with a display screen; for example, the electronic device may include a television or a device with a display screen, and the embodiments of this application do not limit this.

[0043] Figure 1 This is a flowchart illustrating the control method provided in an embodiment of this application. Figure 1 As shown, the process may include steps 101 to 103:

[0044] Step 101: Obtain the brightness parameters of the display screen.

[0045] In one embodiment, the display screen may include a display device that is electrically connected to an electronic device. For example, the display screen may be the display screen in a monitor, and the electronic device may be a computer device. The monitor and the electronic device may be electrically connected, and the electronic device may send the data to be displayed to the monitor so that the display screen can output the data.

[0046] In one implementation, the display screen may be integrated with the electronic device, such as a smartphone where the display screen is integrated with the smartphone body.

[0047] In one embodiment, the brightness parameter of the display screen may include the current brightness of the display screen; for example, the brightness parameter of the display screen may also include parameters such as the color temperature and contrast ratio of the display screen.

[0048] For example, the brightness parameter can change with the brightness of the environment in which the electronic device is located. For instance, the electronic device can automatically adjust the brightness of the display screen to a low brightness corresponding to the ambient brightness when the ambient light sensor detects that the ambient brightness has darkened. Alternatively, the user can adjust the brightness of the display screen to a low brightness according to their own needs by operating buttons, virtual controls, or gestures. That is, the brightness parameter is set by the user according to their personal usage habits. This application embodiment does not limit this.

[0049] Step 102: If the brightness parameter is less than or equal to the target brightness, control the refresh rate of the display screen to the target refresh rate.

[0050] For example, if the brightness parameter is greater than the target brightness, the display can operate at the target refresh rate.

[0051] For example, the target brightness can be a brightness threshold already set by the electronic device. When the current brightness parameter is less than or equal to the target brightness, the refresh rate of the display can be locked at the target refresh rate. For instance, for an Organic Light Emitting Display (OLED) display, locking the refresh rate at 120Hz at low brightness solves the screen flicker problem that may occur when the refresh rate is reduced at low brightness.

[0052] In one embodiment, the electronic device can learn at least one of the following information: the brightness of the environment in which the electronic device is located, the user's personal usage habits, the user's settings parameters, and the adjustable range of the display screen brightness, to obtain a learning result, and determine a target brightness set based on the learning result; for example, the target brightness set may include at least one target brightness; for example, when the target brightness set includes multiple target brightnesses, each target brightness may be different; for example, the target brightness in the target brightness set may correspond to the usage scenario of the electronic device or the brightness of the environment in which the electronic device is located, that is, the target brightness corresponding to different usage scenarios or different ambient brightness may be different.

[0053] In one implementation, the electronic device can adjust the brightness parameters of the display screen in real time according to the brightness of its surrounding environment, and determine in real time whether the adjusted brightness parameters are less than or equal to the target brightness.

[0054] In one implementation, the target refresh rate may be less than or equal to a first refresh rate, wherein the first refresh rate may include the highest refresh rate supported by the display hardware.

[0055] In one implementation, the target refresh rate can be equal to a second refresh rate; for example, the second refresh rate can be less than or equal to a first refresh rate; for example, the second refresh rate can include the refresh rate at time n; wherein time n can be the time when the brightness parameter of the display screen is greater than the target brightness; for example, controlling the refresh rate of the display screen to the target refresh rate can be an operation performed at time n+1, that is, the second refresh rate can be the refresh rate of the previous time when the refresh rate of the display screen is controlled to the target refresh rate; thus, when the brightness parameter of the electronic device changes, the refresh rate of the display screen is not adjusted, thereby reducing the probability of display screen data stuttering. Here, n is an integer greater than or equal to 1.

[0056] In this embodiment, when the electronic device's display screen adjusts from high brightness to low brightness based on a target brightness, if the display screen's brightness parameter is less than or equal to the target brightness, the refresh rate before switching to the target brightness is locked as the target refresh rate. For example, the target refresh rate before switching to the target brightness is the second refresh rate, which may include the first refresh rate. Since the refresh rate is not switched when the brightness is less than or equal to the target brightness, it continues to operate at the target refresh rate when the brightness exceeds the target brightness. Afterward, when the brightness parameter exceeds the target brightness, the electronic device can dynamically adjust or switch the display screen refresh rate based on any operation, displayed content, or application, or it can lock the target refresh rate to a fixed value without dynamically changing it.

[0057] Step 103: Obtain display data based on the target time interval corresponding to the target refresh rate.

[0058] Among them, the display data obtained based on the target interval includes at least two adjacent display data that are the same.

[0059] In one implementation, the displayed data may include static data or dynamic data; for example, static data may include data that does not change within a specified time, such as images or text files; for example, dynamic data may include data that changes within a specified time, such as video data; for example, the specified time may be one second, and this application embodiment does not limit this.

[0060] In one implementation, the displayed data may include data displayed by a user application, such as webpage data displayed by a browser installed by the user; for example, the displayed data may include data displayed by a system application, such as file directory data displayed by a file management system in the operating system of an electronic device.

[0061] In one implementation, there can be a one-to-one correspondence between the target time interval and the target refresh rate. For example, the nth target time interval can correspond to the nth target refresh rate. In this way, after the target refresh rate is determined, the target time interval corresponding to the target refresh rate can be obtained.

[0062] In one implementation, the target time interval can be the reciprocal of the target refresh rate.

[0063] In one implementation, the display data obtained based on the target time interval includes at least two consecutive instances of identical display data. This can include the display data obtained at time k being identical to the display data obtained at time k+1, and the display data obtained at time k+2 being identical to the display data obtained at time k+3. For example, time k can include the time corresponding to the kth target time interval, and time k+1 can include the time corresponding to the k+1th target time interval. Here, k is an integer greater than or equal to 1.

[0064] In one implementation, the display data obtained based on the target time interval includes at least two adjacent display data that are the same. It may include three display data that are the same at three adjacent target time intervals. For example, the display data obtained at time k, the display data obtained at time k+1, and the display data obtained at time k+2 may be the same.

[0065] In one implementation, the display data obtained based on the target time interval includes at least two adjacent display data that are the same, which may include m identical display data obtained at times corresponding to m adjacent target time intervals; where m is an integer greater than 3.

[0066] For example, obtaining display data based on a target time interval corresponding to the target refresh rate can be achieved in the following way:

[0067] Display data is obtained from a specified storage space based on a target time interval and sent to the display screen so that the display screen can refresh the display data based on the target refresh rate. For example, the display data obtained based on at least two adjacent target time intervals can be the same. Therefore, when the display screen performs a refresh operation based on the target refresh rate, the display data corresponding to at least two refresh operations can be the same.

[0068] In other words, the control method provided in this application embodiment, by extending the time interval between display data generation and reducing the frequency of display data generation, can not only reduce the probability of display data stuttering while keeping the refresh rate of the display screen at the target refresh rate, but also reduce the power consumption used to generate display data, thereby achieving an overall reduction in power consumption for display data generation.

[0069] As can be seen from the above, the control method provided in this application embodiment controls the refresh rate of the display screen to the target refresh rate when the brightness parameter of the display screen is less than or equal to the target brightness, and obtains display data based on the time interval corresponding to the target refresh rate, and the display data obtained based on the target refresh rate includes at least two adjacent display data that are the same.

[0070] Therefore, the control method provided in this application, under the condition that the brightness parameter of the display screen decreases, does not reduce the refresh rate of the display screen or switch the refresh rate, thus avoiding display screen flicker. Instead, it extends the time interval for generating display data for display screen display while maintaining the current refresh rate, i.e., reduces the frequency of generating display data for display screen display. This effectively reduces the power consumption of the electronic device when the display screen is operating at the target refresh rate even at low brightness. Because the refresh rate of the display screen is controlled at the target refresh rate, the electronic device can ensure the display effect of the display data while effectively reducing the processing power consumption of the electronic device when the display screen is at low brightness.

[0071] Based on the foregoing embodiments, the control method provided in this application may further include the following operations:

[0072] The display data in the cache space is updated based on the control time interval.

[0073] The target time interval is less than the control time interval; the cache space is used to provide the display screen with display data.

[0074] In one implementation, after the control time interval is determined, it can be fine-tuned based on at least one of the following: the remaining data processing resources of the electronic device, power reserves, the user's personal habits, and the usage scenario. For example, the remaining data processing resources may include the remaining data processing resources in the CPU or Graphics Processing Unit (GPU) of the electronic device; for example, the power reserves may include the remaining power of the electronic device; for example, the usage scenario may include the current scenario of the display screen and / or the electronic device, such as a meeting scenario, a dining scenario, and a rest scenario.

[0075] For example, when data processing resources are less than the resource threshold or power reserves are less than the power threshold, the control time interval can be appropriately extended. However, the impact of the extended control time interval on the display effect of the displayed data should be less than the preset threshold.

[0076] In one implementation, the process of determining the control time interval may also refer to the target time interval, so that the target time interval can be smaller than the control time interval.

[0077] In one implementation, the cache space may include graphics card memory or frame buffer, which is used to store display data generated by the application or system. After the display screen obtains the display data from the cache space, it can refresh and draw the display data on the display area.

[0078] For example, since the target time interval is less than the control time interval, updating the display data in the cache space based on the control time interval may include controlling the application or system to update the display data in the cache space at longer time intervals, but the display still retrieves the display data from the cache space at shorter time intervals, so that the display data retrieved by the display in at least two adjacent times may be the same; for example, the number of times the display retrieves the same display data may be determined based on the relationship between the control time interval and the target time interval.

[0079] As can be seen from the above, the control method provided in this application embodiment can update the display data in the cache space based on the control time interval, so that the display screen can obtain the display data from the cache space based on the target time interval, and the target time interval is less than the control time interval.

[0080] Therefore, since the target time interval is less than the control time interval, the time interval for the display screen to obtain display data from the cache space is less than the time interval for generating and updating display data. In other words, the electronic device generates and updates display data at a longer time interval, thereby reducing the computational load of display data generation and updating, and thus reducing the power consumption of display data generation and updating. Meanwhile, the display screen still obtains and refreshes display data at a shorter time interval, thereby improving the display effect of display data and reducing the probability of screen flickering caused by display data stuttering.

[0081] Based on the foregoing embodiments, in the control method provided in this application, the control time interval is a multiple of the target time interval.

[0082] In one implementation, the control time interval can be an integer multiple of the target time interval, such as N times the target time interval. Thus, when display data is updated to the cache space at the control time interval, N adjacent display data obtained at the target time interval can be identical. Here, N can be an integer greater than 1.

[0083] In one implementation, the control time interval can be a non-integer multiple of the target time interval. For example, the control time interval can be 1.5 times the target time interval. In this case, when the display data is updated to the cache space at the control time interval, two adjacent display data in the display data obtained at the target time interval may be the same or different. At this time, the display data displayed on the screen may experience slight stuttering.

[0084] In one implementation, the multiple relationship between the control time interval and the target time interval can be determined based on the actual data display requirements. For example, under the condition of displaying static data, the control time interval can be a first multiple of the target time interval, while under the condition of displaying dynamic data, the control time interval can be a second multiple of the target time interval, wherein the first multiple can be greater than the second multiple.

[0085] In one implementation, the multiple relationship between the control time interval and the target time interval can be determined based on the user's data refresh operation. For example, although the display screen shows text data, the user controls the text data to scroll at a first rate. In this case, the third multiple between the control time interval and the target time interval can be less than or equal to the page update frequency corresponding to the first rate, so as to reduce the probability of stuttering during the scrolling display of text data.

[0086] As can be seen from the above, in the control method provided by the embodiments of this application, the control time interval is a multiple of the target time interval. Therefore, after determining the target time interval, the control time interval can be flexibly determined according to the actual power consumption control needs, thereby realizing the flexible control of the generation of display data and the caching process.

[0087] Based on the foregoing embodiments, the control method provided in this application, which updates the display data in the cache space based on the control time interval, can be implemented in the following ways:

[0088] If the target application receives a synchronization signal, control the target application to update the display data in the cache space based on the control time interval.

[0089] For example, if the target application does not receive a synchronization signal, the operation of controlling the target application to update the display data in the cache space based on the control time interval may not be performed.

[0090] In one implementation, the target application may include at least one application in the system application or user application of the electronic device.

[0091] In one implementation, the synchronization signal may include a signal instructing the target application to update display data in the cache space; for example, the synchronization signal may also include a control time interval.

[0092] In one implementation, the synchronization signal may include a vertical synchronization signal (Vsync), which is used to control the frame rate of the display data of the target application, that is, the rate at which the target application generates display data through the CPU or GPU. In this embodiment, the synchronization signal may be used to control whether the target application updates the display data in the cache space based on the control time interval.

[0093] For example, controlling the target application to update display data in the cache space based on the control time interval of the synchronization signal may include: controlling the target application to generate display data based on the control time interval of the synchronization signal, and updating the display data to the cache space after the display data is generated.

[0094] For example, based on the control time interval in the synchronization signal, the target application is controlled to generate display data. This can include the target application generating the kth display data when the kth control time interval is reached, and the target application pausing the data processing process when the kth control time interval has not been reached.

[0095] As can be seen from the above, the control method provided in this application, when the target application receives a synchronization signal, controls the target application to update the display data in the cache space based on the control time interval. In this way, flexible control over the generation and updating of display data in the target application to the cache space can be achieved, thereby enabling flexible adjustment of power consumption during the display data presentation process.

[0096] Based on the foregoing embodiments, the control method provided in this application may further include... Figure 2 The process shown is as follows: Figure 2 This is a flowchart illustrating the process of determining whether to send a synchronization signal to the target application, as provided in an embodiment of this application. Figure 2 As shown, the process may include steps 201 to 202:

[0097] Step 201: Obtain the synchronization signal.

[0098] In one implementation, the synchronization signal may be generated after the target application is started.

[0099] Step 202: Determine whether to send a synchronization signal to the target application based on the control policy.

[0100] In one implementation, the control strategy can be set by the user; for example, the control strategy can be determined by the electronic device learning the scenario in which the electronic device is located and the user's usage habits.

[0101] In one implementation, it can be determined whether to activate a control policy based on target conditions; for example, a control policy can be activated if the target conditions are met; for example, a control policy can not be activated if the target conditions are not met.

[0102] For example, the target condition may include the electronic device's power reserve being less than or equal to a power threshold. Accordingly, when the electronic device's power reserve is less than or equal to the power threshold, a control strategy may be activated, and when the electronic device's power reserve is greater than the power threshold, a control strategy may not be activated.

[0103] For example, the target condition may include the remaining data processing resources of the electronic device's CPU or GPU being less than or equal to a resource threshold; accordingly, when the remaining data processing resources are less than or equal to the resource threshold, a control policy may be activated to reduce the number of times the target application generates display data through the CPU or GPU, thereby reducing the consumption of CPU or GPU data processing resources; while when the remaining data processing resources are greater than the resource threshold, the control policy may not be activated.

[0104] For example, the decision to activate a control policy can be made based on the user's settings. If the user's settings include activating the control policy by default, then the control policy will be activated regardless of whether the energy reserve is less than or equal to the energy threshold or whether the remaining data processing resources are less than or equal to the resource threshold.

[0105] As can be seen from the above, in the control method provided in this application embodiment, after acquiring the synchronization signal, it is possible to determine whether to send the synchronization signal to the target application based on the control strategy. Therefore, by adjusting the control strategy, flexible control over whether to send the synchronization signal can be achieved, thereby enabling flexible control over the target application's updating of display data in the cache space.

[0106] Based on the foregoing embodiments, the control method provided in this application, which determines whether to send a synchronization signal to the target application based on the control strategy, can also be implemented in the following ways:

[0107] Determine if the application is the target application. If the application is the target application, determine whether to send a synchronization signal to the target application based on the control policy.

[0108] For example, if the application is not the target application, the control policy may not need to be activated.

[0109] In one implementation, the application may include any application in the electronic device that is in a state of being ready to start and has the need to display data; for example, the application may include any application in the electronic device that is already running and has the need to display data, and this application embodiment does not limit this.

[0110] For example, the storage space of an electronic device may store a set of application identifiers of the target application, that is, a whitelist containing at least one target application. When any application is launched, the application identifier of the application can be obtained, and the application can be determined as the target application based on the degree of matching between the application identifier and the application identifiers in the whitelist.

[0111] For example, the whitelist can be determined based on the operating characteristics of the application or set by the user, and this application embodiment does not limit it in this way.

[0112] In one implementation, if the application is the target application, a control policy can be activated, and the control policy can be used to determine whether to send a synchronization signal to the target application.

[0113] As can be seen from the above, in the control method provided in this application embodiment, when the application is the target application, it is determined whether to send a synchronization signal to the target application based on the control strategy, thereby realizing precise control of the start of the control strategy based on the target application.

[0114] Based on the foregoing embodiments, the control method provided in this application determines whether to send a synchronization signal to the target application based on a management and control strategy. Figure 3 The process shown is implemented as follows: Figure 3 Another flowchart illustrating the process of determining whether to send a synchronization signal to the target application, as provided in this application embodiment, is shown below. Figure 3 As shown, the process may include steps 301 to 303:

[0115] Step 301: Based on the control strategy, determine the control time interval corresponding to the target application.

[0116] In one implementation, the control strategy may include a one-to-one correspondence between control time intervals and the identifiers of target applications. For example, a first control time interval corresponds to a first target application, and a second control time interval corresponds to a second target application. For instance, after the target application is determined, the target association relationship can be determined from the above association relationship based on the matching relationship between the identifier of the target application and the identifier of the target application in the above association relationship, and the control time interval in the target association relationship can be determined as the control time interval corresponding to the current target application.

[0117] In one implementation, the length of the control time interval can be different for different target applications; for example, the first control time interval and the second control time interval are different.

[0118] In one implementation, the length of the control time interval corresponding to the target application may be related to the data type of the target data associated with the target application. For example, the target data may include data processed, loaded, or displayed by the target application. For instance, the control time interval corresponding to video data may be shorter than the control time interval corresponding to static text data. Therefore, the control time interval can be determined or adjusted according to the data type of the target data associated with the target application.

[0119] In one implementation, the control time interval may include a time interval whose impact on the loading or display effect of target data associated with the target application is less than or equal to a preset threshold. For example, if the target data is video data, the control time interval may include a time interval that will not cause video data to stutter.

[0120] Step 302: Send a synchronization signal associated with the control time interval to the target application.

[0121] The synchronization signal associated with the control time interval includes at least a portion of the synchronization signal obtained from the synchronization signal over the control time interval.

[0122] In one implementation, if the control time interval is the same as the time interval corresponding to the synchronization signal, then the synchronization signal associated with the control time interval may include all synchronization signals; for example, the time interval corresponding to the synchronization signal may include the time interval between adjacent synchronization signals.

[0123] In one implementation, the control time interval can be N times the time interval corresponding to the synchronization signal. That is, the synchronization signal associated with the control time interval can be a portion of the synchronization signal uniformly obtained from the synchronization signal over the control time interval. For example, when N is odd or even, the synchronization signal associated with the control time interval can include a synchronization signal obtained by downsampling the synchronization signal by twice. That is, the frequency of the synchronization signal associated with the control time interval is 1 / 2 of the frequency of the synchronization signal. For example, when N is an integer greater than 2, the control time interval can be N times the time interval corresponding to the synchronization signal, and the frequency of the synchronization signal associated with the control time interval can be 1 / N of the frequency of the synchronization signal. Wherein, N is an integer greater than or equal to 1.

[0124] For example, the value of N can be determined or adjusted according to the target application or the type of target data associated with the target application, and this application embodiment does not limit this.

[0125] Step 303: Discard the synchronization signals other than those associated with the control time interval.

[0126] As can be seen from the above, in the control method provided in this application embodiment, when the control time interval corresponding to the target application is determined based on the control strategy, a synchronization signal associated with the control time interval can be sent to the target application, and the synchronization signals other than the synchronization signal associated with the control time interval can be discarded.

[0127] Therefore, the control method provided in this application embodiment can determine the control time interval corresponding to the target application based on the control strategy, and the final transmitted synchronization signal is also a synchronization signal associated with the control time interval. This achieves dual control of the target application and the control time interval through the control strategy, and achieves precise control of the synchronization signal sent to the target application, thereby achieving precise control of power consumption during the display data process.

[0128] Based on the foregoing embodiments, the control method provided in this application, which obtains display data based on the target time interval corresponding to the target refresh rate, can be implemented in the following ways:

[0129] If the application corresponding to the displayed data is the target application, the displayed data is obtained based on the target time interval.

[0130] For example, if the application corresponding to the displayed data is not the target application, the operation of obtaining the displayed data based on the target time interval will not be performed.

[0131] For example, if the application corresponding to the displayed data is the target application and the displayed data of the target application is of a specified type, then the displayed data is obtained based on the target time interval; for example, the specified type may include data with a data update rate greater than or equal to a rate threshold, such as video data.

[0132] As can be seen from the above, in the control method provided in this application embodiment, the display data is obtained based on the target time interval only when the application corresponding to the display data is the target application, thereby realizing targeted control of power consumption during the display data display process.

[0133] Based on the foregoing embodiments, the control method provided in this application may further include: Figure 4 The process shown is as follows: Figure 4 This is a schematic diagram of the process for determining the target application provided in an embodiment of this application, such as... Figure 4 As shown, the process may include steps 401 to 402:

[0134] Step 401: Obtain the update rate and display area of ​​the data in the target window.

[0135] The target window includes the data display window of the application that displays the data.

[0136] In one implementation, the target window may cover at least a portion of the display area of ​​the screen; for example, the target window may include a floating window.

[0137] In one implementation, the target window may display at least some display data; for example, the target window may also display other data; for example, the other data may include the control data of the target window.

[0138] In one implementation, the update rate may include the update rate of each piece of data displayed in the target window; for example, the update rate may include the number of frames in which each piece of data in the target window is updated per unit time, such as the number of frames refreshed by video data per unit time.

[0139] For example, the update rate can be determined based on the type of data displayed in the target window; for instance, the update rate for video data can be greater than that for text data.

[0140] For example, the update rate can be determined based on the touch operation on the target window. For instance, a quick swipe on text data in the target window can increase the update rate of the text data from a first rate to a second rate.

[0141] For example, the update rate can be determined based on the state of the data displayed in the target window. For instance, if the video data is currently paused and the text data is scrolling, the third rate can be less than the fourth rate. Here, the third rate can be the update rate of the video data, and the fourth rate can be the update rate of the text data.

[0142] In one implementation, the display area may include the area of ​​the display area occupied by each piece of data in the target window; for example, the display area may be determined based on the layout of the window elements in the target window used to load the various pieces of data.

[0143] Step 402: If the update rate meets the first condition and the display area meets the second condition, determine the application as the target application.

[0144] The first condition includes that the update rate of the first data is greater than the update rate of the second data; the second condition includes that the first display area is smaller than the second display area; the first display area includes the display area of ​​the first data in the target window; the second display area includes the display area of ​​the second data in the target window; and the data displayed in the target window includes at least the first data and the second data.

[0145] For example, if the update rate does not meet the first condition or the display area does not meet the second condition, it can be determined that the application is not the target application.

[0146] In one implementation, the update rate of the first data and the update rate of the second data may include the frame rate of the first data and the frame rate of the second data, that is, the number of frames updated by the first data and the second data per unit time.

[0147] In one implementation, the update rate of the first data is greater than the update rate of the second data. This can include situations where the first data is in a first state and the second data is in a second state, in which case the update rate of the first data is greater than the update rate of the second data. For example, the first data can be animation data, the second data can be text data, the first state can include an animation playback state, and the second state can include a text static display state. In other words, the update rate of the animation data in the playback state can be greater than the update rate of the text data in the static display state.

[0148] In one implementation, the update rate of the first data can change with the state of the first data, and the update rate of the second data can change with the state of the second data. For example, the first data is animation data, but when the animation data switches from the animation state to the paused playback state, its update rate can switch from the fifth rate to the sixth rate, and the fifth rate can be greater than the sixth rate.

[0149] In one implementation, the first display area and the second display area may also change with the change of the state of the first data and the second data. For example, if the first data is video data, then the first display area in the first mode may be smaller than the first display area in the second mode. For example, the first mode may include a shrinking mode for window elements displaying video data. For example, the second mode may include a full-screen display mode for video data.

[0150] In one implementation, the application can switch from a target application to a non-target application, and vice versa, depending on the display status of the data it loads.

[0151] For example, if the update rate meets the first condition and the display area meets the second condition, it may include the update rate of the second data occupying a larger area in the target window, which is less than the update rate of the second data occupying a smaller area in the target window; for example, the second data may be the display data in the aforementioned embodiments.

[0152] For example, if the update rate meets the first condition and the display area meets the second condition, it may include the application corresponding to the display data. The second data may be the main output data of the application, and the first data may be the secondary output data of the application. In this case, the second data may be determined as the display data in the aforementioned embodiment.

[0153] For example, after determining the first data and the display data, the display data in the cache space can be updated based on the control time interval provided in the aforementioned embodiments, and the display screen obtains the display data from the cache space at a target time interval corresponding to the target refresh frequency, and refreshes and renders the display data to the display area corresponding to the second display area; for example, the first data in the cache space can be updated based on the target time interval, and the display screen obtains the first data from the cache space at the target time interval, and refreshes and renders the first data to the display area corresponding to the first display area, thereby realizing the rate-division processing of various data in the target window.

[0154] As can be seen from the above, in the control method provided in this application embodiment, after obtaining the update rate and display area of ​​the data in the target window, the application can be determined as the target application if the update rate satisfies the first condition, that is, the update rate of the first data is greater than the update rate of the second data, and the first display area of ​​the first data is less than the second display area of ​​the second data.

[0155] Therefore, the control method provided in this application embodiment can determine whether an application is a target application based on the update rate of various data in the application and the display area, that is, determine whether the target application is a target application based on the data actually loaded by the application, thereby achieving accurate judgment on whether the application is a target program.

[0156] Based on the foregoing embodiments, Figure 5 Another schematic diagram of the control method provided in the embodiments of this application is shown below. Figure 5 As shown, the process may include steps 501 to 503:

[0157] Step 501: Start the data refresh thread.

[0158] For example, when the processor of an electronic device detects that an application has switched to the foreground running state, it can start a data refresh thread.

[0159] For example, the processor of an electronic device can obtain the update rate and display area of ​​each piece of data in the target window used by the application to output data.

[0160] For example, the processor of an electronic device can also determine the application as the target program if the update rate meets the first condition and the display area meets the second condition.

[0161] For example, the processor of an electronic device can detect in real time whether the display parameters of the display screen are less than or equal to the target brightness, and if the display parameters are less than or equal to the target brightness, control the refresh rate of the display screen to the target refresh rate.

[0162] For example, the display parameters of the display screen being less than or equal to the target brightness may be triggered by at least one of the following factors: changes in the brightness of the ambient light in which the display screen is located, a brightness adjustment command detected by the electronic device, and insufficient available power of the electronic device.

[0163] Step 502: Generate and refresh the first data at the first frequency.

[0164] For example, the processor of an electronic device may generate and refresh first data at a first frequency.

[0165] For example, the first frequency can be the frequency of the target refresh rate in the foregoing embodiments, or it can be the same frequency as the synchronization signal.

[0166] For example, generating first data at a first frequency may include generating first data at a target time interval corresponding to the first frequency, and updating the first data to the cache space based on the target time interval after the first data is generated; for example, the display screen may obtain the first data from the cache space at a time interval corresponding to the first frequency, such as the target time interval, and refresh the display of the first data; for example, the first frequency may be less than or equal to the target refresh rate.

[0167] Step 503: Generate second data at a second frequency and refresh the second data at a first frequency.

[0168] For example, the processor of an electronic device can generate second data at a second rate and refresh the second data at a first rate.

[0169] For example, the time interval corresponding to the second frequency can be the control time interval provided in the foregoing embodiments; for example, under the condition that the control time interval is a multiple of the target time interval, the first frequency can be a multiple of the second frequency.

[0170] For example, in the foregoing embodiments, the frequency of the synchronization signal sent to the target application can be a second frequency; for example, the frequency of the synchronization signal obtained by the electronic device can be a first frequency, that is, the synchronization signal of the second frequency can be obtained by sampling the synchronization signal of the first frequency.

[0171] For example, the target application can control the processor of the electronic device to generate second data at a time interval corresponding to the second frequency, i.e., the control time interval, and update the second data to the cache space, while the display screen still retrieves and refreshes the display of the second data from the cache space at a time interval corresponding to the first frequency, i.e., the target time interval.

[0172] For example, the second data obtained by the display from the cache space at a target time interval may include at least two adjacent second data that are identical.

[0173] As can be seen from the above, the control method provided in this application embodiment can control the generation process of the first data and the second data displayed by the target application respectively when the application is determined to be the target application; and by reducing the generation rate of the second data with a larger display area, the power consumption of data processing during the operation of the target application can be significantly reduced.

[0174] Based on the foregoing embodiments, this application also provides an electronic device 6. Figure 6 This is a schematic diagram of the structure of the electronic device 6 provided in the embodiments of this application, as shown below. Figure 6 As shown, the electronic device 6 may include a display screen 601 and a processor 602, wherein:

[0175] The processor 602 is used to obtain the brightness parameter of the display screen 601; if the brightness parameter is less than or equal to the target brightness, the refresh rate of the display screen 601 is controlled at the target refresh rate, and display data is obtained based on the target time interval corresponding to the target refresh rate; wherein, the display data obtained based on the target time interval includes at least two adjacent display data that are the same.

[0176] In some embodiments, the processor 602 is configured to update display data in a cache space based on a control time interval; wherein the target time interval is less than the control time interval; and the cache space is used to provide display data to the display screen.

[0177] In some embodiments, the control time interval is a multiple of the target time interval.

[0178] In some embodiments, the processor 602 is configured to, if the target application receives a synchronization signal, control the target application to update the display data in the cache space based on a control time interval.

[0179] In some embodiments, the processor 602 is configured to acquire a synchronization signal and determine whether to send the synchronization signal to the target application based on a control policy.

[0180] In some embodiments, the processor 602 is configured to determine whether the application is a target application, and if the application is a target application, to determine whether to send a synchronization signal to the target application based on a management policy.

[0181] In some embodiments, the processor 602 is configured to determine a control time interval corresponding to a target application based on a control policy, send a synchronization signal associated with the control time interval to the target application, and discard the synchronization signal that is removed from the synchronization signal associated with the control time interval; wherein, the synchronization signal associated with the control time interval includes at least a portion of the synchronization signal obtained from the synchronization signal at the control time interval.

[0182] In some embodiments, the processor 602 is configured to obtain the update rate and display area of ​​data in a target window; and to determine the application as the target application if the update rate satisfies a first condition and the display area satisfies a second condition; wherein the target window includes a data display window of the application corresponding to the displayed data; the first condition includes that the update rate of the first data is greater than the update rate of the second data; the second condition includes that the first display area is less than the second display area; the first display area includes the display area of ​​the first data in the target window; the second display area includes the display area of ​​the second data in the target window; and the data displayed in the target window includes at least the first data and the second data.

[0183] In some embodiments, the processor 602 is configured to obtain display data based on a target time interval if the application corresponding to the display data is a target application.

[0184] The processor 602 mentioned above can be at least one of ASIC, DSP, DSPD, PLD, FPGA, CPU, controller, microcontroller, and microprocessor.

[0185] The electronic device 6 provided in this application embodiment, when the brightness parameter of the display screen decreases, does not reduce the refresh rate of the display screen or switch the refresh rate, thus avoiding screen flicker. Instead, it extends the time interval for generating display data for display at the current refresh rate, i.e., reduces the frequency of generating display data for display, effectively reducing the power consumption of the electronic device while the display screen is operating at the target refresh rate even at low brightness. Because the refresh rate of the display screen is controlled at the target refresh rate, the electronic device ensures the display effect of the display data while effectively reducing the processing power consumption of the electronic device when the display screen is at low brightness.

[0186] Based on the foregoing embodiments, this application also provides a computer-readable storage medium storing a computer program that, when executed by a processor of an electronic device, can implement the control method provided in any of the preceding embodiments.

[0187] The description of the various embodiments above tends to emphasize the differences between the various embodiments. The similarities or similarities between them can be referred to, and for the sake of brevity, they will not be repeated here.

[0188] The methods disclosed in the various method embodiments provided in this application can be arbitrarily combined to obtain new method embodiments without conflict.

[0189] The features disclosed in the various product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.

[0190] The features disclosed in the various method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method or device embodiments.

[0191] It should be noted that the aforementioned computer-readable storage media can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), magnetic random access memory (FRAM), flash memory, magnetic surface memory, optical disc, or compact disc read-only memory (CD-ROM), etc.; or it can be various electronic devices that include one or any combination of the above-mentioned memories, such as mobile phones, computers, tablet devices, personal digital assistants, etc.

[0192] It should be noted that, in this document, 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. Unless otherwise specified, 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 that element.

[0193] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0194] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware nodes. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0195] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will 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 processor 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 processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0196] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.

[0197] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0198] The above are merely preferred embodiments of this application and do not limit the patent scope of this application. Any equivalent structural or procedural transformations made using the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of this application.

Claims

1. A control method, the method comprising: Obtain the brightness parameters of the display screen; If the brightness parameter is less than or equal to the target brightness, the refresh rate of the display screen is controlled at the target refresh rate; The display data in the cache space is updated based on the control time interval; wherein the target time interval corresponding to the target refresh rate is less than the control time interval; the cache space is used for the display screen to obtain the display data; Display data is obtained from the cache space based on the target time interval; wherein the display data obtained based on the target time interval includes at least two consecutive instances of identical display data.

2. The method according to claim 1, wherein, The control time interval is a multiple of the target time interval.

3. The method according to claim 1 or 2, wherein, The updating of the display data in the cache space based on the control time interval includes: If the target application receives a synchronization signal, it is controlled to update the display data in the cache space based on the control time interval.

4. The method according to claim 3, wherein, The method further includes: Obtain the synchronization signal; The control strategy determines whether to send the synchronization signal to the target application.

5. The method according to claim 4, wherein, The step of determining whether to send the synchronization signal to the target application based on the control policy includes: Determine whether the application is the target application; If the application is the target application, determine whether to send the synchronization signal to the target application based on the control policy.

6. The method according to claim 4 or 5, wherein determining whether to send the synchronization signal to the target application based on the control strategy includes: Based on the control strategy, the control time interval corresponding to the target application is determined; Send a synchronization signal associated with the control time interval to the target application; wherein the synchronization signal associated with the control time interval includes at least a portion of the synchronization signal obtained from the synchronization signal during the control time interval; Discard the synchronization signals other than those associated with the control time interval.

7. The method according to claim 5, wherein, Determining whether an application is the target application includes: The update rate and display area of ​​the data in the target window are obtained; wherein, the target window includes the data display window of the application corresponding to the display data; If the update rate satisfies a first condition and the display area satisfies a second condition, the application is determined to be the target application; wherein, the first condition includes that the update rate of the first data is greater than the update rate of the second data; the second condition includes that the first display area is less than the second display area; the first display area includes the display area of ​​the first data in the target window; the second display area includes the display area of ​​the second data in the target window; the data displayed in the target window includes at least the first data and the second data.

8. The method according to claim 1, wherein, Obtaining display data from the cache space based on the target time interval includes: If the application corresponding to the displayed data is the target application, the displayed data is obtained from the cache space based on the target time interval.

9. An electronic device comprising a display screen and a processor, wherein: The processor is used to obtain the brightness parameters of the display screen; If the brightness parameter is less than or equal to the target brightness, the refresh rate of the display screen is controlled at the target refresh rate, and the display data in the cache space is updated based on the control time interval. Display data is obtained from the cache space based on a target time interval; wherein the display data obtained based on the target time interval includes at least two consecutive identical display data; the target time interval corresponding to the target refresh rate is less than the control time interval; the cache space is used for the display screen to obtain the display data.

Citation Information

Patent Citations

  • Methods and apparatuses for controlling display refresh rate

    US20140210801A1

  • Method of providing a personalized advertisement in a receiver

    US20140237511A1

  • Electronic device and method for operating high speed screen of electronic device

    US20210248973A1