Jean Delvare
b665a55272
Update hardware status.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5731 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-06-06 09:16:18 +00:00
Jean Delvare
ee26e6d2b0
From Yuriy Kaminskiy:
...
Most filesystems (in particular - reiserfs, jfs, xfs, nfs); maybe,
some legacy installation of ext2/3 too) always return dirent->dt_type =
DT_UNKNOWN, so libsensors fails to parse /etc/sensors.d.
Also, symlink (DT_LNK) can point to directory, or FIFO/socket/device
(very bad!) - current check insufficient anyways.
Fixed by always using stat() to check what each entry is, rather than
relying on dirent->dt_type.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5730 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-06-05 15:17:29 +00:00
Hans de Goede
eb25257655
sensors-detect: Update Fintek F71858FG driver info
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5729 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-06-02 13:51:29 +00:00
Hans de Goede
dc6b2b73b2
sensors-detect: Add Fintek F71889FG detection
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5728 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-06-02 13:50:27 +00:00
Jean Delvare
019db74670
Add Winbond/Nuvoton W83627DHG-P and W83627UHG detection.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5726 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-05-19 07:36:06 +00:00
Andre Prendel
8a53c5bc31
Update CHANGES file due to recent updates in sensord.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5725 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-05-14 07:28:51 +00:00
Andre Prendel
73911c4c93
sensord: Refactoring of the rrdInit() function.
...
* Fix deep indentation levels
* Return with unique error code (-1)
* Rename buffer for struct stat from tmp to sb.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5724 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-05-13 16:13:41 +00:00
Andre Prendel
13dc7c0232
Replace the deprecated signal() function by sigaction().
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5723 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-05-13 16:11:57 +00:00
Andre Prendel
f5aaeec448
sensord: This patch does some refactoring of the loadConfig()
...
function.
* Simplifying the conditions makes code flow clearer and eliminates
long lines (> 80 chars).
* Removed useless stat() call.
* Return -1 in error case, instead of several positive values (never defined).
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5722 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-05-13 16:09:06 +00:00
Andre Prendel
b5375e4344
sensord: Did some refactoring in parseChips(). This fixes some deep indentation
...
levels.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5721 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-05-13 16:07:50 +00:00
Andre Prendel
d71ed51702
sensord: Removed useless breaks after some exit() calls.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5720 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-05-13 16:06:17 +00:00
Andre Prendel
49344ef205
sensord: Introduce struct sensord_args.
...
This structure encapsulate all the variables holding the commandline
arguments. So we get rid of plenty of extern variables. This reduces
namespace collisions and unifies access.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5719 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-05-13 16:04:51 +00:00
Andre Prendel
b42461426d
sensord: Remove the hidden commandline interface.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5718 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-05-13 16:03:23 +00:00
Jean Delvare
dee604c8e9
Add support for absolute path to hwmon devices.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5717 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-05-09 11:43:06 +00:00
Jean Delvare
819d7239c1
F71862FG is supported by driver f71882fg since kernel 2.6.29.
...
Reported by Mark Wagner.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5715 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-05-08 08:37:41 +00:00
Andre Prendel
3e310f8a8f
libsensors: Take into account distribution LDFLAGS (Patch from Didier Roche).
...
From: Didier Roche <didrocks@ubuntu.com >
Hi lm-sensors developer,
It would be great if lm-sensors can take into account distribution
LDFLAGS so that exported variables change linker behavior.
For instance, ubuntu uses -Wl,-Bsymbolic-functions. Taking this patch
will enable us to just sync from debian on this package.
In Ubuntu, we've applied the attached patch to achieve the following:
* handle default ubuntu LDFLAGS for linking option (LP: #321632 )
- Remove the old hack directly pushed in lib/Module.mk (now
lib/Module.mk if from pristine source)
- add debian/patches/07-use-LDFLAGS.patch to take LDFLAGS into account
Debian and Ubuntu thought you might be interested to handle this
directly upstream.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5713 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-04-28 11:54:40 +00:00
Jean Delvare
dc4d5bb286
Drop unused default rule.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5712 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-04-28 11:53:36 +00:00
Jean Delvare
2ea3bf392b
Make it possible to skip building of the static library. Just run:
...
make BUILD_STATIC_LIB=0
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5711 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-04-20 09:18:06 +00:00
Jean Delvare
e0ad43a545
Include generated source files in dependency checking.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5710 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-04-20 08:42:11 +00:00
Jean Delvare
3e78f8323b
Use geteuid instead of getuid so that setuid bit works.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5709 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-04-19 07:16:40 +00:00
Jean Delvare
7fd91785d4
Add National Semiconductor LM95241 detection.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5708 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-04-06 17:05:54 +00:00
Jean Delvare
f7464553bd
Add Nuvoton W83795G/ADG detection. Original patch from Wei Song (Nuvoton).
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5684 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-03-13 08:41:19 +00:00
Jean Delvare
f0492a9095
Refactor dmidecode version check into a separate function.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5683 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-03-12 17:15:13 +00:00
Jean Delvare
d7d67ccf14
Strip stray backslash.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5682 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-03-12 16:47:11 +00:00
Jean Delvare
3fce211736
Use dmidecode to find IPMI interfaces if available. This is required
...
if non-standard address or register width are used. And anyway it is
always better to avoid access to random I/O ports.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5681 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-03-12 16:44:27 +00:00
Jean Delvare
046c76d4a0
Differentiate between PC8374L and WPCD377I. Both chips have the same
...
device ID so we use the revision register to differentiate between
them, using custom detection functions.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5680 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-03-11 21:44:32 +00:00
Andre Prendel
3a002f7487
sensord: Remove leading whitespaces in empty lines.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5679 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-03-10 10:37:41 +00:00
Andre Prendel
e065e827e9
Convert coding style in prog/sensord/ from gnu to kernel style.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5678 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-03-09 15:32:03 +00:00
Jean Delvare
531a6416f2
Display the base I/O address of Super-I/O logical device if it is
...
set, even it the logical device in question is disabled.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5677 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-03-06 09:44:17 +00:00
Jean Delvare
3dc6983a84
Don't use variables when they hurt readability more than they help.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5676 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-03-05 15:20:41 +00:00
Jean Delvare
163cbc2bb7
Add nNidia nForce MCP78S SMBus detection.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5675 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-03-05 09:04:55 +00:00
Andre Prendel
a03ec09359
Use __func__ in sensors_fatal_error() to get function name.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5674 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-03-02 13:07:23 +00:00
Jean Delvare
9d0552984c
Post-release version update.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5673 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-03-01 12:04:23 +00:00
Jean Delvare
edcfa23f50
Update branch reference.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5671 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-02-28 21:00:51 +00:00
Jean Delvare
b9a0b8511f
Prepare for release.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5669 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-02-28 20:55:15 +00:00
Jean Delvare
1141a165ee
Create pid file only after successful initialization.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5668 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-02-28 19:42:51 +00:00
Jean Delvare
45446011ec
Exit if configuration file can't be read.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5667 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-02-28 19:38:22 +00:00
Jean Delvare
144191432b
Map the W83667HG chip to the w83627ehf driver. Support should be
...
available starting with kernel 2.6.30.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5666 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-02-26 16:15:04 +00:00
Jean Delvare
c7eab7030f
Fix segmentation fault when passing a custom configuration file.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5665 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-02-26 14:46:47 +00:00
Andre Prendel
857d25dff4
Create /etc/sensors.d directory during installation. Patch from Gabriel C.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5664 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-02-26 10:03:23 +00:00
Jean Delvare
0ffa44331c
Set library version to 4.1.0.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5663 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-02-25 07:47:13 +00:00
Jean Delvare
8925971f3a
Update.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5662 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-02-25 07:46:14 +00:00
Jean Delvare
c1a066a307
If str(n)dup fails, there is no more memory left. We should exit with
...
"Out of memory". Patch from Andre Prendel.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5661 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-02-20 10:56:52 +00:00
Jean Delvare
0bc948ca6a
Add detection of Winbond WPCD377I (no sensors).
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5660 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-02-19 12:41:05 +00:00
Hans de Goede
244c34b5a7
adjust scan_i2c_adapter() for FSC probe workaround
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5659 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-02-18 21:25:04 +00:00
Hans de Goede
4ca6104c35
sensors-detect: Add detection of FSC Hades and Syleus IC's
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5658 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-02-18 20:31:49 +00:00
Hans de Goede
a7ad8ad9cc
sensors-detect: Add a special case for probing i2c address 0x73 for FSC chips,
...
as at least the Syleus locks up with our regular probe code. Note that to our
current knowledge only FSC chips live on this address, and for them
this probe method is safe.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5657 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-02-18 20:26:20 +00:00
Jean Delvare
680d5515f6
It is not an error if /etc/sensors.d doesn't exist.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5656 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-02-18 10:17:13 +00:00
Jean Delvare
0d394245dc
Update.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5655 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-02-15 20:49:24 +00:00
Jean Delvare
cba60674e5
Document error-related functions.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5654 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-02-15 20:47:33 +00:00