﻿# Read hwmon temperature channels with the correct ABI and labels

A raw hwmon temperature file needs its driver, physical channel and conversion context; thermistor voltage exceptions defeat universal scaling.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/guide-dc-hwmon-temperature-abi/
Language: en

A replacement exporter reports an implausible board temperature after reading the same hwmon channel as the old collector. Dividing every raw value by the same factor is not a complete interpretation of this ABI. Establish the driver, channel meaning and conversion path before deciding that the cooling environment changed.

## Bind the channel to its device

Keep the hwmon device identity and driver alongside the attribute name. An enumeration position is insufficient to identify a processor, inlet or board location. Optional labels can help, but their absence does not supply a default physical interpretation. Reconcile the channel with platform documentation before combining it with a previously named temperature series.

## Check the documented unit exception

The standard temperature representation uses millidegrees Celsius. The interface documentation also identifies external thermistor arrangements whose channels expose a voltage requiring conversion in userspace. Reading such an input as an already converted temperature produces convincing arithmetic with the wrong physical quantity. Check the applicable driver and board configuration rather than applying a universal scaling rule to every file with a familiar name.

## Preserve the conversion layer

The hwmon documentation describes why board-specific conversions and labels belong in the userspace sensor configuration. A collector using libsensors can therefore differ from a collector opening raw sysfs attributes directly. Record which path produced the value. Reproducing an existing dashboard requires reproducing its configuration and feature mapping, not merely copying its displayed unit suffix.

## Treat visibility and faults explicitly

Drivers determine which attributes are available. Missing optional labels, limits or fault indicators are not fabricated healthy values. Where a supported fault attribute marks the channel untrustworthy, retain that condition instead of plotting the number as an ordinary observation. A missing file after hardware replacement may describe a different supported interface rather than a transient temperature excursion.

## Diagnose the exporter disagreement

Compare raw acquisition, conversion configuration and resolved physical channel for the same observation interval. If only the interpretation changed, correct the mapping before comparing thermal trends. This read-only investigation establishes what the sensor value means; it does not establish a safe operating limit or replace the host's cooling qualification. Keep unavailable and unconverted channels visible until their meaning is resolved.

## Primary references

[Linux hwmon sysfs Interface](https://docs.kernel.org/hwmon/sysfs-interface.html).

[Linux hwmon Driver Registration and Attributes](https://docs.kernel.org/hwmon/hwmon-kernel-api.html).

[lm-sensors Library API](https://github.com/lm-sensors/lm-sensors/blob/master/doc/libsensors-API.txt).

Related reading: [Inlet, GPU and memory temperatures: different sensors](/journal/gpu-inlet-device-temperature/); [GPU monitoring without excess charts: five observation levels](/journal/gpu-monitoring-scorecard/).
