diff --git a/power-fancontrol.pl b/power-fancontrol.pl index c735947..68a9b4e 100644 --- a/power-fancontrol.pl +++ b/power-fancontrol.pl @@ -56,7 +56,7 @@ my $g_last_set_cpu_temp = 0; my $g_last_set_sys_power = 0; 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 $cpu_temp_difference = 0; my $sys_power_difference = 0;