- update drivers to use new API

(get rid of those pseudo options named 'Arguments' in the config file)
- replace printf / printf calls by debug / report calls in some drivers
- sort and extend LCDd.conf
This commit is contained in:
marschap
2005-01-29 18:49:29 +00:00
parent c82e37cd70
commit b3230cf90f
34 changed files with 550 additions and 946 deletions
+189 -192
View File
@@ -21,71 +21,58 @@
# If -d is specified on the command line, the Driver= options in the
# config file are ignored.
#
# The drivers can read their own options from the config file, but some of
# them don't do this yet. They expect 'command-line'-format parameters that
# were previously placed on the command line. These parameters can be
# given to the driver in the following way:
#
# Arguments="place arguments here"
#
# The arguments between the quotes are passed to the driver.
# As said before these are the same arguments that the driver would have
# been passed under the old command line format of
#
# -d <driver> "<driverargs>"
#
# Note that the -d option still works, but not allows driverargs anymore.
# The drivers read their own options from the respective sections.
## Server section with all kinds of settings for the LCDd server ##
[server]
# Server section with all kinds of settings for the LCDd server
# Tells the server to load the given drivers. Multiple lines can be given.
# The name of the driver is exactly the same as the name of the driver
# module that is to be loaded, including the case of the letters !
# (That is: unless a file= option is given in the driver section)
Driver=curses
#Driver=hd44780
#Driver=IOWarrior
#Driver=MtxOrb
#Driver=CFontz633
#Driver=CwLnx
#
# Tells the server to load the given drivers. Multiple lines can be given.
# The name of the driver is exactly the same as the name of the driver
# module that is to be loaded, including the case of the letters !
# (That is: unless a file= option is given in the driver section)
Bind=127.0.0.1
# Tells the driver to bind to the given interface
Bind=127.0.0.1
Port=13666
# Listen on this specified port; defaults to 13666.
Port=13666
#ReportLevel=3
# Sets the reporting level; defaults to 2 (warnings and errors only).
#ReportLevel=3
#ReportToSyslog=yes
# Should we report to syslog instead of stderr ? Default: no
#ReportToSyslog=yes
WaitTime=5
# Sets the default time in seconds to displays a screen.
WaitTime=5
User=nobody
# User to run as. LCDd will drop its root priviledges,
# if any, and run as this user instead.
User=nobody
#ServerScreen=no
# If yes, the the serverscreen will be rotated as a usual info screen. If no,
# it will be a background screen, only visible when no other screens are
# active.
#ServerScreen=no
#Foreground=no
# The server will stay in the foreground if set to true.
#Foreground=no
DriverPath=server/drivers/
# Where can we find the driver modules ?
# IMPORTANT: Make sure to change this setting to reflect your
# specific setup! Otherwise LCDd won't be able to find
# the driver modules and will thus not be able to
# function properly.
# NOTE: Always place a slash as last character !
DriverPath=server/drivers/
# The "...Key=" lines define what the server does with keypresses that
# don't go to any client.
@@ -107,8 +94,8 @@ NextScreenKey=Right
## The menu section. The menu is an internal LCDproc client. ##
[menu]
# The menu section. The menu is an internal LCDproc client.
# You can configure what keys the menu should use. Note that only the menukey
# will be reserved exclusively, the others in shared mode.
@@ -124,87 +111,83 @@ DownKey=Down
#DownKey=Down
# Driver sections are below this line, in alphabetical order
### Driver sections are below this line, in alphabetical order ###
## EMAC BayRAD driver ##
[bayrad]
# EMAC BayRAD driver
Arguments="fill in here"
# Select the output device to use [default: /dev/lcd]
Device=/dev/lcd
# -d --device Select the output device to use [/dev/lcd]
# -t --type Select the LCD type (size) [20x2]
# -s --speed Set the communication speed [19200]
# -h --help Show this help information
# Set the communication speed [default: 9600; legal: 1200, 2400, 9600, 19200]
Speed=9600
## CrystalFontz driver (for CF632 & CF634) ##
[CFontz]
# CrystalFontz driver
# Use this driver for CF632 and CF634.
# Select the output device to use [/dev/lcd]
# Select the output device to use [default: /dev/lcd]
Device=/dev/ttyS0
# Select the LCD type (size) [20x4]
# Select the LCD size [default: 20x4]
Size=20x4
# Set the initial contrast [140]
# Set the initial contrast [default: 140; legal: 0 - 1000]
Contrast=140
# Set the initial brightness [255]
# Set the initial brightness [default: 255; legal: 0 - 255]
Brightness=255
# Set the initial off-brightness [0]
# Set the initial off-brightness [default: 0; legal: 0 - 255]
# This value is used when the display is normally
# switched off in case LCDd is inactive
OffBrightness=0
# Set the communication speed [9600]
# possible values: 1200, 2400, 9600
# Set the communication speed [default: 9600; legal: 1200, 2400, 9600 or 19200]
Speed=9600
# Set the firmware version (New means >= 2.0) [no]
# Set the firmware version (New means >= 2.0) [default: no; legal: yes, no]
NewFirmware=no
# Reinitialize the LCD's BIOS [no]
# Reinitialize the LCD's BIOS [default: no; legal: yes, no]
# normally you shouldn't need this
Reboot=no
[CFontz633]
# CrystalFontz633 driver
# Use this driver only for CF633.
# Select the output device to use [/dev/lcd]
## CrystalFontz633 driver (for CF633 only) ##
[CFontz633]
# Select the output device to use [default: /dev/lcd]
Device=/dev/ttyS0
# Select the LCD type (size) [20x4]
# Select the LCD type (size) [default: 20x4]
Size=16x2
# Set the initial contrast [140]
# Set the initial contrast [default: 140; legal: 0 - 1000]
Contrast=140
# Set the initial brightness [100]
# Brightness hardware value is between 0 and 100.
# Set the initial brightness [default: 100; legal: 0 - 255]
Brightness=100
# Set the initial off-brightness [0]
# Set the initial off-brightness [default: 0; legal: 0 - 255]
# This value is used when the display is normally
# switched off in case LCDd is inactive
OffBrightness=50
# Set the communication speed [9600]
# possible values: 19200
# Set the communication speed [default: 9600; legal: 1200, 2400, 9600, 19200, 115200]
Speed=19200
# Set the firmware version (New means >= 2.0) [no]
# Set the firmware version (New means >= 2.0) [default: no; legal: yes, no]
# Currently this flag is not in use, there is no such thing as NewFirmware. ;=)
NewFirmware=no
# Reinitialize the LCD's BIOS [no]
#NewFirmware=no
# Reinitialize the LCD's BIOS [default: no; legal: yes, no]
# I want to reboot the LCD to make sure we start from a known state
Reboot=yes
## Curses driver ##
[curses]
# Curses driver
# color settings
# foreground color [blue]
# foreground color [default: blue]
foreground=blue
# background color [cyan]
# background color [default: cyan]
background=cyan
# backlight color [red]
# backlight color [default: red]
backlight=red
# display size [20x4]
# display size [default: 20x4]
size=20x4
# What position (X,Y) to start the left top corner at...
@@ -212,21 +195,22 @@ size=20x4
topleftx=7
toplefty=7
[CwLnx]
# Cwlinux driver
# Select the output device to use [/dev/lcd]
## Cwlinux driver ##
[CwLnx]
# Select the output device to use [default: /dev/lcd]
#Device=/dev/ttyS0
Device=/dev/ttyUSB0
# Select the LCD type (size) [20x4]
# Select the LCD size [default: 20x4]
Size=20x4
# Set the communication speed [9600]
# possible values: 9600, 19200
# Set the communication speed [default: 19200; legal: 9600, 19200]
Speed=19200
# Reinitialize the LCD's BIOS [no]
# Reinitialize the LCD's BIOS [default: no; legal: yes, no]
# normally you shouldn't need this
Reboot=no
@@ -242,7 +226,6 @@ Keypad=yes
# You can leave those unchanged if you have a standard keypad.
# You can change it if you want to report other keystrings or have a non
# standard keypad.
# KeyMap_A=Up
# KeyMap_B=Down
# KeyMap_C=Left
@@ -255,64 +238,67 @@ Keypad=yes
#keypad_test_mode=yes
## Matrix Orbital GLK driver ##
[glk]
# Matrix Orbital GLK driver
Arguments="-d /dev/ttyS0 -s 9600"
# select the serial device to use [default: /dev/lcd]
Device=/dev/lcd
# -d, --device select the serial device to use [/dev/lcd]
# -c, --contrast set the initial contrast value [140]
# -s, --speed set the serial port speed [19200]
# -h, --help display this help text
# set the initial contrast value [default: 560; legal: 0 - 1000]
Contrast=560
# set the serial port speed [default: 19200; legal: 9600, 19200, 38400]
Speed=19200
## Hitachi HD44780 driver ##
[hd44780]
# Hitachi HD44780 driver
Port=0x378
# Port where the LPT is. Usual values are 0x278, 0x378 and 0x3BC
Port=0x378
ConnectionType=4bit
# Select what type of connection. See documentation for types.
ConnectionType=4bit
Keypad=no
# If you have a keypad connected.
# You may also need to configure the keypad layout further on in this file.
Keypad=no
Backlight=no
# If you have a switchable backlight.
Backlight=no
Outputport=no
# If you have the additional output port ("bargraph") and you want to
# be able to control it with the lcdproc OUTPUT command
Outputport=no
#Lastline=true
# Specifies if the last line is pixel addressable or it controls an
# underline effect. Default: true (pixel addressable)
# underline effect. [default: true (= pixel addressable); legal: yes, no]
#Lastline=true
Size=20x4
# Specifies the size of the LCD.
# In case of multiple combined displays, this should be the total size.
Size=20x4
#vspan=2,2
# For multiple combined displays: how many lines does each display have.
# Vspan=2,2 means both displays have 2 lines.
#vspan=2,2
#ExtendedMode=yes
# If you have a KS0073 or an other 'almost HD44780-compatible', set this
# flag to get into extended mode (4-line linear).
# This flag is NOT the old obsolete Extended option.
#ExtendedMode=yes
#DelayMult=2
# If your display is slow and cannot keep up with the flow of data from
# LCDd, garbage can appear on the LCDd. Set this delay factor to 2 or 4
# to increase the delays. Default: 1.
#DelayMult=2
DelayBus=true
# You can reduce the inserted delays by setting this to false.
# On fast PCs it is possible your LCD does not respond correctly.
# Default: true.
DelayBus=true
# If you have a keypad you can assign keystrings to the keys.
# See documentation for used terms and how to wire it.
@@ -320,7 +306,6 @@ DelayBus=true
# KeyDirect_4=Enter
# For matrix keys use the X and Y coordinates of the key:
# KeyMatrix_1_3=Enter
KeyMatrix_4_1=Enter
KeyMatrix_4_2=Up
KeyMatrix_4_3=Down
@@ -328,7 +313,13 @@ KeyMatrix_4_4=Escape
# Code Mercenaries IO-Warrior drivr
## ICP A106 driver ##
[icp_a106]
Device=/dev/ttyS1
## Code Mercenaries IO-Warrior driver ##
[IOWarrior]
# display dimensions
@@ -339,61 +330,56 @@ Size=20x4
#SerialNumber=00000674
# Specifies if the last line is pixel addressable or it controls an
# underline effect. Default: true (pixel addressable)
# underline effect. [default: true (= pixel addressable); legal: yes, no]
#Lastline=true
## IrMan driver ##
[IrMan]
#IrMan driver
#if in trouble with IrMan, try Lirc emulator for IrMan
Arguments="fill in here"
# Select the input device to use
#Device=/dev/irman
# -d --device Select the input device to use
# -c --config Select the configuration file to use
# -h --help Show this help information
# Select the configuration file to use
#Config=/etc/irman.cfg
## Joystick driver ##
[joy]
# Joystick driver
Arguments="-d /dev/js0"
# Select the input device to use [default: /dev/js0]
Device=/dev/js0
# -d --device Select the input device to use [/dev/js0]
# -a --axes Modify the axis map
# -b --buttons Modify the button map
# -h --help Show this help information
# Modify the axis mapa [default: EFGHIJKLMNOPQRST]
#AxisMap=EFGHIJKLMNOPQRST
# Modify the button map [default: BDACEFGHIJKLMNOP]
#ButtonMap=BDACEFGHIJKLMNOP
## LB216 driver ##
[lb216]
# LB216 driver
Arguments="-d /dev/ttyS0 -s 9600"
# Select the output device to use [default: /dev/lcd]
Device=/dev/lcd
# -d --device Select the output device to use [/dev/lcd]
# -t --type Select the LCD type (size) [16x2]
# -b --brightness Set the initial brightness [255]
# -s --speed Set the communication speed [9600]
# -r --reboot Reinitialize the LCD's BIOS
# -h --help Show this help information;
# Set the initial brightness [default: 255; legal: 0 - 255]
Brightness=255
# Set the communication speed [default: 19200; legal: 2400, 9600]
Speed=9600
[mtc_s16209x]
# MTC-S16209x driver
Arguments="-d /dev/ttyS0"
# -d --device Select the output device to use [/dev/lcd]
# -h --help Show this help information;
# Reinitialize the LCD's BIOS [default: no; legal: yes, no]
Reboot=no
## LCDM001 driver ##
[lcdm001]
# LCDM001 driver
Device=/dev/ttyS1
@@ -406,7 +392,6 @@ Device=/dev/ttyS1
# BackKey Back(Go to previous screen) Up/Left
# ForwardKey Forward(Go to next screen) Down/Right
# MainMenuKey Open main menu Exit/Cancel
PauseKey=LeftKey
BackKey=UpKey
ForwardKey=DownKey
@@ -417,56 +402,72 @@ MainMenuKey=RightKey
## HNE LCTerm driver ##
[lcterm]
# HNE LCTerm driver
Device=/dev/ttyS1
size=16x2
[icp_a106]
# ICP A106 driver
## LIRC input driver ##
[lirc]
# Specify an alternative location of the lircrc file [default: ~/.lircrc]
#lircrc=/etc/lircrc.lcdproc
# Must be the same as in your lircrc
#prog=lcdd
## MSI MS-6931 driver for displays in 1HU servers ##
[ms6931]
# device to use [default: /dev/ttyS1]
Device=/dev/ttyS1
[lirc]
# LIRC input driver
#lircrc=/etc/lircrc.lcdproc
# Specify an alternative location of the lircrc file, which is
# normally ~/.lircrc
#prog=lcdd
# Must be the same as in your lircrc
# display size [default: 16x2]
#Size=16x2
## MTC-S16209x driver ##
[mtc_s16209x]
# Select the output device to use [default: /dev/lcd]
Device=/dev/lcd
# Set the initial brightness [default: 255; legal: 0 - 255]
Brightness=255
# Reinitialize the LCD's BIOS [default: no; legal: yes, no]
Reboot=no
## Matrix Orbital driver ##
[MtxOrb]
# Matrix Orbital driver
# Select the output device to use [/dev/lcd]
# Select the output device to use [default: /dev/lcd]
device=/dev/ttyS0
# Set the display size [20x4]
# Set the display size [default: 20x4]
size=20x4
# Switch on the backlight? [yes]
# NOTE: The driver will ignore this if the display
# is a vfd or vfd as they crash if the backlight
# is turned off
# Switch on the backlight? [default: yes]
# NOTE: The driver will ignore this if the display is a vfd or vkd
# as they crash if the backlight is turned off
enablebacklight=yes
# Set the initial contrast [140]
# Set the initial contrast [default: 140]
# NOTE: The driver will ignore this if the display
# is a vfd or vfd as they don't have this feature
# is a vfd or vkd as they don't have this feature
contrast=800
# Set the communication speed [19200]
# Set the communication speed [default: 19200; legal: 1200, 2400, 9600, 19200]
speed=19200
# Set the display type [lcd]
# Possible settings: lcd, lkd, vfd, vkd
# Set the display type [default: lcd; legal: lcd, lkd, vfd, vkd]
type=lkd
# The following table translate from MtxOrb Key to Logical Key.
@@ -484,81 +485,77 @@ EscapeKey=F
# LCDd. LCDd will output all characters it receives.
# Afterwards you can modify the settings above and set
# keypad_set_mode to no again.
keypad_test_mode=no
## Seiko Epson 1330 driver ##
[sed1330]
# Seiko Epson 1330 driver
# Port where the LPT is. Common values are 0x278, 0x378 and 0x3BC
Port=0x378
# Port where the LPT is. Usual values are 0x278, 0x378 and 0x3BC
# Type of LCD module (legal: G321D, G121C, G242C, G191D, G2446)
# Note: G321D is the only one that is tested currently.
Type=G321D
#Type=G121C
#Type=G242C
# Type of LCD module. G321D is the only one that is tested currently.
## Seiko Epson 1520 driver ##
[sed1520]
# Seiko Epson 1520 driver
Arguments="-p 0x278"
# -p n --port n Select the output device to use port n
# -h --help Show this help information
# Port where the LPT is. Usual values are 0x278, 0x378 and 0x3BC
Port=0x378
## stv5730 driver ##
[stv5730]
# stv5730 driver
Arguments="fill in here"
# -p n --port n Select the output device to use port n
# -h --help Show this help information
# Port the device is connectoed to [default: 0x378]
Port=0x378
## SVGAlib driver ##
[svgalib]
# SVGAlib driver
# No options.
# You should of course have your svgalib configured correctly.
[T6963]
# Toshiba T6963 driver
#Port=0x378
#Size=20x6
#ECPlpt=on # use bidirectional mode or not
## Text driver ##
[text]
# Text driver
# Set the display size [20x4]
# Set the display size [default: 20x4]
size=20x4
## Toshiba T6963 driver ##
[t6963]
# set display size [default: 20x6]
Size=20x6
# port to use [default: 0x378; legal: 0x200 - 0x400]
Port=0x378
# Is ECP mode on? [default: yes; legal: yes, no]
#ECPlpt=yes
# Use graphic? [default: no; legal: yes, no]
#graphic=no
## Wirz SLI LCD driver ##
[Wirz-sli]
# Wirz SLI LCD driver
Arguments="fill in here"
# Select the output device to use [default: /dev/lcd]
Device=/dev/lcd
# -d --device Select the output device to use [/dev/lcd]
# -s --speed Set the communication speed [19200]
# -h --help Show this help information
# Set the communication speed [default: 19200; legal: 1200, 2400, 9600, 19200, 38400, 57600, 115200]
Speed=19200
[ms6931]
# MSI MS-6931 driver for displays in 1HU servers
Device=/dev/ttyS1
#Size=16x2
# EOF