Andre Prendel
bb6495d47d
sensord: Change signature of (*FeatureFN)
...
This patch changes the signature of function pointer (*FeatureFN) and
the related functions:
rrdGetSensors_DS()
rrdCGI_DEF()
rrdCGI_LINE()
Return type is now void because none of the functions return an error
code.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5793 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-11-04 19:07:38 +00:00
Andre Prendel
ae56c60bff
sensord: Refactoring of applyToFeature()
...
This patch cleans up function applyToFeature().
Function applyToFeature() is nearly unreadable. There are some deep
levels of indentation and cascades of loops makes code flow difficult to
read.
I split up this function into three smaller one. This reduces
indentation levels and makes code flow clearer.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5792 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-11-04 19:06:54 +00:00
Andre Prendel
051d8693e4
sensord: Remove needless casts
...
This patch removes some needless casts. We don't have to cast
explicitly from void * (in C).
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5791 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-11-04 19:05:19 +00:00
Andre Prendel
eea3628561
sensord: Convert CGI script to lower case
...
This patch converts HTML code in the generated CGI script to lower
case. This makes us a bit more XHTML compatible.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5790 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-11-04 19:04:30 +00:00
Andre Prendel
13b3c7aa36
sensord: Fix coding style
...
This patch fixes some coding style issues.
* Remove whitespaces between variable and increment operator.
* Break long lines.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5789 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-11-04 19:02:58 +00:00
Hans de Goede
9a83fe6c01
sensors-detect: Add detecton for Fintek F71869FG
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5788 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-10-22 10:11:12 +00:00
Hans de Goede
9c58672a66
Refer to f71882fg driver if F71889FG is detected
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5787 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-10-22 10:05:38 +00:00
Jean Delvare
7c37bd44ac
Add support for HID devices.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5786 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-10-18 12:05:16 +00:00
Jean Delvare
f5fc77eb58
Don't choke on virtual i2c adapters.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5785 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-10-16 20:21:15 +00:00
Jean Delvare
cc1af46348
Add detection for Analog Devices ADT7490.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5784 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-10-16 19:55:03 +00:00
Jean Delvare
71d0b791e8
The Nuvoton W83667HG and W83677HG have the same I2C chip ID as
...
the Winbond W83627DHG.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5783 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-10-16 10:45:20 +00:00
Jean Delvare
ae0b253b53
Add detection for Nuvoton W83667HG-B and W83677HG-I.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5782 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-10-16 08:59:16 +00:00
Jean Delvare
19fe62e6e0
Add SMBus detection for AMD Hudson-2.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5781 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-10-12 10:51:24 +00:00
Jean Delvare
c4d9a2fba3
Lower the confidence of MAX6650/1 detection, as it is really weak.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5780 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-10-03 10:41:53 +00:00
Jean Delvare
b6becb237e
Add detection for National Semiconductor LM73.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5779 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-10-03 10:38:14 +00:00
Jean Delvare
183947c528
Update the sysfs path to i2c adapters.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5778 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-10-03 08:32:33 +00:00
Andre Prendel
209dd6c871
Remove ignore statements from sensors.conf.default (Fujitsu
...
Hades/Syleus).
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5777 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-10-01 17:50:42 +00:00
Hans de Goede
271aec857a
Add sensor3.conf.5 symlink to sensors.conf.5 manpage
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5776 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-10-01 07:43:41 +00:00
Andre Prendel
44a20da14c
Add sections for the new FTS chips to sensors.conf.default (Patch from
...
Thilo Cestonaro).
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5775 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-09-27 16:36:09 +00:00
Jean Delvare
f513a6b8b2
Document the different CPU models supported by the coretemp driver.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5774 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-09-20 08:51:45 +00:00
Jean Delvare
c65c353ad9
Add detection for Intel Atom thermal sensors.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5773 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-09-20 08:23:02 +00:00
Jean Delvare
7d3bddb1fa
Add missing log entry.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5772 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-09-18 19:35:13 +00:00
Jean Delvare
8ddd1d2984
Save hwmon device paths and names in configuration file, and check them
...
before starting any fan control operation.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5770 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-09-16 15:57:53 +00:00
Jean Delvare
739d25f48c
Drop AMD K10 detection (unreliable sensors).
...
Add detection for AMD Family 11h thermal sensors.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5769 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-09-14 10:50:45 +00:00
Jean Delvare
bff5a8dde0
Clean up the code writing the configuration file.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5767 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-09-13 11:19:57 +00:00
Jean Delvare
5ee7d14714
Minor line wrapping fix.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5766 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-09-08 17:24:25 +00:00
Jean Delvare
c76907971e
Check that all referenced sysfs files exist before starting. If not,
...
quilt immediately. Better no fan control than fan control using an
out-of-sync configuration file.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5765 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-09-08 16:52:29 +00:00
Jean Delvare
835eee0a7f
Don't assume legacy references to i2c devices, instead explicitly
...
check for them. This should help spot invalid configuration files.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5764 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-09-08 14:19:22 +00:00
Jean Delvare
ea3afb6ce5
Document the previous change.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5761 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-07-24 15:41:45 +00:00
Jean Delvare
1bb3175a5f
Recent versions of module-init-tools only want *.conf files under
...
/etc/modprobe.d. So rename our configuration file to lm_sensors.conf
there. Also let "make install" rename the file if it already exists.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5760 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-07-24 13:52:28 +00:00
Jean Delvare
4d3ee85bae
Support upcoming sysfs path to i2c adapters.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5759 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-07-22 12:53:51 +00:00
Jean Delvare
09d912a45f
Support upcoming sysfs path to i2c adapters.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5758 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-07-22 12:20:58 +00:00
Jean Delvare
9153ce2240
The SMSC LPC47M233 isn't currently supported. If it ever is, it will most
...
probably not be by the smsc47m1 driver.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5757 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-07-20 19:10:25 +00:00
Jean Delvare
ab845dd7bb
sensord has a manual page now. Patch from openSUSE.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5756 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-07-20 10:02:27 +00:00
Jean Delvare
963c843c6a
Fix exit code. If there's no change needed, this is a success, not
...
a failure.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5755 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-07-20 09:50:51 +00:00
Andre Prendel
4cf83be1b1
sensors-detect: Add TMP42x chip detection
...
This patch adds detection for TI's TMP421, TMP422 and TMP423 chips to
sensors-detect. Only the manufactory ID and the device ID is used for
detection. I hope this is reliable enough.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5754 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-07-14 20:14:53 +00:00
Jean Delvare
f69dbc887a
Report unsupported Access Bus adapters, as we already do for SMBus.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5753 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-07-09 20:05:17 +00:00
Jean Delvare
a3eb98b8db
Clean up the discovery of i2c adapters, their parent and their
...
attributes in sysfs. Make references to i2c-adapter class less
specific, as this class is eventually going away.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5752 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-07-09 12:54:49 +00:00
Andre Prendel
e41a22eb4e
sensors-detect: Refer to tmp401 driver if TMP411 is detected
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5751 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-07-07 05:57:03 +00:00
Jean Delvare
4584499872
Encourage the user to not modify /etc/sensors3.conf. Suggested by
...
Aurelien Jarno to make updates easier.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5750 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-07-05 09:04:50 +00:00
Jean Delvare
6ff7f5e25b
Exit immediately if not root.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5749 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-07-03 19:37:22 +00:00
Jean Delvare
6868367764
sensors_get_label: Merge pathname and label buffers (patch from
...
George Spelvin).
The lifetimes of the path and label name buffers are
disjoint, so a single buffer can be used for both purposes.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5748 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-06-30 20:52:20 +00:00
Jean Delvare
b3f39211b2
Consolidate strdup calls in sensors_get_label (patch from George Spelvin).
...
There were multiple in-line calls that then fell through to
a common exit. Instead, set up a pointer to the original
strings, and have a single strdup in the common code.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5747 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-06-30 20:47:53 +00:00
Jean Delvare
408111412b
Post-release version update.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5744 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-06-21 19:14:38 +00:00
Jean Delvare
c2646f2e6a
Prepare for release.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5742 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-06-21 15:22:06 +00:00
Jean Delvare
0a55087719
Bump library version to 4.2.0.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5741 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-06-20 12:00:22 +00:00
Jean Delvare
78f496ca62
libsensors: New method to free the memory allocated for the internal
...
representation of chip names.
sensord, sensors: Fix a memory leak when one or more chip names are
provided on the command line.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5740 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-06-20 10:04:52 +00:00
Jean Delvare
ef2f2c04ce
Use the "daemon" logging facility instead of "local4" by default.
...
Local facilities are meant for local uses, no daemon should use it by
default.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5737 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-06-11 17:39:48 +00:00
Jean Delvare
8eeb9081a8
Optimize CGI generation code a bit.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5736 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-06-09 12:44:44 +00:00
Jean Delvare
a5bb03f300
Disable unit scaling for fan speeds. We want fan speed to be reported as
...
3000 RPM, not 3.0 kRPM.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5735 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-06-09 12:22:11 +00:00