Skip to content

Commit

Permalink
Fix systemd-udev high CPU usage
Browse files Browse the repository at this point in the history
  • Loading branch information
pymumu committed Oct 28, 2023
1 parent ebecfae commit 3a119fa
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/fan-control.c
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,13 @@ int init_thermal()
return -1;
}

ret = write_value("/sys/class/thermal/thermal_zone0/mode", "disabled");
if (ret < 0)
{
printf("Failed to set thermal mode, %s\n", strerror(errno));
return -1;
}

fan_mode = 1;

return 0;
Expand Down

0 comments on commit 3a119fa

Please sign in to comment.