Commit Graph
815 Commits
Author SHA1 Message Date
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
Jean Delvare 60a1c9927a Return a string rather than NULL for unknown errors. Patch from
Andre Prendel.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5633 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-01-29 12:24:08 +00:00
Jean Delvare ea854deb03 Drop support for kernels 2.4 and earlier.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5630 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-01-29 08:28:17 +00:00
Jean Delvare 334c9446f5 Don't round temperature values.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5629 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-01-29 08:13:47 +00:00
Jean Delvare 496b15a644 Fix exit code in error case (for example no sensors found.) Patch from
Andre Prendel.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5627 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-01-28 13:10:21 +00:00
Jean Delvare 98b23f8627 Drop support for kernels 2.4 and earlier.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5622 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-01-26 15:19:28 +00:00
Jean Delvare f7a5feaaf4 Include a sample conversion script to address the configuration file
format change (#2246).


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5621 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-01-26 15:16:03 +00:00
Jean Delvare b1b2c6897d Support new format of /etc/sysconfig/lm_sensors (#2246).
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5620 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-01-26 15:07:51 +00:00
Jean Delvare a71ca63e00 Add nNidia nForce MCP67, MCP73, MCP79 SMBus support.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5618 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-01-22 09:35:04 +00:00
Jean Delvare 3a3a467c06 Fix detection of older DS1621.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5612 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-01-19 20:38:53 +00:00
Jean Delvare f776de748d Add missing ticket numbers.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5606 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-01-19 14:26:14 +00:00
Jean Delvare 43c87ec8ed Install sensors.conf.default instead of sensors.conf.eg.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5605 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-01-19 14:21:57 +00:00
Jean Delvare a2301b22ef Add sections for the SMSC SCH311x and SCH5027.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5604 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-01-19 14:13:27 +00:00
Jean Delvare 4d64c5d111 New default configuration file. This is sensors.conf.eg with only
mainboard-neutral statements. This means in particular:
* Only internally-scaled voltages are configured.
* Only internal temperature sensors are labelled.
* No fan labels.
We will soon switch to this configuration file as the default,
for both performance and correctness.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5603 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-01-19 14:03:59 +00:00
Jean Delvare b1df5b6536 Print warnings about missing modules on screen, rather than telling
the user to add them to the configuration files. When using the
sysconfig integration mode, the warnings would never be seen.
Also don't include missing modules in the configuration files,
as they may cause the lm_sensors service to fail.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5590 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-01-12 16:17:51 +00:00
Jean Delvare f9ac42dbc0 Improve the format of /etc/sysconfig/lm_sensors as generated by
sensors-detect. The new format is more flexible and less error-prone.
The old format is still included for compatibility.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5588 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-01-12 12:39:29 +00:00
Jean Delvare dceb0e3ade Delete lm_sensors.init.suse. The actual SuSE initialization script is
much different, and is maintained as part of the openSUSE sensors
package.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5585 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-01-12 11:57:18 +00:00
Jean Delvare c80aefd222 Detect excessive recursion depth during expression evaluation.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5582 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-01-11 12:19:32 +00:00
Jean Delvare e4d51acf7d Fix error propagation during expression evaluation.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5581 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-01-11 10:00:19 +00:00
Jean Delvare 93aa7f3222 Don't bail out on transient errors (#2330).
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5580 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-01-08 11:01:41 +00:00
Jean Delvare e1ea81cc64 Add Intel Core I7 support. Patch from Reinhard Nissl.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5563 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-12-13 18:49:55 +00:00
Jean Delvare 1be4b18e7e Update.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5550 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-12-11 08:52:22 +00:00
Jean Delvare 2e954a6580 Move the help section of sensors.conf.eg to sensors.conf.5, so that
we have only one document to maintain. This change also speeds up
sensors by 2.5% when using the default configuration file.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5534 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-12-07 13:14:39 +00:00
Jean Delvare b415345b91 Add Winbond/Nuvoton W83667HG detection.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5532 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-12-06 17:55:45 +00:00
Jean Delvare d177d58983 Add Supermicro to the SMBus probing white list.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5526 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-12-05 11:02:58 +00:00
Jean Delvare 4f17a30d9a Skip IPMI probing on laptops. IPMI is almost exclusively implemented on
servers, I've never seen it on a laptop and I don't really expect this
to ever happen.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5523 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-12-05 10:00:32 +00:00
Jean Delvare c63401998c Move IPMI interface detection to its own section. IPMI is really different
from legacy ISA monitoring chips.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5521 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-12-05 09:36:13 +00:00
Jean Delvare 2d31705bec Always probe the SMBus on Asus and Tyan boards. Both vendors are well
known for making boards with more than one hardware monitoring chip.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5520 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-12-04 21:23:14 +00:00
Jean Delvare 69c9707ab7 Gather DMI data and print it at start-up. We may use this data for
various purposes later.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5519 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-12-04 20:50:42 +00:00
Jean Delvare 48d6d40850 Document the new detection order and rules.
Drop the reference to i2cdetect, as it has moved to a separate package.
Update the date and authors section.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5515 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-12-03 15:15:39 +00:00
Jean Delvare d3476f94c8 Minor consistency edit.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5513 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-12-03 13:45:38 +00:00
Jean Delvare 495275e1e3 Merge sensors-detect-stat.pl functionality into sensors-detect. This
will be more reliable that way, and easier to maintain.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5512 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-12-03 13:44:26 +00:00
Jean Delvare 17dea03489 Skip SMBus probing by default if a Super I/O was found. The user can
still ask for SMBus probing, but in general, if there's a Super I/O
with enabled hardware monitoring features, there won't be an additional
hardware monitoring chip on the SMBus. Might need to be refined as some
vendors (Asus, Tyan) are known to actually do that.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5511 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-12-03 12:40:13 +00:00
Jean Delvare 697dd4f4ec Do not scan I2C adapters on multimedia cards by default. I've never
seen a hardware monitoring chip on such boards, and probing them can
cause problems.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5504 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-12-02 22:08:45 +00:00
Jean Delvare e89e2a8c78 Skip ISA detection by default if a Super I/O was found. In general,
systems have a Super-I/O chip or an ISA chip, not both.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5503 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-12-02 21:42:35 +00:00
Jean Delvare 3ef49590d1 Add an option to skip ISA probes except IPMI. The idea is that only
old systems have ISA hardware monitoring chips, while IPMI can be
present on recent systems. Additionally, IPMI probing is read-only,
so it's safer than other ISA probes.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5502 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-12-02 20:56:45 +00:00
Jean Delvare 9ee2412404 Probe chip types from safest to more risky. Start with sensors embedded
in CPU and south bridges, then Super I/O, then ISA and last I2C/SMBus.
In the future we may decide to skip probing ISA and I2C/SMBus if we
already have found a supported south bridge or Super I/O.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5498 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-12-02 17:36:08 +00:00
Jean Delvare 443f019e65 Move alias detection after all chip detections. This is slightly less
efficient, but this makes it possible to later change the probing order.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5496 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-12-02 11:13:38 +00:00
Jean Delvare 22cc12173a Drop alias detection for Super-I/O chips. It never actually worked,
because the code compares the chip names first and we never cared of
using the exact same name string for I2C and Super-I/O entries of
a given chip. Anyway, we do not have any Super-I/O driver also
doing I2C access so detecting aliases wouldn't be that usesul. And
as I've said before, alias detection is better handled at the kernel
level anyway.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5494 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-12-01 17:02:47 +00:00
Jean Delvare 05db7e0c10 Accept negative temperatures in RRD database.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5473 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-11-30 13:18:35 +00:00
Jean Delvare 7794ae9b81 Suggest the sbs driver for smart batteries.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5455 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-11-29 17:53:05 +00:00
Jean Delvare f932415c8a Fix bus number prediction logic (#2327). We don't need anything complex,
given how rare are the cases where this really matters. On most systems
we will only load one I2C bus driver, so the bus numbers simply can't
change.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5441 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-11-27 17:44:12 +00:00