PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Sensors Frage



illusi0n
09.06.07, 22:02
sensors-detect gemacht alles ausgeführt dann kam am Ende folgendes



To make the sensors modules behave correctly, add these lines to
/etc/modprobe.conf:

#----cut here----
# I2C module options
alias char-major-89 i2c-dev
#----cut here----

To load everything that is needed, add this to some /etc/rc* file:

#----cut here----
# I2C adapter drivers
# modprobe unknown adapter NVIDIA i2c adapter 0 at 1:00.0
# modprobe unknown adapter NVIDIA i2c adapter 1 at 1:00.0
# modprobe unknown adapter NVIDIA i2c adapter 2 at 1:00.0
modprobe i2c-i801
# Chip drivers
# no driver for Analog Devices ADT7473 yet
modprobe eeprom
modprobe w83627ehf
# sleep 2 # optional
/usr/bin/sensors -s # recommended
#----cut here----




Diesen Teil habe ich gemacht "/etc/modprobe.conf:"


Allerdings weiss ich nicht welche Datei damit gemeint ist

"To load everything that is needed, add this to some /etc/rc* file:"

zyrusthc
09.06.07, 22:04
zb. /etc/rc.local

Du sollst es halt in ein Script eintragen was beim Booten ausgeführt wird!

Greeez Oli

illusi0n
09.06.07, 22:06
/etc/rc.local

Die Datei habe ich gar nicht, weiss jemand was der Pendant dazu bei Suse ist, will nichts kaputt machen :)


EDIT: im Falle der Fälle, wenn was geändert wird was nicht sein sollte wie stelle ich die ursprüngliche Datei aus der Konsole wieder her ? Danke.

zyrusthc
09.06.07, 22:10
/etc/rc.local

Die Datei habe ich gar nicht, weiss jemand was der Pendant dazu bei Suse ist, will nichts kaputt machen :)

Vielleicht /etc/rc.d/rc.local
ansonsten find /etc --name rc.local

illusi0n
09.06.07, 22:15
/etc/rc.d/rc.local gibts nicht

find /etc -name rc.local ohne Rootrechte




find: /etc/news: Keine Berechtigung
find: /etc/autoinstall: Keine Berechtigung
find: /etc/skel/Documents: Keine Berechtigung
find: /etc/cups/ssl: Keine Berechtigung
find: /etc/uucp: Keine Berechtigung
find: /etc/sysconfig/network/providers: Keine Berechtigung
find: /etc/ssl/private: Keine Berechtigung



mit Rootrechten gab es keine Ausgabe



Edit: Nach der Anleitung hier http://www.linux-web.de/thread.php?postid=48262#post48262

Muss es sich bei der 2ten Datei um etc/init.d/boot.local handeln

Ich habe also alles gemacht, trotzdem gehts bei mir nicht, das Interessante ist das hier, muss ich also einen Kernelmodul nachladen oder wie ? Wenn ja wie mach ich sowas...




linux-NightSky:/home/micha # modprobe w83627ehf
FATAL: Error inserting w83627ehf (/lib/modules/2.6.18.8-0.3-default/kernel/drivers/hwmon/w83627ehf.ko): No such device

rkauskh
10.06.07, 05:40
Hi

Am einfachsten reversibel ist es ein eigenes Script zu erstellen. Ich habe in /etc/init.d einfach eine Textdatei erstellt und den Teil reinkopiert. In die oberste Zeile noch ein
#!/bin/sh eingefügt, unter einem sinnvollen Namen gespeichert und ausführbar gemacht. Die Rechte kannst du von den anderen Dateien übernehmen. Danach kannst du bequem im Runleveleditor von Yast einstellen wann das Script ausgeführt wird. Runlevel 3 und 5 sollte reichen.
Schau mal nach warum das Kernelmodul angeblich nicht existiert. Es sollte im angegebenen Verzeichnis liegen. Falls ein Kernelupdate gemacht wurde, müßte das alte Verzeichnis noch existieren. Schau dort auch mal nach und wenn es die Datei dort gibt, teste bitte mal, ob ein Symlink auf das alte Verzeichnis funktioniert.

bla!zilla
10.06.07, 09:32
Welche Distribution? SUSE 10.2? Einfach sensors-detect ausführen und anschließend lm_sensors starten. Schau dir mal die /etc/sysconfig/lm_sensors an - da sollten die passenden Module nun drin stehen.

illusi0n
10.06.07, 10:23
@rkaush

Ich will eingentlich, das so belassen, denn es müsste schon alles gehen. Da brauche ich eigtnlich keinen Script noch zu schreiben, das Modul wird dann trotzdem nicht geladen. Ich habe in dem Ordner nachgeschaut, die Dateist vorhanden, wie kann ich herausfinden warum der Kernelmodul trotzdem nicht geladen wird.

@blazilla

Ich habe doch schon sensors-detect gemacht.

Danach kam die Ausgabe wie aus dem ersten Post zu lesen. Ich habe beide Sachen in die 2 Dateien eingegeben. Das Problem ist es startet nur nix




micha@linux-NightSky:~> sensors
No sensors found!
Make sure you loaded all the kernel drivers you need.
Try sensors-detect to find out which these are.



Ich glaube, dass das Problem hier liegt




linux-NightSky:/home/micha # modprobe w83627ehf
FATAL: Error inserting w83627ehf (/lib/modules/2.6.18.8-0.3-default/kernel/drivers/hwmon/w83627ehf.ko): No such device



Und ich wollte wissen wie ich das beheben kann, naja hoffe jemand wird mir eklären können wie das zu handhaben ist.

Edit:

Und hier noch ein Auszug aus boot Log




System Boot Control: The system has been set up
System Boot Control: Running /etc/init.d/boot.local
FATAL: Error inserting w83627ehf (/lib/modules/2.6.18.8-0.3-default/kernel/drivers/hwmon/w83627ehf.ko): No such device
No sensors found!
Make sure you loaded all the kernel drivers you need.
Try sensors-detect to find out which these are.



Und dann später




Starting SSH daemondone
Starting up sensors: failed


failed<notice>killproc: kill(1054,3)

INIT:

bla!zilla
10.06.07, 10:37
Schau bitte in die /etc/sysconfig/lm_sensors und wirf das entsprechende Modul raus. Einträge in der rc.local oder modprobe.conf sind eigentlich unnötig.

temir
10.06.07, 10:41
An dieser Stelle empfehle ich erstmal den kernel-update, denn du hast den von der DVD/CDs.
Möglicherweise sind dann aktualisierte Module dabei.

PS: so nicht:


modprobe w83627ehf

Module, die für lm_sensors benötigt werden, versucht der `sensors-detect` in die /etc/sysconfig/lm_sensors einzutragen.

illusi0n
10.06.07, 11:04
@ blazilla

/etc/sysconfig/lm_sensors

Habe das Modul rausgeworfen und neugestaret hat nix gebracht, dann noch aus der etc/init.d/boot.local den Eintrag gelöscht und neugestartet, auch kein Ergebnis.


@temir
Wie meinste das Kernel Update, ich benutze den neuste den mir mein Distributor zu Verfügung stellt.



EDIT:

lsmod




linux-NightSky:/home/micha # lsmod
Module Size Used by
ipv6 263584 16
snd_pcm_oss 53376 0
snd_mixer_oss 21248 1 snd_pcm_oss
snd_seq 60272 0
snd_seq_device 12812 1 snd_seq
af_packet 29320 2
button 10896 0
battery 14468 0
ac 9476 0
eeprom 11152 0
apparmor 55572 0
aamatch_pcre 18304 1 apparmor
loop 20488 0
usbhid 52192 0
nvidia 6844276 32
ehci_hcd 34696 0
i2c_i801 11660 0
r8169 34312 0
intel_agp 27804 1
uhci_hcd 26892 0
i2c_core 25216 3 eeprom,nvidia,i2c_i801
agpgart 35528 2 nvidia,intel_agp
usbcore 128004 4 usbhid,ehci_hcd,uhci_hcd
snd_hda_intel 23060 5
snd_hda_codec 164352 1 snd_hda_intel
snd_pcm 86916 4 snd_pcm_oss,snd_hda_intel,snd_hda_codec
snd_timer 27908 3 snd_seq,snd_pcm
snd 61188 16 snd_pcm_oss,snd_mixer_oss,snd_seq,snd_seq_device,s nd_hda_intel,snd_hda_codec,snd_pcm,snd_timer
soundcore 13792 1 snd
snd_page_alloc 14472 2 snd_hda_intel,snd_pcm
parport_pc 42084 1
lp 15652 0
parport 39752 2 parport_pc,lp
ext3 141192 3
mbcache 12804 1 ext3
jbd 70324 1 ext3
dm_snapshot 21152 0
dm_mod 60184 12 dm_snapshot
sr_mod 20132 0
cdrom 38432 1 sr_mod
edd 13892 0
fan 8964 0
pata_jmicron 10752 0
sg 38044 0
ata_piix 19204 1
ahci 25860 0
libata 119700 3 pata_jmicron,ata_piix,ahci
thermal 18568 0
processor 34664 1 thermal
sd_mod 24704 1
scsi_mod 136712 5 sr_mod,sg,ahci,libata,sd_mod



eeprom 11152 0

i2c_i801 11660 0

müsste da nicht 1 stehen ?

temir
10.06.07, 11:34
Mittels YOU = Yast Online Update werden die Pakete aktualisiert. Keine Panik, dahinter steckt auch SuSE-Team.
Laut deiner Sig deine kernel-Version:


Suse 10.2 , 2.6.18.2-34

momentan aktuell:


user@linux:~> uname -r
2.6.18.8-0.3-default

illusi0n
10.06.07, 11:38
Sorry, die Signatur war nicht aktuell




linux-NightSky:/home/micha # uname -r
2.6.18.8-0.3-default

temir
10.06.07, 12:30
OK. Nun folgendes als root ausführen:


/etc/init.d/lm_sensors stop
/etc/init.d/lm_sensors start

Wenn Fehler auftreten, brauchen wir:


cat /etc/sysconfig/lm_sensors

und um mehr Details zu sehen, muss /etc/init.d/lm_sensors editiert werden:


42 [ -e /sys/bus/i2c/devices ] || exit 0
43
44 # If sensors was not already running, unload the module...
45 [ -e /var/lock/subsys/sensors ] || /sbin/modprobe -r i2c-dev &>/dev/null
46 set -x ## - diese Zeile einfügen
47 CONFIG=/etc/sysconfig/lm_sensors
48 PSENSORS=/usr/bin/sensors
49 FANCONFIG=/etc/fancontrol
50 PFAN=/usr/sbin/fancontrol

Das Ergebnis von `... start` und `... stop` nach der Scriptänderung am besten als Txt-File anhängen, denn es wird doch etwas lang.

illusi0n
10.06.07, 13:00
linux-NightSky:/home/micha # /etc/init.d/lm_sensors stop
+ CONFIG=/etc/sysconfig/lm_sensors
+ PSENSORS=/usr/bin/sensors
+ FANCONFIG=/etc/fancontrol
+ PFAN=/usr/sbin/fancontrol
+ . /etc/rc.status
++ LC_ALL=POSIX
++ export LC_ALL
++ test -z '' -o -z ''
+++ exec
+++ stty size
+++ read L C
+++ echo LINES=24 COLUMNS=80
++ eval LINES=24 COLUMNS=80
+++ LINES=24
+++ COLUMNS=80
++ test 24 -eq 0
++ test 80 -eq 0
++ export LINES COLUMNS
++ case ":$PATH:" in
++ test -t 1 -a xterm '!=' raw -a xterm '!=' dumb
++ stty size
+++ echo -en '\033'
++ esc=$'\E'
++ extd=''
++ warn=''
++ done=''
++ attn=''
+++ echo -en '\017'
++ norm=''
+++ echo -en '\015 '
++ stat=' '
++ rc_done=' done'
++ rc_running=' running'
++ rc_failed=' failed'
++ rc_missed=' missing'
++ rc_skipped=' skipped'
++ rc_dead=' dead'
++ rc_unused=' unused'
++ rc_unknown=' failed''
++ rc_reset=''p='
++ rc_save=''
++ rc_restor'='
++ _rc_service=/etc/init.d/lm_sensors
++ _rc_status=0
++ _rc_status_all=0
++ _rc_todo=stop
++ test stop = status
++ test -n stop
+ rc_reset
+ _rc_status=0
+ _rc_status_all=0
+ rc_check
+ _rc_status_ret=0
+ test 0 -eq 0
+ test 0 -eq 0
+ return
+ return 0
+ case "$1" in
+ stop
+ echo -n 'Shutting down sensors'
Shutting down sensors+ unset
+ test -r /etc/sysconfig/lm_sensors
+ . /etc/sysconfig/lm_sensors
++ MODULE_0=i2c-i801
++ MODULE_1=eeprom
+ test -s /var/run/fancontrol.pid
+ echo -n ': '
: + for i in '${!MODULE_*}'
+ eval 'module=$MODULE_0'
++ module=i2c-i801
+ /sbin/modprobe -r i2c-i801
+ rc_status
+ rc_check
+ _rc_status_ret=0
+ test 0 -eq 0
+ test 0 -eq 0
+ return
+ test 0 -gt 7
+ _rc_status_ret=0
+ case "$_rc_todo" in
+ test 0 -eq 7
+ local i
+ return 0
+ for i in '${!MODULE_*}'
+ eval 'module=$MODULE_1'
++ module=eeprom
+ /sbin/modprobe -r eeprom
+ rc_status
+ rc_check
+ _rc_status_ret=0
+ test 0 -eq 0
+ test 0 -eq 0
+ return
+ test 0 -gt 7
+ _rc_status_ret=0
+ case "$_rc_todo" in
+ test 0 -eq 7
+ local i
+ return 0
+ rc_status -v
+ rc_check
+ _rc_status_ret=0
+ test 0 -eq 0
+ test 0 -eq 0
+ return
+ test 0 -gt 7
+ _rc_status_ret=0
+ case "$_rc_todo" in
+ test 0 -eq 7
+ local i
+ for i in '"$@"'
+ case "$i" in
+ local vrt=
+ local out=1
+ local opt=en
+ test -n ''
+ opt=e
+ case "$_rc_status" in
+ vrt=' done'
+ echo -e '' done
done
+ _rc_status=0
+ return 0
+ rm -f /var/lock/subsys/sensors
+ rc_exit
+ exit 0
linux-NightSky:/home/micha # /etc/init.d/lm_sensors start
+ CONFIG=/etc/sysconfig/lm_sensors
+ PSENSORS=/usr/bin/sensors
+ FANCONFIG=/etc/fancontrol
+ PFAN=/usr/sbin/fancontrol
+ . /etc/rc.status
++ LC_ALL=POSIX
++ export LC_ALL
++ test -z '' -o -z ''
+++ exec
+++ stty size
+++ read L C
+++ echo LINES=24 COLUMNS=80
++ eval LINES=24 COLUMNS=80
+++ LINES=24
+++ COLUMNS=80
++ test 24 -eq 0
++ test 80 -eq 0
++ export LINES COLUMNS
++ case ":$PATH:" in
++ test -t 1 -a xterm '!=' raw -a xterm '!=' dumb
++ stty size
+++ echo -en '\033'
++ esc=$'\E'
++ extd=''
++ warn=''
++ done=''
++ attn=''
+++ echo -en '\017'
++ norm=''
+++ echo -en '\015 '
++ stat=' '
++ rc_done=' done'
++ rc_running=' running'
++ rc_failed=' failed'
++ rc_missed=' missing'
++ rc_skipped=' skipped'
++ rc_dead=' dead'
++ rc_unused=' unused'
++ rc_unknown=' failed''
++ rc_reset=''p='
++ rc_save=''
++ rc_restor'='
++ _rc_service=/etc/init.d/lm_sensors
++ _rc_status=0
++ _rc_status_all=0
++ _rc_todo=start
++ test start = status
++ test -n start
+ rc_reset
+ _rc_status=0
+ _rc_status_all=0
+ rc_check
+ _rc_status_ret=0
+ test 0 -eq 0
+ test 0 -eq 0
+ return
+ return 0
+ case "$1" in
+ start
+ echo -n 'Starting up sensors'
Starting up sensors+ unset
+ test -r /etc/sysconfig/lm_sensors
+ . /etc/sysconfig/lm_sensors
++ MODULE_0=i2c-i801
++ MODULE_1=eeprom
+ for i in '${!MODULE_*}'
+ eval 'module=$MODULE_0'
++ module=i2c-i801
+ /sbin/modprobe i2c-i801
+ rc_status
+ rc_check
+ _rc_status_ret=0
+ test 0 -eq 0
+ test 0 -eq 0
+ return
+ test 0 -gt 7
+ _rc_status_ret=0
+ case "$_rc_todo" in
+ local i
+ return 0
+ for i in '${!MODULE_*}'
+ eval 'module=$MODULE_1'
++ module=eeprom
+ /sbin/modprobe eeprom
+ rc_status
+ rc_check
+ _rc_status_ret=0
+ test 0 -eq 0
+ test 0 -eq 0
+ return
+ test 0 -gt 7
+ _rc_status_ret=0
+ case "$_rc_todo" in
+ local i
+ return 0
+ rc_status
+ rc_check
+ _rc_status_ret=0
+ test 0 -eq 0
+ test 0 -eq 0
+ return
+ test 0 -gt 7
+ _rc_status_ret=0
+ case "$_rc_todo" in
+ local i
+ return 0
+ /usr/bin/sensors -s
+ rc_status
+ rc_check
+ _rc_status_ret=1
+ test 1 -eq 0
+ _rc_status=1
+ test 1 -eq 0
+ _rc_status_all=1
+ return
+ test 1 -gt 7
+ _rc_status_ret=1
+ case "$_rc_todo" in
+ local i
+ return 1
+ test -s /etc/fancontrol -a -x /usr/sbin/fancontrol
+ echo -n ': '
: + rc_status -v
+ rc_check
+ _rc_status_ret=0
+ test 0 -eq 0
+ test 1 -eq 0
+ _rc_status_all=1
+ return
+ test 1 -gt 7
+ _rc_status_ret=1
+ case "$_rc_todo" in
+ local i
+ for i in '"$@"'
+ case "$i" in
+ local vrt=
+ local out=1
+ local opt=en
+ test -n ''
+ opt=e
+ case "$_rc_status" in
+ vrt=' failed'
+ out=2
+ echo -e '' failed
failed
+ _rc_status=0
+ return 1
+ rc_exit
+ exit 1
linux-NightSky:/home/micha #



/etc/sysconfig/lm_sensors




# /etc/sysconfig/lm_sensors - Defines modules loaded by
# /etc/init.d/lm_sensors
# Copyright (c) 1998 - 2001 Frodo Looijaard <frodol@dds.nl>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
#
# See also the lm_sensors homepage at:
# http://www.lm-sensors.org/
#
# This file is used by /etc/init.d/lm_sensors and defines the modules to
# be loaded/unloaded. This file is sourced into /etc/init.d/lm_sensors.
#
# The format of this file is a shell script that simply defines the modules
# in order as normal variables with the special names:
# MODULE_0, MODULE_1, MODULE_2, etc.
#
# List the modules that are to be loaded for your system
#
# Generated by sensors-detect on Sat Jun 9 23:37:21 2007
MODULE_0=i2c-i801
MODULE_1=eeprom

illusi0n
11.06.07, 13:00
Also kann keiner helfen ?

Das müsste das Problem sein, jemand eine Idee wie ich es beheben kann ?




linux-NightSky:/home/micha # modprobe w83627ehf
FATAL: Error inserting w83627ehf (/lib/modules/2.6.18.8-0.3-default/kernel/drivers/hwmon/w83627ehf.ko): No such device

bla!zilla
11.06.07, 13:32
Poste mal die Ausgabe von


find /etc -type f | xargs grep w83627ehf

illusi0n
11.06.07, 13:58
linux-NightSky:/home/micha # find /etc -type f | xargs grep w83627ehf
/etc/init.d/boot.local~:modprobe w83627ehf
/etc/sensors.conf:chip "w83627ehf-*"
/etc/sysconfig/lm_sensors~:MODULE_2=w83627ehf
/etc/sysconfig/lm_sensors:MODULE_2=w83627ehf

temir
11.06.07, 17:24
Wie es aussieht, wirst du mit kernel 2.6.18 und lm_sensors nicht glücklich (http://blog.taragana.com/index.php/archive/lm_sensors-guide-or-how-to-monitor-cpu-temperature-in-linux-fedora-core-6-26-kernel/), Zitat von der verlinkten Seite:


lm_sensors requires coretemp kernel module which is only available in 2.6.21.x kernels and above. So you will have to install the development versions of kernel to use lm_sensors in core 2 duo systems. Personally I am waiting for the 2.6.21 release version.

bla!zilla
11.06.07, 17:35
In der /etc/sysconfig/lm_sensors steht es immer noch drin:

MODULE_2=w83627ehf

Und hier steht der Kram auch noch drin:

/etc/init.d/boot.local
/etc/sensors.conf

Als Beispiel, so sieht es bei mir aus, wenn ich nach dem passenden Modul für mein Notebook suche:

starcat:/ # find /etc -type f | xargs grep i2c-piix4
/etc/sysconfig/lm_sensors:MODULE_0=i2c-piix4
starcat:/ #


Steht nur in der /etc/sysconfig/lm_sensors drin und sonst nirgendwo! Einträge in modprobe.conf usw. sind unnötig.

illusi0n
11.06.07, 17:51
@temir

Danke für den Hinweis, weisst du wann Suse die Kernelversion zu Verfügung stellen wird bzw. wo man das nachlesen kann ?

@blazilla

Danke für die Hilfe aber es kann doch nicht der Grund für das Nichtladen des w83627ehf Moduls sein oder ?

temir
11.06.07, 18:11
Man könnte einen experimentellen kernel, wie z.B. den kernel-default-2.6.22_rc4-20070608144231.i586.rpm von hier (ftp://ftp.suse.com/pub/projects/kernel/kotd/HEAD/i386/) versuchen (kernel-source nicht vergessen wg. nvidia oder ähnlichen, falls nötig).
Es sollen sich noch andere kernel >= 2.6.20 für opensuse 10.2 finden lassen, einfach mal danach googeln...

Sind allerdings keine 'stable'-Versionen sprich: vom produktiven Einsatz keine Rede.

EDIT:


@blazilla

Danke für die Hilfe aber es kann doch nicht der Grund für das Nichtladen des w83627ehf Moduls sein oder ?
Das Modul w83627ehf existiert (soviel ich weiß) nicht in der Form Modulname.ko, sondern stellt nur eine Section in einem Modul dar.

illusi0n
11.06.07, 18:41
Man o man :)

Mein neuer Kernel + neuer Fehler :P



micha@linux-NightSky:~> uname -r
2.6.22-rc4-git3-14-default


Fehler



micha@linux-NightSky:~> sensors
w83627dhg-i2c-9191-290
ERROR: Can't get adapter or algorithm?!?


http://lists.lm-sensors.org/pipermail/lm-sensors/2007-February/018904.html

Hier habe ich einen Link, da steht, dass meine sensors Version zu alt ist gibt's eine Quelle für Suse 10.2 ? Selbst kompilieren will ich nicht, ich glaube für sensors muss man Vieles machen oder ist die Kompilierung für sensors nicht sonderlich schwer ?




linux-NightSky:/home/micha # sensors --version
sensors version 2.10.1 with libsensors version 2.10.1

illusi0n
13.06.07, 11:39
Alles gelöst

2.6.22-rc4-git3-14-default Kernel + 2.10.3 Sensors und es funktioniert endlich, Danke für eure Hilfe