Intel D845PEBT2 and temperature monitoring...

John jwd at
Sat Apr 26 18:10:15 PDT 2003

Hi John,

   Just on an off chance.. have you tried:

sysctl -a hw.acpi.thermal

   and checked for any output?

   The following little snippit taken from
the -hackers mailing list awhile back may
also prove informative... It's for a notebook,
but you get the idea.


#define KELVIN_TO_CELSIUS(t)    ((t-2732+5)/10)

#include <stdio.h>

int main()
        int ret;
        int intbuf;
        size_t len;

                printf("tz0 temperarture: %d C\n",KELVIN_TO_CELSIUS(intbuf));

                printf("tz0 crit temperarture: %d C\n",KELVIN_TO_CELSIUS(intbuf));

                printf("AC Line status: %s\n",intbuf?"online":"offline");

                printf("Number of battery units: %d\n",intbuf);

                printf("Battery state: %d\n",intbuf);

                printf("Remaining battery life: %d%%\n",intbuf);

                printf("Remaining battery time: %d:%d\n",intbuf/60,intbuf%60);

        printf("crit: %d\n",KELVIN_TO_CELSIUS(3732));



----- John Wilson's Original Message -----
> Good Day,
> I've recently built a new machine utilizing
> the Intel D845PEBT2 mainboard and an Intel
> 2.4B Ghz P4 CPU.  Everything works just great,
> but I can't seem to be able to figure out how
> to obtain temperature information that is
> available from the temp. sensors that are
> built into this mainboard.
> I am running:
> FreeBSD 5.0-CURRENT #6: Fri Apr 25 18:26:39 EST 2003
> My understanding is that I would need
> 'System Management Bus' support, but can't
> seem to figure out how I would go about
> obtaining this support.  
> The 'dmesg' appears to find mainboard support
> for this option based on the following output:
> pci0: <serial bus, SMBus> at device 31.3 (no driver
> attached)
> However, at this point, I'm sort of at a loss
> of what to do.
> My understanding was that the ACPI code would
> be able to obtain the temperature information,
> but this would require working SMBus support,
> which I'm at a loss as to how I would go
> about enabling this feature.
> Any help or pointers would be greatly appreciated.
> Thank you,
> John Wilson
> __________________________________
> Do you Yahoo!?
> The New Yahoo! Search - Faster. Easier. Bingo.
> _______________________________________________
> freebsd-current at mailing list
> To unsubscribe, send any mail to "freebsd-current-unsubscribe at"

As said by Napolean Bonaparte:
"Never ascribe to malice, that which is adequately explained by incompetence"

After being embraced by MS:

"When accused of malice, always hide behind incompetence".

More information about the freebsd-questions mailing list