LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 08-08-2004, 09:25 PM   #1
tsw
Member
 
Registered: May 2004
Location: Colorado
Distribution: Mandrake 10 power-pack
Posts: 74

Rep: Reputation: 15
lm_sensors Mandrake 10?


Mandrake 10 official
AMD XP2400
machspeed V2MDMP
512 RAM
kernel: 2.6.3.7mdk


Hello has anyone gotten lm_sensors to work properly with mandrake 10 and the 2.6.3.7 kerenl.

I have done suggested steps many times over. Sensors-detect will detect sensors and I copy the lines it asks to copy over to the rc.d files. However, when I run /usr/bin/sensors -s I get this error:

[root@gusto tsw]# /usr/bin/sensors -s
it87-isa-0290: Can't access procfs/sysfs file for writing;
Run as root?

I am running it as root by the way. What the f is up? And yes my board and cpu have sensor capabilities. AMD or Machspeed (i forget which company) has a windows monitoring program that came with the set. It seems to work well in windoze, I however do not work so well in windows so I would like to get this figured out. Further, according to the lm_sensors home page the km400 chipsets of the mobo have proven to be supported.

From the lm_sensors home page (http://www2.lm-sensors.nu/~lm78/FAQ.txt) I go this information:

4.20 Sensors says 'Can't access /proc file'

(release 2.6.0 and later) Did you 'modprobe i2c-proc'? Check 'lsmod'.
(release 2.5.5 and earlier) Did you 'modprobe sensors'? Check 'lsmod'.
If you did 'sensors -s', did you run it as root?
Do you have /proc support in your kernel (is /proc there?)

The 2.6.3.7mdk kernel has proc support doesn't it? When I tried to 'modprobe i2c-proc' I get the following error:

# modprobe i2c-proc
FATAL: Module i2c-proc not found.

A urpmi search for file names containing 'i2c-proc' returns a healthy list of 2.4.** kernels:

kernel-2.4.25.2mdk
kernel2.4-marcelo
kernel24-tmb-2.4.25-2.tmb.1mdk
etc....

Does this mean that the 'i2c-proc' module is not supported in the mandrake 2.6.** kernels? I really do not have a clue? As you can probably tell.

KSensors is also installed and when ran will read CPU information such as cpu speed, cpu state, and RAM usage, but not CPU TEMP (in which I am most interested) nor will it read CPU VOLTAGE.

If anyone has had any success with this program please enlightenment me. I have hit a brick wall.
Thanks in advance for any assistance.

regards
tsw
 
Old 08-09-2004, 02:45 AM   #2
mdg
Member
 
Registered: Sep 2003
Distribution: Slackware
Posts: 626

Rep: Reputation: 38
Just a thought, check if you have support for proc filesystem enabled in the kernel (File Systems - Pseudo Filesystems - /proc filesystem support)
 
Old 08-09-2004, 03:38 AM   #3
tsw
Member
 
Registered: May 2004
Location: Colorado
Distribution: Mandrake 10 power-pack
Posts: 74

Original Poster
Rep: Reputation: 15
Yeah, I have proc filesystem enabled in kernel. Any other thoughts? What a frustrating little bugger this is.

Then there is also this line that makes no sense to me:

Do you want to generate /etc/sysconfig/lm_sensors? (YES/no): YES
Copy prog/init/lm_sensors.init to /etc/rc.d/init.d/lm_sensors
for initialization at boot time.

The file 'prog/init/lm_sensors.init ' is no where to be found on my machine.

[root@gusto root]# locate lm_sensors.init
[root@gusto root]#

Thanks in advance for any help.

tsw

Last edited by tsw; 08-09-2004 at 03:40 AM.
 
Old 08-09-2004, 07:00 AM   #4
otish1000c
Member
 
Registered: May 2004
Location: Pennsylvania, USA
Distribution: dual boot.... Mandrake 10.0OE/10.xcooker
Posts: 611

Rep: Reputation: 30
i'm using lmsensosrs quite successfully, running MDK10.0, kernel 2.6.3-15. it more depends on your chipset & board than the kernel modules for lmsensors to work properly. you should be able to run it fine with the stock MDK kernel. i think some people get to confused during the detection process & that's where things go wrong. try doing the following & see if you get better result.........

in terminal, as root, run sensors-detect........

answer "yes" to ALL questions during the detection process. don't worry about trying to decipher every little error/failure you might see. that's ok. it's just saying that it tried to use XYZ sensor, but your card don't support that, so it's moving on to the next. choose ISA instead of SMBUS for the final install process. and, where it tells you what to copy & paste sor your sensors config file, ignore that & answer "yes" to where it asks if you want to auto generate /etc/sysconfig/lm_sensors. it will write the proper config automatically without any editing needed on your part.

i forget exactly which sensors i'm using (i'm at work now, so can't check) but i do know that I2C is one of them & it works fine for me with the stock MDK kernel.

i'm running a Soyo Dragon Black mobo, VIA KT400 chipset, AthlonXP 2000+ CPU.

otis
 
Old 08-09-2004, 07:47 AM   #5
amosf
Senior Member
 
Registered: Jun 2004
Location: Australia
Distribution: Mandriva/Slack - KDE
Posts: 1,672

Rep: Reputation: 46
I haven't tried real hard lately, but I used to have lm_sensors working on this box a distro or two ago, but lately haven't had much luck. Compiled the 2.6.7 kernel and included all needed modules as far as I can tell, but it always gives sensors not found message... sensors-detect runs through fine and seems to find the via and all, but still doesn't work in the end... Must look harder when I get time, but really don't need it all that much so haven't worried.
 
Old 08-09-2004, 05:46 PM   #6
tsw
Member
 
Registered: May 2004
Location: Colorado
Distribution: Mandrake 10 power-pack
Posts: 74

Original Poster
Rep: Reputation: 15
Thanks for responding. Here is a bit of an update and where I have gotten with this problem. Sadly not nery far...

A google search for i2c-proc gave me this:

http://www.ussg.iu.edu/hypermail/lin...05.3/1639.html

It seems that this module is no longer a separate compile option in the 2.6.** kernels. So this leads me to believe that the main problem as to why the program will not respond is this:

[root@gusto tsw]# /usr/bin/sensors -s
it87-isa-0290: Can't access procfs/sysfs file for writing;
Run as root?

Since the sensor cannot access the proper files there is no way for it to report what is going on with the machine. I have tried changing permissions for /proc and /sys ( where sysfs is mounted ) however these changes do not take effect.

Might anyone have an idea how I can configure either /proc or /sys to be writable? Or perhaps this is not the issue?

Thank you,

tsw
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help with lm_sensors slinky2004 Linux - Software 2 09-10-2005 08:32 PM
Mandrake 10 Kernel 2.6 - lm_sensors? martinreichl Mandriva 4 04-16-2004 08:30 PM
lm_sensors help malvu Linux - Software 7 05-04-2003 09:13 AM
editing lm_sensors Makefile for Mandrake rose_bud4201 Linux - Software 13 02-04-2003 08:05 PM
lm_sensors...anyone got it working with Mandrake 9.0? discipledoc Linux - Software 3 01-20-2003 01:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 03:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration