Commit Graph
46 Commits
Author SHA1 Message Date
Jean Delvare e01466d993 New public library function: sensors_get_subfeature(). Applications can
use it to retrieve a specific subfeature by type. While it is slighly
less efficient than looping over sensors_get_all_subfeatures(), it
often makes the application code much more elegant.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4846 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-23 12:30:28 +00:00
Jean Delvare da7b4e48da Introduce a separate type for main features. Make subfeatures map to
the real main feature rather than the first subfeature.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4838 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-23 12:16:50 +00:00
Jean Delvare 65f1d1f1cd Rename subfeature types from *_FEATURE_* to *_SUBFEATURE_*, to better
reflect what they represent.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4837 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-23 12:12:19 +00:00
Jean Delvare 96c914bfda Define a separate structure to represent main features. This allows
for faster main features lookup. One side effect of this change is
that subfeatures can no longer have labels nor be ignored. I do not
think that this is a problem in practice, and actually this makes a
lot of sense.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4834 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-23 12:05:16 +00:00
Jean Delvare bfe337fe76 Store current temperature, voltage and fan values together with
the rest of the subfeatures. This makes the code more simple, and
prepares for current values to be subfeatures like any others (i.e.
they can be missing.)


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4833 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-23 12:02:59 +00:00
Jean Delvare 79086fb7b8 Rename struct sensors_feature_data to sensors_subfeature. This is a
first step towards a clean separation between main features and
subfeatures.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4832 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-23 12:02:22 +00:00
Jean Delvare eba601a964 Split sensors_get_all_features() into two distinct functions, one to
get the list of all main features, and one to get the list of all the
subfeatures of a given main feature. This is a more logical interface for
applications to use. The current implementation is admittedly less than
optimal, because the storage structures weren't meant for it, but this
issue can (and will) be addressed later.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4831 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-23 12:00:59 +00:00
Jean Delvare 5bd020ad92 Scan chip features only once at initialization time, rather than on
each update. The chip list and chip features do not change until
sensors_cleanup() is called, so there's no point in doing the
same work over and over again.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4828 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-21 12:15:18 +00:00
Jean Delvare 49649fcf05 Restore support for beeps.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4827 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-20 21:24:12 +00:00
Jean Delvare 36ded1b5fc Restore support for alarms.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4825 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-20 21:22:42 +00:00
Jean Delvare 071e4a8008 Rename a few variables to something that makes more sense.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4824 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-20 16:22:13 +00:00
Jean Delvare 2837b67281 Delete unused formatting functions.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4818 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-19 15:12:58 +00:00
Jean Delvare 2e773670b8 Add generic chip support to sensord, much like sensors has.
Alarm and beep mask support is still missing.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4817 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-19 15:11:34 +00:00
Jean Delvare 7d049ef600 Drop all the chip-specific support from sensord.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4805 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-18 20:37:36 +00:00
Jean Delvare bf9d0e2de6 Drop DataType_mhz, libsensors doesn't support this kind of feature.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4804 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-18 20:26:28 +00:00
Jean Delvare 8c817feaca Stop including obsolete header files.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4803 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-18 20:19:26 +00:00
Jean Delvare 6c8dde0740 Add missing w83627ehf in9.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4284 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-01-06 22:38:37 +00:00
Jean Delvare ddd9ba2baf sensord: Add support for the k8temp driver and for the voltage inputs
of the w83627ehf driver. Patch from Dave Platt.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4281 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-01-06 08:49:59 +00:00
Jean Delvare 5d9df247af Add support for the w83627dhg. Original patch by David Holl.
This closes ticket #2157.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4265 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-12-18 12:22:35 +00:00
Jean Delvare aea173b9cd Add vt1211 support to sensord. Original patch from ticket #2150.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4248 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-12-02 15:51:46 +00:00
Jean Delvare cfded02305 Drop outdated (and not particularly relevant) comment.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4247 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-12-02 15:36:46 +00:00
Jean Delvare 6b5b092e9c libsensors: Add support for the pc87247 driver (fans only).
sensord: Add pc87247 support (fans only).
sensors: Add pc87247 support (fans only).
sensors-detect: Advertise the upcoming pc87427 driver.
Thanks to Amir Habibi at Candelis for setting up a test system.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4196 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-10-06 09:27:56 +00:00
Jean Delvare 0e3ba1d1a1 Add support for the ITE IT8718F Super-I/O chip (prefix: it8718).
Unsurprisingly, it is very similar to the IT8716F.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4089 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-08-09 07:20:54 +00:00
Jean Delvare 79817f34ce Add support for the IT8716F (prefix it8716). It is mostly similar to the
IT8712F so there's not much to do. The most significant difference is that
fan speeds are now reported as 16-bit values, without fan clock dividers.
For this reason, I made the fan_divs optional in sensors. I also made the
fans themselves optional, as I noticed that a number of motherboards don't
use (and don't enable) fan3.

I've made a separate section (chip "it8716-*") in sensors.conf.eg, because
new motherboards tend to have different wirings (e.g. negative voltage
lines are not monitored) so this will make for saner defaults.

Thanks to Stian Oksavik for testing.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4083 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-08-03 20:28:20 +00:00
Jean Delvare 001baf0b89 Fix PC87365/PC87366 alarms.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3173 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-11-05 10:24:47 +00:00
Jean Delvare fdbd565ecc Add f71805f support.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3172 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-11-05 09:55:26 +00:00
Jean Delvare 0e2b483b80 Add w83627ehf support. Original code contributed by Greg in
ticket #2098.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3171 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-11-05 09:12:32 +00:00
Jean Delvare e7efcf6578 (Aurelien Jarno) Drop EEPROM support.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3086 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-16 17:54:42 +00:00
Jean Delvare 88a2dc7c95 Support pc87360. Patch from Henrik Brix Andersen.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3055 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-08-15 17:03:19 +00:00
Mark D. Studebaker 445d480ea0 add 637HF support. Ticket #1993.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3022 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-06-16 15:32:46 +00:00
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 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 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 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 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
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 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
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