Commit Graph
149 Commits
Author SHA1 Message Date
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
Mark D. Studebaker 09611e791d add support for VRM 10.0
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2600 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-06-19 17:07:40 +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
Mark M. Hoffman e8c33a6575 Fix comment.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2152 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-12-10 05:36:24 +00:00
Mark D. Studebaker 320562a22b don't build module dependencies for user and user_install
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2085 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-11-22 02:32:30 +00:00
Mark D. Studebaker d4c21518ed fix user headers install
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1823 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-28 21:56:08 +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
Mark D. Studebaker 19fc08212d now automatically generated
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1820 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-28 18:49:18 +00:00
Jean Delvare 961e24c578 Trivial warning removal.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1816 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-26 17:06:51 +00:00
Mark D. Studebaker 2a71255c18 clean up makefile so that make will fail if awk fails or isn't present
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1813 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-23 01:11:20 +00:00
Mark D. Studebaker e9c0fce42a adm1026 and auto-sensors.h patch from P.P.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1777 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-08 21:33:39 +00:00
Mark D. Studebaker 7bce574327 get i2c-viapro working again by backporting from
kernel 2.5.69 and adding new sensors_compat.h for the
      drv_dbg(), etc. calls


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1754 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-03 02:05:18 +00:00
Mark D. Studebaker 2436f40201 libsensors support for w83791d; patch from
Ross Biro rossb@google.com


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1741 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-05-31 01:00:23 +00:00
Mark D. Studebaker 1bdaa54d40 add support for AMD Opteron VID encoding
patch from Philip Pokorny


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1738 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-05-30 00:55:23 +00:00
Mark D. Studebaker bd256e9552 lm85 patch from Philip Pokorny <ppokorny@penguincomputing.com>
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1726 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-03-17 02:34:10 +00:00
Kyosti Malkki 1cfe63804a (Kyösti) Cleanups
Copy sysctl enums to chip drivers from sensors.h for now,
   as seen in drivers included in 2.5 tree. File no longer included
   from kernel side.

   Apply i2c-proc change in CVS tagged -km2.

   Partial clean and sort of includes everywhere.

   Add i2c-dev.h, as a partial copy from i2c.
   Add to sensors.h from i2c-proc.h to compile things.
   Remove i2c-isa.h.

   Reflect header file changes to lib/ and prog/.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1705 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-01-21 20:01:27 +00:00
Mark D. Studebaker ca292047a5 BMC sysctl names update
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1605 7894878c-1315-0410-8ee3-d5d059ff63e0
2002-11-16 02:02:44 +00:00
Mark D. Studebaker 7bcd435c4c initial checkin IPMI/BMC support
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1593 7894878c-1315-0410-8ee3-d5d059ff63e0
2002-11-10 19:52:44 +00:00
Mark D. Studebaker 60a30ddb79 1st cut at smart battery driver. untested.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1564 7894878c-1315-0410-8ee3-d5d059ff63e0
2002-10-13 15:48:34 +00:00
Mark D. Studebaker 127249deb6 add multiple VRM support to lm87; patch from
Dave Johnson <ddj@cascv.brown.edu>


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1544 7894878c-1315-0410-8ee3-d5d059ff63e0
2002-09-21 22:09:09 +00:00
Mark D. Studebaker 70055e4121 remove VT8231 support from via686a and move to a new dedicated driver.
This driver is a copy of vt1211, which is almost identical.
     The vt1211 is a super i/o chip and the vt8231 is a PCI chip.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1501 7894878c-1315-0410-8ee3-d5d059ff63e0
2002-08-22 02:15:07 +00:00
Abraham van der Merwe 97d966fb75 Real-time clock driver for Dallas Semiconductor DS1307 chip. This just
provides and API for NVRAM and RTC drivers to sit on top of this. An example
of drivers that uses this API are the Frodo RTC and NVRAM drivers.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1433 7894878c-1315-0410-8ee3-d5d059ff63e0
2002-07-09 12:45:08 +00:00
Abraham van der Merwe 1707919009 Added sysctl values for LM92 driver.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1418 7894878c-1315-0410-8ee3-d5d059ff63e0
2002-07-04 11:35:16 +00:00
Mark D. Studebaker 3e65c375be initial support for Via VT1211 super i/o with sensors
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1409 7894878c-1315-0410-8ee3-d5d059ff63e0
2002-06-30 20:28:08 +00:00
Mark D. Studebaker 37cbcbe5ad add smsc47m1 fan driver
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1397 7894878c-1315-0410-8ee3-d5d059ff63e0
2002-06-16 18:27:35 +00:00
Mark D. Studebaker c382a5ca7a export EDID info to /proc
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1396 7894878c-1315-0410-8ee3-d5d059ff63e0
2002-06-15 17:10:19 +00:00
Mark D. Studebaker e0a1889044 add multiple VRM support to adm1025
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1383 7894878c-1315-0410-8ee3-d5d059ff63e0
2002-06-07 02:58:43 +00:00
Mark D. Studebaker 8edb06b0d1 preliminary programmable VRM version support in w83781d.
Replace VID_FROM_REG() with vid_from_reg() in new sensors_vid.h.
      Update library so it can be set in sensors.conf.
      Add new documentation. Update mkpatch for new file.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1352 7894878c-1315-0410-8ee3-d5d059ff63e0
2002-04-20 02:59:12 +00:00
Mark D. Studebaker 0442f73da9 (mds)
From:        Aurelien Jarno <aurelien@aurel32.net>

Hello,

I have to use the pcf8574 chip with my I2C interface, however, the pcf8574
drivers in lm-sensors is a bit basic. It supposes the pin P1 is used as an
input and the others pin as outputs.

Attached is a patch which corrects that, providing to files in /proc
interface, one for writting, the other for reading. It also modifies a bit
the driver to support the pcf8574a (it is a pcf8574 with a different address
range), and add a documentation file in doc/chips.

The patch also includes some cosmetic changes in the pcf8591 driver I wrote
previously, that is to say it modify the chip name in some places I had
forgotten to change when I made a copy/paste from another driver.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1318 7894878c-1315-0410-8ee3-d5d059ff63e0
2002-02-10 23:15:12 +00:00
Mark D. Studebaker eaf609b21d add /proc entries for bytes 128-255; patch from
Jean Delvare <delvare@ensicaen.ismra.fr>


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1310 7894878c-1315-0410-8ee3-d5d059ff63e0
2002-02-09 16:33:33 +00:00
Philip Edelbrock 4cd4f15116 (Phil) Added a patch from Stephen Davies <steve@daviesfam.org> for
s-video out support and typical DVD resolutions for PAL and NTSC.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1298 7894878c-1315-0410-8ee3-d5d059ff63e0
2002-01-29 19:25:37 +00:00
Mark D. Studebaker 15ff36312c last part of pcf8591 patch
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1245 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-11-20 17:11:20 +00:00
Martin Knoblauch 154edbaa52 (MKN) Add FSCSCY_SYSCTL tokens
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1222 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-11-08 17:17:55 +00:00
Mark D. Studebaker e836047a83 merge it87 separate alarms_* /proc entries to single alarms entry to standardize
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1202 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-10-14 15:18:37 +00:00
Mark D. Studebaker d78cb7b93b Fujitsu Poseidon support from Hermann Jung <hej@odn.de>
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1179 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-09-18 15:20:15 +00:00
Mark D. Studebaker 739a87e785 Apply patch from David Gesswein:
The following patch does the following:

Fixed bug with not all alarms enabled.
Added ability to read battery voltage
Select temperature sensor type at module load time.
Added setting for Inside Technologies 786LCD board to example config file
I also fixed what looked like a typo in the existing it87 section where
in6_min/max was set twice and in7 was not set.  As commented I think
the equation for the negative voltages are wrong but without that motherboard
I can't verify.

With the 786LCD board sensors-detect reports a lm78 which doesn't
exist and a sis5595 which may be part of the SIS630 chip but doesn't
perform the monitoring.  The it8705F/SIS950 which is on the board is
reported as a misdetect.  I didn't know enough about the various chips
to figure out how to get correct detections.

David Gesswein


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1146 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-07-29 00:30:54 +00:00
Mark D. Studebaker 30b9291288 add 12-bit precision mode to ds1621,
patch from Christian Zuckschwerdt:

Hi,

On Fri, 15 Jun 2001, Mark D. Studebaker wrote:

> I looked at the patch and I see there are separate
> /proc entries for the 9 and 12 bit outputs.
> Why not just make the 12 bit output the only output using "temp"??
> I don't understand the need for all the new /proc entries,
> except perhaps for debugging inside #ifdef DEBUG.
> Would you or Jan be willing to develop a patch that way?
> I'm all for increased accuracy as a standard feature - why not?

Ok. I rewrote the patch to support standard (9bit) and enhanced (12bit)
accuracy via the "temp" entry. The "raw" interface is also gone.

There are some quirks needed for the sensors app. It seems that
prog/sensors/chips.c fixes the output to %+3.1f
Thats not good for 12bit mode which gives you 2 decimals and therefor
wrong scaling.

Precision is .062 with 12bit (4 decimal bits) instead of .5 with 9bit (1
decimal bit). That way 2 decimals seem a natural choice.
On the other hand I see no obvious reason not to fix decimals to 1...
I'm lost there -- suggestions anyone?

Another problem is that 12bit is slow and laggy. I don't recommend making
it the default mode.

  cu.
    :
    Christian


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1145 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-07-29 00:17:14 +00:00
Mark D. Studebaker 82c400f76b more it87 stuff
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1122 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-06-05 01:59:26 +00:00
Mark D. Studebaker d431a88833 Initial checkin of adm1024 driver and support in libsensors,
sensors, sensors-detect.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1090 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-05-15 03:18:18 +00:00
Mark D. Studebaker 28e81cce5a fix sis5595 temp alarm bit location
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1065 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-04-09 22:55:19 +00:00
Mark D. Studebaker 18305cfc54 add in4 for sis5595 to library
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1064 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-04-09 22:52:28 +00:00
Mark D. Studebaker b5d014bd46 Disable sensors.c and i2c-isa.h in the Module.mk files.
Leave the files there for now.
      Remove old installed sensors.o in kernel/Module.mk.
      sensors.c was moved to i2c-proc.c in the i2c package.
      i2c-isa.h was appended to i2c.h in the i2c package.
      Delete all but the SYSCTL and ALARMS definitions in sensors.h,
      as the rest of the file was moved to i2c-proc.h in the i2c package.
      Remove #include "i2c-isa.h" lines in all chip drivers and
      in bus driver i2c-isa.c.
      This all probably breaks mkpatch.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1015 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-02-06 02:53:46 +00:00
Philip Edelbrock f592b02b21 (Phil) Wrapped Serverworks OSB4 support into i2c-piix4.c (briefly tested
on both platforms).  LM87 support is very far along, and should work
for a majority of users, but some minor tweaks are still on the to-do list.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@963 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-12-22 19:26:21 +00:00
Mark D. Studebaker ab321d5243 (mds) add lm87 support to 'sensors'. Rename SYSCTL_* values to standard
TEMP[1-3], etc. No fan2 support in driver yet.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@953 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-12-16 17:07:24 +00:00
Mark D. Studebaker bb4b723e68 (mds) add ds1621 driver from Christian Zuckschwerdt (zany@triq.net)
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@935 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-11-26 23:07:17 +00:00
Mark D. Studebaker 4dcb88898c (mds) MTP008 driver patch from Kris Van Hees.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@909 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-10-18 00:34:07 +00:00
Philip Edelbrock 6270f18139 (Phil) Added support for adm1023. Actually, the adm1021 driver worked
perfectly with the adm1023, but didn't take advantage of it's extra precision
for the remote temp sensor. Now, if an adm1023 is detected, it will.

For example, my adm1021 remote_temp looks like this:

phil@penn phil]$ cat /proc/sys/dev/sensors/adm1021*/remote_temp
60 20 23

My 1023 looks like this:

[root@penn lm_sensors2]# cat /proc/sys/dev/sensors/adm1023-i2c-2-2a/remote_temp
60.125 20.250 1.500 20.875

(Both from the same inserted driver)

Notice the extra 3 digit precision (actually, it's in increments of 0.125).
And, also notice the extra 'limit'.  It's actually an offset register.
Right now it's adding 1.5 degrees to the reading for the remote_temp. This
same functionality could easily be done by editing /etc/sensors.conf, but
Analog Devices decided to put it into the chip instead. :')

Things to do: edit the default sensors.conf, and sensors-detect for this
new chip.

Oh, I also added SENSORS_INSMOD_7 into sensors.h.  This was the first
driver to need it, apparently.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@904 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-10-16 01:45:44 +00:00
Dan Eaton 0992d0bc20 (Dan) Added support for PCF8574 I2C bus expander.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@887 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-10-08 20:33:00 +00:00
Philip Edelbrock cc4315029e (Phil) Initial addition of LM87 driver. Compiling testing not done yet,
but will be done very shortly.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@872 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-09-13 23:28:14 +00:00
Mark D. Studebaker 2072a3c9d6 (mds) Add adm1025 driver from Chen-Yuan Wu.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@801 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-05-11 01:35:22 +00:00