Power consumption control method, embedded controller, electronic device and computer device
The embedded controller (EC) monitors the computer status and takes over power management when the driver module malfunctions, solving the problem of power control failure caused by driver module malfunction and realizing effective power management and user prompt functions.
Patent Information
- Application Number
- CN202410384554.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-29
- Publication Date
- 2025-11-07
- Estimated Expiration
- 2044-03-29
AI Technical Summary
Computer power management mainly relies on the operating system's driver module. When the driver module malfunctions, it cannot effectively control power consumption, leading to performance degradation and component damage.
By monitoring the device status through the embedded controller (EC), when an abnormality is detected in the drive module, the system switches to the EC for power consumption control and outputs a prompt message to notify the user of the abnormal situation. The system also adjusts the fan speed and CPU operating parameters to achieve power consumption management.
When the driver module malfunctions, EC can effectively control power consumption, avoid performance degradation and component damage, and help users resolve the problem in a timely manner through prompts.
Smart Images

Figure CN119248081B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of computer, in particular to a power consumption control method, an embedded controller, an electronic device and a computer device. BACKGROUND
[0002] With the continuous development of science and technology, the performance requirement of computer is also higher and higher. The power consumption management of computer is crucial to improve its performance. At present, the computer mainly realizes power consumption management through the corresponding drive module on the operating system. Once the drive module is abnormal, the power consumption of the computer cannot be controlled. SUMMARY
[0003] In view of the above problems, the present application provides a power consumption control method, an embedded controller and an electronic device to realize power consumption management of the embedded controller in the electronic device when the drive module for power consumption management in the electronic device is abnormal. Thus,
[0004] In the first embodiment of the present application, a power consumption control method is provided, which is suitable for an embedded controller in an electronic device. The power consumption control method comprises:
[0005] Monitoring the device state of the electronic device; wherein the device state can reflect the power consumption of the electronic device;
[0006] When an abnormal device state is monitored, determining whether the drive module for power consumption management in the electronic device is abnormal;
[0007] When the drive module is abnormal, the power consumption of the electronic device is controlled.
[0008] In the second embodiment of the present application, a power consumption control method is also provided, which is suitable for an embedded controller in an electronic device. The power consumption control method comprises:
[0009] Monitoring the device state of the electronic device; wherein the device state can reflect the power consumption of the electronic device;
[0010] When an abnormal device state is monitored, determining whether the drive module for power consumption management in the electronic device is abnormal;
[0011] When the drive module is abnormal, the power consumption of the electronic device is controlled;
[0012] Outputting prompt information to prompt that the drive module is abnormal and has been switched to the embedded controller for power consumption control.
[0013] In a third embodiment of the present application, an embedded controller is also provided. The embedded controller comprises a memory and a processor, wherein the memory is configured to store a computer program; and the processor is coupled to the memory and configured to execute the computer program stored in the memory to implement the steps in the power consumption control method provided in the first embodiment of the present application or implement the steps in the power consumption control method provided in the second embodiment of the present application.
[0014] In a fourth embodiment of the present application, an electronic device is also provided. The electronic device comprises a driving module for power consumption management and the embedded controller provided in the third embodiment of the present application.
[0015] In a fifth embodiment of the present application, a computer device is also provided. The computer device comprises a driving module, a state monitoring module and an embedded controller. The driving module is configured to control power consumption of the computer device. The state monitoring module is configured to monitor a device state of the computer device. The device state can reflect the power consumption of the computer device. The embedded controller is in communication connection with the state monitoring module. When the state monitoring module monitors an abnormal device state of the computer device, the embedded controller is configured to determine whether the driving module is abnormal, and perform power consumption control on the computer device when the driving module is abnormal.
[0016] The technical solutions provided in the embodiments of the present application can be used to determine whether the driving module for power consumption management in the electronic device (such as a computer device) is abnormal when the embedded controller EC in the electronic device detects an abnormal device state of the electronic device, and start power consumption control on the electronic device when the driving module is abnormal. As can be seen, the present solution can control the power consumption of the electronic device through the EC even when the driving module for power consumption management at the operating system level is abnormal, so as to avoid performance degradation of the electronic device, damage to the battery, processor and other components caused by excessive power consumption. Further, the embedded controller EC can also output a prompt information to prompt that the driving module is abnormal and has been switched to the embedded controller for power consumption control, so that the user can perceive that the driving module for power consumption management is abnormal, and thus find the abnormal cause in time and solve the abnormal problem. BRIEF DESCRIPTION OF DRAWINGS
[0017] The accompanying drawings, which are included to provide a further understanding of the present application and constitute a part of this application, illustrate certain illustrative embodiments of the present application and together with the description serve to explain the present application. In the drawings:
[0018] Figure 1 A flowchart of a power consumption control method provided in an illustrative embodiment of the present application is shown in FIG. 4;
[0019] Figure 2 A schematic diagram of the function components connected to the embedded controller and the communication with the system on chip in an electronic device according to an exemplary embodiment of the present application;
[0020] Figure 3a and Figure 3b A software architecture diagram of an electronic device according to an exemplary embodiment of the present application;
[0021] Figure 3c An interaction timing diagram of the embedded controller EC, the basic input output system BIOS, the operating system power management OSPM, and the driver module in an electronic device according to an exemplary embodiment of the present application;
[0022] Figure 4a and Figure 4b A schematic diagram of another power consumption control process according to an exemplary embodiment of the present application;
[0023] Figure 5 A schematic diagram of the output of prompt information according to an exemplary embodiment of the present application;
[0024] Figure 6 A schematic diagram of the display of power consumption information of an electronic device according to an exemplary embodiment of the present application;
[0025] Figure 7 A schematic diagram of a power consumption control method according to an exemplary embodiment of the present application;
[0026] Figure 8 A hardware structure schematic diagram of an electronic device according to an exemplary embodiment of the present application. DETAILED DESCRIPTION
[0027] Power consumption management of a computer plays a vital role in improving its performance. Power consumption management refers to effectively managing and controlling the energy consumption of functional modules (such as a CPU (Central Processing Unit)) on a computer, reducing the power consumption of a computer system, and thereby improving the performance of the computer and prolonging the battery usage time. At present, a computer (PC) such as a notebook computer mainly realizes power consumption control through a corresponding driver module on its operating system. Once the driver module described above is abnormal, the power consumption of the computer cannot be controlled.
[0028] The drive module is a bottom-layer drive installed on an operating system, such as a drive independently developed by a computer manufacturer (referred to as a self-developed drive) or a drive developed by another system manufacturer, such as a DTT (Dynamic Tuning Technology) drive. The drive module can implement corresponding power consumption control according to a built-in drive policy. How the drive module implements power consumption control can be referred to related content. Abnormality of the drive module can be caused by operating system crash, drive module uninstallation or disablement, or drive module program error.
[0029] To solve the above problem, the basic idea of the present application is that when the drive module for power consumption management on the computer is abnormal, the EC (Embeded Controller) in the computer performs power consumption control.
[0030] Based on the above basic idea, the present application provides a power consumption control method, an embeded controller and an electronic device.
[0031] To make the purpose, technical solutions and advantages of the present application clearer, the technical solutions of the present application will be described clearly and completely in combination with specific embodiments of the present application and corresponding drawings. Obviously, the described embodiments are only some of the embodiments of the present application, but not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work fall within the scope of protection of the present application.
[0032] In the embodiments of the present application, in order to clearly describe the technical solutions of the embodiments of the present application, the same items or similar items with basically the same functions and effects are distinguished by using "first", "second", etc. For example, the first signal generating circuit and the second signal generating circuit are only used to distinguish different signal generating circuits, and do not limit the sequence. Those skilled in the art can understand that "first", "second", etc. do not limit the quantity and execution sequence, and "first", "second", etc. are not necessarily different.
[0033] It should be noted that the terms "exemplary" and "for example" are used herein to mean "an example of" or "one example among others." Any embodiment or design scheme described herein as "exemplary" or "for example" should not be construed as preferred or advantageous over other embodiments or design schemes. Rather, the use of the terms "exemplary" and "for example" is intended to present concepts in a particular manner. In addition, "at least one" in this application refers to one or more, and "multiple" refers to two or more. The "and / or" describes the relationship between the associated objects, which means that there can be three relationships. For example, A and / or B can represent the following cases: A exists alone, A and B exist together, and B exists alone, where A and B can be singular or plural. The character " / " generally represents a "or" relationship between the associated objects. "At least one of the following" or similar expressions means any combination of these items, including any combination of single item or multiple items. For example, at least one of a, b and c can represent: a, b, c, a, b and c, a and b, a and c, b and c.
[0034] The technical solutions provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings.
[0035] Before introducing the technical solutions provided by the embodiments of the present application, some terms involved in the present application are explained and described:
[0036] EC (Embeded Controller, embedded controller): It is a single-chip microcomputer (as an independent chip), mainly applied to mobile computer systems (such as notebook computers) or embedded computer systems, to provide keyboard control, touch screen control, part of power management, fan control, battery management, indicator (such as indicator light) control and other functions for such computers. In addition, it also controls the computer mainboard power sequence, and has an irreplaceable role in the computer startup process. In the computer, whether the computer is in the state of starting or shutting down, the EC will always remain in working condition, unless the battery in the computer is completely removed.
[0037] BIOS (Basic Input Output System, basic input output system), which builds a bridge between the underlying hardware and the upper operating system, is a set of programs (which can be called firmware programs) solidified into the ROM (Read only Memory, read-only memory) chip on the motherboard of the computer, mainly saving basic input output programs, system setting information, self-checking programs after booting and system self-starting programs, etc. The main function is to provide the most basic and most direct hardware settings and control for the computer. Among them, BIOS starts to run after the EC initializes the physical environment inside the computer. The programs provided by BIOS, such as Acppo.asl (a kind of ASL code program), define various functions required for communication with the operating system, hardware, etc. Such as Notify (a function used to notify related operations), Method (method function), Q_event (interrupt event function) and so on. ASL is a source program language used to define ACPI objects (including writing ACPI control methods).
[0038] SOC (System on a Chip, called system-level chip or system on chip), is an integrated circuit that integrates multiple functional modules of a computer, such as SOC that integrates CPU (Central Processing Unit, central processor), GPU (Graphics Processing Unit, image processor), DSP (Digital Signal Processing, digital signal processor) and various processors, as well as memory, input / output port, graphics card, etc.
[0039] OSPM (Operating System Power Management, operating system power management, which can be simply referred to as system power management), OSPM is the operating system (OS) as a system resource manager, according to the characteristics of work load and hardware resource power state, make power management decision and control under the condition of meeting system performance constraints, reduce system energy consumption.
[0040] ACPI (Advanced Configuration and Power Interface, Advanced Configuration and Power Interface), is a set of configuration hardware and power management specifications, is a standard specification for control, management and communication between hardware, operating system, and application program, which defines operating system, BIOS, underlying hardware. The functions that can be achieved by using ACPI include: system power management, device power management, processor power management, temperature management, system events, etc.
[0041] Acpi.sys is an ACPI driver, used as an interface between the operating system and the BIOS, usually deployed in the OSPM.
[0042] The architectural relationship between the EC, BIOS, SOC, OSPM, Acpi.sys, etc. described above can also be seen in Figure 3a
[0043] Figure 1 A flowchart of a power consumption control method provided by the present application is shown, the execution subject of the method is an embedded controller (EC) in an electronic device. The electronic device can be any computer containing an EC, such as a notebook computer, a tablet computer, an embedded industrial computer, a vehicle-mounted computer, etc. As shown in Figure 1 The power consumption control method provided by the present application includes the following steps:
[0044] 101, monitoring the device state of the electronic device, wherein the device state can reflect the power consumption of the electronic device;
[0045] 102, when an abnormal device state is monitored, determining whether the drive module for power consumption management in the electronic device is abnormal;
[0046] 103, when the drive module is abnormal, performing power consumption control on the electronic device.
[0047] In the above 101, the device state of the electronic device can include but is not limited to voltage information, temperature information (such as the temperature of the battery, CPU, GPU, etc.). Since the power consumption of the electronic device is often closely related to the temperature, specifically, during the operation of the electronic device, if the power consumption of functional components such as the battery, CPU, etc. increases, the corresponding heat generated will increase, thereby causing the temperature of the battery, CPU, etc. to rise, and the temperature rise will further increase the power consumption of the battery, CPU, etc. High power consumption and high temperature are one of the main reasons for the performance degradation and damage of functional components in the electronic device. Based on this, in the present embodiment, whether the electronic device has an abnormal device state can be determined mainly by monitoring the temperature information of the electronic device. Thus, in a specific implementation scheme, the above 101 "monitoring the device state of the electronic device" can include:
[0048] 1011, obtaining the temperature information of the electronic device.
[0049] In specific implementation, the temperature information of the electronic device can be actively obtained by a temperature sensor, and / or the temperature information of the electronic device can also be obtained according to the received temperature-related events. The temperature-related events can be triggered when the temperature of the electronic device is greater than a preset temperature threshold, and the temperature information of the electronic device includes but is not limited to the temperature of functional components such as the battery, CPU, GPU, power adapter, etc.
[0050] For example, referring to Figure 2 For example, referring to
[0051] Alternatively, the temperature of the battery and the CPU in the above examples can be obtained by the EC according to the temperature-related event sent by the operating system to the battery and the CPU.
[0052] Accordingly, the "monitoring of the abnormal device state" in 102 can include:
[0053] When the temperature information exceeds the preset temperature threshold, it is determined that the abnormal device state of the electronic device is monitored.
[0054] For example, if the temperature of at least one of the battery, CPU, and other functional components exceeds the preset temperature threshold according to the obtained temperature of the battery, CPU, and other functional components, it can be determined that the abnormal device state of the electronic device is monitored.
[0055] In the above, the preset temperature threshold is flexibly set according to the actual situation, which is not limited here. When the temperature-related event of the electronic device is received, since the temperature-related event is usually triggered when the corresponding temperature is greater than the preset temperature threshold, it can be directly determined that the temperature information of the electronic device exceeds the preset temperature threshold.
[0056] Further, when the abnormal device state is monitored, it can be detected whether the drive module for power consumption management in the electronic device is in an active state, so as to determine whether the abnormal state of the electronic device is caused by the abnormality of the drive module, so that subsequent power consumption control of the electronic device is started in the case of determining that the abnormality of the drive module causes the abnormal state. The drive module has been described in detail above, and will not be described in detail here.
[0057] From the above, in an implementation, the "determining whether the drive module for power consumption management in the electronic device is abnormal" in 102 can specifically include:
[0058] 1021, detecting the module state of the drive module;
[0059] 1022, when the module state is an active state, determining that the drive module is normal;
[0060] 1023, when the module state is an inactive state, determining that the drive module is abnormal.
[0061] In a specific implementation, since the drive module is located on the operating system, the module state of the drive module can be detected periodically by a detection module in the electronic device which acts as a bridge between the EC and the operating system, so as to determine whether the final module state of the drive module is an active state or an inactive state according to the detection condition returned by the detection module within a certain time. Based on this, a specific implementation of the "detecting the module state of the drive module" in 1021 can be implemented by the following steps:
[0062] 10211, periodically notifying the detection module in the electronic device that it needs to send detection information to the drive module to detect the module state of the drive module at intervals of a first time length;
[0063] 10212, starting timing;
[0064] 10213, determining the module state of the drive module according to the detection response condition returned by the detection module before the timing length reaches a second time length; wherein the second time length is greater than the first time length.
[0065] In 10211, as mentioned in Figures 3a-3c , the detection module can be a basic input and output system in the electronic device 100. The basic input and output system can be BIOS. Of course, the basic input and output system can also be other types, such as PMON (Prom Monitor) similar to BIOS.
[0066] And, the first time length and the second time length in the step 1023 can be flexibly set according to actual conditions. For example, the first time length can be set to 1-4 seconds and the second time length can be set to no more than 20 seconds according to the response time that most users can accept.
[0067] In the step 10212, the timing can be achieved by starting a timer on the EC.
[0068] The following takes an example of the steps 10211-10213.
[0069] Figure 4b A specific implementation flowchart of the steps 10211-10213 is shown in FIG. 10, which is based on the steps 10211-10213 and Figure 3b combined with the steps 10211-10213. Figures 3a-3c Taking the detection module as the BIOS for example, a specific implementation flow of the steps 10211-10213 can be as follows:
[0070] The EC can call the interrupt event function Q_event in the BIOS once every first time length, such as 2 seconds, to send an interrupt notification to the BIOS once, so as to notify the BIOS that it needs to send detection information to the drive module once. Correspondingly, after receiving the interrupt notification, the BIOS will pause the execution of the current program and turn to process the interrupt notification. Specifically, the interrupt notification is processed as follows: a notification related operation function stored in itself is called, such as the Notify function, to send a detection information to the drive module. If the drive module is normal, after receiving the detection information, it will call the method function Method in the BIOS, and more specifically, it will call IMOK in the method function Method to make a detection response to the received detection information, and transmit the detection response to the EC through the BIOS; otherwise, if the drive module is abnormal, it will not receive the detection information, and will not make a detection response. For the EC, when it receives a detection response before the timing time length reaches the second time length, such as 10 seconds, it will stop periodically calling the interrupt event function Q_event to send an interrupt notification to the BIOS, and directly determine that the module state of the drive module is an active state, and will not start the power consumption control on the electronic device; and if the detection response is not received when the timing time length reaches the second time length, it is determined that the module state of the monitoring module is an inactive state, and the power consumption control on the electronic device is started.
[0071] Based on the above example, in a specific implementable technical solution, the step 10213 "determining the module state of the drive module according to the detection response returned by the detection module before the timing time length reaches the second time length" can be implemented by the following steps:
[0072] Before the timing time length reaches the second time length:
[0073] S1, when receiving a detection response returned by the detection module, determining that the drive module is in an active state, and stopping periodically informing the detection module of the need to send detection information to the drive module;
[0074] S2, if no detection response returned by the detection module is received, determining that the drive module is in an inactive state.
[0075] Wherein, the inactive state of the drive module can be caused by unloading or disabling the drive module, program error of the drive module or abnormal operation system (such as dead machine) and the like.
[0076] The above is mainly from the perspective of receiving a detection response in the second time length, directly determining that the drive module is in an active state and stopping periodically informing the detection module of the need to send detection information to the drive module, to describe an implementation scheme of the above step 10213. Of course, other ways can also be used to implement the above step 10213, for example, the drive module can be detected by the detection module periodically in the second time length, so as to finally determine the module state of the drive module by analyzing all detection responses received in the second time length. Based on this, in another specific implementation scheme, the above 10213 "determining the module state of the drive module according to the detection response returned by the detection module before the timing time length reaches the second time length", can be implemented by the following steps:
[0077] S1', determining the number of times of receiving the detection response returned by the detection module in the second time length;
[0078] S2', determining the continuous detection period of the drive module responding to the detection information according to the response parameter contained in the received detection response; wherein, the response parameter can represent the corresponding detection period;
[0079] S3', determining the module state of the drive module according to at least one of the number, the continuous detection period;
[0080] Wherein, the module state of the drive module in the active state includes at least one of the following: the number is greater than or equal to a first threshold, the number of continuous detection periods is greater than or equal to a second threshold. The module state of the drive module in the inactive state includes: the number is less than the first threshold and the number of continuous detection periods is less than the second threshold.
[0081] In practice, the first threshold value and the second threshold value are flexibly set according to actual conditions, but do not exceed the total detection period, wherein the total detection period is equal to the second time length divided by the first time length. Since the detection response contains a response parameter capable of representing the corresponding detection period, the EC can determine the detection period corresponding to the detection response according to the response parameter contained in the detection response, and mark the response state corresponding to the detection period. For example, if the detection response returned by the detection module is received within a detection period, the response state corresponding to the detection period can be marked as having been responded, which also represents that the state of the driving module corresponding to the detection period is an active state. Conversely, if the detection response returned by the detection module is not received within a detection period, the response state corresponding to the detection period can be marked as not having been responded, which also represents that the state of the driving module corresponding to the detection period is an inactive state.
[0082] The following Table 1 is an example. Through periodic detection of the driving module, the following content can be obtained (the total detection period is 5):
[0083] Table 1
[0084]
[0085] Based on the content in Table 1, it is assumed that the first threshold value is 2 and the second threshold value is 3. Then, the number of times the detection response returned by the detection module is received is 4 (greater than the first threshold value, i.e., 2), and the driving module responds to the received detection information in the third to fifth detection periods, i.e., the number of continuous detection periods in which the driving module responds to the detection information is 3 (equal to the second threshold value, i.e., 3). Therefore, it can be finally determined that the module state of the driving module is an active state.
[0086] The module state of the driving module is determined through the above steps S1' to S3'. Compared with the above steps S1 to S2, the accuracy of module state determination can be improved to some extent.
[0087] For example, it can be the case that the drive module is normal in the first detection period, and can receive the detection information and respond to the received detection information; and after that, due to sudden operating system crash, drive module uninstall or disable, or program exception of the drive module, etc., the detection response cannot be received in the subsequent detection period. In the above case, if the module state of the drive module is determined through the above steps S1-S2, the drive module will be directly determined to be in the active state due to the detection response returned by the detection module in the first detection period, and it is considered that the drive mode is executing power consumption control, so the detection of the drive module is stopped. However, in fact, the drive module is abnormal after the first detection period, and cannot execute power consumption control. In the above case, if the module state of the drive module is determined through the above steps S1'-S3', the detection response state received in all detection periods is analyzed, and it is finally determined that the drive module is in the inactive state, is abnormal, and cannot execute power consumption control, so the EC can immediately start the power consumption control function.
[0088] Specifically, when the EC determines that the drive module is abnormal, it can adjust the running information of the first functional component controlled thereby according to the self-built policy (EC Policy), and more specifically, the power consumption control policy, and can also notify the SOC to configure the working parameters of the second functional component thereon. Thus, in one implementation, the above 103 "when the drive module is abnormal, the electronic device is subjected to power consumption control", can specifically include:
[0089] 1031. When the drive module is abnormal, start the preset power consumption control policy;
[0090] 1032. According to the power consumption control policy, adjust the running information of the first functional component in the electronic device controlled by the embedded controller, and notify the system-on-chip in the electronic device to configure the corresponding working parameters for the second functional component thereon.
[0091] In a specific implementation, the power consumption control strategy includes an active strategy and a passive strategy. The active strategy can be used for the first functional component controlled by the EC to achieve the purpose of power consumption control. The passive strategy can be used for the second functional component on the system on chip (SOC) to reduce the power consumption of the second functional component and achieve the purpose of power consumption control. The first functional component can be, but is not limited to, a fan or a battery connected to the EC. The second functional component can be, but is not limited to, a CPU or a GPU integrated on the SOC. In addition, the EC can send an interrupt notification to the SOC by calling a Q_event function in the BIOS to notify the SOC to configure the working parameters of the second functional component on the SOC. Correspondingly, the SOC can call a Method function in the BIOS to respond to the interrupt notification to complete the working parameter configuration of the second functional component on the SOC, and can also feed back the configuration result to the EC.
[0092] The following examples illustrate how the EC controls the power consumption of the electronic device.
[0093] For example, to adjust the running information of the fan, the EC usually maintains a fan control table (ACPI table). Different fan speeds are set in the fan control table according to different temperatures of the CPU and the battery. The EC can read the target fan speed corresponding to the temperature of the CPU and the battery from the fan control table, generate a corresponding PWM (Pulse Width Modulation) signal according to the target fan speed, and send the PWM signal to the fan through the fan control circuit integrated on the EC to adjust the fan speed to the target fan speed, thereby achieving heat dissipation and temperature reduction.
[0094] For another example, the EC can send an interrupt to the SOC through the PECI bus to notify the SOC to configure the working parameters of the CPU, GPU, etc. on the SOC, so that the CPU, GPU, etc. work within a limited parameter range, thereby achieving power consumption control of the CPU, GPU, etc. For example, the SOC, in response to the interrupt notification, temporarily stops the execution of the current program and executes a related program for sending the working parameter configuration information of the CPU to the CPU. More specifically, the related program can execute a Method function in the BIOS to send the working parameter configuration information to the CPU through the Method function. The CPU completes parameter configuration according to the received working parameter configuration information, thereby limiting the working parameters of the CPU within a lower range to achieve the purpose of reducing the power consumption of the CPU. The working parameters include, but are not limited to, power limit (power limit value), voltage, operating frequency, etc. Alternatively, the EC can also control the CPU to perform a throttling action to achieve power consumption control of the CPU. Specifically, the EC can pull down the ProcHot# signal to make the CPU start the throttling action, and wait for the CPU temperature to return to a set value, and then restore the ProcHot# signal. The above-mentioned throttling refers to: within a fixed period, only one action is performed, if a new event is triggered, it is not executed; after the end of the period, if an event is triggered in the new period, it is executed. The above-mentioned ProcHot# is pulled out through a pin of the CPU and can be connected to the peripherals (such as the EC) of the CPU, and the peripherals send the ProcHot# signal.
[0095] The technical scheme provided by the embodiment can further determine whether the driving module for power consumption management in the electronic device is abnormal when detecting an abnormal device state of the electronic device, and start power consumption control of the electronic device when the driving module is abnormal. It can be seen that the present scheme can control the power consumption of the electronic device through the EC even if the driving module for power consumption management at the operating system level is abnormal, so as to avoid performance degradation and damage to components such as batteries caused by excessive power consumption of the electronic device.
[0096] Further, in order to enable the user to perceive that the module for power consumption management is abnormal, the current power consumption of the electronic device is switched to the EC for control, and a prompt information can also be output by the electronic device to prompt this. That is, the method provided by the embodiment can further include the following steps:
[0097] 104、outputting a prompt information to prompt that the driving module is abnormal and has been switched to the embedded controller for power consumption control.
[0098] In practice, the aforementioned prompts may be voice prompts played through the audio module of an electronic device, and / or text or graphics displayed through the display module (such as a screen) of an electronic device, or a combination thereof.
[0099] For example, see Figure 5 A pop-up window A appears on the display screen of electronic device 100, displaying the following text: "Power management driver module malfunction, switching to EC control. Please check the cause of the malfunction." After seeing this text, if the operating system is running normally, the user can check the driver module-related items in the electronic device's control panel to see if the driver module is disabled or uninstalled. If it is not disabled or uninstalled, further investigation can be conducted to determine if other reasons caused the driver module malfunction, such as errors in the driver module's program. Subsequently, if the driver module is detected to have returned to normal, the EC can stop power control and hand over power control to the driver module.
[0100] Furthermore, the method provided in this embodiment may also include the following steps:
[0101] 105. Display the power consumption information of the electronic device through the display module of the electronic device.
[0102] For example, see Figure 6 The left-hand diagram shows that, upon detecting a user's action on the "Performance" control in the Task Manager of electronic device 100, the device's power consumption information, such as CPU and memory consumption, is displayed on Task Manager interface B in response to that action. Alternatively, see [link to relevant documentation]. Figure 5 The right-hand image in the diagram can automatically and dynamically display power consumption information such as CPU and memory on the taskbar C of the electronic device 100, depending on user settings.
[0103] In summary, the technical solution provided in this application utilizes EC to enable power management of electronic devices even in the event of an abnormality in the driver module used for power management on the operating system.
[0104] See Figure 4a and Figure 4b The specific process of using EC to control the power consumption of electronic devices in this application is as follows:
[0105] 1. The EC monitors the temperature of the electronic device via a temperature sensor, and / or monitors the temperature of the electronic device based on received temperature-related events;
[0106] 2、When the temperature is monitored to exceed the preset temperature threshold, the EC will send an interrupt notification to the BIOS every interval, requiring the BIOS to detect whether the drive module for power consumption management (such as a self-developed drive or an intel DTT) is in an active state, and start timing;
[0107] 3、After receiving the interrupt notification, the BIOS will send Notify (for detection information) to the drive module to determine whether the drive module makes a corresponding detection response to the detection information;
[0108] 4、If the drive module calls the IMOK function in the BIOS to make a detection response, the BIOS will transmit the detection response made by the drive module to the EC when the IMOK is called, specifically, the response parameter (IMOK parameter) in the detection response is transmitted to the EC, which can represent the corresponding detection period.
[0109] 5、If the EC receives the detection response within the set time (i.e., before the timing duration reaches the set time), it directly determines that the drive module is normal and no longer sends an interrupt notification to the BIOS. If the EC does not receive the detection response within the set time, it starts power consumption control (such as adjusting the speed of the fan) on the electronic device, and notifies the SOC so that the SOC takes some related configurations on the CPU and the like, such as the EC can directly configure the Power Limit of the CPU through the PECI bus and the like.
[0110] Based on the above content, another embodiment of the present application provides a power consumption control method suitable for an embedded controller in an electronic device. As shown in Figure 7 , the power consumption control method comprises the following steps:
[0111] 201、When an abnormal temperature state of the electronic device is monitored, it is determined whether a drive module for power consumption management in the electronic device is abnormal;
[0112] 202、When the drive module is abnormal, the electronic device is subjected to power consumption control;
[0113] 203、Output prompt information to prompt that the drive module has been switched to the embedded controller for power consumption control.
[0114] Further, the method provided by the present embodiment can further comprise the following steps:
[0115] 204、Display the power consumption information of the electronic device through the display module of the electronic device.
[0116] For the specific implementation description of each step in the method provided in the above embodiment, refer to the related content in other embodiments, which will not be repeated here. In addition, the method provided in the embodiment can include other steps in addition to the steps described above. For the other steps that can be included and the specific implementation description, refer to the related content in other embodiments.
[0117] The application scheme will be introduced below in combination with a specific application scenario. Specifically:
[0118] Application scenario: notebook computer. The operating system of the notebook computer originally has a self-developed driver (for power consumption management) installed, but the self-developed driver is uninstalled (or disabled) due to user misoperation. In addition, the notebook computer also has EC, SOC (integrating CPU), BIOS, sensor (such as temperature sensor), etc.
[0119] In combination with Figures 3b-3c and Figure 4a , during the running of the notebook computer, the EC in the notebook computer monitors the temperature of the battery, power supply, CPU, etc. in real time through the temperature sensor, and monitors that the temperature of the battery exceeds the preset temperature threshold at t0. At this time, the EC will call the Q_event function in the BIOS of the notebook computer every 2 seconds (seconds) from t0 to periodically send an interrupt notification to the BIOS to inform the BIOS that it needs to detect whether the self-developed driver is in an active state. After receiving the interrupt notification, the BIOS sends Notify (detection information) to the self-developed driver. Since the self-developed driver is uninstalled, it cannot respond to Notify, so the EC will not receive the response of the self-developed driver through the BIOS within a set time such as 10 seconds. Therefore, from t0+10s, the EC will start to control the power consumption of the notebook computer, such as dynamically adjusting the speed of the fan, controlling the power limit of the CPU through the PECI bus, etc.
[0120] The application also provides an embedded controller. The embedded controller includes a memory and a processor. The memory is used to store computer programs and can be configured to store various other data to support operations on electronic devices. Examples of these data include instructions for any application programs or methods for operating electronic devices. The memory can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0121] The processor is coupled with the memory and used for executing a computer program in the memory to implement steps or functions in the power consumption control method provided by other embodiments of the present application.
[0122] In addition to the above, the embedded controller can further include other components, such as sensors, etc.; wherein the sensors can specifically include but are not limited to temperature sensors, which can be thermistors. The above only describes part of the components on the embedded controller, and does not mean that the embedded controller only integrates the components described above.
[0123] The above-mentioned embedded controller can be deployed in an electronic device. Based on this, the present application also provides an electronic device, which is a computer, such as but not limited to a notebook computer. As can be seen from Figure 8 The electronic device hardware architecture diagram shown includes a drive module 14 for power consumption management and the above-mentioned embedded controller 11 provided in the embodiments of the present application. For details of the drive module and the embedded controller, please refer to the relevant content in other embodiments above.
[0124] Further, the electronic device further includes other components, such as a system on chip 12, a basic input and output system 13, a communication module 15, a motor 16, an indicator 17, a sensor module 18, an audio module 19, a display screen 20, a camera 21, a key 22, an internal memory 23, an external interface 24, a charging management module 25, a power management module 26, a battery 27, etc. Figure 7 The electronic device hardware architecture diagram shown includes a drive module 14 for power consumption management and the above-mentioned embedded controller 11 provided in the embodiments of the present application. For details of the drive module and the embedded controller, please refer to the relevant content in other embodiments above. Figure 7 The electronic device hardware architecture diagram shown includes a drive module 14 for power consumption management and the above-mentioned embedded controller 11 provided in the embodiments of the present application. For details of the drive module and the embedded controller, please refer to the relevant content in other embodiments above.
[0125] For details of the system on chip 12 and the basic input and output system 13, please refer to the relevant content in other embodiments above.
[0126] The above-mentioned communication module 15 is configured to facilitate wired or wireless communication between the device where the communication module is located and other devices. The device where the communication module is located can access a wireless network based on a communication standard, such as WiFi, 2G, 3G, 4G / LTE, 5G, etc. mobile communication network, or a combination thereof. In an example embodiment, the communication module receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In an example embodiment, the communication module further includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0127] The above-mentioned motor 16 can generate a vibration prompt. Such as can be used for touch vibration feedback.
[0128] The indicator 17 can be an indicator light, which can be used to indicate the charging status, the power change, and can also be used to indicate messages, notifications, etc.
[0129] The sensor module 18 can include a pressure sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, etc. Among them,
[0130] The pressure sensor is used to sense a pressure signal, which can be converted into an electrical signal, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, etc.
[0131] The fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, etc.
[0132] The temperature sensor is used to detect temperature. In some embodiments, the electronic device 100 uses the temperature detected by the temperature sensor to perform temperature processing strategies. For example, when the temperature reported by the temperature sensor exceeds a threshold value, the electronic device 100 reduces the performance of the processor located near the temperature sensor in order to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold value, the electronic device 100 heats the battery 27 to avoid abnormal shutdown of the electronic device 100 caused by low temperature. In other embodiments, when the temperature is lower than yet another threshold value, the electronic device 100 performs voltage boosting on the output voltage of the battery 27 to avoid abnormal shutdown caused by low temperature. The touch sensor 180K is also called a "touch device".
[0133] The touch sensor is used to detect touch operations and transmit them to the processor to determine the type of touch event.
[0134] The ambient light sensor is used to sense the ambient light brightness. The electronic device 100 can adaptively adjust the brightness of the display screen 20 according to the sensed ambient light brightness, etc.
[0135] The audio module 19 is used to convert digital audio information into analog audio signals and to convert analog audio inputs into digital audio signals. The audio module 19 can also be used to encode and decode audio signals. In some embodiments, the audio module 19 can be disposed in the processor, or part of the functions of the audio module 19 can be disposed in the processor.
[0136] The display screen 20 is configured to display images, videos, system or application interfaces, and the like. The display screen 20 includes a display panel, which can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like. In some embodiments, the electronic device 100 can include one or N display screens 20, where N is a positive integer greater than 1.
[0137] The camera 21 is configured to capture still images or videos.
[0138] The buttons 22 include power-on buttons, keyboards, and the like. The buttons 22 can be mechanical buttons or touch buttons. The electronic device 100 can receive button inputs and generate key signal inputs related to user settings and function controls of the electronic device 100.
[0139] The internal memory 23 can be configured to store computer-executable program codes including instructions. The internal memory 23 can include a program storage area and a data storage area. The program storage area can store an operating system, at least one application program required for a function (e.g., a sound playing function, an image playing function, or the like), and the like. The data storage area can store data (e.g., audio data, a phonebook, or the like) created during use of the electronic device 100, and the like. In addition, the internal memory 23 can include a high-speed random access memory, and can further include a non-volatile memory such as at least one of a magnetic disk storage device, a flash memory device, a universal flash storage (UFS), or the like. The processor executes various function applications and data processing of the electronic device 100 by running instructions stored in the internal memory 23 and / or instructions stored in a memory disposed in the processor.
[0140] The external interface 24 can include a power interface, a USB interface, an earphone interface, and the like.
[0141] The charging management module 25 is configured to receive charging inputs from a charger. The charger can be a wireless charger or a wired charger. In some embodiments of wired charging, the charging management module 25 can receive charging inputs from a wired charger through an external power interface. In some embodiments of wireless charging, the charging management module 25 can receive wireless charging inputs through a wireless charging coil of the electronic device 100. The charging management module 25 can charge the battery 27 and supply power to the electronic device through the power management module 26.
[0142] The power management module 26 is used to connect the battery 27, and the charging management module 25 is connected to the processor. The power management module 26 receives the input of the battery 27 and / or the charging management module 25, and supplies power to the processor, the internal memory, the display screen, the camera, the communication module, and the like. The power management module 26 can also be used to monitor the battery capacity, the number of battery cycles, the battery health state (leakage, impedance), and the like. In some other embodiments, the power management module 26 can also be arranged in the processor. In some other embodiments, the power management module 26 and the charging management module 25 can also be arranged in the same device.
[0143] The fan 28 is used for heat dissipation.
[0144] The above mainly describes the hardware structure of the electronic device. From the perspective of the software layered architecture of the electronic device, the present application also provides an electronic device. It can be understood that the layered architecture divides the software into several layers, each layer has a clear role and division of labor, and the layers communicate with each other through a software interface. Specifically,
[0145] In a specific implementation scheme, as shown in Figure 3b a software structure diagram of an electronic device, the electronic device includes a system layer, a firmware layer, and a hardware layer; wherein,
[0146] The system layer can include an operating system OS, and the operating system has a driver module for power consumption management;
[0147] The firmware layer is located between the system layer and the hardware layer, and is a bridge for communication between the hardware layer and the system layer, and includes a basic input / output system BIOS on the firmware layer;
[0148] The hardware layer includes a system on chip SOC, an embedded controller EC, and the like, wherein the embedded controller EC is used to implement the steps in the power consumption control method provided by the embodiments of the present application.
[0149] In another specific implementation scheme, as shown in Figure 3a a software structure diagram of an electronic device, the electronic device includes a driver module, a state monitoring module, and an embedded controller; wherein,
[0150] The driver module is used to control and manage the power consumption of the electronic device;
[0151] The state monitoring module is used to monitor the device state of the electronic device; wherein, the device state can reflect the power consumption of the electronic device;
[0152] The embedded controller is in communication connection with the state monitoring module, and is configured to determine whether the drive module is abnormal when the state monitoring module monitors an abnormal device state of the electronic device, and perform power consumption control on the electronic device when the drive module is abnormal.
[0153] Further, the electronic device further comprises a detection module in communication with the embedded controller and the drive module, and the embedded controller is specifically configured to periodically notify the detection module of the need to send detection information to the drive module to detect the module state of the drive module when determining whether the drive module is abnormal, determine the module state of the drive module according to the detection response returned by the detection module within a set time length, determine that the drive module is normal if the module state is an active state, and determine that the drive module is abnormal if the module state is an inactive state.
[0154] The electronic device described above is a computer device, such as a notebook computer. For the specific implementation of the functions of the modules in the electronic device described above, refer to the related content provided in other embodiments of the present application.
[0155] The embedded controller provided in the embodiments of the present application can be specifically implemented by being arranged on a mainboard of an electronic device when being deployed in the electronic device. Thus, the embodiments of the present application further provide a mainboard applied in an electronic device. The mainboard comprises a mainboard body and the embedded controller provided in the embodiments of the present application, and the embedded controller is arranged on the mainboard body.
[0156] Correspondingly, the present application further provides an electronic device comprising the mainboard provided in the embodiments of the present application.
[0157] The electronic device described above can be a computer, such as a notebook computer. For this case, the present application further provides a computer device. The computer device comprises a drive module, a state monitoring module, and an embedded controller, wherein,
[0158] The drive module is configured to control the power consumption of the computer device.
[0159] The state monitoring module is configured to monitor the device state of the computer device, and the device state can reflect the power consumption of the computer device.
[0160] The embedded controller is in communication connection with the state monitoring module, and is configured to determine whether the drive module is abnormal when the state monitoring module monitors an abnormal device state of the computer device, and perform power consumption control on the computer device when the drive module is abnormal.
[0161] Further, the computer device further comprises a detection module in communication with the embedded controller and the drive module; and the embedded controller is specifically configured to periodically notify the detection module of the need to send detection information to the drive module to detect the module state of the drive module when determining whether the drive module is abnormal; determine the module state of the drive module according to the detection response returned by the detection module within a set time length; if the module state is an active state, determine that the drive module is normal; and if the module state is an inactive state, determine that the drive module is abnormal.
[0162] The specific implementation of the functions of the modules / controllers in the computer device is described in other embodiments of the present application, and will not be described in detail here.
[0163] In addition, the present application also provides a computer readable storage medium. The computer readable storage medium stores a computer program, and the computer program is executed to implement the steps of the method embodiments.
[0164] In addition, the present application also provides a computer program product. The computer program product includes a computer program or instructions, and when the computer program or instructions are executed by a processor, the processor can implement the steps of the method embodiments provided by the present application.
[0165] Those skilled in the art should understand that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can be in the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present application can be in the form of a computer program product implemented on one or more computer usable storage media containing computer usable program code. The computer usable storage media includes, but is not limited to, disk storage, CD-ROM, optical storage, etc.
[0166] The present application is described with reference to flowcharts and / or block diagrams according to the method, device (system), and computer program product of the embodiments of the present application. It should be understood that each flow and / or block in the flowcharts and / or block diagrams, and the combination of the flows and / or blocks in the flowcharts and / or block diagrams can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce a device that implements the functions specified in the flowcharts and / or block diagrams. Figure 1 The functions specified in one flow or multiple flows and / or blocks Figure 1 The functions specified in one flow or multiple flows and / or blocks
[0167] These computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture including instructions which implement the Figure 1 function specified in the flow or flows and / or blocks Figure 1 of the multiple flows or multiple blocks.
[0168] These computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions that are executed on the computer or other programmable apparatus provide steps for implementing the Figure 1 function specified in the flow or flows and / or blocks Figure 1 Figure 1 of the multiple flows or multiple blocks.
[0169] In a typical configuration, a computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.
[0170] The memory can include non-persistent memory and / or volatile memory, such as random access memory (RAM) and / or cache memory, non-volatile memory, such as read-only memory (ROM), EPROM, and / or flash memory, etc. The memory is an example of computer readable media.
[0171] Computer readable media includes permanent and non-permanent, moveable and non- moveable media that can be implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile discs (DVDs) or other optical storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that is accessible to a computing device. According to the definition herein, computer readable media does not include transitory media, such as modulated data signals and carrier waves.
[0172] It should also be noted that the terms "comprising," "including," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but can also include other elements not expressly listed or inherent to such process, method, article, or apparatus. An element proceeded by "comprises a... " does not, without more constraints, exclude the existence of additional identical elements in the process, method, article, or apparatus that comprises the element.
[0173] The above description is merely illustrative of the application, and not restrictive. Various modifications and changes can become apparent to those skilled in the art. Incorporating any modification, equivalent substitution, improvement, etc. within the spirit and principle of the application, shall be included in the scope of the claims of the application.
Claims
1. A power consumption control method characterized by comprising: The method is suitable for an embedded controller in an electronic device, and comprises: monitoring a device state of the electronic device; wherein the device state can reflect power consumption of the electronic device; when an abnormal device state is monitored, determining whether a driving module for power consumption management in the electronic device is abnormal; the driving module is a software program running on an operating system layer of the electronic device; when the driving module is abnormal, performing power consumption control on the electronic device.
2. The method of claim 1, wherein, The determination of whether the driving module for power consumption management in the electronic device is abnormal comprises: detecting a module state in which the driving module is located; when the module state is an active state, determining that the driving module is normal; when the module state is an inactive state, determining that the driving module is abnormal.
3. The method of claim 2, wherein, The detection of the module state in which the driving module is located comprises: periodically notifying, at intervals of a first time length, a detection module in the electronic device that detection information needs to be sent to the driving module to detect the module state of the driving module; starting timing; determining the module state in which the driving module is located according to a detection response returned by the detection module before a timing time length reaches a second time length; the second time length is greater than the first time length.
4. The method of claim 3, wherein, The determination of the module state in which the driving module is located according to the detection response returned by the detection module before the timing time length reaches the second time length comprises: before the timing time length reaches the second time length: when a detection response returned by the detection module is received, determining that the driving module is in an active state, and stopping the periodic notification that the detection information needs to be sent to the driving module; if no detection response returned by the detection module is received, determining that the driving module is in an inactive state.
5. The method of claim 3, wherein, The determination of the module state in which the driving module is located according to the detection response returned by the detection module before the timing time length reaches the second time length comprises: determining a number of times that the detection response returned by the detection module is received within the second time length; determining a continuous detection period in which the driving module responds to the detection information according to a response parameter contained in the received detection response; wherein the response parameter can represent a corresponding detection period; determining the module state in which the driving module is located according to at least one of the number, the continuous detection period; wherein the module state in which the driving module is located is an active state, which comprises at least one of the following: the number is greater than or equal to a first threshold value, and a number of the continuous detection periods is greater than or equal to a second threshold value.
6. The method according to any one of claims 1 to 5, characterized in that, When the driving module is abnormal, performing power consumption control on the electronic device comprises: when the driving module is abnormal, starting a preset power consumption control strategy; adjusting running information of a first functional component in the electronic device controlled by the embedded controller according to the power consumption control strategy, and notifying a system-level chip in the electronic device to configure corresponding working parameters for a second functional component thereon.
7. The method according to any one of claims 1 to 5, characterized in that, The monitoring of the device state of the electronic device comprises: obtaining temperature information of the electronic device; and the monitoring of the abnormal device state comprises: When the temperature information exceeds a preset temperature threshold, it is determined that an abnormal device state of the electronic device is monitored.
8. A power consumption control method characterized by comprising: The method is suitable for an embedded controller in an electronic device, and the method comprises: When an abnormal temperature state of the electronic device is monitored, it is determined whether a driving module for power consumption management in the electronic device is abnormal; the driving module is a software program running on an operating system layer of the electronic device; When the driving module is abnormal, power consumption control is performed on the electronic device; Prompt information is output to prompt that the driving module has switched to the embedded controller for power consumption control.
9. The method of claim 8, wherein, Further comprising: Power consumption information of the electronic device is displayed through a display module of the electronic device.
10. An embedded controller, characterized by Comprising: A memory and a processor, wherein, The memory is configured to store a computer program; The processor is coupled to the memory and is configured to execute the computer program stored in the memory to implement the steps in the power consumption control method according to any one of claims 1 to 7, or to implement the steps in the power consumption control method according to claim 8 or 9.
11. An electronic device, comprising: Comprising: A driving module for power consumption management and the embedded controller according to claim 10; wherein the driving module is a software program running on an operating system layer of the electronic device.
12. A computer device, comprising: Comprising: A driving module, a state monitoring module and an embedded controller; wherein, The driving module is configured to control power consumption of the computer device; The state monitoring module is configured to monitor a device state of the computer device; wherein the device state can reflect power consumption of the computer device; The embedded controller is in communication connection with the state monitoring module and is configured to, when an abnormal device state of the computer device is monitored through the state monitoring module, determine whether the driving module is abnormal, and perform power consumption control on the computer device when the driving module is abnormal; wherein the driving module is a software program running on an operating system layer of the electronic device.
13. The computer device of claim 12, wherein, Further comprising: A detection module in communication with the embedded controller and the driving module; And when the embedded controller is used to determine whether the driving module is abnormal, it is specifically used to: Periodically notify the detection module that detection information needs to be sent to the driving module to detect a module state of the driving module; According to a detection response returned by the detection module within a set time length, determine the module state of the driving module; If the module state is an active state, it is determined that the driving module is normal; If the module state is an inactive state, it is determined that the driving module is abnormal.
Citation Information
Patent Citations
Method, device and equipment for adjusting power consumption of intelligent projection lamp and storage medium
CN117693093A