IT lexicon › Infra & Ops › hw.sensors (OpenBSD)

hw.sensors (OpenBSD)

Infra & Ops På svenska → Updated: 2026-11-09

OpenBSD's single framework for temperatures, fan speeds and voltages, readable with a plain sysctl call.

Hardware sensors tend to hide behind a sprawl of drivers and tools; on Linux you long needed lm_sensors just to see them. OpenBSD decided in the early 2000s that every driver should register its readings in one shared tree in the kernel. The naming was later made hierarchical, so sysctl hw.sensors.lm0.temp0 returns a temperature from an lm chip and hw.sensors.acpibat0 the battery charge.

Everything from motherboard chips on SMBus to IPMI, disk SMART status and RAID controller volume state lands in the same format. The sensorsd daemon watches the tree and runs a command when a value leaves its limits. The framework has been carried over to DragonFly BSD; NetBSD has its own counterpart in envsys. It's a very OpenBSD move: one small interface every driver has to use, instead of a large one none of them do.

← Back to the lexicon