La mayorÃa de las tarjetas madre tienen integrada esta funcionalidad, la de poder monitorear la temperatura del procesador y la velocidad de los ventiladores, y este es el motivo de mi post, voy a poner como se activan estos sensores para poder usarlos con algun software medidor de recursos como el Gkrellm, este es el que uso yo
ya lo habia mencionado en post anteriores .
Bueno primero lo primero, hay que saber que módulos son los que necesita nuestra tarjeta madre, para esto usamos el paquete lm_sensors incluido en portage, para los usuarios de gentoo pues ya saben:
[terminal]
lily ~ # emerge -av lm_sensors
These are the packages that would be merged, in order:
Calculating dependencies… done!
[ebuild R ] sys-apps/lm_sensors-2.10.4 USE=”-sensord” 0 kB
Total: 1 package (1 reinstall), Size of downloads: 0 kB
Would you like to merge these packages? [Yes/No] N
[/terminal]
Para los usuarios de otras distros pues les recomiendo el administrador de paquetes que incluye (apt, yum, etc) o bien bajarse el tarball e instalarlo a mano.
Una vez que ya tenemos el paquete instalado ejecutamos sensors-detect, este nos dira que drivers necesitamos para activar nuestros sensores.
[terminal]
lily ~ # sensors-detect
# sensors-detect revision 4609 (2007-07-14 09:28:39 -0700)
This program will help you determine which kernel modules you need
to load to use lm_sensors most effectively. It is generally safe
and recommended to accept the default answers to all questions,
unless you know what you’re doing.
We can start with probing for (PCI) I2C or SMBus adapters.
Do you want to probe now? (YES/no):
Probing for PCI bus adapters…
Use driver `i2c-ali15x3′ for device 0000:00:03.1: Acer Labs 1533/1543
Use driver `i2c-ali1535′ for device 0000:00:03.1: Acer Labs 1535
Use driver `i2c-ali1563′ for device 0000:00:03.0: Acer Labs 1563
We will now try to load each adapter module in turn.
Load `i2c-ali15x3′ (say NO if built into your kernel)? (YES/no):
FATAL: Module i2c_ali15x3 not found.
Loading failed… skipping.
Load `i2c-ali1535′ (say NO if built into your kernel)? (YES/no):
FATAL: Module i2c_ali1535 not found.
Loading failed… skipping.
Load `i2c-ali1563′ (say NO if built into your kernel)? (YES/no):
FATAL: Module i2c_ali1563 not found.
Loading failed… skipping.
If you have undetectable or unsupported adapters, you can have them
scanned by manually loading the modules before running this script.
To continue, we need module `i2c-dev’ to be loaded.
Do you want to load `i2c-dev’ now? (YES/no):
FATAL: Module i2c_dev not found.
Loading failed, expect problems later on.
We are now going to do the I2C/SMBus adapter probings. Some chips may
be double detected; we choose the one with the highest confidence
value in that case.
If you found that the adapter hung after probing a certain address,
you can specify that address to remain unprobed.
Some chips are also accessible through the ISA I/O ports. We have to
write to arbitrary I/O ports to probe them. This is usually safe though.
Yes, you do have ISA I/O ports even if you do not have any ISA slots!
Do you want to scan the ISA I/O ports? (YES/no):
Probing for `National Semiconductor LM78′ at 0×290… No
Probing for `National Semiconductor LM78-J’ at 0×290… No
Probing for `National Semiconductor LM79′ at 0×290… No
Probing for `Winbond W83781D’ at 0×290… No
Probing for `Winbond W83782D’ at 0×290… No
Probing for `Silicon Integrated Systems SIS5595′… No
Probing for `VIA VT82C686 Integrated Sensors’… No
Probing for `VIA VT8231 Integrated Sensors’… No
Probing for `IPMI BMC KCS’ at 0xca0… No
Probing for `IPMI BMC SMIC’ at 0xca8… No
Some Super I/O chips may also contain sensors. We have to write to
standard I/O ports to probe them. This is usually safe.
Do you want to scan for Super I/O sensors? (YES/no):
Probing for Super-I/O at 0x2e/0x2f
Trying family `National Semiconductor’… No
Trying family `SMSC’… Yes
Found `SMSC LPC47M15x/192/997 Super IO Fan Sensors’ Success!
(address 0×800, driver `smsc47m1′)
Probing for Super-I/O at 0x4e/0x4f
Trying family `National Semiconductor’… No
Trying family `SMSC’… No
Trying family `VIA/Winbond/Fintek’… No
Trying family `ITE’… No
Some CPUs or memory controllers may also contain embedded sensors.
Do you want to scan for them? (YES/no):
AMD K8 thermal sensors… Success!
(driver `k8temp’)
Intel Core family thermal sensor… No
Intel AMB FB-DIMM thermal sensor… No
Now follows a summary of the probes I have just done.
Just press ENTER to continue:
Driver `smsc47m1′ (should be inserted):
Detects correctly:
* ISA bus, address 0×800
Chip `SMSC LPC47M15x/192/997 Super IO Fan Sensors’ (confidence: 9)
Driver `k8temp’ (should be inserted):
Detects correctly:
* Chip `AMD K8 thermal sensors’ (confidence: 9)
I will now generate the commands needed to load the required modules.
Just press ENTER to continue:
If you want to load the modules at startup, generate a config file
below and make sure lm_sensors gets started at boot time; e.g
$ rc-update add lm_sensors default
To make the sensors modules behave correctly, add these lines to
/etc/modules.d/lm_sensors and run modules-update:
#—-cut here—-
# I2C module options
alias char-major-89 i2c-dev
#—-cut here—-
To load everything that is needed, add this to some /etc/rc* file:
#—-cut here—-
# Chip drivers
# Warning: the required module smsc47m1 is not currently installed
# on your system. For status of 2.6 kernel ports check
# http://www.lm-sensors.org/wiki/Devices. If driver is built
# into the kernel, or unavailable, comment out the following line.
modprobe smsc47m1
# Warning: the required module k8temp is not currently installed
# on your system. For status of 2.6 kernel ports check
# http://www.lm-sensors.org/wiki/Devices. If driver is built
# into the kernel, or unavailable, comment out the following line.
modprobe k8temp
# sleep 2 # optional
/usr/bin/sensors -s # recommended
#—-cut here—-
If you have some drivers built into your kernel, the list above will
contain too many modules. Skip the appropriate ones! You really
should try these commands right now to make sure everything is
working properly. Monitoring programs won’t work until the needed
modules are loaded.
To load everything that is needed, execute the commands below…
#—-cut here—-
# Chip drivers
# Warning: the required module smsc47m1 is not currently installed
# on your system. For status of 2.6 kernel ports check
# http://www.lm-sensors.org/wiki/Devices. If driver is built
# into the kernel, or unavailable, comment out the following line.
modprobe smsc47m1
# Warning: the required module k8temp is not currently installed
# on your system. For status of 2.6 kernel ports check
# http://www.lm-sensors.org/wiki/Devices. If driver is built
# into the kernel, or unavailable, comment out the following line.
modprobe k8temp
# sleep 2 # optional
/usr/bin/sensors -s # recommended
#—-end cut here—-
Do you want to overwrite /etc/conf.d/lm_sensors? Enter s to specify other file name?
(yes/NO/s):
lily ~ #
[/terminal]
Sigan las instrucciones del mismo script, solo denle enter a todo
y bueno de todo el rollo que sale ahà lo mas intersante es esto ya que nos dice que drivers son los que debemos meter:
[terminal]
Driver `smsc47m1′ (should be inserted):
Detects correctly:
* ISA bus, address 0×800
Chip `SMSC LPC47M15x/192/997 Super IO Fan Sensors’ (confidence: 9)
Driver `k8temp’ (should be inserted):
Detects correctly:
* Chip `AMD K8 thermal sensors’ (confidence: 9)
[/terminal]
Bien ahora nos vamos al kernel y abrimos el config para buscarlos:
[terminal]
lily ~ # cd /usr/src/linux
lily linux # make menuconfig
[/terminal]
Ahora nos vamos a la siguente parte para incluirlos dentro del kernel o bien si quieren como módulo pero no lo recomiendo
[code='Bash']Device Drivers --->
< *> Hardware Monitoring support --->
< *> AMD Athlon64/FX or Opteron temperature sensor
< *> SMSC LPC47M10x and compatibles[/code]
Yo active estos ya que son los que corresponden a mi hardware, para saber cual de esta lista corresponde a su hardware lean el HELP que tiene el menuconfig y busquen algo como esto:
[terminal]
This driver can also be built as a module. If so, the module will be called k8temp.
[/terminal]
Para que verifiquen si este corresponde con lo que les dijo sensors-detect, ya una vez seleccionados a compilarlo nuevamente y reiniciar:
[terminal]
lily linux # make && make modules_install
lily linux # mount /boot
lily linux # cp arch/x86_64/boot/bzImage /boot
lily linux # reboot
[/terminal]
Ahora bien ya pueden usar sus sensores para lo que gusten, si usan gkrellm como yo no olviden el FLAG lm_sensors
[terminal]
lily linux # echo “app-admin/gkrellm lm_sensors” >> /etc/portage/package.use
lily linux # emerge app-admin/gkrellm
[/terminal]
En el resto de las distros me parece que ya viene preocompilada la opción, claro si es un rpm o algún deb, en caso contrario pasenle bien el parametro al ./configure