PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Ksensors



Pennywise09
06.06.05, 20:28
Ich habe die Software Ksensors installiert.

Unter Einrichten-->Systeminformationen

kann ich aber nur

- CPU Geschwindigkeit
- CPU Status
- Belegter RAM Speicher
- Belegter SWAP Speicher
- Up Time

Anzeigen lassen. Mein Mainboard (MSI K8N NEO 2 Platinum) hat aber Sensoren für CPU und MB. Wie kann ich mir die anzeigen lassen ?

stefan-tiger
06.06.05, 20:45
Gehts schon in der Konsole?

Bei mir:


bash-2.05b$ sensors
via686a-isa-6000
Adapter: ISA adapter
CPU core: +1.69 V (min = +0.06 V, max = +3.10 V)
+2.5V: +1.55 V (min = +2.36 V, max = +2.61 V) ALARM
I/O: +3.36 V (min = +3.12 V, max = +3.45 V)
+5V: +5.00 V (min = +4.73 V, max = +5.20 V)
+12V: +12.37 V (min = +11.35 V, max = +12.48 V)
CPU Fan: 5625 RPM (min = 0 RPM, div = 8)
P/S Fan: 0 RPM (min = 0 RPM, div = 8)
SYS Temp: +46.0°C (high = +146°C, hyst = -71°C)
CPU Temp: +40.2°C (high = +146°C, hyst = -71°C)
SBr Temp: +25.9°C (high = +108°C, hyst = +146°C)

Das ist Voraussetzung!

Pennywise09
06.06.05, 21:00
Wenn Du mir sagst, wie ich das mache :)

Pennywise=blutiger Linux Anfänger :rolleyes:

stefan-tiger
06.06.05, 21:07
Wenn Du mir sagst, wie ich das mache :)

Pennywise=blutiger Linux Anfänger :rolleyes:

Du machst eine Konsole auf (unter KDE: Bildschirmsymbol mit ">_" drin) und tippst einfach "sensors" ein.

Wenn das Resultat nicht wie gewünscht ist, dann "/sbin/lsmod" eintippen und die Ausgabe untersuchen ob die benötigten Module geladen sind.

Weitere Infomationen mit dem allgmeinen Umgang mit der Konsole und Linux hier: http://www.linuxfibel.de/ , bei Google und über die Suchfunktion des Forums zu finden.

(Die meisten werden nicht erfreut sein diese Gundlagenfragen zu beantworten weil jeder die Antworten leicht selbst finden kann.)

Gruß

Pennywise09
06.06.05, 21:12
Wo die Konsole ist wusste ich. Nicht aber dass man nur sensors eintippen brauchte. Danke aber !

Konsolen Ausgabe:


Can't access procfs/sysfs file
Unable to find i2c bus information;
For 2.6 kernels, make sure you have mounted sysfs and done
'modprobe i2c_sensor'!
For older kernels, make sure you have done 'modprobe i2c-proc'!

Boron
07.06.05, 11:12
Jetzt musst du dem System beibringen, dass es beim Booten die richtigen Kernelmodule lädt um die Sensoren abfragen zu können.
Das funktioniert so:

- Du öffenst wieder einer Konsole.
- Mit dem Befehl su und dem root-Passwort gibst du die root-Rechte.
- Dann tippst du den Befehl sensors-config ein.
- Du liest dir alles brav durch und beantwortest die Fragen mit y oder n (yes oder no). Im Normalfall sollte überall ein y reichen.
- Am Schluss wird gefragt ob die nötigen Module in einer bestimmten Datei aufgelistet werden sollen, so dass sie automatisch geladen werden können. Auch dieses mit y beantworten.

Dann hoffe ich nur noch, dass deine (ungenannte) Distribution automatisch ein Skript dabei hat, das beim Booten diese soeben erstellte Liste durchgeht und die Module lädt.
Ein solche Skript sollte sich in /etc/init.d/ befinden. Vermutlich hat es irgendwo im Namen "sensor", oder so.

Wenn du so ein Skript hast, dann führe es mal aus : <skriptname> start.
Dann kannst du noch einmal sensors ausführen.
Wenn alles gut läuft, dann siehst du jetzt die Werte wie sie von stefan.tiger gezeigt wurden.

Pennywise09
07.06.05, 19:05
in welchem welches Verzeichnis soll ich wechseln um "sensors-config" auszuführen ?

Es sagt mir immer: "command not found"

stefan-tiger
07.06.05, 19:15
in welchem welches Verzeichnis soll ich wechseln um "sensors-config" auszuführen ?

Es sagt mir immer: "command not found"

Wähle aus:
1.) ist nicht im Suchpfad bzw. in $PATH
2.) benutze den falschen User
3.) ist garnicht installiert

Pennywise09
07.06.05, 19:17
Naja, wirklich geholfen hat mir Deine Antwort nicht...

sensors-detect kann er ausführen. Was ist das ?

Boron
08.06.05, 10:18
falsch: sensors-config

richtig: sensors-detect

Tschuldigunk :)

Pennywise09
08.06.05, 13:51
Vielen Dank für Deine Hilfe !!!

JMKio
09.06.05, 14:46
als root habe ich mit diesem es versucht!

/usr/sbin/sensors-detect

This program will help you determine which I2C/SMBus modules you need to
load to use lm_sensors most effectively. You need to have i2c and
lm_sensors installed before running this program.
Also, you need to be `root', or at least have access to the /dev/i2c-*
files, for most things.
If you have patched your kernel and have some drivers built in, you can
safely answer NO if asked to load some modules. In this case, things may
seem a bit confusing, but they will still work.

It is generally safe and recommended to accept the default answers to all
questions, unless you know what you're doing.

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-viapro' for device 00:11.0: VIA Technologies VT8237 South Bridge
Probe succesfully concluded.

We will now try to load each adapter module in turn.
Module `i2c-viapro' already loaded.
If you have undetectable or unsupported adapters, you can have them
scanned by manually loading the modules before running this script.

To continue, we need module `i2c-dev' to be loaded.
If it is built-in into your kernel, you can safely skip this.
i2c-dev is not loaded. Do you want to load it now? (YES/no):
Module loaded succesfully.

We are now going to do the adapter probings. Some adapters may hang halfway
through; we can't really help that. Also, some chips will be double detected;
we choose the one with the highest confidence value in that case.
If you found that the adapter hung after probing a certain address, you can
specify that address to remain unprobed. That often
includes address 0x69 (clock chip).

Next adapter: SMBus Via Pro adapter at 0400
Do you want to scan it? (YES/no/selectively):
Client found at address 0x1b
Probing for `Maxim MAX6650/MAX6651'... Failed!
Probing for `Philips Semiconductors PCA9556'... Failed!
Client found at address 0x2f
Probing for `National Semiconductor LM78'... Failed!
Probing for `National Semiconductor LM78-J'... Failed!
Probing for `National Semiconductor LM79'... Failed!
Probing for `National Semiconductor LM80'... Failed!
Probing for `Winbond W83781D'... Failed!
Probing for `Winbond W83782D'... Failed!
Probing for `Winbond W83791D'... Failed!
Probing for `Winbond W83792D'... Failed!
Probing for `Winbond W83791SD'... Failed!
Probing for `Winbond W83627HF'... Failed!
Probing for `Asus AS99127F (rev.1)'... Failed!
Probing for `Asus AS99127F (rev.2)'... Failed!
Probing for `Asus ASB100 Bach'... Failed!
Probing for `Analog Devices ADM9240'... Failed!
Probing for `Dallas Semiconductor DS1780'... Failed!
Probing for `National Semiconductor LM81'... Failed!
Probing for `Analog Devices ADM1029'... Failed!
Probing for `ITE IT8705F / IT8712F / SiS 950'... Failed!
Client found at address 0x30
Client found at address 0x50
Probing for `SPD EEPROM'... Success!
(confidence 8, driver `eeprom')
Probing for `DDC monitor'... Failed!
Probing for `Maxim MAX6900'... Failed!
Client found at address 0x52
Probing for `SPD EEPROM'... Success!
(confidence 8, driver `eeprom')
Client found at address 0x69
Client found at address 0x6a

Some chips are also accessible through the ISA bus. ISA probes are
typically a bit more dangerous, as we have to write to I/O ports to do
this. This is usually safe though.

Do you want to scan the ISA bus? (YES/no):
Probing for `National Semiconductor LM78'
Trying address 0x0290... Failed!
Probing for `National Semiconductor LM78-J'
Trying address 0x0290... Failed!
Probing for `National Semiconductor LM79'
Trying address 0x0290... Failed!
Probing for `Winbond W83781D'
Trying address 0x0290... Failed!
Probing for `Winbond W83782D'
Trying address 0x0290... Failed!
Probing for `Winbond W83627HF'
Trying address 0x0290... Failed!
Probing for `Winbond W83697HF'
Trying address 0x0290... Failed!
Probing for `Silicon Integrated Systems SIS5595'
Trying general detect... Failed!
Probing for `VIA Technologies VT82C686 Integrated Sensors'
Trying general detect... Failed!
Probing for `VIA Technologies VT8231 Integrated Sensors'
Trying general detect... Failed!
Probing for `ITE IT8705F / IT8712F / SiS 950'
Trying address 0x0290... Failed!
Probing for `IPMI BMC KCS'
Trying address 0x0ca0... Failed!
Probing for `IPMI BMC SMIC'
Trying address 0x0ca8... Failed!

Some Super I/O chips may also contain sensors. Super I/O probes are
typically a bit more dangerous, as we have to write to I/O ports to do
this. This is usually safe though.

Do you want to scan for Super I/O sensors? (YES/no):
Probing for `ITE 8702F Super IO Sensors'
Failed! (skipping family)
Probing for `Nat. Semi. PC87351 Super IO Fan Sensors'
Failed! (skipping family)
Probing for `SMSC 47B27x Super IO Fan Sensors'
Failed! (skipping family)
Probing for `VT1211 Super IO Sensors'
Failed! (0x60)
Probing for `Winbond W83627HF Super IO Sensors'
Failed! (0x60)
Probing for `Winbond W83627THF Super IO Sensors'
Failed! (0x60)
Probing for `Winbond W83637HF Super IO Sensors'
Failed! (0x60)
Probing for `Winbond W83697HF Super IO Sensors'
Success... found at address 0x0290
Probing for `Winbond W83697SF/UF Super IO PWM'
Failed! (0x60)
Probing for `Winbond W83L517D Super IO'
Failed! (0x60)

Do you want to scan for secondary Super I/O sensors? (YES/no):
Probing for `ITE 8702F Super IO Sensors'
Failed! (skipping family)
Probing for `Nat. Semi. PC87351 Super IO Fan Sensors'
Failed! (skipping family)
Probing for `SMSC 47B27x Super IO Fan Sensors'
Failed! (skipping family)
Probing for `VT1211 Super IO Sensors'
Failed! (skipping family)

Now follows a summary of the probes I have just done.
Just press ENTER to continue:

Driver `eeprom' (should be inserted):
Detects correctly:
* Bus `SMBus Via Pro adapter at 0400' (Algorithm unavailable)
Busdriver `i2c-viapro', I2C address 0x50
Chip `SPD EEPROM' (confidence: 8)
* Bus `SMBus Via Pro adapter at 0400' (Algorithm unavailable)
Busdriver `i2c-viapro', I2C address 0x52
Chip `SPD EEPROM' (confidence: 8)

Driver `w83627hf' (should be inserted):
Detects correctly:
* ISA bus address 0x0290 (Busdriver `i2c-isa')
Chip `Winbond W83697HF Super IO Sensors' (confidence: 9)


I will now generate the commands needed to load the I2C modules.
Sometimes, a chip is available both through the ISA bus and an I2C bus.
ISA bus access is faster, but you need to load an additional driver module
for it. If you have the choice, do you want to use the ISA bus or the
I2C/SMBus (ISA/smbus)?

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 i2c-viapro
modprobe i2c-isa
# I2C chip drivers
modprobe eeprom
modprobe w83627hf
# sleep 2 # optional
/usr/bin/sensors -s # recommended
#----cut here----

WARNING! If you have some things built into your kernel, the list above
will contain too many modules. Skip the appropriate ones! You really should
try these commands right now to make sure everything is working properly.
Monitoring programs won't work until it's done.

Do you want to generate /etc/sysconfig/lm_sensors? (YES/no):
Copy /usr/share/doc/packages/sensors/prog/init/lm_sensors.init.suse
to /etc/init.d/lm_sensors for initialization at boot time.

Dieses wurde ausgegeben.

Dann habe ich in /etc/modprobe.conf.local eingetragen:
#----cut here----
# I2C module options
alias char-major-89 i2c-dev
#----cut here----

Habe die Datei lm_sensors.init.suse kopiert wie es beschrieben steht.

Aber wohin soll ich dieses kopieren?

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

#----cut here----
# I2C adapter drivers
modprobe i2c-viapro
modprobe i2c-isa
# I2C chip drivers
modprobe eeprom
modprobe w83627hf
# sleep 2 # optional
/usr/bin/sensors -s # recommended
#----cut here----

Nach dem Boot hat es leider noch nicht funktioniert!

Kann mir vielleicht jemand weiter helfen?

Vielen herzlichen Dank!

Alles Liebe!

JMK!

AMD Athlon XP +3.200, MSI-7047 VIA KT880 Delta

rudi_m
09.06.05, 15:51
Habe die Datei lm_sensors.init.suse kopiert wie es beschrieben steht.
na so wie es dasteht;):
"Copy /usr/share/doc/packages/sensors/prog/init/lm_sensors.init.suse
to /etc/init.d/lm_sensors for initialization at boot time."

also
cp /usr/share/doc/packages/sensors/prog/init/lm_sensors.init.suse /etc/init.d/lm_sensors

um es beim Booten automatisch zu aktivieren tippst Du
insserv lm_sensors
(oder umstaendlichicher aber intuitiver im yast-runlevel-editor)

um es ohne reboot zu aktivieren:
/etc/init.d/lm_sensors start

wenn alles richtig konfiguriert wurde sollten
sensors (in der console)
oder ksensors funktioneren

JMKio
09.06.05, 16:06
Die Datei lm_sensors.init.suse habe ich nach /etc/init.d/lm_sensors kopiert!

Aber wo muß ich dieses eintragen in welche Datei?

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

#----cut here----
# I2C adapter drivers
modprobe i2c-viapro
modprobe i2c-isa
# I2C chip drivers
modprobe eeprom
modprobe w83627hf
# sleep 2 # optional
/usr/bin/sensors -s # recommended
#----cut here----

Eine Datei /etc/rc* gibt es bei mir nicht!

rudi_m
09.06.05, 16:14
Das muesste jetzt allses so klappen, denn Du hast ja /etc/sysconfig/lm_sensors generieren lassen! Da drin sollten jetzt die Module stehen die geladen werden sollen.

Diese Datei wird dann von /etc/init.d/lm_sensors ausgewertet
Also probier doch einfach

/etc/init.d/lm_sensors start
sensors

Pennywise09
15.06.05, 13:21
Nein, das funktioniert noch nicht.

Ich denke dieses hier:

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

#----cut here----
# I2C adapter drivers
modprobe i2c-viapro
modprobe i2c-isa
# I2C chip drivers
modprobe eeprom
modprobe w83627hf
# sleep 2 # optional
/usr/bin/sensors -s # recommended
#----cut here----


fehlt noch. Wo muss ich das reinkopieren ?

rudi_m
15.06.05, 18:19
mach mal bitte folgendes und poste alle Ausgaben

cat /etc/sysconfig/lm_sensors
(da muessten die genannten module drinstehen)

/etc/init.d/lm_sensors start
(das sollte obige module laden)

lsmod
(zeigt alle geladenen Module an)

sensors
(sollte funzen, wenn die 4 module geladen sind)


Was fuer einen Kernel/Distribution hast Du denn?

Pennywise09
15.06.05, 18:33
Kernel 2.6.8-24.16

-------------------------------------------

Ich habe

#----cut here----
# I2C adapter drivers
modprobe i2c-viapro
modprobe i2c-isa
# I2C chip drivers
modprobe eeprom
modprobe w83627hf
# sleep 2 # optional
/usr/bin/sensors -s # recommended
#----cut here---

nun einfach in

/etc/rc.d/boot.local eingefügt.

Ich bekomme nun diese Ausgabe, wenn ich sensors in die Konsole eintippe:

w83627thf-isa-0290
Adapter: ISA adapter
VCore: +1.09 V (min = +1.93 V, max = +1.93 V)
+12V: +12.34 V (min = +10.82 V, max = +13.19 V)
+3.3V: +3.18 V (min = +3.14 V, max = +3.47 V) ALARM
+5V: +4.96 V (min = +4.75 V, max = +5.25 V)
-12V: -14.91 V (min = -10.80 V, max = -13.18 V)
V5SB: +4.97 V (min = +4.76 V, max = +5.24 V)
VBat: +2.75 V (min = +2.40 V, max = +3.60 V)
fan1: 0 RPM (min = 18243 RPM, div = 2)
CPU Fan: 0 RPM (min = -1 RPM, div = 2)
fan3: 0 RPM (min = -1 RPM, div = 2)
M/B Temp: +22°C (high = +4°C, hyst = +0°C) sensor = thermistor
CPU Temp: +35.0°C (high = +80°C, hyst = +75°C) sensor = PII/Celeron diode
temp3: +32.0°C (high = +80°C, hyst = +75°C) sensor = thermistor
ERROR: Can't get VID data!
alarms: Chassis intrusion detection ALARM
beep_enable:
Sound alarm disabled


:) Sieht doch schon ganz gut aus, oder ? Aber was ist

ERROR: Can't get VID data! ????

------------------
Hier ist die lsmod Ausgabe:

Module Size Used by
floppy 63728 0
nvidia 4047260 12
usbserial 32240 0
parport_pc 41024 1
lp 12264 0
parport 45068 2 parport_pc,lp
edd 11344 0
cpufreq_userspace 6344 2
powernow_k8 10504 0
freq_table 5000 1 powernow_k8
thermal 20236 0
processor 29628 2 powernow_k8,thermal
fan 6024 0
button 9760 0
battery 12680 0
ac 7176 0
snd_pcm_oss 63912 0
snd_mixer_oss 21120 1 snd_pcm_oss
snd_ioctl32 18432 0
snd_intel8x0 35652 1
snd_ac97_codec 81952 1 snd_intel8x0
snd_pcm 110220 4 snd_pcm_oss,snd_ioctl32,snd_intel8x0,snd_ac97_code c
snd_timer 26632 1 snd_pcm
snd 67336 9 snd_pcm_oss,snd_mixer_oss,snd_ioctl32,snd_intel8x0 ,snd_ac97_codec,snd_pcm,snd_timer
soundcore 10912 1 snd
snd_page_alloc 11664 2 snd_intel8x0,snd_pcm
ipt_TOS 2944 14
ip6t_LOG 7168 17
ip6t_limit 2816 17
ipt_LOG 7680 30
ipt_limit 2816 30
ipt_pkttype 2048 2
af_packet 23692 2
ip6t_state 2304 21
ip6_conntrack 43744 1 ip6t_state
ipt_state 2432 27
ip6t_REJECT 7936 3
ipt_REJECT 7680 3
usbhid 43908 0
iptable_mangle 3456 1
iptable_filter 3584 1
ip6table_mangle 3200 0
ip_nat_ftp 6096 0
evdev 10752 0
joydev 11264 0
iptable_nat 25804 1 ip_nat_ftp
sg 40248 0
ip_conntrack_ftp 73712 1 ip_nat_ftp
st 40612 0
ip_conntrack 49056 4 ipt_state,ip_nat_ftp,iptable_nat,ip_conntrack_ftp
sr_mod 18084 0
ip_tables 18944 9 ipt_TOS,ipt_LOG,ipt_limit,ipt_pkttype,ipt_state,ip t_REJECT,iptable_mangle,iptable_filter,iptable_nat
ip6table_filter 3328 1
ip6_tables 20112 6 ip6t_LOG,ip6t_limit,ip6t_state,ip6t_REJECT,ip6tabl e_mangle,ip6table_filter
ipv6 264224 15 ip6_conntrack,ip6t_REJECT
w83627hf 33320 0
i2c_sensor 4224 1 w83627hf
i2c_isa 2816 0
i2c_core 26392 3 w83627hf,i2c_sensor,i2c_isa
ohci1394 33796 0
ieee1394 117592 1 ohci1394
ehci_hcd 30852 0
ohci_hcd 21380 0
forcedeth 18816 0
subfs 8960 3
ext3 122896 1
jbd 68680 1 ext3
dm_mod 58840 0
r8169 21256 0
usbcore 122368 6 usbserial,usbhid,ehci_hcd,ohci_hcd
reiserfs 244976 1
sata_nv 9988 0
libata 46856 1 sata_nv
sd_mod 18072 0
scsi_mod 130432 5 sg,st,sr_mod,libata,sd_mod

althequick
08.09.05, 20:17
Hatte das gleiche Problem wie Pennywise. Den Code-Schnipsel habe ich auch in die boot.local eingefügt. Dann habe ich per Hand alle Module geladen mit modprobe. Dann "sensors" in die Konsole getippt. Das Ergebnis sah nicht so prickelnd aus (s.u.). Kann ich mir denn sicher sein, dass diese Werte stimmen? Oder koennte es sein, dass "sensors" voellig falsche Werte liefert, weil es falsch konfiguriert wurde?


alexander@linux:~> sensors
it87-isa-0290
Adapter: ISA adapter
VCore 1: +1.73 V (min = +1.42 V, max = +1.57 V) ALARM
VCore 2: +2.43 V (min = +2.40 V, max = +2.61 V)
+3.3V: +6.40 V (min = +3.14 V, max = +3.46 V) ALARM
+5V: +4.78 V (min = +4.76 V, max = +5.24 V)
+12V: +12.10 V (min = +11.39 V, max = +12.61 V)
-12V: -2.45 V (min = -12.63 V, max = -11.41 V) ALARM
-5V: -9.14 V (min = -5.26 V, max = -4.77 V) ALARM
Stdby: +4.81 V (min = +4.76 V, max = +5.24 V)
VBat: +3.07 V
fan1: 0 RPM (min = 0 RPM, div = 2)
fan2: 0 RPM (min = 3000 RPM, div = 2) ALARM
fan3: 0 RPM (min = 3000 RPM, div = 2) ALARM
M/B Temp: +24°C (low = +15°C, high = +40°C) sensor = thermistor
CPU Temp: +34°C (low = +15°C, high = +45°C) sensor = thermistor
Temp3: +51°C (low = +15°C, high = +45°C) sensor = thermistor

alexander@linux:~>


Da faellt mir noch was ein: Woher soll ein Chip auf dem Mainboard wissen wie schnell sich der Lüfter dreht??? Der Lüfter auf meiner CPU ist zum Beispiel nur mit dem Netzteil per Kabel verbunden!

PierreS
08.09.05, 20:47
@althequick: Das kann ich bestätigen. sensors liefert absolute Fantasie-Werte; scheint ziemlich unbrauchbar. Fast so toll wie ACPI, was mir immer meldet meine CPU hätte genau 40°.