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

5113 Commits

Author SHA1 Message Date
Guenter Roeck
45ffa15cf0 sensors-detect: Fix syntax error
elseif should be elsif

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2016-07-25 13:19:00 -07:00
Guenter Roeck
6a368f70ea sensors-detect: Fix detection of NCT6793D
The Chip ID for NCT6793D is 0xD12x, not 0xD11x.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2016-07-16 10:32:13 -07:00
Guenter Roeck
e39dbd3e56 Updated CHANGES file to reflect that MCP9808 is now detected
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2016-07-16 10:27:12 -07:00
Guenter Roeck
ff36ee04b8 sensors-detect: Mark F81866D as supported by the f71882fg driver
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2016-07-16 10:25:40 -07:00
Guenter Roeck
feabab994e sensors-detect: Mark F81768D as supported by the f71882fg driver
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2016-07-16 10:25:40 -07:00
Guenter Roeck
5a71627a80 sensors-detect: Mark F71868A as supported by the f71882fg driver
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2016-07-16 10:25:40 -07:00
Guenter Roeck
eb3910bdf4 Merge pull request #6 from AlisonSchofield/master
update sensors-detect for Microchip MCP9808
2016-07-16 10:24:27 -07:00
AlisonSchofield
5ea7fefee4 update sensors-detect for Microchip MCP9808 2016-07-15 14:03:49 -07:00
Guenter Roeck
21e256095c Add detection of Nuvoton NCT6793D 2015-08-31 07:47:39 +00:00
Jean Delvare
8fb3922219 isadump: Fix compilation under musl
From Brendan Heading:

You may be aware of the musl C-library implementation, which tries to
be strictly standards compliant, avoids non-standard extensions, etc.
Some distributions have adopted it as their standard C library, in
others (such as buildroot) it is a configuration alternative.

Vanilla lm-sensors does not compile under musl, due to the following
excerpt which appears in four different places. The code is checking
that the glibc version is greater than 2.0.

#if defined(__GLIBC__) && __GLIBC__ == 2 && __GLIBC_MINOR__ >= 0
#include <sys/io.h>
#else
#include <asm/io.h>
#endif

This fails under musl does not define __GLIBC__ (in fact, by design,
it doesn't provide any way to identify itself at all) - which causes
it to try to include <asm/io.h> rather than <sys/io.h>.

It's a long time since glibc 2.0.1 was released - 1997. Accordingly,
it seems to make little sense at this stage to try to retain
compatibility with very old libcs - so maybe it should be removed
entirely.
2015-08-31 07:34:51 +00:00
Jean Delvare
6507372685 sensors-detect: Only probe I/O ports on x86
Contributed by Aurelien Jarno.
2015-08-10 09:04:53 +00:00
Jean Delvare
991c8d5f9a sensors.1: Add reference to sensors-detect
Contributed by Aurelien Jarno.
2015-08-10 08:23:41 +00:00
Jean Delvare
76e050dc2f sensors-detect: Add detection of Fintek F81768 2015-07-06 12:11:15 +00:00
Jean Delvare
b26a85f06c sensors-detect: Fix systemd paths 2015-07-06 11:51:24 +00:00
Jean Delvare
75dbc240d9 Fix URL format 2015-07-06 11:50:45 +00:00
Jean Delvare
580149a3ab Post-release version update. 2015-06-25 11:47:43 +00:00
Jean Delvare
f9185e5c06 Prepare for release. 2015-06-25 11:24:47 +00:00
Jean Delvare
096a5fc953 fancontrol: Reduce memory consumption
Construct "wait $!" causes bash to remember the exit status of the
children. This consumes memory. We don't need the status code and we
are only waiting for a single child, so we can simply use "wait". This
will reduce the memory usage.

This partly fixes ticket #2391.
http://www.lm-sensors.org/ticket/2391

The actual leak is in bash 4.3 and should be fixed there.
2015-06-25 10:34:52 +00:00
Jean Delvare
59df826a29 Freecode is gone. 2015-06-17 10:53:44 +00:00
Jean Delvare
955a371506 Be more flexible when parsing address list 2015-05-31 12:00:33 +00:00
Jean Delvare
b457bc7c63 sensors-detect: Skip addresses 0x37 and 0x4f on DDC channels
We already skip EDID addresses (0x50-0x57) by default on graphics card
I2C/DDC buses. Also skip 0x37 (DDC/CI) and 0x4f which was recently
reported as corrupting a laptop's display when probed.

This closes ticket #2392.
http://www.lm-sensors.org/ticket/2392
2015-05-31 11:58:16 +00:00
Jean Delvare
332c6fe2b9 sensors-detect: Detect graphics card in all cases
On recent kernels, the i2c bus may not be an immediate child of the
graphics device, instead there can be a drm class device in between.
Treat all drm class devices as graphics devices so that probing the
i2c bus is disabled by default as intended.
2015-05-31 11:53:30 +00:00
Jean Delvare
15cafdf597 Don't probe address 0x37 for TMP435, this address is known to be
problematic.
2015-05-28 06:01:18 +00:00
Jean Delvare
b200f794b3 libsensors: Fix sparse warnings
Sparse wants forward declarations of static functions to be static as
well. For sensors_eval_expr, do that. For the error callbacks,
rearrange the code so that the forward declarations are no longer
needed.
2015-05-15 11:24:28 +00:00
Guenter Roeck
aaf34b0de8 Add detection of ITE8790E.
Reflect that IT8620E will soon be supported by the it87 driver.
2015-03-30 06:43:30 +00:00
Guenter Roeck
da60f83fa2 sensors-detect: Nuvoton chip updates
Document driver support for NCT7802Y.
Add detection of NCT7904D.
2015-03-03 16:48:20 +00:00
Jean Delvare
64629dc2f2 healthd.sh: Drop PATH manipulations
Altering PATH shouldn't be needed, everything that is required should
be already available.
2015-03-03 09:14:15 +00:00
Jean Delvare
f86fd47838 healthd.sh: Revert to regular sleep
The read trick did not work when the daemon is started by systemd.
So we call sleep again, but we try to use the builtin flavor when
available.
2015-03-03 09:02:31 +00:00
Jean Delvare
1f5ef824c8 healthd.sh: Bump version 2015-02-28 10:15:00 +00:00
Jean Delvare
53d852c9b5 healthd.sh: Decrease the resource consumption by replacing the
external commands with the built-in bash commands. Contributed by
vbooh.
2015-02-28 09:11:05 +00:00
Guenter Roeck
266a45579c sensors-detect: Detect additional IDT temperature sensors
Loosen detection rules for TS3000/TSE2002 to detect additional
chip revisions. Add detection of TSE2004 and TS3001.
2015-02-25 16:38:20 +00:00
Jean Delvare
f18f5531b2 Map the IT8786E to the it87 driver 2015-02-24 10:42:36 +00:00
Jean Delvare
d992ea2039 Map the IT8781F to the it87 driver 2015-02-24 08:43:33 +00:00
Jean Delvare
5ef0b34a86 Add detection of Intel 5500/5520/X58 2015-01-26 09:27:46 +00:00
Guenter Roeck
5765cdf944 Add detection of IT8731F and IT8732F 2015-01-23 15:59:14 +00:00
Guenter Roeck
54ec3485d3 Add detection of IT8780F 2015-01-23 15:58:47 +00:00
Guenter Roeck
b0d6963810 Add detection of IT8786E 2015-01-23 15:58:21 +00:00
Guenter Roeck
241441edaa sensors-detect: Add code to detect TMP400 and TMP435
Also strengthen chip detection for other TMP4xx chips,
and update driver support status for TMP431 and TMP432.

Write new function for various TMP4xx chips and separate
from lm90 detection.
2014-12-12 14:25:20 +00:00
Jean Delvare
76c0970e3b Update the note about libsensors license. libsensors is released
under the LGPL now, thanks Guenter for pointing out the overlook.
2014-11-27 10:35:06 +00:00
Guenter Roeck
fba335f4aa sensors-detect: EMC14xx chip updates
Document support for EMC1402, EMC1404, and EMC1424
Detect new revisions of EMC14xx
Add detection of EMC1422
2014-11-20 19:13:44 +00:00
Guenter Roeck
e541f5a86f Add reference to nct6683 driver.
Show that nct6775 driver supports NCT6792D.
Show that NCT6102D/6104D/6106D are supported by nct6775 driver.
NCT5573D is compatible to NCT6776F and has the same chip ID.
2014-11-20 19:12:37 +00:00
Jean Delvare
bf885a77c5 Add detection of Nuvoton NCT6792D 2014-11-17 08:21:25 +00:00
Jean Delvare
af447db31a fancontrol: Fix shell error when FCFANS is not set
The bug was introduced when I added support for multiple fans
controlled by the same PWM output, in r6000. lm-sensors versions
affected: 3.3.2 to 3.3.5.

This fixes SUSE bug #903520:
https://bugzilla.suse.com/show_bug.cgi?id=903520
2014-11-05 07:28:35 +00:00
Jean Delvare
2b9a6ee146 Print the kernel version and the processor information, to make user
support easier.
2014-09-10 19:18:25 +00:00
Guenter Roeck
a5f0ead1ae sensors-detect: Add detection of NCT7802Y 2014-06-26 14:37:22 +00:00
Guenter Roeck
778c8486c8 sensors-detect: Add detection of various TI chips
Detect TMP441, TMP442, LM95233, LM95234, LM95235.
Strengthen detection of TMP421/TMP422/TMP423.
2014-06-26 13:31:14 +00:00
Jean Delvare
caa118e4a7 I2C address 0x2c is already probed for dozens of chips so there's no
reason to not probe it for SMSC EMC1072, EMC1073 and EMC1074.
2014-05-12 07:14:50 +00:00
Jean Delvare
e0abfe8c5d Add libsensors.map to the list of dependencies for libsensors.so. 2014-05-09 05:53:10 +00:00
Jean Delvare
da5b14dc0c sensors.conf.5: Enhance the hysteresis documentation
Mention all supported temperature hysteresis attributes. Recommend
setting each limit before its hysteresis.
2014-04-23 15:17:24 +00:00
Jean Delvare
69b3b10fa6 sensors: Add support for temp[1-*]_min_hyst and temp[1-*]_lcrit_hyst 2014-04-22 08:09:29 +00:00