Ticket #127 (closed defect: fixed)

Opened 2 months ago

Last modified 2 months ago

LCD4Linux problems

Reported by: Z-master Owned by: michael
Priority: high Component: lcd4linux
Version: Severity: major
Keywords: Cc:

Description

Hi there, I'm a bit stumped. I own a CFA2004A-TMI-JP LCD from CrystalFontz? that I was trying to get going with lcd4linux.

When running the program with any "}" characters it throws up an error "' is invalidfig file '/etc/lcd4linux.conf' line 4: key '}"

If I remove the offending '{'s and run lcd4linux, I receive the following error "Jade:/home/whale# lcd4linux

: garbage <arse error in <'HD44780-winamp'

missing 'Display:HD44780-winamp.Driver' entry in /etc/lcd4linux.conf!"

My lcd4linux file is attached, perhaps someone can tell me what I have messed up :)

Thanks for your help,

Z-master

Attachments

lcd4linux.conf (6.3 kB) - added by anonymous 2 months ago.

Change History

Changed 2 months ago by anonymous

Changed 2 months ago by Z-master

  • priority changed from normal to high
  • severity changed from normal to major

I forgot to add that I used both apt-get and built from source, both giving the same errors.

Also I am using Debian 4.0r4 (2.6.22.1 (SMP) Kernel)

Changed 2 months ago by anonymous

Hi what kind of Editor do you use? So there maybe the main problem while editing the *.conf.

Display HD44780-20x2 {

Driver 'HD44780' Model 'generic' UseBusy? 1 Port '/dev/parport0' Size '20x2' Wire {

RW 'AUTOFD' RS 'INIT' ENABLE 'STROBE' ENABLE2 'GND' GPO 'GND'

}

}

Widget CPU {

class 'Text' expression uname('machine') prefix 'CPU ' width 9 align 'L' update tick

}

Layout Default {

Row1 {

Col1 'CPU'

}

}

Variables {

tick 500

}

Display 'HD44780-20x2' Layout 'Default'

You have to use this "}"

Changed 2 months ago by Z-master

Hi there,

editor I used was vim, have now tried both Win Notepad, and nano with the same results however.

Z-master

Changed 2 months ago by anonymous

Hi Z-master

I have seen your config, but without these } I think it will not work.

I will try to wirte a samll sample config for you.

On the wiki there are sample config, so maybe you try at first this one with your HD44870-winamp driver.

And there is good German Support Forum called: www.ipcop-forum.de and they have an english speaking support section. I think they can help you out, too.

Greetz UNiX

Changed 2 months ago by Z-master

Thanks mate,

I have added the }'s back in, which still gives off the following error:

Jade:/etc# lcd4linux -Fvvq Version 0.10.1-RC2-796 starting ' is invalidfig file '/etc/lcd4linux.conf' line 4: key '}

still unsure what it means, Have been playing with the config a bit to see what happens but still gives the above error. Must have something to do with the '}' character, because following the error and openign config going to line 4, there is only the '}' character which is rather unusual, there has to be a } to close the section after it has been opened with the '{' character.

Changed 2 months ago by Z-master

  • status changed from new to closed
  • resolution set to fixed

Please note, I have fixed this problem. Logging into webmin and reading the error logs I noticed that the error msg from lcd4l reads '/etc/lcd4linux.conf' line 4: key '}M so i removed all of the M control codes using VI, as they didn't show up in pico or vim.

Thanks to all those that replied!

best regards,

Z-master

Add/Change #127 (LCD4Linux problems)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.