Sysinfo-plugin

Aus VDR Wiki
Wechseln zu: Navigation, Suche

mafijas la sfinge zucchero zu co il volo nincsen arra big tom hanks spiagge blu peugeot 206 campania diffusori apart estro fides spa applicazioni java sony ericsson la data di xbox live americano hex tv cabo www onet pl donadoni video beheading paul ca ve lsrl modelle nudo aer simulator elisa abruzzo infisso legno como plasma hyundai www regione lombardia it sinfonia n40 mozart gatti sanomi quarantino vianello casio exz57 torriglia wenders inedito videi scandali tv mivar 29 testament crescete e moltiplicatevi alberghi a mentone tvc samsung dscw7 sony cuccioli box set tuta bambina lavatrice aaa mpeg2 dvd plug tania lamana testi di gianni vezzosi testo di te c hanno mai mannato www lesbo super com doom (pc) quesiti di analisi matamatica i honda civic ctdi love parade dj decks e fx biglietti anastasia last minute caraibi ragazza di genova assunzione slalom in sicilia pompa di calore inverter 12000 btu free love ads the creep non amarmi remix maine giochi motorola v3 mujer encuerada nokia 6021 colori usher and burn maros lg 600 ricevimenti castello ottobre decapitazione pieffe dragostea din tei english belleville dissipatori e ventole computer audiokey 1 gb fm www pappagalli it murena hector a www fdl it directa spanking videos balser ewald arredamento giapponese interpretazione dei sogni on line souvenir gigi d agostino lettore compact flash memory card luxsat adventury scooby doo portachiave cover pooh pantaloni adidas uomo foto xxx usa frigorifero classe a candy lg home theater wireless pavimento per esterni brat toner epson epl5800 barba rossa childnude sfondi su costantino alcyone (letteratura) gang ang dungeons and dragons online parla da solo spirit packard vagina di pamela anerson indeo xp para windows bloccare cartelle sexi piedi donne sui monti con annette vol 01 alice dj motherload pisc nikotini georgos mazonakis router switch e la vida es un carnaval mini moto polini peso 12 kg non me lo so spiegare tizziano convertitore mp3 mmf c4 grigio lettore cf usb 2 ultimate matrix collection mono amplificatore amplificatori phantom planet lyrics la taverna dello squalo sodimm pc100 peugeot 307 hdi xs www baronerosso tr it il fiume imovane grandsoleil distributori periodici per edicola canon dcc70 electric blue pitgirls hard disk cooler cessa halo fa gli auguri di san valentino serials dvd to vcd svcd avi converter cover ken park the long and winding road testo bustamove 3 sony vgn fs215b batterie per panasonic samsung htp10 salis n salis what you waiting for mature movies key csat astra opel varese moulinex scope elettriche www fastwebnet it volvo automatica photosmart 7760 tastiera ipaq lisboa antiga pc card lettore soul control chocolate ostello parigi microtek scanmaker i700 se kyocera 1010 is it cause i am cool violent zaboravljas vendita giochi playstation 2 dvd ultraslim foto por magico 9 2 cartoline publiweb foto arnaldo caprai sagrantino canzoni di biagio antonacci machine head pentium 4 3 ghz smar golf 1 6 2003 piatto copenhagen jane carrera rebel formula robert tepper no easy way out sesso contro kungfu lowrider tutte calde com capezzoloni switch mouse breguet abrahamlouis ansaldo giovanni (giornalist ctz piovani nicola dragostea dim www amiche da ru biglietti ferroviari charpente metallique nike wmns air max monitor philips 190s5fs mio sole mio midi champions league superenalotto estrazione copulativo videclip lo strano percorso video che notte ragazzi eddie albert km0 fiat nuova panda 1 2 ==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