Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 1 Jul 2006 22:14:46 -0400
From:      John Nielsen <lists@jnielsen.net>
To:        freebsd-questions@freebsd.org, sigsegv@radiotube.org
Subject:   Re: CUPS, USB printers & "Permission Denied"
Message-ID:  <200607012214.47054.lists@jnielsen.net>
In-Reply-To: <44A6A58F.7090602@radiotube.org>
References:  <200606301737.32015.rainer.heesen@gmx.de> <44A6A3D5.9020607@radiotube.org> <44A6A58F.7090602@radiotube.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Saturday 01 July 2006 12:40, Jan-Espen Pettersen wrote:
> > The problem is that read operations on usb printers might just
> > block/hang with no data from the printer (?). ulpt doesn't have
> > non-blocking I/O, so I've made a patch that simply times out read
> > operations, and disables further reads if it detects a blocking/stall
> > condition. It is possible that this breaks the back-channel, as I'm
> > unsure if we can expect a printer to send inbound data before we
> > actually write anything out?
> >
> > It looks like there are similar problems with other backends? I've only
> > looked at the usb backend yet.
>
> Sorry, the attachment got cleared by mailman.
> http://www.radiotube.org/patch-backend_usb-unix.c
>
> Put it into /usr/ports/print/cups-base/files if you would like to test
> it.

That works for me with my USB Lexmark E210. (The file:/ URI workaround also 
works).

Thanks!  Are you coordinating anything with the cups project or the port 
maintainer to explore this issue?

JN



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200607012214.47054.lists>