LinHES Forums
http://forums.linhes.org/

FIXED! - LCD display problems
http://forums.linhes.org/viewtopic.php?f=5&t=16448
Page 1 of 1

Author:  mattshaw [ Tue Sep 11, 2007 5:40 pm ]
Post subject:  FIXED! - LCD display problems

Hi Guys

Just upgraded to R5F27, went as smooth as you like !!!!

Just trying to get my LCD hd44780 going, had a backup of a previous LCDd.conf. But then I saw that there were already two LCDd.conf's on the system, one in /etc and one in /etc/lcdproc, so overwrote both of them with mine.

Went into myth setup and turned on the lcd option. Then rebooted. No display on lcd.

ssh'd in and su'd to root, and manually typed LCDd but it wouldn't start properley, got the error

LCDServerSocket.o: Something is wrong trying to start with port=6545
LCDServerSocket.o: You've probably got another copy of lcd server already running.
LCDServerSocket.o: You might want to try "ps ax | grep mythlcdserver".
LCDServerSocker.o: This copy will now exit ...

Did as told, and ps -ax|grep mythlcdserver told me it was indeed running, did a killall on it and it died, a few seconds later and another process was running for mythlcdserver !!!!

Now, does the mythlcdserver do the equivalent of the LCDd command, ie. starting the lcd daemon, or do I have to put it in a startup myself before mythlcdserver tries to kick in ???? I have looked at the previous posts, but not sure whether to follow them, as lcdproc was just updated for R5F27

Author:  slowtolearn [ Tue Sep 11, 2007 6:03 pm ]
Post subject:  Re: LCD display problems

mattshaw wrote:
Now, does the mythlcdserver do the equivalent of the LCDd command, ie. starting the lcd daemon, or do I have to put it in a startup myself before mythlcdserver tries to kick in ???? I have looked at the previous posts, but not sure whether to follow them, as lcdproc was just updated for R5F27
mythlcdserver does not start LCDd, it talks to it. You need to update /etc/default/LCDd (new since R5F1) and make it look like this:
Code:
# /etc/default/LCDd -- config file for LCDd startup

# shall LCDd be started (yes/no)
START=yes

# options for LCDd startup
OPTIONS="-c /etc/lcdproc/LCDd.conf"

# EOF
If the LCDd.conf you want to use is not in /etc/lcdproc then adjust that setting as well. Then you want to run
Code:
update-rc.d LCD defaults
and reboot. Your LCD should be active after this.

The equivalent steps for the iMON VFD can be found in /usr/local/bin/vfd_install.sh. If you can provide how to identify your LCD and the steps you take to get it working I can add to this script to help automate this in future releases.

Author:  mattshaw [ Tue Sep 11, 2007 6:18 pm ]
Post subject: 

Hiya

My LCD is a Pertelian USB HD44780 lcd, which connects on to the system via the USB port with "ID 0403:6001 Future Technology Devices International, Ltd 8-bit FIFO" being the output of lsusb, which I think is just the usb/serial converter ID.

If this could be automated, it would be cool.

Thanks for the excellent help.

Author:  slowtolearn [ Tue Sep 11, 2007 6:51 pm ]
Post subject: 

mattshaw wrote:
Hiya

My LCD is a Pertelian USB HD44780 lcd, which connects on to the system via the USB port with "ID 0403:6001 Future Technology Devices International, Ltd 8-bit FIFO" being the output of lsusb, which I think is just the usb/serial converter ID.
Hmmm, the information I find in /etc/lcdproc/LCDd.conf indicates the hd44780 is a serial device. If you have it working, could you post the relevant portions of your LCDd.conf?

mattshaw wrote:
If this could be automated, it would be cool.

Thanks for the excellent help.
Glad to assist.

Author:  mattshaw [ Mon Sep 17, 2007 4:26 pm ]
Post subject: 

The LCD does not work, but I did have it running with lcdproc 0.5.1, and I am using that LCDd.conf. I have emailed the lcdproc list to ask if I have the parameters set correctly, but strange it worked in 0.5.1, but not now.

Will let you know my relevant settings as and when.......

Thanx

Author:  mattshaw [ Thu Sep 20, 2007 8:59 am ]
Post subject: 

Just got it working, thanks to the lcdproc mailing list, apparently the config settings had changed since the cvs version I was using. Below is the relevant settings (with all commented lines removed) for the Pertelian X2040 USB LCD display (modified hd44780)

## Hitachi HD44780 driver ##
[hd44780]
ConnectionType=pertelian
Port=/dev/ttyUSB0
Device=/dev/ttyUSB0
Speed=0
Keypad=no
Contrast=0
Backlight=yes
OutputPort=no
Size=20x4
Charmap=hd44780_default
Default: 0.
DelayBus=true
KeyMatrix_4_1=Enter
KeyMatrix_4_2=Up
KeyMatrix_4_3=Down
KeyMatrix_4_4=Escape

Author:  mattshaw [ Fri Oct 26, 2007 3:35 am ]
Post subject: 

Hey slowtolearn,

have any changes been made for the next release ???

Everything is still working fine, just wondered if my feedback would be used.

These Pertelian X2040 USB LCD's are very good value (currently $48.99 on thinkgeek.com), and I would like to highly recommend them to the forum.

If you dont want to use the standard lcdproc to drive it from myth/linux, I have written a few scripts using its own daemon, and its really easy to program......

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/