Sonde température ?

Bonjour,
quel paramètre puis-je donner à conky pour connaître la température du CPU (et autres) ?
par exemple ${adt746xcpu} ne fonctionne pas.

As tu installé un paquet de “sensors”?

non,
un paquet : il y en a plusieurs ?
je viens de trouver mon processeur : 7447A, altivec supported
(powerpc), le paquet doit être fortement dépendant du cpu, non ?

[code]# aptitude install sensors

sensors-detect[/code]

Tu notes les modules qu’il te demande de charger puis

# modprobe -a module1 module2 module3 $ sensors
Si les infos affichées sont correctes, tu ajoutes les modules à charger dans /etc/modules.

Ensuite, pour les afficher dans Conky, moi j’utilise

pour la température du CPU0 par exemple, mais il y a aussi une technique avec hwmon qui est citée dans un fil récent.

apt-get install sensors :
E: Impossible de trouver le paquet sensors

peut-être mes dépôts ?

Woops, my bad, le paquet se nomme lm-sensors.

[code]# apt-get install lm-sensors

sensors-detects[/code]

tu entres “y” pour oui a toute les questions

puis je te post un bout de mon conky concernant les temperatures

CPU : $color${hwmon 1 temp 2}°C ${color2} M/B : $color${hwmon 1 temp 1}°C${color2} GPU : $color${execi 30 nvclock -i | grep "GPU temperature" | grep '[0-9][0-9]' -o} °C${color2} Alim: $color${hwmon 1 temp 3}°C

j’ai rien oublié je pense :slightly_smiling:

pour la temperature gpu il faut installer “nvclock”(en tous cas c’est comme j’ai fait moi)

pré-requis:

puis

(pêché sur la doc d’ubuntu… :unamused: )

Merci seb-ksl,

J’ai maintenant la température de mon CPU dans conky…

Il m’a mis ça automatiquement dans modules
avant d’enlever les #, je voudrais votre avis : ça ressemble à des noms de modules ? J’ai pas l’impression …

Generated by sensors-detect on Sun Feb 14 15:16:41 2010

I2C adapter drivers

modprobe unknown adapter monid

modprobe unknown adapter dvi

modprobe unknown adapter vga

modprobe unknown adapter crt2

modprobe unknown adapter pmu 2

modprobe unknown adapter pmu 1

modprobe unknown adapter mac-io 0

modprobe unknown adapter uni-n 1

modprobe unknown adapter uni-n 0

Chip drivers

no driver for Analog Devices ADT7467 or ADT7468 yet

pour que les modules soit pris en compte,soit tu redemarre soit tu le fais manuellement…redemarre si tu ne sais pas comment faire manuellement.

oui mais quels modules ?
sensors-detect ne semble pas m’en avoir indiqué. Je me trompe ?

[quote=“blaisoth”]oui mais quels modules ?
sensors-detect ne semble pas m’en avoir indiqué. Je me trompe ?[/quote]
c’etait pareil pour moi et donc j’ai choisis redemarrer :smt020

redémarrer, je ne fais que ça toutes les 10 minutes, sinon ça se fige. C’est pour ça d’ailleurs que j’aimerais avoir une idée de la température. (Et ce que je voudrais par la suite c’est commander le ventilateur).J’ai essayé hwmon mais conky n’en veut pas.
Installer les modules pourquoi pas mais lesquels ? J’ai relancé sensors-detect et ça me donne toujours le même résultat (ce qui est rassurant).

Tu peux nous poster le résultat de sensors-detect ?

S3P:/home/eric# sensors-detect

sensors-detect revision 5249 (2008-05-11 22:56:25 +0200)

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): YES
Probing for PCI bus adapters…
Sorry, no supported PCI bus adapters found.

If you have undetectable or unsupported I2C/SMBus 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 loadi2c-dev’ now? (YES/no): YES
Module loaded successfully.

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.

Next adapter: monid (i2c-0)
Do you want to scan it? (YES/no/selectively): YES

Next adapter: dvi (i2c-1)
Do you want to scan it? (YES/no/selectively): YES
Client found at address 0x50
Probing for Analog Devices ADM1033'... No Probing forAnalog Devices ADM1034’… No
Probing for SPD EEPROM'... No Probing forEDID EEPROM’… Yes
(confidence 8, not a hardware monitoring chip)

Next adapter: vga (i2c-2)
Do you want to scan it? (YES/no/selectively): YES

Next adapter: crt2 (i2c-3)
Do you want to scan it? (YES/no/selectively): YES

Next adapter: pmu 2 (i2c-4)
Do you want to scan it? (YES/no/selectively): YES

Next adapter: pmu 1 (i2c-5)
Do you want to scan it? (YES/no/selectively): YES

Next adapter: mac-io 0 (i2c-6)
Do you want to scan it? (YES/no/selectively): YES

Next adapter: uni-n 1 (i2c-7)
Do you want to scan it? (YES/no/selectively): YES
Client found at address 0x2e
Probing for Myson MTP008'... No Probing forNational Semiconductor LM78’… No
Probing for National Semiconductor LM78-J'... No Probing forNational Semiconductor LM79’… No
Probing for National Semiconductor LM80'... No Probing forNational Semiconductor LM85 or LM96000’… No
Probing for Analog Devices ADM1027, ADT7460 or ADT7463'... No Probing forSMSC EMC6D100, EMC6D101 or EMC6D102’… No
Probing for Analog Devices ADT7462'... No Probing forAnalog Devices ADT7467 or ADT7468’… Success!
(confidence 7, driver to-be-written') Probing forAnalog Devices ADT7470’… No
Probing for Analog Devices ADT7473'... No Probing forAnalog Devices ADT7475’… No
Probing for Analog Devices ADT7476'... No Probing forAndigilog aSC7611’… No
Probing for Andigilog aSC7621'... No Probing forNational Semiconductor LM87’… No
Probing for National Semiconductor LM93'... No Probing forWinbond W83781D’… No
Probing for Winbond W83782D'... No Probing forWinbond W83792D’… No
Probing for Winbond W83793R/G'... No Probing forWinbond W83791SD’… No
Probing for Winbond W83627HF'... No Probing forWinbond W83627EHF’… No
Probing for Winbond W83627DHG'... No Probing forAsus AS99127F (rev.1)’… No
Probing for Asus AS99127F (rev.2)'... No Probing forAsus ASB100 Bach’… No
Probing for Winbond W83L786NR/NG/R/G'... No Probing forWinbond W83L785TS-S’… No
Probing for Analog Devices ADM9240'... No Probing forDallas Semiconductor DS1780’… No
Probing for National Semiconductor LM81'... No Probing forAnalog Devices ADM1026’… No
Probing for Analog Devices ADM1025'... No Probing forAnalog Devices ADM1029’… No
Probing for Analog Devices ADM1030'... No Probing forAnalog Devices ADM1031’… No
Probing for Analog Devices ADM1022'... No Probing forTexas Instruments THMC50’… No
Probing for Analog Devices ADM1028'... No Probing forITE IT8712F’… No
Probing for SMSC DME1737'... No Probing forSMSC SCH5027D-NW’… No
Probing for Fintek F75373S/SG'... No Probing forFintek F75375S/SP’… No
Probing for Fintek F75387SG/RG'... No Probing forAnalog Devices ADM1024’… No
Probing for `Winbond W83791D’… No

Next adapter: uni-n 0 (i2c-8)
Do you want to scan it? (YES/no/selectively): YES
Client found at address 0x50
Probing for Analog Devices ADM1033'... No Probing forAnalog Devices ADM1034’… No
Probing for SPD EEPROM'... Yes (confidence 8, not a hardware monitoring chip) Probing forEDID EEPROM’… No

Some south bridges, CPUs or memory controllers may also contain
embedded sensors. Do you want to scan for them? (YES/no): YES
Silicon Integrated Systems SIS5595… No
VIA VT82C686 Integrated Sensors… No
VIA VT8231 Integrated Sensors… No
AMD K8 thermal sensors… No
AMD K10 thermal sensors… No
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 `to-be-written’ (should be inserted):
Detects correctly:

  • Bus uni-n 1' BusdriverUNKNOWN’, I2C address 0x2e
    Chip `Analog Devices ADT7467 or ADT7468’ (confidence: 7)

I will now generate the commands needed to load the required modules.
Just press ENTER to continue:

To load everything that is needed, add this to /etc/modules:

#----cut here----

I2C adapter drivers

modprobe unknown adapter monid

modprobe unknown adapter dvi

modprobe unknown adapter vga

modprobe unknown adapter crt2

modprobe unknown adapter pmu 2

modprobe unknown adapter pmu 1

modprobe unknown adapter mac-io 0

modprobe unknown adapter uni-n 1

modprobe unknown adapter uni-n 0

Chip drivers

no driver for Analog Devices ADT7467 or ADT7468 yet

#----cut here----

Do you want to add these lines automatically? (yes/NO)yes

d’ailleurs, “no driver yet” mais n’y en aurait-il pas un là ? :

lm-sensors.org/wiki/Devices

ON Semiconductor (formerly Analog Devices) ADT7467, ADT7468 yes I2C (2004-04-10) Forcing the lm85 driver, chip adm1027, may work. We have an evaluation board. One request ( Dan).

Si je comprends bien ce qu’y te dit, à priori il n’a pas trouvé de modules qui te convienne :confused:

Et le bios, il ne gère pas ça théoriquement (surtout sur un vieux modèle comme le mien) ?
Comment on y accède ? (le grub n’aurait-il pas modifié l’accès, le ctrl + D ne fonctionne pas)

Euh, si c’est juste pour voir les températures, si, le BIOS doit pouvoir te les donner.

Et non, GRUB n’a pas pu modifier ton accès au BIOS, qui doit se faire par l’appui sur “Suppr” ou autre (ça doit être affiché au tout début du démarrage).

pou tester l’install de lm-sensors
poste moi le resultat de cette commande