On Tue, Jan 21, 2014 at 11:30:05AM -0300, Fernando de Oliveira wrote:
> Em 20-01-2014 21:24, Ken Moffat escreveu:
> >  I think we have an overzealous "Note" in the Kernel Configuration
> > part of the cups instructions -
> > 
[...]

 Thanks for the reply - I was starting to think my message had got
lost (I haven't yet got a copy from the list, but that is also true
of one or two recent posts on the -support lists where I've only
> 
> I have always used libusb, so, do not know much about this. But this
> subject is of much interest for me, you know...
> 
> After reading your post I tried escputil, unfortunately:
> 
> {{{
> $ env LC_ALL=C sudo escputil --new --raw-device=/dev/usb/lp0 --identify

 On my system, /dev/usb/lp0 is created for the usblp driver - i.e.
you have created usblp.ko in
/lib/modules/$(uname -r)/kernel/drivers/usb/class/

 Without that driver, the device does not exist for me.

> ...
> Unknown printer Stylus CX7300!
> EPSON Stylus CX7300
> 
> ...
> 
> $ escputil -M | grep CX7
> escp2-cx7000f   Epson Stylus CX7000F
> escp2-cx7400    Epson Stylus CX7400
> escp2-cx7700    Epson Stylus CX7700
> escp2-cx7800    Epson Stylus CX7800
> }}}
> 
> Cups uses Epson Stylus CX7000F an sane uses Epson Stylus CX7400. I would
> like to discover how to instruct escputil to think that the printer is
> one of those two. Failed to find it in web searches.
> 
 You say your printer also does scanning, i.e. it is a multifunction
device.  One link I found was
http://lists.linuxfoundation.org/pipermail/printing-architecture/2012/002412.html
which suggests that multifunction printers are a bit too complex for
the traditional methods.

 NB escputil is a user tool, the printer needs to be idle but you
don't need root permissions.  For checking ink levels,
 escputil -i -r /dev/usb/lp0
works for me.

> Back to your subject, I did some tests in Lubuntu (my CUPS/SANE server).
> 
> {{{
> $ lsmod | grep usb
> usblp                  17885  0
> usb_storage            39646  0
> }}}
> 

 Debian and ubuntu had code to get both backends working (see the
link above), and I guess some of it is now upstream.

> Tried using ldd to find any CUPS library or application linked to libusb
> in LFS7.4: none.
> 

 Yeah, the use is well hidden.  And the build-system defaults to a
"quiet" output so that the commands do not get shown.  With 1.7.0,
(I'm still using that) if libusb-1.0 is found it will be reported in
the CFLAGS (I can see that in my log) and it should define LIBUSB
as -lusb-1.0.  That gets referenced in backend/Makefile - it is used,
if present, when backend/usb is created - and that gets
installed at /usr/lib/cups/backend/usb.

ĸen
-- 
das eine Mal als Tragödie, dieses Mal als Farce
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to