On 11/20/21 2:42 PM, Theo de Raadt wrote:
Jan Stary <[email protected]> wrote:

This is current/i386 on an ALIX.1E (dmesg below).
I am trying to monitor the CPU temperature with

wbsio0 at isa0 port 0x2e/2: W83627HF rev 0x41
lm1 at wbsio0 port 0x290/8: W83627HF

$ sysctl hw.sensors.lm1
hw.sensors.lm1.temp0=69.00 degC
hw.sensors.lm1.temp1=57.00 degC
hw.sensors.lm1.temp2=49.00 degC
hw.sensors.lm1.volt0=1.26 VDC (VCore A)
hw.sensors.lm1.volt1=2.64 VDC (VCore B)
hw.sensors.lm1.volt2=3.42 VDC (+3.3V)
hw.sensors.lm1.volt3=5.11 VDC (+5V)
hw.sensors.lm1.volt4=0.00 VDC (+12V)
hw.sensors.lm1.volt5=-14.91 VDC (-12V)
hw.sensors.lm1.volt6=-7.71 VDC (-5V)
hw.sensors.lm1.volt7=5.07 VDC (5VSB)
hw.sensors.lm1.volt8=0.00 VDC (VBAT)

There are three temperatures reported,
and dev/ic/lm78var.h talks about Temperature 1, 2, 3;
but man lm(4) only says

        Temp uK Motherboard Temperature

Does anyone know what exactly they are?

There is a chip in the machine.
It has pins.
Those pins are monitored by the driver, as specific registers.

The pins wired to who the hell knows where by each board manufacturer.

Sometimes the chips need special registers and capacitors

Quite often, the board engineer sent to add this part to the board
choose the wrong registers and capacitors, and sometimes they compensate
for these errors with private tables in the BIOS or various monitoring
programs which move around machine to machine.


We monitor registers.  We assume the vendor did the right thing.


No that I've described what a shitshow it is, I hope you can adjust your
expectations.  Otherwise, maybe it is time to give up and delete these
sensor drivers..

Boot the machine to startup BIOS.
Search for a hardware monitor screen.
Write down what it says - values and descriptions.
Any correlation between that and what sysctl.hw.sensors says is purely
in the mind of the viewer.


Reply via email to