Heat dissipation method, device, computer device and readable storage medium for electronic equipment

By obtaining the hardware configuration information of the processor and motherboard and dynamically adjusting the fan speed, the problem of lack of hardware platform compatibility in traditional methods is solved, and efficient cross-platform thermal control and energy consumption management is achieved.

CN119271022BActive Publication Date: 2025-05-30SHENZHEN XUNLONG SOFTWARE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411814408.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-12-11
Publication Date
2025-05-30
Estimated Expiration
2044-12-11

AI Technical Summary

Technical Problem

Traditional fan adjustment and heat dissipation methods lack compatibility with different hardware platforms, resulting in poor thermal dissipation control effect in multi-platform environments, making it difficult to achieve efficient cross-platform performance optimization and energy consumption management.

Method used

By obtaining the hardware configuration information of the processor and motherboard, dynamically adjust the fan speed to adapt to different load conditions. The specific steps include determining the initial speed, obtaining load information, calculating the target electric power and target speed, and finally adjusting the fan speed.

Benefits of technology

Compatibility on different hardware platforms is achieved, cooling efficiency is improved, performance and energy consumption is balanced, battery life is extended, and operating costs and environmental impacts are reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119271022B_ABST
    Figure CN119271022B_ABST
Patent Text Reader

Abstract

The present application relates to a heat dissipation method, device, computer device and readable storage medium for an electronic device. The method includes: obtaining the hardware configuration information of a processor and the hardware configuration information of a motherboard; determining an initial rotation speed of a fan based on the hardware configuration information of the processor and the hardware configuration information of the motherboard; obtaining the load information of the electronic device, and determining a target electric power to which the electronic device needs to be adjusted during operation according to the load information; determining a target rotation speed of the fan according to the load information and the target electric power; and adjusting the fan from the initial rotation speed to the target rotation speed. By using this method, different hardware platforms can be compatible and the heat dissipation effect of the device can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and particularly to a heat dissipation method, device, computer device, computer-readable storage medium, and computer program product for an electronic device. Background Art

[0002] In modern portable devices, especially high-performance handheld computers and gaming handheld consoles, when running high-performance games or applications, core components such as the central processing unit (CPU) and graphics processing unit (GPU) will operate at high speeds and generate a large amount of heat. If the heat is not dissipated in time, the temperature of these components will rise, which may lead to a performance decline, manifested as phenomena such as game lag and frame drops. Reasonable fan adjustment and heat dissipation methods can help the handheld console automatically adjust power consumption under different loads, ensuring both performance requirements and saving electrical energy during light loads, and extending the battery life.

[0003] However, traditional fan adjustment and heat dissipation methods have an important defect, that is, the lack of compatibility with different hardware platforms. Specifically, existing heat dissipation control methods are usually optimized for specific hardware platforms and cannot well adapt to other hardware such as processors and graphics cards of different brands and models. This limitation results in a significant reduction in the effect of heat dissipation control in a multi-platform environment, making it difficult to achieve efficient cross-platform performance optimization and energy consumption management. And under high load conditions, the device may overly rely on the high-speed operation of the fan to dissipate heat, resulting in increased power consumption and shortened battery life. While under low load conditions, the fan may still maintain a high rotation speed, wasting electrical energy. This unreasonable energy consumption management not only increases the operating cost but also has an adverse impact on the environment. Summary of the Invention

[0004] Based on this, it is necessary to provide a heat dissipation method, device, computer device, computer-readable storage medium, and computer program product for an electronic device that can be compatible with different hardware platforms and improve the heat dissipation effect of the device.

[0005] In a first aspect, this application provides a heat dissipation method for an electronic device. The electronic device includes at least a processor, a motherboard, and a fan for heat dissipation. The method includes:

[0006] Obtain the hardware configuration information of the processor and the hardware configuration information of the motherboard;

[0007] Based on the hardware configuration information of the processor and the hardware configuration information of the motherboard, determine the initial rotation speed of the fan;

[0008] Obtain the load information of the electronic device, and determine the target electric power to which the electronic device needs to be adjusted during operation according to the load information;

[0009] Determine the target rotational speed of the fan according to the load information and the target electric power.

[0010] Adjust the fan from the initial rotational speed to the target rotational speed.

[0011] In one embodiment, the determining the initial rotational speed of the fan based on the hardware configuration information of the processor and the hardware configuration information of the motherboard includes:

[0012] Obtain a first mapping relationship between preset processor hardware configuration information and preset fan rotational speeds, and based on the first mapping relationship, determine a second fan rotational speed mapped by the hardware configuration information of the processor; obtain a first mapping relationship between preset motherboard hardware configuration information and preset fan rotational speeds, and based on the second mapping relationship, determine a second fan rotational speed mapped by the hardware configuration information of the motherboard; determine the initial rotational speed of the fan according to the first fan rotational speed and the second fan rotational speed.

[0013] In one embodiment, the determining the initial rotational speed of the fan according to the first fan rotational speed and the second fan rotational speed includes:

[0014] Take the fan rotational speed with the lower rotational speed among the first fan rotational speed and the second fan rotational speed as the recommended rotational speed; obtain a preset custom fan mode, and determine the initial rotational speed of the fan according to the custom rotational speed corresponding to the preset custom fan mode and the recommended rotational speed.

[0015] In one embodiment, the load information at least includes processor utilization rate; the obtaining the load information of the electronic device and determining the target electric power to which the electronic device needs to be adjusted during operation according to the load information includes:

[0016] Obtain the real-time processor utilization rate of the electronic device; look up the reference electric power corresponding to the real-time processor utilization rate in the power consumption adjustment rule library; take the reference electric power as the first target electric power to which the electronic device needs to be adjusted during operation.

[0017] In one embodiment, the load information further includes real-time frame rate; the taking the reference electric power as the first target electric power to which the electronic device needs to be adjusted during operation includes:

[0018] Use the reference electric power as the first target electric power that the electronic device needs to be adjusted to within the first operation duration; within the first operation duration, obtain the preset custom frame rate and the real-time frame rate of the electronic device; determine the frame rate difference between the real-time frame rate and the preset custom frame rate; when the frame rate difference is greater than the preset difference threshold, determine the second target electric power that the electronic device needs to be adjusted to within the second operation duration according to the frame rate difference, where the second operation duration is less than the first operation duration.

[0019] In one embodiment, the load information includes the real-time electric power of the electronic device and the real-time temperature of the processor; the determining the target rotation speed of the fan according to the load information and the target electric power includes:

[0020] During the process of adjusting the electronic device from the initial electric power to the target electric power, obtain the real-time electric power and the real-time frame rate of the electronic device; obtain the real-time temperature and the real-time processor utilization rate of the processor; determine the target rotation speed of the fan according to the real-time temperature, the real-time processor utilization rate, the real-time frame rate, and the real-time electric power.

[0021] In a second aspect, the present application also provides an electronic device heat dissipation device, including:

[0022] An acquisition module, configured to acquire the hardware configuration information of the processor and the hardware configuration information of the motherboard;

[0023] A first determination module, configured to determine the initial rotation speed of the fan based on the hardware configuration information of the processor and the hardware configuration information of the motherboard;

[0024] A second determination module, configured to acquire the load information of the electronic device and determine the target electric power that the electronic device needs to be adjusted to during operation according to the load information;

[0025] A third determination module, configured to determine the target rotation speed of the fan according to the load information and the target electric power;

[0026] An adjustment module, configured to adjust the fan from the initial rotation speed to the target rotation speed.

[0027] In a third aspect, the present application also provides a computer device, including a memory and a processor, where the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0028] Acquire the hardware configuration information of the processor and the hardware configuration information of the motherboard;

[0029] Determine the initial rotation speed of the fan based on the hardware configuration information of the processor and the hardware configuration information of the motherboard;

[0030] Obtain the load information of the electronic device, and determine the target electric power to which the electronic device needs to be adjusted during operation according to the load information;

[0031] Determine the target rotation speed of the fan according to the load information and the target electric power;

[0032] Adjust the fan from the initial rotation speed to the target rotation speed.

[0033] In a fourth aspect, the present application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0034] Obtain the hardware configuration information of the processor and the hardware configuration information of the motherboard;

[0035] Determine the initial rotation speed of the fan based on the hardware configuration information of the processor and the hardware configuration information of the motherboard;

[0036] Obtain the load information of the electronic device, and determine the target electric power to which the electronic device needs to be adjusted during operation according to the load information;

[0037] Determine the target rotation speed of the fan according to the load information and the target electric power;

[0038] Adjust the fan from the initial rotation speed to the target rotation speed.

[0039] In a fifth aspect, the present application also provides a computer program product, including a computer program, and when the computer program is executed by a processor, the following steps are implemented:

[0040] Obtain the hardware configuration information of the processor and the hardware configuration information of the motherboard;

[0041] Determine the initial rotation speed of the fan based on the hardware configuration information of the processor and the hardware configuration information of the motherboard;

[0042] Obtain the load information of the electronic device, and determine the target electric power to which the electronic device needs to be adjusted during operation according to the load information;

[0043] Determine the target rotation speed of the fan according to the load information and the target electric power;

[0044] Adjust the fan from the initial rotation speed to the target rotation speed.

[0045] The above-mentioned electronic device heat dissipation method, device, computer device, computer-readable storage medium, and computer program product obtain the hardware configuration information of the processor and the hardware configuration information of the motherboard, ensuring that the solution can be compatible with processors and motherboards of multiple different brands and models, improving the versatility and adaptability of the solution, and avoiding the limitations caused by optimizing for specific hardware platforms in traditional methods. Based on the hardware configuration information of the processor and the hardware configuration information of the motherboard, the initial rotation speed of the fan is determined. By reasonably setting the initial rotation speed, overheating or noise problems caused by improper fan rotation speed at the initial stage of device startup can be avoided, and a foundation for subsequent dynamic adjustment is laid. The load information of the electronic device is obtained, and the target electric power to which the electronic device needs to be adjusted during operation is determined according to the load information. Through precise load detection, the power consumption of the device can be dynamically adjusted, ensuring sufficient performance support under high loads, saving electrical energy under low loads, and extending the battery life. According to the load information and the target electric power, the target rotation speed of the fan is determined, ensuring that the fan rotation speed can be dynamically adjusted according to actual needs, avoiding the overheating risk caused by insufficient fan rotation speed under high loads, and the energy waste caused by too high fan rotation speed under low loads. The fan is adjusted from the initial rotation speed to the target rotation speed. By dynamically adjusting the fan rotation speed, not only can the heat dissipation efficiency be improved, but also a balance between silence and performance can be achieved in different usage scenarios, enhancing the user experience. At the same time, reasonable fan control also helps to extend the service life of the hardware. Description of the Drawings

[0046] To more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the following will briefly introduce the drawings required for use in the description of the embodiments of the present application or related technologies. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other related drawings can also be obtained based on these drawings.

[0047] Figure 1 It is an application environment diagram of the electronic device heat dissipation method in an embodiment;

[0048] Figure 2 It is a flowchart of the electronic device heat dissipation method in an embodiment;

[0049] Figure 3 It is a flowchart of the electronic device heat dissipation method in another embodiment;

[0050] Figure 4 It is a structural block diagram of the electronic device heat dissipation device in an embodiment;

[0051] Figure 5Internal structure diagram of a computer device in an embodiment. Detailed implementation manners

[0052] To make the objectives, technical solutions and advantages of the present application more clear and understandable, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0053] The electronic device heat dissipation method provided by the embodiments of the present application can be applied to, for example, Figure 1 the application environment shown in the figure. Among them, the terminal 102 communicates with the server 104 through the network. The data storage system can store the data that the server 104 needs to process. The data storage system can be integrated on the server 104, or can be placed in the cloud or other network servers. The terminal 102 is used to generate an electronic device heat dissipation request and send the electronic device heat dissipation request to the server 104, so that the server 104 adjusts the fan from the initial rotation speed to the target rotation speed. Among them, the terminal 102 can be a handheld console, also known as a portable game console or a handheld game console, which is a device designed for electronic game entertainment on the move. The server 104 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server providing cloud computing services.

[0054] In an exemplary embodiment, as Figure 2 shown in the figure, a method for dissipating heat from an electronic device is provided. Taking the method applied to the Figure 1 server 104 in the figure as an example, the method includes the following steps 202 to 210. Among them:

[0055] Step 202, obtain the hardware configuration information of the processor and the hardware configuration information of the motherboard.

[0056] Among them, an electronic device refers to a portable device with computing power and graphics processing power, such as a high-performance handheld computer or a game handheld console. Such devices integrate components such as a processor, a motherboard, and a fan, and are used to execute various application programs.

[0057] The processor refers to the central processing unit (CPU) or the accelerated processing unit (APU) in the electronic device. It is the core component of the device and is responsible for executing the instruction set and processing data.

[0058] The motherboard refers to the main circuit board inside the electronic device. It connects the processor, memory, storage device and other peripherals. The motherboard contains various chips, interfaces and circuits, and is used to support the basic functions and expansion capabilities of the device.

[0059] A fan refers to a component used to help an electronic device dissipate heat, which generates an air flow by rotation to carry away the heat generated inside the device. In this application, the rotation speed of the fan can be dynamically adjusted according to the actual load and temperature of the device, etc., so as to achieve the best heat dissipation effect and noise control.

[0060] The hardware configuration information of the processor refers to the information about the specific specifications and capabilities of the processor, including but not limited to the brand, model, number of cores, maximum frequency, etc. of the processor. This information is crucial for determining the appropriate fan rotation speed and heat dissipation strategy.

[0061] The hardware configuration information of the motherboard refers to the information about the specific specifications and capabilities of the motherboard, including but not limited to the model of the motherboard, supported slot types, scalability, etc. The hardware configuration information of the motherboard is equally important because it determines the overall architecture and compatibility of the device, and affects the selection and adjustment methods of heat dissipation components such as fans.

[0062] Specifically, first read the basic information such as the brand, model, number of cores, maximum frequency, etc. of the processor through a specific startup device identification interface (application programming interface). Or obtain the basic information such as the brand, model, number of cores, maximum frequency, etc. of the processor by directly accessing the hardware register. Further analyze the obtained hardware configuration information of the processor to ensure the accuracy and integrity of the data. For example, verify whether the model of the processor supports specific power consumption and temperature regulation functions.

[0063] Then also read the basic information such as the manufacturer, model, supported slot types, etc. of the motherboard through a specific startup device identification interface (application programming interface). Or obtain the basic information such as the manufacturer, model, supported slot types, etc. of the motherboard by directly accessing the hardware register. Further analyze the obtained hardware configuration information of the motherboard to ensure the accuracy and integrity of the data. For example, verify whether the model of the processor supports specific hardware interfaces and functions, such as thermal design power regulation, fan control, etc. It can be understood that thermal design power regulation refers to dynamically adjusting the thermal design power of the processor according to the actual workload and environmental conditions to optimize performance and power consumption. This regulation can be achieved by adjusting parameters such as the frequency and voltage of the processor.

[0064] Step 204, based on the hardware configuration information of the processor and the hardware configuration information of the motherboard, determine the initial rotation speed of the fan.

[0065] Among them, the initial speed refers to the speed at which the fan starts or is set by default under specific conditions. Specifically, the initial speed is a reference speed determined based on the hardware configuration information of the processor and the motherboard after obtaining such information. Understandably, the initial speed is the default setting before the specific load situation is detected, aiming to provide a reasonable heat dissipation level when the device starts, while avoiding unnecessary noise and energy consumption.

[0066] Specifically, first obtain the hardware configuration database, which includes processor configuration reference entries and motherboard configuration reference entries. Match the multiple processor configuration reference information included in the processor configuration reference entries with the hardware configuration information of the processor respectively to obtain the target processor configuration reference information that matches the hardware configuration information of the processor.

[0067] Then, use the fan speed corresponding to the target processor configuration reference information in the processor configuration reference entry as the first fan speed. Match the multiple motherboard configuration reference information included in the motherboard configuration reference entries with the hardware configuration information of the motherboard respectively to obtain the target motherboard configuration reference information that matches the hardware configuration information of the motherboard. Use the fan speed corresponding to the target motherboard configuration reference information in the motherboard configuration reference entry as the second fan speed. Determine the initial speed of the fan according to the first fan speed and the second fan speed.

[0068] Step 206: Obtain the load information of the electronic device, and determine the target electric power to which the electronic device needs to be adjusted during operation according to the load information.

[0069] Among them, the load information refers to the current working load situation of the electronic device during operation. It includes but is not limited to: processor utilization rate, memory usage, processor temperature, frame rate, electric power, storage device load, etc.

[0070] The target electric power refers to the electric power value that the electronic device should be adjusted to during operation determined according to the current load information. This value is used to balance the performance and heat dissipation requirements of the device.

[0071] Specifically, first obtain the load information of the electronic device, including: start the load monitoring module to prepare for real-time monitoring of the load information of the device. Understandably, the load monitoring module can be a software module responsible for collecting and processing various load data.

[0072] Optionally, the processor includes a CPU (Central Processing Unit) and a GPU (Graphics Processing Unit). Use the system API (system application programming interface) to obtain information such as the utilization rate of the CPU and the length of the task queue. For example, use a command or call the API to obtain the current utilization rate of the CPU. Use the graphics API (graphics application programming interface) to obtain information such as the utilization rate of the GPU and the length of the rendering task queue. For example, use the performance counter provided by the graphics API to obtain the current utilization rate of the GPU. Use the system API to obtain information such as the occupancy rate of the memory and the bandwidth utilization rate. For example, use a command or API call to obtain the current occupancy rate of the memory. Use the system API to obtain information such as the read / write speed of the disk and the length of the I / O request queue. For example, use a command or API call to obtain the current read / write speed of the disk. Use the graphics API or a dedicated library to obtain the frame rate of the current screen. For example, use the performance counter provided by OpenGL (graphics processing library) or DirectX (graphics rendering library) to obtain the frame rate of the current screen.

[0073] Then establish a relationship model between the load and the electric power, including establishing a relationship model between the load and the electric power based on historical data and experimental results. The relationship model can be a mathematical function or a set of mapping tables for converting load information into electric power requirements.

[0074] Finally, load the power consumption adjustment rule library from the configuration file or the database. The rules in the power consumption adjustment rule library usually define the recommended electric power values based on different electric power requirements. According to the evaluated electric power requirements, find the recommended electric power value from the power consumption adjustment rule library as the target electric power.

[0075] Step 208, determine the target speed of the fan according to the load information and the target electric power.

[0076] Among them, the target speed refers to the speed to which the fan should be adjusted determined according to the current load information and the target electric power. It can be understood that this speed is to ensure that the device can effectively dissipate heat under the current load condition while balancing noise and energy consumption.

[0077] Specifically, first load the fan speed adjustment rules from the configuration file or the database. It can be understood that the fan speed adjustment rules define the recommended fan speeds based on different load levels and target electric powers. Then, according to the current target electric power, find the corresponding target speed from the fan speed adjustment rules. For example, if the target electric power is 25 W, the target speed should be 1500 RPM.

[0078] Step 210, adjust the fan from the initial speed to the target speed.

[0079] Specifically, first, start the fan control module and prepare to adjust the fan speed according to the target speed. It can be understood that the fan control module is a software module responsible for communicating with the fan hardware interface and controlling the fan speed. Then, read the current fan speed, i.e., the initial speed, through the system interface. For example, use a command or API call to obtain the current fan speed, which is the initial speed. Next, through the fan control module, send an adjustment instruction to adjust the fan from the current initial speed to the target speed. For example, use a command or API call to set the new fan speed, which is the target speed. Finally, read the fan speed again through the system interface to confirm that the fan has been successfully adjusted to the target speed. Further, if the adjustment fails, record the error information and perform troubleshooting.

[0080] Optionally, after adjusting the fan speed, continuously monitor the fan speed to ensure it is stable at the target speed. For example, read the fan speed once every period of time (such as every second). According to the real-time feedback data, dynamically adjust the fan speed. If it is found that the adjusted speed is not ideal or the processor temperature is too high, the fan speed can be further adjusted until the best performance and heat dissipation balance are achieved. For example, if the processor temperature is still too high, the fan speed can be further increased.

[0081] In one embodiment, obtain a first mapping relationship between the preset processor hardware configuration information and the preset fan speed. Based on the first mapping relationship, determine the first fan speed mapped by the hardware configuration information of the processor; obtain a second mapping relationship between the preset motherboard hardware configuration information and the preset fan speed. Based on the second mapping relationship, determine the second fan speed mapped by the hardware configuration information of the motherboard; determine the initial fan speed according to the first fan speed and the second fan speed.

[0082] Among them, the preset fan speed refers to a series of fan speed values preset according to different hardware configurations (such as the processor and the motherboard). A mapping relationship is established between these speed values and the hardware configuration information, that is, under a specific hardware configuration, what kind of fan speed should be used to achieve the best heat dissipation effect.

[0083] The first fan speed refers to the fan speed for the processor determined based on the hardware configuration information of the processor through a preset mapping relationship (i.e., the first mapping relationship between the preset processor hardware configuration information and the preset fan speed). In short, it is the fan speed specifically matched to the current hardware configuration of the processor.

[0084] The second fan speed refers to the fan speed determined for the motherboard based on the hardware configuration information of the motherboard through a preset mapping relationship (i.e., the second mapping relationship between the preset motherboard hardware configuration information and the preset fan speed). That is to say, it is the fan speed determined according to the current hardware configuration of the motherboard.

[0085] Specifically, first, a series of fan speed values are preset according to different processor hardware configurations (such as processor model, number of cores, maximum frequency, etc.). A mapping relationship is established between these speed values and the processor hardware configuration information, that is, under a specific processor hardware configuration, what kind of fan speed should be used to achieve the best heat dissipation effect. Ensure that under different processor hardware configurations, the fan can provide appropriate heat dissipation performance. Further, read the hardware configuration information of the processor in the current device (such as model, number of cores, maximum frequency, etc.). According to the mapping relationship established between the speed values and the processor hardware configuration information in the previous step, determine the fan speed that matches the current processor hardware configuration, that is, the first fan speed. The purpose is to provide an initial fan speed suitable for its hardware configuration for the processor to ensure that the processor will not cause performance degradation or damage due to overheating during startup.

[0086] Then, a series of fan speed values are preset according to different motherboard hardware configurations (such as motherboard model, expansion slots, memory type, etc.). A mapping relationship is established between these speed values and the motherboard hardware configuration information, that is, under a specific motherboard hardware configuration, what kind of fan speed should be used to achieve the best heat dissipation effect. Ensure that under different motherboard hardware configurations, the fan can provide appropriate heat dissipation performance. Further, read the hardware configuration information of the motherboard in the current device (such as model, expansion slots, memory type, etc.). According to the mapping relationship established between the speed values and the motherboard hardware configuration information in the previous step, determine the fan speed that matches the current motherboard hardware configuration, that is, the second fan speed. The purpose is to provide an initial fan speed suitable for its hardware configuration for the motherboard to ensure that the motherboard will not cause performance degradation or damage due to overheating during startup.

[0087] Finally, after obtaining the first fan speed (the fan speed corresponding to the processor) and the second fan speed (the fan speed corresponding to the motherboard), comprehensively consider these two speed values to determine a final initial fan speed. This initial speed is to ensure that the entire system (including the processor and the motherboard) can operate within a reasonable temperature range when the device starts up.

[0088] By separately determining the appropriate first fan speed and second fan speed according to the hardware configuration information of the processor and the motherboard, and then synthesizing these two speed values to determine the initial fan speed, it ensures that the device can dissipate heat quickly when starting up, preventing overheating. And it improves the overall heat dissipation efficiency, ensuring that the device can maintain a lower temperature under high load, avoiding performance degradation and hardware damage caused by overheating.

[0089] In one embodiment, the fan speed with the smaller value among the first fan speed and the second fan speed is used as the recommended speed; obtain the preset custom fan mode, and determine the initial fan speed according to the custom speed and the recommended speed corresponding to the preset custom fan mode.

[0090] Among them, the recommended speed refers to selecting the smaller one of the first fan speed (the fan speed corresponding to the processor) and the second fan speed (the fan speed corresponding to the motherboard) as the recommended speed. It can be understood that choosing the smaller speed is to minimize unnecessary noise and power consumption on the premise of ensuring the heat dissipation effect. This can ensure that the device does not generate excessive noise due to too high a fan speed when starting up, and at the same time can effectively control the power consumption.

[0091] The preset custom fan mode refers to a fan control mode that users can customize. This mode allows users to manually set the fan speed and other related parameters according to their own needs and preferences. The purpose is to provide users with more control, enabling users to flexibly adjust the fan speed according to different usage scenarios and needs to achieve the best heat dissipation effect and usage experience.

[0092] The custom speed refers to the fan speed manually set by the user in the preset custom fan mode. Users can set a specific fan speed according to the actual usage situation of the device and their own preferences. The purpose is to meet the personalized needs of users, enabling users to optimize the heat dissipation and noise performance of the device by adjusting the fan speed in different usage scenarios.

[0093] Specifically, first, after determining the first fan speed (the fan speed corresponding to the processor) and the second fan speed (the fan speed corresponding to the motherboard), select the smaller one of these two speeds as the recommended speed. Then detect whether the preset custom fan mode is set. If the custom fan mode is set, read the custom speed in this mode. Finally, compare the custom speed with the recommended speed. If the recommended speed is greater than the custom speed, use the recommended speed as the initial fan speed. If the recommended speed is equal to the custom speed, use the recommended speed or the custom speed as the initial fan speed. If the recommended speed is less than the custom speed, use the custom speed as the initial fan speed.

[0094] Since it not only considers the hardware configurations of the processor and the motherboard, but also allows users to customize the fan mode, the system can adapt to different hardware configurations and user requirements. Moreover, by providing dual guarantees of recommended rotation speed and user-defined rotation speed, it ensures that the device can quickly reach the optimal heat dissipation state when starting up, while meeting the personalized needs of users.

[0095] In one embodiment, obtain the real-time processor utilization rate of the electronic device; look up the reference electric power corresponding to the real-time processor utilization rate in the power consumption adjustment rule library; use the reference electric power as the first target electric power to which the electronic device needs to be adjusted during operation.

[0096] The real-time processor utilization rate refers to the usage rate of the processor at the current moment, that is, the proportion of the tasks being executed by the processor in the total processing capacity. It is usually expressed as a percentage. For example, 50% means the usage rate of the processor is 50%. Understandably, by monitoring the processor utilization rate in real time, the current load situation of the device can be understood, providing a basis for subsequent power consumption adjustment.

[0097] The power consumption adjustment rule library refers to a database or rule set containing recommended electric power values corresponding to different processor utilization rates. These rules are usually established based on historical data and experimental results, and are used to convert the processor utilization rate into an appropriate electric power value. Understandably, through the power consumption adjustment rule library, the recommended electric power corresponding to the current processor utilization rate can be quickly found and determined, thus realizing dynamic power consumption adjustment.

[0098] The reference electric power refers to the recommended electric power value corresponding to the current real-time processor utilization rate in the power consumption adjustment rule library. This value is preset according to historical data and experimental results, aiming to ensure the best balance between the performance and heat dissipation of the device under different loads. The purpose is to provide a standard electric power value as a reference for subsequent power consumption adjustment.

[0099] The first target electric power refers to the electric power value to which the electronic device needs to be adjusted during the current operation determined according to the reference electric power. This value is calculated based on the current processor utilization rate and the power consumption adjustment rule library. By adjusting the electric power of the device to the first target electric power, it ensures that the device can maintain the best performance and heat dissipation effect under the current load, while optimizing the energy efficiency ratio.

[0100] Specifically, first, a dedicated monitoring tool or API (such as system performance counters) is used to monitor the utilization rate of the processor in real time. And record the current processor utilization rate value. Then access the power consumption adjustment rule library. According to the current processor utilization rate value, find the corresponding reference electric power value. It can be understood that the power consumption adjustment rule library stores the recommended electric power values corresponding to different processor utilization rates, and these values are usually preset based on historical data and experimental results. Finally, set the found reference electric power value as the first target electric power. And by dynamically adjusting the power consumption upper limit of the processor, make it reach the first target electric power. The thermal design power consumption adjustment function refers to controlling the power consumption and heat generation of the processor by dynamically adjusting the thermal design power consumption value of the processor. This adjustment can be achieved by setting short-term and long-term power consumption limits, so as to optimize the performance and heat dissipation effect of the device under different load conditions. Optionally, the power consumption of the processor can be dynamically adjusted by setting short-term and long-term power consumption limits.

[0101] Adopting the above solution can not only dynamically adjust the power consumption according to the real-time processor utilization rate of the device, optimize the performance and heat dissipation effect of the device, but also improve the energy efficiency ratio, extend the hardware life, and reduce the noise. And it is not only applicable to specific hardware configurations, but also supports multiple processor and device models through the power consumption adjustment rule library. It improves the compatibility and flexibility of the system, can adapt to different hardware platforms and usage scenarios, and enhances the generality and scalability of the system.

[0102] In one embodiment, the reference electric power is used as the first target electric power that the electronic device needs to adjust to within the first operation duration; within the first operation duration, obtain the preset custom frame rate and the real-time frame rate of the electronic device; determine the frame rate difference between the real-time frame rate and the preset custom frame rate; when the frame rate difference is greater than the preset difference threshold, determine the second target electric power that the electronic device needs to adjust to within the second operation duration according to the frame rate difference, and the second operation duration is less than the first operation duration.

[0103] Among them, the first operation duration refers to the time period during which the reference electric power is used as the target electric power after the device is started or a certain specific operation begins. It can be understood that the reference electric power, that is, the first target electric power, is determined according to the real-time processor utilization rate, and the processor utilization rate reflects the overall load situation of the device and is a relatively stable index. By using the processor utilization rate for long-term power consumption limit, it can ensure that the device maintains stable performance and heat dissipation effect during long-term operation. Long-term high-load operation may cause hardware overheating and damage. Therefore, the first operation duration is a relatively long duration compared to the second operation duration.

[0104] The preset custom frame rate refers to a desired frame rate (FPS) manually set by the user according to their own needs and preferences. The purpose is to provide a standard frame rate as a reference for evaluating the performance of the current device. For example, the preset custom frame rate set by the user is 60 FPS.

[0105] The real-time frame rate refers to the frame rate of the device during its current actual operation, that is, the number of images displayed per second. The purpose is to understand the current performance of the device by monitoring the frame rate in real time, providing a basis for subsequent power consumption adjustment. For example, the current real-time frame rate of the device is 55 FPS.

[0106] The preset difference threshold refers to a critical value of the frame rate difference preset by the user or the system, used to judge the degree to which the current real-time frame rate deviates from the preset custom frame rate. The purpose is to take further power consumption adjustment measures when the difference between the real-time frame rate and the preset custom frame rate exceeds this threshold.

[0107] The second running duration refers to the time period within the first running duration during which further power consumption adjustment is performed based on the difference between the real-time frame rate and the preset custom frame rate. It can be understood that the second target electric power is determined based on the real-time frame rate. As a very sensitive indicator, the real-time frame rate can quickly reflect the current load changes and performance. By limiting the power consumption in the short term through the real-time frame rate, it can quickly respond to load changes and ensure that the device maintains the best performance in a short time. High load in a short time may cause the temperature to rise rapidly. By limiting the power consumption in the short term, it can prevent the device from overheating and avoid performance degradation and hardware damage caused by overheating. And the real-time frame rate directly affects the user's visual experience. By limiting the power consumption in the short term, it can improve the performance at critical moments (such as high-intensity scenes in games) and ensure a smooth user experience. Therefore, the second running duration is a short time period compared to the first running duration, and the second running duration belongs to one of the continuous time periods within the first running duration.

[0108] The second target electric power refers to the new electric power value determined within the second running duration based on the difference between the real-time frame rate and the preset custom frame rate. The purpose is to ensure better performance and heat dissipation of the device under the current load by adjusting the electric power. For example, if the real-time frame rate is lower than the preset custom frame rate, the system may increase the electric power to improve performance; if the real-time frame rate is higher than the preset custom frame rate, the system may reduce the electric power to save energy.

[0109] Specifically, first, after the device starts up or a specific operation begins (which can be set according to actual needs), the reference electric power is taken as the target electric power, and power consumption adjustment is carried out within the first operation duration to ensure that the device can quickly enter a stable working state at the initial stage of startup or operation. Then, within the first operation duration, obtain the preset custom frame rate set by the user, and use a dedicated frame rate monitoring tool or API to monitor the real-time frame rate of the device in real time. Next, calculate the difference between the real-time frame rate and the preset custom frame rate. For example, if the preset custom frame rate is 60 FPS and the real-time frame rate is 55 FPS, then the frame rate difference is 5 FPS. Finally, determine whether the frame rate difference is greater than the preset difference threshold. If the frame rate difference is greater than the preset difference threshold, determine a new electric power value (the second target electric power) according to the frame rate difference, and adjust the electric power to the second target electric power within the second operation duration. If the frame rate difference is not greater than the preset difference threshold, keep the electric power of the electronic device within the first operation duration as the first target electric power.

[0110] Since short-term power consumption is limited by the real-time frame rate, the system can quickly respond to high-load scenarios in a short time, ensuring that the device can provide sufficient performance at critical moments (such as high-intensity scenarios in games). Long-term power consumption limitation through the processor utilization rate can ensure that the device maintains stable performance and heat dissipation effects during long-term operation. Long-term high-load operation may cause hardware overheating and damage.

[0111] In one embodiment, during the process of adjusting the electronic device from the initial electric power to the target electric power, obtain the real-time electric power and real-time frame rate of the electronic device; obtain the real-time temperature and real-time processor utilization rate of the processor; and determine the target rotation speed of the fan according to the real-time temperature, real-time processor utilization rate, real-time frame rate, and real-time electric power.

[0112] Among them, the initial electric power refers to the electric power value of the device when it starts up or a specific operation begins. This is the electric power state of the device before any power consumption adjustment is carried out, aiming to provide a reference value for subsequent power consumption adjustment and performance optimization.

[0113] The real-time electric power refers to the electric power value actually consumed by the device at the current moment. This is a dynamically changing value that will change with the load of the device and the change of the power consumption adjustment strategy. By monitoring the electric power in real time, the current power consumption state of the device can be understood, providing a basis for subsequent power consumption adjustment and fan speed adjustment.

[0114] The real-time temperature refers to the temperature of the processor of the electronic device at the current moment. This is a dynamically changing value that varies with the load and heat dissipation conditions of the device. Understandably, by monitoring the processor temperature in real time, the current heat dissipation state of the device can be understood, providing a basis for subsequent power consumption adjustment and fan speed adjustment.

[0115] Specifically, first obtain the initial electric power of the electronic device. And during the process of adjusting the electronic device from the initial electric power to the target electric power, real-time monitor the real-time electric power and real-time frame rate of the electronic device. For example, when the electronic device starts up, the initial electric power is 20W, and the target electric power determined through the previous steps is 30W. During the process of adjusting the electric power of the electronic device from 20W to 30W, it is monitored in real time that the current real-time electric power of the electronic device is 25W and the current real-time frame rate is 55 FPS. At the same time, during the process of adjusting the electronic device from the initial electric power to the target electric power, the real-time temperature and real-time processor utilization rate of the processor are monitored in real time. For example, it is monitored in real time that the real-time temperature of the processor is 70°C and the real-time utilization rate of the processor is 70%.

[0116] Then, based on the real-time temperature, real-time processor utilization rate, real-time frame rate, and real-time electric power, comprehensively consider these factors to determine the target speed of the fan. Optionally, a weight coefficient is set for each of these factors of real-time temperature, real-time processor utilization rate, real-time frame rate, and real-time electric power in advance. Set a temperature weight coefficient for the real-time temperature in advance; set a utilization rate weight coefficient for the real-time processor utilization rate; set a frame rate weight coefficient for the real-time frame rate; set an electric power weight coefficient for the real-time electric power.

[0117] Next, through the preset temperature weight coefficient, utilization rate weight coefficient, frame rate weight coefficient, and electric power weight coefficient, perform a weighted sum of the real-time temperature, real-time processor utilization rate, real-time frame rate, and real-time electric power to obtain the real-time load score of the electronic device.

[0118] Finally, look up the speed corresponding to the real-time load score in the load speed rule library, and use the found speed as the target speed. Understandably, the load speed rule library records the mapping relationships between multiple load scores and speeds.

[0119] Since the solution is not only applicable to specific hardware configurations, but also supports multiple processor and device models through a power consumption adjustment rule library and a fan speed adjustment strategy. It improves the compatibility and flexibility of the system, enables it to adapt to different hardware platforms and usage scenarios, and enhances the versatility and scalability of the system. And by comprehensively considering multiple real-time parameters, it dynamically adjusts the fan speed to ensure that the device can maintain the best performance and heat dissipation effect under different load and power consumption states. Especially in high-load scenarios, it can respond quickly to ensure that the device provides the best performance and heat dissipation effect at critical moments.

[0120] In an exemplary embodiment, as Figure 3 shown, it includes steps 302 to 310. Among them:

[0121] Step 302, obtain the hardware configuration information of the processor and the hardware configuration information of the motherboard;

[0122] Step 304, obtain the first mapping relationship between the preset processor hardware configuration information and the preset fan speed. Based on the first mapping relationship, determine the first fan speed mapped by the hardware configuration information of the processor; obtain the first mapping relationship between the preset motherboard hardware configuration information and the preset fan speed. Based on the second mapping relationship, determine the second fan speed mapped by the hardware configuration information of the motherboard; take the fan speed with the smaller value among the first fan speed and the second fan speed as the recommended speed; obtain the preset custom fan mode, and according to the custom speed corresponding to the preset custom fan mode and the recommended speed, determine the initial speed of the fan;

[0123] Step 306, obtain the real-time processor utilization rate of the electronic device; find the reference electric power corresponding to the real-time processor utilization rate in the power consumption adjustment rule library; take the reference electric power as the first target electric power that the electronic device needs to be adjusted to within the first running duration; within the first running duration, obtain the preset custom frame rate and the real-time frame rate of the electronic device; determine the frame rate difference between the real-time frame rate and the preset custom frame rate; when the frame rate difference is greater than the preset difference threshold, according to the frame rate difference, determine the second target electric power that the electronic device needs to be adjusted to within the second running duration, and the second running duration is less than the first running duration;

[0124] Step 308, during the process of adjusting the electronic device from the initial electric power to the target electric power, obtain the real-time electric power and the real-time frame rate of the electronic device; obtain the real-time temperature and the real-time processor utilization rate of the processor; according to the real-time temperature, the real-time processor utilization rate, the real-time frame rate and the real-time electric power, determine the target speed of the fan;

[0125] Step 310, adjust the fan from the initial speed to the target speed.

[0126] It should be understood that although the steps in the flowcharts involved in the above embodiments are shown in sequence according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless there is a clear indication in this article, there is no strict order limit for the execution of these steps, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be executed alternately or in turn with at least a part of other steps or steps or stages in other steps.

[0127] Based on the same inventive concept, an embodiment of the present application also provides an electronic device heat dissipation device for implementing the above-mentioned electronic device heat dissipation method. The solution provided by this device to solve the problem is similar to the solution described in the above method. Therefore, the specific limitations in one or more embodiments of the following electronic device heat dissipation device can refer to the limitations on the electronic device heat dissipation method in the above text, and will not be repeated here.

[0128] In an exemplary embodiment, as Figure 4 shown, an electronic device heat dissipation device 400 is provided, including: an acquisition module 402, a first determination module 404, a second determination module 406, a third determination module 408, and an adjustment module 410, where:

[0129] The acquisition module 402 is configured to acquire the hardware configuration information of the processor and the hardware configuration information of the motherboard;

[0130] The first determination module 404 is configured to determine the initial rotation speed of the fan based on the hardware configuration information of the processor and the hardware configuration information of the motherboard;

[0131] The second determination module 406 is configured to acquire the load information of the electronic device and determine the target electric power to which the electronic device needs to be adjusted during operation according to the load information;

[0132] The third determination module 408 is configured to determine the target rotation speed of the fan according to the load information and the target electric power;

[0133] The adjustment module 410 is configured to adjust the fan from the initial rotation speed to the target rotation speed.

[0134] In one embodiment, the first determination module 404 is configured to obtain a first mapping relationship between preset processor hardware configuration information and a preset fan speed, and based on the first mapping relationship, determine a first fan speed mapped by the hardware configuration information of the processor; obtain a first mapping relationship between preset motherboard hardware configuration information and a preset fan speed, and based on the second mapping relationship, determine a second fan speed mapped by the hardware configuration information of the motherboard; and determine an initial fan speed according to the first fan speed and the second fan speed.

[0135] In one embodiment, the first determination module 404 is configured to use the smaller fan speed among the first fan speed and the second fan speed as the recommended speed; obtain a preset custom fan mode, and determine an initial fan speed according to the custom speed corresponding to the preset custom fan mode and the recommended speed.

[0136] In one embodiment, the second determination module 406 is configured to obtain the real-time processor utilization rate of the electronic device; search for a reference electric power corresponding to the real-time processor utilization rate in a power consumption adjustment rule library; and use the reference electric power as a first target electric power to which the electronic device needs to be adjusted during operation.

[0137] In one embodiment, the second determination module 406 is configured to use the reference electric power as a first target electric power to which the electronic device needs to be adjusted during a first operation duration; during the first operation duration, obtain a preset custom frame rate and the real-time frame rate of the electronic device; determine a frame rate difference between the real-time frame rate and the preset custom frame rate; and when the frame rate difference is greater than a preset difference threshold, determine a second target electric power to which the electronic device needs to be adjusted during a second operation duration according to the frame rate difference, where the second operation duration is less than the first operation duration.

[0138] In one embodiment, the third determination module 408 is configured to obtain the real-time electric power and the real-time frame rate of the electronic device during the process of adjusting the electronic device from an initial electric power to a target electric power; obtain the real-time temperature and the real-time processor utilization rate of the processor; and determine a target speed of the fan according to the real-time temperature, the real-time processor utilization rate, the real-time frame rate, and the real-time electric power.

[0139] Each module in the above electronic device heat dissipation device can be implemented in whole or in part by software, hardware, and their combination. The above modules can be embedded in the processor in the computer device in hardware form or be independent of the processor, or can be stored in the memory in the computer device in software form, so as to facilitate the processor to call and execute the operations corresponding to the above respective modules.

[0140] In an exemplary embodiment, a computer device is provided. The computer device can be a server, and its internal structure diagram can be as Figure 5As shown in the figure. The computer device includes a processor, a memory, an input / output interface (Input / Output, abbreviated as I / O), and a communication interface. Among them, the processor, the memory, and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data related to the heat dissipation of the electronic device. The input / output interface of the computer device is used to exchange information between the processor and external devices. The communication interface of the computer device is used to communicate with external terminals through a network connection. When the computer program is executed by the processor, it implements a method for heat dissipation of an electronic device.

[0141] Those skilled in the art can understand that Figure 5 the structure shown in the figure is only a block diagram of some structures related to the solution of this application, and does not constitute a limitation on the computer device to which the solution of this application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine some components, or have different component arrangements.

[0142] In one embodiment, a computer device is further provided, including a memory and a processor. A computer program is stored in the memory, and when the processor executes the computer program, the steps in the above method embodiments are implemented.

[0143] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by the processor, the steps in the above method embodiments are implemented.

[0144] In one embodiment, a computer program product is provided, including a computer program. When the computer program is executed by the processor, the steps in the above method embodiments are implemented.

[0145] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use, and processing of relevant data need to comply with relevant regulations.

[0146] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above methods. Among them, any reference to a memory, database, or other medium used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc. The databases involved in the embodiments provided in this application can include at least one of relational databases and non-relational databases. Non-relational databases can include distributed databases based on blockchain, etc., without limitation. The processors involved in the embodiments provided in this application can be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, data processing logics based on quantum computing, artificial intelligence (AI) processors, etc., without limitation.

[0147] The technical features of the above embodiments can be combined arbitrarily. For the sake of brevity of description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as within the scope recorded in this application.

[0148] The above embodiments merely represent several implementation manners of the present application. The description thereof is relatively specific and detailed, but it should not be construed as a limitation on the patent scope of the present application. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present application, several modifications and improvements can still be made, and these all fall within the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the appended claims.

Claims

1. A method for dissipating heat from an electronic device, characterized in that: The electronic device comprises at least a processor, a mainboard and a fan for heat dissipation, and the method comprises: Obtaining hardware configuration information of the processor and hardware configuration information of the mainboard; Determining an initial rotation speed of the fan based on the hardware configuration information of the processor and the hardware configuration information of the mainboard; Acquire a real-time processor utilization rate of the electronic device, where the real-time processor utilization rate refers to the ratio of tasks currently being executed by the processor to the total processing capacity; Searching for a reference electric power corresponding to the real-time processor utilization in a power consumption adjustment rule base; The long-term power consumption of the electronic device is limited by the real-time processor utilization, and the reference power is used as the first target power to which the electronic device needs to be adjusted within a first operating period, wherein the first operating period is a continuous period of time during which the reference power is used as the target power after the electronic device is started or a specific operation begins, and the first target power is used for the electronic device to stably respond to a low-load scenario over a long period of time; During the first operation time, a preset custom picture frame rate and a real-time picture frame rate of the electronic device are obtained, where the real-time picture frame rate is the picture frame rate of the electronic device during its current actual operation; Determine a frame rate difference between the real-time picture frame rate and the preset custom picture frame rate; The short-term power consumption of the electronic device is limited by the real-time picture frame rate, and when the frame rate difference is greater than a preset difference threshold, a second target electric power to which the electronic device needs to be adjusted in a second operating time is determined according to the frame rate difference, the second operating time being a continuous time period within the first operating time for further power consumption adjustment according to the difference between the real-time picture frame rate and the preset custom picture frame rate, and the second target electric power is used to ensure that the electronic device responds quickly to a high-load scenario in a short time; In the process of adjusting the electronic device from the initial power to the target power, obtaining the real-time power and the real-time picture frame rate of the electronic device; Obtaining the real-time temperature and real-time processor utilization of the processor; The real-time temperature, the real-time processor utilization, the real-time picture frame rate and the real-time electric power are weighted and summed by a preset temperature weight coefficient, a utilization weight coefficient, a frame rate weight coefficient and an electric power weight coefficient to obtain a real-time load score of the electronic device; Searching for a speed corresponding to the real-time load score in a load speed rule library, and using the searched speed as a target speed of the fan, wherein the load speed rule library records a plurality of mapping relationships between load scores and speeds; The fan is adjusted from the initial speed to the target speed.

2. The method according to claim 1, characterized in that The determining the initial rotation speed of the fan based on the hardware configuration information of the processor and the hardware configuration information of the mainboard includes: Acquire a first mapping relationship between preset processor hardware configuration information and a preset fan speed, and determine a first fan speed mapped by the hardware configuration information of the processor based on the first mapping relationship; Acquire a second mapping relationship between preset motherboard hardware configuration information and preset fan speed, and determine a second fan speed mapped by the motherboard hardware configuration information based on the second mapping relationship; An initial rotation speed of the fan is determined according to the first fan rotation speed and the second fan rotation speed.

3. The method according to claim 2, characterized in that The determining the initial speed of the fan according to the first fan speed and the second fan speed includes: The fan speed having the smaller speed between the first fan speed and the second fan speed is used as the recommended speed; A preset custom fan mode is obtained, and an initial rotation speed of the fan is determined according to a custom rotation speed corresponding to the preset custom fan mode and the recommended rotation speed.

4. An electronic equipment heat dissipation device, characterized in that: The device comprises: An acquisition module is used to acquire the hardware configuration information of the processor and the hardware configuration information of the mainboard; A first determination module, configured to determine an initial rotation speed of the fan based on the hardware configuration information of the processor and the hardware configuration information of the mainboard; The second determination module is used to obtain the real-time processor utilization of the electronic device, where the real-time processor utilization refers to the proportion of the tasks currently being executed by the processor to the total processing capacity; search for a reference electric power corresponding to the real-time processor utilization in a power consumption adjustment rule base; perform long-term power consumption limit on the electronic device through the real-time processor utilization, and use the reference electric power as the first target electric power to which the electronic device needs to be adjusted within a first operating period, where the first operating period is a continuous period of time during which the reference electric power is used as the target electric power after the electronic device is started or a specific operation begins, and the first target electric power is used for the electronic device to stably respond to low-load scenarios over a long period of time; within the first operating period, obtain a preset custom a picture frame rate, and a real-time picture frame rate of the electronic device, the real-time picture frame rate being the picture frame rate of the electronic device when it is currently actually running; determining a frame rate difference between the real-time picture frame rate and the preset custom picture frame rate; performing short-term power consumption limitation on the electronic device through the real-time picture frame rate, and when the frame rate difference is greater than a preset difference threshold, determining a second target electric power to which the electronic device needs to be adjusted in a second operating time according to the frame rate difference, the second operating time being a continuous time period within the first operating time for further power consumption adjustment according to the difference between the real-time picture frame rate and the preset custom picture frame rate, the second target electric power being used to ensure that the electronic device responds quickly to a high-load scenario in a short time; a third determination module, for obtaining the real-time electric power and real-time picture frame rate of the electronic device in the process of adjusting the electronic device from the initial electric power to the target electric power; obtaining the real-time temperature and real-time processor utilization of the processor; performing weighted summation of the real-time temperature, the real-time processor utilization, the real-time picture frame rate and the real-time electric power by pre-set temperature weight coefficient, utilization weight coefficient, frame rate weight coefficient and electric power weight coefficient to obtain the real-time load score of the electronic device; searching for a speed corresponding to the real-time load score in a load speed rule library, and using the found speed as the target speed of the fan, wherein the load speed rule library records a plurality of mapping relationships between load scores and speeds; The adjustment module is used to adjust the fan from the initial rotation speed to the target rotation speed.

5. The device according to claim 4, characterized in that The first determination module is used to obtain a first mapping relationship between preset processor hardware configuration information and a preset fan speed, and determine a first fan speed mapped by the hardware configuration information of the processor based on the first mapping relationship; Obtain a second mapping relationship between preset motherboard hardware configuration information and preset fan speed, and determine the second fan speed mapped by the hardware configuration information of the motherboard based on the second mapping relationship; determine the initial speed of the fan according to the first fan speed and the second fan speed.

6. The device according to claim 5, characterized in that The first determination module is configured to use the smaller fan speed between the first fan speed and the second fan speed as the recommended fan speed; A preset custom fan mode is obtained, and an initial rotation speed of the fan is determined according to a custom rotation speed corresponding to the preset custom fan mode and the recommended rotation speed.

7. The device according to claim 6, characterized in that The first determination module is used to obtain a first mapping relationship between preset processor hardware configuration information and a preset fan speed, and determine a first fan speed mapped by the hardware configuration information of the processor based on the first mapping relationship; Obtain a second mapping relationship between preset motherboard hardware configuration information and preset fan speed, and determine the second fan speed mapped by the hardware configuration information of the motherboard based on the second mapping relationship; determine the initial speed of the fan according to the first fan speed and the second fan speed.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • Loongson server power consumption control method and device

    CN105676996A

  • Fan control method and system and medium

    CN112631414A