Update power-fancontrol.pl

and fix k10 temp sensor to be more robust
main
"Riku" 2024-12-07 10:48:05 +02:00
parent 4ce779db0d
commit 808c898192
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ my $g_last_set_cpu_temp = 0;
my $g_last_set_sys_power = 0; my $g_last_set_sys_power = 0;
sub UpdateFanSpeed { sub UpdateFanSpeed {
my $current_cpu_temp = `sensors k10temp-pci-00c3 | grep 'Tctl:' | cut -c 16-17 | tr -d '\n'`; my $current_cpu_temp = `sensors \$(sensors |grep k10temp) | grep 'Tctl:' | cut -c 16-17 | tr -d '\n'`;
my $current_sys_power = `sensors \$(sensors |grep corsairpsu) | grep 'power total:' | cut -c 14-16 | tr -d '\n'`; my $current_sys_power = `sensors \$(sensors |grep corsairpsu) | grep 'power total:' | cut -c 14-16 | tr -d '\n'`;
my $cpu_temp_difference = 0; my $cpu_temp_difference = 0;
my $sys_power_difference = 0; my $sys_power_difference = 0;