On Fri, 03 Nov 2006 06:31:26 +0000, Nicolas Boichat wrote: > Jan Bernhardt wrote: >> Nicolas Boichat wrote: >> >>> My patch is more complete, as it adds support for 6 sensors. Sorry to >>> see that Soeren worked on it while I had a working solution already... >>> >>> >> Do you have any idea what these sensors do actually measure? >> > I have no idea, I'm not even sure all these are temperature sensors.....
How/where did you find this weighting to compute the temperature (or whatever it is) ? You use: x0*100+ x1/64 * 25 (here x0=buffer[0], x1=buffer[1]) I n the smcFanControl.app (http://81.169.182.62/~eidac/software/page5/page5.html) something like this was used sprintf(key, "TC%dD", i); result = SMCReadKey2(key, &val,conn); float c_temp= ((val.bytes[0] * 256 + val.bytes[1]) >> 2)/64; which as we should not care about stuff behind the comma translates to ( x0 * 256 + x1 ) / 256 or equivalently ( x0 << 8 + x1 ) >> 8 >From the FAQ on this page: Which sensor is read out for the temperature? It's not the sensor on the CoreDuo CPU's. The advantage is, that there is no Kernel Extension loaded for temperature readout and temperature should always be reported (some CoreDuo's stop temperature reporting after some minutes unfortunately). The sensor readout is very close to what CoreDuoTemp reports, but its not exactly the same cause of different sensors. So it might be some sensor nearby ... and as the values are close, I suggest we use ( x0 << 8 + x1 ) >> 8 ? Comments ? Soeren ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Mactel-linux-devel mailing list Mactel-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mactel-linux-devel