📄 gkrellm.1
字号:
some good (or bad) ideas. If you have a recent motherboard, skip thefollowing..PPAnyway, to do this calibration, take two real CPU temperature readingscorresponding to two sensor reported readings. To get the realreadings, you can trust that your motherboard manufacturer has donethis calibration and is reporting accurate temperatures in the bios,or you can put a temperature probe directly on your CPU case (and thisis where things get impractical)..PPHere is a hypothetical CPU calibration procedure. Make sure.B gkrellmis configured with default factors of 1.0 and offsets of 0 and is reportingtemperatures in centigrade:.PP.IP "1 \(bu"Power on the machine and read a real temperature T1 from the bios ora temperature probe. If reading from the bios, proceed with bootingthe OS. Now record a sensor temperature S1 as reported by.B gkrellm..IP "2 \(bu"Change the room temperature environment (turn off your AC or changecomputer fan exhaust speed). Now repeat step 1, this time recordinga real temperature T2 and.B gkrellmreported sensor temperature S2..IP "3 \(bu"Now you can calculate the correction factor and offset you needto enter into the Sensor configuration tab:.PP.RS.nfFrom:s - S1 t - T1------ = ------S2 - S1 T2 - T1 T2 - T1 S2*T1 - S1*T2t = s * ------- + ------------- S2 - S1 S2 - S1So: T2 - T1 S2*T1 - S1*T2factor = ------- offset = ------------- S2 - S1 S2 - S1.fi.RE.SS "Voltage Sensor Corrections".PPYou need to read this section only if you think the default voltage correctionfactors and offsets are incorrect. For Linux and lm_sensors and sysfs sensors this would be if.B gkrellmdoes not know about your particular sensor chip.For MBM with Windows, the default values should be correct..PPMotherboard voltage measurements are made by a variety of sensorchips which are capable of measuring a small positive voltage.GKrellM can display these voltage values and can apply a correctionfactor, offset, and for the negative voltages of some chips (lm80),a level shifting reference voltage to the displayed voltage.There are four cases to consider:.PP.IP "1 \(bu"Low valued positive voltages may be directly connected to the inputpins of the sensor chip and therefore need no correction. For these,the correction factor should be 1.0 and the offset should be 0..IP "2 \(bu"Higher valued positive voltages will be connected to the input pinsof the sensor chip through a 2 resistor attenuation circuit. For these,the correction factor will be a ratio of the resistor values and theoffset will be 0..IP "3 \(bu"Negative voltages will be connected to the input pins of the sensorthrough a 2 resistor attenuation circuit with one of the resistorsconnected to a positive voltage to effect a voltage level shift.For these (lm80), the correction factor and offset will be ratios of theresistor values, and a reference voltage must be used..IP "4 \(bu"Some sensor chips (w83782, lm78) are designed to handle negative inputswithout requiring an input resistor connected to a voltage reference.For these, there will be a correction factor and a possible offset..PP.RS.nfFor cases 2 and 3, the sensor chip input network looks like: Vs o----/\\/\\/---o-------------o Vin R1 | o--/\\/\\/--o Vref R2.fi.RE.PP.IP "where,".RS.TP.I "Vs"is the motherboard voltage under measurement.TP.I "Vin"is the voltage at the input pin of the sensor chip and therefore isthe voltage reading that will need correction..TP.I "Vref"is a level shifting voltage reference. For case 2, Vref is groundor zero. For case 3, Vref will be one of the positive motherboardvoltages..RE.PPThe problem then is to compute correction factors and offsets as a functionof R1 and R2 so that GKrellM can display a computed motherboard voltage Vsas a function of a measured voltage Vin..PPSince sensor chip input pins are high impedance, current into the pins maybe assumed to be zero. In that case, the current through R1 equals currentthrough R2, and we have:.PP.RS.nf (Vs - Vin)/R1 = (Vin - Vref)/R2Solving for Vs as a function of Vin: Vs = Vin * (1 + R1/R2) - (R1/R2) * VrefSo, the correction factor is: 1 + R1/R2 the correction offset is: - (R1/R2) Vref is specified in the config separately from the offset (for chips that need it)..fi.RE.PPFortunately there seems to be a standard set of resistor values usedfor the various sensor chips which are documented in the lm_sensordocumentation. The GKrellM sensor corrections are similar to the computelines you find with lm_sensors, with the difference that lm_sensors has anexpression evaluator which does not require that compute lines be simplifiedto the single factor and offset required by GKrellM. But you can easilycalculate the factor and offset. For example, this lm_sensor compute linefor a case 2 voltage:.PP.RS.nf compute in3 ((6.8/10)+1)*@ , @/((6.8/10)+1).fi.RE.PPyields a correction factor of ((6.8/10)+1) = 1.68and an offset of zero..PPNote that the second compute line expression is not relevant in GKrellMbecause there is never any need to invert the voltage reading calculation.Also, the compute line '@' symbol represents the Vin voltage..PPA more complicated compute line for a case 3 voltage:.PP.RS.nf compute in5 (160/35.7)*(@ - in0) + @, ...can be rewritten: compute in5 (1 + 160/35.7)*@ - (160/35.7)*in0, ...so the correction factor is (1 + 160/35.7) = 5.48and the correction offset is -(160/35.7) = -4.48and the voltage reference Vref is in0.fi.RE.PPHere is a table of correction factors and offsets based on some typicalcompute line entries from /etc/sensors.conf:.PP.RS.nf Compute line Factor Offset Vref -------------------------------------------------lm80 in0 (24/14.7 + 1) * @ 2.633 0 - in2 (22.1/30 + 1) * @ 1.737 0 - in3 (2.8/1.9) * @ 1.474 0 - in4 (160/30.1 + 1) * @ 6.316 0 - in5 (160/35.7)*(@-in0) + @ 5.482 -4.482 in0 in6 (36/16.2)*(@-in0) + @ 3.222 -2.222 in0LM78 in3 ((6.8/10)+1)*@ 1.68 0 - in4 ((28/10)+1)*@ 3.8 0 - in5 -(210/60.4)*@ -3.477 0 - in6 -(90.9/60.4)*@ -1.505 0 -w83782 in5 (5.14 * @) - 14.91 5.14 -14.91 - in6 (3.14 * @) - 7.71 3.14 -7.71 -.fi.RE.SS "Command launching".PPMany monitors can be set up to launch a command when you click onthe monitor label. When a command is configured for a monitor, itslabel is converted into a button which becomes visible when the mouseenters the panel or meter area of the label. If the command is aconsole command (doesn't have a graphical user interface), thenthe command must be run in a terminal window such as xterm, eterm,or Gnome terminal. For example running the "top" command would take:.TPxterm -e top.PPYou can use the command launching feature to run commands related tomonitoring functions, or you may use it to have a convenient launchfor any command. Since.B gkrellmis usually made sticky, you can haveeasy access to several frequently used commands from any desktop.This is intended to be a convenience and a way to maximize utilizationof screen real estate and not a replacement for more full featuredcommand launching from desktops such as Gnome or KDE or others.Some launch ideas for some monitors could be:.TP.I calendar:gnomecal, evolution, or ical.TP.I CPU:xterm -e top or gps or gtop.TP.I inet:gftp or xterm -e ftpwho.TP.I net:mozilla, galeon, skipstone, or xterm -e slrn -C-.PPAnd so on... Tooltips can be set up for these commands..SS "Alerts".PPMost monitors can have alerts configured to give warnings and alarmsfor data readings which range outside of configurable limits. Whereuseful, a delay of the alert trigger can be configured. A warning oralarm consists of an attention grabbing decal appearing and an optionalcommand being executed.For most monitors the command may contain thesame substitution variables which are available for display in thechart or panel label format strings and are documented on configurationInfo pages. Additionally, the hostname may be embedded in the commandwith the $H substitution variable..PPIf you have festival installed, either a warn or alarm commandcould be configured to speak something. For example a CPU temperaturealert warn command could just speak the current temperature with:.nf sh -c "echo warning C P U is at $s degrees | esddsp festival --tts".fiAssuming you have esd running..SH "THEMES".PPA theme is a directory containing image files and a.IR gkrellmrcconfiguration file. The theme directory may be installed inseveral locations:.PP.RS.nf~/.gkrellm2/themes/usr/local/share/gkrellm2/themes/usr/share/gkrellm2/themes.fi.RE.PPFor compatibility with Gtk themes, a.B gkrellmtheme may also be installed as:.PP.RS.nf~/.themes/THEME_NAME/gkrellm2/usr/share/themes/THEME_NAME/gkrellm2.fi.RE.PPFinally, a theme you simply want to check out can be untarred anywhere andused by running:.PP.RS.nfgkrellm -t path_to_theme.fi.RE.PPIf you are interested in writing a theme, go to the Themes pageat.IR http://www.gkrellm.netand there you will find a Theme making reference..SH "PLUGINS".PP.B gkrellmtries to load all plugins (shared object files ending in .so)it finds in your plugin directory.IR ~/.gkrellm2/plugins.The directories.IR /usr/local/lib/gkrellm2/pluginsand.IR /usr/lib/gkrellm2/pluginsare also searched for plugins to install..PPSome plugins may be available only as source files and they willhave to be compiled before installation. There should be instructionsfor doing this with each plugin that comes in source form..PPIf you are interested in writing a plugin, go to the Plugins pageat.IR http://www.gkrellm.netand there you will find a Plugin programmers reference..SH "CLIENT/SERVER"When a local.B gkrellmruns in client mode and connects to a remote.B gkrellmdserver all builtin monitors collecttheir data from the server. However, the client.B gkrellmprocess is runningon the local machine, so any enabled plugins will run in the localcontext (Flynn is an exception to this since it derives its data fromthe builtin CPU monitor). Also, any command launching will run commandson the local machine..SH "FILES".TP.I ~/.gkrellm2User gkrellm directory where are located configuration files, user's pluginsand user's themes..TP.I ~/.gkrellm2/pluginsUser plugin directory..TP.I /usr/lib/gkrellm2/pluginsSystem wide plugin directory..TP.I /usr/local/lib/gkrellm2/pluginsLocal plugin directory..TP.I ~/.gkrellm2/themesUser theme directory..TP.I ~/.themes/THEME_NAME/gkrellm2User theme packaged as part of a user Gtk theme..TP.I /usr/share/gkrellm2/themesSystem wide theme directory..TP.I /usr/local/share/gkrellm2/themesLocal theme directory..TP.I /usr/share/themes/THEME_NAME/gkrellm2System wide theme packaged as part of a system wide Gtk theme..SH "AUTHORS"Bill Wilson <billw@gkrellm.net>.http://www.gkrellm.net/.SH "SEE ALSO".BR fstab (5),.BR sudo (1),.BR mount (8),.BR pppd (8),.BR umount (8)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -