2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-08-30 05:48:07 +00:00

1850 Commits

Author SHA1 Message Date
Jean Delvare
72b72f40fc Map the IT8603E to the it87 driver. 2013-11-22 12:43:52 +00:00
Jean Delvare
cb00a51d89 Add detection of SMSC EMC2104. 2013-11-22 12:38:12 +00:00
Rudolf Marek
cd345e7bef Add detection of IT8603E. 2013-11-12 13:29:25 +00:00
Jean Delvare
3a10e75529 Add detection of Texas Instruments TMP451 2013-10-09 15:58:33 +00:00
Jean Delvare
fbfbb9c9a8 sensors-detect: Fix use of uninitialized value 'vendor_id' on ppc64
Based on a report and an original patch from Jaromir Capik:

There's no vendor_id entry in the /proc/cpuinfo file in case of PPC64
systems and consequently the script returns 3 screens full of the
following errors:

Use of uninitialized value in string eq at /usr/sbin/sensors-detect
line 6444
Use of uninitialized value in string eq at /usr/sbin/sensors-detect
line 6459
Use of uninitialized value in string eq at /usr/sbin/sensors-detect
line 6473
2013-09-11 12:07:25 +00:00
Jean Delvare
ec4160f771 sensors-detect: Rework option handling
Rework the way command line options are handled. If we ever need more
than this, we should consider moving to some GetOpt perl module.
2013-09-11 11:51:57 +00:00
Jean Delvare
5b6f3f26e0 sensors-detect: Detect incorrect non-interactive runs
It is better to use option --auto for non-interactive runs of the
sensors-detect script than faking an input to get the default answers
to all questions.
2013-09-11 11:46:48 +00:00
Jean Delvare
feb19f45c6 sensors-detect: Introduce automatic mode
Add option --auto to sensors-detect, for non-interactive use. Default
answer is assumed to every question.
2013-09-11 11:22:37 +00:00
Jean Delvare
993f8cb621 Add PCI ID for new family 15h AMD processors. 2013-08-31 13:18:15 +00:00
Jean Delvare
b67af39649 sensors-detect: Add detection of F71868A 2013-07-16 15:07:19 +00:00
Guenter Roeck
01f4f2b275 sensors-detect: Add detection of NCT6681D, NCT6682D, and NCT6683D
NCT6683D is found on recent Intel mainboards (eg DH87MC, DH87RL).
NCT6681D is mentioned on the Nuvoton web site. NCT6682D is similar
to NCT6681D with added support for current monitoring.
2013-07-03 16:15:54 +00:00
Guenter Roeck
1dbb3af4ab sensors-detect: Add detection of NCT6791D
New superio chip, found on recent ASUS boards.
2013-07-03 16:14:23 +00:00
Jean Delvare
f8248e8c21 sensors-detect: Handle built-in modules properly
We now have everything we need to handle built-in modules properly, so
do it. It should work fine since kernel 2.6.33.
2013-06-10 13:03:44 +00:00
Jean Delvare
256811bc9e sensors-detect: Use modules.builtin instead of /sys/module
/sys/module doesn't actually contain all built-in modules, only the
ones which have a version or at least one parameter. Better use file
modules.builtin which is generated since kernel 2.6.33, it is complete
and this will let us handle built-in modules properly.
2013-06-10 13:02:47 +00:00
Guenter Roeck
e8af0c718c lm-sensors: Drop comment that additional checks for MAX1617 and LM84
are not done in adm1021 driver, as this is no longer correct.
2013-06-07 18:48:08 +00:00
Jean Delvare
2dec06a2a9 Fix EnvironmentFile in service files
* EnvironmentFile is mandatory for sensord.
* fancontrol needs no EnvironmentFile.
2013-06-03 12:36:47 +00:00
Jean Delvare
a276f56993 sensors-detect: Report built-in drivers as such 2013-05-28 11:51:36 +00:00
Jean Delvare
a133842b93 Add missing dependency. 2013-05-24 13:28:38 +00:00
Jean Delvare
98f280797c Add sensord service file for systemd
Original file contributed by Nikola Pajkovsky.
2013-05-24 10:53:19 +00:00
Jean Delvare
1e3fb43118 Add fancontrol service file for systemd 2013-05-24 10:39:23 +00:00
Jean Delvare
62ed6f484b Fix handling of absolute paths in config
Reported by Marc Ferland. Make DEVPATH and DEVNAME mandatory only when
using relative paths. Optionally support DEVNAME check when using
absolute paths.
2013-05-23 14:09:22 +00:00
Jean Delvare
8f4461622c Drop unreliable DS1621/DS1631 detection
Detection of the Dallas/Maxim DS1621, DS1625 and DS1631 chips is weak
and likely to result in false positive. There's no rationale for
keeping it in sensors-detect as these chips are not found in desktop
computer systems. So drop detection of these chips altogether.
2013-05-20 19:25:22 +00:00
Jean Delvare
7e2b5c3376 pwm: Declare local variables as such 2013-05-01 11:37:47 +00:00
Jean Delvare
e46e4e519f pwmconfig: Properly deal with multiple fan control
When a given PWM output controls more than one fan,
fanactive_min is no longer a space-separated list of numbers, it will
also include items of the form "A+B". The tests in the rest of the
code do not expect that and choke with errors like:

/usr/sbin/pwmconfig: line 926: [: 538+799: integer expression expected
/usr/sbin/pwmconfig: line 952: [: 538+799: integer expression expected

As the only thing we really care about is whether any fan stops
completely when PWM is 0, we can simply record the minimum of the
lowest speed of all affected fans.
2013-05-01 10:31:00 +00:00
Jean Delvare
f2b3e95c59 pwmconfig: Drop a stray comment
fancontrol supports multiple controlled fans for quite some time now.
2013-05-01 10:30:22 +00:00
Jean Delvare
58ec80bf54 pwmconfig: Raise the detection threshold to 3/4
Detection threshold of 2/3 of the maximum speed is too low, some fans
will slow down to about that speed so controlled fans may be missed.
Use 3/4 as the threshold to avoid these false negatives.
2013-05-01 10:29:57 +00:00
Jean Delvare
2096d14c18 pwmconfig: Print the initial PWM values
Print the initial PWM values before letting the user change them. This
should be useful to better understand what happens next, and for user
support in general.
2013-05-01 10:29:00 +00:00
Guenter Roeck
75e1846326 NCT5577D datasheet says that the chip ID can be 0xC333, same as NCT6776F.
So we can not use the chip revision to detect the actual chip.
Merge entries for NCT5577D and NCT6776F into one.

List NCT5572D as another variant of W83677HG-I (NCT6775).

NCT6106D chip ID as observed on a real system is 0xC452, not 0x1061 as
claimed by the data sheet. Confirmed with Nuvoton that the correct
chip ID is 0xC452. Also list its variants NCT6102D and NCT6104D.

List NCT5532D as variant of NCT6779D. Data sheets list possible chip
IDs of 0xC561 and 0xC562, so detect and accept all chip revisions.

Point to new nct6775 driver for NCT6775, NCT6776, and NCT6779.
2013-04-09 14:54:19 +00:00
Guenter Roeck
43e8122abb Add detection of TMP431 and TMP432 2013-03-17 16:04:55 +00:00
Guenter Roeck
f3c0b42ed9 Add detection of LM95234 2013-03-17 16:03:51 +00:00
Jean Delvare
ad51e05f16 We have a driver for the ADT7410 since kernel 3.7.
ADT7420 is register compatible with the ADT7410.
2013-02-28 09:18:34 +00:00
Guenter Roeck
fc22c02e65 Add detection of MCP98244 2013-02-04 23:56:11 +00:00
Guenter Roeck
9bec02f075 Add detection of IT8752F 2013-02-04 23:55:13 +00:00
Jean Delvare
1b77fd669b Avoid unwanted sensors-detect termination when /dev/port is missing
Patch from Jaromir Capik.

The device file /dev/port might be missing in some cases
and the sensors detection is terminated when the user
tries to detect sensors dependent on it's existence.
That's not correct -> it's not a reason for terminating
the detection.
2013-01-23 09:33:59 +00:00
Jean Delvare
6734fae250 The new sysconfig configuration file syntax is in place since December
2009, I think we can safely remove the old one, nobody should be using
it any longer.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@6115 7894878c-1315-0410-8ee3-d5d059ff63e0
2013-01-16 18:11:30 +00:00
Jean Delvare
319f9b8f68 If a driver is built into the kernel, it doesn't show up in
/proc/modules so we will try to load it, even though it's already
available. It will succeed, however later attempts to remove the
driver will fail and such failures are reported at the end of the
script, which can be confusing.

So, use /sys/module instead of /proc/modules where available, as
built-in drivers are listed there too so we no longer attempt to load
already available drivers. As a consequence we also no longer attempt
to remove the drivers in question, thus clearing the error message.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@6114 7894878c-1315-0410-8ee3-d5d059ff63e0
2013-01-16 17:33:38 +00:00
Jean Delvare
1971bc6ff1 Map IT8771E, IT8772E, IT8782F and IT8783F to it87.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@6113 7894878c-1315-0410-8ee3-d5d059ff63e0
2013-01-16 14:26:48 +00:00
Jean Delvare
9c91c2897e Add detection of AMD family 16h power sensors. Patch from Boris
Ostrovsky.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@6112 7894878c-1315-0410-8ee3-d5d059ff63e0
2013-01-12 14:35:31 +00:00
Jean Delvare
8714492f6b Add detection of Winbond W83627SF/GF (no sensors.)
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@6111 7894878c-1315-0410-8ee3-d5d059ff63e0
2013-01-11 20:52:59 +00:00
Jean Delvare
f915436019 sensors: Clarify what option -u is good for.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@6090 7894878c-1315-0410-8ee3-d5d059ff63e0
2012-11-12 09:35:59 +00:00
Jean Delvare
717e87b4d2 Fix % in format.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@6086 7894878c-1315-0410-8ee3-d5d059ff63e0
2012-11-06 19:44:01 +00:00
Jean Delvare
d1d5799d51 sensors-detect: Fix parent class discovery when multiplexer is present
Take multiplexers into account when looking up the parent device of
each I2C adapter. We don't bother with old kernels as they didn't have
support for multiplexers anyway.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@6085 7894878c-1315-0410-8ee3-d5d059ff63e0
2012-10-30 17:18:45 +00:00
Jean Delvare
e817653329 sensors-detect: Do not scan I2C adapters on graphics cards by default.
Don't probe I2C buses on graphics cards by default. Their drivers will
typically instantiate the I2C slave devices themselves as needed, and
such probes have been occasionally reported to cause serious trouble.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@6084 7894878c-1315-0410-8ee3-d5d059ff63e0
2012-10-30 17:11:37 +00:00
Jean Delvare
6a2798ccc0 sensors/man - missing long switches
Patch from Jaromir Capik.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@6076 7894878c-1315-0410-8ee3-d5d059ff63e0
2012-10-22 11:51:27 +00:00
Guenter Roeck
4726e44ab8 sensors: add humidity data to output of sensors command
Patch provided by Iain Paton.



git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@6070 7894878c-1315-0410-8ee3-d5d059ff63e0
2012-09-11 19:05:10 +00:00
Guenter Roeck
aa504302de sensors-detect: Add detection of SMSC LPC47N217 and SIO10N268
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@6057 7894878c-1315-0410-8ee3-d5d059ff63e0
2012-06-01 15:47:27 +00:00
Guenter Roeck
c94b615773 sensors-detect: Add detection of NCT6779D and NCT6102D/NCT6106D
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@6056 7894878c-1315-0410-8ee3-d5d059ff63e0
2012-06-01 15:46:30 +00:00
Jean Delvare
69eb49cb7f sensors: Fix libiconv linkage need detection in rare corner case.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@6044 7894878c-1315-0410-8ee3-d5d059ff63e0
2012-04-19 13:13:27 +00:00
Jean Delvare
29bd5c021e Avoid probing EDID addresses (0x50-0x57) on graphics card adapters.
We had one report that it caused trouble:
http://lists.lm-sensors.org/pipermail/lm-sensors/2012-April/035847.html
Even though it's not yet clear what happened, let's play it safe.
This fixes ticket #2386.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@6040 7894878c-1315-0410-8ee3-d5d059ff63e0
2012-04-09 19:33:35 +00:00
Jean Delvare
ea7ff25c29 PCI bus is always required even if it might be missing on some
platforms. So don't choke is it is missing. Patch from Jaromir Capik.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@6038 7894878c-1315-0410-8ee3-d5d059ff63e0
2012-03-29 06:33:15 +00:00