|
OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|||
/dev/ulpt0 doesn't respond
I'm using OpenBSD 4.3-RELEASE and I'm trying to get printing working.
I have an HP LaserJet 1018 monochrome (ie. black & white only) printer. Unlike most HP LaserJets, this printer is one of a handful of HP printers that don't use the PostScript wire protocol (the protocol on the wire between the printer driver and the printer). Instead, it uses a more efficient, but proprietary protocol called ZjStream. Fortunately, there is an open source 'translator' called foo2zjs that translates a PostScript file (coming from CUPS) into a ZjStream file just before it's sent to the printer. I've downloaded, compiled and installed foo2zjs as per the INSTALL instructions for OpenBSD in the foo2zjs tarball. However, I'm having problems actually printing from OpenBSD to the HPLJ1018. The HPLJ1018 does not have a "persistent" firmware. Instead, its firmware must be downloaded to it every time it is powered up. This is easily achieved with the cat command: Code:
$ cat /usr/share/foo2zjs/firmware/sihp1018.dl > /dev/??? When I power up the HPLJ1018 and plug it in to one of my PC's USB ports, dmesg shows: Code:
ulpt0 at uhub0 port 2 configuration 1 interface 0 "Hewlett-Packard HP LaserJet 1018" rev 2.00/1.00 addr 2 ulpt0: using bi-directional mode Code:
$ cat /usr/share/foo2zjs/firmware/sihp1018.dl > /dev/ulpt0 Code:
ksh: cannot create /dev/ulpt0: Device busy Code:
Jul 7 12:56:54 zonbu /bsd: ulpt0 at uhub0 Jul 7 12:56:54 zonbu /bsd: port 2 configuration 1 interface 0 "Hewlett-Packard HP LaserJet 1018" rev 2.00/1.00 addr 2 Jul 7 12:56:54 zonbu /bsd: ulpt0: using bi-directional mode |
|
|||
Where do you found such info?
|
|
|||
It's written in the INSTALL file.
|
|
|||
I appear to have fixed the problem. It was a simple case of enabling the lp daemon (lpd). I had not done this. Once I had it running, printing was no problem.
EDIT: It seems enabling lpd was only half the solution. After shutting everything down and repeating my steps, I discovered there is a problem with OpenBSD loading the firmware into the printer. If I simply unplug the printer from my OpenBSD server's USB port and plug the printer into my Archlinux PC then the firmware is transfered to the printer (from my Archlinux install). I then unplug it from my Archlinux box and plug it back into my OpenBSD server et voila! The printer works. If I don't do this then the printer just sits there idle. Last edited by Shagbag; 8th July 2008 at 06:23 AM. Reason: found another cause |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
ln -f at boot doesn't work | lordyan | OpenBSD General | 3 | 19th February 2009 03:50 PM |
amarok doesn't compile | nico_h | FreeBSD Ports and Packages | 1 | 21st December 2008 03:38 AM |
System doesn't respond to any application! | disappearedng | FreeBSD General | 11 | 14th October 2008 04:21 PM |
FreeBSD doesn't boot | purak | FreeBSD Installation and Upgrading | 7 | 9th October 2008 05:24 PM |
sshd doesn't time out | arch | FreeBSD Security | 4 | 6th September 2008 12:23 PM |