Method for solving screen flicker of multi-system terminal, terminal device and storage medium

CN116414183BActive Publication Date: 2026-09-08CHENGDU TD TECH LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111662509.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-30
Publication Date
2026-09-08
Estimated Expiration
2041-12-30

AI Technical Summary

Technical Problem

[0005]本申请提供一种多系统终端的花屏解决方法、终端设备和存储介质,用以解决现有的终端花屏解决方法不适用于多系统终端的问题

Benefits of technology

[0037] This application provides a solution to screen flickering issues in multi-system terminals, a terminal device, and a storage medium. When the multi-system terminal device detects a switch from a first operating system to a second operating system in the foreground, it obtains the system information of the second operating system and calculates the second hardware clock frequency based on the system information to obtain the hardware clock frequency required by the kernel when the second operating system is running in the foreground. Then, it obtains the first hardware clock frequency required by the kernel when the second operating system is running in the foreground and selects a target hardware clock frequency that is greater than or equal to the target clock frequency level from a set of preset hardware clock frequency levels. When the hardware clock frequency corresponding to the target level is greater than the first hardware clock frequency, the terminal device adjusts the hardware clock frequency currently used by the kernel when the second operating system is running in the foreground to the target hardware clock frequency. This prevents screen flickering caused by the kernel's current hardware clock frequency being lower than the first hardware clock frequency, effectively avoiding the problem.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116414183B_ABST
    Figure CN116414183B_ABST
Patent Text Reader

Abstract

The application provides a screen tearing solution for a multi-system terminal, a terminal device and a storage medium. The terminal device calculates a second hardware clock frequency according to system information of a second operating system after switching, and obtains a hardware clock frequency required by a kernel when the terminal device runs the second operating system in the foreground. The terminal device obtains a first hardware clock frequency corresponding to the second operating system, and selects a target hardware clock frequency corresponding to a target clock frequency level from among a plurality of preset hardware clock frequency levels. When the target level corresponds to a hardware clock frequency greater than the first hardware clock frequency, the terminal device adjusts the hardware clock frequency currently used by the kernel when the terminal device runs the second operating system in the foreground to the target hardware clock frequency, thereby preventing the kernel from using a hardware clock frequency lower than the first hardware clock frequency when the terminal device runs the second operating system in the foreground, and effectively avoiding screen tearing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to display technology, and more particularly to a solution for screen flickering in multi-system terminals, a terminal device, and a storage medium. Background Technology

[0002] Display technology is a technology that uses electronic technology to provide flexible visual information. Generally, based on human psychological and physiological characteristics, it employs appropriate methods to alter the intensity, wavelength (i.e., color), and other characteristics of light to create different forms of visual information. The visual information is typically presented as characters, graphics, and images. The user interface displayed on terminal devices is also implemented using appropriate electronic technology through device-specific components.

[0003] When a user uses a terminal, if the hardware clock frequency transmitted from the terminal's HWC module to the kernel is lower than the hardware clock frequency currently required by the kernel, screen distortion may occur, such as unclear display. This is especially true for multi-system terminals, where users are more likely to experience screen distortion when switching between systems. Currently, to prevent screen distortion, the hardware clock frequency of the HWC module can be monitored, and a protection mechanism can be used to adjust this frequency to prevent screen distortion.

[0004] However, the above solutions only apply to terminals with a single operating system and are not suitable for terminals with multiple operating systems (e.g., terminals with two Android operating systems). For users of terminals with multiple operating systems, the appearance of screen flickering will affect the user experience and cause inconvenience. Summary of the Invention

[0005] This application provides a solution for screen flickering issues in multi-system terminals, a terminal device, and a storage medium to address the problem that existing solutions for screen flickering issues are not applicable to multi-system terminals.

[0006] Firstly, this application provides a solution to screen flickering issues on multi-system terminals, including:

[0007] When the operating system running in the foreground of the terminal device is detected to switch from the first operating system to the second operating system, the system information of the second operating system running in the foreground is obtained;

[0008] The second hardware clock frequency is calculated based on the system information. The second hardware clock frequency is the hardware clock frequency required by the kernel when the second operating system is running in the foreground of the terminal device.

[0009] The first hardware clock frequency when the terminal device is running the second operating system in the foreground is obtained, and the first hardware clock frequency is the hardware clock frequency sent by the HWC module.

[0010] Select a target hardware clock frequency that is greater than or equal to the target clock frequency level from a plurality of preset hardware clock frequency levels, wherein the target clock frequency level is the clock frequency level corresponding to the second hardware clock frequency.

[0011] Determine whether the target hardware clock frequency is greater than the first hardware clock frequency;

[0012] When the target hardware clock frequency is greater than the first hardware clock frequency, the hardware clock frequency currently used by the kernel when the terminal device is running the second operating system in the foreground is adjusted to the target hardware clock frequency.

[0013] Optional, also includes:

[0014] When the target hardware clock frequency is less than or equal to the first hardware clock frequency, the hardware clock frequency currently used by the kernel when the terminal device is running the second operating system in the foreground is not adjusted.

[0015] Optionally, the system information includes a refresh rate, and the calculation of the second hardware clock frequency based on the system information includes:

[0016] Determine whether the refresh rate in the system information is greater than a preset threshold;

[0017] When the refresh rate is greater than the preset threshold, the second hardware clock frequency is calculated based on the system information.

[0018] Optionally, the system information may also include one or more of the following: grayscale value, screen coordinate offset, frame rate, and weight value.

[0019] Optionally, the first operating system is a first Android system, and the second operating system is a second Android system.

[0020] Secondly, this application provides a multi-system terminal device, including:

[0021] The first acquisition module is used to acquire system information of the second operating system running in the foreground when it is detected that the operating system running in the foreground of the terminal device has switched from the first operating system to the second operating system;

[0022] The calculation module is used to calculate a second hardware clock frequency based on the system information. The second hardware clock frequency is the hardware clock frequency required by the kernel when the second operating system is running in the foreground of the terminal device.

[0023] The second acquisition module is used to acquire the first hardware clock frequency when the terminal device is running the second operating system in the foreground, wherein the first hardware clock frequency is the hardware clock frequency sent by the HWC module.

[0024] The processing module is used to select a target hardware clock frequency that is greater than or equal to the target clock frequency level from a plurality of preset hardware clock frequency levels, wherein the target clock frequency level is the clock frequency level corresponding to the second hardware clock frequency.

[0025] The judgment module is used to determine whether the target hardware clock frequency is greater than the first hardware clock frequency;

[0026] The determining module is used to adjust the hardware clock frequency currently used by the kernel when the terminal device is running the second operating system in the foreground to the target hardware clock frequency when the target hardware clock frequency is greater than the first hardware clock frequency.

[0027] Optional, also includes:

[0028] When the target hardware clock frequency is less than or equal to the first hardware clock frequency, the hardware clock frequency currently used by the kernel when the terminal device is running the second operating system in the foreground is not adjusted.

[0029] Optionally, the system information includes the refresh rate, and the calculation module is specifically used for:

[0030] Determine whether the refresh rate in the system information is greater than a preset threshold;

[0031] When the refresh rate is greater than the preset threshold, the second hardware clock frequency is calculated based on the system information.

[0032] Thirdly, this application provides a multi-system terminal device, including: a processor, and a memory communicatively connected to the processor;

[0033] The memory stores computer-executed instructions;

[0034] The processor executes computer execution instructions stored in the memory to implement the method as described in the first aspect.

[0035] Fourthly, this application provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement a solution for screen distortion in a multi-system terminal as described in the first aspect.

[0036] Fifthly, this application provides a computer program product, including a computer program that, when executed by a processor, implements the method described in the first aspect.

[0037] This application provides a solution to screen flickering issues in multi-system terminals, a terminal device, and a storage medium. When the multi-system terminal device detects a switch from a first operating system to a second operating system in the foreground, it obtains the system information of the second operating system and calculates the second hardware clock frequency based on the system information to obtain the hardware clock frequency required by the kernel when the second operating system is running in the foreground. Then, it obtains the first hardware clock frequency required by the kernel when the second operating system is running in the foreground and selects a target hardware clock frequency that is greater than or equal to the target clock frequency level from a set of preset hardware clock frequency levels. When the hardware clock frequency corresponding to the target level is greater than the first hardware clock frequency, the terminal device adjusts the hardware clock frequency currently used by the kernel when the second operating system is running in the foreground to the target hardware clock frequency. This prevents screen flickering caused by the kernel's current hardware clock frequency being lower than the first hardware clock frequency, effectively avoiding the problem. Attached Figure Description

[0038] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0039] Figure 1 This is a schematic diagram of a terminal device structure to which this application applies;

[0040] Figure 2 A flowchart illustrating a solution to screen flickering issues in a multi-system terminal, provided in Embodiment 1 of this application;

[0041] Figure 3 This is a schematic diagram of the structure of a multi-system terminal provided in Embodiment 2 of this application;

[0042] Figure 4 This is a schematic diagram of the structure of a multi-system terminal provided in Embodiment 3 of this application.

[0043] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation

[0044] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.

[0045] During terminal use, when the hardware clock frequency transmitted to the kernel by the terminal's Hardware Composer (HWC) module is lower than the kernel's required hardware clock frequency, screen distortion (such as unclear display) can occur. This is especially true for multi-system terminals, where users are more prone to screen distortion when switching between systems. Currently, to prevent screen distortion, the hardware clock frequency of the HWC module can be monitored, and a protection mechanism can be used to adjust this frequency. However, since each system on the terminal corresponds to one HWC module, multi-system terminals have multiple HWC modules. The above solution only applies to terminals with a single operating system and is not suitable for multi-system terminals. Therefore, for users of multi-system terminals, screen distortion will affect the user experience and cause inconvenience.

[0046] Therefore, this application provides a solution to screen flickering in multi-system terminals, a terminal device, and a storage medium. When the terminal device switches systems, it calculates the hardware clock frequency of the kernel of the switched system. If the hardware clock frequency of the current HWC module of the switched system is greater than the hardware clock frequency of the kernel, it selects a hardware clock frequency corresponding to a target level greater than the hardware clock frequency of the kernel as the hardware clock frequency of the kernel used when the terminal device runs the switched system in the foreground. This prevents the hardware clock frequency of the kernel used when the terminal device runs the switched system in the foreground from being lower than the first hardware clock frequency, which would cause screen flickering and effectively avoid the occurrence of screen flickering problems.

[0047] Figure 1 This is a schematic diagram of a terminal device structure to which this application applies. Figure 1 As shown, terminal device 101 includes multiple HWC modules and a kernel; only two HWC modules are shown in the figure. Terminal device 101 can run multiple operating systems, such as Android. Each operating system corresponds to one HWC module. When terminal device 101 switches systems, the hardware clock frequency of the HWC module in the new system matches the hardware clock frequency of the kernel. That is, the kernel's hardware clock frequency is greater than the hardware clock frequency of the HWC module, which prevents screen flickering on terminal device 101.

[0048] The HWC module mentioned above is the operating system's window composition and display module. It is a system service of the operating system called Surfaceflinger, which is used to combine graphic display data from multiple sources and then send it to the display of the terminal device. For example, when a terminal device opens an application (APP), there are usually three layers of display: the status bar at the top, the navigation bar at the bottom or side, and the application interface. Each layer is updated and rendered separately. These interfaces are all combined by Surfaceflinger and refreshed to the hardware display.

[0049] It is understood that there can be multiple terminal devices 101, which are not shown in the figure.

[0050] The technical solutions of this application and how they solve the aforementioned technical problems are described in detail below with specific embodiments. These specific embodiments may exist independently or in combination with each other. Identical or similar concepts or processes may not be repeated in some embodiments. The embodiments of this application will now be described with reference to the accompanying drawings.

[0051] refer to Figure 2 , Figure 2 This is a flowchart illustrating a solution to screen flickering on a multi-system terminal provided in Embodiment 1 of this application. The method can be executed by a terminal device, which can be a multi-system terminal, and includes the following steps.

[0052] S201. When it is detected that the operating system running in the foreground of the terminal device has switched from the first operating system to the second operating system, obtain the system information of the second operating system running in the foreground.

[0053] When a terminal device detects a switch from a first operating system to a second operating system in the foreground, it acquires system information from the second operating system. This system information includes one or more of the following: refresh rate, grayscale value, screen coordinate offset, frame rate, and weight value. The refresh rate is the number of times the functional interface corresponding to the second operating system refreshes per second. The grayscale value is the grayscale value of the corresponding functional interface. The screen coordinate offset is the relative distance between various coordinates on the screen. The frame rate is the number of frames transmitted per second. The weight value is a coefficient; the weight value varies depending on the functional interface after the switch. For example, the weight value for a video playback interface differs from that for a text webpage interface.

[0054] Terminal devices can obtain corresponding system information based on the function interface of the switched operating system. Different function interfaces correspond to different system information. For example, the system information corresponding to a text webpage interface is different from that corresponding to a video playback interface.

[0055] S202. Calculate the second hardware clock frequency based on the system information. The second hardware clock frequency is the hardware clock frequency required by the kernel when the second operating system is running in the foreground of the terminal device.

[0056] When a terminal device switches systems, if the kernel has not yet received the hardware clock frequency from the HWC module of the second operating system and the system switch is already complete, it can be understood that the kernel's hardware clock frequency is still the hardware clock frequency corresponding to the first operating system. The terminal device can calculate the second hardware clock frequency based on the system information of the second operating system. This hardware clock frequency is the hardware clock frequency required by the kernel when the second operating system is running in the foreground of the terminal device. The unit of hardware clock frequency is Hz (Hertz).

[0057] Optionally, before calculating the second hardware clock frequency, the terminal device can compare the refresh rate in the acquired system information with a preset threshold. When the refresh rate is greater than the preset threshold, for example, if the preset threshold is 90 times / second and the refresh rate is greater than 90 times / second, the terminal device can calculate the second hardware clock frequency based on the system information. In other words, when the refresh rate corresponding to the function interface of the second operating system is low, the probability of the terminal device experiencing screen flickering is very small, and the terminal device does not need to adjust the kernel's hardware clock frequency.

[0058] S203. Obtain the first hardware clock frequency when the terminal device is running the second operating system in the foreground. The first hardware clock frequency is the hardware clock frequency sent by the HWC module.

[0059] After the terminal device calculates the second hardware clock frequency, it can obtain the first hardware clock frequency when the second operating system is running in the foreground. The first hardware clock frequency is the hardware clock frequency sent by the HWC module and is used to compare with the kernel's hardware clock frequency.

[0060] S204. Select the target hardware clock frequency that is greater than or equal to the target hardware clock frequency level from the preset multiple hardware clock frequency levels.

[0061] Since the hardware clock frequency usable by the terminal device's kernel is the hardware clock frequency corresponding to a pre-defined hardware clock frequency level, the terminal device can select a target hardware clock frequency that is greater than or equal to a target hardware clock frequency level from a set of preset hardware clock frequency levels. The target hardware clock frequency level is the clock frequency level corresponding to the second hardware clock frequency. In other words, when the value of the second hardware clock frequency is equal to the value corresponding to a preset hardware clock frequency level, a target hardware clock frequency greater than or equal to the target hardware clock frequency level can be selected; when the value of the second hardware clock frequency is not equal to the value corresponding to a preset hardware clock frequency level, a target hardware clock frequency greater than the target hardware clock frequency level can be selected. A hardware clock frequency level is a frequency value; that is, one hardware clock frequency level corresponds to one frequency value. This target hardware clock frequency is used as the hardware clock frequency currently used by the kernel when it is greater than the first hardware clock frequency.

[0062] For example, the preset hardware clock frequency levels are 5Hz, 10Hz, 15Hz, 20Hz, and 25Hz. When the second hardware clock frequency is 7Hz, the terminal device can select a target hardware clock frequency corresponding to a target hardware clock frequency level greater than 7Hz, that is, it can choose any one of 10Hz, 15Hz, 20Hz, or 25Hz. When the second hardware frequency is 15Hz, it can select a target hardware clock frequency corresponding to a target hardware clock frequency level greater than or equal to 15Hz, that is, it can choose any one of 15Hz, 20Hz, or 25Hz.

[0063] S205. Determine whether the target hardware clock frequency is greater than the first hardware clock frequency.

[0064] After the terminal device selects the target hardware clock frequency corresponding to the target hardware clock frequency level, it can determine whether the target hardware clock frequency is greater than the first hardware clock frequency. Based on the determination result, the terminal device can decide whether to adjust the hardware clock frequency currently used by the kernel when the terminal device is running the second operating system in the foreground.

[0065] S206. When the target hardware clock frequency is greater than the first hardware clock frequency, adjust the hardware clock frequency currently used by the kernel when the terminal device is running the second operating system in the foreground to the target hardware clock frequency.

[0066] When the target hardware clock frequency is greater than the first hardware clock frequency, the terminal device can adjust the hardware clock frequency currently used by the kernel when the terminal device is running the second operating system in the foreground to the target hardware clock frequency. The hardware clock frequency currently used by the kernel is the hardware clock frequency used by the kernel when the terminal system is running the first operating system in the foreground before switching systems.

[0067] S207. When the target hardware clock frequency is less than or equal to the first hardware clock frequency, the hardware clock frequency currently used by the kernel when the terminal device is running the second operating system in the foreground is not adjusted.

[0068] When the target hardware clock frequency is less than or equal to the first hardware clock frequency, the terminal device does not adjust the hardware clock frequency currently used by the kernel when the second operating system is running in the foreground of the terminal device. In other words, the kernel of the terminal device can receive the hardware clock frequency transmitted by the HWC module. At this time, the received hardware clock frequency is used as the hardware clock frequency currently used by the kernel when the second operating system is running in the foreground of the terminal device. It can be understood that the hardware clock frequency currently used by the kernel at this time is matched with the hardware clock frequency of the HWC module of the second operating system.

[0069] Once the terminal device determines the hardware clock frequency currently used by the kernel when the second operating system is running in the foreground, it can prevent the hardware clock frequency currently used by the kernel when the terminal device is running the second operating system from being lower than the first hardware clock frequency (the hardware clock frequency corresponding to the HWC module when the terminal device is running the second operating system in the foreground), which would cause screen distortion.

[0070] In this embodiment, when the terminal device detects that the operating system running in the foreground has switched from the first operating system to the second operating system, it obtains the system information of the second operating system running in the foreground and calculates the second hardware clock frequency based on the system information to obtain the hardware clock frequency required by the kernel when the second operating system is running in the foreground. Then, it obtains the first hardware clock frequency when the second operating system is running in the foreground and selects a target hardware clock frequency that is greater than or equal to the target clock frequency level from a preset set of multiple hardware clock frequency levels. When the target hardware clock frequency is greater than the first hardware clock frequency, the terminal device adjusts the hardware clock frequency currently used by the kernel when the second operating system is running in the foreground to the target hardware clock frequency. This prevents screen flickering caused by the kernel's current hardware clock frequency being lower than the first hardware clock frequency when the second operating system is running in the foreground, effectively avoiding the occurrence of screen flickering problems.

[0071] refer to Figure 3 , Figure 3 This is a schematic diagram of the structure of a multi-system terminal device provided in Embodiment 2 of this application. Figure 3 As shown, the terminal device 30 includes: a first acquisition module 301, a calculation module 302, a second acquisition module 303, a selection module 304, a judgment module 305, and a determination module 306.

[0072] The first acquisition module 301 is used to acquire system information of the second operating system running in the foreground when it is detected that the operating system running in the foreground of the terminal device has switched from the first operating system to the second operating system.

[0073] The calculation module 302 is used to calculate the second hardware clock frequency based on system information. The second hardware clock frequency is the hardware clock frequency required by the kernel when the second operating system is running in the foreground of the terminal device.

[0074] The second acquisition module 303 is used to acquire the first hardware clock frequency when the terminal device is running the second operating system in the foreground. The first hardware clock frequency is the hardware clock frequency sent by the HWC module.

[0075] The selection module 304 is used to select a target hardware clock frequency that is greater than or equal to the target clock frequency level from a plurality of preset hardware clock frequency levels. The target clock frequency level is the clock frequency level corresponding to the second hardware clock frequency.

[0076] The judgment module 305 is used to determine whether the target hardware clock frequency is greater than the first hardware clock frequency.

[0077] The determination module 306 is used to adjust the hardware clock frequency currently used by the kernel when the terminal device is running the second operating system in the foreground to the target hardware clock frequency when the target hardware clock frequency is greater than the first hardware clock frequency.

[0078] Optional, also includes:

[0079] When the target hardware clock frequency is less than or equal to the first hardware clock frequency, the hardware clock frequency currently used by the kernel when the second operating system is running in the foreground of the terminal device is not adjusted.

[0080] Optional system information includes refresh rate, and the calculation modulus 302 is specifically used for:

[0081] Determine whether the refresh rate in the system information is greater than a preset threshold.

[0082] When the refresh rate is greater than the preset threshold, the second hardware clock frequency is calculated based on the system information.

[0083] Optionally, the system information may include one or more of the following: grayscale value, screen coordinate offset, frame rate, and weight value.

[0084] Optionally, the first operating system is the first Android system, and the second operating system is the second Android system.

[0085] The terminal in this embodiment can be used to execute a solution for screen flickering on a multi-system terminal according to Embodiment 1. The specific implementation method and technical effect are similar, and will not be described again here.

[0086] refer to Figure 4 , Figure 4 This is a schematic diagram of the structure of a multi-system terminal device provided in Embodiment 3 of this application. The terminal device includes 40, which includes: a processor 401, a memory 402, and a transceiver 403. The processor 401 executes computer execution instructions stored in the memory 402 and controls the receiving and sending actions of the transceiver 403, so that at least one processor executes the steps of the screen distortion solution of a multi-system terminal in Embodiment 1. The specific implementation method and technical effect are similar, and will not be described again here.

[0087] This application provides a computer-readable storage medium in Embodiment 4, which stores computer-executable instructions. When executed by a processor, these computer-executable instructions are used to implement the steps of a solution to screen distortion in a multi-system terminal as described in Embodiment 1 above. The specific implementation method and technical effects are similar and will not be repeated here.

[0088] The fifth embodiment of the present invention provides a computer program product, which includes a computer program. When the computer program is executed by a processor, it implements the steps of the multi-system terminal screen distortion solution as described in the first embodiment above. The specific implementation method and technical effect are similar, and will not be repeated here.

[0089] Other embodiments of this application will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this application that follow the general principles of this application and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this application are indicated by the following claims.

[0090] It should be understood that this application is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this application is limited only by the appended claims.

Claims

1. A solution to screen flickering issues on multi-system terminals, characterized in that, include: When the operating system running in the foreground of the terminal device is detected to switch from the first operating system to the second operating system, the system information of the second operating system running in the foreground is obtained; The second hardware clock frequency is calculated based on the system information. The second hardware clock frequency is the hardware clock frequency required by the kernel when the second operating system is running in the foreground of the terminal device. The first hardware clock frequency when the terminal device is running the second operating system in the foreground is obtained. The first hardware clock frequency is the hardware clock frequency sent by the hardware synthesis HWC module. Select a target hardware clock frequency that is greater than or equal to the target clock frequency level from a plurality of preset hardware clock frequency levels, wherein the target clock frequency level is the clock frequency level corresponding to the second hardware clock frequency. Determine whether the target hardware clock frequency is greater than the first hardware clock frequency; When the target hardware clock frequency is greater than the first hardware clock frequency, the hardware clock frequency currently used by the kernel when the terminal device is running the second operating system in the foreground is adjusted to the target hardware clock frequency.

2. The method according to claim 1, characterized in that, Also includes: When the target hardware clock frequency is less than or equal to the first hardware clock frequency, the hardware clock frequency currently used by the kernel when the terminal device is running the second operating system in the foreground is not adjusted.

3. The method according to claim 1, characterized in that, The system information includes the refresh rate, and the calculation of the second hardware clock frequency based on the system information includes: Determine whether the refresh rate in the system information is greater than a preset threshold; When the refresh rate is greater than the preset threshold, the second hardware clock frequency is calculated based on the system information.

4. The method according to claim 3, characterized in that, The system information also includes one or more of the following: grayscale value, screen coordinate offset, frame rate, and weight value.

5. The method according to any one of claims 1-4, characterized in that, The first operating system is the first Android system, and the second operating system is the second Android system.

6. A multi-system terminal device, characterized in that, include: The first acquisition module is used to acquire system information of the second operating system running in the foreground when it is detected that the operating system running in the foreground of the terminal device has switched from the first operating system to the second operating system; The calculation module is used to calculate a second hardware clock frequency based on the system information. The second hardware clock frequency is the hardware clock frequency required by the kernel when the second operating system is running in the foreground of the terminal device. The second acquisition module is used to acquire the first hardware clock frequency when the terminal device is running the second operating system in the foreground, wherein the first hardware clock frequency is the hardware clock frequency sent by HWC. The processing module is used to select a target hardware clock frequency that is greater than or equal to the target clock frequency level from a plurality of preset hardware clock frequency levels, wherein the target clock frequency level is the clock frequency level corresponding to the second hardware clock frequency. The judgment module is used to determine whether the target hardware clock frequency is greater than the first hardware clock frequency; The determining module is used to adjust the hardware clock frequency currently used by the kernel when the terminal device is running the second operating system in the foreground to the target hardware clock frequency when the target hardware clock frequency is greater than the first hardware clock frequency.

7. The terminal device according to claim 6, characterized in that, Also includes: When the target hardware clock frequency is less than or equal to the first hardware clock frequency, the hardware clock frequency currently used by the kernel when the terminal device is running the second operating system in the foreground is not adjusted.

8. The terminal device according to claim 6, characterized in that, The system information includes the refresh rate, and the calculation module is specifically used for: Determine whether the refresh rate in the system information is greater than a preset threshold; When the refresh rate is greater than the preset threshold, the second hardware clock frequency is calculated based on the system information.

9. A multi-system terminal device, characterized in that, include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory to implement the method as described in any one of claims 1-5.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement a solution for screen distortion in a multi-system terminal as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Control method and computer system for switching display between multi-operating system

    CN101477476A

  • Method for adjusting display image of terminal, terminal and computer readable storage medium

    CN112634806A