Hi, I'm trying to find a way to access ACPI from within C#. I want to read thermal zone _TMP property. I've searched the web, and found references to acpi.sys driver. This should be able to get the thermal information, but I can't find a way how to read it. Does anyone have any experience with accessing ACPI from C#? Does anyone perhaps know of some API or so to access the ACPI info? Any help would be appreciated! Tim
Tim Wuytens
Posts
-
Accessing ACPI system from code -
Accessing ACPI Thermal Zone from C#I've found these pages before, but they seem to be specific for the Notebook Hardware Control application (NHC). I tried this program, and it can read all information of my system correctly. However I find this application to be much more then what i need (bloated, let's say), so I would like to write my own simple application to read only those values from ACPI that are of interest for me. The examples given on the site of your first URL show how the NHC app will read the values. There they allow to create source files for your specific system, wich the app will then read and show. This is not what I want to do. I have my System Description Table (DSDT) disassambled with the intel utility and i know wich values, methods, functions I want to read. What I need to know, but don't seem to find is how to call the methods or read the values from whitin my own application (C#). I do not want a written out solution on how to read this, only some guidance to the right API calls or whatever needed to accomplish this task. Anyway, thanks for your help Hessam Jalali and my best regards to you all! Tim
-
Accessing ACPI Thermal Zone from C#Hi, I'm trying to find a way to access ACPI from within C#. I want to read thermal zone _TMP property. I've searched the web, and found references to acpi.sys driver. This should be able to get the thermal information, but I can't find a way how to read it. Does anyone have any experience with accessing ACPI from C#? Does anyone perhaps know of some API or so to access the ACPI info? Any help would be appreciated! Tim
-
Using FileStreamI took a quick look at the documentation of Nova PDF and found that you can catch events from the printer driver self. There is an event NOVAPDF2_ENDDOC which fires when the job is done. Maybe this could be of use for you? I've used the PDF document found on http://www.novapdf.com/download/pdf/novasdk.pdf[^] See on page 28 of this document for the events. See heading 4.5 on page 20 to see how to register to the events. There's even something about e-mailing the converted documents in this guide. Hope this helps as well! Tim Wuytens
-
Reading temperature valuesThank you! This could indeed be helpful! This article explains how to execute assembly code from c#, however I don't know any assembly myself. Can anyone point me to some information to read the sensors with assembly? Thanks! Tim Wuytens
-
Using FileStreamYou can use a FileSystemWatcher for this. This class is used to monitor a certain folder on the filesystem (disk) where your service runs. It fires events when something changes to the filesystem (eg. file created, renamed, deleted,...) Say your PDF printer saves the file as c:\temp\pdf\someName.pdf, then you can monitor the c:\temp\pdf folder with the FileSystemWatcher. When a file is created in that directory (by your pdf printer) an event is thrown. You can catch this event and then send the newly generated file. For more info on this class please visit the MSDN site here[^]. Hope this helps! Tim Wuytens
-
Reading temperature valuesHi everyone, I'm working on a monitoring app in C# and would like to retrieve the temperatures of various sensors on my motherboard. I'm specifically interested in the CPU and motherboard temperature sensors. My first thought was to use WMI to read these values. I've tried the Win32_TemperatureProbe table among others, but the CurrentReading prop is not populated. (More info see MSDN article here) I've found that the sensors should be accessible through the SMBUS on the mainbord. So my question to the community: Does anyone know how to read CPU and mainbord temp sensors? Or can you help me to gain access to the SMBus? I've been told these values should be quite easy to read using some low-level bios access (using assembly), but I'm looking for a way to get these values using C# and .NET 2.0 framework. Any help would be greatly appreciated! Thanks in advance! Tim Wuytens