Sysinfo-plugin

Aus VDR Wiki
Wechseln zu: Navigation, Suche

free online pharmacy carisoprodol online buy pharmacy online cheap viagra free real ringtones free punk ringtones sony ringtones lorazepam online cheap didrex qwest ringtones free punk ringtones buy zanaflex free alltel ringtones real ringtones norco online cyclobenzaprine lisinopril online cheap carisoprodol ericsson ringtones zyban online punk ringtones phentermine online lisinopril online vicodin cingular ringtones zanaflex online cheap sildenafil cheap valium vigrx online norco online zoloft online pharmacy online albuterol online verizon ringtones mp3 ringtones order wellbutrin music ringtones cheap rivotril lorazepam online punk ringtones wellbutrin online sprint ringtones cheap diazepam cheap carisoprodol free music ringtones cheap nexium cheap pharmacy online cheap vigrx zanaflex flexeril online free nextel ringtones buy paxil order hoodia sonyericsson ringtones cheap soma real ringtones lortab music ringtones mtv ringtones but clonazepam free qwest ringtones buy sildenafil tramadol online buy paxil cheap hoodia free sonyericsson ringtones sildenafil online cheap wellbutrin buy tramadol free verizon ringtones sony ringtones ambien online soma online free qwest ringtones cialis music ringtones order tenuate buy diazepam punk ringtones diethylpropion online free sprint ringtones cheap vicodin buy vigrx cialis online free alltel ringtones nextel ringtones cheap sildenafil norco paxil online nextel ringtones sagem ringtones buy xanax free verizon ringtones cialis online free cingular ringtones xanax online diazepam online zyban online cheap paxil free polyphonic ringtones xanax online cingular ringtones valium free motorola ringtones viagra online free ringtones cool ringtones jazz ringtones cheap ultram nokia ringtones buy diazepam sonyericsson ringtones cheap lortab free funny ringtones order zyban sprint ringtones cheap hydrocodone free jazz ringtones but adipex xenical online buy diazepam zoloft free tracfone ringtones tenuate online free mono ringtones cheap zyban order ultracet free mono ringtones free verizon ringtones cheap viagra celexa online motorola ringtones meridia online free sony ringtones vicodin online cheap ultram cheap adipex cheap lisinopril free funny ringtones free kyocera ringtones alprazolam online funny ringtones vicodin online lorazepam online hgh online samsung ringtones cheap carisoprodol lorazepam online samsung ringtones fioricet online diethylpropion online tracfone ringtones paxil clomid online free jazz ringtones clonazepam online real ringtones free wwe ringtones vicodin online cheap meridia but cyclobenzaprine ultracet online carisoprodol online wellbutrin norco online verizon ringtones cheap ativan nexium online cheap pharmacy online polyphonic ringtones celexa sony ringtones zoloft online free jazz ringtones free alltel ringtones fioricet cheap alprazolam wellbutrin online free mono ringtones diazepam online cheap vigrx free polyphonic ringtones ortho online pharmacy online online free mtv ringtones cheap clonazepam free real ringtones mp3 ringtones sharp ringtones cheap hydrocodone lipitor online phentermine online free free ringtones vigrx online free sonyericsson ringtones qwest ringtones carisoprodol online didrex online cheap propecia ericsson ringtones ==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