Hans de Goede
4d2fa4eadd
Better generic print fault handling
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4559 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-07-05 21:03:06 +00:00
Jean Delvare
83fe82736d
Prevent a potential array overrun.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4556 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-07-05 16:19:51 +00:00
Hans de Goede
b998b35ecc
update fintek f71882fg sensors-detect entry
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4555 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-07-05 16:15:27 +00:00
Hans de Goede
7cb36ef6d2
add AMDSI PECI sensortype support to generic_temp_print()
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4552 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-07-05 11:22:57 +00:00
Hans de Goede
3e37149f04
generic in and fan print routine fixes
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4549 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-07-03 19:38:37 +00:00
Jean Delvare
b79274babd
Add some more warning flags, and fix these warnings.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4545 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-07-03 16:03:22 +00:00
Jean Delvare
7cc03f5029
Drop VRM reporting and selection support from libsensors. Since kernel
...
2.6.9, the right VID conversion formula is selected automatically
depending on the CPU model, so the user shouldn't have to care.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4543 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-07-03 13:22:28 +00:00
Jean Delvare
5b8b0a0ede
Drop a bogus comment.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4534 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-07-02 15:16:02 +00:00
Jean Delvare
0c96adf025
Clean up Savage bus driver entries: remove the unsuppored devices from
...
the list, and mention the i2c-prosavage driver.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4533 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-06-30 17:04:32 +00:00
Jean Delvare
8c92ac1096
Drop all references to non-sensor chips. We will still detect some of these
...
(in particular SPD and EDID EEPROMS) at addresses where hardware monitoring
chips are known to live, to prevent misdetections, but we no longer point
the user to drivers for these chips.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4529 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-06-30 15:21:46 +00:00
Jean Delvare
1ba9c1837d
Delete the matorb support script. The matorb driver was never ported to
...
Linux 2.6, and has nothing to do with sensors anyway.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4526 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-06-30 13:40:40 +00:00
Hans de Goede
184ad7e23e
long promised print_generic_chip_in() fixes
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4514 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-06-28 21:00:08 +00:00
Jean Delvare
4c905e1632
Drop the --generic option. This is the default now, so the option has
...
no effect.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4512 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-06-28 17:47:18 +00:00
Jean Delvare
a6c3c36f00
Warning fix ("index" is a standard libc function.)
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4511 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-06-28 14:46:08 +00:00
Jean Delvare
56e9e2da88
Delete needless forward declarations and wrapper.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4505 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-06-28 09:02:12 +00:00
Jean Delvare
6a6cf217d4
Drop all the chip-specific handling and printing code from sensors. The
...
generic printing code should work now, and what doesn't work, will get
fixed.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4503 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-06-28 08:52:37 +00:00
Jean Delvare
28ba499f12
Move py-smbus to the i2c-tools package.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4497 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-06-27 13:03:44 +00:00
Jean Delvare
f51bf1e7b9
Move the eeprom writing tools to the i2c-tools package.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4494 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-06-27 12:53:02 +00:00
Jean Delvare
d5cc9ae889
Move the eeprom decoding scripts to the i2c-tools package.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4489 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-06-27 10:10:34 +00:00
Jean Delvare
d7b4debbf6
Move i2cdetect, i2cdump, i2cset and i2cget to a separate package
...
(i2c-tools).
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4480 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-06-27 08:10:19 +00:00
Jean Delvare
9ab400fad3
Add SMSC SCH5317 detection. Patch from Juerg Haefliger.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4479 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-06-26 20:34:18 +00:00
Jean Delvare
617e759d94
Make sensors-detect no longer depend on i2cdetect. Parsing /proc/bus/i2c or
...
walking sysfs for the same information (i2c adapter names) is not that
difficult.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4472 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-06-26 07:47:30 +00:00
Jean Delvare
220aa2649a
Discard irrelevant "CONFORMING TO" sections.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4471 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-06-26 06:24:23 +00:00
Jean Delvare
efb0a142ac
Add detection for non-standard SMSC Super-I/Os. Patch from Juerg Haefliger.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4469 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-06-25 19:02:25 +00:00
Jean Delvare
7a48555748
Fix the case where the system has different CPU models.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4467 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-06-25 17:08:15 +00:00
Jean Delvare
24f6b62c3f
Delete all remnants of algorithm names.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4465 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-06-25 14:21:01 +00:00
Jean Delvare
f00aef9271
Return with an explicit error code/message if sysfs isn't mounted.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4464 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-06-25 13:58:55 +00:00
Jean Delvare
c8b02ddfa3
Install libsensors as libsensors.so.4, and sensors as sensors3. This makes
...
it possible to install both the old and the new libsensors and sensors,
making testing much easier. sensors3 will be renamed back to sensors before
we release.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4461 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-06-25 11:39:08 +00:00
Jean Delvare
02c37024e3
Delete documentation generation scripts, they're obsolete.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4459 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-06-25 08:45:37 +00:00
Mark M. Hoffman
8b5ed619c0
ported r4446 from trunk
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4451 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-06-16 14:02:23 +00:00
Mark M. Hoffman
3fd5aba000
ported r4435 from trunk
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4450 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-06-16 14:01:05 +00:00
Mark M. Hoffman
b23feefd21
Merge from trunk: 4400
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4445 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-06-14 12:31:26 +00:00
Jean Delvare
835f9b492c
fancontrol: Better integration with init scripts (picked from Suse)
...
* Do not return with an error when receiving SIGTERM.
* Handle signals while sleeping.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4443 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-06-12 11:37:59 +00:00
Jean Delvare
57044be111
fancontrol:
...
* Check for configuration file validity
fancontrol and pwmconfig:
* Support optional min and max PWM values
Documentation updated accordingly.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4442 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-06-12 11:37:19 +00:00
Jean Delvare
59a0831fa6
More cleanups to fancontrol:
...
* No longer depend on grep. We already depend on egrep so let's use it
everywhere.
* Don't depend on awk to compute the target PWM value. Bash has an arithmetic
expression evaluation engine which does the job just fine.
* Use read instead of cat to read the sensor values. read is built-in, so
it's cheaper.
* When sysfs is used (2.6 kernel), do not postproces the sensor value reads
with cut, as it is not needed.
* Update the dependency list.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4441 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-06-12 11:36:15 +00:00
Jean Delvare
e56e0039ef
Cleanups to fancontrol:
...
* Use let for arithmetic evaluation. Patch taken from the Suse package.
* Kill old commented-out code.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4440 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-06-12 11:34:19 +00:00
Jean Delvare
d72fcc8168
Replace all references to bmcsensors and i2c-ipmi for kernel 2.6 with
...
ipmisensors and ipmi-si in sensors-detect. Original patch from Juerg
Haefliger.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4434 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-06-08 14:39:06 +00:00
Jean Delvare
a46d7961d3
Do not force the I2C slave address by default. It's only fair to let the
...
users know that they're doing something wrong. They can insist by using
the new -f option.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4431 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-06-04 17:54:46 +00:00
Jean Delvare
768be0b9c0
Drop SENSORS_FEATURE_TEMP_LIM, it doesn't correspond to anything in the
...
standard sysfs interface.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4428 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-05-29 16:49:06 +00:00
Jean Delvare
33a3d6fba2
Drop SENSORS_FEATURE_TEMP_OVER, SENSORS_FEATURE_TEMP_HIGH and
...
SENSORS_FEATURE_TEMP_LOW, they don't correspond to anything in the
standard sysfs interface.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4427 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-05-29 16:23:19 +00:00
Jean Delvare
139afe6665
Disable specific support for the ds1621, lm90 and f71805f drivers.
...
I tested that the generic support works fine for these devices.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4424 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-05-28 15:02:18 +00:00
Jean Delvare
a08cf956fb
Fixes to the dynamic chip support:
...
* Fix the handling of temperature hysteresis. Hysteresis is not a
temperature limit by itself, but a property of temperature limit.
* Handle per-limit temperature alarms.
With these fixes, the ADM1032 is properly supported by the new code.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4423 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-05-28 14:22:58 +00:00
Jean Delvare
2eece824c8
Fix alignment of alarm for one-limit temperatures.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4421 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-05-28 13:26:07 +00:00
Jean Delvare
b33986c2ac
Support and use the new I2C block read with variable length which will
...
be available in Linux kernel 2.6.23. Binary compatibility is guaranteed,
source code compatibility isn't, but the incompatibility will be
spotted quickly as the prototype of the helper function
i2c_smbus_read_i2c_block_data() changed. The only problem would be if
a program is calling i2c_smbus_access() directly. Hopefully this should
be a rare case. The py-smbus binding code is in this case and will be
adjusted soon.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4419 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-05-28 10:31:56 +00:00
Jean Delvare
d9f8e44d40
Add IT8726F detection.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4415 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-05-28 07:17:09 +00:00
Jean Delvare
d2341c8ec1
Add Maxim MAX6680/MAX6681 detection. Patch contributed by
...
Rainer Birkenmaier (Siemens).
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4411 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-05-22 11:31:51 +00:00
Jean Delvare
8cc806b298
sensors-detect: Add support for the ATI SB700 SMBus controller.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4409 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-05-17 12:07:20 +00:00
Jean Delvare
835c00d1bc
Fix Super-I/O exit sequence for Winbond/Fintek chips. isadump
...
now uses the same sequence as sensors-detect uses.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4407 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-05-16 09:13:50 +00:00
Jean Delvare
9f98b33019
Fix busy flag detection. Some Super-I/O chips (W83627THF) can't read
...
back from the address port, so the value 0xff is returned, causing
a false positive with the original test. Testing explicitly for 0x80
instead of only testing that bit 7 is set, works around it.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4406 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-05-16 09:11:37 +00:00
Jean Delvare
314c674660
Legacy hotplug modules and documentation: Delete. These modules no
...
longer work with 2.6 kernels.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4402 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-05-13 08:22:47 +00:00