Re: [gentoo-user] Sensors and 2.6 kernels

2004-02-08 Thread Kevin Hanson
Grendel wrote:

On Sun, 8 Feb 2004, Arne Vogel wrote:

 

Grendel wrote:

   

If you have loaded them then you should get the inrromation, just type 
/usr/bin/sensors and tell us the output. Please tell your motherboard 
model as well. Also make sure that you have the latest 2.8.3 IIRC version 
of the lm_sensors userspace tools.

 

It's lm-sensors (with hyphen, not underscore). At least in Portage!
   

http://secure.netroedge.com/~lm78/archive/lm_sensors-2.8.4.tar.gz

No, the tarball and the source all have the underscore, so maybe this is a 
gentoo specific thing.

Bye,
grendel
 

ebuilds are gentoo specific.  When you emerge something in portage, it 
uses the ebuild name.  Has nothing to do with the name of the source 
files or tarball.

If you want to find something that you don't know how to "spell" for 
portage, try emerge -s.

--
[EMAIL PROTECTED] mailing list


Re: [gentoo-user] Sensors and 2.6 kernels

2004-02-08 Thread Grendel
On Sun, 8 Feb 2004, Arne Vogel wrote:

> Grendel wrote:
> 
> >If you have loaded them then you should get the inrromation, just type 
> >/usr/bin/sensors and tell us the output. Please tell your motherboard 
> >model as well. Also make sure that you have the latest 2.8.3 IIRC version 
> >of the lm_sensors userspace tools.
> >  
> >
> It's lm-sensors (with hyphen, not underscore). At least in Portage!

http://secure.netroedge.com/~lm78/archive/lm_sensors-2.8.4.tar.gz

No, the tarball and the source all have the underscore, so maybe this is a 
gentoo specific thing.


Bye,
grendel

-- 
Hi, I'm a signature virus. plz set me as your signature and help me spread
:)

--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Sensors and 2.6 kernels

2004-02-08 Thread Arne Vogel
Grendel wrote:

If you have loaded them then you should get the inrromation, just type 
/usr/bin/sensors and tell us the output. Please tell your motherboard 
model as well. Also make sure that you have the latest 2.8.3 IIRC version 
of the lm_sensors userspace tools.
 

It's lm-sensors (with hyphen, not underscore). At least in Portage!

--
[EMAIL PROTECTED] mailing list


Re: [gentoo-user] Sensors and 2.6 kernels

2004-02-06 Thread Ernie Schroder
On Friday 06 February 2004 06:39 pm, Peter Ruskin wrote:
> On Friday 06 Feb 2004 23:21, Ernie Schroder wrote:
> > Peter,
> > I don't seem to have a /sysfs Is this a kernel option? If
> > so where?I do see a seemingly unrelated SYSV_FS
>
> It's called /sys.
>
> I think that got installed with the 2.6 kernels.  If you have
> gkrellm2 that should find the sensors as well.
>
> Peter


Thanks Peter. I actually figured that out all by myself not too long 
after my last post. I then checked back in the archives and found the 
script you shared on 12/26/03 and modified that for my Asus A7N8X. It 
needs some more work and I have to autoload the modules but it works. 
Thanks.
When I have the bugs worked out I'll post the script.
-- 
Regards, Ernie
100% Microsoft and Intel free


--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Sensors and 2.6 kernels

2004-02-06 Thread Peter Ruskin
On Saturday 07 Feb 2004 00:03, Grendel wrote:
> Well, the 2.6 kernels includes all the latest i2c modules, so you
> will need only the i2c userspace tools.
>
> This is generic instructions.
> Download lm_sensors-2.8.3.tar.gz and extract it, cd into the
> directory, type
> make user && make user_install
>
> Now please make sure sysfs is mounted,
> I had to load these modules
> i2c-nforce2
> w83781d
>
> to acess the sensors on the Asus a7n8x
>
> Now run sensors
> and you should get a listing.

Thanks for the tip.  I visited 
http://secure.netroedge.com/~lm78/download.html and read the advice 
there that I needed lm_sensors CVS for my IT87 chip (they advise 
against 2.8.3 for that chip).

I grabbed and built CVS but it gave me the same lousy results (the 
negative voltages are really crazy) as I experienced with 2.7.0 on a 
2.4 kernel.

I did `make uninstall`.  I'll stick with my previous setup.

Peter
-- 
==
Gentoo Linux: Portage 2.0.49-r20kernel-2.6.2
i686 AMD Athlon(tm) XP 3200+KDE: 3.1.5 Qt: 3.2.3 gcc(GCC): 3.2.3
==


--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Sensors and 2.6 kernels

2004-02-06 Thread Manuel McLure
Grendel wrote:
On Fri, 6 Feb 2004, Manuel McLure wrote:


Here's my lsmod:
ulthar root # lsmod
Module  Size  Used by
eeprom  6216  0
via686a18248  0
i2c_sensor  2368  2 eeprom,via686a
i2c_isa 1664  0
i2c_viapro  5900  0
i2c_core   18948  5 eeprom,via686a,i2c_sensor,i2c_isa,i2c_viapro


It seems you are missiong the lm80 driver...you have all the necessary 
modules except the lm80, so please try 
modprobe lm80
and now see...

IIRC Thse are the modules you need for your motherboard

modprobe i2c-viapro
modprobe i2c-isa
# I2C chip drivers
modprobe lm80
modprobe eeprom
modprobe via686a


As you see, none of the via686a sensors are in the listing.


I think this is because of the lm80 not present

Bye,
Grendel
lm80 hasn't been ported to 2.6 yet. But I figured it out, see
my other reply to the list.
--
[EMAIL PROTECTED] mailing list


Re: [gentoo-user] Sensors and 2.6 kernels

2004-02-06 Thread Grendel
On Fri, 6 Feb 2004, Manuel McLure wrote:

> 
> OK... I found info on the lm-sensors homepage - seems that you can't 
> load both i2c_viapro and via686a at the same time under 2.6.1 (even 
> though sensors-detect recommends it). If I leave i2c_viapro off the list 
> then things work.

Ahh..I see...anyway great that you got it to work :-)

Grendel.

Hi, I'm a signature virus. plz set me as your signature and help me spread
:)

--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Sensors and 2.6 kernels

2004-02-06 Thread Grendel
On Fri, 6 Feb 2004, Manuel McLure wrote:

> Here's my lsmod:
> ulthar root # lsmod
> Module  Size  Used by
> eeprom  6216  0
> via686a18248  0
> i2c_sensor  2368  2 eeprom,via686a
> i2c_isa 1664  0
> i2c_viapro  5900  0
> i2c_core   18948  5 eeprom,via686a,i2c_sensor,i2c_isa,i2c_viapro


It seems you are missiong the lm80 driver...you have all the necessary 
modules except the lm80, so please try 
modprobe lm80
and now see...

IIRC Thse are the modules you need for your motherboard

modprobe i2c-viapro
modprobe i2c-isa
# I2C chip drivers
modprobe lm80
modprobe eeprom
modprobe via686a


> As you see, none of the via686a sensors are in the listing.


I think this is because of the lm80 not present

Bye,
Grendel

-- 
Hi, I'm a signature virus. plz set me as your signature and help me spread
:)

--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Sensors and 2.6 kernels

2004-02-06 Thread Manuel McLure
Manuel McLure wrote:
Grendel wrote:

On Fri, 6 Feb 2004, Manuel McLure wrote:


Peter Ruskin wrote:


On Friday 06 Feb 2004 23:21, Ernie Schroder wrote:


Peter,
  I don't seem to have a /sysfs Is this a kernel option? If so
where?I do see a seemingly unrelated SYSV_FS


It's called /sys.

I think that got installed with the 2.6 kernels.  If you have 
gkrellm2 that should find the sensors as well.


I have /sys mounted, and sensors shows my DIMM EEPROMs, but it fails 
miserably to detect the chipset sensors (even though sensors-detect 
found them)...


 
 
Sorry, but I am confused here, please tell me, did you load the 
modules that sensors-detect advised you to load?
If you have loaded them then you should get the inrromation, just type 
/usr/bin/sensors and tell us the output. Please tell your motherboard 
model as well. Also make sure that you have the latest 2.8.3 IIRC 
version of the lm_sensors userspace tools.


Here's my lsmod:
[SNIP]

and my sensors output:
[SNIP]

As you see, none of the via686a sensors are in the listing.
OK... I found info on the lm-sensors homepage - seems that you can't 
load both i2c_viapro and via686a at the same time under 2.6.1 (even 
though sensors-detect recommends it). If I leave i2c_viapro off the list 
then things work.

--
[EMAIL PROTECTED] mailing list


Re: [gentoo-user] Sensors and 2.6 kernels

2004-02-06 Thread Manuel McLure
Grendel wrote:
On Fri, 6 Feb 2004, Manuel McLure wrote:


Peter Ruskin wrote:


On Friday 06 Feb 2004 23:21, Ernie Schroder wrote:


Peter,
  I don't seem to have a /sysfs Is this a kernel option? If so
where?I do see a seemingly unrelated SYSV_FS


It's called /sys.

I think that got installed with the 2.6 kernels.  If you have gkrellm2 
that should find the sensors as well.
I have /sys mounted, and sensors shows my DIMM EEPROMs, but it fails 
miserably to detect the chipset sensors (even though sensors-detect 
found them)...
 
 
Sorry, but I am confused here, please tell me, did you load the modules 
that sensors-detect advised you to load? 

If you have loaded them then you should get the inrromation, just type 
/usr/bin/sensors and tell us the output. Please tell your motherboard 
model as well. Also make sure that you have the latest 2.8.3 IIRC version 
of the lm_sensors userspace tools.


Here's my lsmod:
ulthar root # lsmod
Module  Size  Used by
eeprom  6216  0
fglrx 201636  9
tulip  43168  0
crc32   3840  1 tulip
amd_k7_agp  5772  1
via686a18248  0
i2c_sensor  2368  2 eeprom,via686a
i2c_isa 1664  0
i2c_viapro  5900  0
i2c_core   18948  5 eeprom,via686a,i2c_sensor,i2c_isa,i2c_viapro
snd_seq_midi6688  0
snd_cs46xx 80708  1
snd_rawmidi20256  2 snd_seq_midi,snd_cs46xx
snd_ac97_codec 59012  1 snd_cs46xx
gameport3584  1 snd_cs46xx
snd_seq_oss31808  0
snd_seq_midi_event  6208  2 snd_seq_midi,snd_seq_oss
snd_seq51472  5 snd_seq_midi,snd_seq_oss,snd_seq_midi_event
snd_seq_device  6600  4 snd_seq_midi,snd_rawmidi,snd_seq_oss,snd_seq
snd_pcm_oss48484  0
snd_pcm86728  2 snd_cs46xx,snd_pcm_oss
snd_page_alloc  9412  2 snd_cs46xx,snd_pcm
snd_timer  21956  2 snd_seq,snd_pcm
snd_mixer_oss  16896  2 snd_pcm_oss
snd47780  12 
snd_seq_midi,snd_cs46xx,snd_rawmidi,snd_ac97_codec,snd_seq_oss,snd_seq_midi_event,snd_seq,snd_seq_device,snd_pcm_oss,snd_pcm,snd_timer,snd_mixer_oss
ntfs   84876  1

and my sensors output:

ulthar root # sensors
eeprom-i2c-0-53
Adapter: SMBus Via Pro adapter at 5000
Memory type:DDR SDRAM DIMM
Memory size (MB):   256
eeprom-i2c-0-52
Adapter: SMBus Via Pro adapter at 5000
Memory type:DDR SDRAM DIMM
Memory size (MB):   256
eeprom-i2c-0-51
Adapter: SMBus Via Pro adapter at 5000
Memory type:DDR SDRAM DIMM
Memory size (MB):   512
As you see, none of the via686a sensors are in the listing.

*  sys-apps/lm-sensors
  Latest version available: 2.8.3.20040202
  Latest version installed: 2.8.3.20040202
  Size of downloaded files: 553 kB
  Homepage:http://www2.lm-sensors.nu/~lm78
  Description: Hardware Sensors Monitoring by lm_sensors
  License: GPL-2
Motherboard is an ABIT KG7

--
[EMAIL PROTECTED] mailing list


Re: [gentoo-user] Sensors and 2.6 kernels

2004-02-06 Thread Grendel
On Fri, 6 Feb 2004, Manuel McLure wrote:

> Peter Ruskin wrote:
> 
> > On Friday 06 Feb 2004 23:21, Ernie Schroder wrote:
> > 
> >>Peter,
> >>I don't seem to have a /sysfs Is this a kernel option? If so
> >>where?I do see a seemingly unrelated SYSV_FS
> > 
> > 
> > It's called /sys.
> > 
> > I think that got installed with the 2.6 kernels.  If you have gkrellm2 
> > that should find the sensors as well.
> 
> I have /sys mounted, and sensors shows my DIMM EEPROMs, but it fails 
> miserably to detect the chipset sensors (even though sensors-detect 
> found them)...
 
 
Sorry, but I am confused here, please tell me, did you load the modules 
that sensors-detect advised you to load? 

If you have loaded them then you should get the inrromation, just type 
/usr/bin/sensors and tell us the output. Please tell your motherboard 
model as well. Also make sure that you have the latest 2.8.3 IIRC version 
of the lm_sensors userspace tools.

Here is a example from my setup...

[EMAIL PROTECTED] grendel]$ sensors
as99127f-i2c-1-2d
Adapter: SMBus nForce2 adapter at 5500
Algorithm: Unavailable from sysfs
VCore 1:   +1.70 V  (min =  +1.57 V, max =  +1.73 V)
VCore 2:   +1.70 V  (min =  +1.57 V, max =  +1.73 V)
+3.3V: +3.26 V  (min =  +3.14 V, max =  +3.46 V)
+5V:   +4.84 V  (min =  +4.73 V, max =  +5.24 V)   ALARM
+12V: +11.73 V  (min = +10.82 V, max = +13.19 V)
-12V: -12.27 V  (min =  -0.00 V, max =  -0.00 V)
-5V:   -4.65 V  (min =  -0.00 V, max =  -0.00 V)
fan1: 7848 RPM  (min =   -1 RPM, div = 2)
fan2: 5443 RPM  (min = 42187 RPM, div = 2)
fan3:0 RPM  (min =   -1 RPM, div = 2)
temp1:  +45.0C  (high =   +60C, hyst =   +60C)
temp2:+33.5C  (high =   +40C, hyst =   +35C)
temp3:  -5.0C  (high =  +800C, hyst =  +750C)
vid:  +1.650 V
alarms:
beep_enable:
  Sound alarm enabled



Grendel,




-- 
Hi, I'm a signature virus. plz set me as your signature and help me spread
:)

--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Sensors and 2.6 kernels

2004-02-06 Thread Manuel McLure
Peter Ruskin wrote:

On Friday 06 Feb 2004 23:21, Ernie Schroder wrote:

Peter,
   I don't seem to have a /sysfs Is this a kernel option? If so
where?I do see a seemingly unrelated SYSV_FS


It's called /sys.

I think that got installed with the 2.6 kernels.  If you have gkrellm2 
that should find the sensors as well.
I have /sys mounted, and sensors shows my DIMM EEPROMs, but it fails 
miserably to detect the chipset sensors (even though sensors-detect 
found them)...

--
Manuel A. McLure KE6TAW <[EMAIL PROTECTED]> 
...for in Ulthar, according to an ancient and significant law,
no man may kill a cat.   -- H.P. Lovecraft
--
[EMAIL PROTECTED] mailing list


Re: [gentoo-user] Sensors and 2.6 kernels

2004-02-06 Thread Grendel
On Fri, 6 Feb 2004, Ernie Schroder wrote:

> On Monday 05 January 2004 10:13 pm, Peter Ruskin wrote:
> > As you may have found out, you can't emerge i2c or lm_sensors if
> > you're running a 2.6 kernel.  This is my experience of hardware
> > monitoring with 2.6.  I hope it may be of some help.
> >
> > From http://lwn.net/Articles/56146/
> >  Improved system monitoring.
> >  ~~~
> >  - lm_sensors.
> >- Shipped in vendors kernels for years, lm_sensors is now part
> > of mainline.
> >  It does however have a different interface. (/sysfs instead
> >  of /proc
> >- http://www.xs4all.nl/~thospel/ASIS/bin/psensors is a handy
> > script for parsing the new sysfs fields.
> >
> > I downloaded psensors and put it in /usr/local/bin and made it
> > executable.


Well, the 2.6 kernels includes all the latest i2c modules, so you will 
need only the i2c userspace tools.

This is generic instructions.
Download lm_sensors-2.8.3.tar.gz and extract it, cd into the directory,
type 
make user && make user_install

Now please make sure sysfs is mounted,
I had to load these modules
i2c-nforce2
w83781d

to acess the sensors on the Asus a7n8x

Now run sensors 
and you should get a listing. 

Bye,
Grendel



 



-- 
Hi, I'm a signature virus. plz set me as your signature and help me spread
:)

--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Sensors and 2.6 kernels

2004-02-06 Thread Grendel
On Fri, 6 Feb 2004, Peter Ruskin wrote:

> On Friday 06 Feb 2004 23:21, Ernie Schroder wrote:
> > Peter,
> > I don't seem to have a /sysfs Is this a kernel option? If so
> > where?I do see a seemingly unrelated SYSV_FS
> 
> It's called /sys.
> 
> I think that got installed with the 2.6 kernels.  If you have gkrellm2 
> that should find the sensors as well.


It is called sysfs, you have to mount it, try
mount -n -t sysfs /sys /sys


-- 
Hi, I'm a signature virus. plz set me as your signature and help me spread
:)

--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Sensors and 2.6 kernels

2004-02-06 Thread Peter Ruskin
On Friday 06 Feb 2004 23:21, Ernie Schroder wrote:
> Peter,
> I don't seem to have a /sysfs Is this a kernel option? If so
> where?I do see a seemingly unrelated SYSV_FS

It's called /sys.

I think that got installed with the 2.6 kernels.  If you have gkrellm2 
that should find the sensors as well.

Peter
-- 
==
Gentoo Linux: Portage 2.0.49-r20kernel-2.6.2
i686 AMD Athlon(tm) XP 3200+KDE: 3.2.0 Qt: 3.2.3 gcc(GCC): 3.2.3
==

--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Sensors and 2.6 kernels

2004-02-06 Thread Ernie Schroder
On Monday 05 January 2004 10:13 pm, Peter Ruskin wrote:
> As you may have found out, you can't emerge i2c or lm_sensors if
> you're running a 2.6 kernel.  This is my experience of hardware
> monitoring with 2.6.  I hope it may be of some help.
>
> From http://lwn.net/Articles/56146/
>  Improved system monitoring.
>  ~~~
>  - lm_sensors.
>- Shipped in vendors kernels for years, lm_sensors is now part
> of mainline.
>  It does however have a different interface. (/sysfs instead
>  of /proc
>- http://www.xs4all.nl/~thospel/ASIS/bin/psensors is a handy
> script for parsing the new sysfs fields.
>
> I downloaded psensors and put it in /usr/local/bin and made it
> executable.

Peter,
I don't seem to have a /sysfs Is this a kernel option? If so where?I 
do see a seemingly unrelated SYSV_FS

-- 
Regards, Ernie
100% Microsoft and Intel free


--
[EMAIL PROTECTED] mailing list



[gentoo-user] Sensors and 2.6 kernels

2004-01-05 Thread Peter Ruskin
As you may have found out, you can't emerge i2c or lm_sensors if you're 
running a 2.6 kernel.  This is my experience of hardware monitoring 
with 2.6.  I hope it may be of some help.

From http://lwn.net/Articles/56146/
 Improved system monitoring.
 ~~~
 - lm_sensors.
   - Shipped in vendors kernels for years, lm_sensors is now part of
 mainline.
 It does however have a different interface. (/sysfs instead
 of /proc
   - http://www.xs4all.nl/~thospel/ASIS/bin/psensors is a handy script
 for parsing the new sysfs fields.

I downloaded psensors and put it in /usr/local/bin and made it 
executable.

CAUTION:  If you get it using a browser with privoxy running, as I did, 
privoxy goes crazy and changes an "open" in that perl script to 
"PrivoxyWindowOpen".  Just change it back and you'll be OK.

I had to install Config::General via CPAN to get the script to work.  
psensors needs a psensors.conf in /etc.  There is is sample (for the 
it87 chip) at the end of psensors.  For other chips you could get the 
appropriate parameters from a sensors.conf for a 2.4 kernel with 
lm_sensors installed.

I have 2 computers, both also using the it87 chip.  For both of them I 
load the sensor in /etc/modules.autoload.d/kernel-2.6 with:
i2c-isa
it87 temp_type=0x1c

I adjusted the "Compute" formula for CPU temperature until it matched 
the BIOS readings.  The others were OK, except those I comment out 
because they are useless for my mainboards.  Here are my 
psensors.confs:

###
# Gigabyte GA-7VT600 1364 mainboard

   format "%8.2f V"



Label VCore
Min  1.7*0.95
Max  1.7*1.05


Label DDR Vtt
Min  1.2
Max  1.6


Label Vcc+3.3V
Min  3.3*0.95
Max  3.3*1.05


Label + 5V
Min  5.0*0.95
Max  5.0*1.05
Compute ((6.8/10)+1)*@


Label +12V
Min  12*0.95
Max  12*1.05
Compute ((30/10)+1)*@

# Negative voltage readings are very unreliable on this board
# (Not given in BIOS)
#   
#   Label -12V
#   Max  -12*0.95
#   Min  -12*1.05
#   Compute -(7.67)*@ -27.36
#   
#   
#   Label - 5V
#   Max  -5*0.95
#   Min  -5*1.05
#   Compute -(56/10)*@
#   

Label SB 5V
Min  5*0.95
Max  5*1.05
Compute ((6.8/10)+1)*@

# Battery voltage always reads zero on this board
#   
#   Label V battery
#   Min  3.3*0.95
#   Max  3.3*1.05
#   


Label System
Hysteresis  20
Max  55


Label CPU
Hysteresis  20
Max  75
Compute (1.722)*@



Label CPU fan
Min  3000
Divisor  2


Label Sys fan
Min  2000
Divisor  2


###
# Gigabyte GA-7VT600 mainboard

   format "%8.2f V"



Label VCore
Min  1.7*0.95
Max  1.7*1.05


Label DDR Vtt
Min  1.2
Max  1.6


Label Vcc+3.3V
Min  3.3*0.95
Max  3.3*1.05


Label + 5V
Min  5.0*0.93
Max  5.0*1.05
Compute ((6.8/10)+1)*@


Label +12V
Min  12*0.95
Max  12*1.07
Compute ((30/10)+1)*@

# Negative voltage readings are very unreliable on this board
# (Not given in BIOS)
#   
#   Label -12V
#   Max  -12*0.95
#   Min  -12*1.05
#   Compute -(7.67)*@ -27.36
#   
#   
#   Label - 5V
#   Max  -5*0.95
#   Min  -5*1.05
#   Compute -(56/10)*@
#   

Label SB 5V
Min  5*0.95
Max  5*1.05
Compute ((6.8/10)+1)*@

# Battery voltage always reads zero on this board
#   
#   Label V battery
#   Min  3.3*0.95
#   Max  3.3*1.05
#   


Label System
Hysteresis  20
Max  55


Label CPU
Hysteresis  20
Max  75
Compute (1.634)