2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-08-28 21:07:55 +00:00

4039 Commits

Author SHA1 Message Date
Jean Delvare
a5f4b32d17 Don't use named pipes when we don't need them. Named pipes have been reported
to cause trouble on some systems. This closes ticket #2319.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5271 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-06-02 06:21:06 +00:00
Jean Delvare
34881b958e Add Maxim MAX6654/MAX6690 detection.
Add National Semiconductor LM95231 detection.
Add Analog Devices ADT7481 detection.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5270 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-05-28 12:36:57 +00:00
Jean Delvare
aa79effd61 Have a common function for LM78-like ISA access, so that we no longer have
to define it again each time we need it.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5269 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-05-28 09:52:16 +00:00
Jean Delvare
1546409b03 Delete two unused functions.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5268 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-05-28 09:34:46 +00:00
Jean Delvare
ba80846842 More coding style cleanups. This time, most of them are to make function
calls look like function calls, but there are also a couple whitespace
fixes and needless parentheses removed.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5267 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-05-28 09:32:41 +00:00
Jean Delvare
337f390279 Cache the byte data reads. As we keep reading the same registers over
and over again in the detection functions, and SMBus can be slow,
caching results in a big performance boost. This closes ticket #2326.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5266 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-05-28 07:26:11 +00:00
Jean Delvare
0463566da7 Improve MAX6657, MAX6658, MAX6659 detection.
Adjust the confidence value of ADM1032, MAX6680/MAX6681 and TMP401.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5264 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-05-25 10:07:25 +00:00
Jean Delvare
bc735d6619 Coding style fixes.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5262 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-05-24 06:56:33 +00:00
Jean Delvare
a00447d1ce Identify the lm85-compatible chips individually. The previous method was
vendor-based, so we couldn't tell the user what exact device they had,
and the broad device ID mask could lead to false positives.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5261 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-05-23 10:22:30 +00:00
Jean Delvare
18ed2e1022 Mass coding-style cleanups.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5260 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-05-22 12:01:33 +00:00
Jean Delvare
c2852cba57 Add Intel SCH (bus) support.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5258 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-05-21 08:15:48 +00:00
Jean Delvare
2a414fdd05 Post-release version update.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5256 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-05-18 16:54:15 +00:00
Jean Delvare
d53ba9bb1c Prepare for release.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5254 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-05-18 16:07:48 +00:00
Jean Delvare
aa47fb99e2 Fix support of multiple chip names on the command line. It got broken
accidentally during the conversion to the new libsensors API in version
3.0.0. This closes ticket #2321.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5252 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-05-12 11:51:18 +00:00
Jean Delvare
0f2d2724a6 Bugfix: add carriage return ('\r') to the BLANK character class.
This closes ticket #2284.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5251 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-05-12 11:44:33 +00:00
Jean Delvare
47ed2c0ffd Add Dallas DS1631 detection.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5249 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-05-11 20:56:25 +00:00
Jean Delvare
ed3571c03a Rework all device detection routines which use SMBus read word
transactions in address range 0x40-0x48. Some devices don't like word
transactions, so we now try to do as much of the detection as possible
using byte transactions, and only use word transactions when there is
a good chance that the detection will succeed.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5246 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-05-11 17:12:29 +00:00
Jean Delvare
1bd1be771e Try to detect 1-register-only devices, which are designed to be
accessed with SMBus receive byte and SMBus send byte transactions
(i.e. short reads and short writes) and treat SMBus read byte as a
real write followed by a read. The device detection routines would
write random values to the chip with possibly very nasty results for
the hardware. So when we detect such a chip, we skip all probing for
this address.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5245 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-05-11 17:04:03 +00:00
Jean Delvare
c814dad141 Fix the parsing of I2C addresses not to scan.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5243 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-05-09 17:59:51 +00:00
Jean Delvare
a4c078b3df Don't probe I2C addresses 0x40-0x47. We only probed them for the MAX6633,
which is a rare chip, and hard to identify anyway. Given that some I2C chips
have been reported to live at 0x47 and to hang the bus when probed, the
benefit just isn't worth the risk.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5235 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-05-04 16:43:12 +00:00
Jean Delvare
d43847b5df We have a preliminary driver for the Asus F8000.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5232 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-05-03 13:19:16 +00:00
Jean Delvare
41034dc771 Add Intel ICH10 (bus) detection.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5229 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-05-02 12:22:08 +00:00
Jean Delvare
b94f8909cd Add Asus F8000 detection.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5227 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-05-02 12:10:30 +00:00
Jean Delvare
6b2cba4a87 Drop I2C adapter entries for graphics adapters, and a few other misc
bus entries. I don't think we ever saw a sensor chip on these.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5223 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-05-02 12:03:48 +00:00
Jean Delvare
4ccadee893 Improve handling of special-case bus driver names:
* Drop support for temporarily disabling I2C bus drivers - we've not
used it for years.
* Handle the other special cases early, so that later code no longer
needs to care.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5222 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-05-02 11:57:37 +00:00
Jean Delvare
e6883cf237 We now always prefer ISA access over I2C/SMBus access, so we can
simplify the code a bit.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5221 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-05-02 11:57:03 +00:00
Jean Delvare
4e66e0f377 Add National Semiconductor LM64 detection.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5214 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-04-27 07:08:08 +00:00
Jean Delvare
7980b684e8 Add preliminary support for the Asus F8000. It is not yet known whether
this chip has hardware monitoring features or not (I guess not.)


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5211 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-04-27 06:42:30 +00:00
Jean Delvare
6364733ff5 Add SMSC SCH5127 detection. Patch from Juerg Haefliger.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5192 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-04-18 10:08:33 +00:00
Jean Delvare
ac0180cc78 Delete the FAQ. It is now maintained on the wiki:
http://www.lm-sensors.org/wiki/FAQ/


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5189 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-04-17 11:39:07 +00:00
Jean Delvare
51f20e2b2f Fix stray reference to cvs.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5187 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-04-17 11:08:34 +00:00
Jean Delvare
95493528ab Minor readability adjustments.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5186 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-04-17 11:01:21 +00:00
Darrick J. Wong
f4e4fcd8c1 Subject: [PATCH 3/3 v3]: sensors: Automatically scale energy/power units
Automatically scale energy and power values when printing them in cooked
mode.  Fixed all the warnings and warts that were brought up by Jean in
the previous thread.

Signed-off-by: Darrick J. Wong <djwong@us.ibm.com>



git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5185 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-04-17 01:30:37 +00:00
Darrick J. Wong
4c93dffd4f Subject: [PATCH 3/4 v2] sensors: Print energy and power meters
Display power and energy meters in sensors.

Signed-off-by: Darrick J. Wong <djwong@us.ibm.com>



git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5184 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-04-17 01:28:51 +00:00
Darrick J. Wong
bb840c486c Subject: [PATCH 1/3 v3] libsensors: Support energy and power meters
Add power and sensor meters to libsensors, with minor tweaks and
documentation updates as suggested by Jean Delvare.

Signed-off-by: Darrick J. Wong <djwong@us.ibm.com>



git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5183 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-04-17 01:27:22 +00:00
Jean Delvare
bcabe00237 Arbitrary version bump.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5182 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-04-16 18:35:46 +00:00
Jean Delvare
5db0d2003f Drop obsolete comment.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5181 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-04-16 18:22:12 +00:00
Jean Delvare
17e7247f28 pwmconfig: Don't start if fancontrol is running.
fancontrol: Don't start if already running, delete fancontrol.pid at
exit time.
This closes ticket #2299.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5180 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-04-16 14:29:01 +00:00
Jean Delvare
be4ea8ac3e Don't create the configuration file before it's needed.
Don't preserve configuration file customizations.
Fix permissions of the configuration file.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5179 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-04-16 11:18:36 +00:00
Jean Delvare
a16f065eee Add libsensors-API.txt to the checklist.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5178 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-04-14 15:32:35 +00:00
Jean Delvare
fdd8139afc Trivial alignment fix.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5177 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-04-14 15:29:49 +00:00
Jean Delvare
39b96fa477 Add support for virtual hwmon devices. This closes Red Hat bug #437637
and ticket #2305.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5176 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-04-14 15:27:59 +00:00
Jean Delvare
c84fd9820e We start at the end of the chip list, going backwards, and we want the
late compute statements to override the early ones (as documented in the
sensors.conf manual page), so we must stop as soon as any match is found.

This fixes Debian bug #474596:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=474596


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5175 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-04-11 20:41:31 +00:00
Darrick J. Wong
7566fa5b1c Subject: [PATCH 1/4] libsensors: Detect OpenFirmware hwmon devices
On a QS22 blade, the BMC containing the (ibmpex) power meters is enumerated
via Open Firmware.  Check for "of_platform" to handle this case.

Signed-off-by: Darrick J. Wong <djwong@us.ibm.com>


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5174 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-04-10 23:24:57 +00:00
Jean Delvare
4293c939a7 Fix typo.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5171 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-04-08 15:07:31 +00:00
Jean Delvare
399410079f The configuration file is currently parsed in the locale set by the main
program using the library. This means that if the decimal separator
(defined in LC_NUMERIC) is not '.' the values in the compute lines are
truncated. This happens for example with sensors-applet and a French
locale.

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=469333

Parsing the configuration file in C locale fixes the problem.
Original patch from Aurelien Jarno.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5169 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-04-08 14:50:13 +00:00
Jean Delvare
f2e518511d Patch from Aurelien Jarno:
I have just noticed that the FSF address is the old one in all files
except COPYING. Please find a patch below to fix that.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5163 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-03-26 13:37:12 +00:00
Hans de Goede
e4870c50f9 The platform case
acts as a fallback solution so it must be last in the list.

git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5145 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-03-16 12:51:18 +00:00
Hans de Goede
afed959df6 modify initscript to have lsb compliant return values
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5144 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-03-12 20:50:34 +00:00
Hans de Goede
d155421542 Modify initscript chkconfig comments to not make the service start by default, modify sensors-detect to enable the service on boot once configured and to start it at the end of sensors-detect
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5143 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-03-12 20:50:19 +00:00