Jean Delvare
f69dbc887a
Report unsupported Access Bus adapters, as we already do for SMBus.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5753 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-07-09 20:05:17 +00:00
Jean Delvare
a3eb98b8db
Clean up the discovery of i2c adapters, their parent and their
...
attributes in sysfs. Make references to i2c-adapter class less
specific, as this class is eventually going away.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5752 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-07-09 12:54:49 +00:00
Andre Prendel
e41a22eb4e
sensors-detect: Refer to tmp401 driver if TMP411 is detected
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5751 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-07-07 05:57:03 +00:00
Jean Delvare
6ff7f5e25b
Exit immediately if not root.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5749 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-07-03 19:37:22 +00:00
Jean Delvare
78f496ca62
libsensors: New method to free the memory allocated for the internal
...
representation of chip names.
sensord, sensors: Fix a memory leak when one or more chip names are
provided on the command line.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5740 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-06-20 10:04:52 +00:00
Jean Delvare
ef2f2c04ce
Use the "daemon" logging facility instead of "local4" by default.
...
Local facilities are meant for local uses, no daemon should use it by
default.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5737 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-06-11 17:39:48 +00:00
Jean Delvare
8eeb9081a8
Optimize CGI generation code a bit.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5736 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-06-09 12:44:44 +00:00
Jean Delvare
a5bb03f300
Disable unit scaling for fan speeds. We want fan speed to be reported as
...
3000 RPM, not 3.0 kRPM.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5735 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-06-09 12:22:11 +00:00
Jean Delvare
098ae6d2e5
Don't use the system log when generating a CGI script. This is is
...
normally done by a human on a console, rather than in the background,
so the system log isn't where people would look for error messages.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5734 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-06-09 12:19:53 +00:00
Andre Prendel
cae8b2a1e7
sensord: Fix build error.
...
This is caused by a missing file (prog/sensord/args.h) in commit:
r5719 sensord: Introduce struct sensord_args.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5732 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-06-09 08:02:49 +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
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
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
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
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
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
70de907670
Do not include in the driver list the PCI and USB drivers which are
...
autoloaded by the system. Excluding them avoids unnecessary attempts to
load already loaded drivers and also helps with device numbering
stability (#2368 ).
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5635 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-02-04 09:58:07 +00:00
Jean Delvare
e675ad35c9
Removed trailing semicolon in error string. Patch from Andre Prendel.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5632 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-01-29 09:45:25 +00:00
Jean Delvare
b0f50d0788
Drop stray references to procfs interface.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5631 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-01-29 08:58:36 +00:00
Jean Delvare
ea854deb03
Drop support for kernels 2.4 and earlier.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5630 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-01-29 08:28:17 +00:00
Jean Delvare
334c9446f5
Don't round temperature values.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5629 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-01-29 08:13:47 +00:00
Jean Delvare
6ed5aa3a0a
Consistently use "err" as the variable name to carry error codes.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5628 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-01-28 13:16:17 +00:00
Jean Delvare
496b15a644
Fix exit code in error case (for example no sensors found.) Patch from
...
Andre Prendel.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5627 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-01-28 13:10:21 +00:00
Jean Delvare
98b23f8627
Drop support for kernels 2.4 and earlier.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5622 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-01-26 15:19:28 +00:00
Jean Delvare
f7a5feaaf4
Include a sample conversion script to address the configuration file
...
format change (#2246 ).
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5621 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-01-26 15:16:03 +00:00
Jean Delvare
b1b2c6897d
Support new format of /etc/sysconfig/lm_sensors ( #2246 ).
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5620 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-01-26 15:07:51 +00:00