Commit Graph
1063 Commits
Author SHA1 Message Date
Jean Delvare 18e31433bd Parse /proc/cpuinfo and build a list of CPU from it. This will make it
possible to suggest hardware monitoring drivers based of CPU ID.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4209 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-10-15 08:46:36 +00:00
Jean Delvare 054b265795 Really ignore option -a.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4207 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-10-13 17:18:06 +00:00
Jean Delvare 4e7c982027 sensors: Drop option -a (show algorithm names).
The algorithm names are no more available since Linux 2.6, and were not
very useful anyway.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4206 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-10-13 13:01:10 +00:00
Jean Delvare 7891d63259 sensors: Handle option -c more efficiently.
We don't need to strdup() the file names, we can use them directly.
As a side effect, this fixes a memory leak which was happening if
option -c was specified more than once on the command line.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4205 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-10-13 12:43:43 +00:00
Jean Delvare 6b5640b660 sensors.1: There is no longer a search path for sensors.conf.
General clean up.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4204 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-10-13 09:04:40 +00:00
Jean Delvare 06d51c9da1 sensors: Hide error on missing f71805f fan. In the Linux 2.6 driver, the
fan files are not created if a given fan is disabled.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4199 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-10-08 18:04:32 +00:00
Jean Delvare 6b5b092e9c libsensors: Add support for the pc87247 driver (fans only).
sensord: Add pc87247 support (fans only).
sensors: Add pc87247 support (fans only).
sensors-detect: Advertise the upcoming pc87427 driver.
Thanks to Amir Habibi at Candelis for setting up a test system.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4196 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-10-06 09:27:56 +00:00
Jean Delvare 19cc056508 sensors-detect: Add EPoX EP1308 detection (Hans Edgington).
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4193 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-10-04 11:43:21 +00:00
Jean Delvare 8a4b752530 Drop unused variable is85.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4187 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-09-27 12:09:04 +00:00
Jean Delvare 9b5bba29c4 Add SMSC DME1737 detection.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4185 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-09-26 09:18:33 +00:00
Jean Delvare c70a77d994 Fix typos.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4171 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-09-24 10:37:01 +00:00
Rudolf Marek a2e6bb8e83 Fix the links to status/supported pages.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4170 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-09-24 09:12:42 +00:00
Jean Delvare 3208234fd0 sensors-detect: Add SMSC LPC47M172/182 detection.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4169 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-09-23 11:15:19 +00:00
Jean Delvare 222efa20ac Do not assume that every i2c chip at 0x50 is handled by the eeprom
driver. Some are handled by the tveeprom driver, which doesn't create
the eeprom interface file. So we must really test for the eeprom file,
and not the device directory.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4167 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-09-21 18:55:43 +00:00
Jean Delvare c90c281af7 Explicitely prevent ITE chips from being misdetected as LM78 chips.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4166 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-09-20 20:01:18 +00:00
Jean Delvare 017ad76a20 Do not assume that every i2c chip at 0x50 is handled by the eeprom
driver. Some are handled by the tveeprom driver, which doesn't create
the eeprom interface file. So we must really test for the eeprom file,
and not the device directory.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4165 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-09-20 19:52:47 +00:00
Jean Delvare f104770a84 decode-vaio.pl: Detect and skip false positives.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4164 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-09-20 18:10:12 +00:00
Jean Delvare 94fa667c46 libsensors: Missing sysfs busses and classes are not errors. This tends
to confuse users a lot, to report the lack of hwmon driver as an error.
prog/sensors: Clearer error messages when no sensors are found. The
most frequent cause is a lack of drivers, not procfs/sysfs problems.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4159 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-09-19 10:01:12 +00:00
Rudolf Marek c9bd83748b Fix the homepage address
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4157 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-09-17 21:01:35 +00:00
Jean Delvare 09bd83fa7d vt1211 fixes:
* No in6
* More inputs can be missing (depends on UCH config)


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4154 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-09-07 19:51:25 +00:00
Jean Delvare 5ff0a6b0e7 Use mktemp instead of tempfile to create the temporary config file.
We are already using mktemp elsewhere in the script, and it seems to be
more widely available than tempfile.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4153 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-09-07 15:56:11 +00:00
Jean Delvare c0c8286b34 Drop unused detection code.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4152 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-09-07 08:55:56 +00:00
Jean Delvare e5d21141d6 Increase max bank (or logical device) number from 15 to 31, as 20 was seen
in some chips (PC87427.)


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4151 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-09-06 15:51:26 +00:00
Jean Delvare 4fc66ff5b0 Fix PC87427 logical device number.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4150 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-09-06 15:44:40 +00:00
Jean Delvare 32b755dba7 Do not list the "not-a-sensor" and "use-isa-instead" fake drivers in
the summary. It's silly to ask the user to load these.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4149 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-09-06 15:43:14 +00:00
Jean Delvare 70587e7751 sensors-detect: Add generic Super-I/O logical device detection.
For families where it makes sense (ITE, Winbond, Fintek), when we have
an unknown Super-I/O, we scan all logical devices in search of one
with the typical address for hardware monitoring (0x290). If we find
it, we let the user know there are probably sensors in the chip.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4144 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-09-05 12:09:30 +00:00
Jean Delvare fe14085d93 sensors-detect: Add generic PCI SMBus adapter detection.
The detection is based of the PCI device class (SMBus is 0x0c05).
This will let us spot new adapters. Of course we can't load or even
suggest a driver for an unknown adapter, but at least the user will
know there's something to be investigated, and this should help us
when users report such configurations.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4143 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-09-05 11:35:51 +00:00
Jean Delvare bd012ca251 sensors-detect: Use sysfs for PCI device enumeration where available
(Linux 2.6). Still fallback to /proc (Linux 2.4). sysfs provides the PCI
device domain and class, which were hard to get from /proc.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4142 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-09-05 10:01:15 +00:00
Jean Delvare 08253729c3 Remove ISA detection of W83627EHF/EHG and W83627DHG. This is redundant
with the Super-I/O detection, and less reliable. Our w83627ehf driver
only supports the Super-I/O detection anyway.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4141 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-09-05 09:04:18 +00:00
Jean Delvare 53dc9a6b93 sensors-detect: Remove detection of nVidia graphics adapters.
There are too many of these, the list was not up-to-date. And there
are different drivers which can give access to their I2C busses,
we can't guess which one the user wants. It was somewhat confusing
to suggest a driver which is not in mainline anyway.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4140 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-09-03 14:10:42 +00:00
Jean Delvare 3478493d21 Don't hardcode /sys, use $sysfs_root instead.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4137 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-09-03 08:07:59 +00:00
Rudolf Marek c879e6f5f8 Change i2c-arp entry to not-a-sensor. ARP confuses users (#2120)
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4136 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-09-02 19:08:49 +00:00
Jean Delvare febb8bba00 Tell the user if we are going to overwrite an existing
/etc/sysconfig/lm_sensors configuration file.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4134 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-09-02 14:00:36 +00:00
Jean Delvare e944415f25 The adt7463 may not have in4 (#2119)
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4133 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-09-02 07:49:35 +00:00
Jean Delvare 6ff8a21179 Properly handle the case where the eeprom driver is not loaded.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4132 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-09-01 21:34:56 +00:00
Jean Delvare 22f74aa96e Update the init script part:
* Fix project homepage.
* Init scripts are in /etc/init.d on modern systems, rather than
  /etc/rc.d/init.d. That way it works on Fedora, Suse and Gentoo, at
  least.
* Don't tell the user to copy the init script if it's already there.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4131 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-09-01 21:03:41 +00:00
Jean Delvare c6b594f669 Revert change 2731, the hint given to the user triggers too often and
is thus misleading.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4130 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-09-01 20:52:58 +00:00
Jean Delvare 2668fbb56e Attempt to make sensors-detect slightly more user-friendly, part three.
* Give a name to Super-I/O chip families.
* Merge the two Winbond families.
* Be smarter when testing Super-I/O chips, read the device ID only once.
* When an unknown chip is found, print the ID only once.
* Reformat the warning message when a module isn't found.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4129 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-09-01 19:22:13 +00:00
Jean Delvare f9b1002b79 Attempt to make sensors-detect slightly more user-friendly, part two.
* Shorten the date part in revision string.
* Make the chip names more consistent.
* Align the result of ISA and Super-I/O probes.
* Replace "Failed!" with a less needlessly alarming "No".
* Make the ISA and Super-I/O probe results more compact.
* Adjust some explanations.
* Don't ask again before probing secondary Super-I/O address.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4128 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-09-01 16:45:50 +00:00
Jean Delvare 1d97d5c041 decode-edid.pl: Append /usr/sbin or /usr/local/sbin to $PATH if needed.
This is needed because parse-edid is typically installed in one of these
directories, even though any user can use it.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4126 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-09-01 07:44:54 +00:00
Rudolf Marek a5f306ddcf Add VT8237A, VT8251
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4124 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-08-31 20:37:32 +00:00
Jean Delvare fd1ed9de03 Attempt to make sensors-detect slightly more user-friendly, part one.
* Kill the annoying blank space in front of half of the messages.
* Stop frightening the user with problems which might have happened some
  years ago, but are very rare nowadays.
* Skip some messages on 2.6 kernels where they do not apply.
* Don't even mention i2c-dev if it is already loaded or build into the
  kernel.
* Reword some messages.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4120 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-08-29 09:17:56 +00:00
Jean Delvare 2e795e09dc sensors-detect: Exit immediately if user isn't root. It makes very little
sense to try and continue as a non-root user, as we won't be able to load
modules, nor to probe i2c busses, nor to access the ISA ports. It's way
less confusing for the user to clearly state he/she needs to be root,
and stop.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4119 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-08-28 21:19:59 +00:00
Jean Delvare 78e85df9ff Drop func from PCI device entries, as we don't use it anymore.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4117 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-08-28 11:13:31 +00:00
Jean Delvare e8f0bc718a sensors-detect: Add Analog Devices ADM1033, ADM1034, ADT7462, ADT7466,
ADT7470, ADT7473 and ADT7475 detection.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4116 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-08-27 19:51:38 +00:00
Jean Delvare 844c76f217 Explicitely prevent Winbond chips from being misdetected as LM78 chips.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4115 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-08-27 18:16:04 +00:00
Jean Delvare 0a50247470 Display it87 VID with 3 decimal places instead of 2.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4113 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-08-26 21:33:45 +00:00
Jean Delvare f1fbe20948 List the upcoming w83793 driver.
Be less authoritative when stating a given chip isn't a sensor.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4112 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-08-25 19:59:29 +00:00
Jean Delvare e4d77291b1 Update copyright years.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4111 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-08-25 14:07:28 +00:00
Jean Delvare 9ac1c6caa0 Clean up the PCI device probing, reducing complexity from O(N^2) to O(N).
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4110 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-08-25 14:00:59 +00:00