Frequency modulation method and device, electronic equipment and storage medium

By responding to frequency modulation requests in a dual-system electronic device, the GPU frequency of the target operating system is determined and adjusted, thus solving the high power consumption problem caused by high GPU load in the prior art and achieving the effect of reducing power consumption.

CN122363487APending Publication Date: 2026-07-10TD TECH LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-27
Publication Date
2026-07-10

AI Technical Summary

Technical Problem

In dual-system electronic devices, existing technologies cause the graphics processing unit (GPU) to operate in a high-load mode even when not in use or in standby mode during frequency modulation, increasing the load and power consumption of the electronic device, and thus increasing power consumption.

Method used

When the electronic device displays an interface, it responds to the frequency modulation request, determines the target frequency modulation operating system, and obtains its running status. It adjusts the GPU frequency only when the target frequency modulation operating system is the same as the target running operating system, and sends the target GPU frequency to the target frequency modulation operating system to display a new interface.

Benefits of technology

This technology enables the individual adjustment of the GPU frequency of a single operating system in dual-system electronic devices, reducing power consumption and extending device lifespan.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122363487A_ABST
    Figure CN122363487A_ABST
Patent Text Reader

Abstract

This application provides a frequency modulation method, apparatus, electronic device, and storage medium, relating to the field of data processing technology. The method is applied to an electronic device supporting a first operating system and a second operating system. The method includes: when a first interface is displayed on the screen of the electronic device, in response to a frequency modulation request, determining a target frequency modulation operating system corresponding to the frequency modulation request through a frequency modulation interface; acquiring a first operating state of the first operating system and a second operating state of the second operating system in the electronic device, and determining a target operating system; when the target frequency modulation operating system and the target operating system are the same, adjusting the GPU frequency of the target frequency modulation operating system to obtain a target GPU frequency; and sending the target GPU frequency to the target frequency modulation operating system so that the target frequency modulation operating system displays a second interface on the screen based on the target GPU frequency. The method of this application solves the problem of high power consumption in frequency modulation methods in dual-system electronic devices.
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 frequency modulation method, apparatus, electronic device and storage medium. Background Technology

[0002] Electronic devices that support two operating systems can also be called dual-system electronic devices.

[0003] In the operation of dual-system electronic devices, the frequencies of the two operating systems are usually tuned simultaneously.

[0004] However, when adjusting the GPU frequencies of two operating systems in an electronic device simultaneously using the above method, the graphics processing unit (GPU) will continue to run in a high-load mode even when it is not in use or in standby mode, which increases the load and power consumption of the electronic device, thus increasing the power consumption of the electronic device. Summary of the Invention

[0005] This application provides a frequency modulation method, apparatus, electronic device, and storage medium to solve the problems of high power consumption and rapid power consumption of dual-system electronic devices in the prior art after frequency modulation.

[0006] In a first aspect, this application provides a frequency modulation method applied in an electronic device, wherein the electronic device supports a first operating system and a second operating system;

[0007] The above-mentioned frequency modulation method includes:

[0008] When the display screen of the electronic device shows the first interface, in response to the frequency modulation request, the target frequency modulation operating system corresponding to the frequency modulation request is determined through the frequency modulation interface;

[0009] The operating status of the electronic device is obtained, and the target operating system is determined based on the operating status; the operating status includes a first operating status of a first operating system and a second operating status of a second operating system.

[0010] When the target frequency-modulated operating system is the same as the target running operating system, the GPU frequency of the target frequency-modulated operating system is adjusted to obtain the target GPU frequency;

[0011] The target GPU frequency is sent to the target frequency-modulated operating system, so that the target frequency-modulated operating system displays a second interface on the display screen based on the target GPU frequency.

[0012] In one possible design, the electronic device includes two virtual containers; each virtual container has a virtual container ID, and the two virtual containers correspond one-to-one with two operating systems in the electronic device; when the first interface is displayed on the screen of the electronic device, in response to a frequency modulation request, determining the target frequency modulation operating system corresponding to the frequency modulation request through a frequency modulation interface includes:

[0013] When the display screen of the electronic device shows the first interface, in response to the frequency modulation request, the virtual container ID carried in the frequency modulation request is identified through the frequency modulation interface;

[0014] The operating system corresponding to the virtual container ID is determined as the target frequency modulation operating system.

[0015] In one possible design, obtaining the operating state of the electronic device and determining the target operating system based on the operating state includes:

[0016] The first running state of the first operating system and the second running state of the second operating system are obtained; the first running state includes a working state or a hibernation state, and the second running state is different from the first running state.

[0017] In the first operating system and the second operating system, the operating system that is in a working state is determined as the target operating system.

[0018] In one possible design, when the target frequency-modulated operating system is the same as the target running operating system, adjusting the GPU frequency of the target frequency-modulated operating system to obtain the target GPU frequency includes:

[0019] When the target frequency modulation operating system is the same as the target running operating system, the frequency data carried in the frequency modulation request is obtained;

[0020] Based on the frequency data, the first GPU frequency of the target frequency-tuning operating system is adjusted to obtain the first target GPU frequency.

[0021] In one possible design, after determining the target frequency modulation operating system corresponding to the frequency modulation request via the frequency modulation interface when the first interface is displayed on the screen of the electronic device, the process includes:

[0022] When the target frequency modulation operating system includes the first operating system and the second operating system, the first operating system and the second operating system are determined as the target running operating system;

[0023] According to the frequency tuning request, the second GPU frequency of the first operating system is adjusted to obtain the second target GPU frequency, and according to the frequency tuning request, the third GPU frequency of the second operating system is adjusted to obtain the third target GPU frequency;

[0024] The second target GPU frequency is sent to the first operating system, and the third target GPU frequency is sent to the second operating system, so that the target operating system displays a third interface on the display screen based on the second target GPU frequency or the third target GPU frequency.

[0025] In one possible design, after acquiring the operating state of the electronic device and determining the target operating system based on the operating state, the process includes:

[0026] When the target frequency modulation operating system is different from the target running operating system, a modulation failure prompt message is generated;

[0027] The display screen shows a message indicating that the adjustment failed.

[0028] Secondly, this application provides a frequency modulation device for use in an electronic device, wherein the electronic device supports a first operating system and a second operating system;

[0029] The frequency modulation device includes:

[0030] The first determining module is used to determine the target frequency modulation operating system corresponding to the frequency modulation request through the frequency modulation interface when the display screen of the electronic device displays the first interface;

[0031] The second determining module is used to acquire the operating status of the electronic device and determine the target operating system based on the operating status; the operating status includes a first operating status of the first operating system and a second operating status of the second operating system;

[0032] The first frequency adjustment module is used to adjust the GPU frequency of the target frequency-tuning operating system to obtain the target GPU frequency when the target frequency-tuning operating system is the same as the target running operating system.

[0033] The sending module is used to send the target GPU frequency to the target frequency-modulated operating system, so that the target frequency-modulated operating system displays a second interface on the display screen based on the target GPU frequency.

[0034] In one possible design, the electronic device includes two virtual containers; each virtual container has a virtual container ID, and the two virtual containers correspond one-to-one with two operating systems in the electronic device; the first determining module is specifically used for:

[0035] When the display screen of the electronic device shows the first interface, in response to the frequency modulation request, the virtual container ID carried in the frequency modulation request is identified through the frequency modulation interface;

[0036] The operating system corresponding to the virtual container ID is determined as the target frequency modulation operating system.

[0037] In one possible design, the second determining module is specifically used for:

[0038] The first running state of the first operating system and the second running state of the second operating system are obtained; the first running state includes a working state or a hibernation state, and the second running state is different from the first running state.

[0039] In the first operating system and the second operating system, the operating system that is in a working state is determined as the target operating system.

[0040] In one possible design, the first frequency adjustment module is specifically used for:

[0041] When the target frequency modulation operating system is the same as the target running operating system, the frequency data carried in the frequency modulation request is obtained;

[0042] Based on the frequency data, the first GPU frequency of the target frequency-tuning operating system is adjusted to obtain the first target GPU frequency.

[0043] In one possible design, the device further includes:

[0044] The third determining module is used to determine the first operating system and the second operating system as the target running operating system when the target frequency modulation operating system includes the first operating system and the second operating system;

[0045] The second frequency adjustment module is used to adjust the second GPU frequency of the first operating system according to the frequency adjustment request to obtain the second target GPU frequency, and to adjust the third GPU frequency of the second operating system according to the frequency adjustment request to obtain the third target GPU frequency.

[0046] A first display module is configured to send the second target GPU frequency to the first operating system and the third target GPU frequency to the second operating system, so that the target operating system displays a third interface on the display screen based on the second target GPU frequency or the third target GPU frequency.

[0047] In one possible design, the device further includes:

[0048] The generation module is used to generate a modulation failure prompt message when the target frequency modulation operating system is different from the target running operating system;

[0049] The second display module is used to display the adjustment failure prompt information on the display screen.

[0050] Thirdly, embodiments of this application provide an electronic device, including: at least one processor and a memory; the memory stores computer-executable instructions; the at least one processor executes the computer-executable instructions stored in the memory, causing the at least one processor to perform the frequency modulation method as described in the first aspect and various possible designs of the first aspect.

[0051] Fourthly, embodiments of this application provide a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the frequency modulation method described in the first aspect and various possible designs of the first aspect.

[0052] Fifthly, embodiments of this application provide a computer program product, including a computer program that, when executed by a processor, implements the frequency modulation method described in the first aspect and various possible designs of the first aspect.

[0053] The frequency modulation method, apparatus, electronic device, and storage medium provided in this application, in response to a frequency modulation request when a first interface is displayed on the screen of an electronic device, determine the target frequency modulation operating system corresponding to the frequency modulation request through a frequency modulation interface; obtain the first running state of the first operating system and the second running state of the second operating system of the electronic device, and determine the target running operating system; when the target frequency modulation operating system and the target running operating system are the same, adjust the GPU frequency of the target frequency modulation operating system to obtain the target GPU frequency; and send the target GPU frequency to the target frequency modulation operating system so that the target frequency modulation operating system displays the second interface on the screen based on the target GPU frequency. This allows electronic devices supporting dual systems to adjust the GPU frequency of a single operating system independently, thereby adjusting the power consumption of the electronic device and reducing power consumption. Attached Figure Description

[0054] 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.

[0055] Figure 1 This is a schematic diagram illustrating the application of existing frequency modulation methods;

[0056] Figure 2 A flowchart illustrating a frequency modulation method provided in an embodiment of this application;

[0057] Figure 3 This is a schematic diagram of the software architecture of a dual-system electronic device applicable to embodiments of this application;

[0058] Figure 4 A flowchart illustrating step S102 of a frequency modulation method provided in an embodiment of this application;

[0059] Figure 5 A flowchart illustrating step S103 of a frequency modulation method provided in an embodiment of this application;

[0060] Figure 6 This is a schematic diagram of the structure of a frequency modulation device provided in an embodiment of this application;

[0061] Figure 7 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application.

[0062] 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

[0063] 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.

[0064] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, storage, use, processing, transmission, provision, disclosure, and application of the relevant data all comply with the relevant laws, regulations, and standards of the relevant countries and regions, have taken necessary confidentiality measures, do not violate public order and good morals, and provide corresponding operation access points for users to choose to authorize or refuse.

[0065] It should be noted that the frequency modulation method, apparatus, electronic equipment, storage medium and product provided in this application can be used in the field of electronic equipment, or in any field other than the field of electronic equipment. This application does not limit the application field of the frequency modulation method, apparatus, electronic equipment, storage medium and product.

[0066] It should be noted that in the embodiments of this application, certain software, components, models and other existing solutions in the industry may be mentioned. These should be regarded as exemplary and are only intended to illustrate the feasibility of implementing the technical solution of this application. However, it does not mean that the applicant has used or necessarily used the solution.

[0067] Terminology Explanation:

[0068] Electronic devices that support two operating systems based on LXC (Linux container) technology can also be called dual-system electronic devices. The two operating systems can be the same or different. For example, a dual-system electronic device could support two Android operating systems.

[0069] See Figure 1 Currently, dual-system electronic devices, including Operating System 1 and Operating System 2, typically control the Graphics Processing Unit (GPU) to perform frequency modulation operations based on frequency modulation requests, thereby synchronously adjusting the GPU frequencies of Operating System 1 and Operating System 2.

[0070] However, simultaneously increasing the GPU of two operating systems using the above method will increase the load and power consumption of electronic devices, thereby increasing the power consumption of electronic devices.

[0071] To address the aforementioned problems, this application proposes a frequency modulation method, apparatus, electronic device, and storage medium. When a first interface is displayed on the screen of the electronic device, in response to a frequency modulation request, a target frequency modulation operating system corresponding to the frequency modulation request is determined via a frequency modulation interface. The first operating state of the first operating system and the second operating state of the second operating system of the electronic device are obtained, and a target operating system is determined. If the target frequency modulation operating system and the target operating system are the same, the GPU frequency of the target frequency modulation operating system is adjusted to obtain a target GPU frequency. The target GPU frequency is sent to the target frequency modulation operating system, so that the target frequency modulation operating system displays a second interface on the screen based on the target GPU frequency. This allows a dual-system electronic device to independently adjust the GPU frequency of a single operating system, thereby regulating the power consumption of the electronic device and reducing power consumption.

[0072] The aforementioned electronic devices may include devices that support frequency modulation functions, such as smartphones, tablets, laptops, and personal computers (PCs). This application embodiment does not impose any special restrictions on the specific type of the electronic device.

[0073] The following explanation will primarily use an electronic device that supports dual Android operating systems as an example.

[0074] Figure 2 The flowchart of the frequency modulation method provided in the embodiments of this application is applied to the above-mentioned dual-system electronic device. For example... Figure 2 As shown, the frequency modulation method includes:

[0075] S101. When the first interface is displayed on the screen of the electronic device, in response to the frequency modulation request, the target frequency modulation operating system corresponding to the frequency modulation request is determined through the frequency modulation interface.

[0076] The execution subject of this application embodiment can be an electronic device or a frequency modulation device installed in an electronic device. The frequency modulation device can be implemented by software or by a combination of software and hardware.

[0077] Optionally, the electronic device can employ container technology to create two virtual containers; each virtual container independently starts an operating system, meaning the two virtual containers correspond one-to-one with the two operating systems within the electronic device. The operating system's running states include active and dormant states. At any given time, only one operating system in the electronic device is in the active state (also known as the foreground domain). Correspondingly, the operating system not in the active state can be referred to as the dormant operating system.

[0078] Specifically, each virtual container has a virtual container ID. The corresponding operating system can be determined based on the virtual container's container ID.

[0079] Specifically, when the first interface is displayed on the screen of the electronic device, in response to the frequency modulation request, the target frequency modulation operating system corresponding to the frequency modulation request is determined through the frequency modulation interface. The first interface is the display interface generated and sent by the operating system currently in operation.

[0080] It is understandable that the frequency tuning request could be sent by an operating system that is running or a hibernating operating system.

[0081] Optionally, the electronic device also includes a rootns container, which can serve as the control system for the electronic device, with the first operating system and the second operating system acting as the working system.

[0082] In some embodiments, step S101 includes:

[0083] When the display screen of the electronic device shows the first interface, in response to the frequency modulation request, the virtual container ID carried in the frequency modulation request is identified through the frequency modulation interface;

[0084] The operating system corresponding to the virtual container ID is determined as the target frequency modulation operating system.

[0085] Optionally, the frequency modulation interface indicator can determine the interface of the target frequency modulation operating system.

[0086] For example, the smallest unit of display interface in the hardware abstraction layer of the Android operating system is min_purlevel_show().

[0087] Specifically, when the first interface is displayed on the screen of the electronic device, in response to the frequency modulation request, the virtual container ID of the virtual container carried in the frequency modulation request is identified through the frequency modulation interface. The operating system corresponding to the virtual container ID is determined based on the virtual container ID, and the operating system corresponding to the virtual container ID is determined as the target frequency modulation operating system, that is, the operating system that sent the frequency modulation request.

[0088] S102. Obtain the operating status of the electronic device, and determine the target operating system based on the operating status; the operating status includes the first operating status of the first operating system and the second operating status of the second operating system.

[0089] Specifically, the operating state of the electronic device is obtained, which includes the first operating state of the first operating system and the second operating state of the second operating system, and the first operating state and the second operating state are different.

[0090] Specifically, the target operating system is determined based on the first running state of the first operating system and the second running state of the second operating system.

[0091] S103. When the target frequency-modulated operating system is the same as the target running operating system, adjust the GPU frequency of the target frequency-modulated operating system to obtain the target GPU frequency.

[0092] Specifically, when the target frequency-modulated operating system corresponding to the frequency modulation request is the same as the target running operating system that is currently in operation, it is determined that the frequency modulation request was sent by the target running operating system. Accordingly, the GPU frequency of the target frequency-modulated operating system can be adjusted according to the frequency modulation request to obtain the frequency of the target GPU.

[0093] Optionally, the frequency of the target GPU can be obtained by controlling the graphics processor to adjust the GPU frequency of the target frequency-modulated operating system.

[0094] For example, based on LXC container technology, the minimum frequency for each operating system can be set through the root namespace and stored in the GPU storage space of each operating system. Using namespace technology, frequency adjustment operations can be implemented for each operating system, resulting in a frequency adjustment path corresponding to each operating system. When the frequency adjustment interface adjusts the GPU frequency of the target operating system based on the frequency adjustment request, it can be done through the frequency adjustment path of the target operating system without affecting the GPU frequency of the other operating system.

[0095] S104. The target GPU frequency is sent to the target frequency modulation operating system so that the target frequency modulation operating system displays a second interface on the display screen based on the target GPU frequency.

[0096] Specifically, the adjusted target GPU frequency is sent to the target frequency-modulated operating system. In this way, the target frequency-modulated operating system can process the first interface based on the target GPU frequency to obtain the second interface, which is then displayed on the screen.

[0097] The following example, using an electronic device that supports two Android operating systems, illustrates the software architecture of the device:

[0098] See Figure 3 Each Android operating system's software architecture includes an application layer, an application framework layer, a hardware abstraction layer, and a kernel layer.

[0099] The application layer can be used to interact with the user. The application layer may include multiple applications installed on the dual-system electronic device.

[0100] Applications can include system applications and third-party applications. System applications can be applications that come with the system, while third-party applications can include applications downloaded and installed from the network.

[0101] For example, system applications can include camera applications, while third-party applications can include games and social media applications.

[0102] The application framework layer can be used to provide various application programming interfaces (APIs) and services required for application development, simplifying the application development process.

[0103] The application framework layer can include the Surface Flinger, the WindowManager, and so on.

[0104] The hardware abstraction layer can be used to provide a standard interface that enables the application framework layer to communicate with the hardware driver.

[0105] The hardware abstraction layer can include a hardware interface definition language and specific hardware modules, such as an audio playback interface (AudioHAL) and a frequency modulation interface (such as the minimum unit display interface min_purlevel_show).

[0106] The Audio HAL provides an interface between applications and audio hardware devices. The FM interface can be used to identify container IDs and provides an interface between applications and graphics processors.

[0107] The two Android operating systems mentioned above share the Hardware Abstraction Layer and the Kernel Layer.

[0108] The kernel layer can be used for the management of underlying hardware and the allocation of system resources.

[0109] The kernel layer can include hardware drivers, graphics processing units (GPUs), and so on.

[0110] Hardware drivers are used to interact with specific hardware devices. Hardware drivers can include audio drivers, camera drivers, etc.

[0111] Combination such as Figure 3 The hardware and software architecture shown illustrates that during operation, game application 1 in Android operating system 1 displays a first interface on the screen and sends a frequency modulation request to the application framework layer. The application framework layer calls a shared frequency modulation interface. When the frequency modulation interface recognizes that the target operating system corresponding to the frequency modulation request is Android operating system 1, and the target running operating system is Android operating system 1, it controls the graphics processor based on the frequency modulation request to adjust the GPU frequency of Android operating system 1 to obtain the target GPU frequency. This target GPU frequency is then sent to Android operating system 1. In this way, game application 1 in Android operating system 1 can display a second interface on the screen based on the target GPU frequency.

[0112] It is understandable that, such as Figure 3 The dashed line shown represents the path by which Android OS 2 calls the frequency modulation interface to control the graphics processor and adjust the GPU frequency when it is in operation.

[0113] It should be understood that Figure 3 The software architecture described herein is merely exemplary; electronic devices may include more or fewer software layers.

[0114] In some embodiments, after step S102, the following is included:

[0115] When the target frequency modulation operating system is different from the target running operating system, a modulation failure prompt message is generated;

[0116] The display screen shows a message indicating that the adjustment failed.

[0117] Specifically, when the target frequency tuning operating system is different from the target running operating system, it is determined that the frequency tuning request was not sent by the target running operating system. Therefore, the frequency of the GPU in the dormant operating system is not adjusted to reduce the power consumption of the electronic device. A tuning failure message is generated and displayed on the screen to inform the user that the electronic device attempted to adjust the frequency of the GPU in the dormant operating system, but failed.

[0118] The aforementioned adjustment failure message may include text, image, or video data.

[0119] Alternatively, alerts can be provided through methods such as vibration of electronic devices.

[0120] This application embodiment, in response to a frequency modulation request when the first interface is displayed on the screen of an electronic device, determines the target frequency modulation operating system corresponding to the frequency modulation request through the frequency modulation interface; obtains the first running state of the first operating system and the second running state of the second operating system of the electronic device, and determines the target running operating system; when the target frequency modulation operating system and the target running operating system are the same, adjusts the GPU frequency of the target frequency modulation operating system to obtain the target GPU frequency, and sends the target GPU frequency to the target frequency modulation operating system so that the target frequency modulation operating system displays the second interface on the screen based on the target GPU frequency. This allows electronic devices supporting dual systems to adjust the GPU frequency of a single operating system independently, thereby adjusting the power consumption of the electronic device, reducing power consumption, and increasing the usage time of the electronic device.

[0121] Figure 4 This is a flowchart of step S102 of the frequency modulation method provided in an embodiment of this application. Figure 4 As shown, step S102 of the frequency modulation method includes the following steps:

[0122] S1021. Obtain the first running state of the first operating system and the second running state of the second operating system; the first running state includes a working state or a hibernation state, and the second running state is different from the first running state.

[0123] Specifically, the first operating state of the first operating system and the second operating state of the second operating system in the electronic device are obtained. The first operating state includes a working state or a hibernation state, and the corresponding second operating state includes a hibernation state or a working state.

[0124] For example, when the first operating system is in a working state in its first running state, the second operating system is in a hibernation state in its second running state. Or, when the first operating system is in a hibernation state in its first running state, the second operating system is in a working state in its second running state.

[0125] S1022. Among the first operating system and the second operating system, the operating system that is in the working state is determined as the target operating system.

[0126] Specifically, in the first and second operating systems of an electronic device, the operating system that is in a working state, that is, the operating system in the foreground domain, is identified as the target operating system.

[0127] Understandably, when receiving a frequency tuning request for a single operating system, the frequency tuning interface can only execute the frequency tuning request sent by the target operating system and adjust the GPU frequency of the target operating system, without adjusting the GPU frequency of the operating system in a dormant state, in order to reduce the power consumption of electronic devices and reduce power consumption.

[0128] Figure 5 This is a flowchart of step S103 of the frequency modulation method provided in an embodiment of this application. Figure 5 As shown, step S103 of the frequency modulation method includes the following steps:

[0129] S1031. When the target frequency modulation operating system is the same as the target running operating system, obtain the frequency data carried by the frequency modulation request;

[0130] S1032. Based on the frequency data, adjust the first GPU frequency of the target frequency-tuning operating system to obtain the first target GPU frequency.

[0131] Specifically, when the target frequency modulation operating system is the same as the target running operating system, it is determined that the frequency modulation request was sent by the target running operating system, the frequency modulation request is parsed, and the frequency data carried in the frequency modulation request is obtained.

[0132] Specifically, the frequency data carried in the frequency adjustment request may include the percentage adjustment of the GPU frequency, or the target adjustment value of the GPU frequency, etc.

[0133] For example, if the frequency adjustment request carries the frequency data "GPU frequency + 10%", it means increasing the frequency by 10% based on the current GPU frequency of the target frequency-adjusting operating system. Or, if the frequency adjustment request carries the frequency data "2.8GHz", it means adjusting the current GPU frequency of the target frequency-adjusting operating system to 2.8GHz.

[0134] Specifically, based on the frequency data, the first GPU frequency of the target frequency-modulated operating system at the current moment is adjusted to obtain the first target GPU frequency.

[0135] In response to frequency tuning requests, the GPU frequency of the operating system in the foreground domain can be adjusted specifically without adjusting the GPU frequency of another operating system, which can increase the usage time of electronic devices.

[0136] In some embodiments, after step S101, the following is included:

[0137] When the target frequency modulation operating system includes the first operating system and the second operating system, the first operating system and the second operating system are determined as the target running operating system;

[0138] According to the frequency tuning request, the second GPU frequency of the first operating system is adjusted to obtain the second target GPU frequency, and according to the frequency tuning request, the third GPU frequency of the second operating system is adjusted to obtain the third target GPU frequency;

[0139] The second target GPU frequency is sent to the first operating system, and the third target GPU frequency is sent to the second operating system, so that the target operating system displays a third interface on the display screen based on the second target GPU frequency or the third target GPU frequency.

[0140] Specifically, when the target frequency-modulated operating system includes a first operating system and a second operating system, it is determined that the GPU frequencies of both operating systems need to be adjusted simultaneously. Accordingly, both the first and second operating systems are identified as the target running operating systems. The frequency modulation request is parsed to obtain the second target GPU frequency corresponding to the first operating system carried in the frequency modulation request. The second GPU frequency of the first operating system at the current moment is adjusted to obtain the second target GPU frequency. The third target GPU frequency corresponding to the second operating system carried in the frequency modulation request is obtained. The third GPU frequency of the second operating system at the current moment is adjusted to obtain the third target GPU frequency. The second target GPU frequency is sent to the first operating system, and the third target GPU frequency is also sent to the second operating system.

[0141] Specifically, when the target is running the first operating system, the corresponding third interface is determined based on the second target GPU frequency, and the third interface is displayed on the screen.

[0142] Alternatively, when the target is running a second operating system, the corresponding third interface is determined based on the frequency of the third target GPU, and the third interface is displayed on the screen.

[0143] In this embodiment of the application, when a frequency adjustment request is received for two operating systems, the GPU frequencies of both operating systems can be adjusted simultaneously. Based on this, the electronic device can flexibly switch the GPU frequency adjustment target according to actual operating data, thereby dynamically adjusting the display interface of the electronic device and reducing power consumption.

[0144] Figure 6 This is a schematic diagram of the structure of a frequency modulation device 100 provided in an embodiment of this application. The frequency modulation device 100 can be applied to electronic devices supporting a first operating system and a second operating system. Figure 6 As shown, the frequency modulation device includes:

[0145] The first determining module 101 is used to determine the target frequency modulation operating system corresponding to the frequency modulation request through the frequency modulation interface when the display screen of the electronic device displays the first interface;

[0146] The second determining module 102 is used to acquire the operating status of the electronic device and determine the target operating system based on the operating status; the operating status includes a first operating status of the first operating system and a second operating status of the second operating system.

[0147] The first frequency adjustment module 103 is used to adjust the GPU frequency of the target frequency-tuning operating system to obtain the target GPU frequency when the target frequency-tuning operating system is the same as the target running operating system.

[0148] The sending module 104 is used to send the target GPU frequency to the target frequency-modulated operating system, so that the target frequency-modulated operating system displays a second interface on the display screen based on the target GPU frequency.

[0149] In some embodiments, the electronic device includes two virtual containers; each virtual container has a virtual container ID, and the two virtual containers correspond one-to-one with two operating systems in the electronic device; the first determining module is specifically used for:

[0150] When the display screen of the electronic device shows the first interface, in response to the frequency modulation request, the virtual container ID carried in the frequency modulation request is identified through the frequency modulation interface;

[0151] The operating system corresponding to the virtual container ID is determined as the target frequency modulation operating system.

[0152] In some embodiments, the second determining module is specifically used for:

[0153] The first running state of the first operating system and the second running state of the second operating system are obtained; the first running state includes a working state or a hibernation state, and the second running state is different from the first running state.

[0154] In the first operating system and the second operating system, the operating system that is in a working state is determined as the target operating system.

[0155] In some embodiments, the first frequency adjustment module is specifically used for:

[0156] When the target frequency modulation operating system is the same as the target running operating system, the frequency data carried in the frequency modulation request is obtained;

[0157] Based on the frequency data, the first GPU frequency of the target frequency-tuning operating system is adjusted to obtain the first target GPU frequency.

[0158] In some embodiments, the apparatus further includes:

[0159] The third determining module is used to determine the first operating system and the second operating system as the target running operating system when the target frequency modulation operating system includes the first operating system and the second operating system;

[0160] The second frequency adjustment module is used to adjust the second GPU frequency of the first operating system according to the frequency adjustment request to obtain the second target GPU frequency, and to adjust the third GPU frequency of the second operating system according to the frequency adjustment request to obtain the third target GPU frequency.

[0161] A first display module is configured to send the second target GPU frequency to the first operating system and the third target GPU frequency to the second operating system, so that the target operating system displays a third interface on the display screen based on the second target GPU frequency or the third target GPU frequency.

[0162] In some embodiments, the apparatus further includes:

[0163] The generation module is used to generate a modulation failure prompt message when the target frequency modulation operating system is different from the target running operating system;

[0164] The second display module is used to display the adjustment failure prompt information on the display screen.

[0165] The frequency modulation device provided in this application embodiment can be used to execute the frequency modulation method in the above embodiment. Its implementation principle and technical effect are similar, and will not be described again here.

[0166] It should be noted that the division of the various modules in the above device is merely a logical functional division. In actual implementation, they can be fully or partially integrated into a single physical entity, or they can be physically separated. Furthermore, these modules can be implemented entirely in software via processing element calls; they can be fully implemented in hardware; or some modules can be implemented by processing element calls to software, while others are implemented in hardware. For example, the first frequency adjustment module 103 can be a separate processing element, or it can be integrated into a chip in the above device. Alternatively, it can be stored as program code in the memory of the above device, and its functions can be called and executed by a processing element of the above device. The implementation of other modules is similar. Moreover, these modules can be fully or partially integrated together, or they can be implemented independently. The processing element here can be an integrated circuit with signal processing capabilities. In the implementation process, each step of the above method or each of the above modules can be completed through the integrated logic circuits in the hardware of the processor element or through software instructions.

[0167] Figure 7 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Figure 7 As shown, the electronic device may include: transceiver 21, processor 22, and memory 23.

[0168] Processor 22 executes computer execution instructions stored in memory, causing processor 22 to perform the scheme in the above embodiments. Processor 22 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.

[0169] The memory 23 is connected to the processor 22 via the system bus and completes communication between them. The memory 23 is used to store computer program instructions.

[0170] Transceiver 21 can be used to acquire frequency modulation requests, first operating status, second operating status, etc.

[0171] The system bus can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The system bus can be divided into address bus, data bus, control bus, etc. For ease of representation, only one thick line is used in the diagram, but this does not indicate that there is only one bus or one type of bus. Transceivers are used to enable communication between database access devices and other computers (e.g., clients, read-write libraries, and read-only libraries). Memory may include random access memory (RAM) and may also include non-volatile memory.

[0172] This application also provides a chip for executing instructions, which is used to execute the frequency modulation method described in the above embodiments.

[0173] This application also provides a computer-readable storage medium storing computer instructions that, when executed on a computer, cause the computer to perform the frequency modulation method described in the above embodiments.

[0174] This application also provides a computer program product, which includes a computer program stored in a computer-readable storage medium. At least one processor can read the computer program from the computer-readable storage medium, and when the at least one processor executes the computer program, it can implement the technical solution of the frequency modulation method in the above embodiments.

[0175] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative; for instance, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple modules may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be indirect coupling or communication connection through some interfaces, devices, or modules, and may be electrical, mechanical, or other forms.

[0176] The modules described as separate components may or may not be physically separate. The components shown as modules may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to implement the solution of this embodiment according to actual needs.

[0177] Furthermore, the functional modules in the various embodiments of this application can be integrated into one processing unit, or each module can exist physically separately, or two or more modules can be integrated into one unit. The unit composed of the above modules can be implemented in hardware or in the form of hardware plus software functional units.

[0178] The integrated modules described above, implemented as software functional modules, can be stored in a computer-readable storage medium. These software functional modules, stored in a storage medium, include several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute some steps of the methods of the various embodiments of this application.

[0179] It should be understood that the aforementioned processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), etc. A general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in this invention can be directly manifested as execution by a hardware processor, or execution by a combination of hardware and software modules within the processor.

[0180] The memory may include high-speed RAM, and may also include non-volatile storage (NVM), such as at least one disk storage device, and may also be a USB flash drive, external hard drive, read-only memory, disk or optical disc, etc.

[0181] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of illustration, the buses shown in the accompanying drawings are not limited to a single bus or a single type of bus.

[0182] The aforementioned storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk. The storage medium can be any available medium that can be accessed by a general-purpose or special-purpose computer.

[0183] An exemplary storage medium is coupled to a processor, enabling the processor to read information from and write information to the storage medium. Alternatively, the storage medium can be an integral part of the processor. The processor and storage medium can reside in an Application Specific Integrated Circuit (ASIC). Alternatively, the processor and storage medium can exist as discrete components in an electronic control unit or main control device.

[0184] Those skilled in the art will understand that all or part of the steps of the above-described method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When executed, the program performs the steps of the above-described method embodiments; and the aforementioned storage medium includes various media capable of storing program code, such as ROM, RAM, magnetic disks, or optical disks.

[0185] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features therein. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.

Claims

1. A frequency modulation method, characterized in that, The device is used in electronic devices that support a first operating system and a second operating system. The frequency modulation method includes: When the display screen of the electronic device shows the first interface, in response to the frequency modulation request, the target frequency modulation operating system corresponding to the frequency modulation request is determined through the frequency modulation interface; The operating status of the electronic device is obtained, and the target operating system is determined based on the operating status; the operating status includes a first operating status of a first operating system and a second operating status of a second operating system. When the target frequency-modulated operating system is the same as the target running operating system, the GPU frequency of the target frequency-modulated operating system is adjusted to obtain the target GPU frequency; The target GPU frequency is sent to the target frequency-modulated operating system, so that the target frequency-modulated operating system displays a second interface on the display screen based on the target GPU frequency.

2. The method according to claim 1, characterized in that, The electronic device includes two virtual containers; each virtual container has a virtual container ID, and the two virtual containers correspond one-to-one with two operating systems in the electronic device; when the first interface is displayed on the screen of the electronic device, in response to a frequency modulation request, determining the target frequency modulation operating system corresponding to the frequency modulation request through the frequency modulation interface includes: When the display screen of the electronic device shows the first interface, in response to the frequency modulation request, the virtual container ID carried in the frequency modulation request is identified through the frequency modulation interface; The operating system corresponding to the virtual container ID is determined as the target frequency modulation operating system.

3. The method according to claim 1, characterized in that, The step of acquiring the operating status of the electronic device and determining the target operating system based on the operating status includes: The first running state of the first operating system and the second running state of the second operating system are obtained; the first running state includes a working state or a hibernation state, and the second running state is different from the first running state. In the first operating system and the second operating system, the operating system that is in a working state is determined as the target operating system.

4. The method according to claim 3, characterized in that, When the target frequency-modulated operating system is the same as the target running operating system, adjusting the GPU frequency of the target frequency-modulated operating system to obtain the target GPU frequency includes: When the target frequency modulation operating system is the same as the target running operating system, the frequency data carried in the frequency modulation request is obtained; Based on the frequency data, the first GPU frequency of the target frequency-tuning operating system is adjusted to obtain the first target GPU frequency.

5. The method according to claim 3, characterized in that, When the first interface is displayed on the screen of the electronic device, after responding to the frequency modulation request and determining the target frequency modulation operating system corresponding to the frequency modulation request through the frequency modulation interface, the process includes: When the target frequency modulation operating system includes the first operating system and the second operating system, the first operating system and the second operating system are determined as the target running operating system; According to the frequency tuning request, the second GPU frequency of the first operating system is adjusted to obtain the second target GPU frequency, and according to the frequency tuning request, the third GPU frequency of the second operating system is adjusted to obtain the third target GPU frequency; The second target GPU frequency is sent to the first operating system, and the third target GPU frequency is sent to the second operating system, so that the target operating system displays a third interface on the display screen based on the second target GPU frequency or the third target GPU frequency.

6. The method according to any one of claims 1 to 5, characterized in that, After obtaining the operating status of the electronic device and determining the target operating system based on the operating status, the process includes: When the target frequency modulation operating system is different from the target running operating system, a modulation failure prompt message is generated; The display screen shows a message indicating that the adjustment failed.

7. A frequency modulation device, characterized in that, The device is used in electronic devices that support a first operating system and a second operating system. The frequency modulation device includes: The first determining module is used to determine the target frequency modulation operating system corresponding to the frequency modulation request through the frequency modulation interface when the display screen of the electronic device displays the first interface; The second determining module is used to acquire the operating status of the electronic device and determine the target operating system based on the operating status; the operating status includes a first operating status of the first operating system and a second operating status of the second operating system; The first frequency adjustment module is used to adjust the GPU frequency of the target frequency-tuning operating system to obtain the target GPU frequency when the target frequency-tuning operating system is the same as the target running operating system. The sending module is used to send the target GPU frequency to the target frequency-modulated operating system, so that the target frequency-modulated operating system displays a second interface on the display screen based on the target GPU frequency.

8. An electronic 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-6.

9. 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 the method as described in any one of claims 1-6.

10. A computer program product, characterized in that, Includes a computer program that, when executed by a processor, implements the method of any one of claims 1-6.