2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-08-30 13:57:41 +00:00

4039 Commits

Author SHA1 Message Date
Jean Delvare
78d9053547 There are no sensor* sysfs files.
The VID value is in cpu*_vid, not vid.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4520 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-06-29 11:46:20 +00:00
Jean Delvare
0c46611b20 Drop two unused macros.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4519 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-06-29 08:21:38 +00:00
Jean Delvare
1de056f9bf Negative magnitudes are no longer supported.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4518 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-06-29 08:16:24 +00:00
Jean Delvare
c1319becae Drop references to nonexistent Makefile variables.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4517 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-06-29 08:13:18 +00:00
Jean Delvare
0bca3703a1 Update ignore lists.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4516 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-06-29 07:59:17 +00:00
Jean Delvare
c084fe78f4 kernel/include/sensors.h is no longer used; delete it.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4515 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-06-29 07:57:33 +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
e08eabe33c We no longer need alternative sysfs file names and magnitudes, as they are
the real name and magnitude now.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4513 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-06-28 18:19:58 +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
92b5982180 With the new dynamic chip features enumeration code, the sensors_proc_chips
and sensors_chip_features_list arrays tend to track the same information.
So it's much more simple, and more efficient, to have a single array. I
decided to keep sensors_proc_chips, because it already has memory management
helpers. One nice side effect is that the arbitrary limit to the number of
supported chips is now gone. Another one is that some of the memory leaks
were fixed.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4510 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-06-28 14:39:34 +00:00
Jean Delvare
32b1b71245 Feature names are now dynamically allocated -> no const.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4509 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-06-28 13:35:46 +00:00
Jean Delvare
063f4b91d4 Use complete chip names (prefix + bus + address) as the keys of
sensors_chip_features_list[]. Using only the prefix (as was done before)
makes it impossible to properly support multiple chips with the same prefix
but a different feature set.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4508 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-06-28 12:09:00 +00:00
Jean Delvare
8fdfa3f19d Move the few lines of code remaining in chips.c to data.c, and finally
delete chips.c. RIP.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4507 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-06-28 09:53:01 +00:00
Jean Delvare
75d55dc5ae Delete the chip-specific code from libsensors. It's about time to get
the generic code to work.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4506 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-06-28 09:38:31 +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
3e69b5182a No longer need to include "kernel/sensors.h".
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4501 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-06-28 07:29:43 +00:00
Jean Delvare
0d39567685 i2c-dev.h is no longer there.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4498 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-06-27 14:53:36 +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
afcf44fe66 Drop the references to the now gone eeprom decoding scripts and SMBus
unhiding kernel modules.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4491 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-06-27 12:12:39 +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
4133206de9 Move i2c-dev.h to the i2c-tools package.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4485 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-06-27 09:13:05 +00:00
Jean Delvare
cb6e7eed56 Drop the section about procfs access.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4484 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-06-27 08:42:40 +00:00
Jean Delvare
60e6bd2f70 Update our copies of the GPL v2 to the latest version. The only real change
if the FSF address.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4483 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-06-27 08:30:45 +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
2b1fb387e9 Delete unused file.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4476 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-06-26 13:54:26 +00:00
Jean Delvare
8138489a72 struct sensors_proc_chips_entry now has a single member, so we may
as well use this member directly for slightly more simple code.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4474 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-06-26 11:33:09 +00:00
Jean Delvare
6c7effca88 libsensors: Kill procfs and sysctl support, part 2.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4473 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-06-26 10:06:46 +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
f8c7f20bf1 No longer need to include general.h.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4463 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-06-25 13:39:55 +00:00
Jean Delvare
fea1d9a1bb libsensors: Kill procfs support, part 1.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4462 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-06-25 13:32:27 +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
116e411b2d Drop description of deleted doc scripts.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4460 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-06-25 08:47:05 +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
Jean Delvare
85393f35b6 Always build libsensors with sysfs support.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4458 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-06-25 08:18:47 +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
Mark M. Hoffman
cdbf3eaa70 Merge from trunk: 4399
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4444 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-06-14 12:30:17 +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