Sysinfo-plugin

Aus VDR Wiki
Wechseln zu: Navigation, Suche

download atomix mp3 magic games resident evil 4 arriva su playstation 2 himno peru la terza generazione musica en espanol valentino 1115 notebook 12 trucco ps2 gta3 dublino shopping videos de regeton da como daniele oh karol volano chat gjellerup, karl adolf freno a mano guerra de viet nam venezia berlino daniela di peppino di capri driver dex 2500 david gnomo consumado dipinto paesaggio citofono np 6317 obiettivo sigma 18-200 baciami paolo meneguzzi www google copm fight club ha un nuovo trailer paolo meneguzzi testi traduzione canzone frankie big angel kodak cavo usb test sociologici chomage camicie da donna maniche lunghe popmail rendimiento en encofrados metalicos gioco carabinieri palmari gps acer logitech harmony 885 noleggio camper sardegna gta trucchi san andreas sigla 90 minuto foto ballerini la tutela dell ambiente lola lacie hard disk usb messaggio festa donna energizer 2500 mis read mizar srl di 624 istituto salvemini www mashaworld com los quarenta 2004 simphony cugine incesto fiat panda 1100 gli anni 96 tessiner alpen fox calendario haldensleben epson stampante multifunzione stylus juegos pokemon geosat navigatore fiat stilo selespeed sangrando nike shox andalucia milano istanbul ragazze perizoma eva angelina notebook alimentatore peter tish solaro tell me know why do linksys wireless printserver handset manager 6 0 passion de gavilanes mp3 sistema totocalcio catania francoforte biglietti aerei inculate di solo uomini navigatore satellitare gps d100 acer onkyo tx sr602e terror beach montorsi staffe da soffitto saoke csi crime scene investigation il film infami congelatore whirlpool classe a wipeout fusion stanley kubrick collection ivete mtv ati radeon 9600pro sapphire cd my chemical romance maglie almeria hotel bonadies lg micro hi fi prezzo motorino unione it sesso bestiale la scoperta del fuoco sasch soffici magazzini messina de pinguino calibro corsoio game boy advance sp artic blue dj otzi anton aus tirol videoclip rap fottbal auto noleggio benevento jvc dr-m1 inside jupiter elettrostimolatori gymmy km 0 lancia ypsilon newport news va kamsutra caterina aereoplano r200 epson cartucce jetzt geht s los solo donne mature mendelssohn solo fuck it p5gdc deluxe nokia smartphone umts mercedes 320 diesel vive la vida gusanito barbara durso stripoker athlon 64 bit 2800 philips aj 3980 silver vetrina il commissario maigret - il pazzo di bergerac big sister praga amd athlon64 3200 (socket 939) vera gemma hoover floormate i pih sessso gratis technisat skystar usb hard disk hitachi 40gb per notebook voskhod luna nera scaricare stasera la luna denunce sky crimsom rooom bottiglie olio immobiliare banche jej piekne czarne oczy de grenet topless italo music usb flash mp3 erotc filtri 52mm anchio ho il diritto di nascere bilancia elettroniche staf srl discovery 2001 td5 gamebot trova le parole batterie ricaricabili stilo aa polyfilm pallottole su broadway minueto adorable lola rifasamento let get to started dvd lettore usb dimage e 323 konica minolta energy v2 4i hyundai l70n 17 pamela anderson xxx la politica philips casse mms460 free bigcockmovies acer 3022 wlmi adattatori prese corrente ivana spagna e penso a te www ulss 12 ve it gioielli acciaio seno 7 toner hp color laserjet 3700n furgoni cavalleria rusticana gatto luciano treviso misery why me telefonini motorola v3 ciber mice test sul futuro catalogo rolex www titti bianchi it iran 666 com micael doble residence orchidea diano marina caratteristiche auto gulistan telecomando universale 6 ==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