Rotational speed control method for fan, and electronic device

By detecting scene changes in electronic devices and combining user preferences and device status, the fan speed is dynamically adjusted, solving the problem that existing fan speed adjustment schemes cannot meet diverse needs, and achieving more precise fan control and better performance-noise balance.

WO2026129645A1PCT designated stage Publication Date: 2026-06-25HONOR DEVICE CO LTD

Patent Information

Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
HONOR DEVICE CO LTD
Filing Date
2025-07-21
Publication Date
2026-06-25

AI Technical Summary

Technical Problem

Existing fan speed regulation solutions are usually based on a single temperature correspondence, which cannot meet the diverse needs of electronic devices in different scenarios, especially the balance between high performance and low noise requirements.

Method used

Electronic devices detect changes in the scene, obtain the suggested fan speed for the scene, and dynamically adjust the fan speed based on the user's configured speed preference, device performance preference, and noise preference to achieve more precise control.

Benefits of technology

This achieves finer fan speed control, enabling more accurate fulfillment of the actual needs of electronic devices in different scenarios, thereby improving device performance and reducing noise.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025109681_25062026_PF_FP_ABST
    Figure CN2025109681_25062026_PF_FP_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of electronic devices. Disclosed are a rotational speed control method for a fan, and an electronic device. The electronic device comprises a fan, and a plurality of applications are deployed in the electronic device. The method comprises: when a scenario change has been detected by an electronic device, the electronic device acquiring a target recommended rotational speed of a fan, which target recommended rotational speed corresponds to a changed scenario; and the electronic device controlling the fan to rotate at the target recommended speed, wherein different scenarios correspond to different recommended rotational speeds of the fan, and the recommended rotational speeds of the fan that correspond to the scenarios are determined on the basis of rotational speeds configured by a user for applications running in the scenarios and the actual state of the electronic device in the scenarios, the rotational speeds configured for the applications represent speed configuration preferences of the user for the running application, and the actual state of the electronic device corresponds to performance preferences and / or noise preferences corresponding to the scenarios. In the present application, the recommended rotational speeds of a fan in various scenarios can better match the actual usage states of an electronic device, and can meet the actual requirements of the electronic device.
Need to check novelty before this filing date? Find Prior Art

Description

A fan speed control method and electronic device

[0001] This application claims priority to Chinese Patent Application No. 202411911767.X, filed on December 20, 2024, entitled "A Fan Speed ​​Control Method and Electronic Device", the entire contents of which are incorporated herein by reference. Technical Field

[0002] This application relates to the field of electronic equipment technology, and in particular to a fan speed control method and electronic equipment. Background Technology

[0003] With the rapid development of electronic devices, the performance requirements for various components are also increasing. The fan is the most critical heat dissipation component in electronic devices (such as personal computers (PCs) and laptops). The adjustment of the fan speed has a significant impact on the performance, battery life, and safety of various chips and components of electronic devices. Therefore, it is necessary to adjust the fan speed in a timely manner.

[0004] Current fan speed adjustment methods typically determine the fan speed based on the temperature of the electronic device. However, this temperature-based fan speed adjustment method cannot meet the actual needs of electronic devices. Summary of the Invention

[0005] This application provides a fan speed control method and an electronic device. When the electronic device detects a change in the scene, it obtains the suggested fan speed corresponding to the changed scene and controls the fan speed to the target suggested speed. The suggested fan speed corresponding to the scene is determined by the user's configured speed for the application and the actual state of the electronic device. The suggested speed takes into account the user's preference for the running application's speed setting, the performance preference of the electronic device's actual state, and noise preference. The suggested fan speed for each scene can better match the actual usage state of the electronic device, meet the actual needs of the electronic device, and avoid the control method based on a single correspondence between temperature and fan speed, resulting in higher granularity and more accurate fan control.

[0006] To achieve the above objectives, the embodiments of this application adopt the following technical solutions.

[0007] Firstly, a fan speed control method is provided, applied to an electronic device, which includes a fan and has multiple applications deployed within it. The method includes:

[0008] If the electronic device detects a change in the scene, it obtains the target suggested fan speed corresponding to the changed scene.

[0009] The electronic device controls the fan rotation at the target recommended speed.

[0010] The recommended fan speed varies for different scenarios. The recommended fan speed for each scenario is determined by the user's configured speed for the application running in the scenario and the actual state of the electronic device in the scenario. The configured speed of the application represents the user's speed configuration preference for the application running, and the actual state of the electronic device corresponds to the performance preference and / or noise preference for the scenario.

[0011] In this application, when an electronic device detects a change in the scene, it obtains the suggested fan speed corresponding to the changed scene and controls the fan speed based on the target suggested speed. The suggested fan speed for the scene is determined by the user's configured speed for the application and the actual state of the electronic device. The suggested speed takes into account the user's preference for the running application's speed settings, the performance preference of the electronic device's actual state, and noise preference. The suggested fan speed for each scene can better match the actual usage state of the electronic device, meet the actual needs of the electronic device, and avoid the control method based on a simple correspondence between temperature and fan speed, resulting in higher granularity and more accurate fan control.

[0012] In one possible implementation of the first aspect, the method further includes:

[0013] When the electronic device is running various applications, the fan rotation is controlled according to the configured speed corresponding to each application; the configured speed corresponding to each application includes the user-input configured speed or the preset default speed.

[0014] The electronic device identifies its actual state, and based on this state, adjusts the configuration speed of each application to obtain the suggested speed for each scenario that combines the actual state of each application with the actual state of the electronic device.

[0015] The actual state of the electronic device includes the electronic device being in a first state or not in a first state, and / or the electronic device being in a second state or not in a second state; the first state represents the state in which the electronic device has a high performance preference, and the second state represents the state in which the electronic device has a low noise requirement.

[0016] In this application, the recommended fan speed represents the user's preferred fan speed configuration (high or low speed requirement). Furthermore, the recommended speed considers both the high-performance requirements of the electronic device in its first state and its lower-performance requirements when it exits (or is not in) the first state. Additionally, the recommended speed also considers the low-noise requirements of the electronic device in its second state and the requirement to ignore noise when it exits (or is not in) the second state. The recommended fan speed for each scenario can better match the actual usage state of the electronic device and meet its actual needs.

[0017] In another possible implementation of the first aspect, when the configured rotational speed for each application includes the configured rotational speed input by the user, the method further includes:

[0018] The electronic device receives the user's fan speed configuration operation and obtains the input configuration speed;

[0019] The electronic device determines the focus application corresponding to the user's fan speed configuration operation;

[0020] The electronic device will apply the corresponding configured speed as the input configuration speed;

[0021] The focus application is either the application corresponding to the top-level window of the electronic device when receiving the fan speed configuration operation, or the application corresponding to the top-level window that runs within a preset time after receiving the fan speed configuration operation.

[0022] In this application, the fan speed configuration is determined based on a user-triggered fan speed configuration operation. This configuration speed serves as the base speed for adjusting the fan, and to a certain extent, it can meet the user's preferred fan speed when running the application. For example, a high input configuration speed meets the high-performance requirements of the focus application; a low input configuration speed meets the low-noise requirements, etc. In other words, the user's fan speed configuration operation can represent the user's preference for high or low fan speed when running the focus application.

[0023] In another possible implementation of the first aspect, when the configured rotational speed for each application includes the configured rotational speed input by the user, the method further includes:

[0024] The electronic device receives the user's fan speed configuration operation and obtains the input configuration speed.

[0025] The electronic device determines the focus application corresponding to the fan speed configuration operation received from the user.

[0026] Electronic devices store the focus application and the corresponding input configuration speed in a database.

[0027] Electronic devices categorize applications in the database to obtain multiple application sets; applications in the same application set belong to the same application type, and the difference in power consumption between applications in the same application set is less than a preset difference.

[0028] The electronic device determines the configuration speed corresponding to the application set based on at least one input configuration speed of at least one application in the application set;

[0029] The focus application is either the application corresponding to the top-level window of the electronic device when receiving the fan speed configuration operation, or the application corresponding to the top-level window that runs within a preset time after receiving the fan speed configuration operation.

[0030] In this application, by learning the input configuration speeds of fans corresponding to the same application type in the database, the configuration speeds corresponding to each application type can be obtained. Compared with the user's custom input configuration speeds for fans corresponding to each application, the configuration speeds obtained after learning are more universal for the same application type and better fit the power consumption and high-performance requirements of applications under the same application type.

[0031] In another possible implementation of the first aspect, multiple applications, including the first application, control the fan rotation according to the configured speed corresponding to each application while the electronic device is running, including:

[0032] When an electronic device is running the first application, if the configuration speed corresponding to the first application does not exist in the database, the electronic device determines the target application set that matches the first application based on the application type and operating power consumption of the first application.

[0033] The electronic device uses the target configuration speed corresponding to the target application set as the configuration speed of the first application;

[0034] The electronic device controls the fan rotation speed according to the configuration speed of the first application.

[0035] In this application, if the first application does not have a corresponding configured speed, a set of target applications matching the first application is determined based on the application type and power consumption of the first application, and the fan rotation is controlled by the target configured speed corresponding to the target application set. Since the applications in the target application set have the same type and similar power consumption as the first application, the target configured speed corresponding to the target application set can well meet the needs of running the first application, so that the heat dissipation effect of the electronic device reaches a relatively ideal effect when running the first application.

[0036] In another possible implementation of the first aspect, each application includes a first application; when the electronic device is running each application, the fan rotation is controlled according to the configured rotation speed corresponding to each application, including:

[0037] When the electronic device runs the first application, if the database does not contain the configuration speed corresponding to the first application, and there is no application set corresponding to the first application, the electronic device will use the preset default speed as the configuration speed of the first application.

[0038] The electronic device controls the fan rotation speed according to the configuration speed of the first application.

[0039] In this application, if the first application does not have a corresponding configured speed and there is no application set corresponding to the first application, the fan rotation is controlled by a preset default speed. Using the preset default speed basically ensures that the fan speed will not be too high or too low. Furthermore, the electronic device can also identify the actual state of the electronic device while running the first application and dynamically adjust the fan speed to achieve a relatively ideal heat dissipation effect when running the first application.

[0040] In another possible implementation of the first aspect, the input configuration speed is greater than or equal to the lower limit of the fan speed, or the input configuration speed corresponds to a temperature less than or equal to the upper limit of the temperature.

[0041] In this application, to prevent users from setting the fan speed too low, which could lead to overheating of electronic devices, poor heat dissipation, and other potential problems, the input fan speed configuration must be greater than or equal to the lower limit of the fan speed, or the temperature corresponding to the input fan speed configuration must be less than or equal to the upper limit of the temperature. This upper limit constraint on the user's fan speed configuration operation ensures that the user-defined input fan speed configuration is not too low.

[0042] In another possible implementation of the first aspect, the electronic device identifies its actual state, and based on this actual state, adjusts the configuration speed of each application to obtain suggested speeds for each scenario, combining the running applications with the actual state of the electronic device, including:

[0043] If the electronic device is in the first state, the electronic device increases the speed based on the configured speed according to the preset speed step size to obtain the suggested speed for each application when the electronic device is in the first state.

[0044] In this application, the electronic device is in the first state, which means that the electronic device has a high performance requirement. When it is determined that the electronic device is in the first state, the rotation speed can be appropriately increased to meet the high performance requirements of the electronic device / user.

[0045] In another possible implementation of the first aspect, the electronic device being in the first state includes at least one or more of the following:

[0046] The headphone jack of the electronic device is in place, and the electronic device is running a specified application; the specified application is a preset application with high power consumption.

[0047] Alternatively, the serial interface of the electronic device is in place, and the electronic device is transmitting data or files;

[0048] Alternatively, electronic devices can be displayed as demo units.

[0049] In this application, the first state refers to the usage state of an electronic device with high-performance requirements. The electronic device being in the first state signifies that it has high-performance requirements. When the electronic device is determined to be in the first state, appropriately increasing the rotation speed can meet the corresponding high-performance requirements of the electronic device / user.

[0050] In another possible implementation of the first aspect, the electronic device identifies its actual state, and based on this actual state, adjusts the configuration speed of each application to obtain suggested speeds for each scenario, combining the running applications with the actual state of the electronic device, including:

[0051] If the electronic device is in the second state, the electronic device reduces the speed based on the configured speed according to the preset speed step size to obtain the suggested speed for each application when the electronic device is in the second state.

[0052] In this application, the electronic device is in the second state, which means that the electronic device has a low noise requirement. When it is determined that the electronic device is in the second state, the rotation speed can be appropriately reduced to meet the corresponding low noise requirements of the electronic device / user.

[0053] In another possible implementation of the first aspect, the electronic device being in the second state includes at least one or more of the following:

[0054] The electronic device is located within a preset geofence; the preset geofence is used to indicate locations with low-noise requirements.

[0055] Alternatively, the electronic device's display peripheral interface is in place, and the electronic device is running office applications.

[0056] In this application, the second state refers to the usage state of an electronic device that requires low noise. For example, the electronic device is in a specified scenario, such as a meeting scenario or a library scenario. In these scenarios, low noise is required, so the fan speed needs to be controlled to avoid excessive fan noise caused by excessive fan speed.

[0057] In another possible implementation of the first aspect, the electronic device identifies its actual state, and based on this actual state, adjusts the configuration speed of each application to obtain suggested speeds for each scenario, combining the running applications with the actual state of the electronic device, including:

[0058] If the electronic device is in the first state, the electronic device increases the speed based on the configured speed according to the preset speed step size, so as to obtain the adjusted speed corresponding to the operation of each application when the electronic device is in the first state;

[0059] If the electronic device is in the second state, the electronic device reduces the speed based on the preset speed step size, thereby obtaining the recommended speed for each application when the electronic device is in the first state and the electronic device is in the second state.

[0060] In this application, the first state and the second state may coexist. For example, an electronic device may have both high performance and low noise requirements. When the electronic device is running a first application, if it is simultaneously in the first state and the second state, the recommended speed for the first application in both states can be determined. The electronic device controls the fan rotation based on the recommended fan speed corresponding to the current state of the electronic device, thereby achieving accurate fan speed control to meet the requirements of the electronic device in that state.

[0061] In another possible implementation of the first aspect, the method further includes:

[0062] The electronic device combines the recommended speed of each application running with the actual state of the electronic device in each scenario, and divides it into multiple dimensions to obtain multiple recommended speed levels for the fan; each recommended speed level corresponds to a recommended speed range.

[0063] The electronic device obtains the target suggested fan speed corresponding to the changed scene, including:

[0064] The electronic device determines the target recommended speed range that matches the changed scene from multiple recommended speed ranges, and obtains any value in the recommended speed range of the target recommended speed range as the target recommended speed.

[0065] The gear selection across multiple dimensions includes one or more combinations of gear selection methods based on user speed configuration preferences, performance preferences, or noise preferences. Speed ​​configuration preferences include high-speed or low-speed requirements, performance preferences include high-performance or non-high-performance requirements, and noise preferences include low-noise requirements or negligible noise.

[0066] In this application, different recommended speed settings correspond to different recommended fan speed ranges. After scene recognition, the electronic device can match the scene recognition result with the recommended fan speed settings to determine the target recommended speed setting. The fan speed is then adjusted based on the fan speed range corresponding to the target recommended speed setting. Adjusting the fan speed based on multiple recommended speed settings makes the fan control method more systematic.

[0067] In another possible implementation of the first aspect, if the electronic device detects a scene change, the electronic device obtains the target suggested fan speed corresponding to the changed scene, and further includes:

[0068] If the electronic device receives a fan speed configuration command from the user, it obtains the updated configuration speed. The electronic device uses the updated configuration speed as the target suggested speed.

[0069] In this application, the change of scenario includes changes in the user's preferred speed configuration for applications. For example, changing the configured speed of the first application from low to high speed; and changing the configured speed of the second application from high to low speed. When the scenario changes, the suggested speed corresponding to the changed scenario can be obtained in a timely manner to control the fan rotation, making the fan speed control more suitable for the actual needs of the electronic device's environment and resulting in more accurate fan control.

[0070] In another possible implementation of the first aspect, if the electronic device detects a scene change, the electronic device obtains the target suggested fan speed corresponding to the changed scene, including:

[0071] If an electronic device detects a change in the application running in a given scenario, it obtains the updated suggested rotation speed for the corresponding scenario and uses it as the target suggested rotation speed.

[0072] In this application, changes in the scenario include changes in the running application, such as changing from running a first application to running a second application; or, the electronic device adding a new running application; or, the electronic device removing a running application. When a scenario changes, the suggested fan speed corresponding to the changed scenario can be obtained in a timely manner to control the fan rotation, making the fan speed control more suitable for the actual needs of the electronic device's scenario and resulting in more accurate fan control.

[0073] In another possible implementation of the first aspect, if the electronic device detects a scene change, the electronic device obtains the target suggested fan speed corresponding to the changed scene, including:

[0074] If an electronic device detects a change in the actual state of the electronic device corresponding to a scene, the electronic device obtains the suggested rotation speed under the updated actual state in the scene, and uses it as the target suggested rotation speed.

[0075] The actual state of an electronic device changes, including the electronic device entering or exiting a first state, and / or the electronic device entering or exiting a second state.

[0076] In this application, the change of scenario includes a change of the first state, that is, the electronic device changes from being in the first state to exiting the first state, or the electronic device changes from not being in the first state to entering the first state. The change of scenario also includes a change of the second state, that is, the electronic device changes from being in the second state to exiting the second state, or the electronic device changes from not being in the second state to entering the second state. When the scenario changes, the suggested rotation speed corresponding to the changed scenario can be obtained in a timely manner to control the fan rotation, making the fan speed control more suitable for the actual needs of the scenario in which the electronic device is located, and thus more accurate fan control.

[0077] In another possible implementation of the first aspect, the electronic device includes an audio acquisition device;

[0078] In controlling the fan rotation to the target recommended speed, the method also includes:

[0079] Electronic devices acquire ambient noise through audio acquisition devices.

[0080] If the fan noise corresponding to the target recommended speed is lower than the ambient noise, the electronic equipment will increase the fan speed.

[0081] If the fan noise corresponding to the target recommended speed is higher than the ambient noise, the electronic equipment will reduce the fan speed.

[0082] In this application, each fan speed corresponds to a fan noise level; for example, the fan noise level can be between 15dB and 50dB. The electronic device can obtain the fan speed and, based on a preset correspondence between fan speed and fan noise, convert it into the corresponding fan noise. The electronic device can obtain ambient noise through one or more microphones. If the fan noise is lower than the ambient noise, meaning the environment where the electronic device is located allows for slightly higher noise levels, the fan speed can be appropriately increased to achieve higher performance. If the fan noise is higher than the ambient noise, meaning the fan noise of the electronic device may interfere with the noise in the environment where the electronic device is located, the fan speed can be appropriately reduced to avoid the adverse effects of the fan noise.

[0083] In another possible implementation of the first aspect, the electronic device stores multiple suggested fan speed settings; the electronic device increases the fan speed by:

[0084] The electronic system increases the fan speed to the next lower recommended speed level corresponding to the target recommended speed. The minimum speed of the next lower recommended speed level is greater than the maximum speed of the recommended speed level corresponding to the target recommended speed.

[0085] Electronic devices reduce fan speed, including:

[0086] The electronic system reduces the fan speed to the next higher recommended speed setting than the target recommended speed setting. The maximum speed of the next higher recommended speed setting is less than the minimum speed of the recommended speed setting corresponding to the target recommended speed.

[0087] In this application, different recommended speed settings correspond to different recommended speed ranges for the fan. The electronic device adjusts the fan speed based on the recommended speed settings, making the fan control method more systematic.

[0088] In another possible implementation of the first aspect, during the process of the electronic device controlling the fan rotation at the target suggested speed, the method further includes:

[0089] If the target recommended speed is greater than the fan's maximum speed limit, the electronic device will reduce the fan speed according to the preset speed step size.

[0090] In this application, it is possible that after the electronic device starts the fan at the recommended speed, the fan will adaptively increase the speed. Therefore, the electronic device can also detect the actual speed in real time and reduce the speed in time when the actual speed is detected to be greater than the upper limit value, so as to reduce the power consumption of the electronic device.

[0091] In another possible implementation of the first aspect, during the process of the electronic device controlling the fan rotation at the target suggested speed, the method further includes:

[0092] If the temperature rise corresponding to the target suggested speed is greater than the fan's maximum temperature rise limit, the electronic equipment will increase the fan speed according to a preset speed step size. The temperature rise is the difference between the temperature before the fan is controlled at the target suggested speed and the actual temperature after the fan is controlled at the target suggested speed.

[0093] In this application, if the temperature rise exceeds the upper limit, it indicates that a sudden increase in temperature occurred when the fan speed was controlled at the target recommended speed. To avoid adverse effects of this sudden temperature increase on electronic devices, such as performance degradation due to excessively high temperatures, the electronic devices can increase their fan speed in this situation to achieve rapid heat dissipation and cooling.

[0094] In a second aspect, an electronic device is provided, comprising a fan, a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps of the method described in any of the first aspects above.

[0095] Thirdly, a computer-readable storage medium is provided that stores instructions which, when executed by a processor, implement the steps of the method described in any of the first aspects above.

[0096] Fourthly, a computer program product including instructions is provided, comprising a computer program / instructions that, when executed by a processor, implement the steps of the method described in any of the first aspects above.

[0097] Fifthly, embodiments of this application provide a chip, the chip including a processor, the processor being configured to invoke a computer program in memory to perform the method as described in any one of the first aspects.

[0098] It is understood that the beneficial effects of the electronic device described in the second aspect, the computer-readable storage medium described in the third aspect, the computer program product described in the fourth aspect, and the chip described in the fifth aspect can be referred to the beneficial effects of the first aspect and any of its possible design embodiments, which will not be repeated here. Attached Figure Description

[0099] Figure 1 is a schematic diagram showing the relationship between the temperature and fan speed of an electronic device according to an embodiment of this application;

[0100] Figure 2 is a schematic diagram of the structure of an electronic device provided in an embodiment of this application;

[0101] Figure 3 is a schematic diagram of a fan speed configuration interface provided in an embodiment of this application;

[0102] Figure 4 is a schematic diagram of a detailed interface for displaying fan settings provided in an embodiment of this application;

[0103] Figure 5 is a schematic diagram of another detailed interface for displaying fan settings provided in an embodiment of this application;

[0104] Figure 6 is a software structure block diagram of an electronic device provided in an embodiment of this application;

[0105] Figure 7 is a schematic diagram of the process by which an electronic device determines the configuration speed of the fan corresponding to each application, according to an embodiment of this application.

[0106] Figure 8 is a schematic diagram of an electronic device responding to the initial configuration speed of a user-set application according to an embodiment of this application;

[0107] Figure 9 is a schematic diagram of a process for determining a recommended rotation speed for various combined usage states of applications, provided in an embodiment of this application.

[0108] Figure 10 is a schematic diagram of some electronic devices provided in the embodiments of this application in a first state;

[0109] Figure 11 is a schematic diagram of some other electronic devices provided in the embodiments of this application in a first state;

[0110] Figure 12 is a schematic diagram of some electronic devices in a second state provided in the embodiments of this application;

[0111] Figure 13 is a schematic diagram of another electronic device in a second state provided in an embodiment of this application;

[0112] Figure 14 is a block diagram of a module for determining the recommended speed for each application based on the configuration speed of the fan corresponding to each application, according to an embodiment of this application.

[0113] Figure 15 is a schematic diagram of a suggested rotation speed corresponding to a demand dimension provided in an embodiment of this application;

[0114] Figure 16 is a schematic diagram of multiple suggested fan speed levels for different dimensional requirements provided in an embodiment of this application;

[0115] Figure 17 is a schematic diagram of a scenario where an electronic device dynamically adjusts its fan speed according to an embodiment of this application;

[0116] Figure 18 is a schematic flowchart of a fan speed control method provided in an embodiment of this application;

[0117] Figure 19 is a schematic diagram of another electronic device provided in an embodiment of this application;

[0118] Figure 20 is a schematic diagram of the structure of a chip system provided in an embodiment of this application. Detailed Implementation

[0119] In the description of the embodiments of this application, the terminology used in the following embodiments is for the purpose of describing specific embodiments only and is not intended to be a limitation of this application. As used in the specification and appended claims of this application, the singular expressions "a," "the," "the," "the," and "this" are intended to also include expressions such as "one or more," unless the context clearly indicates otherwise. It should also be understood that in the following embodiments of this application, "at least one" and "one or more" refer to one or more (including two). The term "and / or" is used to describe the relationship between related objects, indicating that three relationships can exist; for example, A and / or B can indicate: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship.

[0120] References to "one embodiment" or "some embodiments" in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized. The term "connection" includes direct connections and indirect connections, unless otherwise stated. "First" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated.

[0121] In the embodiments of this application, the terms "exemplary" or "for example" are used to indicate that something is an example, illustration, or description. Any embodiment or design that is described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design. Specifically, the use of the terms "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.

[0122] Currently, many electronic devices are equipped with fans, which are the most crucial heat dissipation components. Taking laptops as an example, due to their thin and light portability, their heat dissipation capabilities are often compromised. Limited by safety regulations and other factors, the performance of processors on the same platform is often inferior to that of desktop computers. If the issue of processor overheating and frequency throttling in laptops could be resolved, and the thermal design power (TDP) could be improved, then the performance of laptops in certain scenarios would be greatly enhanced. Currently, the most effective way to improve the temperature rise of laptops is to increase fan speed. However, excessively high speeds can cause excessive noise for users.

[0123] Fan speed is typically correlated with the temperature of electronic devices (such as CPU temperature); the higher the temperature of the electronic device, the higher the fan speed is needed to lower it. Traditional technology achieves temperature-based fan speed control through this simple correlation between fan speed and electronic device temperature. Specifically, this usually involves sampling the temperature using a laptop's temperature sensor and dynamically adjusting the fan speed within an acceptable range to achieve a cooling effect and maintain the casing temperature within an acceptable range. The dynamic adjustment of fan speed manifests as follows: increased power consumption leads to increased temperature, so the fan speed is increased to lower the temperature; decreased power consumption leads to decreased temperature, so the fan speed is decreased.

[0124] For example, Figure 1 illustrates the relationship between temperature and fan speed in an electronic device. The electronic device collects temperature data through one or more temperature sensors. For instance, the electronic device collects temperature data through one or more of temperature sensors 1, 2, or 3, and calculates an average or other numerical value from the collected temperature data to obtain a temperature sample value. For example, if temperature sample value A is obtained, and the corresponding fan speed is fan speed A, then the electronic device controls the fan to rotate at fan speed A. Similarly, if temperature sample value B is obtained, and the corresponding fan speed is fan speed B, then the electronic device controls the fan to rotate at fan speed B. Likewise, if temperature sample value C is obtained, and the corresponding fan speed is fan speed C, then the electronic device controls the fan to rotate at fan speed C.

[0125] It can be seen that in traditional technology, there is a strong one-to-one correspondence between fan speed and electronic device temperature.

[0126] In practical applications of electronic devices, temperature is not the only parameter coupled to fan speed. For example, fan noise is another parameter. Generally, higher fan speeds result in higher fan noise, and lower fan speeds result in lower fan noise. In some practical scenarios, there are specific requirements regarding fan noise levels. For instance, when using electronic devices in places like libraries where low fan noise is required, it's necessary to reduce fan speeds to minimize noise and meet the quiet operation requirements of these environments.

[0127] For example, parameters coupled with fan speed also include the performance of electronic devices. Generally, higher fan speeds result in higher performance, while lower fan speeds lead to lower performance. In some practical applications, there are demands for high performance from electronic devices. For instance, when running games, video processing applications, or transferring large files, electronic devices need to increase fan speed to reduce temperature and thus improve performance, meeting these performance requirements.

[0128] Different real-world usage scenarios place specific demands on electronic devices regarding temperature, fan speed, performance, and noise levels. The traditional methods mentioned above, which rely on the relationship between temperature and fan speed for fan speed adjustment, are relatively simplistic and cannot meet the diverse needs of electronic devices in real-world applications. For example, in some scenarios, users can tolerate higher temperatures but desire lower noise levels, while in others, they prefer higher noise levels and lower temperatures.

[0129] Based on this, this application provides a fan speed control method. The electronic device stores suggested speeds for different scenarios. When the electronic device detects a change in the scenario, it obtains the target suggested speed corresponding to the changed scenario and controls the fan rotation at the target suggested speed. The suggested speed is determined by the user's configured speed for the application and the actual state of the electronic device. The suggested speed takes into account the user's preference for the running application's speed settings, the performance preference of the electronic device's actual state, and noise preference. The suggested fan speed for each scenario can better match the actual usage state of the electronic device, meeting its actual needs. Furthermore, it avoids control methods based on a single correspondence between temperature and fan speed, resulting in higher granularity and more accurate fan control.

[0130] The fan speed control method provided in this application embodiment can be applied to electronic devices. For example, the electronic device can be a laptop, personal computer (PC), ultra-mobile personal computer (UMPC), or other device with a fan. The following embodiments do not impose any special limitations on the specific form of the electronic device.

[0131] For example, Figure 2 shows a schematic diagram of the structure of an electronic device 100.

[0132] Electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, a wireless communication module 150, a fan 160, an audio module 170, a sensor module 180, a display screen 190, etc. The sensor module 180 includes a temperature sensor, etc.

[0133] It is understood that the structures illustrated in the embodiments of the present invention do not constitute a specific limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0134] Processor 110 may include one or more processing units, such as: application processor (AP), modem processor, graphics processing unit (GPU), image signal processor (ISP), controller, memory, video codec, digital signal processor (DSP), baseband processor, and / or neural network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0135] The controller can be the nerve center and command center of the electronic device 100. The controller can generate operation control signals according to the instruction opcode and timing signals to complete the control of fetching and executing instructions.

[0136] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can retrieve it directly from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0137] In this embodiment, the processor 110 can be used as the execution subject of the fan speed control method. When a change in the operating environment of the electronic device is detected, the fan rotation is controlled according to the target suggested speed corresponding to the changed operating environment, so as to achieve the adaptation of the fan speed to the operating environment and achieve the effect of accurately controlling the fan speed to meet the actual needs of the operating environment.

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

[0139] In this embodiment, the interfaces included in the electronic device may include external device interfaces. For example, external device interfaces may include USB interfaces, 3.5mm headphone / microphone jacks, Type-C interfaces, high-definition multimedia interface (HDMI) interfaces, video graphics array (VGA) interfaces, DisplayPort interfaces, serial advanced technology attachment (SATA) interfaces, external serial advanced technology attachment (eSATA) interfaces, and so on.

[0140] The USB port can be used to connect mice, keyboards, USB flash drives, etc. It can also be used for data transfer, video output, and charging. The 3.5mm headphone / microphone jack is used to connect headphones, earphones, speakers, or microphones. The Type-C port supports data, audio, video, and charging, enabling high-speed data transfer, digital audio, high-definition video, fast charging, and multi-device sharing. The HDMI port is used to connect monitors, projectors, and other display devices, supporting high-definition video and audio output. The VGA port is used to connect monitors or projectors. The DisplayPort port is used to connect monitors and supports high-resolution video output. Both SATA and eSATA ports can be used to connect SATA hard drives for data transfer.

[0141] In this embodiment, the status (present / absent) of the peripheral interface of the electronic device can characterize different dimensions of the demand for fan speed. For example, if the eSATA interface is present, it indicates that the electronic device is connected to an external SATA hard drive and needs to perform data transfer. To improve data transfer efficiency, the electronic device needs to operate at high performance. Therefore, the fan speed can be increased to improve cooling, thereby indirectly improving the performance of the electronic device and meeting the high-performance requirements for data transfer. For example, if the HDMI interface is present and the electronic device is focused on an office application, it indicates that the electronic device is in a meeting for office presentations or similar operations. Meetings require a certain level of quiet, and some office applications do not have high performance requirements. Therefore, the electronic device can reduce fan speed by sacrificing some performance to reduce the noise generated by the fan rotation and meet the low-noise requirements of the meeting.

[0142] In this embodiment, the status of the peripheral interface of the electronic device can be used as reference information for the electronic device to adjust the fan speed, so that the control of the fan speed is more in line with the actual needs of the electronic device.

[0143] It is understood that the interface connection relationships between the modules illustrated in the embodiments of the present invention are merely illustrative and do not constitute a structural limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may also employ different interface connection methods or combinations of multiple interface connection methods as described in the above embodiments.

[0144] The charging management module 140 receives charging input from a charger, which can be a wireless charger or a wired charger. While charging the battery 142, the charging management module 140 can also supply power to the electronic device via the power management module 141.

[0145] The power management module 141 connects the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140 to power the processor 110, internal memory 121, external memory, display 190, etc. In some embodiments, the power management module 141 may also be located within the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may be located in the same device.

[0146] The wireless communication module 150 may be one or more devices integrating at least one communication processing module. The wireless communication module 150 receives electromagnetic waves via an antenna, performs frequency modulation and filtering of the electromagnetic wave signal, and sends the processed signal to the processor 110. The wireless communication module 150 may also receive signals to be transmitted from the processor 110, perform frequency modulation and amplification on them, and then convert them into electromagnetic waves for radiation via the antenna.

[0147] Fan 160 is used to dissipate heat from electronic devices, such as CPUs.

[0148] In this embodiment, the processor 110 can control the speed of the fan 160 to increase or decrease. For example, in some scenarios where the speed needs to be reduced, the processor 110 can adjust the speed of the fan 160 to a low speed; in some scenarios where the speed needs to be increased, the processor 110 can adjust the speed of the fan 160 to a high speed.

[0149] In this embodiment, each operating environment of the electronic device corresponds to a suggested fan speed. The operating environment includes an application and the corresponding state information of the electronic device when that application is running. The state information includes the state of the electronic device's peripheral interfaces, the electronic device's location, the electronic device's response status, and so on. The suggested speed for each operating environment takes into account the actual needs of that environment. When the processor 110 detects a change in the operating environment, it obtains the target suggested speed corresponding to the changed operating environment and controls the fan rotation at the target suggested speed, achieving the optimal effect of meeting the fan speed requirements of the changed operating environment.

[0150] Electronic device 100 implements display functions through a GPU, a display screen 190, and an application processor. The GPU is a microprocessor for image processing, connected to the display screen 190 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. Processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.

[0151] Display screen 194 is used to display images, videos, etc. Display screen 194 includes a display panel. The display panel may be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a miniature LED, a microLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, electronic device 100 may include one or N displays 194, where N is a positive integer greater than 1.

[0152] In this embodiment, the recommended fan speed for each operating environment can be obtained by adjusting the user's configured fan speed for the application in that operating environment. In this embodiment, the electronic device can receive the user's fan speed configuration operation to obtain a configured fan speed. For example, Figure 3 shows a schematic diagram of a fan speed configuration interface. Taking a laptop computer as an example, the electronic device can respond to an operation triggered by a user via a shortcut key and display the fan settings details interface as shown in Figure 3(a). Alternatively, in other implementations, the electronic device can also receive a fan setting operation triggered by the user through the system settings interface and display the fan settings details interface as shown in Figure 3(a).

[0153] In Figure 3(a), the fan settings details interface may include information about the fan type and fan speed settings. In one example shown in Figure 3(a), the fan speed can be set via a drop-down menu to select a preset fan speed. The unit of fan speed is generally revolutions per minute (rpm). Preset fan speeds include multiple options at 500 rpm intervals: 1500 rpm, 2000 rpm, 2500 rpm, 3000 rpm, 3500 rpm, 4000 rpm, and 4500 rpm. The upper and lower limits of the preset fan speed can be determined based on fan attributes and actual conditions.

[0154] It is understandable that the preset fan speed shown in Figure 3(a) is only an example. In actual products, the preset fan speed can be provided in multiple ways, such as at intervals of 300 rpm, 400 rpm, 500 rpm, and 600 rpm. As shown in Figure 3(b), if the user selects to set the fan speed to 4500 rpm, the electronic device, in response to the user's "OK" operation (fan speed configuration operation), obtains the user's configured speed "4500 rpm", increases the fan speed to 4500 rpm, and controls the fan rotation at 4500 rpm.

[0155] In some embodiments, Figure 4 shows another schematic diagram of a detailed interface displaying fan settings. As shown in Figure 4(a), the drop-down menu for fan speed settings in the detailed fan settings interface can also represent a percentage of fan speed. The maximum fan speed is taken as 100%. The maximum fan speed can be obtained from the fan's device parameters. The electronic device can receive the user's selection and confirmation of the fan speed percentage, obtain the target percentage, and control the fan speed to increase or decrease. The interval between the percentage options representing fan speed shown in Figure 4(a) can be set to 10%. To achieve finer-grained control of the fan speed, the interval can also be set to 5%; to improve the effectiveness of fan speed control, the interval can be set to 15%. This embodiment does not limit the specific values. Similarly, in this embodiment, a minimum value representing the fan speed percentage can also be set, i.e., a lower limit for the fan speed, to avoid excessive temperature rise caused by configuring the speed too low.

[0156] In another implementation, as shown in Figure 4(b), the drop-down menu for fan speed setting in the fan settings details interface can also display the noise decibel value (dB) corresponding to the fan speed. Different fan speeds correspond to different noise decibel values, and the correspondence between noise decibel values ​​and fan speeds can be obtained through testing. For example, the range of noise decibel values ​​corresponding to fan speeds can be 0dB to the noise decibel value corresponding to the maximum fan speed. For example, Figure 4(b) shows a noise decibel value selection range of 30dB-60dB. The electronic device can receive the user's selection and confirmation of the noise decibel value, obtain the target noise value, and control the fan speed to increase or decrease. As shown in Figure 4(b), the interval between noise decibel values ​​can be set to 5dB. To control fan noise with finer granularity, the interval between noise decibel values ​​can also be set to 3dB; to improve the effect of controlling fan noise, the interval between noise decibel values ​​can also be set to 10dB. This embodiment does not limit the specific values. Similarly, in this embodiment, a minimum noise decibel value can also be set, that is, a lower limit for the fan speed can be constrained, in order to avoid the problem of excessive temperature rise caused by excessively low speed in pursuit of excessively low noise.

[0157] In another implementation, Figure 5 shows a schematic diagram of another detailed interface for displaying fan settings. As shown in Figure 5, the fan speed setting in the detailed interface can also receive user input values ​​through input boxes. As shown in Figure 5, the electronic device can receive the user-inputted fan speed value or percentage through the input box corresponding to the fan speed; or, the electronic device can receive the user-inputted decibel value through the input box corresponding to the noise decibel value of the fan speed.

[0158] To prevent the electronic device from overheating, this embodiment can set a lower limit for the fan speed; alternatively, it can set an upper limit for the temperature. This avoids the user configuring the fan speed too low, leading to insufficient heat dissipation and excessive temperature rise. Therefore, during the user's fan speed configuration, the upper limit of the electronic device's temperature divided by the lower limit of the fan speed can be used as a constraint, ensuring that the configured fan speed is not lower than the lower limit. For example, the lower limit of the fan speed could be 1000 rpm, or a lower limit representing the percentage of fan speed as 20%, or a lower limit for the noise level corresponding to the fan speed as 15 dB. In this embodiment, a prompt message can also be displayed in the fan settings details interface to remind the user to avoid setting the fan speed or noise level too low. As shown in Figure 5, the fan settings details interface displays the prompt message: "Note: To avoid overheating of the device: the fan speed must not be lower than 1000 rpm / 20%; the noise level corresponding to the fan speed must not be lower than 15 dB."

[0159] In some embodiments, the electronic device can also receive configuration of the fan speed from the user through a fan speed setting application. The details interface of the fan speed setting application may be similar to the fan settings details interface shown in Figures 3-5. This embodiment will not elaborate on this. The fan speed setting application can be a system application of the electronic device, a driver application corresponding to the fan, or a third-party application; this embodiment does not limit this.

[0160] The external storage interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external storage interface 120 to perform data storage functions. For example, music, video, and other files can be saved on the external memory card.

[0161] Internal memory 121 can be used to store computer executable program code, which includes instructions. Processor 110 executes various functional applications and data processing of electronic device 100 by running the instructions stored in internal memory 121. Internal memory 121 may include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function (such as sound playback, image playback, etc.), etc. The data storage area may store data created during the use of electronic device 100 (such as audio data, phonebook, etc.). Furthermore, internal memory 121 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc.

[0162] The audio module 170 is used to convert digital audio information into analog audio signals for output, and also to convert analog audio input into digital audio signals. The audio module 170 can also be used for encoding and decoding audio signals. In some embodiments, the audio module 170 may be located in the processor 110, or some functional modules of the audio module 170 may be located in the processor 110.

[0163] The audio module 170 includes a microphone. In some embodiments, the fan rotation generates noise, so the electronic device can also collect ambient noise from the scene in which the electronic device is located via the microphone, thereby controlling the fan speed based on the ambient noise.

[0164] In this embodiment, different fan speeds correspond to different fan noise levels. If the electronic device detects that the ambient noise is greater than the noise level corresponding to the fan speed, there is no need to sacrifice high performance to maintain low fan noise. Therefore, in this case, the electronic device can appropriately increase the fan speed. However, to avoid excessive fan noise that would be harsh in the environment after increasing the fan speed, this embodiment can constrain the amount of fan speed increase. For example, the difference between the fan noise corresponding to the increased fan speed and the ambient noise is less than a preset decibel threshold. Based on this difference, the amount of fan speed increase is determined, thereby achieving the effect of operating at the highest possible performance while keeping the fan noise and ambient noise levels roughly the same, making the fan speed control more closely match the actual needs of the electronic device.

[0165] In some embodiments, to avoid the microphone being affected by noise generated by the fan rotation during the process of collecting ambient noise of the electronic device, the microphone can be placed as far away from the fan as possible. For example, the microphone can be placed at the edge of the electronic device's display screen. Alternatively, to reduce the impact of noise generated by the fan's own rotation, after the microphone collects audio data, noise in the same frequency range as the fan can be removed from the collected audio data using voiceprint technology, before judging the ambient noise and fan noise and controlling the fan speed. In some embodiments, the microphone in the electronic device may include one or more microphones. When there are multiple microphones, the electronic device can collect audio data in multiple dimensions through microphones in multiple locations, and further weight the audio data based on the position of each microphone to finally obtain the ambient noise. In this embodiment, the processing of audio data can adopt conventional audio data methods, and the voiceprint technology can adopt conventional voiceprint technology; this embodiment will not elaborate further.

[0166] In this embodiment, the temperature sensor included in the sensor module is used to detect temperature. In some embodiments, the electronic device uses the temperature detected by the temperature sensor to control the fan speed. For example, a temperature upper limit is set. If the electronic device detects a temperature exceeding the upper limit during application operation, the fan speed needs to be increased to reduce the size of the electronic device. Although the one-to-one correspondence between temperature and fan speed is decoupled in this embodiment, temperature can still serve as an important reference in the fan speed control process to avoid other problems caused by excessive temperature rise of the electronic device.

[0167] The hardware structure of the electronic device has been described in the above embodiments. The software system structure of the electronic device will be described below.

[0168] The software system architecture of electronic device 100 can adopt a layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture. This embodiment of the invention uses a layered architecture. Taking the system as an example, the software structure of electronic device 100 is illustrated.

[0169] For example, Figure 6 is a software structure block diagram of an electronic device 100 according to an embodiment of this application. The layered architecture divides the software into several layers, each with a clear role and division of labor. Layers communicate with each other through software interfaces. In some embodiments, The system is divided into user mode and kernel mode. User mode includes the application layer and the database. Kernel mode includes the execution layer, hardware abstraction layer (HAL), firmware layer, and hardware layer.

[0170] As shown in Figure 6, the application layer includes applications such as music, games, office applications, social networking applications, and fan speed setting applications. The application layer also includes a control engine. Only some applications are shown in the figure; the application layer may also include other applications, such as shopping apps and browsers, which are not limited in this application. In one embodiment, the control engine can be integrated into the electronic device's management application.

[0171] The control engine is responsible for identifying the operating environment of the electronic device and issuing control commands for the fan speed. The control engine can serve as the execution entity for the fan speed control method provided in this embodiment.

[0172] The electronic device (same as the control engine) receives the user's fan speed configuration operation through the fan speed setting application or fan speed setting interface, identifies the focus application, and obtains the initial configuration speed (i.e., the input configuration speed) corresponding to the focus application. The electronic device can establish a correspondence between the focus application and the corresponding initial configuration speed and store it in the database. That is, the database includes each application and its corresponding initial speed value. The electronic device can learn from each application and its corresponding initial speed value for a period of time. For example, the data obtained by the electronic device includes initial configuration speed 1 for application 1, initial configuration speed 2 for application 1, and initial configuration speed 3 for application 1. The electronic device can learn from different initial configuration speeds of application 1 to obtain a configuration speed corresponding to application 1. For example, the average of initial configuration speed 1, initial configuration speed 2, and initial configuration speed 3 can be taken as the configuration speed of application 1. The data obtained by the electronic device also includes initial configuration speed 4 for application 2, initial configuration speed 5 for application 3, etc. Among them, application 2 and application 1 are of the same type, for example, application 2 and application 1 are both large-scale online games. Therefore, the electronic device can learn the corresponding rotation speed of the same application type based on the initial configuration rotation speed of application 1 and the initial configuration rotation speed of application 2, and obtain the configuration rotation speed corresponding to the application type.

[0173] Therefore, the database in this embodiment also includes the configuration rotation speeds corresponding to different application types, obtained through learning. In this embodiment, the method of learning based on at least one initial configuration rotation speed of multiple applications continuously collected can employ traditional big data learning methods, and this embodiment does not limit this approach.

[0174] In addition, the database in this embodiment also includes constraints based on the maximum and minimum fan speeds, used by users to set fan speeds. These constraints may include upper temperature limits or lower fan speed limits.

[0175] The execution layer includes Management Instrumentation (WMI), Process Manager, Virtual Memory Manager, I / O Manager, Power Manager, etc.

[0176] The process manager is used to create and terminate processes and threads.

[0177] The virtual memory manager implements "virtual memory". The virtual memory manager also provides basic support for the cache manager.

[0178] The I / O manager performs device-independent input / output and further processes calls to the appropriate device drivers.

[0179] The power manager can manage power state changes for all devices that support power state changes.

[0180] HAL is a kernel-mode module that hides various hardware-related details, such as I / O interfaces, interrupt controllers, and multiprocessor communication mechanisms, providing a more transparent and efficient runtime environment. It provides a unified service interface for different hardware platforms, enabling data transfer between various hardware platforms and upper-layer applications. It should be noted that, in order to maintain... For portability, Windows internal components and user-written device drivers do not directly access the hardware, but instead call routines in the HAL.

[0181] The firmware layer can include the Basic Input Output System (BIOS), a set of programs embedded in a read-only memory (ROM) chip on the computer's motherboard. It stores the computer's most important basic input / output programs, power-on self-test (POST) programs, and system boot programs. It can read and write specific system settings information from the complementary metal-oxide-semiconductor (CMOS) display. Its main function is to provide the lowest-level, most direct hardware settings and control for the computer.

[0182] The firmware layer may also include an embedded controller (EC). The EC can receive parameters from the hardware layer, process them accordingly, and then send them to the BIOS, which in turn passes them to the upper layers. In this embodiment, the EC can also control the fan speed according to the control commands passed from the upper layers.

[0183] The hardware layer can include hardware structures such as chips, microphones, fans, and temperature sensors.

[0184] In this embodiment, the control engine can recognize scenes and, upon detecting a scene change, retrieve the suggested rotation speed corresponding to that scene from the database and send control commands down the hierarchy. These commands are then transmitted to the EC (Engineering Control Engine) via the BIOS. The EC, based on the control commands, controls the hardware-level fans to rotate at the suggested speed. The EC can also return a response to the BIOS, causing the BIOS to send a response back to the control engine.

[0185] In addition, the control engine can also acquire audio data collected by the microphone to compare the ambient noise with the fan noise. Based on the comparison results, when the fan noise is less than the ambient noise, the fan speed can be appropriately increased to pursue higher performance and achieve better heat dissipation. When the fan noise is greater than the ambient noise, the fan speed can be appropriately reduced to avoid the interference of the fan noise on the environment. When the difference between the fan noise and the ambient noise in decibels is small, the control engine can keep the fan speed unchanged.

[0186] It should be noted that the embodiments in this application are only for reference. To illustrate, the system provides examples of how it works in other operating systems (e.g., system, Any system (or similar system) can achieve the solution of this application as long as the functions implemented by each functional module are similar to those in the embodiments of this application.

[0187] The fan speed control method provided in this application mainly includes two processes: (1) the electronic device determines the recommended fan speed for each application; (2) the fan speed is dynamically adjusted during the fan rotation process using the recommended speed value. The above two processes will be described below with reference to the accompanying drawings. It can be understood that these two processes can be executed by the electronic device shown in Figure 2, or by the modules in the electronic device shown in Figure 6.

[0188] The following describes the specific process by which the electronic device determines the recommended fan speed for each application in the fan speed control method provided in this application embodiment. This process can include a stage where the electronic device determines the configured fan speed for each application, and a stage where the electronic device determines the recommended fan speed based on the configured fan speed for each application, taking into account the operating state of the electronic device.

[0189] Figure 7 illustrates a process for an electronic device to determine the configured fan speed for each application, including:

[0190] S101, the electronic device obtains the initial configuration speed of the fan corresponding to each application.

[0191] In this embodiment, the electronic device can receive the user's fan speed configuration operation to obtain a user-defined initial configuration speed.

[0192] The electronic device can identify the focus application when receiving a fan speed configuration operation. This focus application can be the application corresponding to the top-level window that is running at the time the fan speed configuration operation is received, or it can be the application corresponding to the top-level window that starts running within a preset time after receiving the fan speed configuration operation. In this embodiment, the user's custom fan speed configuration can be considered as an application intended to run the focus application on the electronic device. Therefore, the user-defined speed can be used as the initial configuration speed of the fan corresponding to the focus application. It should be noted that, to avoid the user setting the fan speed too low, causing the electronic device to overheat and have poor heat dissipation, which could lead to other problems, this embodiment can also impose a lower limit constraint on the user-defined fan speed configuration operation. That is, an upper limit constraint on the user's fan speed configuration operation is imposed to ensure that the user-defined initial configuration speed is not too low.

[0193] For example, Figure 8 illustrates an electronic device responding to the initial configuration speed of a user-defined application. Taking a laptop computer as an example, as shown in Figure 8(a), the electronic device is running game application 1, and at this time, the electronic device controls the fan to rotate at 2000 rpm. In one example, the electronic device can display the current fan speed in the upper right corner of the screen so that the user can be aware of the fan speed in a timely manner, as shown in Figure 8(a), where the upper right corner of the screen displays the current fan speed as 2000 rpm. It is understood that the electronic device can also display parameters such as CPU temperature and uplink / downlink speeds in the upper right corner of the screen. Furthermore, the location where the electronic device displays this information is not limited to the upper right corner; in actual products, the display location and specific content can be determined according to the actual situation. In Figure 8(a), the window of game application 1 is the topmost window on the desktop, and game application 1 is the currently focused application.

[0194] The electronic device receives a user-triggered operation to configure the fan speed. In one implementation, as shown in Figures 8(a) and 8(b), the electronic device can display a detailed fan settings interface in response to an operation triggered by a user via a shortcut key. Alternatively, in other implementations, the electronic device can also receive a fan settings operation triggered by a user through the system settings interface and display a detailed fan settings interface.

[0195] In Figure 8(b), the fan settings details interface may include information about the fan type and fan speed settings. In one example shown in Figure 8(b), the fan speed can be set via a drop-down menu to select a preset fan speed. The preset fan speeds include multiple options at 500 rpm intervals: 1500 rpm, 2000 rpm, 2500 rpm, 3000 rpm, 3500 rpm, 4000 rpm, and 4500 rpm. The upper and lower limits of the preset fan speed can be determined based on fan attributes and actual conditions.

[0196] It is understandable that the preset fan speed shown in Figure 8(b) is only an example. In actual products, the preset fan speed can be provided in various intervals such as 300rpm, 400rpm, 500rpm, and 600rpm. As shown in Figure 8(b), if the user selects to set the fan speed to 4500rpm.

[0197] As shown in Figure 8(c), in response to the user's "OK" selection (fan speed configuration operation), the electronic device obtains the user's configured fan speed "4500 rpm" and determines the initial configured fan speed for the focused application (i.e., game application 1) to be "4500 rpm". As shown in Figure 8(d), when the electronic device is running game application 1, the corresponding fan speed is 4500 rpm.

[0198] In one scenario, the electronic device can directly adjust the fan speed based on the initial configured speed. For example, the electronic device can increase the fan speed to the configured speed of "4500 rpm". Furthermore, the electronic device can display the increased fan speed in a corresponding location on the display interface. Displaying the fan speed on the screen allows the user to know when the fan speed configuration operation was performed and its result (configuration successful or configuration failed).

[0199] In this embodiment, the user's preference for the fan speed when running an application is taken into account in the fan speed control method, so that the control of the fan speed can better meet the user's needs and improve the user's experience of using electronic devices.

[0200] When an electronic device receives a speed configuration operation from a user within a certain period, it obtains the initial configured speed and the focus application corresponding to the speed configuration operation. The focus application and its corresponding initial configured speed are stored in a database. Based on multiple applications and their corresponding initial configured speeds in the database, the electronic device performs speed learning for different application types to determine the configured speed corresponding to each application type.

[0201] After an electronic device obtains an initial configuration speed of 1 for application 1, it can use this initial configuration speed as the fan's starting speed the next time application 1 is run. If the electronic device receives another user speed configuration operation while running application 1 or before running application 1, it obtains the corresponding initial configuration speed 2 for application 1 and stores application 1 and its corresponding initial configuration speed 2 in the database. In this way, after a period of data collection, at least one initial configuration speed corresponding to multiple applications in the electronic device can be obtained. That is, the database contains the correspondence between each application of the electronic device and at least one initial configuration speed.

[0202] Here, users configure fan speed to suit their specific needs when running the featured application. For example, a high initial fan speed might meet the application's high-performance requirements, while a low initial fan speed might meet low-noise requirements. In other words, configuring fan speed reflects the user's preference for a specific fan speed when running the featured application.

[0203] S102, the electronic device identifies the type of the application and stores the application, application type and corresponding initial configuration speed in the database.

[0204] In this embodiment, before the electronic device acquires the application and its corresponding initial configuration speed and stores this information in the database, it can also perform application type identification to determine the application type to which the application belongs. In one feasible implementation, the electronic device can perform type identification based on the application's application identifier to determine the application type. The application identifier is attribute information inherent to the application itself, and the electronic device can directly determine the application type of each application based on this attribute information. For example, the application identifier of application 1 indicates that the application type of application 1 is an online game. The granularity of the application type indicated by the application identifier is determined by the application developer.

[0205] If the application identifier indicates an application type with relatively coarse granularity—for example, the application identifier for application 1 indicates that application 1 is a game application—then the application type will be different. In reality, game applications can be categorized by size into indie games, client games, web games, console games, etc. Different sizes of game applications have different performance requirements for electronic devices, and correspondingly, different fan speed requirements. For example, web games are typically games that can be accessed and played directly through a browser. These games are generally small in size, do not require downloading or installation, and have lower performance requirements for electronic devices. Running these types of game applications does not generate excessive performance consumption, and therefore does not produce significant temperature rise, so high fan speeds are not needed for device cooling. On the other hand, console games typically have a larger game scale, higher graphics specifications, and complex gameplay. These game applications are larger in size, require a certain amount of memory to run, and have higher performance requirements for electronic devices. Running these types of game applications generates performance consumption, leading to increased device temperature, requiring higher fan speeds to achieve cooling and improve performance.

[0206] In other words, if the application type indicated by the application (primary application type) is a major category, and there are significant differences among the applications within that major category, the electronic device will further identify the secondary application type corresponding to the application.

[0207] In this embodiment, the electronic device can further identify the application type based on the application's content description, memory usage, and other application attribute information to determine the application's secondary application type. Specifically, the electronic device can refer to traditional identification schemes for application type identification, but this identification process is not the focus of this case and will not be elaborated here.

[0208] S103, the electronic device learns the fan speed for the same type of application and obtains the configuration speed of the fan corresponding to each application type.

[0209] To further organize the data on applications and their corresponding initial rotational speeds, the electronic device can learn from the database of various applications and their corresponding initial rotational speed values. For example, the data acquired by the electronic device includes initial rotational speed 1 for application 1, initial rotational speed 2 for application 1, and initial rotational speed 3 for application 1. The electronic device can learn from the different initial rotational speeds of application 1 to obtain an initial rotational speed corresponding to application 1. For example, the electronic device can take the average of initial rotational speed 1, initial rotational speed 2, and initial rotational speed 3 as the initial rotational speed of application 1.

[0210] Furthermore, the data acquired by the electronic device also includes the initial configuration speed 4 for application 2, the initial configuration speed 5 for application 3, and so on. Application 2 and application 1 have the same application type; for example, both application 2 and application 1 are console games. Therefore, the electronic device can learn the speed of the same application type based on all the initial configuration speeds of application 1 and application 2, thus obtaining the configuration speed corresponding to that application type. The configuration speed can be used as the starting speed of the fan for each application, controlling the fan rotation during application operation.

[0211] To determine if applications belong to the same application type, electronic devices can also record the power consumption of each application during operation. When applications are of the same type and their power consumption is similar, fan speeds for that application type can be learned. This allows the configuration speed of the fan corresponding to each application type to be determined.

[0212] Accordingly, when running application 1, the system can query the database for the configured fan speed of applications with the same application type and small power consumption differences, based on the application type and power consumption of application 1. The fan will then be started at the configured fan speed to achieve heat dissipation when running application 1. For example, a small power consumption difference can be defined as the power consumption difference being within a preset range.

[0213] By learning the initial configuration speed of fans corresponding to the same application type in the database, the configuration speed corresponding to each application type can be obtained.

[0214] In this embodiment, the configured speeds corresponding to each application type are more universal for the same application type than the user's custom initial configuration speed for each application in S101. They are also more in line with the power consumption and high performance requirements of applications under the same application type.

[0215] In this embodiment, the method of learning based on at least one initial configuration speed of multiple applications continuously collected can adopt the big data learning method in traditional technology, and this embodiment does not limit it.

[0216] In the above embodiments, the configured fan speed for each application is obtained through data learning from the user-defined initial fan speed. The configured fan speed for each application can, to some extent, represent the user's preference for fan speed when using the application. In other words, the configured fan speed for each application takes into account the user's configuration preferences, making the fan speed settings for each application more in line with the user's actual needs.

[0217] In some embodiments, in order to make the fan speed control method more in line with the actual needs of the electronic device's usage state, the usage state of the electronic device when running the application can be further identified. If the actual usage state of the electronic device meets the preset state, the fan speed can be further adjusted on the basis of controlling the fan rotation with the configured speed, so as to obtain the recommended speed corresponding to the electronic device running the application in the preset state.

[0218] In other words, when determining the fan speed for each application, it is necessary to consider not only the user's configuration preferences but also the actual usage status of the electronic device running the application to determine the final recommended fan speed for each application, so that the recommended fan speed can meet the actual needs of the user and the actual usage needs of the electronic device to the greatest extent.

[0219] After obtaining the configured fan speed for each application type (or each application) using the methods provided in embodiments S101-S103 above, the electronic device performs actual state identification to determine the recommended speed for each application in conjunction with the electronic device's usage state. For example, Figure 9 shows a schematic diagram of a process for determining the recommended speed for each application in conjunction with its usage state. This includes:

[0220] S201, the electronic device runs a first application and controls the fan to rotate according to the configured speed corresponding to the first application.

[0221] The first application is one of many applications for an electronic device.

[0222] In this embodiment, when the electronic device runs the first application, it can obtain the application type and power consumption of the first application, and query the database for the recommended speed corresponding to an application with the same type as the first application and whose power consumption difference is within a preset difference range. The electronic device controls the fan to rotate at the recommended speed. Before running the first application, if the fan rotates at speed 1, which is lower than the recommended speed, the electronic device increases the fan speed to the recommended speed; if the fan rotates at speed 2, which is higher than the recommended speed, the electronic device decreases the fan speed to the recommended speed.

[0223] Electronic devices can identify their actual usage status from multiple dimensions. For example, the recommended fan speed for each application can represent the user's configuration preference (high speed preference or low speed preference). In this embodiment, the actual usage status can be identified from dimensions such as high performance requirements and noise requirements. For example, it can distinguish the usage status of electronic devices under high performance requirements, or the usage status of electronic devices under non-high performance requirements. For example, it can distinguish the usage status of electronic devices under low noise requirements, or the usage status of electronic devices ignoring noise.

[0224] In some embodiments, if other preferences are to be considered, the identification and judgment of the usage status of electronic devices with other preferences can also be introduced. This embodiment does not limit this.

[0225] The first dimension of the state is determined by whether the requirement is high-performance or not, and the second dimension is determined by whether the requirement is low-noise or noise is negligible. This includes:

[0226] S202, if the electronic device is in the first state, the electronic device increases the fan speed to obtain the suggested fan speed corresponding to the first state.

[0227] The first state refers to the usage state of an electronic device that has high performance requirements. For example, the electronic device is running a specific application, which may be an application with high performance requirements.

[0228] Alternatively, the electronic device can determine its first state based on the user's motivation for using the device. For example, the electronic device might execute a preset operation, which could include a scenario determined by long-term user profile data collection, indicating a need to increase fan speed to improve performance and meet user demands. For instance, the preset operation could include the electronic device detecting video or other data transmission, and no other input events occurring, indicating the user's motivation is high-performance data transmission; in this case, the device executes the preset operation, is in the first state, and can increase fan speed for higher performance. Alternatively, the preset operation could include the electronic device detecting the running of a game or multimedia application, and the device being in speaker audio playback mode. This indicates the user's motivation is watching a movie or playing a game, and they are not concerned about ambient noise; in this case, the device executes the preset operation, is in the first state, and can increase fan speed to ignore noise and pursue higher performance.

[0229] Alternatively, in some embodiments, the electronic device can determine whether it is in a first state based on the state of its peripheral interface. For example, Figure 10 shows some schematic diagrams of an electronic device in a first state. In Figure 10(a), when the 3.5mm headphone / microphone jack of the electronic device is in place and the first application is a game application, it is considered that the electronic device needs improved performance and is in the first state. In this case, the rotation speed can be increased to meet the high-performance requirements of the game application. Alternatively, as shown in Figure 10(b), when the electronic device detects a connected Bluetooth headset or Bluetooth speaker and the first application is a game application, it is considered that the electronic device needs improved performance and is in the first state. In this case, the rotation speed can be increased to meet the high-performance requirements of the game application. Alternatively, as shown in Figure 10(c), when the electronic device detects that the USB interface is in place, the connected external device is a keyboard, and the first application is a game application, it is considered that the electronic device needs improved performance and is in the first state. In this case, the rotation speed can be increased to meet the high-performance requirements of the game application.

[0230] Alternatively, in some embodiments, exemplarily, Figure 11 shows schematic diagrams of other electronic devices in a first state. As shown in Figure 11(a), when the electronic device detects that the USB interface is in a present state and the external device is a USB flash drive, it indicates that the electronic device needs to improve performance to meet data transmission requirements, and is considered to be in the first state, where the rotation speed can be increased. Or, as shown in Figure 11(b), when the electronic device detects that the SD card interface is in a present state and the external device is an SD card, it indicates that the electronic device needs to improve performance to meet data transmission requirements, and is considered to be in the first state, where the rotation speed can be increased. Or, for example, when the electronic device detects that the HDMI interface is in a present state and the first application is a video application, it indicates that the electronic device is in a screen mirroring / viewing scenario, and in this case, improving performance can meet viewing needs, and the electronic device can be considered to be in the first state, where the rotation speed can be increased.

[0231] Alternatively, in some embodiments, when the electronic device determines through a peripheral interface that it is displaying a prototype or is in a special usage scenario, it needs to improve its performance to meet the display requirements. In this case, the electronic device is in the first state, which can increase the rotation speed.

[0232] Alternatively, in some embodiments, the electronic device can determine whether to increase the fan speed to reduce power consumption based on changes in CPU power consumption. For example, when the electronic device detects that the increase in CPU power consumption is greater than a preset increment, it determines that the electronic device is in a first state and increases the fan speed to reduce power consumption.

[0233] It is understandable that the electronic device can detect whether it is in the first state when running the first application. When the electronic device determines that it is in the first state, the fan speed is increased based on the configured speed of the fan corresponding to the first application to obtain the suggested speed of the first application combined with the first state.

[0234] In other cases, the electronic device can also identify its first state when no application is running. When no application is running, the fan speed is controlled at the default speed. Once the electronic device is determined to be in the first state, the fan speed is increased from the default speed to obtain a suggested speed corresponding to the first state when no application is running.

[0235] In this embodiment, the electronic device can increase its rotational speed according to a preset interval. For example, if the interval is 500 rpm and the configured rotational speed for running the first application is 3000 rpm, then the recommended rotational speed for running the first application in the first state can be 3500 rpm. The interval can be determined based on actual conditions, or it can be set according to different specific situations in the first state. For example, when the electronic device detects that the USB interface is in place, the interval is 1000 rpm, and the electronic device increases the rotational speed to 4000 rpm based on the configured fan speed of 3000 rpm for the first application. For example, when the electronic device determines to display a prototype through a peripheral interface, the interval is 1500 rpm, and the electronic device increases the rotational speed to 4500 rpm based on the configured fan speed of 3000 rpm for the first application. It is understood that if the increased recommended rotational speed is greater than the upper limit of the fan speed, the upper limit of the fan speed can be used as the recommended rotational speed. Alternatively, 80% of the upper limit of the fan speed can be used as the recommended rotational speed. The 80% can be determined based on actual conditions; this embodiment is merely an example.

[0236] In this embodiment, the electronic device being in a first state signifies a high-performance requirement. When the electronic device is determined to be in the first state, appropriately increasing the rotation speed can meet the high-performance requirements of the electronic device / user. The scenario where the electronic device requires high performance as indicated by the first state is not limited to the examples in the above embodiments. For other scenarios / states where electronic devices have high-performance requirements, a first state can be preset, thereby increasing the rotation speed accordingly when the electronic device recognizes that it is in the first state.

[0237] S203, if the electronic device is in the second state, the electronic device reduces the fan speed to obtain the suggested fan speed corresponding to the second state.

[0238] The second state refers to the usage state of electronic devices that require low noise. For example, when an electronic device is in a specific scenario, such as a meeting or library, where low noise is required, the fan speed needs to be controlled to avoid excessive fan noise caused by excessive fan speed.

[0239] In some embodiments, the electronic device may determine whether it is in a second state based on information such as peripheral interfaces, running applications, and geographical location.

[0240] For example, Figure 12 shows some schematic diagrams of electronic devices in a second state. In Figure 12(a), the HDMI interface of the electronic device is in the "on" state, the external device is a projector, and the first application is an office application. This indicates the electronic device is in a meeting scenario and is in the second state. In this case, the rotation speed can be reduced to meet the low-noise requirements of the meeting scenario. Alternatively, as shown in Figure 12(b), the HDMI interface of the electronic device is in the "on" state, the external device is a display screen, and the first application is an office application. This indicates the electronic device is in a meeting scenario and is in the second state. In this case, the rotation speed can be reduced to meet the low-noise requirements of the meeting scenario.

[0241] For example, in some other embodiments, Figure 13 illustrates another scenario where an electronic device is in a second state. When the electronic device detects that it is within a library geofence, it considers itself to be in a location with low-noise requirements, and the electronic device enters the second state. In this state, the fan speed can be reduced to meet the low-noise requirements. The location with low-noise requirements is not limited to a library; geofences for locations with low-noise requirements can be pre-defined. The electronic device determines whether it is within a geofence with low-noise requirements through location detection. When it is determined to be in the second state, the fan speed is reduced to meet the low-noise requirements.

[0242] It is understandable that the electronic device can detect whether it is in the second state while running the first application. If the electronic device determines that it is in the second state, the fan speed is reduced based on the configured speed of the fan corresponding to the first application to obtain the suggested speed of the first application combined with the second state.

[0243] In other cases, the electronic device can also identify its second state when no applications are running. When no applications are running, the fan speed is controlled at the default speed. If the electronic device is determined to be in the second state, the fan speed is reduced from the default speed to obtain a suggested speed corresponding to the second state when no applications are running.

[0244] In this embodiment, the electronic device reduces its rotational speed at preset intervals. For example, if the interval is 500 rpm and the configured rotational speed for running the first application is 3000 rpm, then the recommended rotational speed for running the first application in the second state could be 2500 rpm. The interval can be determined based on actual conditions, or it can be set according to different specific situations in the second state. For example, when the electronic device detects that it is located at a geofence corresponding to a library, the fan speed can be reduced to the lower limit. In this case, the recommended rotational speed for the second state is the lower limit. For example, if the electronic device connects to an external projector via an HDMI interface, and the first application is an office application, the interval is 1000 rpm. Based on the configured fan speed of 3000 rpm for the first application, the electronic device reduces its rotational speed to 2000 rpm. It is understood that if the reduced recommended rotational speed is less than the upper limit of the fan speed, the lower limit of the fan speed can be used as the recommended rotational speed. Alternatively, 120% of the lower limit of the fan speed can be used as the recommended rotational speed. Here, 120% can be determined based on actual conditions; this embodiment is merely an example.

[0245] In this embodiment, the electronic device being in the second state signifies a low-noise requirement. When the electronic device is determined to be in the second state, appropriately reducing the rotation speed can satisfy the corresponding low-noise requirement of the electronic device / user. The scenario where the electronic device requires low noise as indicated by the second state is not limited to the examples in the above embodiments. For other scenarios / states where electronic devices have low-noise requirements, a second state can be preset, thereby reducing the rotation speed accordingly when the electronic device recognizes that it is in the second state.

[0246] When the fan speed of the aforementioned electronic devices is in either the first or second state, it must comply with the upper limit of the temperature (same as the lower limit of the speed) to avoid excessive temperature rise due to excessively low fan speed, resulting in poor heat dissipation and affecting device performance.

[0247] S204, the electronic device obtains the suggested fan speed corresponding to the first application.

[0248] In this embodiment, when the electronic device is running the first application, if it is in a first state, the recommended rotation speed of the first application in the first state can be determined; when the electronic device is running the first application, if it is in a second state, the recommended rotation speed of the first application in the second state can be determined.

[0249] In some embodiments, the first state and the second state may coexist. For example, if an electronic device has both high performance and low noise requirements, and the electronic device is simultaneously in the first state and the second state while running the first application, the recommended rotation speed of the first application in the first state and the second state can be determined.

[0250] In some embodiments, the electronic device may not run any application when it is in the first state and / or the second state. Then, the electronic device can determine the recommended rotational speed corresponding to the first state and / or the second state.

[0251] When an electronic device obtains the suggested fan speed for each application in a first state and / or a second state, or when the electronic device obtains the suggested fan speed for the first state and / or a second state, the electronic device can perform state recognition and control the fan rotation according to the suggested fan speed corresponding to the state in which the electronic device is in, so as to achieve the effect of accurately controlling the fan speed and meeting the needs of the electronic device in that state.

[0252] In some embodiments, Figure 14 shows a block diagram of a method for determining the recommended speed for each application based on the configured speed of the fan corresponding to each application.

[0253] In this embodiment, after the electronic device obtains the configured fan speed for each application, it can perform state recognition of the electronic device while running each application. In this embodiment, state recognition of the electronic device can also be understood as scene recognition.

[0254] Specifically, electronic devices can perform scene recognition by obtaining the status of peripheral interfaces through the hardware layer; or, electronic devices can perform scene recognition by detecting preset operations, running applications, and the location of the electronic device through the software layer.

[0255] The electronic device can perform scene recognition by identifying peripheral interfaces such as USB, HDMI, SD card slot, and headphone / microphone jack. Refer to the embodiments provided in S202 and S203 above; this embodiment will not repeat them. Alternatively, the electronic device can also perform scene recognition through external devices, such as an external keyboard, projector, or display screen. Refer to the embodiments provided in S202 and S203 above; this embodiment will not repeat them.

[0256] Electronic devices can perform scene recognition by acquiring their location and preset geofence information. Alternatively, they can perform scene recognition by measuring CPU power consumption. They can also perform scene recognition by detecting specific display scenes and prototypes. Furthermore, they can perform scene recognition by acquiring the application type of the currently running application. Finally, they can perform scene recognition by acquiring the purpose of the currently running application, such as image processing or video processing. Refer to the embodiments provided in S202 and S203 above; this embodiment will not elaborate further.

[0257] After scene recognition, the electronic device outputs suggested fan speeds for each application in conjunction with the scene (first state and / or second state). The electronic device can store the suggested fan speeds for each application in conjunction with the scene in a database. In this embodiment, the database can be a local large database; the database can also be a cloud-based large database.

[0258] In some embodiments, the aforementioned preset operations combining various scenes / electronic devices for scene recognition can be stored in a local large database or a cloud-based large database. The database may also include the configured fan speeds for each application, representing the user's fan speed setting preferences.

[0259] In this embodiment, the electronic device can also learn and compare the rotational speed configurations of different users under the same conditions to obtain recommended rotational speeds for scenarios with broader applicability. Furthermore, the fan speed requirements for different states of the electronic device can be preset, and recommended rotational speeds for different scenarios can be obtained based on the fan speed requirements under different states and the configured rotational speed of the fan running the application.

[0260] In some embodiments, the recommended rotation speeds for different scenarios (running different applications and / or being in different states) of the electronic device can be stored in a cloud database. Through electronic device data exchange technology, the recommended rotation speeds for different scenarios are sent to the electronic device, thereby providing data support for scenario recognition.

[0261] In some embodiments, exemplarily, as shown in Figure 15, Figure 15 illustrates a schematic diagram of a suggested rotational speed corresponding to a demand dimension. The configured rotational speed of the fan corresponding to each application is used as the input basis for scene recognition. Specifically, the system identifies when an electronic device is in a first state, and performs a first dynamic adjustment when the electronic device is in or out of the first state; it also identifies when a second device is in a second state, and performs a second dynamic adjustment when the electronic device is in or out of the second state. Since the suggested rotational speed is based on the configured rotational speed, it can characterize the user's rotational speed configuration preference (high rotational speed requirement or low rotational speed requirement). Furthermore, the suggested rotational speed considers the high-performance requirements of the electronic device in the first state and the non-high-performance requirements when it is out of (or not in) the first state. Additionally, the suggested rotational speed also considers the low-noise requirements of the electronic device in the second state and the requirement to ignore noise when it is out of (or not in) the second state.

[0262] In this embodiment, the electronic device can output a suggested fan speed corresponding to the state of the electronic device for each application. Alternatively, the electronic device can further combine different dimensions of needs to divide the scenario, thereby obtaining a suggested speed range for different scenarios. One suggested speed range corresponds to one suggested speed level. For example, as shown in Figure 16, Figure 16 gives a schematic diagram of multiple suggested speed levels for fan speeds based on different dimensions of needs.

[0263] In this embodiment, the electronic device can continuously sample and learn data based on the configured fan speed of each application and the actual usage state of the electronic device through a big data learning algorithm to obtain multiple suggested fan speed levels for different dimensions of needs. In this embodiment, the specific big data learning algorithm used is not limited. The key point of this embodiment is that the input parameters for data learning include the configured fan speed of each application and the suggested fan speed of each application under different electronic device usage states (first state / non-first state / second state / non-second state).

[0264] Based on the different dimensions of requirements shown in Figure 15, these requirements include user preferences for low or high speeds; high performance requirements corresponding to the electronic device being in the first state or low performance requirements corresponding to the electronic device not being in the first state; and low noise requirements corresponding to the electronic device being in the second state or ignoring noise requirements corresponding to the electronic device not being in the second state.

[0265] As shown in Figure 16, the recommended fan speed settings for different dimensional requirements include:

[0266] Recommended fan speed range 1: Low speed preference, non-high performance requirements, low noise requirements correspond to scenario 1, and the recommended fan speed range 1 is 1.

[0267] Recommended fan speed range 2: Low speed preference, non-high performance requirements, noise negligible scenario 2, corresponding to the recommended fan speed range 2;

[0268] Recommended fan speed range 3: Low speed preference, high performance requirement, low noise requirement corresponds to scenario 3, and the recommended fan speed range 3 is corresponding to this scenario.

[0269] Recommended fan speed range 4: Low speed preference, high performance requirement, noise negligible scenario 4, corresponding to the recommended fan speed range 4;

[0270] Recommended fan speed range 5: High speed preference, non-high performance requirements, low noise requirements correspond to scenario 5, and the recommended fan speed range is 5.

[0271] Recommended fan speed setting 6: High speed preference, non-high performance requirements, noise negligible in scenario 6, corresponding to the recommended fan speed range of 6;

[0272] Recommended fan speed range 7: High speed preference, high performance requirement, low noise requirement corresponds to scenario 7, and the recommended fan speed range 7 is corresponding to this scenario.

[0273] Recommended speed setting 8: High speed preference, high performance requirements, noise negligible scenarios 8, corresponding to the recommended fan speed range 8.

[0274] Different recommended speed settings correspond to different recommended fan speed ranges. After scene recognition, the electronic device can match the scene recognition results with the recommended fan speed settings to determine the target recommended speed setting. Then, based on the fan speed range corresponding to the target recommended speed setting, the fan speed is adjusted.

[0275] For example, when the electronic device is running application 2, it is detected that the electronic device is in state 1 and state 2. The user's speed configuration preference for application 2 is low speed preference. State 1 corresponds to high performance requirements, and state 2 corresponds to low noise requirements. Therefore, the electronic device can match the target suggested speed level 3 of the fan corresponding to scenario 3, which corresponds to "low speed preference, high performance requirements, and low noise requirements". The fan speed is then adjusted accordingly based on the suggested speed range 3 corresponding to this target suggested speed level 3, so that the fan speed meets the multiple dimensions of requirements in scenario 3.

[0276] In some embodiments, if the electronic device detects a change in the scene, such as a change in user configuration preferences, a change in the running application, a change in the first state, or a change in the second state, the electronic device performs scene recognition based on the changed scene, obtains the target suggested speed gear corresponding to the changed scene, and the application adjusts the fan speed accordingly by combining the target suggested speed range corresponding to the state of the electronic device.

[0277] The following examples illustrate a method for dynamically adjusting the fan speed when the scene changes during fan rotation by recognizing the scene.

[0278] For example, Figure 17 shows a schematic diagram of a scenario in which an electronic device dynamically adjusts the fan speed.

[0279] As shown in Figure 17(a), the electronic device is running Office Application 1, and the recommended fan speed for Office Application 1 is 2000 rpm. As shown in Figure 17(b), when the electronic device detects that the focus application has changed from Office Application 1 to Game Application 1, a change in the running application (also known as the focus application) occurs. Simultaneously, the electronic device performs scene recognition based on its actual usage state to determine the context corresponding to running Game Application 1. If the electronic device detects that the headphone / microphone jack is in place, then the focus application is the Game Application, and the electronic device is determined to be in the first state. The electronic device obtains the recommended fan speed for Game Application 1 in the first state. For example, if the recommended speed is 4800 rpm, then as shown in Figure 17(c), the electronic device correspondingly increases the fan speed from 2000 rpm to 4800 rpm to meet the fan speed requirements when running Game Application 1 and the electronic device is in the first state, as well as the performance and heat dissipation requirements of the electronic device.

[0280] In another example of fan speed adjustment based on suggested speed settings, consider an electronic device running an office application (Application 1), which corresponds to a low-speed preference. The device is in a state other than either the first or second state, corresponding to non-high-performance requirements and noise-ignoring requirements. The electronic device controls the fan speed at any speed within the suggested speed range 2 corresponding to the suggested speed setting 2 for the "low-speed preference, non-high-performance requirements, and noise-ignoring" scenario. For example, if the suggested speed range is 1800rpm-2200rpm, the electronic device can control the fan speed at 2000rpm. When the electronic device detects that the focused application has changed from Office application 1 to Game application 1, a change occurs in the running application (also called the focused application), and Game application 1 corresponds to a high-speed preference. Simultaneously, the electronic device performs scenario recognition based on the actual usage state of running Game application 1 to determine the associated scenario. If the electronic device detects that the headphone / microphone jack is present, the focused application is the Game application, and the electronic device is determined to be in the first state. The first state corresponds to high-performance requirements. The electronic device is in a state other than the second state, which corresponds to noise-ignoring requirements. The electronic device controls the fan speed at any speed within the recommended speed range 8 corresponding to the recommended speed setting 8 for scenarios involving "high speed preference, high performance requirements, and negligible noise". For example, if the recommended speed range is 4600rpm-5000rpm, the electronic device can control the fan speed at 4800rpm. Therefore, the electronic device will correspondingly increase the fan speed from 2000rpm to 4800rpm to meet the fan speed requirements when running game application 1 and the electronic device is in its first state, as well as the performance and heat dissipation requirements of the electronic device.

[0281] In this embodiment, the changes in the scenario include changes in the focus application, such as changing from running a first application to running a second application; or, the electronic device adding a new running application; or, the electronic device removing a running application.

[0282] The changes in the scenario also include changes in the user's preferred speed configuration for the focused application. For example, changing the configured speed of the first application from low to high, and changing the configured speed of the second application from high to low. It can be understood that in this embodiment, high or low speed each correspond to a speed range, and the high or low speed configuration input by the user can be determined based on the high speed range corresponding to high speed and the low speed range corresponding to low speed.

[0283] The change in scenario also includes changes in the first state, that is, the electronic device changes from being in the first state to exiting the first state, or the electronic device changes from not being in the first state to entering the first state. Specifically, for example, the electronic device detects an external USB flash drive connected to the USB interface, confirms entering the first state, and a change in the first state occurs. Alternatively, the electronic device detects the external USB flash drive being ejected, confirms exiting the first state, and a change in the first state occurs.

[0284] The change in scenario also includes changes in the second state, that is, the electronic device changes from being in the second state to exiting the second state, or the electronic device changes from not being in the second state to entering the second state. Specifically, for example, the electronic device detects that its location is within the geofence of the library, confirms entering the second state, and a change in the second state occurs. Or, the electronic device detects that its location has changed from the library to home, confirms exiting the second state, and a change in the second state occurs.

[0285] Scene changes can also include changes in other dimensions. As long as the electronic device detects a scene change, it needs to re-obtain the suggested fan speed corresponding to the changed scene in order to achieve a fan speed that is more in line with the actual scene conditions.

[0286] It should be noted that during the process of scene recognition by electronic devices and the control of the recommended fan speed after scene changes, the adjusted fan speed cannot be lower than the lower limit of the fan speed, nor can it be higher than the upper limit of the fan speed.

[0287] In this embodiment, the electronic device can continuously perform scene recognition. When the scene changes, it can promptly obtain the suggested rotation speed corresponding to the changed scene and control the fan rotation, making the control of the fan speed more suitable for the actual needs of the scene in which the electronic device is located, and making the fan control more accurate.

[0288] The above embodiments are all based on preset conditions and theoretical data to learn the recommended fan speeds for various applications combined with the usage state of electronic devices. That is, they obtain the recommended speed levels / ranges corresponding to various typical multi-dimensional demand combinations. For actual usage scenarios of electronic devices, in order to more accurately grasp the impact of fan noise on the environment in which the electronic device is located, and to more accurately meet low-noise requirements or ignore noise requirements, the electronic device can also collect ambient noise through a built-in microphone. Based on the ambient noise, the fan speed is further adjusted based on the recommended speed.

[0289] In this embodiment, each fan speed corresponds to a fan noise level; for example, the fan noise level can be between 15dB and 50dB. The electronic device can obtain the fan speed and, based on a preset correspondence between fan speed and fan noise, convert it into the corresponding fan noise. The electronic device can acquire ambient noise through one or more microphones. If the fan noise is lower than the ambient noise, meaning the environment where the electronic device is located allows for slightly higher noise levels, the fan speed can be appropriately increased to achieve higher performance. If the fan noise is higher than the ambient noise, meaning the fan noise of the electronic device may be interfering with the noise in the environment where the electronic device is located, the fan speed can be appropriately reduced to avoid the adverse effects of the fan noise.

[0290] In this embodiment, the ambient noise collected by the microphone may be interfered with by fan noise. In this embodiment, after the electronic device collects audio data through the microphone, it can use voiceprint technology or other audio processing techniques to remove data with the same frequency as the fan noise, obtaining data corresponding to the ambient noise with less interference. This embodiment can also use other methods to reduce the interference of fan noise on ambient noise; this embodiment does not limit the specific technology used.

[0291] In this embodiment, ensuring that the fan noise of the electronic device is not lower than the ambient noise allows the fan to rotate as much as possible, releasing heat dissipation capacity and resulting in higher device performance.

[0292] When an electronic device is running various applications, the recommended fan speed is controlled based on the application's context and the device's actual state (i.e., the scenario corresponding to each application). During fan control, the electronic device can identify environmental noise and the scenario, thereby dynamically adjusting the fan speed to ensure more timely and appropriate adjustments that better meet the device's actual usage needs.

[0293] Figure 18 shows a flowchart of a fan speed control method. As shown in Figure 18, the fan speed control method provided in this embodiment includes:

[0294] S401, the electronic device runs a first application and controls the fan to rotate at the recommended fan speed corresponding to the first application.

[0295] The recommended speed is the speed suggested by the electronic device, which is retrieved from the database and matches the speed of the first application being run and its actual scenario.

[0296] During the process of the electronic device controlling the fan rotation at the recommended speed, the electronic device performs dynamic detection and dynamic adjustment, including:

[0297] S402, the electronic device determines whether the suggested speed is greater than the upper limit of the fan speed; if so, the electronic device reduces the speed and returns to continuously check whether the suggested speed is greater than the upper limit of the fan speed; if not, proceed to S403.

[0298] In this embodiment, after the electronic device starts the fan at the recommended speed, the fan may adaptively increase the speed. Therefore, the electronic device can also detect the actual speed in real time and reduce the speed in time when the actual speed is detected to be greater than the upper limit value, so as to reduce the power consumption of the electronic device.

[0299] In this embodiment, if the electronic device stores recommended fan speed settings, then when it is determined that the recommended speed is greater than the upper limit of the fan speed and a reduction in speed is needed, the speed can be adjusted by decreasing the recommended fan speed setting by one level. If the electronic device does not store recommended fan speed settings, then when reducing the speed, the fan speed can be reduced by a preset speed step size for speed control adjustment.

[0300] S403, the electronic device determines whether the temperature rise value after running the first application is greater than the upper limit of the temperature rise value. If yes, the electronic device increases the speed and returns to continuously detect whether the temperature rise value is greater than the upper limit of the temperature rise value; if no, execute S404.

[0301] In this embodiment, the temperature rise after running the first application refers to the increment between the temperature before running the first application and the temperature after running the first application. If this increment is greater than the upper limit of the temperature rise, it indicates that a sudden increase in temperature occurred when running the first application. To avoid the adverse effects of a sudden temperature increase on electronic devices, such as performance degradation due to excessively high temperatures, the electronic device can increase its rotation speed in this situation to achieve rapid heat dissipation and cooling.

[0302] In this embodiment, if the electronic device stores recommended fan speed settings, then when the temperature rise after running the first application exceeds the upper limit of the temperature rise and the fan speed needs to be increased, the speed can be adjusted by increasing the recommended fan speed setting by one level. If the electronic device does not store recommended fan speed settings, then when increasing the speed, the fan speed can be increased by a preset speed step size for speed control and adjustment.

[0303] If the increase is less than or equal to the upper limit of temperature rise, the electronic device can perform subsequent identification:

[0304] S404, Electronic equipment continuously collects ambient noise.

[0305] In this embodiment, the electronic device collects ambient noise through a microphone.

[0306] S405, the electronic device determines whether the fan noise corresponding to the current speed is less than or equal to the ambient noise.

[0307] If the fan noise is equal to or less than the ambient noise, the fan speed is increased; if the fan noise is greater than the ambient noise, the fan speed is decreased.

[0308] In this embodiment, if the electronic device stores recommended fan speed settings, the speed can be adjusted by increasing or decreasing the recommended fan speed setting by one level. If the electronic device does not store recommended fan speed settings, the speed can be controlled and adjusted by increasing or decreasing the fan speed by a preset speed step size.

[0309] The current speed refers to the actual speed after adjustments made to the recommended speed via S402 and S403. However, in reality, the recommended speed in the first application is unlikely to be too high or too low. Therefore, in actual situations, the recommended speed in S402 is most likely less than or equal to the upper limit of the speed; and in S403, the temperature rise value is also most likely less than or equal to the upper limit of the temperature rise. Therefore, the current speed here is most likely still the recommended speed. The electronic device can directly obtain the current fan speed and, based on the current speed, obtain the corresponding fan noise. It can then adjust the speed based on the fan noise and ambient noise.

[0310] S406, The electronic device obtains the adjusted speed based on the ambient noise, and controls the fan rotation by adjusting the speed.

[0311] S407, the electronic device detects whether a speed configuration operation has occurred.

[0312] S408 If a user-triggered configuration speed operation is detected, the updated configuration speed input by the user is obtained to update the configuration speed and control the fan rotation.

[0313] In addition, electronic devices can also detect whether the focus application has changed. That is, whether the currently running application has changed from the first application to the second application.

[0314] The second application is any application other than the first application.

[0315] If no speed configuration operation is detected, continue with other checks:

[0316] S409, the electronic device detects whether the focus application has changed. If so, it controls the fan to rotate at the recommended speed corresponding to the changed second application; if there is no change, it continues with other detections.

[0317] The electronic device can query the database for the recommended speed corresponding to the second application and control the fan to rotate according to the recommended speed of the second application.

[0318] In addition, the electronic device can also identify first and second state changes. That is, it can perform scene recognition on the actual state of the electronic device corresponding to the first application / second application.

[0319] S410: The electronic device detects whether its state has changed. If so, it controls the fan to rotate at the recommended speed corresponding to the changed scene; if no change has occurred, it returns to execute S404.

[0320] In this embodiment, if no speed configuration operation is detected during the process of controlling the fan rotation at the second speed, and the focus application does not change, and the state of the electronic device does not change, the electronic device returns to execute S404 to continuously collect ambient noise and perform speed adjustment based on ambient noise and fan noise.

[0321] If a change occurs in S409 or S410, the fan speed is controlled to rotate according to the recommended speed corresponding to the changed second application / scenario, and the process returns to execute S402.

[0322] It is understandable that the above method flow only provides an example of an execution sequence. In the actual process of scene recognition and dynamic fan speed control, S407, S409, and S410 can execute one or more of them, and the order of S407, S409, and S410 is not limited. Alternatively, other detections related to fan speed adjustment can be added after S408 to more accurately obtain the actual operating scenario of the current electronic device, making fan speed control more accurate and better suited to actual needs.

[0323] In this embodiment, the electronic device stores suggested rotation speeds for different scenarios. When the electronic device detects a change in the scenario, it obtains the target suggested rotation speed corresponding to the changed scenario and controls the fan rotation at the target suggested rotation speed. The suggested rotation speed is determined by the user's configured rotation speed for the application and the actual state of the electronic device. The suggested rotation speed takes into account the user's preference for the running application's rotation speed, the performance preference of the electronic device's actual state, and noise preference. The suggested fan rotation speed for each scenario can better match the actual usage state of the electronic device, meet the actual needs of the electronic device, and avoid a control method based on a single correspondence between temperature and fan speed, resulting in higher granularity and more accurate fan control.

[0324] In some other feasible embodiments, the heat dissipation device in the electronic device may also be a water cooling system, a radiator, or other devices.

[0325] It is understood that, regardless of the type of heat dissipation device, the processing method for the recommended rotation speed (recommended parameter) in the control method provided in the embodiments of this application can be applied to obtain the corresponding recommended parameters (controllable parameters of the heat dissipation device) of the heat dissipation device, so as to achieve the purpose of adjusting the heat dissipation effect.

[0326] Specifically, let's take a water-cooling system as an example. The controllable parameters of a water-cooling system include the flow rate and / or volume of the coolant. The faster the flow rate, the greater the heat dissipation effect, resulting in a cooling effect; the higher the volume, the greater the heat dissipation effect, resulting in a cooling effect.

[0327] The electronic device can obtain the configured rotation speed and / or configured flow rate, as well as the suggested flow rate and / or suggested flow rate, corresponding to the water cooling system through the methods described in the above embodiments. When the electronic device is running an application, the water cooling system is controlled based on the suggested flow rate and / or suggested flow rate corresponding to the actual state of the electronic device. During the control of the water cooling system, scene changes are detected, thereby achieving the goal of dynamically controlling the water cooling system based on the actual state of the electronic device and user configuration preferences, making the heat dissipation effect of the water cooling system more consistent with the actual situation. Furthermore, the water cooling system also generates noise due to water flow. This noise can also be collected using a microphone, and the ambient noise can be compared with the water flow noise to achieve dynamic adjustment of the flow rate and / or flow rate.

[0328] In this embodiment, the heat dissipation device and its corresponding controllable parameters are determined, and the method in the above embodiment can be used to dynamically control the heat dissipation device, so that the electronic device can achieve heat dissipation while meeting the multi-dimensional needs of different scenarios.

[0329] It should be noted that the personal information used in the technical solution of this application is limited to information for which individual consent has been obtained, including but not limited to notifying and reminding users to read the relevant user agreement (notification) and sign the agreement (authorization) which includes authorization of relevant user information before users use the function.

[0330] The user's personal information includes behavioral information about how the user uses electronic devices. For example, when running a game application, the user usually plugs in headphones, putting the electronic device in the first state; when running an office application, the user usually connects an external projector via HDMI, putting the electronic device in the second state, and so on. With the user's consent, the electronic device can collect this behavioral information, which becomes learning data for scene recognition, enabling better learning and recognition of scenes that match the user's habits.

[0331] The technical solutions disclosed in this application involve the collection, storage, use, processing, transmission, provision, and disclosure of users' personal information, all of which comply with relevant laws and regulations and do not violate public order and good morals.

[0332] Figure 19 shows a possible structural schematic diagram of the electronic device involved in the above embodiments. The electronic device 1000 shown in Figure 19 includes a processing module 1001, a heat dissipation module 1002, a display module 1003, an audio acquisition module 1004, and a storage module 1005.

[0333] The processing module 1001 may be a central processing unit (CPU), a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. The processor may include an application processor and a baseband processor. It may implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. The processor may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.

[0334] For example, processing module 1001 can be processor 110 as shown in FIG2; heat dissipation module 1002 can be fan 150 as shown in FIG2; display module 1003 can be display screen 190 as shown in FIG2; audio acquisition module 1004 can be microphone in audio module 170 as shown in FIG2; and storage module 1005 can be internal memory 121 as shown in FIG2. The electronic device provided in this application embodiment can be electronic device 100 as shown in FIG2.

[0335] This application also provides a chip system (e.g., a system-on-a-chip, SoC), as shown in FIG20. The chip system includes at least one processor 2001 and at least one interface circuit 2002. The processor 2001 and the interface circuit 2002 are interconnected via lines. For example, the interface circuit 2002 can be used to receive signals from other devices (e.g., the memory of an electronic device). As another example, the interface circuit 2002 can be used to send signals to other devices (e.g., the processor 2001 or the camera of an electronic device). Exemplarily, the interface circuit 2002 can read instructions stored in the memory and send the instructions to the processor 2001. When the instructions are executed by the processor 2001, the electronic device can perform the steps in the above embodiments. Of course, the chip system may also include other discrete devices, which are not specifically limited in this application.

[0336] This application also provides a computer-readable storage medium including computer instructions that, when executed on the electronic device, cause the electronic device to perform various functions or steps performed by the electronic device 100 in the above method embodiment.

[0337] This application also provides a computer program product that, when run on a computer, causes the computer to perform the various functions or steps performed by the electronic device 100 in the above method embodiments. For example, the computer may be the aforementioned electronic device 100.

[0338] Through the above description of the embodiments, those skilled in the art can clearly understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

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

[0340] The units described as separate components may or may not be physically separate. A component shown as a unit can be one or more physical units; that is, it can be located in one place or distributed in multiple different locations. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0341] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0342] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, essentially or in other words, the parts that contribute to the prior art, or all or part of the technical solutions, can be embodied in the form of a software product. This software product is stored in a storage medium and includes several instructions to cause a device (which may be a microcontroller, chip, etc.) or processor to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0343] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A fan speed control method, characterized by, Applied to an electronic device, the electronic device including a fan, the electronic device having multiple applications deployed therein; the method includes: If the electronic device detects a scene change, the electronic device obtains the target suggested fan speed corresponding to the changed scene; The electronic device controls the fan to rotate at the target recommended speed. The recommended fan speed varies depending on the scenario. The recommended fan speed for each scenario is determined by the user's configured speed for the application running in that scenario and the actual state of the electronic device in that scenario. The configured speed of the application represents the user's speed configuration preference for the application running, and the actual state of the electronic device corresponds to the performance preference and / or noise preference for that scenario.

2. The method of claim 1, wherein, The method further includes: When the electronic device is running each of the applications, the fan is controlled to rotate according to the configured speed corresponding to each application; the configured speed corresponding to each application includes the user-input configured speed or the preset default speed; The electronic device identifies its actual state, and based on the actual state of the electronic device, adjusts the configuration speed corresponding to each application to obtain the suggested speed corresponding to each scenario that combines the running of each application with the actual state of the electronic device. The actual state of the electronic device includes the electronic device being in a first state or not in a first state, and / or the electronic device being in a second state or not in a second state; the first state represents the state in which the electronic device has a high performance preference, and the second state represents the state in which the electronic device has a low noise requirement.

3. The method of claim 2, wherein, When the configured rotational speed corresponding to each of the aforementioned applications includes the configured rotational speed input by the user, the method further includes: The electronic device receives the user's fan speed configuration operation and obtains the input configuration speed; The electronic device determines the focus application corresponding to the fan speed configuration operation of the receiving user; The electronic device uses the input configuration speed as the configuration speed corresponding to the focus application; The focused application is either the application corresponding to the top-level window of the electronic device when the fan speed configuration operation is received, or the focused application is the application corresponding to the top-level window that runs within a preset time period after the fan speed configuration operation is received.

4. The method of claim 2, wherein, When the configured rotational speed corresponding to each of the aforementioned applications includes the configured rotational speed input by the user, the method further includes: The electronic device receives the user's fan speed configuration operation and obtains the input configuration speed; The electronic device determines the focus application corresponding to the fan speed configuration operation of the receiving user; The electronic device stores the focus application and the corresponding input configuration speed in the database; The electronic device categorizes the applications in the database to obtain multiple application sets; applications in the same application set belong to the same application type, and the difference in power consumption between the applications in the same application set is less than a preset difference. The electronic device determines the configuration speed corresponding to the application set based on at least one input configuration speed of at least one application in the application set. The focused application is either the application corresponding to the top-level window of the electronic device when the fan speed configuration operation is received, or the focused application is the application corresponding to the top-level window that runs within a preset time period after the fan speed configuration operation is received.

5. The method of claim 4, wherein, The plurality of applications includes a first application. When the electronic device is running each of the applications, controlling the fan to rotate at a configured speed corresponding to each application includes: When the electronic device runs the first application, if the configuration speed corresponding to the first application does not exist in the database, the electronic device determines a set of target applications that match the first application based on the application type and operating power consumption of the first application. The electronic device uses the target configuration speed corresponding to the target application set as the configuration speed of the first application; The electronic device controls the fan to rotate at the speed configured for the first application.

6. The method of claim 4, wherein, Each of the aforementioned applications includes a first application; when the electronic device is running each of the aforementioned applications, controlling the fan to rotate at a configured speed corresponding to each of the aforementioned applications includes: When the electronic device runs the first application, if the database does not contain a configuration speed corresponding to the first application, and there is no application set corresponding to the first application, the electronic device will use a preset default speed as the configuration speed of the first application. The electronic device controls the fan to rotate at the speed configured for the first application.

7. The method according to any one of claims 3-6, characterized in that, The input configuration speed is greater than or equal to the lower limit of the fan speed, or the temperature corresponding to the input configuration speed is less than or equal to the upper limit of the temperature.

8. The method of claim 2, wherein, The electronic device identifies its actual state, and based on this state, adjusts the configured speed of each application to obtain suggested speeds for each scenario, combining the running of each application with the actual state of the electronic device. This includes: If the electronic device is in the first state, the electronic device increases its speed based on the configured speed according to a preset speed step size to obtain the suggested speed for running each application when the electronic device is in the first state.

9. The method of claim 8, wherein, The electronic device being in the first state includes at least one or more of the following situations: The headphone peripheral interface of the electronic device is in place, and the electronic device is running a specified application; the specified application is a preset application with high power consumption. Alternatively, the serial interface of the electronic device is in place, and the electronic device is transmitting data or files; Alternatively, the electronic device may be displayed as a demonstration prototype.

10. The method of claim 2, wherein, The electronic device identifies its actual state, and based on this state, adjusts the configured speed of each application to obtain suggested speeds for each scenario, combining the running of each application with the actual state of the electronic device. This includes: If the electronic device is in the second state, the electronic device reduces its speed based on the configured speed according to a preset speed step size to obtain the suggested speed for running each application when the electronic device is in the second state.

11. The method of claim 10, wherein, The electronic device being in the second state includes at least one or more of the following situations: The electronic device is located within a preset geofence; the preset geofence is used to indicate locations with low-noise requirements. Alternatively, the display peripheral interface of the electronic device is in place, and the electronic device is running an office application.

12. The method of claim 2, wherein, The electronic device identifies its actual state, and based on this state, adjusts the configured speed of each application to obtain suggested speeds for each scenario, combining the running of each application with the actual state of the electronic device. This includes: If the electronic device is in the first state, the electronic device increases the speed based on the configured speed according to a preset speed step size to obtain the adjusted speed corresponding to the operation of each application when the electronic device is in the first state; If the electronic device is in the second state, the electronic device reduces its speed based on the adjusted speed according to a preset speed step size, to obtain the suggested speed for running each application when the electronic device is in the first state and the electronic device is in the second state.

13. The method according to any one of claims 1-12, characterized in that, The method further includes: The electronic device will divide the recommended speed of each scenario into multiple dimensions based on the combination of the running application and the actual state of the electronic device, thus obtaining multiple recommended speed levels for the fan; each recommended speed level corresponds to a recommended speed range. The electronic device acquires the target suggested fan speed corresponding to the changed scene, including: The electronic device determines a target suggested speed range that matches the changed scenario from the plurality of suggested speed ranges, and obtains any value in the suggested speed range of the target suggested speed range as the target suggested speed. The gear segmentation across multiple dimensions includes one or more combined methods based on the user's speed configuration preference, performance preference, or noise preference; wherein the speed configuration preference includes high speed requirement or low speed requirement, the performance preference includes high performance requirement or non-high performance requirement, and the noise preference includes low noise requirement or noise negligibility.

14. The method of any one of claims 1-13, wherein, If the electronic device detects a scene change, the electronic device obtains the target suggested fan speed corresponding to the changed scene, further including: If the electronic device receives a user's fan speed configuration operation, it obtains the updated configuration speed. The electronic device uses the updated configuration speed as the target recommended speed.

15. The method of any one of claims 1-14, wherein, If the electronic device detects a scene change, the electronic device obtains the target suggested fan speed corresponding to the changed scene, including: If the electronic device detects a change in the application running in the scenario, the electronic device obtains the suggested rotation speed for the scenario corresponding to the updated running application, and uses it as the target suggested rotation speed.

16. The method of any one of claims 1-15, wherein, If the electronic device detects a scene change, the electronic device obtains the target suggested fan speed corresponding to the changed scene, including: If the electronic device detects a change in the actual state of the electronic device corresponding to the scenario, the electronic device obtains the suggested rotation speed under the updated actual state scenario as the target suggested rotation speed. The change in the actual state of the electronic device includes the electronic device entering or exiting a first state, and / or the electronic device entering or exiting a second state.

17. The method of any one of claims 1-15, wherein, The electronic device includes an audio acquisition device; In controlling the fan rotation at the target recommended speed, the method further includes: The electronic device acquires ambient noise through the audio acquisition device; If the fan noise corresponding to the target suggested speed is lower than the ambient noise, the electronic device increases the fan speed. If the fan noise corresponding to the target recommended speed is higher than the ambient noise, the electronic device reduces the fan speed.

18. The method of claim 17, wherein, The electronic device stores multiple suggested speed settings for the fan; the electronic device increases the fan speed by: The electronic device increases the fan speed to the next recommended speed level below the recommended speed level corresponding to the target recommended speed; the minimum speed of the next recommended speed level is greater than the maximum speed of the recommended speed level corresponding to the target recommended speed. The electronic device reduces the fan speed, including: The electronic device reduces the fan speed to the next higher recommended speed level corresponding to the target recommended speed; the maximum speed of the next higher recommended speed level is less than the minimum speed of the recommended speed level corresponding to the target recommended speed.

19. The method of any one of claims 1-18, wherein, During the process of the electronic device controlling the fan rotation at the target recommended speed, the method further includes: If the target recommended speed is greater than the upper limit of the fan speed, the electronic device reduces the fan speed according to a preset speed step.

20. The method according to any one of claims 1-19, characterized in that, During the process of the electronic device controlling the fan rotation at the target recommended speed, the method further includes: If the temperature rise corresponding to the target suggested speed is greater than the upper limit of the fan's temperature rise, the electronic device increases the fan speed according to a preset speed step size; The temperature rise is the temperature difference between the temperature before the fan is controlled to rotate at the target recommended speed and the actual temperature after the fan is controlled to rotate at the target recommended speed.

21. An electronic device comprising a fan, a memory, a processor, and a computer program stored in the memory, characterized in that, The processor executes the computer program to implement the steps of the method according to any one of claims 1-20.

22. A computer-readable storage medium having a computer program stored thereon, characterized in that, When executed by a processor, the computer program implements the steps of the method described in any one of claims 1-20.

23. A computer program product, comprising a computer program, characterized in that, When executed by a processor, the computer program implements the steps of the method described in any one of claims 1-20.