Commit Graph
4672 Commits
Author SHA1 Message Date
Jean Delvare cba60674e5 Document error-related functions.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5654 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-02-15 20:47:33 +00:00
Jean Delvare 5d30872044 Document function sensors_snprintf_chip_name.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5653 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-02-15 20:46:13 +00:00
Jean Delvare 42beaab3fc Reorder description section to match synopsis order. Move structure
definitions to their own subsection.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5652 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-02-15 20:45:36 +00:00
Jean Delvare fa3d63daeb Reformat description section.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5651 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-02-15 20:43:36 +00:00
Jean Delvare e8ff9211ff Reformat synopsis section.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5650 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-02-15 20:42:43 +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 6a7286464d Keep track of configuration file names so that we can later generate
better error reports.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5648 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-02-15 17:24:31 +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 3ea4545611 Make it possible to only substitute the bus number of a subset of the
chip entries. This is a prerequisite to add support for multiple
configuration files. Each configuration file can come with its own bus
statements and the bus number substitution should only affect chip
entries from the same configuration file.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5646 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-02-15 17:19:03 +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 15218a5e02 Mention the stand-alone nature of sensors-detect, as suggested by
Matt Roberds.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5643 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-02-14 09:10:41 +00:00
Jean Delvare b5ec572a5f Spelling fix.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5642 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-02-12 16:21:34 +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 30499dc899 Fix inclusion of general.h.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5639 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-02-11 10:12:45 +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 fee909f2d1 Add a note about the default configuration file change at installation
time.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5634 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-02-04 08:44:56 +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 e675ad35c9 Removed trailing semicolon in error string. Patch from Andre Prendel.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5632 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-01-29 09:45:25 +00:00
Jean Delvare b0f50d0788 Drop stray references to procfs interface.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5631 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-01-29 08:58:36 +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 6ed5aa3a0a Consistently use "err" as the variable name to carry error codes.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5628 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-01-28 13:16:17 +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 cf09a7e43a There can be more than 6 VID pins.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5626 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-01-27 12:59:42 +00:00
Jean Delvare ba87a1f673 lm-sensors 3.0 is now the main development branch.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5624 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-01-26 15:41:25 +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 3a5e195f43 I can't remember why we needed POSIX in the past, but apparently we
no longer need it.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5617 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-01-21 16:19:20 +00:00
Jean Delvare 6b4e26ad95 Don't tell users to blindly run i2cdump, it is dangerous!
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5616 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-01-21 09:09:19 +00:00
Jean Delvare ae62097a73 Force locale to C, so that the FAQ headers are always in English.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5615 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-01-21 09:07:39 +00:00
Jean Delvare 03a841f710 Drop reference to external FAQ, which is likely to become irrelevant.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5614 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-01-21 08:19:50 +00:00
Jean Delvare b59b5489f1 Fix detection of older DS1621.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5613 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-01-19 21:07:56 +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 94d86a8189 Add some chip prefixes.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5602 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-01-19 13:20:27 +00:00
Jean Delvare 15f3b33181 Discard idempotent labels.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5601 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-01-18 16:22:42 +00:00
Jean Delvare 000aaa5207 We have a driver for the ADT7475 now.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5599 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-01-16 12:54:23 +00:00
Jean Delvare 1799127231 Update 2 driver names.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5598 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-01-16 12:53:32 +00:00
Hans de Goede 11eec21555 Add ACPI bus
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5593 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-01-13 08:06:32 +00:00
Jean Delvare 41226b9c8f Get rid of useless variables $isa and $ipmi.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5592 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-01-12 16:39:14 +00:00
Jean Delvare c8f7e5969e Don't build modprobe lines before we actually need them.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5591 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-01-12 16:38:09 +00:00