Commit Graph
856 Commits
Author SHA1 Message Date
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 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 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 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 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 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 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 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
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
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
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 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 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
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 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
Jean Delvare b9a0b8511f Prepare for release.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5669 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-02-28 20:55:15 +00:00
Jean Delvare 1141a165ee Create pid file only after successful initialization.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5668 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-02-28 19:42:51 +00:00
Jean Delvare 45446011ec Exit if configuration file can't be read.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5667 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-02-28 19:38:22 +00:00
Jean Delvare 0bc948ca6a Add detection of Winbond WPCD377I (no sensors).
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5660 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-02-19 12:41:05 +00:00
Hans de Goede 4ca6104c35 sensors-detect: Add detection of FSC Hades and Syleus IC's
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5658 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-02-18 20:31:49 +00:00
Hans de Goede a7ad8ad9cc sensors-detect: Add a special case for probing i2c address 0x73 for FSC chips,
as at least the Syleus locks up with our regular probe code. Note that to our
current knowledge only FSC chips live on this address, and for them
this probe method is safe.



git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5657 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-02-18 20:26:20 +00:00
Jean Delvare 0d394245dc Update.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5655 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-02-15 20:49:24 +00:00
Jean Delvare 0efe346b80 Include the configuration file name when reporting parse errors.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5649 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-02-15 17:26:57 +00:00
Jean Delvare e4ee28d5c8 Read extra configuration files from /etc/sensors.d.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5647 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-02-15 17:22:38 +00:00
Jean Delvare d5bead6025 Free bus statements from the configuration file as soon as we are done
with them.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5645 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-02-15 17:18:01 +00:00
Jean Delvare 16dbc995ec Exit the configuration file parser as soon as we are done with it.
This makes the peak memory consumption significantly lower (-15% using
"sensors" in my tests).


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5644 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-02-15 17:15:31 +00:00
Jean Delvare e97c534ebb Typo.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5640 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-02-12 13:13:24 +00:00
Jean Delvare ea0cfbeadf Report configuration file read errors.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5638 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-02-10 20:50:16 +00:00
Jean Delvare 556b03e425 Fix memory leak in scanner when using flex 2.5.9 or later.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5637 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-02-08 12:00:24 +00:00
Jean Delvare 09abbcb686 When looking for hwmon device attributes, skip non-file sysfs entries.
This speeds things up a little. Patch from Andre Prendel.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5636 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-02-06 13:14:36 +00:00
Jean Delvare 70de907670 Do not include in the driver list the PCI and USB drivers which are
autoloaded by the system. Excluding them avoids unnecessary attempts to
load already loaded drivers and also helps with device numbering
stability (#2368).


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5635 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-02-04 09:58:07 +00:00