A method for controlling total power consumption of a system by setting controller parameters based on phases, which is applied to a system at least comprising a heat-generating element, a fan, and a controller, wherein the method comprises:
- setting the controller with a heating control parameter and a cooling control parameter;
- reading, by the controller, a current temperature and a temperature at a previous moment of the heat-generating element;
- and
- comparing, by the controller, the current temperature with the temperature at the previous moment to determine whether the heat-generating element is in a heating phase or in a cooling phase;
- wherein, if it is determined that the heat-generating element is in the heating phase, the controller provides feedback control to the fan based on the heating control parameter, in order to control the total power consumption of the system;
- if it is determined that the heat-generating element is in the cooling phase, the controller provides feedback control to the fan based on the cooling control parameter, in order to control the total power consumption of the system.