Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
lm-sensors with < 2.6.5 kernels
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Rodney
n00b
n00b


Joined: 15 Feb 2004
Posts: 13

PostPosted: Mon Apr 19, 2004 6:58 pm    Post subject: lm-sensors with < 2.6.5 kernels Reply with quote

Okay, most of you probably know this, but I had to figure it out myself, so maybe this will help a few people.

First, even though lm_sensors 2.8.6 is masked in Portage for all but AMD64 (I know, it can be unmasked, but I'd rather not put the package onto my system until the ebuild has been figured out), we can still use the tgz on the website (http://secure.netroedge.com/~lm78/download.html) without installing everything. So here are the steps:

1) Download lm_sensors-2.8.6.tar.gz from here: http://secure.netroedge.com/~lm78/archive/lm_sensors-2.8.6.tar.gz

2) Decompress it somewhere

3) Execute sensors-detect by doing this, where "./" is whatever directory you decompressed the tgz into:
Code:
./lm_sensors-2.8.6/prog/detect/sensors-detect


You may need to have some modules in order for sensors-detect to run properly, if they are not enabled, do step 5 and then return to step 3.

When it says "To load everything that is needed, add this to some /etc/rc* file:",
note the modules that is says to have added. These are the modules that you need to enable in your kernel config in the i2c section.

4) Say "no" when it asks you if you want generate /etc/sysconfig/lm_sensors

5) Exit out, go to /usr/src/linux, enable the proper modules, recompile the kernel, and reboot.

6) Make sure you have gkrellm2, or another compatible sensor program (note that, in my experience, ksensors is NOT compatible with 2.6 kernels).

7) If everything works, you can delete the tarball and the lm_sensors directory.

Let me know if this doesn't work. :)
Back to top
View user's profile Send private message
Little Nemo
l33t
l33t


Joined: 29 Mar 2004
Posts: 623
Location: Berlin, Germany

PostPosted: Mon Apr 19, 2004 7:38 pm    Post subject: Reply with quote

I don't really understand why you hesitate to use the existing ebuild. "emerge /usr/portage/sys-apps/lm-sensors/lm-sensors-2.8.6" worked well on my system, and you have the benefit of having the package adapted to the gentoo system layout. You can start and stop /etc/init.d/lm_sensors, and after "sensors-detect" has detected the sensors for your system, all you need to do is edit /etc/conf.d/lm_sensors just as you would on a non-AMD64-system. I don't think emerging this package installs anything I would not want on my system. Can you explain what's wrong with this approach?

[edit]Oops, sorry, I mis-read your post. lm-sensors-2.8.6 is masked for all but the AMD64. Just the opposite of what I'm used to. My mistake.[/edit]
Back to top
View user's profile Send private message
Carlo
Developer
Developer


Joined: 12 Aug 2002
Posts: 3356

PostPosted: Mon Apr 19, 2004 10:29 pm    Post subject: Reply with quote

Little Nemo wrote:
"emerge /usr/portage/sys-apps/lm-sensors/lm-sensors-2.8.6"

emerge /path/to/ebuild won't add the specific ebuild to world. Don't do this!


Carlo
_________________
Please make sure that you have searched for an answer to a question after reading all the relevant docs.
Back to top
View user's profile Send private message
kallamej
Administrator
Administrator


Joined: 27 Jun 2003
Posts: 4983
Location: Gothenburg, Sweden

PostPosted: Tue Apr 20, 2004 7:01 am    Post subject: Re: lm-sensors with < 2.6.5 kernels Reply with quote

Rodney wrote:
First, even though lm_sensors 2.8.6 is masked in Portage for all but AMD64 (I know, it can be unmasked, but I'd rather not put the package onto my system until the ebuild has been figured out)

I don't think that lm-sensors > 2.8.1 are masked because of problems with the ebuild. It is more a question of not messing up too much for users of 2.4 kernels. There was once an effort to keep stable versions of i2c/lm-sensors matching patches in the current gentoo-sources. However, the updated i2c support was dropped from gentoo-sources 2.4.25. The current situation is that users of gentoo-sources-2.4.22-rx should have a hassle free i2c/lm-sensors experience.
_________________
Please read our FAQ Forum, it answers many of your questions.
irc: #gentoo-forums on irc.libera.chat
Back to top
View user's profile Send private message
cryptodev
n00b
n00b


Joined: 16 Apr 2004
Posts: 53

PostPosted: Thu Apr 22, 2004 7:52 am    Post subject: Reply with quote

When can we expect 2.6.5 non-AMD kernel users to have a hassle free experience?
Back to top
View user's profile Send private message
kallamej
Administrator
Administrator


Joined: 27 Jun 2003
Posts: 4983
Location: Gothenburg, Sweden

PostPosted: Thu Apr 22, 2004 9:08 am    Post subject: Reply with quote

My guess is when 2.6 will be the officially supported kernel version. Nevertheless, I don't think adding
Code:
sys-apps/lm-sensors ~your-arch
to /etc/portage/package.keywords much trouble.
_________________
Please read our FAQ Forum, it answers many of your questions.
irc: #gentoo-forums on irc.libera.chat
Back to top
View user's profile Send private message
cryptodev
n00b
n00b


Joined: 16 Apr 2004
Posts: 53

PostPosted: Thu Apr 22, 2004 3:21 pm    Post subject: Reply with quote

There is no /etc/portage directory, and I searched for the file 'package.keywords' and found nothing. What gives?
Back to top
View user's profile Send private message
MagicMonkey
n00b
n00b


Joined: 17 Dec 2003
Posts: 37
Location: UK

PostPosted: Thu Apr 22, 2004 3:37 pm    Post subject: Reply with quote

cryptodev wrote:
There is no /etc/portage directory, and I searched for the file 'package.keywords' and found nothing. What gives?


You need to create these by hand; portage seamlessly starts using them if they are there. Ditto for the portage overlay directory (/usr/local/portage by default).
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum