Commit Graph
4785 Commits
Author SHA1 Message Date
Jean Delvare e58cb01e91 Add detection for Nuvoton W83L771AWG/ASG.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5806 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-12-02 16:37:37 +00:00
Jean Delvare 2485b5490f Support for the ADT7473, ADT7476 and ADT7490 is being added to the
adt7475 driver.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5805 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-12-02 16:23:55 +00:00
Jean Delvare f37859035a More known revisions for the ADT7476.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5804 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-12-01 12:29:36 +00:00
Jean Delvare c09cff1f11 Add a default configuration section for adt7473 and adt7475.
Add a default configuration section for adt7476 and adt7490.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5803 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-12-01 12:14:54 +00:00
Jean Delvare 8416f31add Fix a build warning in set_degstr. The prototype of iconv() is
stupid but won't change so we have to live with it.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5801 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-11-28 12:26:44 +00:00
Jean Delvare 8d3e7a742e Restore detection for AMD Family 10h thermal sensors. Only CPU with
model > 2 are reported, as older ones are known to have broken sensors.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5800 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-11-23 12:15:26 +00:00
Jean Delvare 74425eb8fc Detect ADT7473 at 0x2c and 0x2d.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5799 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-11-23 09:17:55 +00:00
Andre Prendel 57c69770e7 CHANGES appendix for commits r5789:r5796
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5798 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-11-06 20:23:59 +00:00
Jean Delvare 6d3f81d5da "alarm" is a glibc function, don't use this identifier for our own
variables to prevent any confusion.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5797 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-11-05 09:23:46 +00:00
Andre Prendel db0b1e6e11 sensord: Break long lines in doChips()
This patch breaks long lines in function doChips().


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5796 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-11-04 19:12:34 +00:00
Andre Prendel a079f9c35d sensord: Evaluate return value of idChip()
Evaluate return value of idChip().

Some of the functions called from idChip() can fail which means
idChip() can return an error. Callers of idChip() should be aware of
this.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5795 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-11-04 19:11:41 +00:00
Andre Prendel 57e7762901 sensord: Refactoring of file prog/sensord/sense.c
This patch does some refactoring of function doKnownChip().

* doKnownChip() is a huge function with deep indentation
levels. Splitting this funcion up into smaller ones makes code much
more readable.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5794 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-11-04 19:08:32 +00:00
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