2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-08-31 14:25:39 +00:00
Commit Graph

5221 Commits

Author SHA1 Message Date
Guenter Roeck
5175a1eab8 sensors-detect: Add detection of IDT TSE2002GB2, TS3000GB2, Microchip MCP9804,
and Atmel AT30TS00



git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@6031 7894878c-1315-0410-8ee3-d5d059ff63e0
2012-03-07 16:14:01 +00:00
Guenter Roeck
107829d11d Fix power interval output
Power interval is measured in seconds, not Watt.



git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@6030 7894878c-1315-0410-8ee3-d5d059ff63e0
2012-03-07 16:12:56 +00:00
Jean Delvare
a3e40509e0 Add support for fan[1-*]_max, fan[1-*]_min_alarm and fan[1-*]_max_alarm
attributes. These are defined in the standard sysfs interface for quite
some time, and at least three drivers (max6650, lm63 and applesmc)
implement them so we should support them.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@6029 7894878c-1315-0410-8ee3-d5d059ff63e0
2012-03-06 07:34:13 +00:00
Jean Delvare
8695f0f515 Add detection of ST Microelectronics STTS2002 and STTS3000.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@6028 7894878c-1315-0410-8ee3-d5d059ff63e0
2012-03-06 07:29:32 +00:00
Jean Delvare
38158e4fe3 Calling strcat twice in a row is inefficient, it's better to use
sprintf at the end of the string, so that we look for that end only
once.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@6027 7894878c-1315-0410-8ee3-d5d059ff63e0
2012-03-06 07:24:42 +00:00
Jean Delvare
1c20f6a298 Fold get_features() into do_features().
There is no rationale for having separate functions, both are static
and called only once. do_features() is calling helper functions to get
values it doesn't use and passes to get_features() directly. Having a
single function is more efficient and allows for per-action
optimizations.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@6026 7894878c-1315-0410-8ee3-d5d059ff63e0
2012-03-06 07:23:42 +00:00
Jean Delvare
8aa001900f Fix memory leaks in sensord revealed by valgrind.
The leak in daemonize() is harmless, we're about to exit anyway. Fix
it still to make valgrind happy.

The leak in do_features() is real, as the function is called
periodically by the daemon, for all actions. If the intervals at set
low and the system has many sensors, the leak could be significant,
maybe 150 kB/day.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@6025 7894878c-1315-0410-8ee3-d5d059ff63e0
2012-03-06 07:22:06 +00:00
Guenter Roeck
9e144ca2a5 Add detection of ITE IT8510E/TE/G, IT8511E/TE/G, IT8513E/F/G, and IT8518E
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@6024 7894878c-1315-0410-8ee3-d5d059ff63e0
2012-03-04 18:10:41 +00:00
Jean Delvare
37bdb0bb5a Add detection of ITE IT8781F, IT8782F and IT8783F.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@6023 7894878c-1315-0410-8ee3-d5d059ff63e0
2012-03-02 07:53:06 +00:00
Jean Delvare
bdfeb5e97e Filter out one more fake DMI string.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@6022 7894878c-1315-0410-8ee3-d5d059ff63e0
2012-02-16 06:44:31 +00:00
Jean Delvare
fad34226aa Add detection of ITE IT8771E.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@6021 7894878c-1315-0410-8ee3-d5d059ff63e0
2012-02-15 08:24:08 +00:00
Jean Delvare
38581a071e lm96080 is the new lm80.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@6020 7894878c-1315-0410-8ee3-d5d059ff63e0
2012-01-31 14:25:29 +00:00
Jean Delvare
ce67eab867 Fix typo.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@6019 7894878c-1315-0410-8ee3-d5d059ff63e0
2012-01-31 14:22:39 +00:00
Jean Delvare
a79b62b21c Add detection of the National Semiconductor (now Texas Instruments)
LM96080. It is functionally compatible with the LM80 but detection is
completely different.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@6018 7894878c-1315-0410-8ee3-d5d059ff63e0
2012-01-31 12:55:39 +00:00
Jean Delvare
ae32c8a919 Upcoming change in sysfs will break the way libsensors detects if
sysfs is mounted. Adjust the implementation so that it still works after
said change.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@6017 7894878c-1315-0410-8ee3-d5d059ff63e0
2012-01-31 12:54:03 +00:00
Jean Delvare
c9c0cb604f Properly handle Super-I/O chips without logical device. Just report
that we can't support the chip yet, instead of spitting I/O errors.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@6016 7894878c-1315-0410-8ee3-d5d059ff63e0
2012-01-31 12:51:31 +00:00
Jean Delvare
2e65243b16 Add 4 PCI IDs for Intel SMBus controllers.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@6015 7894878c-1315-0410-8ee3-d5d059ff63e0
2012-01-24 07:54:35 +00:00
Guenter Roeck
60608958e0 Add detection of GMT G781
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@6014 7894878c-1315-0410-8ee3-d5d059ff63e0
2012-01-23 17:05:21 +00:00
Jean Delvare
4f21a6bbed w83627ehf: Increase default value of Vbat max, the previous default
triggered an alarm on many boards.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@6012 7894878c-1315-0410-8ee3-d5d059ff63e0
2012-01-14 19:56:13 +00:00
Jean Delvare
ffa146909c sensors: Align power values better.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@6011 7894878c-1315-0410-8ee3-d5d059ff63e0
2012-01-13 09:41:36 +00:00
Jean Delvare
cd2ff28d7b sensors: Report thermal sensor type 1 as CPU diode.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@6010 7894878c-1315-0410-8ee3-d5d059ff63e0
2012-01-13 08:48:55 +00:00
Jean Delvare
847dc0b454 Add recent donation of a fanless graphics card by AMD.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@6009 7894878c-1315-0410-8ee3-d5d059ff63e0
2012-01-13 08:24:23 +00:00
Guenter Roeck
f8b6670e56 sensors: Display both instantaneous and average power
Some sensor chips report both instantaneous and average power.
Add support to display both.



git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@6008 7894878c-1315-0410-8ee3-d5d059ff63e0
2012-01-09 18:24:03 +00:00
Guenter Roeck
273102f2c9 Add support for additional sysfs attributes to libsensors and to sensors command
inX_average
inX_lowest
inX_highest
tempX_lowest
tempX_highest
currX_average
currX_lowest
currX_highest




git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@6007 7894878c-1315-0410-8ee3-d5d059ff63e0
2012-01-09 17:30:10 +00:00
Guenter Roeck
19fd8481b7 sensors: Use defines for array sizes
Use defines for array sizes. For alarm attributes, take into account that both
the generic alarm flag as well as individual alarm attributes may be provided
by a driver (even though that should not be the case).

Remove overflow checks from get_sensor_limit_data(), as overflows should
no longer happen.



git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@6006 7894878c-1315-0410-8ee3-d5d059ff63e0
2012-01-09 17:21:08 +00:00
Jean Delvare
2c145550b5 fancontrol: Output error messages to stderr
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@6001 7894878c-1315-0410-8ee3-d5d059ff63e0
2011-12-04 16:54:05 +00:00
Jean Delvare
bd21ec1ee4 fancontrol: Support setup where one PWM output controls several fans
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@6000 7894878c-1315-0410-8ee3-d5d059ff63e0
2011-12-04 16:53:10 +00:00
Jean Delvare
4b809e1ff1 Map IT8728F to driver it87.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5999 7894878c-1315-0410-8ee3-d5d059ff63e0
2011-11-22 10:10:42 +00:00
Jean Delvare
4188c5d234 The LM94 and LM96194 are almost the same chip, and they have the same
device ID.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5998 7894878c-1315-0410-8ee3-d5d059ff63e0
2011-11-08 09:24:16 +00:00
Jean Delvare
4c63be0361 Add detection of National Semiconductor LM96163.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5997 7894878c-1315-0410-8ee3-d5d059ff63e0
2011-11-08 09:10:11 +00:00
Jean Delvare
54a918f846 The Winbond W83527HG has the same chip ID as the W83627DHG-P.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5996 7894878c-1315-0410-8ee3-d5d059ff63e0
2011-11-01 12:38:16 +00:00
Jean Delvare
8536734576 Make LM73 detection less problematic.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5994 7894878c-1315-0410-8ee3-d5d059ff63e0
2011-08-31 08:34:15 +00:00
Jean Delvare
535e73df7a Fix loading of the cpuid module. On non-udev systems, or even on udev
systems where /dev/cpu/0/cpuid is part of the static device node tree,
the previous test would succeed even when the cpuid module isn't
loaded, resulting in missing detections (of coretemp-supported CPU
models in particuler.) Check if the module is loaded by looking in
sysfs instead, this is much more reliable.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5993 7894878c-1315-0410-8ee3-d5d059ff63e0
2011-08-25 19:28:13 +00:00
Jean Delvare
0cc29fa84f Print DMI system/product version if available. On some laptops, the
actual model name is in this string.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5992 7894878c-1315-0410-8ee3-d5d059ff63e0
2011-07-22 08:42:02 +00:00
Jean Delvare
a4bd81d9e2 Improve filtering of fake DMI data.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5991 7894878c-1315-0410-8ee3-d5d059ff63e0
2011-07-22 07:52:46 +00:00
Jean Delvare
b3a1ef71c4 Stop calling for PIIX5 SMBus testers. It's been so long and we never
heard of any user, I'm not even sure if the hardware actually exists.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5989 7894878c-1315-0410-8ee3-d5d059ff63e0
2011-07-22 07:38:03 +00:00
Jean Delvare
bf6aea95d6 Post-release version update.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5988 7894878c-1315-0410-8ee3-d5d059ff63e0
2011-07-21 20:45:44 +00:00
Jean Delvare
796c38a138 Prepare for release.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5986 7894878c-1315-0410-8ee3-d5d059ff63e0
2011-07-21 20:36:42 +00:00
Jean Delvare
28a1677669 Major kernel version number was bumped to 3.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5985 7894878c-1315-0410-8ee3-d5d059ff63e0
2011-07-21 19:38:10 +00:00
Guenter Roeck
60eaad824f Add code to detect LM95245
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5984 7894878c-1315-0410-8ee3-d5d059ff63e0
2011-07-10 19:22:53 +00:00
Guenter Roeck
93213b20cb Add code to detect SA56004.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5983 7894878c-1315-0410-8ee3-d5d059ff63e0
2011-07-08 14:35:37 +00:00
Jean Delvare
499a65fb0c Support for the LM95231 is being added to the lm95241 driver.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5982 7894878c-1315-0410-8ee3-d5d059ff63e0
2011-07-07 09:52:38 +00:00
Jean Delvare
e5bbea3bbc Don't advertise the ipmisensors driver, it doesn't work.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5981 7894878c-1315-0410-8ee3-d5d059ff63e0
2011-07-03 11:57:57 +00:00
Jean Delvare
2b35d4c3e7 Add 4 missing driver references.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5980 7894878c-1315-0410-8ee3-d5d059ff63e0
2011-06-17 15:18:11 +00:00
Jean Delvare
7ed340940c Add detection of ITE IT8772E.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5979 7894878c-1315-0410-8ee3-d5d059ff63e0
2011-06-10 08:14:03 +00:00
Guenter Roeck
ab116c9658 Add detection of MAX6642
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5978 7894878c-1315-0410-8ee3-d5d059ff63e0
2011-06-01 16:20:05 +00:00
Hans de Goede
5b2e1333ed f71882fg detect and sensors.conf.default updates
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5977 7894878c-1315-0410-8ee3-d5d059ff63e0
2011-05-28 09:56:27 +00:00
Hans de Goede
39f0b85e7b sensors-detect: detect the sch5636
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5976 7894878c-1315-0410-8ee3-d5d059ff63e0
2011-05-26 09:56:55 +00:00
Jean Delvare
dcd26eab2d Use standard lm85 default section for SMSC EMC6D103 and EMC6D103S.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5975 7894878c-1315-0410-8ee3-d5d059ff63e0
2011-05-18 12:00:43 +00:00
Jean Delvare
9c6ddf55ef Add a default configuration section for the SMSC EMC6W201.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5974 7894878c-1315-0410-8ee3-d5d059ff63e0
2011-05-18 10:19:36 +00:00