[mythtv-commits] Ticket #1027: cpu temp status for mythbackend (acpi + lmsensor)
MythTV
mythtv at cvs.mythtv.org
Mon Apr 17 21:17:17 UTC 2006
#1027: cpu temp status for mythbackend (acpi + lmsensor)
--------------------------+-------------------------------------------------
Reporter: arzie at dds.nl | Owner: skamithi
Type: enhancement | Status: assigned
Priority: minor | Milestone: 0.20
Component: mythtv | Version: head
Severity: medium | Resolution:
--------------------------+-------------------------------------------------
Comment (by David Asher <david.asher at caviumnetworks.com>):
I tested this out and ran into 2 problems before I got the lm_sensors part
working:
1. on my FC4 system the directory /proc/acpi/thermal_zone exists but has
nothing in it. As such the mainserver.cpp code for acpi gets run, and the
else clause for lmsensors never gets a chance. I fixed this by using a
bool to say whether the acpi logic found a temperature or not and use that
bool in place of the else.
2. the patch is freeing the return value of fopen. This results in a
segfault (fopen doesn't malloc, it returns from a statically allocated
array). Removing the free got things working.
I'll attach my changed diffs...
David.
--
Ticket URL: <http://svn.mythtv.org/trac/ticket/1027>
MythTV <http://www.mythtv.org/>
MythTV
More information about the mythtv-commits
mailing list