Compatible notebook computer CPU power management method, system, medium and program product

By identifying the low-power state differences between laptop CPU and desktop motherboard, generating motherboard update packages and installing advanced power management tools, the compatibility issues between laptop CPU and desktop motherboard in power management is solved, achieving more efficient power management and energy consumption reduction.

CN118625915BActive Publication Date: 2025-04-22SHENZHEN GUOSHUOHONG ELECTRONICS CO LTD

Patent Information

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

AI Technical Summary

Technical Problem

The laptop CPU and desktop motherboard have compatibility issues in power management, resulting in low power conversion efficiency and increased energy consumption.

Method used

By determining the low-power state supported by the notebook CPU and the low-power state currently supported by the motherboard, generate motherboard update packages to make up for insufficient power management capabilities, and install advanced power management tools and drivers in the operating system to achieve dynamic power management strategy adjustments.

Benefits of technology

It realizes accurate power management of the overall desktop computer, reduces overall energy consumption, and improves power conversion efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118625915B_ABST
    Figure CN118625915B_ABST
Patent Text Reader

Abstract

A method, system, medium and program product for CPU power management compatible with a laptop computer, in which the low power consumption state supported by the laptop CPU and the low power consumption state currently supported by the motherboard are determined; the low power consumption state and the low power consumption state of the motherboard are compared to obtain the underpowered state of the motherboard; a motherboard update package is generated according to the underpowered state, and the motherboard update package is applied to the motherboard, the motherboard update package includes a basic input and output system update package and a unified extensible firmware interface update package; an advanced power management tool and driver are generated, the advanced power management tool and driver can monitor system operation and dynamically adjust power management strategies; the advanced power management tool and driver are installed into the operating system. The present application accurately manages the power of the desktop as a whole according to the power consumption characteristics of the laptop CPU, thereby reducing the overall energy consumption of the desktop.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of power management, and in particular, relates to a method, system, medium and program product for power management of a CPU compatible with a notebook computer. Background Art

[0002] With the rapid development of computer technology, the performance and integration of CPUs are constantly improving. The traditional desktop computer motherboard design is mainly based on desktop CPUs, while laptop CPUs have higher advantages in certain application scenarios due to their unique low power consumption, high integration and miniaturization design. However, due to the differences between laptop CPUs and desktop computer motherboards in terms of interface, power management, heat dissipation, etc., there are technical difficulties in directly applying laptop CPUs to desktop computer motherboards.

[0003] In terms of power management, there is a problem of low power conversion efficiency. First, the power design is improper and cannot meet the current system requirements; second, the components are incompatible. There may be incompatibility between the notebook CPU and the desktop motherboard and PSU, resulting in reduced power conversion efficiency. In related technologies, you can use a high-efficiency power management module, replace the VRM module of the motherboard, choose a model with a high conversion rate, and choose an efficient power supply to improve the overall power conversion efficiency.

[0004] However, there may be compatibility issues between notebook CPUs and desktop motherboards in terms of dynamic power management (such as adjusting voltage and frequency). Notebook CPUs may support more low-power states (C-States, P-States), while desktop motherboards may not fully implement these states. When a notebook CPU is installed on a desktop motherboard, it may be difficult to perform accurate power management based on the power consumption characteristics of the notebook CPU, resulting in an increase in the overall energy consumption of the desktop computer. Summary of the invention

[0005] The present application provides a method, system, medium and program product for power management of a CPU compatible with a laptop computer, which is used to accurately manage the power of a desktop computer as a whole according to the power consumption characteristics of the laptop CPU, thereby reducing the overall energy consumption of the desktop computer.

[0006] In a first aspect, the present application provides a method for CPU power management compatible with a laptop computer, which determines the low power consumption state supported by the laptop CPU and the motherboard low power consumption state currently supported by the motherboard;

[0007] Compare the low power consumption state with the mainboard low power consumption state to obtain the mainboard low power consumption state;

[0008] generating a mainboard update package according to the underpower state, and applying the mainboard update package to the mainboard, the mainboard update package including a basic input and output system update package and a unified extensible firmware interface update package;

[0009] Generate advanced power management tools and drivers that can monitor system operation and dynamically adjust power management strategies;

[0010] Installs advanced power management tools and drivers into the operating system.

[0011] By adopting the above technical solution, the low power consumption state supported by the CPU and the low power consumption state currently supported by the motherboard are determined and compared, so as to accurately locate the deficiencies of the motherboard in power management function. On this basis, by generating a motherboard update package and applying it to the motherboard, the insufficient power management capability of the motherboard at the basic input and output system (BIOS) and unified extensible firmware interface (UEFI) level can be made up to match the power management capability of the CPU. At the same time, by generating advanced power management tools and drivers and installing them in the operating system, real-time monitoring of system operation and dynamic power management strategy adjustment can be achieved at the software level. The overall power management of the desktop is accurately performed according to the power consumption characteristics of the notebook CPU, reducing the overall energy consumption of the desktop.

[0012] In combination with some embodiments of the first aspect, in some embodiments, comparing the low power consumption state with the low power consumption state of the mainboard to obtain the low power consumption state of the mainboard specifically includes:

[0013] Determine the CPU energy-saving state group, CPU performance state group and the mainboard energy-saving state group, mainboard performance state group corresponding to the low power consumption state and the mainboard low power consumption state respectively;

[0014] Compare the CPU energy-saving status group and the motherboard energy-saving status group one by one;

[0015] If the CPU energy-saving state group is not a subset of the mainboard energy-saving state group or the parameters corresponding to the CPU energy-saving state group and the mainboard energy-saving state group are different, the CPU energy-saving state that is not in the mainboard energy-saving state group or the parameters are different is determined as a state lacking energy-saving power consumption;

[0016] Compare the CPU performance status group and the motherboard performance status group one by one;

[0017] If the CPU performance state group is not a subset of the motherboard performance state group or the parameters corresponding to the CPU performance state group and the motherboard performance state group are different, then the CPU performance state that is not in the motherboard performance state group or the parameters are different is determined as a lack of performance power consumption state;

[0018] The lack of energy-saving power consumption state and the lack of performance power consumption state are combined into a lack of power consumption state, and the lack of power consumption state represents a collection of the lack of energy-saving power consumption state and the lack of performance power consumption state.

[0019] By adopting the above technical solution, the low power state is subdivided into two dimensions: energy-saving state and performance state, which can comprehensively evaluate the power management capabilities of the CPU and motherboard in different working modes. At the same time, a parameter comparison method is introduced, which is not limited to the comparison of the presence or absence of the state, but pays more attention to whether the corresponding parameters behind the state match. This refined comparison method can discover more hidden incompatibility issues. For example, even if the motherboard supports a certain low power state, if its parameter settings do not meet the CPU requirements, the power management strategy will fail. By comparing the differences between the CPU and motherboard in the energy-saving and performance state groups one by one, all possible power consumption state omissions can be determined, and finally integrated into a complete set of missing power consumption states by taking the union method, which is convenient for subsequent targeted adjustments.

[0020] In combination with some embodiments of the first aspect, in some embodiments, generating a mainboard update package according to the low power consumption state and applying the mainboard update package to the mainboard specifically includes:

[0021] Determine the current module and current function corresponding to power management according to the current BIOS / UEFI code of the motherboard;

[0022] Obtain the target module and the target function according to the low power consumption state, the current module and the current function;

[0023] Writing the target module and the target function into the BIOS / UEFI code to obtain the target code;

[0024] Debug and compile the target code according to the power consumption deficiency state to obtain the mainboard update package;

[0025] Apply the motherboard update package to the motherboard.

[0026] By adopting the above technical solution, a direct correspondence between the CPU low power state and the motherboard missing state is established using the state mapping table. The modification point can be quickly located through the existing power management modules and functions in the firmware code, and the missing target code can be automatically generated on this basis. This generation method can ensure that the newly added power management function is seamless with the original system at the code level, avoiding compatibility issues caused by style differences. After debugging and compiling the motherboard update package according to the missing power state, it can be applied with one click, making the entire power state completion process simple and reliable.

[0027] In combination with some embodiments of the first aspect, in some embodiments, obtaining a target module and a target function according to a low power consumption state, a current module, and a current function specifically includes:

[0028] Establishing a corresponding relationship between the low power consumption state and the mainboard low power consumption state, and obtaining a state mapping table;

[0029] Traverse the state mapping table to obtain the power consumption state that is lacking in comparison;

[0030] When it is determined that the compared underpower consumption state is the same as the underpower consumption state, searching for a basic function corresponding to the underpower consumption state in the current module;

[0031] When it is determined that a basic function exists, the objective function is created using the basic function as a template;

[0032] When it is determined that there is no base function, creating a target function with the functions and parameters of the low power state;

[0033] Add the target function to the current module to get the target module.

[0034] By adopting the above technical solution, through the state mapping table, it is possible to find out whether there is already a basic function related to the lack of power consumption state in the current module. This method of reuse and transformation based on existing code can minimize the impact on the original architecture of the firmware and reduce the difficulty and risk of integrating new functions. If there is a suitable basic function, just use it as a template to create the target function. If there is no ready-made template, it can be built from scratch according to the functional and parameter requirements of the lack state. For different types of lack states, differentiated code generation strategies can be adopted to improve development efficiency while ensuring the simplicity of the code. By adding the newly created target function to the current module, the seamless expansion of power consumption management can be completed. The whole process is highly automated, the focus of the change points is clear, and the code consistency is effectively guaranteed, which can significantly improve the success rate of the motherboard power management update.

[0035] In combination with some embodiments of the first aspect, in some embodiments, after the target code is debugged and compiled according to the low power consumption state to obtain the mainboard update package, the method further includes:

[0036] Generate an accompanying instruction document for the motherboard update package and add the accompanying instruction document to the motherboard update package, wherein the accompanying instruction document includes detailed update content and installation steps;

[0037] Sign and encrypt the motherboard update package.

[0038] By adopting the above technical solution, an accompanying instruction document is generated and packaged into the update package. The instruction document elaborates on the content of this update, including the newly added or modified power management functions, parameters, etc., as well as the complete installation steps. This approach allows end users to clearly understand the purpose and significance of the update, reduce the risk of blind operation, and ensure the standardization of the update process. Secondly, signing and encrypting the update package can ensure that the source of the update package is credible and prevent tampering. By providing complete usage guidance and sufficient security protection, the motherboard update package has been comprehensively improved in terms of ease of use, reliability, and security.

[0039] In conjunction with some embodiments of the first aspect, in some embodiments, generating an advanced power management tool and a driver specifically includes:

[0040] Use the preset development tools to generate the overall architecture of the advanced power management tool and driver, which includes the user interface, monitoring module, control module and data storage;

[0041] Establish a communication interface with the mainboard after the mainboard update package is applied, and read the current power management parameters;

[0042] The current power management parameters are adjusted according to the current power management parameters and the preset power management strategy to obtain the advanced power management tool and driver.

[0043] By adopting the above technical solutions, through advanced power management tools and drivers, the system load can be monitored in real time, and according to the preset optimization strategy, an intelligent balance can be made between performance and power consumption, thereby achieving more fine-grained power management. The architecture of the tool and driver adopts a modular design, which includes multiple functional units such as user interaction, data acquisition, policy control, and data storage, with clear division of labor and flexible and scalable. It fully considers the user's usage needs and provides a friendly user interface. Users can intuitively view the current power management status and adjust relevant parameters according to their preferences. In addition, the generation of advanced power management tools and drivers also makes full use of the new features of the updated motherboard. By establishing a communication interface with the motherboard, more comprehensive and accurate power management parameters can be read, providing data support for policy optimization.

[0044] In conjunction with some embodiments of the first aspect, in some embodiments, after using a preset development tool to generate an overall architecture of an advanced power management tool and a driver, the method further includes:

[0045] Set the user interface to a preset style, which includes system operation status and power management parameters;

[0046] Generate a parameter setting control corresponding to the parameter setting function, and display the parameter setting interface when the parameter setting control is triggered.

[0047] By adopting the above technical solution, the user interface is set to a preset style, and a clear display of the system operation status and power management parameters is provided, so that users can immediately understand the working status of the computer and judge whether the current power management strategy is reasonable. At the same time, the interface also provides a convenient parameter setting function. Users only need to click the corresponding setting control to open the parameter setting interface and make personalized adjustments to the power management strategy according to their actual needs and preferences, such as adjusting the screen brightness, CPU main frequency, sleep time, etc. It can effectively promote the interaction between users and the power management system.

[0048] In a second aspect, an embodiment of the present application provides a CPU power management system compatible with a laptop computer, the system comprising: one or more processors and a memory; the memory is coupled to the one or more processors, the memory is used to store computer program code, the computer program code includes computer instructions, and one or more processors call the computer instructions to enable the system to execute the method described in the first aspect and any possible implementation method of the first aspect.

[0049] In a third aspect, an embodiment of the present application provides a computer-readable storage medium, comprising instructions, which, when executed on a system, causes the system to execute the method described in the first aspect and any possible implementation of the first aspect.

[0050] In a fourth aspect, an embodiment of the present application provides a computer program product, characterized in that when the computer program product runs on a system, the system executes the method described in any possible implementation manner in the first aspect.

[0051] One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:

[0052] 1. This application provides a CPU power management method compatible with a laptop computer, which determines the low power consumption state supported by the CPU and the low power consumption state currently supported by the motherboard, and compares them, so as to accurately locate the deficiencies of the motherboard in the power management function. On this basis, by generating a motherboard update package and applying it to the motherboard, the insufficient power management capabilities of the motherboard at the basic input and output system (BIOS) and unified extensible firmware interface (UEFI) levels can be made up to match the power management capabilities of the CPU. At the same time, by generating advanced power management tools and drivers and installing them in the operating system, real-time monitoring of system operation and dynamic power management strategy adjustment can be achieved at the software level. The overall power management of the desktop is accurately performed according to the power consumption characteristics of the notebook CPU, reducing the overall energy consumption of the desktop.

[0053] 2. The present application provides a CPU power management method compatible with laptop computers, which subdivides the low power consumption state into two dimensions: energy-saving state and performance state, and can comprehensively evaluate the power management capabilities of the CPU and motherboard in different working modes. At the same time, a parameter comparison method is introduced, which is not limited to the comparison of the presence or absence of the state, but pays more attention to whether the corresponding parameters behind the state match. This refined comparison method can discover more hidden incompatibility issues. For example, even if the motherboard supports a certain low power consumption state, if its parameter settings do not meet the CPU requirements, the power management strategy will fail. By comparing the differences between the CPU and the motherboard in the energy-saving and performance state groups one by one, it is possible to determine all possible power consumption state omissions, and finally integrate them into a complete set of missing power consumption states by taking the union method, which is convenient for subsequent targeted adjustments.

[0054] 3. The present application provides a CPU power management method compatible with a laptop computer. Through the state mapping table, it is possible to find out whether there is already a basic function related to the lack of power consumption state in the current module. This method of reuse and transformation based on existing code can minimize the impact on the original architecture of the firmware and reduce the difficulty and risk of integrating new functions. If there is a suitable basic function, just use it as a template to create the target function. If there is no ready-made template, it can be built from scratch according to the functional and parameter requirements of the lack state. For different types of lack states, differentiated code generation strategies can be adopted to improve development efficiency while ensuring the simplicity of the code. By adding the newly created target function to the current module, the seamless expansion of power consumption management can be completed. The whole process has a high degree of automation, the focus of the change points is clear, and the code consistency is effectively guaranteed, which can significantly improve the success rate of the motherboard power management update. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] Figure 1 It is a flow chart of a CPU power management method compatible with a notebook computer in an embodiment of the present application.

[0056] Figure 2 This is another flow chart of a CPU power management method compatible with a notebook computer in an embodiment of the present application.

[0057] Figure 3 It is a schematic diagram of the structure of a physical device compatible with a laptop computer CPU power management system provided in an embodiment of the present application. DETAILED DESCRIPTION

[0058] The terms used in the following embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to be used as limitations to the present application. As used in the specification and appended claims of the present application, the singular expressions "one", "a kind of", "said", "above", "the" and "this" are intended to also include plural expressions, unless there is a clear indication to the contrary in the context. It should also be understood that the term "and / or" used in the present application refers to any or all possible combinations comprising one or more listed items.

[0059] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as suggesting or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features, and in the description of the embodiments of the present application, unless otherwise specified, "plurality" means two or more.

[0060] An application scenario of an embodiment of the present application is described below:

[0061] With the rise of new working modes such as mobile office and remote collaboration, more and more users are beginning to favor laptops that are both portable and high-performance. In an IT company, technicians often need to switch frequently between the office and the business trip site. They found that although the company is equipped with high-performance desktop workstations, since the hardware equipment cannot be carried with them, the migration of data and applications every time they go on a business trip is very inconvenient, affecting work efficiency.

[0062] Therefore, a bold idea came into being: Can the laptop computer be directly converted into a "mobile workstation" that is both portable and expandable? After carefully studying the hardware architecture of the laptop computer, the technicians found that the CPU of the laptop computer has certain advantages over the CPU of the desktop computer due to its excellent performance and low power consumption. If the CPU of the laptop computer can be transplanted to the motherboard of the desktop computer, and then matched with high-performance components such as large-capacity memory and independent graphics card, a portable workstation that meets work needs can be assembled.

[0063] This idea inspired the technicians' enthusiasm for innovation, and they could not wait to start the transplantation attempt. However, when the laptop CPU was installed on the desktop motherboard, the operation of the entire system was very unstable, and sometimes there were freezes and crashes, which seriously affected the user experience. After careful investigation, the technicians found that the root cause of the problem was the incompatibility of power management.

[0064] Since the laptop CPU is designed with more low-power states, such as C-States and P-States, while the desktop motherboard does not fully support these states, the system cannot make timely power management adjustments based on the actual CPU load. This is like asking an experienced driver (laptop CPU) to drive a car with an outdated control system (desktop motherboard), which will inevitably lead to problems such as insufficient power and throttle failure.

[0065] In addition, the technicians also found that there are differences between laptop CPUs and desktop motherboards in terms of power supply interfaces and voltage levels, which leads to low power conversion efficiency and a significant increase in the overall energy consumption of the system. The original low power consumption advantage of laptop CPUs could not be brought into play, but instead became a shortcoming that hindered system performance.

[0066] In order to solve the above technical problems, the following Figure 1 , a CPU power management method for a compatible laptop computer provided by this application is described:

[0067] See also Figure 1 , which is a flow chart of a CPU power management method compatible with a laptop computer in an embodiment of the present application.

[0068] S101, determining the low power consumption state supported by the notebook CPU and the motherboard low power consumption state currently supported by the motherboard;

[0069] The system first needs to identify the various low-power states supported by the laptop CPU. Modern laptop CPUs usually have a variety of energy-saving technologies, such as Intel's SpeedStep and AMD's PowerNow! These technologies allow the CPU to dynamically adjust the clock frequency and voltage according to the load to reduce energy consumption. The system can learn the C-States (such as C0, C1, C2, C3, etc.) and P-States (such as P0, P1, P2, etc.) supported by the CPU by reading the CPU model information and querying the corresponding technical specifications.

[0070] For example, if a laptop uses an Intel i7-1165G7 processor, by checking its technical specifications, the system can know that the CPU supports 24 performance states from C0 to P23.

[0071] At the same time, the system also needs to obtain the current BIOS settings of the motherboard and identify the various low-power states supported by the motherboard under the current configuration. The power management functions of different motherboards vary, and some motherboards may only support some C-States and P-States. The system can read the power management configuration of the motherboard by calling the ACPI (Advanced Configuration and Power Interface) related functions in the BIOS.

[0072] For example, in the BIOS settings of a desktop motherboard, only 13 performance states, C0 and P12, are enabled.

[0073] By obtaining the low-power states supported by the laptop CPU and desktop motherboard respectively, the system can further analyze the differences and incompatibilities between the two, providing a basis for subsequent power management optimization.

[0074] S102, respectively determining a CPU energy-saving state group, a CPU performance state group, a mainboard energy-saving state group, and a mainboard performance state group corresponding to a low power consumption state and a mainboard low power consumption state;

[0075] After obtaining the low-power states supported by the laptop CPU and desktop motherboard, the system needs to further divide these states into different groups to facilitate subsequent comparison and analysis.

[0076] For laptop CPUs, their low power states can be divided into two categories: energy-saving states (C-States) and performance states (P-States). Energy-saving states are mainly used to reduce CPU power consumption. When the CPU is idle, the system can switch it to a deeper energy-saving state to reduce energy consumption; while performance states are used to dynamically adjust the CPU's operating frequency and voltage to minimize power consumption while ensuring performance.

[0077] For example, for an Intel i7-1165G7 processor, the system can divide the 11 power-saving states (C0P23) it supports into one performance state group.

[0078] Similarly, for a desktop motherboard, the system can also divide the low power consumption states supported by the motherboard into a power saving state group and a performance state group according to its BIOS settings.

[0079] For example, for the above-mentioned motherboard that only supports C0P12, the system can divide C0P12 into motherboard performance status groups.

[0080] Through such grouping, the system can more clearly sort out the similarities and differences in power management between laptop CPUs and desktop motherboards, providing convenience for subsequent compatibility analysis.

[0081] S103, comparing the CPU energy-saving state group and the mainboard energy-saving state group one by one;

[0082] After clarifying the energy-saving state groups of the laptop CPU and the desktop motherboard, the system needs to compare the two energy-saving state groups one by one to find out the differences and incompatibilities between them.

[0083] Specifically, the system first determines whether the energy-saving state group of the laptop CPU completely "covers" the energy-saving state group of the desktop motherboard, that is, whether the energy-saving state group of the desktop motherboard is a subset of the energy-saving state group of the laptop CPU. If the laptop CPU supports more energy-saving states than the desktop motherboard, it means that the energy-saving state of the laptop CPU is not fully supported by the desktop motherboard, and there are missing energy-saving states.

[0084] For example, the energy-saving state group of the Intel i7-1165G7 mentioned above is C0C6, with a total of 7 states. Obviously, the latter is a subset of the former, and there are 4 energy-saving states (C7~C10) that are not supported by the desktop motherboard.

[0085] In addition to the number of states, the system also needs to compare the specific parameter settings of each energy-saving state on the laptop CPU and desktop motherboard to determine whether they are consistent. Even for energy-saving states with the same name, their parameter settings may be different in different hardware environments. For example, the power consumption of the C6 state on a laptop CPU may be 2W, while the power consumption on a desktop motherboard may be 3W, which means that in this state, the laptop CPU is more energy-efficient than the desktop motherboard.

[0086] S104, if the CPU energy-saving state group is not a subset of the mainboard energy-saving state group or the parameters corresponding to the CPU energy-saving state group and the mainboard energy-saving state group are different, then the CPU energy-saving state that is not in the mainboard energy-saving state group or the parameters are different is determined as a state lacking energy-saving power consumption;

[0087] After comparing the energy-saving status groups of the laptop CPU and the desktop motherboard, the system needs to judge and process the comparison results. If one of the following two situations occurs, it means that the desktop motherboard has shortcomings in energy saving and needs targeted optimization and improvement:

[0088] The energy-saving state group of the laptop CPU is not a subset of the energy-saving state group of the desktop motherboard, that is, there are some energy-saving states supported by the laptop CPU that are not supported by the desktop motherboard;

[0089] Although laptop CPUs and desktop motherboards support the same energy-saving states, there are differences in the specific parameter settings, resulting in inconsistent energy-saving effects.

[0090] For the first case, the system needs to identify those energy-saving states that are not supported by the desktop motherboard and mark them as "lack of energy-saving power consumption state". These states represent the "advantages" of the notebook CPU in energy saving, which are what the desktop motherboard needs to "learn" and "reference".

[0091] For example, for the C7~C10 energy-saving states of Intel i7-1165G7, since the desktop motherboard does not support them, the system identifies them as lacking energy-saving power consumption states.

[0092] For the second case, the system needs to mark those energy-saving states with inconsistent parameter settings as "lack of energy-saving power consumption states" because the difference in parameters will lead to reduced energy-saving effects. The energy-saving potential of these states on desktop motherboards has not been fully utilized and needs further optimization.

[0093] For example, if the power consumption of the C6 state on a laptop CPU is 2W, and on a desktop motherboard it is 3W, then although both support the C6 state, due to the difference in parameter settings, the energy saving effect of the desktop motherboard in this state is not as good as that of the laptop CPU, so the system also marks the C6 state as a power consumption state that lacks energy saving.

[0094] It should be noted that step S103 and step S105 are parallel steps, that is, they can be performed simultaneously without any order.

[0095] S105, comparing the CPU performance status group and the motherboard performance status group one by one;

[0096] The system also needs to perform similar comparative analysis on the performance status groups of laptop CPUs and desktop motherboards.

[0097] Performance state (P-States) refers to a technology in which the CPU dynamically adjusts the clock frequency and voltage according to the load conditions to optimize performance and power consumption. Unlike energy-saving states (C-States) which mainly focus on reducing power consumption, performance states emphasize energy conservation as much as possible while ensuring performance. Therefore, different performance states will have different frequency, voltage and other parameter settings, thereby achieving a dynamic balance between performance and power consumption.

[0098] When the system compares the performance status groups of the laptop CPU and the desktop motherboard one by one, it also needs to pay attention to two aspects:

[0099] Whether the performance state group of the laptop CPU completely covers the performance state group of the desktop motherboard, that is, whether there are performance states that are not supported by the desktop motherboard;

[0100] For those performance states that are supported by both laptop CPUs and desktop motherboards, whether their frequency, voltage and other parameter settings are consistent.

[0101] For example, the Intel i7-1165G7 processor supports P04.7GHz, while the desktop motherboard only supports P03.9GHz. By comparison, it can be found that the performance state group of the laptop CPU is not fully covered by the desktop motherboard. There are 11 unsupported performance states (P13P12). Their specific frequency, voltage and other parameter settings may also be different from those of the laptop CPU, resulting in insufficient utilization of the optimization space for performance and power consumption.

[0102] S106, if the CPU performance state group is not a subset of the motherboard performance state group or the parameters corresponding to the CPU performance state group and the motherboard performance state group are different, then the CPU performance state that is not in the motherboard performance state group or the parameters are different is determined as a lack of performance power consumption state;

[0103] Similar to the previous steps of identifying the lack of energy-saving power consumption status, after comparing the performance status groups of the laptop CPU and the desktop motherboard, the system also needs to judge and process the comparison results. If one of the following two situations occurs, it means that the desktop motherboard also has shortcomings in performance status and needs targeted optimization and improvement:

[0104] The performance state group of the laptop CPU is not a subset of the performance state group of the desktop motherboard, that is, some performance states supported by the laptop CPU are not supported by the desktop motherboard;

[0105] Although laptop CPUs and desktop motherboards support the same performance states, there are differences in specific frequency, voltage and other parameter settings, resulting in inconsistent performance and power consumption optimization effects.

[0106] For the first case, the system needs to identify those performance states that are not supported by the desktop motherboard and mark them as under-performance power states. These states represent the advantages of the laptop CPU in dynamically adjusting performance and power consumption.

[0107] For example, for the P13~P23 performance states of Intel i7-1165G7, since the desktop motherboard does not support them, the system identifies them as low-performance power consumption states. This means that the frequency and voltage regulation capabilities of the desktop motherboard in the high-performance state are not as good as those of the laptop CPU, and there is still room for further optimization.

[0108] For the second case, the system needs to mark those performance states with inconsistent parameter settings as lack-performance power consumption states, because the difference in parameters will lead to reduced performance and power consumption optimization effects. The adjustment potential of these states on desktop motherboards has not been fully utilized and further improvement is needed.

[0109] For example, if the P8 state has a frequency of 3.2 GHz and a voltage of 1.1 V on a laptop CPU, and a frequency of 3.0 GHz and a voltage of 1.2 V on a desktop motherboard, then even though both support the P8 state, due to differences in parameter settings, the performance and power consumption of the desktop motherboard in this state are not as good as those of the laptop CPU. Therefore, the system also marks the P8 state as a low-performance power consumption state.

[0110] S107, merging the energy-saving-deficient power consumption state and the performance-deficient power consumption state into a power-deficient power consumption state;

[0111] In the previous steps, the system identified the shortcomings of the desktop motherboard in terms of energy saving and performance, forming two lists of insufficient energy saving power consumption and insufficient performance power consumption. In order to further optimize the power management strategy, the system needs to merge these two lists to form a unified insufficient power consumption list.

[0112] The Underpowered state represents all the weaknesses and deficiencies in the desktop board's overall power management system, covering both energy conservation and performance regulation. By combining the Underpowered and Underperformance states, the system can fully evaluate the desktop board's potential for power management optimization, determine which areas need to be focused on, and which areas have room for further improvement.

[0113] For example, for the case of the Intel i7-1165G7 processor and desktop motherboard, through the previous analysis, the system identifies the lack of energy-saving power consumption state as C7P23. After merging these two lists, a complete list of lack of power consumption states can be obtained: C7P23.

[0114] S108, generating a mainboard update package according to the insufficient power consumption state, and applying the mainboard update package to the mainboard;

[0115] When the system determines all the power consumption states that are lacking in the desktop motherboard in terms of power management, the next step is to optimize and improve these shortcomings. To achieve this goal, the most direct way is to upgrade and update the motherboard's BIOS to add support for those power consumption states. The specific implementation method of this step will be described below and will not be repeated here.

[0116] S109: Generate an advanced power management tool and driver and install the advanced power management tool and driver into the operating system.

[0117] The system generates an advanced power management tool and a driver and installs the advanced power management tool and the driver into the operating system. Specifically, the system generates an overall architecture of the advanced power management tool and the driver using a preset development tool. The overall architecture includes a user interface, a monitoring module, a control module, and data storage.

[0118] Establish a communication interface with the mainboard after the mainboard update package is applied, and read the current power management parameters;

[0119] Set the user interface to a preset style, which includes system operation status and power management parameters;

[0120] Generate a parameter setting control corresponding to the parameter setting function, and display the parameter setting interface when the parameter setting control is triggered;

[0121] The current power management parameters are adjusted according to the current power management parameters and the preset power management strategy to obtain the advanced power management tool and driver.

[0122] After applying the motherboard update package and optimizing the power management strategy of the desktop motherboard, the system needs to conduct a comprehensive evaluation and inspection of the optimization effect to determine whether the hardware migration is truly successful.

[0123] Specifically, the system needs to run a series of test programs and benchmark tests on the desktop motherboard to comprehensively detect the motherboard's optimized operating status and power consumption performance. These tests cover a variety of typical usage scenarios and load conditions, such as high-performance computing, video encoding and decoding, standby and hibernation, etc. The purpose is to evaluate the power management effect of the motherboard in different application environments and determine whether it has truly achieved the expected goals in terms of energy saving and performance adjustment.

[0124] In terms of operating status, the system focuses on the stability, reliability and compatibility of the motherboard. Through long-term continuous operation tests, the system ensures that the optimized motherboard can remain stable under various complex conditions without abnormal situations such as freezing and restarting. At the same time, the system also tests the compatibility of the motherboard with other hardware devices, such as memory, hard disk, graphics card, etc., to ensure that the optimized power management strategy will not affect the normal operation of the entire machine.

[0125] In terms of power consumption, the system focuses on the changes in the power consumption of the motherboard before and after optimization. Through precise power consumption measurement and statistical analysis, the system will evaluate the power consumption level of the optimized motherboard under various operating conditions, and compare it with the data before optimization, and quantitatively analyze the energy-saving effect brought by the optimization. If the power consumption level of the optimized motherboard is significantly reduced compared with that before optimization while ensuring performance and stability, it can be preliminarily determined that the power management optimization is successful.

[0126] The above embodiments have the following beneficial effects:

[0127] By determining the low power consumption state supported by the CPU and the low power consumption state currently supported by the motherboard, and comparing them, the deficiencies of the motherboard's power management function can be accurately located. On this basis, by generating a motherboard update package and applying it to the motherboard, the motherboard's insufficient power management capabilities at the basic input and output system (BIOS) and unified extensible firmware interface (UEFI) levels can be made up to match the power management capabilities of the CPU. At the same time, by generating advanced power management tools and drivers and installing them in the operating system, real-time monitoring of system operation and dynamic power management strategy adjustment can be achieved at the software level. Accurate power management of the entire desktop computer is performed according to the power consumption characteristics of the notebook CPU, reducing the overall energy consumption of the desktop computer.

[0128] By subdividing the low power state into two dimensions, energy-saving state and performance state, the power management capabilities of the CPU and motherboard in different working modes can be comprehensively evaluated. At the same time, a parameter comparison method is introduced, which is not limited to the comparison of the presence or absence of the state, but pays more attention to whether the corresponding parameters behind the state match. This refined comparison method can discover more hidden incompatibility issues. For example, even if the motherboard supports a certain low power state, if its parameter settings do not meet the CPU requirements, the power management strategy will fail. By comparing the differences between the CPU and motherboard in the energy-saving and performance state groups one by one, all possible power consumption state omissions can be determined, and finally integrated into a complete set of missing power consumption states by taking the union method, which is convenient for subsequent targeted adjustments.

[0129] Through advanced power management tools and drivers, the system load can be monitored in real time, and an intelligent balance between performance and power consumption can be made according to the preset optimization strategy, so as to achieve more fine-grained power management. The architecture of the tool and driver adopts a modular design, which includes multiple functional units such as user interaction, data acquisition, policy control, and data storage, with clear division of labor and flexible and scalable. It fully considers the user's usage needs and provides a friendly user interface. Users can intuitively view the current power management status and adjust related parameters according to their preferences. In addition, the generation of advanced power management tools and drivers also makes full use of the new features of the updated motherboard. By establishing a communication interface with the motherboard, more comprehensive and accurate power management parameters can be read, providing data support for policy optimization.

[0130] Setting the user interface to a preset style and providing a clear display of the system operating status and power management parameters allows users to immediately understand the working status of the computer and determine whether the current power management strategy is reasonable. At the same time, the interface also provides a convenient parameter setting function. Users only need to click the corresponding setting control to open the parameter setting interface and make personalized adjustments to the power management strategy according to their actual needs and preferences, such as adjusting the screen brightness, CPU main frequency, sleep time, etc. This can effectively promote the interaction between users and the power management system.

[0131] In step S108 of the above embodiment, the system generates a mainboard update package according to the low power consumption state, and applies the mainboard update package to the mainboard. Figure 2 To explain:

[0132] See also Figure 2 , is another flow chart of a CPU power management method compatible with a laptop computer in an embodiment of the present application.

[0133] S201, determining a current module and a current function corresponding to power management according to a current BIOS / UEFI code of the mainboard;

[0134] In the process of generating the motherboard update package, the system first needs to comprehensively analyze and deconstruct the current BIOS / UEFI code of the motherboard. The purpose of this step is to find all code modules and functions related to the power management function, providing a basis for subsequent customized modification and optimization.

[0135] Specifically, the system needs to deeply analyze the source code structure of the motherboard BIOS / UEFI and identify the key modules and functions responsible for power management. These modules and functions are usually distributed in different parts of BIOS / UEFI, such as ACPI tables, SMM modules, drivers, etc., which together constitute the core framework of motherboard power management.

[0136] For example, in the BIOS code of a certain motherboard, the system discovered the following modules and functions related to power management through keyword search and semantic analysis:

[0137] The _PSS, _PCT, _PPC and other objects in the ACPI table, which define the performance states and power management features supported by the motherboard;

[0138] APM_CNT, APM_STS and other functions in the SMM module are responsible for processing ACPI events and power management requests;

[0139] Functions such as CPUInit and CPUPowerManagement in the CPU driver implement the initialization and switching of CPU performance states;

[0140] Functions such as SouthBridgeInit and PCISetPowerState in the chipset driver control the power status of the south bridge and PCI devices.

[0141] S202, obtaining a target module and a target function according to a low power consumption state, a current module and a current function;

[0142] The system obtains the target module and the target function according to the low power consumption state, the current module and the current function. Specifically, the system establishes a corresponding relationship between the low power consumption state and the low power consumption state of the mainboard to obtain a state mapping table.

[0143] Traverse the state mapping table to obtain the power consumption state that is lacking in comparison;

[0144] When it is determined that the compared underpower consumption state is the same as the underpower consumption state, searching for a basic function corresponding to the underpower consumption state in the current module;

[0145] When it is determined that a basic function exists, the objective function is created using the basic function as a template;

[0146] When it is determined that there is no base function, creating a target function with the functions and parameters of the low power state;

[0147] Add the target function to the current module to get the target module.

[0148] After determining the "key modules" and "core functions" of the motherboard's current power management, the next task of the system is to customize and expand these modules and functions based on the identified power consumption deficit, and generate new target modules and functions, thereby enhancing and optimizing the motherboard's power management capabilities.

[0149] The key to this step is to establish a mapping relationship between the low power consumption state of the laptop CPU and the low power consumption state currently supported by the motherboard. The system needs to match each low power consumption state with a certain energy saving state or performance state already in the motherboard BIOS / UEFI to form a complete "state mapping table".

[0150] For example, through analysis and comparison, the system found that the C8 state of a certain laptop CPU is very similar to the current S3 state of the motherboard in terms of function and parameters, and the C10 state and the S4 state also have a high degree of match, so it established the corresponding relationship of "C8→S3" and "C10→S4" in the mapping table. Similarly, it found that the P13 and P14 states of the CPU correspond to the P8 and P9 states of the motherboard respectively, and the frequency and voltage parameters are relatively close, so it established the connection of "P13→P8" and "P14→P9" in the mapping table.

[0151] S203, writing the target module and the target function into the basic input and output system / uniform extensible firmware interface code to obtain the target code;

[0152] After all target modules and functions are created, the system needs to implant them into the existing BIOS / UEFI code of the motherboard. Specifically, the system must first dissect and analyze the original BIOS / UEFI code of the motherboard, such as the definition of the ACPI table, the entry of the SMM module, the initialization function of the driver, etc. These locations are the target areas for implanting new functions, and they determine the location of the new modules and functions in the BIOS / UEFI code.

[0153] Next, the system begins to write the target modules and functions into these target areas one by one. For the original code that needs to be replaced or modified, the system uses the strategy of search matching and fixed-point insertion to accurately embed the new code segment into the specified position of the original code to ensure the coherence of the transplanted code logic and execution process.

[0154] As for the modules and functions that need to be added, the system expands and adds them based on the original code, places them as independent code units in appropriate locations, and organically connects them with the original power management framework through hooks, callbacks and other mechanisms to ensure that the new functions can be awakened and called in time.

[0155] S204, debugging and compiling the target code according to the power consumption deficiency state to obtain a mainboard update package;

[0156] After forming a new BIOS / UEFI target code, the system needs to debug and test it repeatedly to verify the correctness and reliability of the code transplantation, eliminate possible bugs and exceptions, and finally generate a stable, efficient and secure motherboard update package. The system needs to design a series of test cases and scenarios to simulate the working conditions of the laptop CPU under various power consumption states, and run the corresponding target code on the motherboard to check whether its execution process and results meet expectations.

[0157] S205, generating an accompanying description document of the mainboard update package and adding the accompanying description document to the mainboard update package;

[0158] The system generates an accompanying instruction document for the mainboard update package and adds the accompanying instruction document to the mainboard update package. The accompanying instruction document includes detailed update content and installation steps.

[0159] After completing the debugging and compilation of the motherboard update package, the system also needs to generate a detailed accompanying documentation and provide it to the user together with the update package. Specifically, the system needs to describe in detail the main content and functional improvements of the update package in the documentation, list the newly added or optimized power management states, and explain the energy saving effects and performance improvements that these states may bring in actual use.

[0160] S206: After signing and encrypting the mainboard update package, apply the mainboard update package to the mainboard.

[0161] After generating a complete motherboard update package and accompanying documentation, the system needs to digitally sign and encrypt it to ensure that the source of the update package is credible and the content is complete, and to prevent it from being tampered with or replaced during transmission and use.

[0162] The above embodiments have the following beneficial effects:

[0163] The state mapping table is used to establish a direct correspondence between the CPU low power state and the motherboard missing state. The modification point can be quickly located through the existing power management modules and functions in the firmware code, and the missing target code can be automatically generated on this basis. This generation method can ensure that the newly added power management function is seamless with the original system at the code level, avoiding compatibility issues caused by style differences. After debugging and compiling the motherboard update package according to the missing power state, it can be applied with one click, making the entire power state completion process simple and reliable.

[0164] Through the state mapping table, you can find out whether there are basic functions related to the lack of power consumption state in the current module. This way of reusing and modifying based on existing code can minimize the impact on the original firmware architecture and reduce the difficulty and risk of integrating new functions. If there is a suitable basic function, just use it as a template to create the target function. If there is no ready-made template, you can build it from scratch according to the functional and parameter requirements of the lack of state. For different types of lack of states, differentiated code generation strategies can be adopted to improve development efficiency while ensuring the simplicity of code. Adding the newly created target function to the current module can complete the seamless expansion of power consumption management. The whole process is highly automated, the focus of the change points is clear, and the code consistency is effectively guaranteed, which can significantly improve the success rate of the motherboard power management update.

[0165] Generate the accompanying documentation and package it into the update package. The documentation details the content of the update, including the newly added or modified power management functions, parameters, etc., as well as the complete installation steps. This approach allows end users to clearly understand the purpose and significance of the update, reduce the risk of blind operation, and ensure the standardization of the update process. Secondly, signing and encrypting the update package can ensure that the source of the update package is credible and prevent tampering. By providing comprehensive usage guidance and sufficient security protection, the motherboard update package has been comprehensively improved in terms of ease of use, reliability, and security.

[0166] The following describes the system in the embodiment of the present invention from the perspective of hardware processing. Figure 3 , which is a schematic diagram of the structure of a physical device compatible with a laptop computer CPU power management system provided in an embodiment of the present application.

[0167] It should be noted that Figure 3 The structure of the system shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0168] like Figure 3 As shown, the system includes a central processing unit (CPU) 301, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 302 or the program loaded from the storage part 308 to the random access memory (RAM) 303, such as executing the method in the above embodiment. In RAM 303, various programs and data required for system operation are also stored. CPU 301, ROM 302 and RAM 303 are connected to each other through a bus 304. Input / output (I / O) interface 305 is also connected to bus 304.

[0169] The following components are connected to the I / O interface 305: an input section 306 including a camera, an infrared sensor, etc.; an output section 307 including a liquid crystal display (LCD) and a speaker, etc.; a storage section 308 including a hard disk, etc.; and a communication section 309 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 309 performs communication processing via a network such as the Internet. A drive 310 is also connected to the I / O interface 305 as needed. A removable medium 311, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 310 as needed so that a computer program read therefrom is installed into the storage section 308 as needed.

[0170] In particular, according to an embodiment of the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present invention includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through the communication part 309, and / or installed from a removable medium 311. When the computer program is executed by the central processing unit (CPU) 301, various functions defined in the present invention are performed.

[0171] It should be noted that the computer-readable medium shown in the embodiment of the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable computer program. Such a propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing.

[0172] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present invention. Among them, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart, can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0173] As another aspect, the present invention further provides a computer-readable storage medium, which may be included in the system described in the above embodiment; or may exist independently without being assembled into the system. The above storage medium carries one or more computer programs, and when the above one or more computer programs are executed by a processor of a system, the system implements the method provided in the above embodiment.

[0174] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

[0175] As used in the above embodiments, the term "when..." may be interpreted to mean "if..." or "after..." or "in response to determining..." or "in response to detecting...", depending on the context. Similarly, the phrases "upon determining..." or "if (the stated condition or event) is detected" may be interpreted to mean "if determining..." or "in response to determining..." or "upon detecting (the stated condition or event)" or "in response to detecting (the stated condition or event)", depending on the context.

[0176] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk), etc.

[0177] Those skilled in the art can understand that to implement all or part of the processes in the above-mentioned embodiments, the processes can be completed by computer programs to instruct related hardware, and the programs can be stored in computer-readable storage media. When the programs are executed, they can include the processes of the above-mentioned method embodiments. The aforementioned storage media include: ROM or random access memory RAM, magnetic disk or optical disk and other media that can store program codes.

Claims

1. A CPU power management method for a compatible notebook computer, characterized in that: include: Determine the low power consumption state supported by the notebook CPU and the motherboard low power consumption state currently supported by the motherboard; Comparing the low power consumption state with the low power consumption state of the mainboard to obtain a low power consumption state of the mainboard; Generate a mainboard update package according to the underpower state, and apply the mainboard update package to the mainboard, wherein the mainboard update package includes a basic input and output system update package and a unified extensible firmware interface update package, specifically including: Determine a current module and a current function corresponding to power management according to a current BIOS / UEFI code of the motherboard; Obtain a target module and a target function according to the low power consumption state, the current module and the current function; Writing the target module and the target function into the BIOS / UEFI code to obtain a target code; Debug and compile the target code according to the underpower state, generate an accompanying instruction document of the mainboard update package and add the accompanying instruction document to the mainboard update package, wherein the accompanying instruction document includes detailed update content and installation steps; Signing and encrypting the mainboard update package to obtain the mainboard update package; Applying the mainboard update package to the mainboard; Generate an advanced power management tool and a driver, wherein the advanced power management tool and the driver are capable of monitoring system operation and dynamically adjusting power management strategies; The advanced power management tool and the driver are installed into the operating system.

2. The method according to claim 1, characterized in that The comparing the low power consumption state with the low power consumption state of the mainboard to obtain the low power consumption state of the mainboard specifically includes: Respectively determine the CPU energy-saving state group, the CPU performance state group and the mainboard energy-saving state group, the mainboard performance state group corresponding to the low power consumption state and the mainboard low power consumption state; Comparing the CPU energy-saving state group and the mainboard energy-saving state group one by one; If one or more of the following conditions are satisfied: the CPU energy-saving state group is not a subset of the mainboard energy-saving state group or the parameters corresponding to the CPU energy-saving state group and the mainboard energy-saving state group are different, the CPU energy-saving state that is not in the mainboard energy-saving state group or has different parameters is determined as a state lacking energy-saving power consumption; Comparing the CPU performance status group and the motherboard performance status group one by one; If one or more of the following conditions are satisfied: the CPU performance state group is not a subset of the motherboard performance state group or the parameters corresponding to the CPU performance state group and the motherboard performance state group are different, the CPU performance state that is not in the motherboard performance state group or has different parameters is determined as a lack of performance power consumption state; The lack of energy conservation power consumption state and the lack of performance power consumption state are combined into the lack of power consumption state, and the lack of power consumption state represents a collection of the lack of energy conservation power consumption state and the lack of performance power consumption state.

3. The method according to claim 1, characterized in that The obtaining of the target module and the target function according to the low power consumption state, the current module and the current function specifically includes: Establishing a corresponding relationship between the low power consumption state and the mainboard low power consumption state to obtain a state mapping table; Traversing the state mapping table to obtain a comparative lack of power consumption state; In the case where it is determined that the compared underpower consumption state is the same as the underpower consumption state, searching the current module for a basic function corresponding to the underpower consumption state; In the case where it is determined that the basic function exists, creating the target function using the basic function as a template; In the case where it is determined that the basic function does not exist, creating the target function with the functions and parameters of the low power consumption state; The target function is added to the current module to obtain the target module.

4. The method according to claim 1, characterized in that The generating of the advanced power management tool and driver specifically includes: Using a preset development tool to generate an overall architecture of an advanced power management tool and a driver, the overall architecture including a user interface, a monitoring module, a control module, and data storage; Establishing a communication interface with the mainboard to which the mainboard update package is applied, and reading current power management parameters; The current power management parameters are adjusted according to the current power management parameters and a preset power management policy to obtain the advanced power management tool and the driver.

5. The method according to claim 4, characterized in that After the overall architecture of the advanced power management tool and the driver is generated by using the preset development tool, the method further includes: Setting the user interface to a preset style, wherein the preset style includes system operation status and power management parameters; A parameter setting control corresponding to the parameter setting function is generated, and a parameter setting interface is displayed when the parameter setting control is triggered.

6. A CPU power management system compatible with a notebook computer, characterized in that: The system comprises: One or more processors and a memory; the memory is coupled to the one or more processors, the memory is used to store computer program code, the computer program code includes computer instructions, and the one or more processors call the computer instructions to cause the system to execute the method as described in any one of claims 1-5.

7. A computer-readable storage medium comprising instructions, characterized in that: When the instructions are executed on a system, the system is caused to execute the method according to any one of claims 1 to 5.

8. A computer program product, characterized in that When the computer program product is run on a system, the system is caused to execute the method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Multi-level collaborative low-power design method

    CN103412990A

  • Extensible chip voltage domain management system compatible with multiple cores

    CN117032431A

Cited By

  • Intelligent notebook power management method and system

    CN122795192A