Ticket #2347 (closed task: fixed)

Opened 5 years ago

Last modified 5 years ago

How do I efficiently check a single sensor

Reported by: ticket Owned by: somebody
Priority: minor Milestone:
Component: misc Version:
Keywords: Cc: sensored@…

Description

Hello! I hope this is the correct forum for this question -- if not, please direct me accordingly.

I need to add a check for an alarm to a single sensor in my C program, and I'd like to do so without the overhead of calling out to an external program and parsing its output (plus all the error-checking, etc.). I have been having some issues compiling lm-sensors (so that I can step through with a debugger), so perhaps you can help me short-circuit this process a little:

Is there a way to read the value of a sensor (all it throws is ALARM or nothing) from somewhere in a protected area of memory? For example, I dmidecode finds an SMBIOS table at a particular memory location, copies it, and just navigates the table to find the values for the DMI info...

Thanks!

Change History

Changed 5 years ago by khali

  • status changed from new to closed
  • resolution set to fixed
  • component changed from sensors to misc
Note: See TracTickets for help on using tickets.