Performance policy management method and electronic device

By introducing a performance strategy management method into electronic devices and using flag bits and performance item status detection to dynamically adjust the operating mode, the problem of unmet performance requirements of electronic devices in different scenarios is solved, achieving power consumption optimization and improved user experience.

CN119025390BActive Publication Date: 2025-11-04HONOR DEVICE CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202410836054.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-25
Publication Date
2025-11-04
Estimated Expiration
2044-06-25

AI Technical Summary

Technical Problem

Electronic devices cannot accurately determine performance requirements in different scenarios, resulting in unmet performance requirements, which in turn affects user experience and increases power consumption.

Method used

By introducing a performance strategy management method into electronic devices, the operating mode is dynamically adjusted to meet performance requirements using flag bits and performance item status detection. This includes a first operating mode and a second operating mode, and the mode switching is determined by detecting changes in the status of performance items.

Benefits of technology

It effectively meets the performance requirements of electronic devices in different scenarios, reduces unnecessary power consumption, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119025390B_ABST
    Figure CN119025390B_ABST
Patent Text Reader

Abstract

The application provides a performance policy management method and an electronic device, relates to the technical field of electronic devices, and is applied to an electronic device. The electronic device comprises a first operation mode and a second operation mode. The processing performance of the first operation mode is superior to the processing performance of the second operation mode. The electronic device comprises at least two performance items, wherein the at least two performance items comprise a first performance item and a second performance item. Each performance item comprises a first state and a second state. When the performance item is in the first state, the electronic device is in the first operation mode. When the performance item is in the second state, the electronic device is in the second operation mode. The method comprises the following steps: in response to the first performance item switching from the first state to the second state, the electronic device detects the state of the second performance item when the electronic device is in the first operation mode; and in the case that the second performance item is in the first state, the electronic device keeps the first operation mode. The scheme can meet the performance requirement of the electronic device scene.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of electronic devices, and in particular to a performance policy management method and an electronic device. BACKGROUND

[0002] The performance of an electronic device is one of the important indicators for evaluating the electronic device. The better the performance of the electronic device, the better user experience the electronic device will provide. However, the better the performance of the electronic device, the higher the power consumption of the electronic device will be.

[0003] Currently, there are multiple scenarios with different performance requirements in an electronic device. During the use of the electronic device, if the electronic device cannot accurately determine the performance requirement, the performance requirement in the current scenario may not be met. SUMMARY

[0004] Embodiments of the present application provide a performance policy management method and an electronic device, which can meet the performance requirement of the electronic device in the corresponding scenario.

[0005] To achieve the above object, embodiments of the present application adopt the following technical solutions:

[0006] In a first aspect, a performance policy management method is provided, applied to an electronic device, the electronic device including a first running mode and a second running mode, the processing performance of the first running mode being superior to the processing performance of the second running mode. The electronic device further includes at least two performance items, the at least two performance items including a first performance item and a second performance item, each performance item including a first state and a second state, the electronic device being in the first running mode when the performance item is in the first state, and the electronic device being in the second running mode when the performance item is in the second state. The method includes: in response to the first performance item switching from the first state to the second state while the electronic device is in the first running mode, detecting the state of the second performance item. In the case where the second performance item is detected to be in the first state, the electronic device remains in the first running mode.

[0007] By adopting the technical solution, the electronic device associates the performance items in the first running mode, and when the state of one performance item in the first running mode changes, the state of other performance items is also determined. When the state of one performance item is still in the first state, that is, the first running mode is still required, the electronic device continues to remain in the first running mode to meet the performance requirement of the electronic device.

[0008] In a possible implementation of the first aspect, in response to the first performance item switching from the first state to the second state, the electronic device is in the first operation mode, after detecting the state of the second performance item, in the case that the second performance item is in the second state, the electronic device switches to the second operation mode. This scheme can switch the first operation mode to the second operation mode only when the performance items are all in the second state, thereby saving the power consumption of the electronic device.

[0009] In a possible implementation of the first aspect, in the case that the second performance item is in the first state, the electronic device remains in the first operation mode, after detecting that the second performance item is in the second state, the electronic device switches to the second operation mode. This scheme can ensure that the electronic device switches to the second operation mode only when the performance items are all in the second state during use, thereby saving the power consumption.

[0010] In a possible implementation of the first aspect, the first performance item is a user usage scenario, the second performance item is a performance policy, the first state of the user usage scenario includes a game scenario, the second state of the user usage scenario includes an office scenario, the first state of the performance policy includes a first performance mode, the second state of the performance policy includes a second performance mode, and the performance of the electronic device in the first performance mode is better than the performance of the electronic device in the second performance mode. Alternatively, the first performance item is a performance policy, and the second performance item is a user usage scenario.

[0011] It can be understood that the first state of the user usage scenario can include multiple scenarios, and the second state of the user usage scenario can also include multiple scenarios, the performance requirement of the multiple scenarios included in the first state is higher than the performance requirement of the multiple scenarios included in the second state, so that the electronic device is in the first operation mode when in the multiple scenarios included in the first state, and the electronic device is in the second operation mode when in the multiple scenarios included in the second state.

[0012] In a possible implementation of the first aspect, the first performance mode can be a Hunter mode in the performance policy, and the second performance mode can be an intelligent mode or a high-energy mode in the performance policy.

[0013] In a possible implementation of the first aspect, before the electronic device is in the first operation mode, the electronic device enters the first operation mode in response to one performance item switching from the second state to the first state, and the electronic device sets a preset flag bit to a first value. The flag bit being the first value indicates that the electronic device enters the first operation mode due to the performance item. This scheme can set the flag bit, and subsequently use the value of the flag bit to determine whether the current first operation mode is set by the electronic device judging the state of the performance item, thereby determining whether the first operation mode needs to be maintained or exited again.

[0014] In a possible implementation of the first aspect, the electronic device comprises a management application, the management application being configured to adjust the state of the performance policy. After the electronic device switches from the second state to the first state in response to the performance item, the electronic device enters the first running mode, and the electronic device sets the preset flag bit to the first value, the electronic device is in the first running mode. In response to the burst event, the electronic device is in the first running mode, and the flag bit is obtained. The burst event includes a restart of the electronic device or a restart of the management application. When the flag bit is the first value, the electronic device detects the state of at least two performance items. When the at least two performance items are in the second state, the electronic device switches from the first running mode to the second running mode. The scheme can determine whether the current first running mode is set by the electronic device before the restart by detecting the value of the flag bit after the restart of the electronic device or the restart of the management application. If yes, the state of the performance item needs to be re-judged to avoid incorrect judgment of the current scenario and waste of power consumption.

[0015] In a possible implementation of the first aspect, before the electronic device detects the state of the at least two performance items, when the flag bit is the first value, the electronic device sets the flag bit to the second value. The second value of the flag bit indicates that the flag bit is reset. In the scheme, when the flag bit is detected to be 1, it indicates that the first running mode at this time is set by the electronic device before the burst event, and the incorrect setting information of the electronic device at this time needs to be cleared, that is, the first running mode at this time needs to be exited to avoid waste of power consumption. However, before the first running mode is exited, the state of the performance item needs to be re-judged to determine whether the first running mode really needs to be exited.

[0016] In a possible implementation of the first aspect, when the flag bit is the first value, after the flag bit is set to the second value, when at least one performance item is in the first state, the electronic device remains in the first running mode.

[0017] In a possible implementation of the first aspect, after the electronic device remains in the first running mode when at least one performance item is in the first state, the electronic device sets the flag bit to the first value. In this way, in the subsequent use process, when the electronic device again responds to the burst event, for example, the restart of the electronic device or the restart of the management application, the electronic device can determine whether the state of the performance item needs to be re-judged by the value of the flag bit.

[0018] In a possible implementation manner of the first aspect, in the case that the at least two performance items are in the second state, after the electronic device switches from the first running mode to the second running mode, the electronic device further sets a flag bit to a third value. The third value of the flag bit indicates that the electronic device switches from the first running mode to the second running mode. The second value of the flag bit can be equal to the third value, mainly for distinguishing from the first value. That is, as long as the electronic device detects the flag bit as the first value after the emergency event, the flag bit needs to be reset, and the states of the performance items need to be rejudged. If the flag bit is detected as another value, the states of the performance items do not need to be judged, and the running mode is set according to the normal logic and the state changes of the performance items.

[0019] In a second aspect, the present application provides an electronic device, comprising a display screen, a memory and one or more processors; the display screen, the memory and the processors are coupled; wherein the memory stores computer program codes, the computer program codes comprise computer instructions, when the computer instructions are executed by the processors, the electronic device executes the method in any one of the first aspect.

[0020] In a third aspect, the present application provides a computer readable storage medium, the computer readable storage medium stores instructions, when the instructions are executed on a computer, the computer can execute the method in any one of the first aspect.

[0021] In a fourth aspect, the present application provides a computer program product comprising instructions, when the instructions are executed on a computer, the computer can execute the method in any one of the first aspect.

[0022] It can be understood that the electronic device provided in the second aspect, the computer readable storage medium provided in the third aspect and the computer program product provided in the fourth aspect are all used to execute the corresponding method provided above, and thus the beneficial effects achieved by the electronic device, the computer readable storage medium and the computer program product can refer to the beneficial effects of the corresponding method provided above, which will not be described here again. BRIEF DESCRIPTION OF DRAWINGS

[0023] Figure 1 A user interface schematic diagram of a PC housekeeper application provided by an embodiment of the present application;

[0024] Figure 2 A whole technical architecture diagram of performance policy management provided by an embodiment of the present application;

[0025] Figure 3 A flowchart of a performance policy management method provided by an embodiment of the present application;

[0026] Figure 4 A flowchart of a performance policy management method provided by an embodiment of the present application is shown in FIG. 1.

[0027] Figure 5 A flowchart of a performance policy management method provided by an embodiment of the present application is shown in FIG. 1.

[0028] Figure 6 A flowchart of a performance policy management method provided by an embodiment of the present application is shown in FIG. 1.

[0029] Figure 7 A flowchart of a performance policy management method provided by an embodiment of the present application is shown in FIG. 1.

[0030] Figure 8 A flowchart of a performance policy management method provided by an embodiment of the present application is shown in FIG. 1.

[0031] Figure 9 A flowchart of a performance policy management method provided by an embodiment of the present application is shown in FIG. 1.

[0032] Figure 10 A flowchart of a performance policy management method provided by an embodiment of the present application is shown in FIG. 1.

[0033] Figure 11 A flowchart of a performance policy management method provided by an embodiment of the present application is shown in FIG. 1.

[0034] Figure 12 A flowchart of a performance policy management method provided by an embodiment of the present application is shown in FIG. 1.

[0035] Figure 13 A flowchart of a performance policy management method provided by an embodiment of the present application is shown in FIG. 1. DETAILED DESCRIPTION

[0036] The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, but not all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work should fall within the scope of protection of the present application.

[0037] It should be noted that the terms "first", "second", etc. are used only for descriptive purposes and should not be construed as indicating or implying relative importance or an indicated number of technical features. Therefore, the features defined with "first", "second", etc. can explicitly or implicitly include one or more of the features. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device including a series of steps or units is not limited to the listed steps or units, but can optionally include steps or units not listed, or can optionally include other steps or units inherent to the process, method, product or device.

[0038] In this specification, the phrase "one embodiment" or "some embodiments" etc. means that a particular feature, structure or characteristic described in connection with the embodiment is included in one or more embodiments of the application. Therefore, the phrases "in one embodiment", "in some embodiments", "in other some embodiments", "in further some embodiments" etc. appearing in different places in the specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized.

[0039] In the embodiments of the present application, the words "exemplary" or "for example" are used to mean serving as an example, instance, or illustration. Any embodiment or design presented as "exemplary" or "for example" in the embodiments of the present application should not be construed as being preferred or advantageous over other embodiments or designs. Rather, the use of "exemplary" or "for example" is intended to present concepts in a concrete manner.

[0040] First, introduce the professional terms involved in the embodiments of the present application.

[0041] (1) Performance: In the field of electronic devices, performance generally refers to computing power, response speed and data processing capability. The performance of an electronic device is related to factors such as the working speed of the central processing unit (CPU), cache, memory, disk access speed, network bandwidth, etc. Generally, the higher the performance of an electronic device, the faster it processes data and the more efficiently it can complete tasks. Performance improvement is crucial for high-load electronic device tasks, such as high server load, increasing number of virtual machines, etc., which all have high performance requirements.

[0042] (2) Power plan: refers to the working mode and performance settings of an electronic device in different power states. Power plan mainly includes three kinds, namely balance strategy, energy saving strategy and high performance strategy.

[0043] The balancing strategy can automatically balance power consumption and performance by using available hardware, provide maximum performance when the system needs high performance, and save power as much as possible when the system is idle. The power saving strategy can reduce the performance of the electronic device as much as possible to save power, and is more suitable for users who take the electronic device (for example, a notebook computer) outside, and can improve the outdoor use time of the notebook computer. The high performance strategy keeps the system running at maximum performance regardless of whether the electronic device currently needs sufficient performance, and is the highest performance of the three power plans, but increases the power consumption of the electronic device.

[0044] In the embodiment of the application, the electronic device automatically starts the high performance strategy in the power plan when it identifies that it is currently in a game scenario. The electronic device being in a game scenario can mean that the electronic device is running a game application.

[0045] In the embodiment of the application, the electronic device can start the high performance strategy in response to the user's selection operation on the control corresponding to the high performance strategy in the power plan option.

[0046] (3) Personal computer (PC) manager application: used to solve various problems encountered during PC use, improve PC performance and stability.

[0047] The user interface of the PC manager application is provided with a control corresponding to the OSTurbo module, and is provided with a control corresponding to each performance mode in the performance strategy. The PC can start or stop the OSTurbo module in response to the user's selection operation on the control corresponding to the OSTurbo module in the PC manager application. In addition, the PC can start or stop each performance mode in response to the user's selection operation on the control corresponding to each performance mode in the performance strategy in the PC manager application.

[0048] (4) OSTurbo: a system-level performance that is enabled by default in the system, which can intelligently identify user usage scenarios and optimize and schedule the system to balance the performance and power consumption of the electronic device.

[0049] In addition to starting or stopping the OSTurbo module in response to the user's selection operation on the control corresponding to the OSTurbo module in the PC manager application, the PC can also start or stop the OSTurbo module in response to the shortcut instruction input by the user in the PC.

[0050] In the embodiment of the application, when the user plays games through the electronic device, the OSTurbo module in the electronic device can identify that the computer is currently in a game scenario.

[0051] (5) Hunter mode: This is a performance strategy that maximizes the performance of electronic devices to provide users with the ultimate gaming experience.

[0052] The aforementioned performance strategies include three modes: Hunter mode, Smart mode, and Performance mode (High-Energy mode). Smart mode intelligently adjusts system resources to balance performance and battery life. High-Energy mode significantly enhances the performance of electronic devices.

[0053] Users can choose the performance strategy to enable based on their needs and the functionality of the mode. The following describes a method for an electronic device to enable Hunter mode in response to user input. All embodiments below use a personal computer (PC) as an example.

[0054] Please see Figure 1 , Figure 1 This is a schematic diagram of the user interface of a PC manager application (i.e., a management application) provided for an embodiment of this application. Figure 1 As shown, the user interface 101 of the PC Manager application includes performance management options. In response to the user's selection of the corresponding control 102 for the performance management options, the PC displays a performance management selection interface. This selection interface includes selection controls for Hunter Mode, Smart Mode, and High-Performance Mode. In response to the user's selection of the corresponding control 103 for Hunter Mode, the PC activates Hunter Mode.

[0055] When a user is playing games on their PC, the OSTurbo module in the PC can recognize that the PC is in a game environment. At this time, the PC can automatically activate the high-performance policy in the power plan. Alternatively, when the user actively selects Hunter mode in the PC Manager application's user interface, the PC can also automatically activate the high-performance policy in the power plan. In other words, as long as the PC is in a game environment or Hunter mode is enabled, the high-performance policy in the power plan will be activated.

[0056] However, when a PC is in a gaming environment, the high-performance policy in the PC's power plan may have been disabled. For example, if the PC exits Hunter mode, the high-performance policy in the power plan will no longer be effective. In this case, because the PC has disabled the high-performance policy, the game performance may be insufficient, resulting in a poor gaming experience for the user.

[0057] The automatic exit of the Hunter mode includes two cases. The first case is that the AC mode is switched to the DC mode, i.e., the PC is switched from being charged by a power adapter to being powered by a battery. The second case is that the power of the PC is less than a preset value, for example, the power of the PC is less than 20%.

[0058] The high-performance strategy in the power plan is the first running mode, and the balance strategy or the energy-saving strategy in the power plan is the second running mode. When the performance items of the PC include user scenarios and performance strategies in the PC, the first performance item can be any one of the user scenarios and the performance strategies. If the user scenarios are the first performance item, the performance strategies are the second performance item. If the performance strategies are the first performance item, the user scenarios are the second performance item.

[0059] The game scenario is the first state of the user scenarios, and the office scenario is the second state of the user scenarios. The Hunter mode is the first state of the performance strategies, and the smart mode or the high-energy mode is the second state of the performance strategies. Therefore, in terms of a single performance item, when the user scenarios are in the game scenario, the PC is in the high-performance strategy in the power plan; when the user scenarios are in the office scenario, the PC is in the balance strategy or the energy-saving strategy in the power plan. When the performance strategies are in the Hunter mode, the PC is in the high-performance strategy in the power plan; when the performance strategies are in the smart mode or the high-energy mode, the PC is in the balance strategy or the energy-saving strategy in the power plan.

[0060] The first state of the user scenarios can also be other scenarios that need to be in the high-performance strategy, such as a high-computing scenario. The second state of the user scenarios can also be other scenarios that need to be in the balance strategy or the energy-saving strategy, and the office scenario is only an example and is not limited to the office scenario.

[0061] In this embodiment, the electronic device is a PC, which is only an example. The electronic device can also be other devices that include the first running mode and the second running mode and include at least two performance items, which are not described herein.

[0062] So, in the above example, if the PC is in the first running mode (high performance strategy in the power plan), when the first performance item (performance strategy) switches from the first state (Hunter mode) to the second state (smart mode or high energy mode), the PC will exit the first running mode (high performance strategy in the power plan). However, at this time, the PC is still in the first state (game scene) of the second performance item (user usage scenario), and since the PC has exited the first running mode (high performance strategy in the power plan), the performance of the game scene is not enough, which leads to a poor user experience in the game.

[0063] In summary, the embodiments of the present application can provide a performance strategy management method, which is applied to an electronic device. The electronic device associates performance items in a first running mode, and when a state of one performance item in the first running mode changes, the electronic device also determines the states of other performance items. When the state of one performance item is still in the first state, that is, the electronic device still needs to be in the first running mode, the electronic device continues to maintain the first running mode to meet the performance requirements of the electronic device.

[0064] First, the embodiments take the user usage scenario and the performance strategy as examples to introduce the overall technical architecture of the performance strategy management.

[0065] Please refer to Figure 2 , Figure 2 The overall technical architecture diagram of the performance strategy management provided by the embodiments of the present application is shown in FIG. 1. As shown in FIG. 1, the PC can be divided into at least an application layer, a system layer and a firmware layer. Figure 2

[0066] The application layer includes a PC manager application. In the PC manager application, the user usage scenario can be recognized, and the performance strategy can be switched. The PC manager application recognizes the current user usage scenario through the OSTurbo module, and can issue the scene strategy corresponding to the scene. The switching of the performance strategy is realized by switching the corresponding control of the user interface displayed by the PC manager application. The PC manager application can provide a user interface that is visible and operable to the user.

[0067] The system layer can perform message listening. Specifically, the kernel message listening start module in the system layer reports the message to the application layer after detecting the process creation or scene switching message. Taking the game scene as an example, the kernel message listening start module in the system layer reports the message to the application layer after detecting the game process creation or switching to the game scene switching message. The Windows probe of the application layer receives the message, and the OSTurbo module issues the scene strategy corresponding to the game scene. At this time, the application layer sends a message to the system layer to set the high performance strategy in the power plan. ​

[0068] The BIOS module can detect a shortcut key command or a User Interface (UI) instruction. The PC can select a performance policy in response to a shortcut key command input by a user. Alternatively, the PC can select a corresponding performance policy in response to a selection operation of a performance policy corresponding control displayed in a UI interface of the PC manager application by a user. Different controls correspond to different performance policies.

[0069] After detecting the shortcut key command or the UI instruction, the BIOS module sends a Windows Management Instrumentation (WMI) command. Specifically, the BIOS module sends a message to a WMI service module of a system layer, the WMI service module sends a message to a WMI Application Programming Interface (API) of an application layer, and the WMI API sends a message to the PC manager application.

[0070] The WMI API interacts with a Windows probe.

[0071] The PC manager application receives the message, and the message indicates a performance policy to be switched. The PC manager application switches to the indicated performance policy in response to the event. For example, if the message indicates that the performance policy to be switched is the Hunter mode, the performance policy of the PC is switched to the Hunter mode. At this time, the application layer sends a message to the system layer to set a high performance policy in a power plan.

[0072] The interaction herein refers to that the setting of the high performance policy of the game scene and the setting of the high performance policy of the Hunter mode are originally two independent modules in the PC, and the embodiment sets them in the same module, so that the game scene and the Hunter mode can be associated. When setting the high performance policy, the user's use scene and the performance policy can be associated.

[0073] Therefore, the PC can set a power plan meeting the performance requirement of the PC through the linkage of the user's use scene and the performance policy.

[0074] Please refer to Figure 3 , Figure 3 a flowchart of a performance policy management method provided by the embodiment of the present application. As shown in Figure 3 , the specific steps include steps S301-S304.

[0075] S301: The PC is in the first running mode, and the first performance item is switched from the first state to the second state.

[0076] In the embodiments of the present application, the PC includes a first running mode and a second running mode, and the processing performance of the first running mode is superior to the processing performance of the second running mode. The PC further includes at least two performance items, and the at least two performance items include a first performance item and a second performance item. Each performance item includes a first state and a second state. When the performance item is in the first state, the PC is in the first running mode. When the performance item is in the second state, the PC is in the second running mode.

[0077] The first running mode of the PC can include a high-performance strategy in the power plan, and the second running mode can include a balance strategy or an energy-saving strategy in the power plan. The at least two performance items included by the PC can be a user usage scenario and a performance strategy. The first state of the user usage scenario can be a game scenario, and the second state of the user usage scenario can be an office scenario. The first state of the performance strategy can be a Hunter mode, and the second state of the performance strategy can be an intelligent mode or a high-energy mode.

[0078] The Hunter mode described above can be a first performance mode, and the intelligent mode or the high-energy mode described above can be a second performance mode.

[0079] In the embodiments, the first state of the performance item of the PC in the first running mode can be set as a high-performance requirement scenario of the PC. The PC can pre-acquire each high-performance requirement scenario. Therefore, when the performance item is in the first state, the PC is in the first running mode, that is, when the PC is in the high-performance requirement scenario, the PC is in the high-performance strategy in the power plan. The high-performance requirement scenario can at least include a game scenario of the PC and a Hunter mode of the PC.

[0080] Therefore, the first performance item being switched from the first state to the second state can mean that the user usage scenario is switched from the game scenario to the office scenario, or the performance strategy is switched from the Hunter mode to the intelligent mode or the high-energy mode.

[0081] It can be understood that, if the first performance item is the user usage scenario, the second performance item is the performance strategy. Or, if the first performance item is the performance strategy, the second performance item is the user usage scenario.

[0082] If the first performance item is switched from the first state to the second state in response to the PC currently being in the first running mode, the PC performs step S302.

[0083] S302: The PC detects whether the second performance item is in the first state.

[0084] If the first performance item is the user usage scenario, the second performance item is the performance policy. Then, in the case that the PC is currently in the high performance policy in the power plan, in response to the user usage scenario being switched from the game scenario to the office scenario, the PC detects the state of the performance policy.

[0085] In which, the PC detects whether the state of the performance policy is in the first state, that is, the PC detects whether the performance policy is the Hunter mode. If the PC detects that the performance policy is the Hunter mode, step S303 is executed. If the PC detects that the performance policy is the smart mode or the high energy mode, step S304 is executed.

[0086] If the first performance item is the performance policy, the second performance item is the user usage scenario. Then, in the case that the PC is currently in the high performance policy in the power plan, in response to the performance policy being switched from the Hunter mode to the smart mode or the high energy mode, the PC detects the state of the user usage scenario.

[0087] In which, the PC detects whether the state of the user usage scenario is in the first state, that is, the PC detects whether the user usage scenario is the game scenario. If the PC detects that the user usage scenario is the game scenario, step S303 is executed. If the PC detects that the user usage scenario is the office scenario, step S304 is executed.

[0088] S303: The PC keeps the first running mode.

[0089] Thus, although the state of the first performance item is switched from the first state to the second state, through the judgment of the state of the second performance item, it can be known that the second performance item is in the first state, then the PC still keeps the first running mode. Therefore, the PC can meet the performance requirement of the second performance item.

[0090] In which, if in the process of using the PC, the PC detects that the subsequent second performance item is switched from the first state to the second state, at this time, the PC will exit the first running mode and switch to the second running mode.

[0091] S304: The PC exits the first running mode.

[0092] At this time, since the states of the first performance item and the second performance item are both the second state, then there is no performance item in the PC that needs to be in the first running mode, that is, the PC is not in any scenario with high performance requirement, so the PC can exit the first running mode and save the power consumption of the PC.

[0093] In some embodiments, when the PC includes three performance items or more, the PC is in the first operation mode and in response to one of the performance items switching from the first state to the second state, the PC detects the state of the remaining performance items. The PC remains in the first operation mode as long as the state of any of the performance items is in the first state. The PC exits the first operation mode only when the state of all of the performance items is in the second state. In this way, the PC can ensure that any of the performance items in the first state can meet the performance requirement, thereby improving the user experience of the PC.

[0094] In summary, the PC links the user usage scenario and the performance policy, and further judges the current performance policy when the user usage scenario changes, or further judges the current user usage scenario when the performance policy changes, so as to select the performance policy in the power plan to meet the performance requirement of the electronic device. Specifically, the PC, in response to a change in the user usage scenario, first judges whether the current user usage scenario is in a high performance requirement (for example, a game scenario), and in the case that the user usage scenario is not in the high performance requirement, further judges whether the current performance policy is in the high performance requirement (for example, the Hunter mode), so as to select the performance policy in the power plan to meet the performance requirement of the electronic device. Alternatively, the PC, in response to a change in the performance policy, first judges whether the current performance policy is in the high performance requirement (for example, the Hunter mode), and in the case that the performance policy is not in the high performance requirement, further judges whether the current user usage scenario is in the high performance requirement (for example, the game scenario), so as to select the performance policy in the power plan to meet the performance requirement of the electronic device.

[0095] Next, a performance policy management method when the user usage scenario changes is specifically introduced. Please refer to Figure 4 , Figure 4 FIG. 1 is a flowchart of a performance policy management method provided by an embodiment of the present application.

[0096] It can be understood that the user usage scenario is the first performance item and the performance policy is the second performance item.

[0097] As shown in Figure 4 , if the user usage scenario switches (S401), the PC, in response to the switching message of the user usage scenario, first judges whether the current user usage scenario is in the game scenario (S402). Specifically, the above-mentioned switching of the user usage scenario can mean that the PC switches from scenario 1 to scenario 2, and then the PC, in response to the switching message, judges whether scenario 2 is the game scenario. Taking scenario 1 as the office scenario and scenario 2 as the game scenario as an example, if the PC exits the office scenario and enters the game scenario, the PC, in response to the switching message, judges that scenario 2 is the game scenario. Wherein, the PC being in the office scenario can mean that the PC runs the office application.

[0098] If the PC is currently in the game scene, the PC issues a game scene policy (S403), and sets the high performance policy in the power plan (S404). Then, if the PC exits the game scene and enters other scenes (S405), such as closing the game application and opening the office application, the PC further judges the current performance policy.

[0099] It can be understood that the PC exits the game scene and enters other scenes, that is, the PC is in the first running mode (the high performance policy in the power plan), and the first performance item is switched from the first state to the second state. At this time, the PC further judges the current performance policy, that is, the PC detects whether the second performance item is in the first state.

[0100] If the PC is not currently in the game scene, the PC issues other scene policies (S406). For example, if the PC is in the office scene, the PC issues the office scene policy. Then, the PC judges the current performance policy.

[0101] The step of judging the current performance policy by the PC specifically includes that the PC judges whether the current is the Hunter mode (S407), and if the current is the Hunter mode, the PC keeps the high performance policy in the power plan (S408). Thus, the PC can guarantee that the high performance policy in the power plan is kept when the PC is not in the game scene but is in the Hunter mode, to meet the high performance requirement of the scene.

[0102] If the current is not the Hunter mode, the PC exits the high performance policy in the power plan (S409). Thus, the PC can guarantee that the high performance policy in the power plan is exited when the PC is not in the game scene and is not in the Hunter mode, to save the power consumption of the PC.

[0103] Please refer to Figure 5 , Figure 5 A schematic diagram of a performance policy management method for user scene switching provided by an embodiment of the present application. As shown in Figure 5 , the PC is in the game scene 501, and the high performance policy in the power plan is set. Then, the PC exits the game scene and enters the office scene. As shown in Figure 5 , the PC is in the note application interface 502, and it can be considered that the PC enters the office scene. At this time, the PC responds to the switching of the user scene from the game scene to the office scene, and detects whether the current performance policy is the Hunter mode. If the current is the Hunter mode, the PC keeps the high performance policy in the power plan. If the current is not the Hunter mode, the PC exits the high performance policy in the power plan.

[0104] Therefore, the PC can ensure that the high-performance strategy in the power plan is maintained when the user is not in a gaming scenario but in Hunter mode, thus meeting the high-performance requirements of Hunter mode.

[0105] Next, we will introduce in detail the performance policy management methods when performance policies change. Please refer to [link / reference needed]. Figure 6 , Figure 6 This is a flowchart illustrating a performance strategy management method provided in an embodiment of this application.

[0106] It is understandable that the performance strategy here is the first performance item, and the user scenario is the second performance item.

[0107] like Figure 6 As shown, if it's a performance strategy switch (S601), the PC, in response to the performance strategy switch message, first determines whether it is currently in Hunter mode (S602). Specifically, the aforementioned performance strategy switch can refer to the PC switching from power consumption strategy 1 to power consumption strategy 2. Then, in response to the switch message, the PC determines whether power consumption strategy 2 is Hunter mode. Taking power consumption strategy 1 as intelligent mode and power consumption strategy 2 as Hunter mode as an example, if the PC exits intelligent mode and enters Hunter mode, then the PC, in response to the switch message, determines that it is currently in Hunter mode.

[0108] If the PC is currently in Hunter mode, the PC issues a Hunter mode policy (S603) and sets the high-performance policy in the power plan (S604). Afterwards, if the PC exits Hunter mode and enters another mode (S605), such as exiting Hunter mode and selecting Smart mode, the PC will further assess the current user scenario.

[0109] Understandably, when the PC exits Hunter mode and enters another mode—that is, in the first operating mode (the high-performance strategy in the power plan)—the first performance item switches from its first state to its second state. At this point, the PC will further assess the current user scenario; that is, the PC will check whether the second performance item is in its first state.

[0110] If the PC is not currently in Hunter mode, then the PC issues other performance and power consumption (Smart Mode / High-Power Mode) policies (S606). For example, if the PC is in Smart Mode, then the PC issues a Smart Mode policy. Then, the PC will determine the current user scenario.

[0111] The step of judging the current user usage scenario by the PC includes judging whether the current scenario is a game scenario (S607). If the current scenario is a game scenario, the PC keeps the high performance strategy in the power plan (S608). Thus, the PC can keep the high performance strategy in the power plan when the user is not in the Hunter mode but in the game scenario, meeting the high performance requirement of the game scenario.

[0112] If the current scenario is not a game scenario, the PC exits the high performance strategy in the power plan (S609). Thus, the PC can exit the high performance strategy in the power plan when the user is not in the Hunter mode and not in the game scenario, saving the power consumption of the PC.

[0113] Referring to Figure 7 , Figure 7 FIG. 1 is a schematic diagram of a performance strategy management method according to an embodiment of the present application. As shown in (a) of FIG. 1, the PC sets the high performance strategy in the power plan in response to the user's selection of the Hunter mode corresponding control 702 in the user interface 701 of the PC Butler. At this time, the power level control 703 of the PC displays a full bar. During the use of the PC, as shown in (b) of FIG. 1, if the power level control 703 of the PC displays 15%, at this time, the PC exits the Hunter mode. Assuming that the PC enters the smart mode at this time, the user interface 701 of the PC Butler is as shown in (b) of FIG. 1. At this time, the PC detects whether the current user usage scenario is a game scenario in response to the switching of the performance strategy from the Hunter mode to the smart mode. In the above example, the first state of the user usage scenario includes only the game scenario. If the current scenario is a game scenario, the PC keeps the high performance strategy in the power plan. If the current scenario is not a game scenario, the PC exits the high performance strategy in the power plan. Figure 7 Figure 7 Thus, the PC can keep the high performance strategy in the power plan when the user is not in the Hunter mode but in the game scenario, meeting the high performance requirement of the game scenario. Figure 8

[0114] Thus, the PC can keep the high performance strategy in the power plan when the user is not in the Hunter mode but in the game scenario, meeting the high performance requirement of the game scenario.

[0115] ​​It's important to note that when a user is playing games on a PC, the OSTurbo module can recognize that the PC is in a game environment. In this case, the PC can automatically apply the high-performance power plan. However, if the user has already manually set the power plan to high performance before the OSTurbo module automatically applies the high-performance power plan, the OSTurbo module will not re-set the power plan. Specifically, "the OSTurbo module will not re-set the power plan" means that even after the user has manually set the power plan to high performance, if the OSTurbo module recognizes the PC as being in a game environment, it will not re-set the high-performance power plan; furthermore, exiting the game environment and exiting Hunter mode will not modify the power plan.

[0116] In this context, setting the power plan to a high-performance policy means that the PC responds to the user's selection of the corresponding control for the high-performance policy in the power plan settings interface and sets the power plan to a high-performance policy.

[0117] Furthermore, to address frame rate fluctuations, when the OSTurbo module detects a game scene exit, a preset timer is started from the exit moment. Within this preset time, the PC will continue to apply the high-performance strategies required by the game scene. The preset time can be 1 minute, 2 minutes, etc. The following example uses a preset time of 1 minute for illustration.

[0118] However, in some cases, some PCs maintain the high-performance power plan even when not in a gaming environment or not in Hunter mode, leading to increased power consumption. Furthermore, in most cases, the PC remains in the high-performance power plan after power-on. "Not in a gaming environment" includes one minute after the PC exits the game.

[0119] In the above scenario, some issues arise: If PC Manager restarts while the PC is in a gaming session or within one minute of exiting the game, and the high-performance power plan was set by the PC's OSTurbo module while the PC was in a gaming session, the power plan will remain set to high performance after PC Manager restarts and will be considered a user-defined setting. Furthermore, once the high-performance power plan is considered a user-defined setting, the PC's OSTurbo module will not modify this policy in subsequent use.

[0120] Therefore, since the PC's OSTurbo module will not modify this high-performance strategy in subsequent use, the PC Manager will maintain the high-performance strategy after restarting. If the PC is no longer in a game or Hunter mode at this time, it will lead to an increase in the PC's power consumption.

[0121] The PC housekeeper restarts can include PC housekeeper upgrade restarts and PC housekeeper restarts after PC shutdowns.

[0122] Thus, some embodiments can provide a performance policy management method, which can set a flag bit. If the high performance policy in the power plan is set by the OSTurbo module, the flag bit is set to 1. When the PC housekeeper restarts, the flag bit is checked. If the flag bit is 1, it indicates that the high performance policy at this time is set by the OSTurbo module when the PC housekeeper runs last time. Then, the flag bit can be reset, and the current performance policy is further judged to select the power plan policy to meet the performance requirements of the electronic device.

[0123] The flag bit is saved in the PC registry.

[0124] In the embodiment, the switching messages of multiple scenes can be received within one minute after the game scene exits. For example, within one minute after the game scene exits, the switching message of entering the office scene is received first, and then the switching message of entering the browser scene is received. After one minute after the game scene exits, the PC switches to the browser scene. The browser scene indicates that the PC runs the browser application.

[0125] That is, within one minute after the game scene exits, if the switching messages of multiple scenes are received, the PC will finally switch to the scene according to the switching message of the last received scene at the end of one minute.

[0126] Please refer to Figure 8 , Figure 8 A flowchart of a performance policy management method provided by the embodiment of the application is shown in FIG. 8. As shown in FIG. 8, the specific steps include steps S801-S806. Figure 9

[0127] S801: The PC enters the first running mode in response to a performance item switching from a second state to a first state.

[0128] For example, the PC enters the high performance policy of the power plan in response to the user switching the scene from the desktop to the game scene.

[0129] S802: The PC sets the preset flag bit to a first value.

[0130] ​The flag is the first value, indicating that the PC enters the first running mode due to the performance item. For example, the first value of the flag can be 1. In the above example, the flag is 1, indicating that the PC enters the high performance strategy due to the user using the game scene of the scene, that is, the high performance strategy in the power plan is set by the OSTurbo module identifying the game scene.

[0131] S803: In the case that the PC is in the first running mode, the PC is in the first running mode and acquires the flag in response to the burst event.

[0132] The burst event here refers to PC manager upgrade restart or PC restart. Among them, the PC manager can also restart after the PC restarts. In the case that the PC is in the first running mode, the PC acquires the flag in response to PC restart or PC manager upgrade restart. If the PC is still in the first running mode, the PC acquires the flag.

[0133] For example, the PC is in the high performance strategy in the power plan and responds to the PC restart. At this time, the PC is still in the high performance strategy in the power plan. Then, the PC will acquire the flag stored in the PC.

[0134] S804: In the case that the flag is the first value, the PC detects whether the states of at least two performance items are both the second state.

[0135] If the flag acquired by the PC is 1, the PC will detect whether the states of the user scene and the performance strategy are both the second state. Specifically, the PC detects whether the user scene is a desktop, and the PC detects whether the performance strategy is a high performance mode or an intelligent mode.

[0136] It can be understood that here only the second state of the user scene is taken as an example of the desktop, and in fact, the second state of the user scene includes multiple scenes. If the PC detects that the user scene is any one of the above multiple scenes, then the user scene is in the second state at this time.

[0137] Among them, the above takes the PC including two performance items of the user scene and the performance strategy as an example. If the PC includes more performance items, the PC will detect whether all performance items are in the second state.

[0138] If the PC detects that all performance items are in the second state, step S805 is executed. If the PC detects that at least one performance item is in the first state, step S806 is executed.

[0139] In some embodiments, if the PC obtains the flag bit as 1, the PC sets the flag bit as 0. That is, after the emergency event, if the PC obtains the flag bit as 1, it can be considered that the high performance strategy in the power plan set at this time is the one set before the emergency event. For example, after the PC restarts, if the PC obtains the flag bit as 1, it can be considered that the high performance strategy in the power plan set at this time is the one set by the OSTurbo module in the PC before the PC restarts. Here, the flag bit is 0, which means the flag bit is set as the second value.

[0140] Then, the PC needs to exit the high performance strategy in the power plan at this time. Therefore, the PC sets the flag bit as 0. Wherein, the flag bit is 0, which means the PC switches from the high performance strategy in the power plan to other strategies in the power plan.

[0141] In other embodiments, after the PC obtains the flag bit as the first value, the PC directly detects the state of the performance item. In the case that all performance items in the PC are in the second state, the PC switches from the first running mode to the second running mode, and then the PC sets the flag bit as the third value, for example, the third value can be 2, which means the PC exits the first running mode and switches to the second running mode.

[0142] In some embodiments, the second value of the flag bit can be the same as the third value, for example, the first value and the second value are both 0.

[0143] S805: The PC switches from the first running mode to the second running mode.

[0144] For example, the PC detects that the user usage scenario is desktop, and the performance strategy is intelligent mode or high energy mode, then the PC exits the high performance strategy in the power plan and switches from the high performance strategy to other strategies in the power plan.

[0145] S806: The PC keeps the first running mode.

[0146] For example, the PC detects that the user usage scenario is a game scenario, and / or the PC detects that the performance strategy is Hunter mode, then the PC keeps the high performance strategy in the power plan.

[0147] In some embodiments, if the PC keeps the first running mode at this time, the PC can set the flag bit as 1 again. Then, in the subsequent PC use process, if the emergency event occurs again, the first running mode can be judged whether it is set before the emergency event by detecting the flag bit.

[0148] Therefore, this application embodiment can determine the power plan strategy by setting a flag bit to determine whether it is a high-performance strategy set by the PC itself, and then associate the user scenario with the performance strategy to meet the performance requirements of the electronic device.

[0149] Please see Figure 9 , Figure 9 This is a flowchart illustrating a performance strategy management method provided in an embodiment of this application. Figure 10 As shown, if the user scene is switched (S901), the PC responds to the user scene switching message by first determining whether it is currently in a game scene (S902).

[0150] If the PC is currently in a game scene, it issues a game scene policy and sets the high-performance policy in the power plan (S903). Then, the PC sets a flag to 1 in the registry (S904), i.e., Flag = 1. The game scene can be exited at any time, so the PC determines whether the exit was normal (S905).

[0151] If the game scenario exits normally, such as when the PC closes the game application in response to the user's action, the user scenario changes, and the PC performs a new round of judgment. That is, the PC determines whether it is currently in a game scenario (S902). After detecting that it is no longer in a game scenario, the PC checks the performance policy to determine whether to maintain the high-performance policy in the power plan. Specifically, the PC checks whether it is currently in Hunter mode (S908). If so, the PC maintains the high-performance policy in the power plan (S909); otherwise, the PC exits the high-performance policy in the power plan (S910).

[0152] If the game scene does not exit normally—for example, if the game scene exits due to a PC shutdown and restart, or due to a PC Manager update—then PC Manager will restart and initialize the OSTurbo module. After initialization, the OSTurbo module will check if the flag bit is 1. If the PC detects that the flag bit is 1 (Flag == 1) (S906), it means that the high-performance policy in the current power plan was set by the OSTurbo module when PC Manager was running before the restart. In this case, the PC needs to exit the high-performance policy in the power plan and then set the flag bit to 0 (S907).

[0153] Then, the PC determines whether it is currently in Hunter mode (S908). If it is, the PC maintains the high-performance strategy in the power plan (S909). If it is not, the PC exits the high-performance strategy in the power plan (S910).

[0154] If the PC detects that the PC is not currently in the game scene in response to the user using the scene switching message, the PC issues other scene policies. Then, the PC determines whether the current is the Hunter mode, and if the current is the Hunter mode, the PC keeps the high performance policy in the power plan. If the current is not the Hunter mode, the PC exits the high performance policy in the power plan.

[0155] It can be understood that the PC sets the flag bit to 1 after keeping the high performance policy in the power plan. The flag bit herein and the flag bit detected after the initialization of the OSTurbo module can be set in different programs. After the initialization of the OSTurbo module, if the flag bit is detected to be 1, the flag bit needs to be set to 0, which is to clear the high performance policy in the power plan, which is the information set by the PC manager before the restart of the OSTurbo module.

[0156] Therefore, the PC can determine whether the high performance policy is set by the PC itself through the value of the flag bit. If the manager restarts and detects that the flag bit is 1, it indicates that the high performance policy is set before the restart of the manager. At this time, the high performance policy needs to be exited, and before the exit, the user using the scene and the performance policy are associated to determine whether the high performance policy in the power plan is exited or kept, so as to meet the performance requirement of the PC.

[0157] Please refer to Figure 10 , Figure 10 A flowchart of a performance policy management method provided by the embodiment of the present application is shown in FIG. 1. As shown in FIG. 1, if the performance policy is switched (S1001), the PC responds to the switching message of the performance policy, and first determines whether the current is in the Hunter mode (S1002). Figure 11

[0158] If the current is in the Hunter mode, the PC issues the Hunter mode policy and sets the high performance policy in the power plan (S1003). Then, the PC sets the flag bit to 1 in the registry (S1004), that is, Flag=1. In the subsequent PC using process, the Hunter mode can be exited, and then the PC determines whether the Hunter mode is normally exited (S1005).

[0159] ​If the Hunter mode is normally exited, for example, the PC automatically exits the Hunter mode when the power is too low, at this time, the performance policy is switched, and the PC performs a new round of judgment. That is, the PC judges whether the current is in the Hunter mode (S1002). After the PC detects that the current is not in the Hunter mode, the user usage scenario is detected again, and it is judged whether the high performance policy in the power plan is maintained. Specifically, the PC detects whether the current is a game (S1008), if yes, the PC maintains the high performance policy in the power plan (S1009), and if no, the PC exits the high performance policy in the power plan (S1010).

[0160] If the Hunter mode is not normally exited, for example, the PC is restarted to cause the Hunter mode to exit, or the PC caretaker is upgraded to cause the Hunter mode to exit, at this time, the PC caretaker is restarted, and the OSTurbo module is initialized. After the OSTurbo module is initialized, it is detected whether the flag bit is 1. If the PC detects that the flag bit is 1 (Flag==1) (S1006), it indicates that the high performance policy in the current power plan is set by the PC caretaker before the OSTurbo module is restarted. That is, the flag bit being 1 can indicate that the PC enters the high performance policy due to the Hunter mode in the performance policy before the restart.

[0161] At this time, the PC needs to exit the high performance policy in the power plan, and the flag bit is set to 0 (S1007).

[0162] Then, the PC judges whether the current is a game scenario (S1008), if the current is a game scenario, the PC maintains the high performance policy in the power plan (S1009). If the current is not a game scenario, the PC exits the high performance policy in the power plan (S1010).

[0163] If the PC detects that the current is not in the Hunter mode in response to the switching message of the performance policy, the PC issues the intelligent mode policy or the high energy mode policy. Then, the PC judges whether the current is a game scenario, if the current is a game scenario, the PC maintains the high performance policy in the power plan. If the current is not a game scenario, the PC exits the high performance policy in the power plan.

[0164] Therefore, the PC can set the value of the flag bit to judge whether the high performance policy is set by the PC itself through the flag bit. If the caretaker restarts and detects that the flag bit is 1, it indicates that the high performance policy is set before the caretaker restarts. At this time, the high performance policy needs to be exited, and before the exit, the user usage scenario and the performance policy are associated to judge whether the high performance policy in the power plan is exited or maintained, so as to meet the performance demand of the PC.

[0165] Exemplarily, Figure 11 A structural schematic diagram of an electronic device 1100 is provided in an embodiment of the present application. As shown in the figure, Figure 11 The electronic device 1100 can include a processor 1110, an internal memory 1120, a universal serial bus (USB) interface 1130, a power supply interface 1131, a charging management module 1140, a power supply management module 1141, a battery 1142, a wireless communication module 1150, a display screen 1160, a fan, and the like.

[0166] It can be understood that the structure shown in the embodiment does not constitute a specific limitation on the electronic device 1100. In other embodiments, the electronic device 1100 can include more or fewer components than shown, or combine certain components, or split certain components, or different arrangement of components. The components shown can be implemented in hardware, software, or a combination of software and hardware.

[0167] The processor 1110 can include one or more processing units, for example: the processor 1110 can include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units can be independent devices, or can be integrated in one or more processors.

[0168] The controller can be the nerve center and command center of the electronic device 1100. The controller can generate operation control signals according to instruction operation codes and timing signals, and complete the control of fetching and executing instructions.

[0169] The memory in the processor 1110 can also be provided for storing instructions and data. In some embodiments, the memory in the processor 1110 is a cache memory. The memory can save instructions or data that have just been used or are repeatedly used by the processor 1110. If the processor 1110 needs to use the instructions or data again, it can be directly called from the memory. This avoids repeated access and reduces the waiting time of the processor 1110, thereby improving the efficiency of the system.

[0170] In some embodiments, the processor 1110 can include one or more interfaces. The interfaces can include an I2C interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a USB interface, etc.

[0171] It can be understood that the interface connection relationship between the modules shown in the embodiments is only illustrative and does not constitute a structural limitation of the electronic device 1100. In other embodiments, the electronic device 1100 can also use different interface connection manners or combinations of multiple interface connection manners in the above embodiments.

[0172] The internal memory 1120 can be used to store computer executable program codes including instructions. The processor 1110 executes various function applications and data processing of the electronic device 1100 by running the instructions stored in the internal memory 1120. For example, in the embodiments of the present application, the processor 1110 can execute the instructions stored in the internal memory 1120, and the internal memory 1120 can include a storage program area and a storage data area.

[0173] The storage program area can store an operating system, at least one application program required by a function (such as a sound playing function, an image playing function, etc.), etc. The storage data area can store data created during use of the electronic device 1100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 1120 can include a high-speed random access memory and can also include a non-volatile memory such as at least one magnetic disk storage device, a flash memory device, a universal flash storage (UFS), etc.

[0174] The USB interface 1130 can be used for transmitting data between the electronic device 1100 and a peripheral device.

[0175] The charging management module 1140 is configured to receive charging input from a charger. The charger can access the charging management module 1140 through the power interface 1131. The charging management module 1140 can charge the battery 1142 and supply power to the electronic device through the power management module 1141.

[0176] The power management module 1141 is configured to connect the battery 1142, the charging management module 1140, and the processor 1110. The power management module 1141 receives input from the battery 1142 and / or the charging management module 1140, and supplies power to the processor 1110, the internal memory 1120, the external memory, the display screen 1160, and the wireless communication module 1150. In some embodiments, the power management module 1141 and the charging management module 1140 can be disposed in the same device.

[0177] The wireless communication module 1150 can provide a solution for wireless communication, such as WLAN (e.g., Wi-Fi), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), and the like, which are applied to the electronic device 1100. For example, in an embodiment of the present application, the electronic device 1100 can establish a Bluetooth connection with another device through the wireless communication module 1150.

[0178] The wireless communication module 1150 can be one or more devices that integrate at least one communication processing module. The wireless communication module 1150 receives electromagnetic waves via an antenna, performs frequency modulation and filtering processing on the electromagnetic wave signals, and transmits the processed signals to the processor 1110. The wireless communication module 1150 can also receive signals to be transmitted from the processor 1110, perform frequency modulation, amplification, and convert the signals to electromagnetic wave radiation via an antenna.

[0179] The display screen 1160 is configured to display images, videos, and the like, and the display screen 1160 includes a display panel. The electronic device 1100 implements a display function through a GPU, the display screen 1160, and an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display screen 1160 and the application processor. The GPU is configured to perform mathematical and geometric calculations for graphics rendering. The processor 1110 can include one or more GPUs that execute program instructions to generate or change display information.

[0180] In an embodiment of the present application, the display screen 1160 can be used to display a user interface of the PC Manager application.

[0181] The performance policy management method in the above embodiments can be implemented in the electronic device 1100 with the hardware structure described above.

[0182] Some embodiments of the present disclosure provide an electronic device (e.g., a notebook computer). The electronic device can include a display screen, a memory, one or more processors, and computer instructions stored in the memory. The display screen, the memory, and the processor are coupled. When the processor executes the computer instructions, the electronic device can perform each function or step performed by the notebook computer in the above method embodiments. The structure of the electronic device can refer to the structure of the electronic device 1100 shown in Figure 12 FIG. 1.

[0183] Figure 12 FIG. 1 is a software structure block diagram of the electronic device 1100 of the embodiments of the present disclosure.

[0184] The layered architecture divides software into several layers, each of which has a clear role and division of labor. Layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into five layers, from top to bottom, the application layer (application layer), the application framework layer, the Android runtime (ART) and the native C / C++ library, the hardware abstraction layer (Hardware Abstract Layer, HAL), and the kernel layer.

[0185] The application layer can include a series of application packages. The application packages can include camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc.

[0186] As shown in Figure 12 , the application package can include a PC manager application.

[0187] The application framework layer provides application programming interfaces (application programming interface, API) and programming frameworks for the applications of the application layer. The application framework layer includes some pre-defined functions.

[0188] As shown in Figure 13 , the application framework layer can include a window manager, a content provider, a view system, a resource manager, a notification manager, an activity manager, an input manager, etc.

[0189] The content provider is used to store and obtain data, and makes the data accessible to the applications. The data can include video, image, audio, dialed and received calls, browsing history and bookmarks, phonebook, etc.

[0190] The activity manager can provide an activity manager service (AMS), which can be used for the startup, switching, scheduling of system components (e.g., activities, services, content providers, broadcast receivers), and the management and scheduling of application processes.

[0191] The input manager can provide an input manager service (IMS), which can be used for managing the input of the system, such as touch screen input, key input, sensor input, and the like. The IMS takes events from input device nodes and distributes the events to appropriate windows through interaction with the WMS.

[0192] The Android runtime includes a core library and an Android runtime. The Android runtime is responsible for converting source code into machine code. The Android runtime mainly includes an ahead of time (AOT) compilation technique and a just in time (JIT) compilation technique.

[0193] The core library is mainly used to provide the functions of a basic Java class library, such as basic data structures, mathematics, IO, tools, databases, network libraries, and the like. The core library provides APIs for users to develop Android applications.

[0194] The native C / C++ library can include a plurality of functional modules. For example: a surface manager, a media framework, libc, OpenGL ES, SQLite, Webkit, and the like.

[0195] The surface manager is used to manage the display subsystem and provides fusion of 2D and 3D layers for a plurality of applications. The media framework supports playback and recording of a plurality of commonly used audio, video formats, and static image files, and the like. The media library can support a plurality of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, and the like. The OpenGL ES provides drawing and operation of 2D graphics and 3D graphics in an application. The SQLite provides a lightweight relational database for applications of the electronic device 100.

[0196] The hardware abstraction layer runs in a user space, encapsulates kernel layer drivers, and provides a calling interface to an upper layer. The hardware abstraction layer can include a display module.

[0197] The kernel layer is a layer between hardware and software. The kernel layer can include a display driver.

[0198] Embodiments of the present application also provide a chip system, such as​ As shown in FIG. 13, the chip system 1300 includes at least one processor 1301 and at least one interface circuit 1302. The processor 1301 and the interface circuit 1302 can be interconnected by a line. For example, the interface circuit 1302 can be used to receive a signal from another device (e.g., a memory of an electronic device). For another example, the interface circuit 1302 can be used to send a signal to another device (e.g., the processor 1301). Illustratively, the interface circuit 1302 can read an instruction stored in a memory and send the instruction to the processor 1301. When the instruction is executed by the processor 1301, the electronic device can perform various steps in the above-described embodiments. Of course, the chip system can also include other discrete devices, which are not limited in the embodiments of the present application.

[0199] The embodiments of the present application further provide a computer storage medium, which includes computer instructions, when the computer instructions are run on the above-described electronic device, the electronic device performs various functions or steps performed by the PC in the above-described method embodiments.

[0200] The embodiments of the present application further provide a computer program product, when the computer program product is run on a computer, the computer performs various functions or steps performed by the mobile phone in the above-described method embodiments.

[0201] Through the above description of the embodiments, those skilled in the art can clearly understand that, for the convenience and brevity of description, only the above-described division of the functional modules is taken as an example for illustration, and in actual application, the above-described functions can be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the above-described functions.

[0202] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented by other ways. For example, the device embodiments described above are only illustrative, for example, the division of the modules or units is only a logical function division, and actual implementation can have another division manner, for example, a plurality of units or components can be combined or integrated into another device, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the displayed or discussed ones can be indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0203] The units described as separate components may or may not be physically separate, and the components displayed as units may be a physical unit or multiple physical units, that is, may be located in one place, or also can be distributed to multiple different places. Part or all of the units can be selected according to actual needs to achieve the purpose of the embodiment scheme.

[0204] In addition, each functional unit in each embodiment of the present application can be integrated in one processing unit, or each unit can be physically present alone, or two or more units can be integrated in one unit. The integrated unit can be realized in the form of hardware or in the form of a software functional unit.

[0205] The integrated unit, if realized in the form of a software functional unit and sold or used as an independent product, can be stored in a readable storage medium. Based on such understanding, the technical scheme of the embodiments of the present application essentially or the part that contributes to the prior art or the whole or part of the technical scheme can be embodied in the form of a software product. The software product is stored in a storage medium, including a plurality of instructions for causing an apparatus (which can be a single-chip microcomputer, a chip, etc.) or a processor to execute all or part of the steps of the method described in each embodiment of the present application. The foregoing storage medium includes: a U disk, a mobile hard disk, a read only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and various program code storage media.

[0206] The above is only a specific embodiment of the present application, but the protection scope of the present application is not limited thereto. Any change or replacement within the technical scope disclosed in the present application should be covered in the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

Claims

1. A performance strategy management method, characterized in that, The method is applied to an electronic device, which includes a first operating mode and a second operating mode, wherein the processing performance of the first operating mode is superior to that of the second operating mode; the electronic device also includes at least two performance items, which include a first performance item and a second performance item, each performance item including a first state and a second state, wherein when the performance item is in the first state, the electronic device is in the first operating mode, and when the performance item is in the second state, the electronic device is in the second operating mode; the operating mode of the electronic device is dynamically associated with the state of the at least two performance items; The electronic device also includes a management application for adjusting the state of the performance strategy. The method includes: In response to a performance item switching from a second state to a first state, the electronic device enters a first operating mode, and sets a preset flag bit to a first value; the flag bit being the first value indicates that the electronic device entered the first operating mode due to the performance item; when the electronic device is in the first operating mode, in response to a sudden event, the electronic device remains in the first operating mode and acquires the flag bit; the sudden event includes the electronic device restarting or the management application restarting; when the flag bit is the first value, the electronic device detects the state of at least two performance items; when at least two performance items are in the second state, the electronic device switches from the first operating mode to the second operating mode; The electronic device, in the first operating mode, responds to the first performance item switching from a first state to a second state by detecting the state of the second performance item; If the second performance item is detected to be in the second state, the electronic device switches to the second operating mode; If the second performance item is detected to be in the first state, the electronic device maintains the first operating mode.

2. The method according to claim 1, characterized in that, After the electronic device maintains the first operating mode when the second performance item is detected to be in the first state, the method further includes: If the second performance item is detected to be in the second state, the electronic device switches to the second operating mode.

3. The method according to claim 1 or 2, characterized in that, The first performance item is a user scenario, and the second performance item is a performance strategy. The first state of the user scenario includes a game scenario, and the second state of the user scenario includes an office scenario. The first state of the performance strategy includes a first performance mode, and the second state of the performance strategy includes a second performance mode. The electronic device performs better in the first performance mode than in the second performance mode. Alternatively, the first performance item may be the performance strategy, and the second performance item may be the user usage scenario.

4. The method according to claim 1, characterized in that, Before the electronic device detects the status of the at least two performance items, it also includes: When the flag bit is at a first value, the electronic device sets the flag bit to a second value; the flag bit being at a second value indicates that the flag bit is reset.

5. The method according to claim 4, characterized in that, When the flag bit is a first value, after the electronic device sets the flag bit to a second value, it further includes: When at least one of the performance items is in a first state, the electronic device maintains the first operating mode.

6. The method according to claim 5, characterized in that, When at least one performance item is in a first state, after the electronic device maintains the first operating mode, it further includes: The electronic device sets the flag bit to a first value.

7. The method according to claim 1, characterized in that, When at least two performance items are in the second state, after the electronic device switches from the first operating mode to the second operating mode, it further includes: The electronic device sets the flag bit to a third value; the flag bit being a third value indicates that the electronic device switches from the first operating mode to the second operating mode.

8. An electronic device, characterized in that, The electronic device includes: a display screen, a memory, and one or more processors; the display screen, the memory, and the processors are coupled; the memory is used to store computer program code, the computer program code including computer instructions, which, when executed by the electronic device, cause the electronic device to perform the method as described in any one of claims 1-7.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores instructions that, when executed in an electronic device, cause the electronic device to perform the method as described in any one of claims 1-7.

10. A computer program product, characterized in that, The computer program product includes instructions that, when executed in an electronic device, cause the electronic device to perform the method as described in any one of claims 1-7.

Citation Information

Patent Citations

  • Resource scheduling method and electronic equipment

    CN116027880A