jhoonq Posted May 21, 2012 Share Posted May 21, 2012 Hello, We try to develop (with great succes so far) an aplication that controls the fan on many modern HP notebooks. This is the thread that led to the tool, the good stuff starts from this post. The issue we've run into is this: - At cold boots and after a standby the EC seems "stuck", as the CPU and GPU temp bytes are locked. The solution is to open aida at sensors page, or any other monitoring tool that reads ACPI info. This operation "wakes" the EC in 0.01 seconds and both cpu/gpu temp bytes show the real temp and can be manipulated/used as reference for threshold levels. http://img10.imagesh...sensorsinai.jpg The tool works like this: - At start it fakes the cpu temp byte (38 (26hex)) at a low, user selectable value. - Uses GPU temp byte (50 (32hex)) as refference for when to turn the fan on/faster/lower/off etc. - Byte 47 controls the fan. 0-254 (dec) range sets the fan from max to lowest speed. As the cpu temp is faked at the low value, the reset command (255 dec, FF hex) turns the fan off at any time. - When the program closes, the real cpu temp is reset by sending 00 to byte 38 and FF to byte 47. - http://img840.images...03/epicwino.jpg We seek help in implementing some acpi commands that aida uses when it fingers the EC on sensors page. This is the temporary fix, but some users might not enjoy so many tray icons and the constant use of aida. Some hints, info etc would be appreciated. Thanks in advance. Quote Link to comment Share on other sites More sharing options...
Fiery Posted May 31, 2012 Share Posted May 31, 2012 I'm afraid I cannot provide you with a full source code for the ACPI query module of AIDA64, but I can give you a few key words for API calls and other portions, so you can use Google and MSDN to try and build it up. IoGetDeviceObjectPointer IoBuildDeviceIoControlRequest IOCTL_ACPI_EVAL_METHOD KeInitializeEvent KeWaitForSingleObject Regards, Fiery Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.