OVH Cloud OVH Cloud

[FBSD] hw.acpi.thermal ?

1 réponse
Avatar
Hubert Tournier
Bonjour,

Une petite question (à la fin) à propos des objets hw.acpi.thermal.*
dans la MIB FreeBSD 5.2.x :

# sysctl -a | grep thermal
hw.acpi.thermal.min_runtime: 0
hw.acpi.thermal.polling_rate: 30
hw.acpi.thermal.tz0.temperature: 2732
hw.acpi.thermal.tz0.active: -1
hw.acpi.thermal.tz0.thermal_flags: 0
hw.acpi.thermal.tz0._PSV: 3482
hw.acpi.thermal.tz0._HOT: -1
hw.acpi.thermal.tz0._CRT: 3732
hw.acpi.thermal.tz0._ACx: 3482 -1 -1 -1 -1 -1 -1 -1 -1 -1

Sachant que :

# sysctl -ad | grep thermal
hw.acpi.thermal.min_runtime: minimum cooling run time in sec
hw.acpi.thermal.polling_rate: monitor polling rate
hw.acpi.thermal.tz0.temperature: current thermal zone temperature
hw.acpi.thermal.tz0.active:
hw.acpi.thermal.tz0.thermal_flags: thermal zone flags
hw.acpi.thermal.tz0._PSV:
hw.acpi.thermal.tz0._HOT:
hw.acpi.thermal.tz0._CRT:
hw.acpi.thermal.tz0._ACx:

Et que (d'après http://acpi.info/DOWNLOADS/ACPIspec-2-0c.pdf) :

hw.acpi.thermal.tz0._PSV: Thermal Zone object that returns Passivel
trip point in tenths of degrees Kelvin
hw.acpi.thermal.tz0._HOT: Thermal Zone object that declares the
critical temperature at which OSPM may choose to transition the system
into the S4 sleeping state
hw.acpi.thermal.tz0._CRT: Thermal Zone object that returns critical
trip point in tenths of degrees Kelvin
hw.acpi.thermal.tz0._ACx: Thermal Zone object that returns active
cooling policy threshold values in tenths of degrees Kelvin

"hw.acpi.thermal.tz0.temperature: 2732" revient à dire que le CPU
concerné est à 0° Celsius, ce qui m'étonnerait...

D'où la question : il y a quelque chose que je peux faire pour avoir
la température du CPU dans cette variable ?

Plus une dernière pour la route, vous avez des FreeBSD 5.x qui donnent
autre chose que 2732 ?

Bien cordialement,

1 réponse

Avatar
Cyrille Szymanski
On 2004-07-16, Hubert Tournier wrote:
"hw.acpi.thermal.tz0.temperature: 2732" revient à dire que le CPU
concerné est à 0° Celsius, ce qui m'étonnerait...

D'où la question : il y a quelque chose que je peux faire pour avoir
la température du CPU dans cette variable ?


Je ne pense pas que le matériel soit tenu de renseigner cette
variable, et même s'il doit le faire, cela ne veut pas obligatoirement
dire que toutes les implémentations d'ACPI le font effectivement.

Ensuite il n'est pas dit que ton matériel soit équipé d'une sonde pour
mesurer cette grandeur, ni que la sonde soit en bon état.

Plus une dernière pour la route, vous avez des FreeBSD 5.x qui donnent
autre chose que 2732 ?


J'ai toujours vu des valeurs ayant 2 pour chiffre des unités. Je ne
connais pas non plus la précision d'une telle valeur. Encore une fois
ça doit beaucoup dépendre du matériel.

Je viens tout juste de finir une compilation :

cns# sysctl hw.acpi.thermal
hw.acpi.thermal.min_runtime: 60
hw.acpi.thermal.polling_rate: 30
hw.acpi.thermal.tz0.temperature: 3522
hw.acpi.thermal.tz0.active: -1
hw.acpi.thermal.tz0.thermal_flags: 0
hw.acpi.thermal.tz0._PSV: 3587
hw.acpi.thermal.tz0._HOT: -1
hw.acpi.thermal.tz0._CRT: 3642
hw.acpi.thermal.tz0._ACx: -1 -1 -1 -1 -1 -1 -1 -1 -1 -1

--
cns