On Mon, Mar 13, 2006 at 10:48:22AM -0800, Pete Zaitcev wrote:
> --- foo2zjs/foo2zjs.c 2005-12-23 15:37:41.000000000 -0800
> +++ foo2zjs-4rychter/foo2zjs.c 2006-03-13 10:38:45.000000000 -0800
> @@ -310,12 +310,14 @@ chunk_write_rsvd(unsigned long type, uns
> {
> ZJ_HEADER chunk;
>
> + usleep(10*1000);
> chunk.type = be32(type);
> chunk.items = be32(items);
> chunk.size = be32(sizeof(ZJ_HEADER) + size);
> chunk.reserved = be16(rsvd);
> chunk.signature = 0x5a5a;
> fwrite(&chunk, 1, sizeof(ZJ_HEADER), fp);
> + fflush(fp);
> }
Try this:
foo2zjs | usb_slowdown <waitdelay>
Its a usb problem only. foo2zjs is a filter.
> Don't forget that you have to run "foo2zjs > /dev/usb/lp0" for
> the above to have any effect.
>
> If the patch works, we can think about adding necessary autodetection
> with fileno() and ioctl() - no need to slow down printing into
> a data stream. If it does not, well, it can be something else.
>
> Jan, would you mind hashing this out with Rick? I think it's out
> of the kernel area.
>
> -- Pete
--
Rick Richardson [EMAIL PROTECTED] http://home.mn.rr.com/richardsons/
Linux printer driver for HP CLJ 2600n http://foo2hp.rkkda.com/
Linux printer driver (KM 2430 and HP 10xx) http://foo2zjs.rkkda.com/
Linux tools for geocaching http://geo.rkkda.com/
The only thing that will stop airplanes from becoming missles is a steel
cabin door, locked on the ground, and two bottles for the pilots to pee into.
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel