LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 08-10-2010, 11:29 AM   #1
DebianUser
Member
 
Registered: Apr 2010
Posts: 88

Rep: Reputation: 15
Hd44780


I'm trying to get a HD44780 compatible display working on Debian

lsusb
Bus 001 Device 026: ID 0403:c630 Future Technology Devices International, Ltd lcd2usb interface

dmesg
[43112873.190000] usb 1-2.2: new low speed USB device using ehci_hcd and address 26
[43112873.420000] usb 1-2.2: configuration #1 chosen from 1 choice
[43112873.430000] usb 1-2.2: New USB device found, idVendor=0403, idProduct=c630
[43112873.440000] usb 1-2.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[43112873.450000] usb 1-2.2: Product: LCD2USB
[43112873.450000] usb 1-2.2: Manufacturer: Lcdmod Kit

messages
[43112873.190000] usb 1-2.2: new low speed USB device using ehci_hcd and address 26
[43112873.420000] usb 1-2.2: configuration #1 chosen from 1 choice
[43112873.430000] usb 1-2.2: New USB device found, idVendor=0403, idProduct=c630
[43112873.440000] usb 1-2.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[43112873.450000] usb 1-2.2: Product: LCD2USB
[43112873.450000] usb 1-2.2: Manufacturer: Lcdmod Kit

i've installed lcd4linux via apt-get however i'm now stuck as nothings created in /dev
 
Old 08-10-2010, 12:03 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Post your /etc/lcd4linux.conf
Are you configured to use the lcd2usb driver?

The driver is built into lcd4linux. I've never used lcd4linux but it does not look like a /dev is actually created. http://ssl.bulix.org/projects/lcd4linux/wiki/LCD2USB
 
Old 08-10-2010, 01:13 PM   #3
DebianUser
Member
 
Registered: Apr 2010
Posts: 88

Original Poster
Rep: Reputation: 15
Hi

It's all very confusing actually ha here's my conf file

Code:
Display HD44780-20x2 {
    Driver  'LCD2USB'
    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'
lcd4linux
Error 15: 'problems getting a response from "localhost" on port 6600 : Connection refused'
Error: Cannot connect to MPD! Is MPD started?

I tried setting display to LCD2USB as well but same result, i'm gussing the port Port '/dev/parport0' is wrong but not sure how to find out what port my display is on?
 
Old 08-10-2010, 01:42 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
The link I posted has a display example for your device.

What linux distribution are you running and is the version of lcd4linux? mpd is a music player that can be controlled over ethernet.

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=499055

Last edited by michaelk; 08-10-2010 at 01:44 PM.
 
Old 08-10-2010, 03:03 PM   #5
DebianUser
Member
 
Registered: Apr 2010
Posts: 88

Original Poster
Rep: Reputation: 15
I'm using LCD4Linux 0.10.1-RC2-796

lcd4linux -Fvvq

Version 0.10.1-RC2-796 starting
[KVV] Using station 89
[KVV] Using default port 80
[KVV] Using default refresh interval of 60 seconds
[KVV] Default abbreviation setting: off
Error 15: 'problems getting a response from "localhost" on port 6600 : Connection refused'
Error: Cannot connect to MPD! Is MPD started?
lcd4linux.c: initializing driver LCD2USB
LCD2USB: $Rev: 773 $
LCD2USB: scanning USB for LCD2USB interface ...
LCD2USB: scanning for bus id: 001
LCD2USB: scanning for device id: 055
LCD2USB: found LCD2USB interface on bus 001 device 055
LCD2USB: echo test successful
LCD2USB: firmware version 1.08
LCD2USB: installed controllers: CTRL0
LCD2USB: reserving 1 of 8 user-defined characters for icons
initializing layout 'Default'
lcd4linux.c: starting main loop

lcd4linux.conf

Code:
Display LCD2USB {
    Driver     'LCD2USB'
    Bus        '001'
    Device     '055'
    Size       '40x4'
    Contrast   250
    Brightness 200
    Icons      1
}

Display 'LCD2USB'
Layout  'Default'

Widget CPU {
    class  'Text'
    expression  uname('machine')
    prefix 'CPU '
    width  9
    align  'L'
    update tick
}
Backlight is on but screen is blank, also every time the lcd is plugged the 'device' number changes is there a way to change it to /dev/lcd for example?
 
Old 08-10-2010, 03:47 PM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
According to the documnetation the Bus and Device is only required for multiple lcd2usb interfaces.
From reading the documentation you should add a variables section if using tick or specify an update interval in milliseconds.
Code:
Variables {
   tick 500
}
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 09:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration