Sysinfo-plugin

Aus VDR Wiki
Wechseln zu: Navigation, Suche

subaru lombardia mina nuovo disco certe notti luciano ligabue plasma 37 televisori www maria defilippi it milano mosca biglietti aerei letteredamore denon pma-1055r spider alfa help the poor scheda madre dual socket elegia paolo conte olympus c 765 silvia marco profumi la perla memoria 512 d-link ap michelle hunziker it corriere canadese com annette paladonbosco eurotravel viaccess keys con mamma royal canin 34 milionario per caso xxx pron anime nokia clip-on hs-21w manuali gratis sapporo hotel onondaga fortuna bluetooth slim gps decreto urbani novita imbuto dischi per grammofono seconda patch per painkiller philips hp250 amenemhat ii foto di marina la rosa rullatrice calendario sexy ufo plast tribunale teramo laser clp510 uam comunenapoli it hp photosmart 7350 kleiner, juliusz bobo lavoro civitanova marche foglia pokemon accessori mitac duplicatore rca primo neo motore ricerca siti con annunci hp 41 rua canon lbp tv in hardcore film cult intimare 2004 forli edilizia upa dance video yoko matsugane old young direttore sanitario usl ariete stiromatic 3000 pro musiche lupin michele bubble armadillo e milo tutto nero tavolo da ping pong esterno ato clio rti chicco rodeo dondolo ovatio duo plotter hp designjet 110plus rockabilly it flatland il terrore con gli occhi storti mmc 128 dracula dracula dra bouquet fiori prestito mutuo cellarius, christoph cristian castro azul elisa di rivaombrosa download emulatore psx nokiotto hard disk 40 selecter desree un medico in famiglia. prima serie. vol. 13 philips hi fi blood rayne 2 eos 3000n kit fisher price altalena one in a milion vendetta per vendetta hotel spotorno alfa 147 gta corriere diplomatico blessington, marguerite rex rc 200 audiola mp3 duncan james foto viaggio organizzato capodanno onorato srl diffusori portatili stampante laser a colore epson sic caro fratello donna cercano uomo mp3 card reader foto di pietro e margot sess0 alpine cremona www astegiudiziarie rds portatile lotti video di lene nystrom trans contatti telefonici win wx nuova toyota land cruiser diesel auto disponibile chimica computazionale ati radeon 9600 atlantis 256mb torte di compleanno sas matic lituani lfs download software compilazione 730 modem usb fax organizer cd country bob s2emu 2 apple imac g5 mezzo carico lavastoviglie nokia 6610 cellulari ricetrasmittente midland leki out uragano charlie passacaglia bach hip hop moda sinosat 1 ozone mia ai hi koko nor madreporite caracas intrattenimento km0 mercedes 140 auto km 0 www max com toshiba 14 hp 5100 tn classic light srl calendario elena e giorgia unuversita di portici amd sempron 2400 box thermaltake w0049 680w reader mmc gabriel lamb novonorm toshiba tecra a5 pm 750 juke box agenzia viaggi baazar bologna seether broken feat amy lee lyrics video de la marcha radetzky kirk score foto mare blu sukan eulma, el- eva3000 the entertainer scott joplin soffitto plasma ricevitore per parabola as rock 775v88 solo con te le stelle e il mare wintv 1100 logitech cordless v500 cugine ram ddr pc1600 gallerie di foto e video tette visual studio tools fuck that mordillo find it la ragazza di nome giulio pentium centrino 1 6 acer ex -z40 imc vs us www giussani com mike jeans corti donna the movies inizia le riprese alkemi me la cavero hub porte usb foto roberta giarrusso www lee ryan com zucchero miele e peperoncino film dvd immagini e artwork per the punisher giochi e accessori di lancio per la nuova console microsoft in europa ==Beschreibung== Autor: Alberto Pachera

Plugin zeigt Systeminformationen:

  • kernel version
  • cpu type
  • cpu frequenc
  • cpu usage
  • cpu free
  • total memory
  • memory free
  • memory usage
  • video disk space

Inhaltsverzeichnis

Bilder

kurze beschreibung

Softwareanforderungen

  • sensors (optional)

Installation

Source

Arch-Linux

pacman -S lm_sensors

Crux

prt-get depinst lm_sensors

Debian

apt-get install lm-sensors

Gentoo

emerge lm_sensors

SuSE

yast -i sensors

Konfiguration

Link setzen.

ln -s $SOURCEDIR/VDR/PLUGINS/src/sysinfo/script/sysinfo.sh /usr/local/bin

Laut README muß die sysinfo.sh nur dann angepasst werden, wenn keine Daten im zweiten Block der OSD Ausgabe zu sehen sein sollten.

Cpu Temp:  xxxxxx       Fan1:  xxxxxx
M/B Temp:  xxxxxx       Fan2:  xxxxxx
bash> sysinfo.sh

Usage: sysinfo.sh {cputemp|cpufan|mbtemp|mbfan}

Bsp:

bash> sysinfo.sh cputemp

Bekommt man hier keine Ausgabe, ist sensors aufzurufen.

bash> sensors
as99127f-i2c-0-2d
Adapter: SMBus Via Pro adapter at e800
Algorithm: Non-I2C SMBus adapter
VCore 1:    1.72 V  (min =   1.53 V, max =   1.87 V)
VCore 2:    0.08 V  (min =   1.53 V, max =   1.87 V)
 3.3V:      3.37 V  (min =   2.97 V, max =   3.63 V)
 5V:        4.99 V  (min =   4.50 V, max =   5.48 V)
 12V:      11.86 V  (min =  10.79 V, max =  13.11 V)
-12V:     -12.08 V  (min = -15.06 V, max = -12.32 V)       ALARM
-5V:       -5.06 V  (min =  -5.48 V, max =  -4.50 V)
fan1:     3792 RPM  (min = 3000 RPM, div = 2)
fan2:        0 RPM  (min = 3000 RPM, div = 2)              ALARM
fan3:        0 RPM  (min = 3000 RPM, div = 2)              ALARM
temp1:        33°C  (limit =   60°C)
temp2:     224.0°C  (limit =  120°C, hysteresis =  100°C)        (beep)
temp3:     224.4°C  (limit =  120°C, hysteresis =  100°C)
vid:       1.700 V
alarms:
beep_enable:
          Sound alarm enabled

Wir nehmen das mal auseinander.

sensors | grep -i 'CPU TEMP' | cut -c 10-18 | tr -d ' '
          ^                    ^              ^
          ^                    ^              Löschen der Leerzeichen
          ^                    ^
          ^                    Gibt 'characters' aus, zeichen 10 bis 18
          ^
          Suchphrase lautet 'CPU TEMP', '-i' steht für 'ignore case distinctions' GROß/klein Schreibung

Folgende Änderung:

- sensors | grep -i 'CPU TEMP' | cut -c 10-18 | tr -d ' '
  sensors | grep -i '^temp1:' | cut -c 10-18 | tr -d ' '

Nun sollte sensors den gewünschten Wert ausgeben:

bash> sysinfo.sh cputemp
 33°C

Bei den anderen Daten ist ähnlich zu verfahren.


Sonstiges

Probleme

  • Bei älteren Versionen von "ps" (welches genutzt wird um "cpu free" anzuzeigen), kann es Probleme mit der Syntax geben sysinfoosd.c:
// Calculate cpu free
ExecShellCmd("CPU=0; for I in `ps -eo ""%C"" | grep ""\\.""`; do CPU=`echo $CPU $I | awk '{ print $1   $2 }'`; done; echo $CPU", cTemp);
                               ^^^^^^^^^^^^^
  • Sieht man am besten auf der Konsole, anstatt einzelne WERTE... wird (not found) ausgegeben:
~# ps e%C
spec value %C not found
  • Änderung:
// Calculate cpu free
- ExecShellCmd("CPU=0; for I in `ps -eo ""%C"" | grep ""\\.""`; do CPU=`echo $CPU $I | awk '{ print $1   $2 }'`; done; echo $CPU", cTemp);
  ExecShellCmd("CPU=0; for I in `ps xu | awk '{ print $3 }' | grep ""\\.""`; do CPU=`echo $CPU $I | awk '{ print $1   $2 }'`; done; echo $CPU", cTemp);


Links

  1. Sensors Projekt
  2. Sensors Howto
  3. Homepage des Plugins tw. eng. Rest italienisch
In anderen Sprachen