Sysinfo-plugin

Aus VDR Wiki
Wechseln zu: Navigation, Suche

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