Llega el calorcito y con el calorcito los ordenadores que se sobrecalientan, empiezan a ir lentos y a agobiar a sus usuarios.
La gestión de los ventiladores se hace por software y normalmente esta gestión con gnu/linux deja un poco que desear. Pero al usar un thinkpad, el tipo de ordenador que mas usan los frikis, siempre hay herramientas que nos ayudan a tener un funcionamiento mas fino de nuestro dispositivo.
En este caso nos interesa tener un poco mas controlado el funcionamiento de los ventiladores.
Para ello vamos a instalar fancontrol
root@salnitre:/proc/acpi/ibm# apt-get install fancontrol
A continuación vamos a ejecutar pwmconfig
root@salnitre:/proc/acpi/ibm# pwmconfig # pwmconfig revision 5857 (2010-08-22) This program will search your sensors for pulse width modulation (pwm) controls, and test each one to see if it controls a fan on your motherboard. Note that many motherboards do not have pwm circuitry installed, even if your sensor chip supports pwm. We will attempt to briefly stop each fan using the pwm controls. The program will attempt to restore each fan to full speed after testing. However, it is ** very important ** that you physically verify that the fans have been to full speed after the program has completed. Found the following devices: hwmon0 is acpitz hwmon1/device is coretemp hwmon2/device is thinkpad Found the following PWM controls: hwmon2/device/pwm1 Giving the fans some time to reach full speed... Found the following fan sensors: hwmon2/device/fan1_input current speed: 4988 RPM Warning!!! This program will stop your fans, one at a time, for approximately 5 seconds each!!! This may cause your processor temperature to rise!!! If you do not want to do this hit control-C now!!! Hit return to continue: Testing pwm control hwmon2/device/pwm1 ... hwmon2/device/fan1_input ... speed was 1929 now 0 It appears that fan hwmon2/device/fan1_input is controlled by pwm hwmon2/device/pwm1 Would you like to generate a detailed correlation (y)? y Would you like to generate a graphical plot using gnuplot (y)? PWM 255 FAN 0 Fan Stopped at PWM = 255 This fan appears to stop when the PWM is enabled; perhaps the fan input shares a pin with the PWM output on the sensor chip. You cannot control this fan with this PWM output. Testing is complete. Please verify that all fans have returned to their normal speed. The fancontrol script can automatically respond to temperature changes of your system by changing fanspeeds. Do you want to set up its configuration file now (y)? What should be the path to your fancontrol config file (/etc/fancontrol)? Select fan output to configure, or other action: 1) hwmon2/device/pwm1 3) Just quit 5) Show configuration 2) Change INTERVAL 4) Save and quit select (1-n): 1 Devices: hwmon0 is acpitz hwmon1/device is coretemp hwmon2/device is thinkpad Current temperature readings are as follows: hwmon0/temp1_input 47 hwmon0/temp2_input 47 hwmon1/device/temp2_input 48 hwmon1/device/temp3_input 47 hwmon2/device/temp1_input 47 hwmon2/device/temp2_input 45 cat: hwmon2/device/temp3_input: El dispositiu o adreça no existeix /usr/sbin/pwmconfig: line 876: let: S= / 1000: syntax error: operand expected (error token is "/ 1000") hwmon2/device/temp3_input hwmon2/device/temp4_input 40 hwmon2/device/temp5_input 37 cat: hwmon2/device/temp6_input: El dispositiu o adreça no existeix /usr/sbin/pwmconfig: line 876: let: S= / 1000: syntax error: operand expected (error token is "/ 1000") hwmon2/device/temp6_input hwmon2/device/temp7_input 36 cat: hwmon2/device/temp8_input: El dispositiu o adreça no existeix /usr/sbin/pwmconfig: line 876: let: S= / 1000: syntax error: operand expected (error token is "/ 1000") hwmon2/device/temp8_input hwmon2/device/temp9_input 40 Select a temperature sensor as source for hwmon2/device/pwm1: 1) hwmon0/temp1_input 2) hwmon0/temp2_input 3) hwmon1/device/temp2_input 4) hwmon1/device/temp3_input 5) hwmon2/device/temp1_input 6) hwmon2/device/temp2_input 7) hwmon2/device/temp3_input 8) hwmon2/device/temp4_input 9) hwmon2/device/temp5_input 10) hwmon2/device/temp6_input 11) hwmon2/device/temp7_input 12) hwmon2/device/temp8_input 13) hwmon2/device/temp9_input 14) None (Do not affect this PWM output) select (1-n): 5 Enter the low temperature (degree C) below which the fan should spin at minimum speed (20): Enter the high temperature (degree C) over which the fan should spin at maximum speed (60): Enter the minimum PWM value (0-255) at which the fan STOPS spinning (press t to test) (100): Enter the minimum PWM value (100-255) at which the fan STARTS spinning (press t to test) (150): Enter the PWM value (0-100) to use when the temperature is below the low temperature limit (0): Enter the PWM value (100-255) to use when the temperature is over the high temperature limit (255): Select fan output to configure, or other action: 1) hwmon2/device/pwm1 3) Just quit 5) Show configuration 2) Change INTERVAL 4) Save and quit select (1-n): 4 Saving configuration to /etc/fancontrol... Configuration saved
Una vez instalado mi primera impresión es que el portátil se calienta un poco menos, vamos a ver qué tal va a comportarse en momentos de intenso calor!
Más información (recomendable leer): How to control fan speed