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. -John #define KELVIN_TO_CELSIUS(t) ((t-2732+5)/10) #include <stdio.h> int main() { int ret; int intbuf; size_t len; ret=sysctlbyname("hw.acpi.thermal.tz0.temperature",&intbuf,&len,NULL,0); if(ret==0) printf("tz0 temperarture: %d C\n",KELVIN_TO_CELSIUS(intbuf)); ret=sysctlbyname("hw.acpi.thermal.tz0._CRT",&intbuf,&len,NULL,0); if(ret==0) printf("tz0 crit temperarture: %d C\n",KELVIN_TO_CELSIUS(intbuf)); ret=sysctlbyname("hw.acpi.acline",&intbuf,&len,NULL,0); if(ret==0) printf("AC Line status: %s\n",intbuf?"online":"offline"); ret=sysctlbyname("hw.acpi.battery.units",&intbuf,&len,NULL,0); if(ret==0) printf("Number of battery units: %d\n",intbuf); ret=sysctlbyname("hw.acpi.battery.state",&intbuf,&len,NULL,0); if(ret==0) printf("Battery state: %d\n",intbuf); ret=sysctlbyname("hw.acpi.battery.life",&intbuf,&len,NULL,0); if(ret==0) printf("Remaining battery life: %d%%\n",intbuf); ret=sysctlbyname("hw.acpi.battery.time",&intbuf,&len,NULL,0); if(ret==0) printf("Remaining battery time: %d:%d\n",intbuf/60,intbuf%60); printf("crit: %d\n",KELVIN_TO_CELSIUS(3732)); return(0); } ----- 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. > http://search.yahoo.com > _______________________________________________ > freebsd-current_at_freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org" -- -- 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".Received on Sat Apr 26 2003 - 16:10:15 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:05 UTC