update LCDd man mage: all drivers, connection types

This commit is contained in:
marschap
2006-04-05 06:06:48 +00:00
parent f1d36b0179
commit fa88c2b8eb
+264 -151
View File
@@ -1,127 +1,214 @@
.TH LCDd 8 "4 March 2002" LCDproc .TH LCDd 8 "29 March 2006" LCDproc
.SH NAME .SH NAME
LCDd - LCDproc server daemon LCDd - LCDproc server daemon
.SH SYNOPSIS .SH SYNOPSIS
.B LCDd .B LCDd
[\-hfiws] [\-hfis]
[\-c <\fIconfig\fP>] [\-c \fIconfig\fP]
[\-d <\fIdriver\fP>] [\-d \fIdriver\fP]
[\-a <\fIaddr\fP>] [\-a \fIaddr\fP]
[\-p <\fIport\fP>] [\-p \fIport\fP]
[\-u <\fIuser\fP>] [\-u \fIuser\fP]
[\-w <\fItime\fP>] [\-w \fItime\fP]
[\-r <\fIlevel\fP>] [\-r \fIlevel\fP]
.SH DESCRIPTION .SH DESCRIPTION
LCDd is the server portion of LCDproc which listens to a certain port (normally 13666) and displays information on an LCD display. It works with several types LCDd is the server portion of LCDproc which listens to a certain port (normally 13666)
and displays information on an LCD display. It works with several types
and sizes of displays. and sizes of displays.
.PP .PP
As of version 0.4.3 of LCDproc most settings are configured through the LCDd configuration Most settings of LCDproc are configured through the LCDd configuration file,
file, which is normally /etc/LCDd.conf. Before running LCDd you should carefully read through which is normally /etc/LCDd.conf. Before running LCDd you should carefully
that file and modify everything neccessary according to your needs. Otherwise you might encounter read through that file and modify everything neccessary according to your needs.
LCDd not running properly on your system. Otherwise you might encounter LCDd not running properly on your system.
.PP .PP
To make full use of LCDd, a client such as lcdproc(1) is required. To make full use of LCDd, a client such as lcdproc(1) is required.
.SH OPTIONS .SH OPTIONS
Available Available LCDd options are:
.I LCDd .TP
options are:
.TP 8
.B \-h .B \-h
Display this help screen Display this help screen
.TP 8 .TP
.B \-c <config> .B \-c \fIconfig\fP
Use a configuration file other than /etc/LCDd.conf Use a configuration file other than /etc/LCDd.conf
.TP 8 .TP
.B \-d <driver> .B \-d \fIdriver\fP
Add a driver to use (output only to first) Add a driver to use (output only to first)
.TP 8 .TP
.B \-f .B \-f
Run in the foreground Run in the foreground
.TP 8 .TP
.B \-i .B \-i
Disable showing of the main LCDproc server screen Disable showing of the main LCDproc server screen in rotation
.TP 8 .TP
.B \-w <waittime> .B \-w \fIwaittime\fP
Time to pause at each screen (in seconds) Time to pause at each screen (in seconds)
.TP 8 .TP
.B \-a <addr> .B \-a \fIaddr\fP
Network IP address to bind to Network IP address to bind to
.TP 8 .TP
.B \-p <port> .B \-p \fIport\fP
Network port to listen for connections on Network port to listen for connections on
.TP 8 .TP
.B \-u <user> .B \-u \fIuser\fP
User to run as User to run as
.TP 8 .TP
.B \-s .B \-s
Output messages to syslog Output messages to syslog
.TP 8 .TP
.B \-r <level> .B \-r \fIlevel\fP
Report level (default=2) Report level (default=2)
.SS
Supported Drivers .SS Supported Drivers
Currently supported display drivers include: Currently supported display drivers include:
.TP .TP
.B CFontz (or CrystalFontz) .B bayrad
CrystalFontz LCD displays EMAC BayRad displays
.TP .TP
.B curses (or ncurses) .B CFontz
Standard video display using the ncurses library CrystalFontz CFA-632 and CFA-634 serial LCD displays
.TP
.B CFontz633
CrystalFontz CFA-633 serial/USB LCD displays
.TP
.B CFontzPacket
CrystalFontz CFA-631, CFA-633 and CFA-635 serial/USB LCD displays
.TP
.B curses
Standard video display using the (n)curses library
.TP
.B CwLnx
serial/USB displays by Cwlinux (http://www.cwlinux.com)
.TP .TP
.B glcdlib .B glcdlib
graphical LCDs supported by graphlcd-base graphical LCDs supported by graphlcd-base
.TP .TP
.B HD44780 .B glk
Hitachi HD44780 LCD displays Matrix Orbital GLK Graphic Displays
.TP
.B hd44780
Hitachi HD44780 LCD displays.
This driver supports the following sub-drivers (a.k.a. \fIconnection types\fP):
.RS
.TP
.B 4bit
LCD 4bit-mode, connected to a PC parallel port
.TP
.B 8bit
LCD 8bit-mode, connected to a PC parallel port
.TP
.B serialLpt
LCD in 4bit-mode through a 4094 shift register
.TP
.B winamp
LCD in 8bit-mode using \fIWinAmp\fP-wiring, connected to a PC parallel port
.TP
.B picanlcd
LCD driven by a PIC-an-LCD chip/board by Dale Wheat, connected to a serial port
.TP
.B lcdserializer
LCD driven by a PIC16C54-based piggy-back board, connected to a serial port
.TP
.B lis2
LIS2 from VLSystem (http://www.vlsys.co.kr), connected to USB
.TP
.B bwctusb
USB-to-HD44780 converter by BWCT (http://www.bwct.de)
.TP
.B i2c
LCD in 4-bit mode driven by PCF8574(A) / PCA9554(A), connected via I2C bus
.RE
.TP
.B icp_a106
ICP A106 alarm/LCD board in 19" rack cases by ICP
.TP
.B imon
iMON IR/VFDamodules in cases by Soundgraph/Ahanix/Silverstone/Uneed/Accent
.TP .TP
.B IOWarrior .B IOWarrior
Code Mercenaries IOWarrior Code Mercenaries IOWarrior
.TP .TP
.B BayRAD .B irman
EMAC BayRad displays
.TP
.B imon
iMON VFD (Soundgraph/Ahanix/Silverstone/Uneed/Accent) display
.TP
.B irmanin
IrMan infrared (input) IrMan infrared (input)
.TP .TP
.B lircin
Infrared (input)
.TP
.B sli
Wirz SLI driver (unknown)
.TP
.B joy .B joy
Joystick driver (input) Joystick driver (input)
.TP .TP
.B MtxOrb (or MatrixOrbital) .B lb216
Matrix Orbital displays (not Matrix Orbital GLK displays) LB216 LCD displays
.TP .TP
.B glk .B lcdm001
Matrix Orbital GLK graphical LCD displays
.TP
.B LB216
LB216 LCD display
.TP
.B lcdm001 (or LCDM001)
kernelconcepts.de 20x4 serial LCD displays kernelconcepts.de 20x4 serial LCD displays
.TP .TP
.B lcterm
serial LCD terminal from Helmut Neumark Elektronik (http://www.neumark.de)
.TP
.B lirc
Infrared (input)
.TP
.B ms6931
MSI-6931 displays in 1U rack servers by MSI
.TP
.B mtc_s16209x
MTC_S16209x LCD displays by Microtips Technology Inc
.TP
.B MtxOrb
Matrix Orbital displays (except Matrix Orbital GLK displays)
.TP
.B NoritakeVFD
Noritake VFD Device CU20045SCPB-T28A
.TP
.B pylcd
LCD displays from Pyramid (http://www.pyramid.de)
.TP
.B sed1330
SED1330/SED1335 (aka S1D13300/S1D13305) based graphical displays
.TP
.B sed1520
122x32 pixel graphic displays based on SED1520 controllers
.TP
.B serialVFD
NEC FIPC8367 based serial VFDs
.TP
.B sli
Wirz SLI driver (unknown)
.TP
.B stv5730
STV5730A on-screen display chip
.TP
.B svga
VGA monitors using svgalib
.TP
.B t6963
Toshiba T6963 based LCD displays
.TP
.B text .B text
Standard "hard-copy" text display Standard "hard-copy" text display
.TP .TP
.B debug .B tyan
Undocumented debug driver LCDi module in Tyan Barebone GS series
.TP
.B ula200
ULA-200 device from ELV (http://www.elv.de)
.TP
.B xosd
On Screen Display on X11
.PP .PP
Multiple drivers can be used simultaneously; thus, for example, a Matrix Orbital display (MtxOrb driver) Multiple drivers can be used simultaneously; thus, for example, a Matrix Orbital display (MtxOrb driver)
can be combined with an infrared driver (irmanin driver). can be combined with an infrared driver (irmanin driver).
.SH INVOCATION .SH INVOCATION
.TP .R LCDd -d MtxOrb -d joy
LCDd -d MtxOrb -d joy .PP
As of version 0.4.3, driver parameters are read from a configuration file (default location /etc/LCDd.conf) rather than being passed on the command line as arguments. As of version 0.4.3, driver parameters are read from a configuration file
The invocation example above will start LCDd with the Matrix Orbital driver and the Joystick input driver, (default location /etc/LCDd.conf) rather than being passed on the command
and attempt to load the driver parameters from the default configuration file. line as arguments.
.SH SERVER PROTOCOL The invocation example above will start LCDd with the Matrix Orbital driver
and the Joystick input driver,and attempt to load the driver parameters
from the default configuration file.
.SH LCDPROC CLIENT-SERVER PROTOCOL
There is a basic sequence: There is a basic sequence:
.TP 8 .TP 8
1. Open a TCP connection to the LCDd server port (usually 13666). 1. Open a TCP connection to the LCDd server port (usually 13666).
@@ -142,20 +229,20 @@ This starts a client-server session with the LCDd server; the
server will return a data string detailing the type of display server will return a data string detailing the type of display
and its size. and its size.
.TP 8 .TP 8
.B client_set [-name #id] .B client_set -name \fIname\fP
Set the client's name, etc. Set the client's name.
.TP 8 .TP 8
.B screen_add #id .B screen_add \fI#id\fP
Add a new screen to the display. Add a new screen to the display.
.TP 8 .TP 8
.B screen_del #id .B screen_del \fI#id\fP
Remove a screen from the display. Remove a screen from the display.
.TP 8 .TP 8
.B screen_set \fI#id\fP [\fB-priority\fI number\fP] [\fB-name\fI "my_name"\fP] [\fB-duration\fI integer\fP] [\fB-wid\fI width\fP] [\fB-hgt\fI height\fP] [\fB-heartbeat\fI mode\fP] .B screen_set \fI#id\fP [\fB-name\fI "name"\fP] [\fB-wid\fI width\fP] [\fB-hgt\fI height\fP] [\fB-priority\fI prio\fP] [\fB-duration\fI int\fP] [\fB-timeout\fI int\fP] [\fB-heartbeat\fI mode\fP] [\fB-backlight\fI mode\fP] [\fB-cursor\fI mode\fP] [\fB-cursor_x\fI xpos\fP] [\fB-cursor_y\fI ypos\fP]
Initialize a screen, or reset its data. Initialize a screen, or reset its data.
.TP 8 .TP 8
.B widget_add \fI#screen #id type\fR [\fB-in \fI#id\fR] .B widget_add \fI#screen #id type\fR [\fB-in \fI#frame\fR]
Add a widget to screen \fI#screen\fR. Add a widget of type \fItype\fPto screen \fI#screen\fR.
.TP .TP
.B widget_del \fI#screen #id\fR .B widget_del \fI#screen #id\fR
Delete widget \fI#id\fR from screen \fI#screen\fR. Delete widget \fI#id\fR from screen \fI#screen\fR.
@@ -163,86 +250,91 @@ Delete widget \fI#id\fR from screen \fI#screen\fR.
.B widget_set \fI#screen #id data\fR .B widget_set \fI#screen #id data\fR
Set the data used to define a particular widget \fI#id\fR on screen Set the data used to define a particular widget \fI#id\fR on screen
\fI#screen\fR. \fI#screen\fR.
.SS
Heartbeat Modes .SS Heartbeat Modes
Valid heartbeat mode values (for the \fBscreen_set\fR command) are: Valid heartbeat mode values (for the \fBscreen_set\fR command) are:
.TP .TP
.BR on , " heart" .BR on
Display heart symbol. Display pulsing heart symbol.
.TP .TP
.BR normal , " default" .BR off
Normal display.
.TP
.BR off , " none"
No heartbeat display. No heartbeat display.
.TP .TP
.B slash .BR open
Display rotating slash display. Use client's heartbeat setting. This is the default.
.SS
Priorities .SS Backlight Modes
Valid priority values (used in the \fBscreen_set\fR command) are as follows: Valid heartbeat mode values (for the \fBscreen_set\fR command) are:
.TP .TP
.B 0 .B on
This is rather extreme; \fIdon't do this!\fR Turn backlight on.
.TP .TP
.B 1 .B off
Extremely important! Turn backlight off
.TP .TP
.B 16 .B toggle
Emergency priority Turn backlight off when it is on and vice versa.
.TP .TP
.B 32 .B open
Very high priority (important) Use client's backlight setting. This is the default.
.TP .TP
.B 64 .B blink
High priority (normal) Blinking backlight
.TP .TP
.B 128 .B flash
Normal (recommended) Flashing blacklight
.SS Priorities
Valid priority settings (used in the \fBscreen_set\fR command) are as follows:
.TP .TP
.B 192 .B input
Low priority (normal) The client is doing interactive input.
.TP .TP
.B 224 .B alert
Very low priority (very unimportant) The screen has an important message for the user.
.TP .TP
.B 240 .B foreground
Extremely low priority an active client
.TP .TP
.B 255 .B info
This screen won't show up very much even if there are Normal info screen, default priority.
no other screens queued... .TP
.B background
The screen is only visible when no normal info screens exists.
.TP
.B hidden
The screen will never be visible.
.PP
For compatibility with oldr versions of clients a mapping of numeric
priority values is also supported:
.TP
.B 1 - 64
foreground
.TP
.B 65 - 192
normal
.TP
.B 193 - (infinity)
background
.PP .PP
An example of how to properly use priorities is as follows: An example of how to properly use priorities is as follows:
.PP .PP
Imagine you're making an mp3 player for lcdproc. When the Imagine you're making an mp3 player for lcdproc. When the
song changes, it's nice to display the new name immediately. song changes, it's nice to display the new name immediately.
So, you could set your screen's priority to 64, wait for So, you could set your screen's priority to \fBforeground\fP, wait for
the server to display (or ignore) your screen, then set the the server to display (or ignore) your screen, then set the
screen back to 128. This would cause the mp3 screen to screen back to i\fBnormal\fP. This would cause the mp3 screen to
show up as soon as the one onscreen was finished, then show up as soon as the one onscreen was finished, then
return to normal priority afterward. return to normal priority afterward.
.PP .PP
Or, let's say your client monitors the health of hospital Or, let's say your client monitors the health of hospital
patients. If one of the patients has a heart attack, you patients. If one of the patients has a heart attack, you
could set the screen priority to 16 (emergency), and it could set the screen priority to \fBalert\fP, and it
would be displayed immediately. It wouldn't even wait for would be displayed immediately. It wouldn't even wait for
the previous screen to finish. Also, the display would stay the previous screen to finish. Also, the display would stay
on screen most of the time until the user did something about it. on screen most of the time until the user did something about it.
.PP
A priority of 1 would stay onscreen permanently, with .SS Widget Types
flashing lights and other visual cues if possible.
Using this priority is \fInot\fR recommended.
.PP
The duration can be either a positive number, or -1. A
positive number (greater than zero) indicates how many
display frames the screen should last. A 0 (zero) or -1 means
that the server should use "auto" duration, which is
probably a good idea. This will be
whatever the user wants. It defaults to 4 seconds (32
frames), or will be a calculated value for things such as scrollers.
.SS
Widget Types
Widgets can be any of the following: Widgets can be any of the following:
.TP .TP
.B string .B string
@@ -273,50 +365,63 @@ Widgets are drawn on the screen in the order they are created.
In the \fBwidget_set\fR command, the \fIdata\fR argument depends on which widget is being In the \fBwidget_set\fR command, the \fIdata\fR argument depends on which widget is being
set. Each widget takes a particular set of arguments which defines its form and behavior: set. Each widget takes a particular set of arguments which defines its form and behavior:
.TP .TP
.B string .B string \fIx y text\fP
x y text .sp
Displays \fItext\fP at position (\fIx\fP,\fIy\fP).
.TP .TP
.B hbar .B title \fItext
x y length_in_pixels .sp
Uses \fItext\fP as title to display.
.TP .TP
.B vbar .B hbar \fIx y length\fP
x y length_in_pixels .sp
Displays a horizontal bar starting at position (\fIx\fP,\fIy\fP) that is \fIlength\fP pixels wide.
.TP .TP
.B icon .B vbar \fIx y length\fP
x y binary_data .sp
Displays a vertical bar starting at position (\fIx\fP,\fIy\fP) that is \fIlength\fP pixels high.
.TP .TP
.B title .B icon \fIx y name\fP
text .sp
Displays the icon \fIname\fP at position (\fIx\fP,\fIy\fP).
.TP .TP
.B scroller .B scroller \fIleft top right bottom direction speed text\fP
left top right bottom direction speed text
.sp .sp
The \fItext\fR defined will scroll in the direction defined. Valid directions The \fItext\fR defined will scroll in the direction defined. Valid directions
are \fBh\fR (horizontal) and \fBv\fR (vertical). The speed defines how many are \fBh\fR (horizontal) and \fBv\fR (vertical). The speed defines how many
"movements" (or changes) will occur per frame. A positive number indicates "movements" (or changes) will occur per frame. A positive number indicates
frames per movement; a negative number indicates movements per frame. frames per movement; a negative number indicates movements per frame.
.TP .TP
.B frame .B frame \fIleft top right bottom wid hgt dir speed\fP
left top right bottom wid hgt dir speed
.sp .sp
Frames define a visible "box" on screen, Frames define a visible "box" on screen,
>from the (\fIleft\fR, \fItop\fR) corner to the from the (\fIleft\fR, \fItop\fR) corner to the
(\fIright\fR, \fIbottom\fR) corner. The actual data may be bigger, (\fIright\fR, \fIbottom\fR) corner. The actual data may be bigger,
and is defined as \fIwid\fR (width) by \fIhgt\fR (height); if it is and is defined as \fIwid\fR (width) by \fIhgt\fR (height); if it is
bigger, then the frame will scroll in the direction (\fIdir\fR) bigger, then the frame will scroll in the direction (\fIdir\fR)
and \fIspeed\fR defined. and \fIspeed\fR defined.
.TP
.B num \fIx int\fP
.sp
Displays large decimal digit \fIint\fP at the horizontal position \fIx\fP,
which is a normal character x coordinate on the display.
The special value 10 for \fIint\fP displays a colon.
.SH BUGS .SH BUGS
If LCDd seems to quietly disappear upon invocation or other similar problems, If LCDd seems to quietly disappear upon invocation or other similar problems,
check the order of the options and the quoting involved. Some combinations check the order of the options and the quoting involved. Some combinations
of options will be misread and thus fail. of options will be misread and thus fail.
.PP .PP
Try using the -d option last. Try using the -d option last.
.SH FILES .SH FILES
.na .na
.nf .nf
\fB/etc/LCDd.conf\fR, LCDd default configuration file \fB/etc/LCDd.conf\fR, LCDd default configuration file
.Sh SEE ALSO .Sh SEE ALSO
.Xr lcdproc 1 .Xr lcdproc 1
.SH AUTHOR .SH AUTHOR
LCDd was originally written by William Ferrell (wwf@splatwerks.org) and Scott Scriv LCDd was originally written by William Ferrell (wwf@splatwerks.org) and Scott Scriv
en (scriven@cs.colostate.edu). en (scriven@cs.colostate.edu).
@@ -325,11 +430,19 @@ Since that time various people have contributed to LCDproc.
The newest version of LCDd should be available from here as part of the lcdproc package: The newest version of LCDd should be available from here as part of the lcdproc package:
http://lcdproc.omnipotent.net/ http://www.lcdproc.org/
.SH LEGAL STUFF .SH LEGAL STUFF
The lcdproc package is released as "WorksForMe-Ware". In other words, it is free, kinda neat, and we don't guarantee that it will do anything in particular on any machine except the ones it was developed on. The lcdproc package is released as "WorksForMe-Ware".
In other words, it is free, kinda neat, and we don't guarantee that it will do
anything in particular on any machine except the ones it was developed on.
.PP .PP
It is technically released under the GNU GPL license (you should have received the file, "COPYING", with LCDproc) (also, look on http://www.fsf.org/ for more information), so you can distribute and use it for free -- but you must make the source code freely available to anyone who wants it. It is technically released under the GNU GPL license (you should have received the file,
"COPYING", with LCDproc) (also, look on http://www.fsf.org/ for more information),
so you can distribute and use it for free -- but you must make the source code freely
available to anyone who wants it.
.PP .PP
For any sort of real legal information, read the GNU GPL (GNU General Public License). It's worth reading. For any sort of real legal information, read the GNU GPL (GNU General Public License).
It's worth reading.