Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
LM-Sensors auf Kernel 2.6.6?
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
ank666
Guru
Guru


Joined: 12 May 2004
Posts: 319
Location: CO/BY/DE

PostPosted: Sat May 15, 2004 1:17 pm    Post subject: LM-Sensors auf Kernel 2.6.6? Reply with quote

Hi,
ich möchte gerne LM-Sensors benutzen um die CPU- und System-Temperatur auszulesen.

Allerdings kann ich es nicht emergen, da ich einen 2.6er Kernel benutze,
kann mir jemand sagen wie ich es trotzdem emergen kann,
oder mir eine andere Möglichkeit nennen die Informationen anzuzeigen.

Vielen Dank
_________________
Auf der Verpackung stand benötigt Windows 9x/2000/XP oder BESSER, deshalb hab ich Linux installiert
Back to top
View user's profile Send private message
dek
l33t
l33t


Joined: 16 May 2002
Posts: 657
Location: Germany

PostPosted: Sat May 15, 2004 1:28 pm    Post subject: Reply with quote

Die älteren versionen von lm-sensors funktionieren IMHO nicht mehr mit dem 2.6er. Schreib mal
Code:
sys-apps/lm-sensors ~x86
in deine /etc/portage/package.keywords. Falls die nicht existiert, einfach anlegen und "~x86" gegebenenfalls mit deiner Architektur ersetzen. Dann ganz normal
Code:
emerge lm-sensors
Damit bekommst du die neuste verfügbare Version mit einem sensors-detect und init script das auch mit dem 2.6er funktionieren sollte.

p.s.: Deine Sensoren musst du natürlich im Kernel aktiviert haben.
Back to top
View user's profile Send private message
ignatz
Tux's lil' helper
Tux's lil' helper


Joined: 04 Aug 2003
Posts: 112
Location: Germany/BaWü

PostPosted: Sat May 15, 2004 4:43 pm    Post subject: Reply with quote

wenns dir nur um das anzeigen von temperaturen und fanspeed und so geht, brauchst du eignetlich kein lmsensors.
Alles was du dafür brauchst ist schon im kernel drin und die Temperaturwerte kannst du dann einfach unter /sys auslesen
_________________
Feel the unbeliveable power of the new Bistr-O-Matic: <su -c "emerge -CD `qpkg -I -nc`">
Back to top
View user's profile Send private message
ank666
Guru
Guru


Joined: 12 May 2004
Posts: 319
Location: CO/BY/DE

PostPosted: Sat May 15, 2004 7:43 pm    Post subject: Reply with quote

Ich habe jetzt mal versucht LM-Sensors mit ACCEPT_KEYWORDS="~x86" zu emergen, bricht aber ebenfalls ab.

Wie funktioniert das mit dem /sys genau?
_________________
Auf der Verpackung stand benötigt Windows 9x/2000/XP oder BESSER, deshalb hab ich Linux installiert
Back to top
View user's profile Send private message
abostick
n00b
n00b


Joined: 10 May 2004
Posts: 8

PostPosted: Sat May 15, 2004 8:34 pm    Post subject: I cant read this thread, but... Reply with quote

I emerged lm-sensors-2.8.6 by using the ACCEPT_KEYWORDS="amd64" on my x86 system. I run an Athlon XP, but the lm-sensors compiled and runs fine.

I don't know why its not released for x86 arch yet, but it is working for me. I tested it on development-sources 2.6.6 and gentoo-dev-sources 2.6.5 and both work great.

Good luck!
Aaron[/u]
Back to top
View user's profile Send private message
slyght
Apprentice
Apprentice


Joined: 12 May 2004
Posts: 207
Location: Stuttgart, Germany

PostPosted: Sat May 15, 2004 9:17 pm    Post subject: Reply with quote

@ank666: Ich denke mal, das geht tatsächlich einfacher, wenn du das im Kernel aktivierst, da die Option nun im Kernel schon dabei ist. Schau mal unter Device Drivers -> I2C Support-> Hardware Sensor Chip Support

Mich würde das Ganze auch mal interessieren. Ich habe ein Asus P4PE, aber den Chipsatz (intel845PE) dort nicht gefunden. Welches Modul brauch ich denn da?
Back to top
View user's profile Send private message
dek
l33t
l33t


Joined: 16 May 2002
Posts: 657
Location: Germany

PostPosted: Sat May 15, 2004 9:47 pm    Post subject: Reply with quote

Das Paket lm-sensors ist mit Kernel 2.6 zwar nicht mehr zwingend erforderlich (die mitgelieferten Module sind bereits im Kernel vorhanden). Allerdings bekommt man mit dem Paket eben nicht nur diese, sondern zusätzlich die Programme sensors, sensors-detect, etc., sowie ein init-script zum laden der Module bei Bedarf.

Quote:
Mich würde das Ganze auch mal interessieren. Ich habe ein Asus P4PE, aber den Chipsatz (intel845PE) dort nicht gefunden. Welches Modul brauch ich denn da?

Installier einfach mal die neuste Version von lm-sensors und lass dann sensors-detect laufen. Die Sensoren die er findet aktivierst du als Module im Kernel und trägst sie in /etc/conf.d/lm_sensors ein. Mit "/etc/init.d/lm_sensors start" werden die dann geladen. Und wenn alles gut ging, kannst du dir mit "sensors" sogar mal eine Ausgabe machen lassen. :)
Back to top
View user's profile Send private message
slyght
Apprentice
Apprentice


Joined: 12 May 2004
Posts: 207
Location: Stuttgart, Germany

PostPosted: Sat May 15, 2004 10:12 pm    Post subject: Reply with quote

Das mit der neuesten Version von lm-sensors is irgendwie net so einfach, wie ich dachte...
Code:
root:/home/thilo >ACCEPT_KEYWORDS="~x86" emerge =lm-sensors-2.8.6
Calculating dependencies   
!!! all ebuilds that could satisfy "=lm-sensors-2.8.6" have been masked.
!!! possible candidates are:
- sys-apps/lm-sensors-2.8.6 (masked by: -keyword)


Was nun?
Back to top
View user's profile Send private message
ank666
Guru
Guru


Joined: 12 May 2004
Posts: 319
Location: CO/BY/DE

PostPosted: Sat May 15, 2004 10:16 pm    Post subject: Reply with quote

Bei mir hat es so geklappt wie abostick gesagt hat!
_________________
Auf der Verpackung stand benötigt Windows 9x/2000/XP oder BESSER, deshalb hab ich Linux installiert
Back to top
View user's profile Send private message
dek
l33t
l33t


Joined: 16 May 2002
Posts: 657
Location: Germany

PostPosted: Sat May 15, 2004 10:25 pm    Post subject: Reply with quote

slyght wrote:
Das mit der neuesten Version von lm-sensors is irgendwie net so einfach, wie ich dachte...
Code:
root:/home/thilo >ACCEPT_KEYWORDS="~x86" emerge =lm-sensors-2.8.6
Calculating dependencies   
!!! all ebuilds that could satisfy "=lm-sensors-2.8.6" have been masked.
!!! possible candidates are:
- sys-apps/lm-sensors-2.8.6 (masked by: -keyword)


Was nun?

Hab gerade festgestellt, dass es weder mit der package.keywords noch mit ACCEPT_KEYWORDS klappt. Wieso ist mir schleierhaft.

Gib mal den absoluten Pfad zum ebuild an
Code:
emerge /usr/portage/sys-apps/lm-sensors/lm-sensors-2.8.6.ebuild

Ist zwar noch unsauberer als ACCEPT_KEYWORDS, aber so geht es auf jeden Fall.
Back to top
View user's profile Send private message
slyght
Apprentice
Apprentice


Joined: 12 May 2004
Posts: 207
Location: Stuttgart, Germany

PostPosted: Sat May 15, 2004 10:49 pm    Post subject: Reply with quote

Ju dann hier mal, was sensors-detect ausspuckt:
Code:
[...] We can start with probing for (PCI) I2C or SMBus adapters.
 You do not need any special privileges for this.
 Do you want to probe now? (YES/no):
Probing for PCI bus adapters...
Use driver `i2c-i801' for device 00:1f.3: Intel 82801DB ICH4
Probe succesfully concluded.

We will now try to load each adapter module in turn.
Load `i2c-i801' (say NO if built into your kernel)? (YES/no):
FATAL: Module i2c_i801 not found.
Loading failed... skipping.
[...]

Rest dürfte relativ uninteressant sein.
Nachdem er da nun immerhin den i2c.i801 Chipsatz gefunden hat, hab ich den im Kernel als Modul aktiviert, aber gebracht hat's das nicht wirklich :?
Folglich wird auch keine /etc/conf.d/lm_sensors erstellt...
Back to top
View user's profile Send private message
slyght
Apprentice
Apprentice


Joined: 12 May 2004
Posts: 207
Location: Stuttgart, Germany

PostPosted: Mon May 17, 2004 6:13 pm    Post subject: Reply with quote

funzt nun auch bei mir alles
(hab vergessen "make modules modules_install" zu machen :oops: )
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) 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