Commit Graph
4737 Commits
Author SHA1 Message Date
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
Jean Delvare dc4d5bb286 Drop unused default rule.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5712 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-04-28 11:53:36 +00:00
Jean Delvare 2ea3bf392b Make it possible to skip building of the static library. Just run:
make BUILD_STATIC_LIB=0


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5711 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-04-20 09:18:06 +00:00
Jean Delvare e0ad43a545 Include generated source files in dependency checking.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5710 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-04-20 08:42:11 +00:00
Jean Delvare 3e78f8323b Use geteuid instead of getuid so that setuid bit works.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5709 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-04-19 07:16:40 +00:00
Jean Delvare 7fd91785d4 Add National Semiconductor LM95241 detection.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5708 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-04-06 17:05:54 +00:00
Jean Delvare f7464553bd Add Nuvoton W83795G/ADG detection. Original patch from Wei Song (Nuvoton).
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5684 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-03-13 08:41:19 +00:00
Jean Delvare f0492a9095 Refactor dmidecode version check into a separate function.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5683 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-03-12 17:15:13 +00:00
Jean Delvare d7d67ccf14 Strip stray backslash.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5682 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-03-12 16:47:11 +00:00
Jean Delvare 3fce211736 Use dmidecode to find IPMI interfaces if available. This is required
if non-standard address or register width are used. And anyway it is
always better to avoid access to random I/O ports.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5681 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-03-12 16:44:27 +00:00
Jean Delvare 046c76d4a0 Differentiate between PC8374L and WPCD377I. Both chips have the same
device ID so we use the revision register to differentiate between
them, using custom detection functions.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5680 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-03-11 21:44:32 +00:00
Andre Prendel 3a002f7487 sensord: Remove leading whitespaces in empty lines.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5679 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-03-10 10:37:41 +00:00
Andre Prendel e065e827e9 Convert coding style in prog/sensord/ from gnu to kernel style.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5678 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-03-09 15:32:03 +00:00
Jean Delvare 531a6416f2 Display the base I/O address of Super-I/O logical device if it is
set, even it the logical device in question is disabled.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5677 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-03-06 09:44:17 +00:00
Jean Delvare 3dc6983a84 Don't use variables when they hurt readability more than they help.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5676 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-03-05 15:20:41 +00:00
Jean Delvare 163cbc2bb7 Add nNidia nForce MCP78S SMBus detection.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5675 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-03-05 09:04:55 +00:00
Andre Prendel a03ec09359 Use __func__ in sensors_fatal_error() to get function name.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5674 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-03-02 13:07:23 +00:00
Jean Delvare 9d0552984c Post-release version update.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5673 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-03-01 12:04:23 +00:00
Jean Delvare edcfa23f50 Update branch reference.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5671 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-02-28 21:00:51 +00:00