Subject: usb printer woes
To: None <netbsd-users@netbsd.org>
From: Dan McMahill <dmcmahill@netbsd.org>
List: netbsd-users
Date: 03/02/2004 08:08:02
Hi,
I'm trying to get my wifes Compaq A1500 USB printer working under NetBSD.
When she used to have WinMe on the computer (before it self destructed)
I used to print via samba to it using the cdj550 ghostscript driver.
The system is:
NetBSD 1.6ZI (GENERIC) #0: Thu Feb 5 18:09:52 UTC 2004
cyber@tgm.netbsd.org:/autobuild/HEAD/i386/OBJ/autobuild/HEAD/src/sys/arch/i386/compile/GENERIC
The various bits of dmesg output related to the printer are:
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
ohci0 at pci0 dev 1 function 2: Silicon Integrated System 5597/5598 USB host controller (rev. 0x07)
ohci0: interrupting at irq 9
ohci0: OHCI version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: Silicon Integra OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 3 ports with 3 removable, self powered
ulpt0 at uhub0 port 1 configuration 1 interface 0
ulpt0: Compaq Corporation Compaq A1500, rev 1.10/1.00, addr 2, iclass 7/1
ulpt0: using bi-directional mode
My /etc/printcap entry looks like:
lp|pastry|cdj550;r=300x300;q=medium;c=full;p=letter;m=auto:\
:lp=/dev/ulpn0:\
:if=/usr/pkg/etc/apsfilter/basedir/bin/apsfilter:\
:sd=/var/spool/lpd/lp:\
:lf=/var/spool/lpd/lp/log:\
:af=/var/spool/lpd/lp/acct:\
:mx#0:\
:sh:
and the apsfilterrc looks like
PRINTER='cdj550'
PAPERSIZE='letter'
METHOD='auto'
QUALITY='medium'
COLOR='full'
RESOLUTION='300x300'
I've tried both ulpn0 and ulpt0. In either case, I print via 'lpr /etc/printcap' as a test
page and lpq shows that its been spooled, but nothing happens at the printer. So then
I tried running
a2ps -o - /etc/printcap | gs -q -sDEVICE=cdj550 -r300x300 -sOutputFile=/tmp/foo.dj - -c quit
and then
cat /tmp/foo.dj > /dev/ulpn0
nothing happened. So then I tried
cat /tmp/foo.dj > /dev/ulpt0
and the machine wedged hard. No response from the keyboard, no response to pings
over the network. Power cycling the printer didn't unwedge.
Any suggestions? I'd really like to see this printer work as its much faster than
my tired old gcc technologies 10 year old laser printer.
Thanks
-Dan
--