Commit Graph
4755 Commits
Author SHA1 Message Date
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
Jean Delvare 098ae6d2e5 Don't use the system log when generating a CGI script. This is is
normally done by a human on a console, rather than in the background,
so the system log isn't where people would look for error messages.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5734 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-06-09 12:19:53 +00:00
Andre Prendel cae8b2a1e7 sensord: Fix build error.
This is caused by a missing file (prog/sensord/args.h) in commit:

r5719 sensord: Introduce struct sensord_args.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5732 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-06-09 08:02:49 +00:00
Jean Delvare b665a55272 Update hardware status.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5731 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-06-06 09:16:18 +00:00
Jean Delvare ee26e6d2b0 From Yuriy Kaminskiy:
Most filesystems (in particular - reiserfs, jfs, xfs, nfs); maybe,
some legacy installation of ext2/3 too) always return dirent->dt_type =
DT_UNKNOWN, so libsensors fails to parse /etc/sensors.d.
  Also, symlink (DT_LNK) can point to directory, or FIFO/socket/device
(very bad!) - current check insufficient anyways.

Fixed by always using stat() to check what each entry is, rather than
relying on dirent->dt_type.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5730 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-06-05 15:17:29 +00:00
Hans de Goede eb25257655 sensors-detect: Update Fintek F71858FG driver info
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5729 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-06-02 13:51:29 +00:00
Hans de Goede dc6b2b73b2 sensors-detect: Add Fintek F71889FG detection
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5728 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-06-02 13:50:27 +00:00
Jean Delvare 019db74670 Add Winbond/Nuvoton W83627DHG-P and W83627UHG detection.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5726 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-05-19 07:36:06 +00:00
Andre Prendel 8a53c5bc31 Update CHANGES file due to recent updates in sensord.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5725 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-05-14 07:28:51 +00:00
Andre Prendel 73911c4c93 sensord: Refactoring of the rrdInit() function.
* Fix deep indentation levels
* Return with unique error code (-1)
* Rename buffer for struct stat from tmp to sb.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5724 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-05-13 16:13:41 +00:00
Andre Prendel 13dc7c0232 Replace the deprecated signal() function by sigaction().
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5723 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-05-13 16:11:57 +00:00
Andre Prendel f5aaeec448 sensord: This patch does some refactoring of the loadConfig()
function.

* Simplifying the conditions makes code flow clearer and eliminates
long lines (> 80 chars).
* Removed useless stat() call.
* Return -1 in error case, instead of several positive values (never defined).


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5722 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-05-13 16:09:06 +00:00
Andre Prendel b5375e4344 sensord: Did some refactoring in parseChips(). This fixes some deep indentation
levels.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5721 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-05-13 16:07:50 +00:00
Andre Prendel d71ed51702 sensord: Removed useless breaks after some exit() calls.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5720 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-05-13 16:06:17 +00:00
Andre Prendel 49344ef205 sensord: Introduce struct sensord_args.
This structure encapsulate all the variables holding the commandline
arguments. So we get rid of plenty of extern variables. This reduces
namespace collisions and unifies access.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5719 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-05-13 16:04:51 +00:00
Andre Prendel b42461426d sensord: Remove the hidden commandline interface.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5718 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-05-13 16:03:23 +00:00
Jean Delvare dee604c8e9 Add support for absolute path to hwmon devices.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5717 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-05-09 11:43:06 +00:00
Jean Delvare 819d7239c1 F71862FG is supported by driver f71882fg since kernel 2.6.29.
Reported by Mark Wagner.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5715 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-05-08 08:37:41 +00:00
Andre Prendel 3e310f8a8f libsensors: Take into account distribution LDFLAGS (Patch from Didier Roche).
From: Didier Roche <didrocks@ubuntu.com>

Hi lm-sensors developer,

It would be great if lm-sensors can take into account distribution
LDFLAGS so that exported variables change linker behavior.

For instance, ubuntu uses -Wl,-Bsymbolic-functions. Taking this patch
will enable us to just sync from debian on this package.

In Ubuntu, we've applied the attached patch to achieve the following:

  * handle default ubuntu LDFLAGS for linking option (LP: #321632)
    - Remove the old hack directly pushed in lib/Module.mk (now
      lib/Module.mk if from pristine source)
    - add debian/patches/07-use-LDFLAGS.patch to take LDFLAGS into account

Debian and Ubuntu thought you might be interested to handle this
directly upstream.



git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5713 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-04-28 11:54:40 +00:00