News: This forum is now permanently frozen.
Pages: [1]
Topic: LCDproc - Using an LCD display?  (Read 6552 times)
« on: January 10, 2012, 02:03:20 »
helios *
Posts: 8

Hi,

I have been running m0n0wall since many years and now I got an 20*4 LCD from http://www.lcdmodkit.com/lcd/U204FB-A1.html for my FreeNas and m0n0wall. It uses HD44780 and lcd2usb. The latest FreeNAS 0.7.5 nightly comes with LCDproc support built in and it works!

Searched the web for a guide for m0n0wall and found this: http://forum.m0n0.ch/index.php/topic,3130.0.html but the tar package is gone. Got the same or similar package from pfsense forum and uploaded it using the instructions. But I can't execute the script files (sh). /tmp/lcdd/lcdd.sh complains $ /tmp/lcdd/lcdd.sh
/tmp/lcdd/lcdd.sh: /usr/bin/nice: not found.

Anybody out there have some info about getting lcd displays working? 
« Reply #1 on: January 11, 2012, 02:53:38 »
gus *
Posts: 27

Check this thread out on pfsense:
http://forum.pfsense.org/index.php/topic,7920.0.html

and files:
http://files.pfsense.org/misc/lcdd.tar.gz
« Reply #2 on: January 12, 2012, 01:14:12 »
helios *
Posts: 8


Thanks, that is the archive I used. Get these error messages:



* tar1.png (19.23 KB, 668x434 - viewed 374 times.)

* tar2.png (9.23 KB, 665x245 - viewed 259 times.)

* tar3.png (9.35 KB, 671x254 - viewed 250 times.)
« Reply #3 on: January 16, 2012, 01:07:41 »
brushedmoss ****
Posts: 446

try do these commands

copy the drivers to where lcdd.conf expects (or edit lcdd.conf)

Code:

mkdir -p /usr/local/share/lcdd/drivers/

cp /tmp/lcdd/drivers/* /usr/local/share/lcdd/drivers/

Then execute the daemon

Code:

/tmp/lcdd/LCDd -r 0 -c /tmp/lcdd/LCDd.conf > /dev/null 2>&1 &

and then the client

Code:
/tmp/lcdd/lcdproc C M S &

« Last Edit: January 16, 2012, 01:13:15 by brushedmoss »
« Reply #4 on: January 16, 2012, 16:36:11 »
helios *
Posts: 8

Thanks! I tried them but on the last step I get this error:

$ /tmp/lcdd/lcdproc C M S &
/libexec/ld-elf.so.1: Shared object "libkvm.so.3" not found, required by "lcdproc"

So I tried this:

ln -s libc.so.7 libc.so.6
ln -s libkvm.so.5 libkvm.so.3

and then I had to do this to not see the same error:

ln -s libkvm.so.5 libkvm.so.4
And now I have those in /lib but I get this error now:

$ /tmp/lcdd/lcdproc C M S &
sock_connect: connect failed
Error connecting to LCD server 127.0.0.1 on port 13666.
Check to see that the server is running and operating normally.

So I re-ran: /tmp/lcdd/LCDd -r 0 -c /tmp/lcdd/LCDd.conf > /dev/null 2>&1 &
and
/tmp/lcdd/lcdproc C M S &

and no more error messages! But nothing on the display, so I will edit the config file and see if that does any change.
« Last Edit: January 16, 2012, 16:45:24 by helios »
« Reply #5 on: January 16, 2012, 17:26:12 »
helios *
Posts: 8

I edited the config file to use the correct driver hd44780 and connectiontype=lcd2usb made a new tar archive, rebooted m0n0wall and did these steps:

1) Goto http://[m0n0wall.IP]/exec.php
2) Upload lcdd.tar
3) cd /tmp; tar -xvf /tmp/lcdd.tar; ls -alp /tmp/
4) cd /lib; ln -s libc.so.7 libc.so.6; ln -s libkvm.so.5 libkvm.so.3; ln -s libkvm.so.5 libkvm.so.4
5) mkdir -p /usr/local/share/lcdd/drivers/
6) cp /tmp/lcdd/drivers/* /usr/local/share/lcdd/drivers/
7) /tmp/lcdd/LCDd -r 0 -c /tmp/lcdd/LCDd.conf > /dev/null 2>&1 &
Cool /tmp/lcdd/lcdproc C M S &

I now get this message:

$ /tmp/lcdd/lcdproc C M S &
sock_connect: connect failed
Error connecting to LCD server 127.0.0.1 on port 13666.
Check to see that the server is running and operating normally.

Tried top but can't see LCDd running

Update:

Added the hd44780.so driver but same result.

Replaced the old binarys from ones from the freebsd 8.2 ports but still same error message complaining that the server is not running.
« Last Edit: January 16, 2012, 20:44:56 by helios »
« Reply #6 on: January 16, 2012, 23:10:52 »
brushedmoss ****
Posts: 446

lcdd is not running, which in your list is step 7.

It is probably giving an error which is silenced by the

Code:
> /dev/null 2>&1 &

you could try send the output to a file and see why it fails by examining the file ?

Code:
/tmp/lcdd/LCDd -r 0 -c /tmp/lcdd/LCDd.conf > /tmp/lcdd.output 2>&1 &

I think lcdproc needs to have usb support compiled in, so depends on where this binary came from, it may not have usb support compiled in, and lcd2usb may be failing, you may also need libusb

I don't have any lcd's and have not run lcdproc before, so am guessing at this and reading

http://sourceforge.net/apps/phpbb/freenas/viewtopic.php?f=96&t=1897#p41311
« Reply #7 on: January 16, 2012, 23:43:48 »
brushedmoss ****
Posts: 446

you might get success with this thread, the tar file link still works

http://forum.pfsense.org/index.php/topic,4065.0.html
« Reply #8 on: January 17, 2012, 00:20:09 »
helios *
Posts: 8

Thank you for all your help. I have now tried with the one compiled for usb together with libusb copied to /usr/local/lib and now I get this error message:

Code:
$ cat /tmp/lcdd.output
Critical error while initializing, abort.

The error before using that version was that the LCDd.conf couldn't be read.
« Reply #9 on: January 17, 2012, 00:28:54 »
brushedmoss ****
Posts: 446

what version of m0n0wall are you using ?  I assume 1.33 ?
« Reply #10 on: January 17, 2012, 00:53:48 »
helios *
Posts: 8

Oh, 1.8.0b478 is the version I use now. At first I used 1.33 but then I upgraded in the hopes that something was wrong with my setup. Should I downgrade?
« Reply #11 on: January 17, 2012, 01:12:28 »
brushedmoss ****
Posts: 446

yes.  1.8x versions of m0n0wall are based on freebsd 8, 1.33 is based on freebsd 6

the lcdproc from the pfsense thread is compiled against freebsd 6, so I wouldn't expect it to work on m0n0wall 1.8x versions.

« Reply #12 on: January 17, 2012, 01:47:51 »
helios *
Posts: 8

Ok downgraded to 1.33. Still receives

Code:
$ cat /tmp/lcdd.output
Critical error while initializing, abort.

 Huh
 
Pages: [1]
 
 
Powered by SMF 1.1.20 | SMF © 2013, Simple Machines