Commit Graph
39 Commits
Author SHA1 Message Date
Jean Delvare ea7211cf37 Support the separate it8712 prefix. Patch from Aurelien Jarno.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2922 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-03-06 22:19:40 +00:00
Mark D. Studebaker aa78c77b09 add 627THF support. Ticket 1858.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2881 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-01-29 22:33:18 +00:00
Jean Delvare ef5c0563b8 Patch from Aurelien Jarno:
Please find attached a patch to support the sis5595 with the new 2.6
driver. It should also add support for displaying in4 with a 2.4 kernel.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2869 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-01-26 21:01:45 +00:00
Jean Delvare 9f356f90dc Patch from Aurelien Jarno:
Since version 2.9.0, the loadavg in sensord is not scaled anymore. The
manpage has not been modified in consequence, so please find below a
patch to do that.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2843 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-01-12 18:55:59 +00:00
Jean Delvare 36ac2e21db Patch from Aurelien Jarno:
On 2.6 kernels the sensors informations are in /sys and not /proc.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2832 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-01-06 18:48:32 +00:00
Jean Delvare 007f9a9d30 Patch by Aurelien Jarno:
The problem is that the library returns a negative number if there is an
error, and the error numbers in the .h files are not negative. Thus one
of the operand of the comparison should be negated.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2831 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-01-05 21:44:57 +00:00
Jean Delvare ac53193d98 Do not scale load average. Patch by Aurelien Jarno.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2747 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-10-26 20:27:37 +00:00
Mark D. Studebaker e4790ad057 remove my email address
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2646 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-07-24 18:58:56 +00:00
Jean Delvare e7e4c799da Implement "make user_uninstall". Original patch contributed by
Rudolf Marek.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2604 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-06-20 14:18:28 +00:00
Jean Delvare 27ea76ac87 Add ASB100 support. Patch by Andrew May.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2527 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-05-12 20:05:14 +00:00
Jean Delvare 16628b5165 Patches by Aurelien Jarno:
I found a small bug in sensors and sensord when used with a w83781d
chip. On this chip the alarms for temp2 and temp3 are merged. However
that is not handled in sensors and sensord.

Please find attached two patches to fix that, one concerning sensors and
the other one concerning sensord.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2511 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-05-08 12:24:16 +00:00
Jean Delvare 6ac599754a New --rrd-no-average parameter.
Syncronize time slots with rrd.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2503 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-05-01 19:18:53 +00:00
Jean Delvare fc0c6e324b Rename variables for consistency.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2384 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-03-21 16:47:43 +00:00
Jean Delvare 434874ba7d Support it87 in7 and fan3. Patch by Aurelien Jarno.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2381 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-03-21 10:35:49 +00:00
Jean Delvare 085c52d0ae --rrd-cgi used instead of --rrd-file in an example.
Patch by Aurelien Jarno.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2355 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-03-14 19:15:55 +00:00
Jean Delvare 3957bad83f Prevent null pointer dereference. Reported by Tim Toohey.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2346 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-03-08 18:03:42 +00:00
Mark D. Studebaker 64aeb747a4 remove -o and -g args to install
Date: Thu, 18 Dec 2003 22:42:36 +0100
From: Haakon Riiser <haakon.riiser@fys.uio.no>
To: sensors@Stimpy.netroedge.com
Subject: lm_sensors 2.8.2 / DESTDIR / root

The reason for this email is that I always try to avoid running
Makefiles as root, even during 'make install'.  Therefore, I
always use the DESTDIR feature, when it's available.  Until today,
I always built i2c and lm_sensors by doing

  $ make
  $ make -i install DESTDIR=/foo
  $ cd /foo && su root && fix permissions/ownership && install

The -i flag to make install is a kludge to avoid having to be root
while installing to the DESTDIR, and it's only required because
the files are installed with "-o root -g root".  Using the -i
flag is of course not a good idea, since more fatal errors can
easily fly by undetected.

Today, I upgraded to Linux 2.6.0, and tried a similar install
procedure for lm_sensors, except that the make target is now "user"
and the install target is "user_install".  I now noticed that the
DESTDIR variable is not used everywhere in "user_install", so I
couldn't use the -i kludge anymore.  Instead, I wrote a patch that
removes the "-o root -g root" arguments to install everywhere, and
I also tried to add DESTDIR to all files/directories installed.
(The patch only applies to lm_sensors, not i2c, since only
lm_sensors is required in Linux 2.6.0.)

There's really no reason to say -o root -g root anyway, since if you
do install directly with make install, you have to be logged in as
root, and then the files will get the right ownership by default.
Much of the point of installing to a temporary DESTDIR is that you
don't have to be root, and that you can prepare the installation
by hand.  Fixing the ownership is trivial:

  chown -R root.root $DESTDIR


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2189 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-12-23 23:13:38 +00:00
Jean Delvare 5c4b5f75d5 rpath patch by Joerg Dorchain <joerg@dorchain.net>.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2185 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-12-16 19:59:50 +00:00
Jean Delvare b1c4ef69cf Remove ddcmon support. Was broken, and what's the point in
monitoring constant values anyway?


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2082 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-11-21 20:19:08 +00:00
Jean Delvare 08e0c2ad5d Update rrdtool URI.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1955 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-08-11 08:47:15 +00:00
Jean Delvare 7ca0527e08 Add support for IT87 (patch by Mike Black <mblack@csi-inc.com>)
Fix support of ADM1025


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1921 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-07-29 15:59:51 +00:00
Jean Delvare 330d7d26fb Warning removal.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1920 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-07-29 15:10:18 +00:00
Mark D. Studebaker 0948e17ee9 add new build targets 'user' and 'user_install'.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1822 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-28 20:04:51 +00:00
Merlin Hughes 1527dd254f MH: Put sanity limits in the Round Robin Database upon creation:
-25 <= voltage <= 25
  0 <= RPM <= 12000
  0 <= temp <= 250
  0 <= MHz
Prevents spurious sensor readings from skewing graphs (too much).


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1566 7894878c-1315-0410-8ee3-d5d059ff63e0
2002-10-23 14:51:54 +00:00
Merlin Hughes 34626e2061 Fix support for some chips, add support for some chips.
-mh


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1476 7894878c-1315-0410-8ee3-d5d059ff63e0
2002-07-31 17:29:23 +00:00
Merlin Hughes 8d29ce56b5 and then close the file
-mh


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1475 7894878c-1315-0410-8ee3-d5d059ff63e0
2002-07-31 14:27:49 +00:00
Merlin Hughes 0434eba357 Update to support logging of the load average to the round-robin
database.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1474 7894878c-1315-0410-8ee3-d5d059ff63e0
2002-07-31 14:20:29 +00:00
Merlin Hughes 24d3dbac9c Fix RRD support to constrain sensors labels to [0-9A-Za-z_].
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1473 7894878c-1315-0410-8ee3-d5d059ff63e0
2002-07-31 12:58:32 +00:00
Merlin Hughes ae252b5901 mh: initialize ret to 0, thanks to Christian Hammers <ch@westend.com> for
noticing


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1389 7894878c-1315-0410-8ee3-d5d059ff63e0
2002-06-10 17:56:16 +00:00
Merlin Hughes 1fb2fb31cb mh: sensord is only built if PROG_EXTRA:=sensord is specified.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1359 7894878c-1315-0410-8ee3-d5d059ff63e0
2002-04-28 14:26:07 +00:00
Merlin Hughes da09ec0eba Added RRD support to sensord; can automatically create
/configure database based on detected/configured sensors,
logs libsensors-processed readings to the database, has a
command-line option for generating a basic rrdcgi script.
Removed sensord from all target because it has an external
dependency on librrd.

This just makes using RRD with sensors easier; you don't
need to figure out what sensors are available and configure
the database with computations that are already in
sensors.conf.

To install:
make install-prog-sensord

To create and start logging to database:
sensord --rrd-file /var/log/sensord.rrd

To create a CGI script:
sensord --rrd-file /var/log/sensord.rrd \
  --rrd-cgi /var/www/sensord \
  > /usr/lib/cgi-bin/sensord.cgi

man sensord for more details.

Kudos to Mark for doing the hard work ;}

-- merlin


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1357 7894878c-1315-0410-8ee3-d5d059ff63e0
2002-04-28 00:21:49 +00:00
Merlin Hughes 1d1859040b Added -p/--pid-file option to write a PID file for the daemon and
-d/--debug option to allow unwanted information to be more easily
suppressed. Kicked version to 0.5.0. -- merlin@merlin.org


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1024 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-02-11 18:51:24 +00:00
Merlin Hughes b5cce87d51 missed IN6 from w83782d.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@836 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-07-07 16:31:05 +00:00
Merlin Hughes bc41905095 Updated so that sensord will syslog alarm occurrences at level
ALERT so you can pick them up in syslog.conf and fire them to
the console, etc. Added support for scanning only for alarms
in addition to scanning regular values, etc. Updated the man
file to reflect the new options, etc. Operation as "sensors"
command is undocumented.
-- merlin


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@835 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-07-07 16:23:17 +00:00
Merlin Hughes ae68e2238c Made a few changes to nonstandard sensord:
. added support for via686a and other new chips
. added support for alarms and beeps
. updated to log through syslog instead of a custom logfile
. updated so when run as "sensors" (ln -s sensord sensors) it
  mimics the existing sensors command except for formatting
. modularized a bit
Yet to do:
. complete support for alarm checking without sensor logging
. signal alarms through syslog level ALERT
. add final support for multivalued alarms
. check up on some questions about existing sensors command
. update manual page inc. notes on syslog usage
. test more fully
-- merlin


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@828 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-07-02 22:49:34 +00:00
Mark D. Studebaker f16d591d45 (mds) -Wall cleanup.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@732 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-02-07 03:16:03 +00:00
Frodo Looijaard 7e0cd89eec Fixed a small bug - return code not returned.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@703 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-01-23 21:32:31 +00:00
Frodo Looijaard 01bad38253 Added DESTDIR Makefile variable
Set DESTDIR if you want to install at some other place then where you
will run everything from.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@675 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-12-24 19:52:28 +00:00
Merlin Hughes 8e5830460f (Merlin) Added simple sensord sensory logging daemon. Not installed by
default. Now uses libsensors. Ripped the display formatting code from
sensors (with some modification) but needless to say I've only tested
a single chip. Doesn't support alarms yet. With a bit of work, could
share the display formatting code with sensors so just one source needs
updating. Compiles on my machine.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@661 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-12-03 00:48:25 +00:00