Friday, September 13, 2013

Frankenrouter continued - getting the LCD to work

I previously wrote about my fiddling with lcdproc and tip to get characters to display.  After much initial failure, I finally got a working LCDd.conf for lcdproc.  For the impatient, here it is:

[server]
Driver=MtxOrb
DriverPath=/usr/local/lib/lcdproc/
Hello="   Hello World  "
Hello="      2013      "
ServerScreen=no
Heartbeat=off

[MtxOrb]
Device=/dev/cua01
Size=16x2
Type=lkd
Speed=19200
hasAdjustableBacklight=no

 The device is an old Matrix Orbital LK162-12.  The technical reference is here.  It took me some time with ktrace/kdump and the technical reference to figure out that the LCDd.conf Type= should be lkd, not the default lcd.  It looks like the LCDd at every refresh interval sends out "backlight on," "GPO off," and "underline off," commands.  On this screen, the "GPO off," command requires an extra argument as it has 6 GPOs, so the 0xFE part of the "underline off," command was getting chomped, leaving a bare K on the LCD in various places.

No comments: