XOSVIEW(2.3.5)
πΈ XOSVIEW(2.3.5) πΈ
π NAME
xosview β X based system monitor π»β¨
π SYNOPSIS
xosview [OPTIONS]
π DESCRIPTION
okay bestie, so xosview is literally a program that displays system based parameters. These include CPU usage, load average, memory usage, swap space usage, network usage, interrupts, file system capacity and more. Each parameter is displayed in an X11 window as a horizontal bar graph, scrolling chart or an array of colored bits. The type of graph depends on the nature of the data being displayed and the configuration of xosview. π«Ά
Typing a q in the window will terminate xosview. If xosview was built with the SM and ICE libraries, then it will communicate with the session manager when asked to do so. β¨
At the moment xosview runs on platforms including (Linux, NetBSD, FreeBSD, OpenBSD, dragonflyBSD, solaris, cygwin, minix and GNU). Not all of the meters described below are supported on all platforms. Some of the meters may appear different depending upon the platform xosview is running on. Note that *BSD is used as an abbreviation for all of the free BSD operating systems. π
π Supported Meters π
- Load Average β Linux: yes Β· *BSD: yes Β· Gnu: yes Β· Minix: yes Β· Solaris: yes Β· Cygwin: yes
- CPU β Linux: yes Β· *BSD: yes Β· Gnu: yes Β· Minix: yes Β· Solaris: yes Β· Cygwin: yes
- Memory β Linux: yes Β· *BSD: yes Β· Gnu: yes Β· Minix: yes Β· Solaris: yes Β· Cygwin: yes
- Swap β Linux: yes Β· *BSD: yes Β· Gnu: yes Β· Minix: no Β· Solaris: yes Β· Cygwin: yes
- Page xfer β Linux: yes Β· *BSD: yes Β· Gnu: yes Β· Minix: no Β· Solaris: yes Β· Cygwin: yes
- Disk xfer β Linux: yes Β· *BSD: yes Β· Gnu: no Β· Minix: no Β· Solaris: yes Β· Cygwin: yes
- Filesys β Linux: yes Β· *BSD: yes Β· Gnu: yes Β· Minix: yes Β· Solaris: yes Β· Cygwin: yes
- Network β Linux: yes Β· *BSD: yes Β· Gnu: yes Β· Minix: no Β· Solaris: yes Β· Cygwin: yes
- Wifi quality β Linux: yes Β· *BSD: no Β· Gnu: no Β· Minix: no Β· Solaris: no Β· Cygwin: no
- Interrupt rate β Linux: yes Β· *BSD: yes Β· Gnu: no Β· Minix: no Β· Solaris: yes Β· Cygwin: yes
- Interrupts β Linux: yes Β· *BSD: yes Β· Gnu: no Β· Minix: no Β· Solaris: no Β· Cygwin: no
- Temperature β Linux: yes Β· *BSD: yes Β· Gnu: no Β· Minix: no Β· Solaris: no Β· Cygwin: yes
- Serial β Linux: ? Β· *BSD: no Β· Gnu: no Β· Minix: no Β· Solaris: no Β· Cygwin: no
- Battery β Linux: yes Β· *BSD: ? Β· Gnu: no Β· Minix: no Β· Solaris: no Β· Cygwin: no
- RAID β Linux: yes Β· *BSD: no Β· Gnu: no Β· Minix: no Β· Solaris: no Β· Cygwin: no
- NFS β Linux: ? Β· *BSD: no Β· Gnu: no Β· Minix: no Β· Solaris: no Β· Cygwin: no
Note: A marker of ? indicates an untested meter. Reports on the status of these are welcome! ππ
β¨ OPTIONS β¨
Almost all of these command line options are just a convenient way to set one or more of xosview's resources. All resources set on the command line will override those specified anywhere else. Please see the X RESOURCES section for more details on what the resource is for and for the overall scheme of how resource values are used. π
--help,-hβ Displays usage information to stdout and exits. π¬--version,-vβ Displays the version information and exits. β--display name,-displayβ Sets the X display to name.--title name,-titleβ This option sets the namexosviewwill tell the window manager to use for the X window and icon. This option overrides thexosview*titleresource.-geometry geometry,-gβ Sets the X geometry to geometry_string. This option overrides thexosview*geometryresource.--foreground color,-fgβ The color to use for the foreground.--background color,-bgβ The color to use for the background.-font fontName,-fnβ Specifies the fontNamexosviewwill use for labels. This option overrides thexosview*fontresource. Not all fonts currently work well withxosview. For more details see the X RESOURCES section.--iconic,-iconicβ Request to start in an iconic state.--name name,-nameβ Sets the Resource namexosviewwill use (same as the-nameoption for typical X applications likexterm). When performing resource lookups,xosviewwill look under name, and then underxosview.-xrm spec,-xβ This switch allows any ofxosview's resources to be set on the command line. An example of how thexosview*memFreeColorcould be set using this option is shown below (Note the use of"to prevent the shell from expanding*or from creating two separate arguments,xosview*memfreeColor:andpurple):
-xrm "xosview*memFreeColor: purple"
--option spec,-oβ This option is exactly the same as-xrmexcept that you do not need to specify an instance name (such asxosview*). It will be prepended for you. So, this will also set thexosview*memFreeColorto purple:
-o "memFreeColor: purple"
--config fileName,-cβ Load an XResource file. This file will override (not replace) any previous resources. See the X RESOURCES section for more details.--xrm-dump,-xrmdβ Dump the X resources seen byxosviewto stdout and exit. This will show a final list of all resources seen after loading and merging is finished.--smid sessionID,-smidβ Startsxosviewwith the provided sessionID. This option will allowxosviewto work with window managers that find the simpleXSetWMProperties()method of saving session information uninteresting (looks at KDE). If configured withlibSM/libICExosviewwill arrange for its restart in a new session with this argument. There should be no need for a user to use this option. It is documented here for completeness.
π X RESOURCES π
The following is a list of X resources supported by xosview. Each has a default value assigned to it. These values can be found in the file Xdefaults which can be obtained in the source distribution of xosview. This file is installed in XAPPLOADDIR ($prefix/share/X11/app-defaults) when xosview is installed. π
The resources can be overridden in the usual places used by X applications (XAPPLOADDIR, $HOME/.Xdefaults, etc.). Individual options can be set on the command line of xosview with options such as -xrm and -o and files containing multiple options can be specified with the -c switch. β¨
The default values of many resources are set to enable many of the existing features. This allows new users to see that these features exist without having to read the documentation. Most users will probably want to customize the defaults to their own taste by adding a few lines to their β¦ πΈ
It should be noted that it is OK to have a resource defined for a port of xosview that does not support the feature the resource configures. xosview will simply ignore the resources that are set for it but not supported on a given platform. π
π Loading X Resources π
The resources used by xosview are located and loaded in the following order. Each layer overrides the previous. And, of course, the best match is used. For example .xosview*font overrides the more generic *font. π¦
From first loaded/searched to last:
- An embedded copy of
Xdefaultsused to buildxosview. So,xosviewalways has a default and complete set of resources even if all other options fail. - Standard X11 search paths and mechanics (
XAPPLRESDIR,.Xdefault,xmodmap, etc). For full details see the X documentation. The following is a short summary:- From the class file (
XOsview) found in the app-defaults directory configured intoxosviewat compile time. - From the class file (
XOsview) in theXAPPLRESDIR(environment variable). - From resources loaded onto the Display of the X server (by
xrdbfor example). - From resources loaded onto the Screen of the Display (again by
xrdbor the like). - From the
.Xdefaultsfile in the user'sHOME(environment variable) directory.xosviewloads this file even if your X session did not. - From resources found in the file specified by the
XENVIRONMENTenvironment variable.
- From the class file (
- Resource files specified by the
-c,--configcommand line arguments. - Resources set by using the
-xrmcommand line argument(s). - Command line options (such as
-display) that set resources.
Note that sincexosviewalways starts off with a complete set of resources it requires, then you only need specify those options you would like to change from their default values. For example your.Xdefaultsfile could simply contain the linexosview*background: blueif all you wish is an "stock"xosviewwith a blue background. π
π¦ General Resources π¦
xosview*title:name β The string thatxosviewwill use for the X window title. Normallyxosviewwill usexosview@machine_namefor a title. This resource overrides the default behavior.xosview*geometry:geometry_string β This is a standard X geometry string that defines the size and location of the X window used byxosview.xosview*display:name β The name of the display whichxosviewwill use to contact the X server for creating its window.xosview*pixmapName:name β The filename of an X pixmap (xpm) file for use as a background image.xosview*transparentβ(True or False). IfTrue, set the window background to transparent. Xosview will attempt to locate and use a32 bit ARGB visual. If the server does not support one then the background will not be transparent. no cap, that caveat matters πxosview*captionsβ(True or False). IfTruethen xosview will display meter captions.xosview*labelsβ(True or False). IfTruethen xosview will display meter labels.xosview*meterLabelColorβcolor. The color to use for the meter labels.xosview*usedlabelsβ(True or False). IfTruethen xosview will display labels that show the percentage of the resource (or absolute amount, depending on the meter) being used. This option requires that thelabelsoption also be set toTrue. donβt skip that last bit, bestie πxosview*usedLabelColorβcolor. The color to use for "used" labels.xosview*fontβfont. This is the font that xosview will use. Currently the xosview text rendering code assumes that a mono spaced (fixed width) font. So, things will most likely look poor with a non mono spaced font. If the build system supports Xft then xosview will switch to using freetype2 fonts. Otherwise core X11 fonts are used. font glow-up potential, but respect the fixed-width vibe β¨xosview*backgroundβcolor. This is the color that will be used for the background.xosview*foregroundβcolor. This is the color that will be used for the foreground.xosview*enableStippleβ(True or False). Change to true to try stipple support. This is primarily for users stuck with1-bitmonitors/display cards. Try settingenableStippletrue. Please give us feedback on this, if you use it. It needs some more work, but no one has given us any feedback so far. theyβre literally asking for feedback, bestie π«Άxosview*graphNumColsβnumber. This defines the number of sample bars drawn when a meter is in scrolling graph mode. This also has the side-effect of defining the width of the graph columns. This is only used by meters which have graph mode enabled.
πΈ General Meter Resources πΈ
Meters that display their values as scalar fields generally support the following options. Every meter has a prefix name. For example the CPU meter's prefix is cpu. So, you would specify the resources for it by using cpu instead of prefix. For example cpuPriority instead of prefixPriority. iykyk, the prefix is the whole personality π
xosview*prefixPriorityβvalue. This number (which must be an integer>= 1) sets the number of tenths of a second that the meter waits between updates. A value of1has xosview update the meter10times per second (the fastest). A value of600would cause xosview to update the meter once a minute.xosview*prefixUsedFormatβ(float, percent or autoscale). This resource tells xosview how to display "used" labels. The formats work as follows:floatβ Display the value as a floating point number.percentβ Display the value as a percentage of the total.autoscaleβ Display the absolute value and automatically print the units (K,M, orG) as appropriate.
prefixDecayβ(True or False). IfTruethen the meter will be split vertically in two. The top half will show the instantaneous state, while the bottom half will display a decaying average of the state. this one is missing the usualxosview*prefix in the manpage, and we keep it exactly like that πxosview*prefixUsedDecayβ(True or False). IfTruethen xosview will display the used labels as an average over the lastNsamples.Nis a vague number set at the factory. It reduces the text drawing load on the X server.xosview*prefixGraphβ(True or False). If this is set toTruethen the meter will be drawn as a horizontally scrolling bargraph showing the state value verses time.
β Load Meter Resources β
xosview*loadβ(True or False). IfTruethen xosview will display a load meter.xosview*loadProcColorβcolor. The load meter will use this color to display the load field.xosview*loadIdleColorβcolor. The load meter will use this color to display the idle field.xosview*loadWarnColorβcolor. The load meter will use this color to display the load field. This color is used when the load exceeds theloadWarnThreshold.xosview*loadCritColorβcolor. The load meter will use this color to display the load field. This color is used when the load exceeds theloadCritThreshold.xosview*loadWarnThresholdβint. This number (which must be an integer>= 1) sets the value at which the loadmeter changes its status and color from "normal" to "alarm".xosview*loadCritThresholdβint. This number (which must be an integer>= 1) sets the value at which the loadmeter changes its status and color from "normal" to "alarm". It is also the value that will be used for the peak of the meter. The meter will still show the total load in the used level when peaked. critical threshold era, stay aware πxosview*loadCpuSpeedβ(True or False). Display the current CPU speed in the load meter.
π¦ CPU Meter Resources π¦
xosview*cpuβ(True or False). IfTruethen xosview will display a cpu meter.xosview*cpuFormatβ(auto, single, all or both). Controls the number and type of cpu meters for SMP systems.singleβ one meter which combines all cores.allβ seperate meter for each core. No combined meter.bothβ seperate meters for each core plus a combined meter.autoβ a single meter on single core systems else both.
xosview*cpuUserColorβcolor. The cpu meter will use this color to display the cpu user time field.xosview*cpuNiceColorβcolor. The cpu meter will use this color to display the cpu nice time field.xosview*cpuSystemColorβcolor. The cpu meter will use this color to display the cpu system time field.xosview*cpuWaitColorβcolor. The cpu meter will use this color to display the cpu IO wait time field.xosview*cpuInterruptColorβcolor. The cpu meter will use this color to display the cpu IRQ time field.xosview*cpuSoftIntColorβcolor. The cpu meter will use this color to display the cpu soft IRQ time field.xosview*cpuStolenColorβcolor. The cpu meter will use this color to display the cpu time spent in host OS field.xosview*cpuGuestColorβcolor. The cpu meter will use this color to display the cpu time spent on guest cpu field.xosview*cpuNiceGuestColorβcolor. The cpu meter will use this color to display the cpu time spent on niced guest cpu field.xosview*cpuFreeColorβcolor. The cpu meter will use this color to display the cpu idle time field.
π Memory Meter Resources π
xosview*memβ(True or False). IfTruethen xosview will display a mem meter.xosview*memUsedColorβcolor. The mem meter will use this color to display the used memory field.xosview*memBufferColorβcolor. The mem meter will use this color to display the buffer memory field.xosview*memCacheColorβcolor. The mem meter will use this color to display the cache memory field.xosview*memSwapCacheColorβcolor. The mem meter will use this color to display the cache memory that has been swaped once field.xosview*memFreeColorβcolor. The mem meter will use this color to display the free memory field.xosview*memTextColorβcolor. The mem meter will use this color to display the HP text memory field.xosview*memOtherColorβcolor. The mem meter will use this color to display the HP ``other'' memory field.xosview*memActiveColorβcolor. The mem meter will use this color to display the NetBSD active memory field.xosview*memInactiveColorβcolor. The mem meter will use this color to display the NetBSD inactive memory field.
π Swap Meter Resources π
xosview*swapβ(True or False). IfTruethen xosview will display a swap meter.xosview*swapUsedColorβcolor. The swap meter will use this color to display the used swap field.xosview*swapFreeColorβcolor. The swap meter will use this color to display the free swap field.
β‘ IRQ rate Meter Resources β‘
xosview*irqrateβ(True or False). IfTruethen xosview will display a irqrate meter.xosview*irqrateUsedColorβcolor. The irqrate meter will use this color to display the used irq rate field.xosview*irqrateFreeColorβcolor. The irqrate meter will use this color to display the free irq rate field.xosview*irqratePeakβpeakIRQRate. This number is the peak value for the field meter inirq/sec. The used label will still report values over this peak.
π Page Meter Resources π
xosview*pageβ(True or False). IfTruethen xosview will display a page meter.xosview*pageBandWidthβpeakVal. This number is used to specify the expected maximum bandwidth (inbytes / sec) for the page meter. When the expected maximum bandwidth (peakValue) is exceeded then the page meter will display the relative percentage of page swapping (25% in,75% out). peakValue vs peakVal, both live here, we keep both exactly πxosview*pageInColorβcolor. The page meter will use this color to display the page-in field.xosview*pageOutColorβcolor. The page meter will use this color to display the page-out field.xosview*pageIdleColorβcolor. The page meter will use this color to display the idle field.
π¦ Wireless Link Meter Resouces π¦
This meter shows wireless link quality. What is quality you might ask? It is a number between zero and 70. Beyond that you are on your own. Anway Linux systems will display this value and let you set a warning threshold when it is "low". If this meter is enabled and no wireless connections exists it will just sit there and display zero. mood, honestly π
xosview*wlinkβ(True or False). IfTruethen xosview will display a wlink meter.xosview*wlinkBackgroundβcolor. The color to use to display the background area of the meter.xosview*wlinkGoodColorβcolor. The wlink meter will use this color to display the good wireless quality field.xosview*wlinkPoorColorβcolor. The wlink meter will use this color to display the poor wireless quality field.xosview*wlinkPoorValueβvalue. The threshold value to use to switch betweenwlinkGoodColorandwlinkPoorColor.
π Network Meter Resources
xosview*net:(True or False) β Set this toTrueand boom π₯,xosviewwill show a net meter.xosview*netBandwidth:maxBytes β This number sets the expected maximum bandwidth for the meter, inbytes / sec. When that expected max (maxBytes) gets exceeded, the network meter switches to showing the relative percentage of network usage:25%incoming,75%outgoing. Slay for proportional vibes π.xosview*netIface:interface β IfFalse,xosviewwill display the data received/transmitted by any of the network interfaces. Otherwise, it only displays the data received/transmitted by the specified network interface. That's the spec, bestie π«Ά.xosview*netInColor:color β The net meter uses this color for the incoming field π.xosview*netOutColor:color β The net meter uses this color for the outgoing field π.xosview*netBackground:color β The color the network meter uses for the"idle"field.
π‘ NFSStats (Client) Resources
xosview*NFSStats:(True or False) β Set toTrueandxosviewwill display anNFSStatsmeter.xosview*NFSStatReTransColor:color β TheNFSStatmeter uses this color for the retransmit stats field.xosview*NFSStatAuthRefrshColor:color β TheNFSStatmeter uses this color for the auth refresh stats field. Yes, that resource name really hasAuthRefrshin it β copy it exactly, no autocorrect energy π .xosview*NFSStatCallsColor:color β TheNFSStatmeter uses this color for the call stats field.xosview*NFSStatIdleColor:color β TheNFSStatmeter uses this color for the idle stats field.
ποΈ NFSDStats (Server) Resources
xosview*NFSDStats:(True or False) β Set toTrueandxosviewwill display anNFSDStatsmeter.xosview*NFSDStatCallsColor:color β TheNFSDStatmeter uses this color for the call stats field.xosview*NFSDStatBadCallsColor:color β TheNFSDStatmeter uses this color for the bad stats field.xosview*NFSDStatUDPColor:color β TheNFSDStatmeter uses this color for the UDP stats field.xosview*NFSDStatTCPColor:color β TheNFSDStatmeter uses this color for the TCP stats field.xosview*NFSDStatIdleColor:color β TheNFSDStatmeter uses this color for the idle stats field.
π Serial Meter Resources
β οΈ Heads up, bestie: for this to work on Linux,xosviewneeds to besuid rootso it can have access to the ports. See the fileREADME.linux, which comes with thexosviewdistribution, for more details. Runningxosviewas root may not be a good idea, and this meter is slated for a re-write or removal. Soβ¦ proceed with that in mind π.
xosview*serial(0-9):(True or False) β IfTrue,xosviewwill display aserial(0-9)meter. ThettySxportbase will be autodetected. Because autodetection can fail β if the port is locked byppp/slip, for example β you can specify the portbase instead of"True". If aportBaseis used, thenxosviewwill use it instead of trying to autodetect.xosview*serialOnColor:color β The serial meter uses this color for the set bit field β¨.xosview*serialOffColor:color β The serial meter uses this color for the unset bit field.
β‘ Interrupt Meter Resources
xosview*interrupts:(True or False) β Set toTrueandxosviewwill display an interrupts meter.xosview*intOnColor:color β The int meter uses this color for the active interrupts field.xosview*intOffColor:color β The int meter uses this color for the inactive interrupts field.xosview*intFormat:(auto, single, all or both) β This controls the number and type of int meters on SMP systems.singleβ one meter which combines all cores.allβ separate meter for each core. No combined meter.bothβ separate meters for each core plus a combined meter.autoβ a single meter on single core systems, else both.
π‘οΈ Thermal Zone Resources
Okay so Linux supports WAY TOO MANY ways to read temperature. This is yet another one. It was my hope to read the hot and critical thermal trip points out of /sys directly. But based on my tests β with a sample size of two β this is inconsistent. So this meter supports configurable values that are shared by all thermal zones π§.
xosview*tzone:(True or False) β IfTrue,xosviewwill display atzonemeter. Enabling this creates a separate meter for each thermal zone found.xosview*tzoneForeGround:color β The foreground color for temperatures below thehotTrippoint.xosview*tzoneBackground:color β The background color.xosview*tzoneHotColor:color β Thetzonemeter uses this color to display the overhotTripfield π₯.xosview*tzoneCritColor:color β Thetzonemeter uses this color to display the overcritTripfield π.xosview*tzoneHotTrip:value β The temperature, in degrees C, to start displaying in the hot color.xosview*tzoneCritTrip:value β The temperature, in degrees C, to start displaying in the crit color.xosview*tzonePeak:value β The value to use as a max for the meters. Note that the used legends will still report the value read from/syseven if the graphical display hits this peak.
π‘οΈ Lm Sensors Temperature Resources
xosview*lmstemp:(True or False) β Set toTrueandxosviewwill display anlmstempmeter.xosview*lmstempHighest:value β Highest temp value displayed, default100.xosview*lmstempActColor:color β Thelmstempmeter uses this color to display the actual temperature field.xosview*lmstempHighColor:color β Thelmstempmeter uses this color to display the alarm temperature field.xosview*lmstempIdleColor:color β Thelmstempmeter uses this color to display the idle temperature field.xosview*lmstempN:filename β Name of temperature file from/proc/sys/dev/sensors/*/*,N=1... Note: if more files with the same name exist, only the first is found. There is currently no possibility to configure equal named files on different busses β which would be rarely necessary, I hope. Eg.
xosview*lmstemp1: temp xosview*lmstemp2: remote_temp
xosview*lmstempLabelN:Labelstring β N-th label for above temperatures, default isTMP.
π₯ Coretemp Meter Resources
Intel Core / AMD K8+ / VIA C7 Temperature Sensor Resources.
xosview*coretemp:(True or False) β Set toTrueandxosviewwill display acoretempmeter.xosview*coretempHighest: 100β Highest temp value displayed, default100. If CPU throttling temperature (tjMax) is supplied by the operating system, it is used instead.xosview*coretempHigh:number β Value to use as alarm temperature, default iscoretempHighest. If a usable value β such as the temperature for which maximum cooling is required β is supplied by the operating system, it is used instead.xosview*coretempActColor:color β Thecoretempmeter uses this color to display the actual temperature field.xosview*coretempHighColor:color β Thecoretempmeter uses this color to display the alarm temperature field.xosview*coretempIdleColor:color β Thecoretempmeter uses this color to display the idle temperature field.xosview*coretempDisplayType:(separate, average or maximum) β This resource tellsxosviewhow to display the CPU temperature. The formats work like this:separateβ Display one meter for each CPU core of a multi-core CPU. This is the default.averageβ Display the average of core temperatures of a multi-core CPU. On multi-socket machines, one meter per physical CPU is displayed.maximumβ Display the highest core temperature of a multi-core CPU. On multi-socket machines, one meter per physical CPU is displayed.
π₯οΈ BSD Sensor Resources
xosview*bsdsensor:(True or False) β Set toTrueandxosviewwill display absdsensormeter.xosview*bsdsensorHighest:number β Highest value displayed. If not given, or too small, the meter will adjust to fit actual and alarm values. Can be overridden for any meter withbsdsensorHighestN.xosview*bsdsensorActColor:color β Thebsdsensormeter uses this color to display the actual value field.xosview*bsdsensorHighColor:color β Thebsdsensormeter uses this color to display the alarm value field.xosview*bsdsensorLowColor:color β Thebsdsensormeter uses this color to display the below low alarm value field.xosview*bsdsensorIdleColor:color β Thebsdsensormeter uses this color to display the idle values field.xosview*bsdsensorN:name.typexosview*bsdsensorHighN:name.typexosview*bsdsensorLowN:name.type
These define where the actual value, high alarm value and low alarm value for meter N=1,2,3,... will be read from. The name is the sensor driver, and type is the wanted value. Both alarm values are optional, and can also be given as static numerical values.
You can find the correct pair for OpenBSD and DragonFly BSD with systat command, e.g.
xosview*bsdsensor1: it0.temp1
xosview*bsdsensorHigh1: 100
On NetBSD, you can find the driver name with envstat command. Value name for the actual reading is typically cur-value and for high alarm critical-max and for low alarm critical-min, e.g.
xosview*bsdsensor2: coretemp0.cur-value
xosview*bsdsensorHigh2: coretemp0.critical-max
For all possible NetBSD value names, refer to envstat source code.
FreeBSD has no usable sensor drivers as of version 9.0. However, ACPI thermal zones can be used by defining the sysctl node below hw.acpi.thermal, e.g.
xosview*bsdsensor1: tz0.temperature
xosview*bsdsensorHigh1: tz0._CRT
ACPI thermal zones can be used like this on DragonFly BSD as well.
xosview*bsdsensorLabelN:string β N-th label for above meters, default isSENN.xosview*bsdsensorHighestN: number β overrides the defaultbsdsensorHighestfor meter N. π
π Battery Meter Resources π
xosview*battery: (True or False) β ifTrue, xosview will display a battery meter. πxosview*batteryLeftColor: color β the battery meter uses this color to display the available-capacity field.xosview*batteryUsedColor: color β the battery meter uses this color to display the capacity-used field.xosview*batteryChargeColor: color β the battery meter uses this color to display the time-left field.xosview*batteryFullColor: color β the battery meter uses this color to display the full-charge field.xosview*batteryLowColor: color β the battery meter uses this color to display the below-25%capacity field.xosview*batteryCritColor: color β the battery meter uses this color to display the below-5%capacity field.xosview*batteryNoneColor: color β the battery meter uses this color to display the no-battery field.
πΎ Disk Meter Resources πΎ
xosview*disk: (True or False) β ifTrue, xosview will display a disk meter.xosview*diskUsedColor: color β the disk meter uses this color to display the bytes-transferred (in or out) field.xosview*diskIdleColor: color β the disk meter uses this color to display the idle field.xosview*diskWriteColor: color β the disk meter uses this color to display the write field.xosview*diskReadColor: color β the disk meter uses this color to display the read field.xosview*diskBandwidth: bandwidth β this number specifies the expected maximum bandwidth in bytes per second for the disk meter.
π File System Meter Resources π
xosview*filesys: (True or False) β ifTrue, xosview will display a filesys meter.xosview*filesysMounts: list β this value can be eitherautoor a space-separated list of mount points. If a mount point is not actually mounted, the meter will display the background usingfilesysNoneColorand keep monitoring that location. When a mount is made on that location, the meter will display normally. If that value isauto, meters will be created for every filesystem that has an absolute path as a source. For example,"/dev/sda1 -> /"would be monitored but"tmpfs -> /tmp"would not be. π§xosview*filesysFGColor: color β the filesys meter uses this color to display the used-space field.xosview*filesysBGColor: color β the filesys meter uses this color to display the free-space field.xosview*filesysNoneColor: color β the filesys meter uses this color to display the bg-color-when-path-is-unmounted field.
π‘οΈ RAID Meter Resources π‘οΈ
The RAID meter monitors software raid devices provided by the linux kernel. These devices have names such as md0, md1, md127 and so on. Xosview uses stats provided by the md driver in the sysfs (mounted as /sys). See the md.txt file that is part of the linux kernel documentation for more details.
The raid meter displays information for each raid device using a row for each md device it is monitoring. Each row consists of two side-by-side meters. The first meter displays a multi-colored bit for each device that is part of the raid. The second meter shows the progress of any active sync action the raid may have underway. The legend for the raid meter shows information such as the raid level, current active device count, fully functional device count and current sync_action.
The number of devices that are part of each md device is updated as xosview watches the raidβs status. So the number of bits will change as drives are added and removed from the md device. The color of each bit reflects the state of each device (found in the sysfs). Since a md device can have multiple states (for example in_sync + write_error), xosview attempts to show the configured color of the most relevant state.
When a sync action is active on the md device, the field meter on the right side of the bit meter shows the progress. It is a percentage of the total operation and the colors are configurable.
The raid meter is configured using the following resources:
xosview*RAID: (True or False) β ifTrue, xosview will display a RAID meter.xosview*RAIDdevices: auto OR list β if this resource is set toauto, xosview will search for and display a meter for every md device it finds. Otherwise this value is a comma-delimited list of md device names (such asmd127,md125).xosview*RAIDfullColorβ the color used to indicate a fully functional raid device (number ofin_syncdevices>=fully functional count).xosview*RAIDdegradedColorβ the color used to indicate a degraded array (number ofin_syncdevices<fully functional count).
The following colors are used for the various sync actions. They are used by the legend and field meter when a sync action is underway. π
xosview*RAIDidleColorβ the sync-action color foridle.xosview*RAIDcheckColorβ the sync-action color forcheck.xosview*RAIDresyncColorβ the sync-action color forresync.xosview*RAIDrecoverColorβ the sync-action color forrecover.xosview*RAIDrepairColorβ the sync-action color forrepair.
The colors below are used for the multi-color bit meter display. Each color indicates a device state flag. If a device has more than one flag set, then xosview chooses the most relevant color. π
xosview*RAIDin_syncColorβ the bit color forin_sync.xosview*RAIDwritemostlyColorβ the bit color forwritemostly.xosview*RAIDreplacementColorβ the bit color forreplacement.xosview*RAIDspareColorβ the bit color forspare.xosview*RAIDwrite_errorColorβ the bit color forwrite_error.xosview*RAIDwant_replaceColorβ the bit color forwant_replace.xosview*RAIDblockedColorβ the bit color forblocked.xosview*RAIDfaultyColorβ the bit color forfaulty.
π OBTAINING π
The most current version of xosview can be found at the following site:
http://sourceforge.net/projects/xosview/
The projectβs source tree is also available there. β¨
π BUGS π
Here is a list of known bugs. Reports of unknown bugs are appreciated and should be directed to:
https://sourceforge.net/p/xosview/_list/tickets
Bug tracking system. π
π AUTHORS π
Look at this absolute hall of fame, bestie π«Ά:
- Mike Romberg β
mike-romberg@comcast.netβ original author, Linux, HPUX, minix and cygwin ports. - Brian Grayson β
bgrayson@netbsd.orgβ NetBSD port and most of the nice enhancements for version 1.4, initial work on FreeBSD port. - Scott McNab β
jedi@tartarus.uwa.edu.auβ added the scrolling graph mode. - Tom Pavel β
pavel@slac.stanford.eduβ most of the FreeBSD support, more resource-handling improvements. - Greg Onufer β
exodus@cheers.bungi.comβ SunOS port. - Stefan Eilemann β
eilemann@gmail.comβ IRIX 6.5 port. - Sheldon Hearn β
axl@iafrica.comβ FreeBSD libdevstat-based diskmeter support. - David W. Talmage β
talmage@jefferson.cmf.nrl.navy.milβ added battery-meter support to NetBSD. - Oleg Safiullin β
form@openbsd.orgβ OpenBSD interrupt-meter support. - Werner Fink β
werner@suse.deβ originator of the loadmeter. - Massimiliano Ghilardi β
ghilardi@cibs.sns.itβ Linux pagemeter. - Carsten Schabacker β
cschaba@spock.central.deβ made extensions to the serial-meter. - Paal Beyer β
pbeyer@online.noβ ported the linux memstat kernel module to linux-2.1 - Jerome Forissier β
forissier@isia.cma.frβ maintains the linux SMP kernel patch which xosview uses to display meters for each cpu. This patch can be found at the following URL:http://www-isia.cma.fr/~forissie/smp_kernel_patch/ - Tomer Klainer β
mandor@cs.huji.ac.ilβ initial port to BSDI. - Arno Augustin β
Arno.Augustin@3SOFT.deβ Solaris disk and network meters. - Alberto BARSELLA β
ishark@lsh01.univ-lille1.frβ fixes for linux diskmeter + ip_chains support - Thomas Waldmann β
ThomasWaldmann@gmx.deβ Linux raid meter, bitfieldmeter. Many cosmetic fixes. - Leopold Toetsch β
lt@toetsch.atβ Linux lms temp meter. - David O'Brien β
obrien@nuxi.comβ FreeBSD 4.* updates, and a few other suggestions. - Christos Zoulas β
christos@netbsd.orgβ C++ standard compliance and other NetBSD fixes. - And many others who have sent in small fixes and improvements. π
okay thatβs the whole resource-and-credits saga, bestie πβ¨ original footer vibe: 3rd Berkeley Distribution + XOSVIEW(2.3.5), with the date line right where it belongs at the bottom. periodt π
π¦ where this page comes from
- nixpkgs unstable: xosview2 2.3.5
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms