This worked! I created a filter as follows:

#!/bin/bash
exec cat /var/spool/lpd/epson-raw/epson-usb-codes -

and the printer now works fine with raw documents sent from Windows through
Samba.

Thanks a lot!
--
Manuel A. McLure - Unify Corp. Technical Support <[EMAIL PROTECTED]>
Vah! Denuone Latine loquebar? Me ineptum. Interdum modo elabitur.


-----Original Message-----
From: Jurgen Botz [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 31, 2000 1:45 PM
To: [EMAIL PROTECTED]
Cc: linux-usb mailing list
Subject: Re: [linux-usb] Help with USB printer and usbdevfs 


"Stephen J. Gowdy" wrote:
>       I was going to say that this should probably be fixed in the
> uniprint driver but I guess that doesn't work if printing from lp0.
> Perhaps this should be in the printer.c module just for the Epson800?

No, the best thing is to send this from the lpd filter script.  On
RedHat when you set up a printer it installs a filter script specific
to that queue...  modify that script to send the sequence to stdout,
i.e. put a file with the sequence in the queue directory and have the
filter script cat that file as the first thing it does.  This is 
really the "right" way of dealing with this, since this way it works
even with input which never gets sent to gs, and is specific to the
print queue, which in turn is specific to the usb device.

To make it easier, I've attached the sequence as a binary file which
you can use for this.

The alternative, as someone suggested, would be to deal with this the
same way you might deal with "firmware" which needs to be sent to a
device whenever it comes on-line (probably by invoking a user-space
program when the device appears on the bus).  That might be more
elegant if only because the sequence only needs to be sent once, but
it might actually be the wrong thing because it may be possible to
connect a printer to two computers, one via USB and one via parallel.

- J�rgen


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to