• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

software für lcd display (4 zeilen 20 Zeichen)

hi

wolte jetzt mal starten aber da kommt dann: missing 'display' entry in /etc/lcd4linux.conf!

was muss ich da noch einstellen ich habe doch die daten uberpruft und habe alle gestimmt ?
 
#
# /etc/lcd4linux.conf
# configuration file for lcd4linux
#
# http://lcd4linux.sourceforge.net
#
# for the complete lcd4linux documentation please refer to
# http://lcd4linux.sourceforge.net/manual.html


# driver-specific options
#
# Display:
# the name of a display driver
#
# every driver has its own configuration options
# (e.g. 'Port', 'Speed', ...)
# for a detailed description of every option which is
# available for a specific driver please refer to
# http://lcd4linux.sourceforge.net/display/main.html
#
#Display LCD2041
#Port /dev/ttyS2
#Speed 19200
#Contrast 160
#
#Display HD44780
#Port /dev/parport0
#Size 24x2
#Delay 503
#
#Display BLC100x
#Port /dev/ttyS2
#Type 20x4
#
#Display USBLCD
#Port /dev/usb/usblcd
#Size 20x4
#
#Display PalmPilot
#Port /dev/ttyS2
#Speed 4800
#size 20x4
#font 6x8
#pixel 1+0
#gap 0x0
#border 2
#
#Display PPM
#size 20x4
#font 5x8
#pixel 3+0
#gap -1x-1
#border 10
#foreground \#102000
#halfground \#70c000
#background \#80d000
#
#Display PNG
#size 20x4
#font 5x8
#pixel 2+0
#gap -1x-1
#border 5
#foreground \#102000
#halfground \#70c000
#background \#80d000
#
#Display X11
#size 20x5
#font 5x8
#pixel 1+0
#gap -1x-1
#border 1
#foreground \#102000
#halfground \#90c000
#background \#a0d000
#
#Display Text
#size 40x8
#TextBar 1
#
#Display SIN
#Port /dev/tty9


# timing options - all values are milliseconds
#
# please note that starting with 0.9.11 the settings tick,
# tack, tau are marked as obsolete and replaced by the
# following ones:
#
# Tick.Text:
# time between text updates - default is 500
#
# Tick.bar :
# time between bar updates - default is 100
#
# Tick.icon:
# time between icon updates - default is 100
#
# Tick.gpo :
# time between gpo updates - default is 100
#
#Tick.Text 500
#Tick.bar 100
#Tick.icon 100
#Tick.gpo 100


# data-specific options
#
# Overload:
# load average threshold and bar scaling
#
# SetiDir:
# directory where seti@home stores its data files
#
# Battwarning:
# flash bp-bar if running below Battwarning
# I use: Row6 "Bat%bp%bs%bd$r10bp+bp"
# which gives a nice flash effect - default is 10
#
Overload 2.0
SetiDir /etc/setiathome
#Battwarning 10


# mail/news related options
#
# Mailbox[1..9]:
# defines the mailbox for querying
# the string may be a plain mbox file or a pop3/imap4/nntp
# server string with the following format:
# pop3:[user[:pass]@]machine[:port]
# imap4:[user[:pass]@]machine[:port][/dir]
# nntp:[user[:pass]@]machine[:port][/dir]
# quering a plain (local) mbox file is achieved by giving
# the full path/name to the mbox file
# port defaults to 110 (pop3 query) and 143 (imap query)
# if [/dir] is not given, INBOX is assumed
# if [/dir] is given for nntp it should be a valid group name
# with '.' separating items
# if [/dir] is not given for nntp all/unread news of subscribed
# groups from Newsrc are calculated.
#
# Delay_e[1..9]:
# delay in seconds for querying Mailbox[1..9] - default is 5
#
# Newsrc:
# path/name of your .newsrc file containing subscribed news
# please note that authorization on newsservers is currently untested
# user and pass may not contain a '/' with above syntax
#
#Mailbox1 /var/spool/mail/michi
#Delay_e1 5
#
#Mailbox2 pop3:user:pass@machine
#Delay_e2 20
#
#Mailbox3 imap4:user:pass@machine/folder
#Delay_e3 20
#
#Mailbox4 nntp:server/at.linux
#Delay_e4 120


# temperature sensors
#
# Sensor[1..9]:
# path to temperature file [1...9]
#
# Sensor[1..9]_min:
# temperature where the corresponding bar starts
#
# Sensor[1..9]_max:
# temperature where bar ends
#
# Sensor[1..9]_factor:
# formula to calculate real temperature
# (display_value=raw_value*factor+offset)
# lookup these values in /etc/sensors.conf
#
# Sensor[1..9]_offset:
# offset to calculate the real temperature
#
#Sensor1 /proc/sys/dev/sensors/as99127f-i2c-0-2d/temp1
#Sensor1_min 30
#Sensor1_max 50
#
#Sensor2 /proc/sys/dev/sensors/as99127f-i2c-0-2d/temp2
#Sensor2_min 30
#Sensor2_max 50
#
#Sensor3 /proc/sys/dev/sensors/as99127f-i2c-0-2d/temp3
#Sensor3_min 30
#Sensor3_max 50



# plugins
#
# x[1..9]:
# command to execute. predefined $PATH:
# PATH=/usr/local/bin:/usr/bin:/bin
# $X[1..9] is the result of command x[1..9] in environment
#
# Tick_x[1..9]:
# delay in ticks (overrides Delay_x[1..9])
#
# Delay_x[1..9]:
# delay in seconds - default is 1
#
# Max_x[1..9]:
# max value for scaling bars - default is 100 (value should be numeric)
#
# Min_x[1..9]:
# min value for bars - default is 0 (should be != Max_x[1..9])
#
#x1 tail -1 /var/log/messages
#Tick_x1 10
#Delay_x1 1
#Max_x1 50
#Min_x1 10
#
#x2 echo $X1 | cut -b25-


# display options
#
# Row[1..9]:
# text to display in row [1..9]
#
# the text to be displayed can contain specific directives which will
# be replaced by the appropriate values or will create bars or icons.
# for a detailed description of every possible directive please refer to
# http://lcd4linux.sourceforge.net/manual.html or
# /usr/share/doc/packages/lcd4linux/README.Rows
#
Row1 "Busy %cb%% $r14cs+cb"
Row2 "Load%l1%L$r14l1"
#
#Row1 "$u3l1$u3cb$u3cs $u3mu$u3ma$u3ms $u3dr$u3dw $u3nr$u3nw $u3ii$u3io"
#Row2 " "
#Row3 " "
#Row4 "CPU MEM IO IP"
#
#Row1 "*** %o %v ***"
#Row2 "%p CPU %r MB RAM"
#Row3 "Busy %cb%% $r10cs+cb"
#Row4 "Load%l1%L$r10l1"
#
#Row1 "Load%l1%L$r10cs+cb"
#Row2 "Disk%dm $R10dr+dw"
#Row3 "Net %nm $R10nr+nw"
#Row4 "ISDN%im $r10ii+io"
#Row4 "DSL %tm $r10ti+to"
#Row5 "Temp%s2°$r10s1+s2"
#
#Row5 %x1
#Row6 %x2
#
#Row6 "Mails %e3/%u3"


# icons
#
# Icons:
# number of icons
#
# every icon you are reserving here is no longer available
# for bars. As most displays have only eight user-defineable
# characters, and a dual-bar needs at least five of them
# you should not use more than 3 icons in parallel
# with bars...
#
# Icon<num>.Bitmap<row>:
# bitmap row 'row' for icon 'num'
#
# for a detailed description of how to use icons please refer to
# http://lcd4linux.sourceforge.net/display/main.html
#
#Icons 1
#
#Icon1.Bitmap1 .....
#Icon1.Bitmap2 .*.*.
#Icon1.Bitmap3 *****
#Icon1.Bitmap4 *****
#Icon1.Bitmap5 .***.
#Icon1.Bitmap6 .***.
#Icon1.Bitmap7 ..*..
#Icon1.Bitmap8 .....


# virtual rows
#
# Rows:
# number of rows to use (maybe greater than your displays rows)
#
# Scroll:
# number of rows to scroll
#
# Turn:
# time in milliseconds between scrolling events
#
#Rows 10
#Scroll 2
#Turn 5000


# general purpose outputs
#
# GPOs:
# number of outputs to use
#
# GPO[1..max]:
# token to use for GPO[1..max]
#
# the token should return a numeric value. If this value is greater
# than zero the output will be enabled otherwise disabled.
# please refer to the corresponding documentation under
# http://lcd4linux.sourceforge.net/display/main.html to
# find out if GPOs are supported with your display
 
Wenn Du nicht angibst, welches Display Du benutzt, wie soll es dann funktionieren?
Ein bisschen was muss man in der /etc/lcd4linux.conf schon noch editieren ;-)

z.B. für ein paralleles Display mit HD44780-Chip und 4x20 Zeichen

Display HD44780
Port /dev/parport0
Size 20x2
Delay 503

Tick.Text 500
Tick.bar 100
Tick.icon 100
Tick.gpo 100

Row1 "*** %o %v ***"
Row2 "%p CPU %r MB RAM"
Row3 "Busy %cb%% $r10cs+cb"
Row4 "Load%l1%L$r10l1"

Hier nochmals mein dringender Hinweis auf das Manual:
http://lcd4linux.sourceforge.net/manual.html

Weitere Konfigurationsbeispiele gibt es auskommentiert im Konfigfile.
 
hi

chip ? ic's ? ich habe mein lcd mit potis (einstellpotenziometer) an denn parallelport angeschlossen

ich bring des lcd einfach nicht zum laufen
 
mannomann! Hast du es überhaupt ausprobiert?
Dein paralleles Display müßte mit dem HD44780-Treiber anzusprechen sein.

Also genannte Einträge in die lcd4linux.conf schreiben (ein Tippfehler hat sich in meine Angaben geschlichen: Size 20x2 muß in Deinem Fall natürlich Size 20x4 heißen), dann "lcd4linux -Fvv" aufrufen und beobachten, ob sich was tut.
 
Kann auch sein, daß Du "Port /dev/parports/0" im Konfigfile verwenden mußt
(kann ich nicht genau sagen, weil ich kein paralleles Display angeschlossen habe).

Infos zum HD44780-Treiber:
http://lcd4linux.sourceforge.net/display/hd44780/main.html
 
hi

ich habe jetzt denn HD4470 Treiber so in die config eingetragen:

# Display:
# the name of a display driver
# HD44780

und noch die size (muss ich die in jedenn abschnitt eintragen oder reicht es das erste mal?)

#Display LCD2041
#Port /dev/ttyS2
#Speed 19200
#Contrast 160
#
#Display HD44780
#Port /dev/parport0
#Size 20x4
#Delay 503


ist das so richtig?
 
Schreib nur folgendes hinein:

Display HD44780
Port /dev/parport0
Size 20x4
Tick.Text 500
Tick.bar 100
Row1 "*** %o %v ***"
Row2 "%p CPU %r MB RAM"
Row3 "Busy %cb%% $r10cs+cb"
Row4 "Load%l1%L$r10l1"

Wichtig: OHNE das Zeichen "#" am Beginn, denn die Raute kommentiert eine Zeile aus, d.h. die Zeile wird dann als Kommentar interpretiert und ignoriert!

Die Display-Zeile definiert, welchen Treiber Du verwenden möchtest (in Deinem Fall HD44780 für ein paralleles Display).
Die Port-Zeile definiert, wie/wo das Display angeschlossen ist.
Die Size-Zeile definiert, wieviele Zeichen/Zeilen Dein Display besitz.
Die Tick-Zeilen definieren, wie oft Text, Balken oder Icons refresht werden.
Die Row-Zeilen definieren, welche Informationen Du auf Deinem Display angezeigt haben möchtest.

Danach "lcd4linux -Fvv" aufrufen.
Wenn es nicht funktioniert, ändere die Port-Zeile auf "Port /dev/parports/0".
 
hi

ok so weit so gut aber mein display zeigt keine daten an ich habe alles genau so gemacht wie beschrieben
(mein display ist jetzt kommpltet leer (beim einschalten sind zwei zeilen schwarz))


so sieht meine config jetzt aus:

Display HD44780
Port /dev/parport0
Size 20x4
#Delay 503

Tick.Text 500
Tick.bar 100
#Tick.icon 100
#Tick.gpo 100

#Row1 "Busy %cb%% $r14cs+cb"
#Row2 "Load%l1%L$r14l1"
#
#Row1 "$u3l1$u3cb$u3cs $u3mu$u3ma$u3ms $u3dr$u3dw $u3nr$u3nw $u3ii$u3io"
#Row2 " "
#Row3 " "
#Row4 "CPU MEM IO IP"
#
Row1 "*** %o %v ***"
Row2 "%p CPU %r MB RAM"
Row3 "Busy %cb%% $r10cs+cb"
Row4 "Load%l1%L$r10l1"
#
#Row1 "Load%l1%L$r10cs+cb"
#Row2 "Disk%dm $R10dr+dw"
#Row3 "Net %nm $R10nr+nw"
#Row4 "ISDN%im $r10ii+io"
#Row4 "DSL %tm $r10ti+to"
#Row5 "Temp%s2°$r10s1+s2"
#
Row5 %x1
Row6 %x2
#
Row6 "Mails %e3/%u3"

aber da stehen keine daten (cpu usw.)
 
Na immerhin 2 schwarze Zeilen am Display, dann tut sich doch schon etwas :)

Die Konfigdatei sieht nicht schlecht aus, bis auf die überflüssigen Row5 und Row6-Zeilen.
Für den Anfang kannst Du auch nur mit einer Zeile testen und dort einfach nur Text ausgeben. z.B.

Display HD44780
Port /dev/parport0
Size 20x4
Delay 503
Tick.Text 500
Tick.bar 100
Row1 "Das ist ein Test"
 
hi

ich meinte das so: wenn ich meinen rechner einschalte sind da zwei schwarze zeilen wenn ich lcd4linux anmache dann sind die weg ==> aber es tut sich was :D

aber auch die "test" zeile funktioniert nicht: Row1 "das ist ein test"

hmmm?
 
linux:~ # lcd4linux -Fvv
Version 0.9.11 starting
lcd4linux.c: initializing driver HD44780
HD44780: controlling 0 GPO's
wiring: using display with 1 controllers
wiring: using 8 bit mode
wiring: [DISPLAY:RS]<==>[PARPORT:AUTOFD]
wiring: [DISPLAY:RW]<==>[PARPORT:GND]
wiring: [DISPLAY:ENABLE]<==>[PARPORT:STROBE]
wiring: [DISPLAY:ENABLE2]<==>[PARPORT:SELECT]
wiring: [DISPLAY:GPO]<==>[PARPORT:INIT]
udelay.c: CPU supports Time Stamp Counter
udelay.c: CPU runs at 899.974000 MHz
udelay.c: using TSC delay loop, 900 ticks per microsecond
parport.c: using ppdev /dev/parport0
processor.c: Display: 4 rows, 20 columns, 5x8 pixels, 0 icons, 0 GPOs
processor.c: ========================
processor.c: Timings:
processor.c: 500 msec Text updates
processor.c: 100 msec Bar updates
processor.c: 100 msec Icon updates
processor.c: 100 msec GPO updates
processor.c: ------------------------
processor.c: 100 msec data collection
processor.c: 100 msec data processing
processor.c: ========================
processor.c: Row1: das ist ein test
processor.c: Row2: %p CPU %r MB RAM
processor.c: Row3: Busy %cb%% $r10cs+cb
processor.c: Row4: Load%l1%L$r10l1
lcd4linux.c: starting main loop
system.c: open(/proc/loadavg)=4
system.c: open (/proc/stat)=5
system.c: uname(machine)=i686
system.c: sizeof(/proc/kcore)=268374016 bytes
 
Okay, 2 schwarze Balken bedeutet, daß das Display Saft bekommt.
Wenn die Balken beim Aufruf von lcd4linux verschwinden, bedeutet das, daß das Display auch initialisiert wird.
Das heißt weiters, das Problem liegt mit größter Wahrscheinlichkeit an der Verkabelung.

Nach welchem Schaltplan hast Du Dein Display angeschlossen?
Kannst Du mir die genaue Verkabelung beschreiben (welcher Pin am Parallelport geht auf welchen Pin am Display?).

Gipsy
 
hi

ich habe denn bauplan vom internet aber das ist schon lange her ich schau mal ob ich denn gleichen finde

ich habe win xp und linux drauf im xp funktioniert's

naja ich schau mal nach demm bauplan
 
hi

habe hier was gefunden http://www.moddingpower.de/artikel.php?page=lcd

das ist genau das gleiche, so habe ich das gemacht
 
Du benötigst das Winamp-Wiring, weil das lcd4linux-Standard-Wiring mit Deiner Beschaltung nicht funktioniert.

Dazu mußt Du folgende Zeilen zu lcd4linux.conf hinzufügen:

Wire.RW "AUTOFD"
Wire.RS "INIT"
Wire.ENABLE "STROBE"
Wire.ENABLE "GND"
Wire.GPO "GND"

Wenn das auch nicht funktioniert, sieh' doch bitte zum weiteren Troubleshooting nach, welchen Anschluß am Display Du mit welchem Anschluß am Parallelport verbunden hast.
 
Oben