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 -
> 
> | There is a conflict between the Cups libusb backend and the usblp
> | kernel driver. If you want to use Cups with libusb, do not enable
> | USB Printer support in your kernel. 


> printing via libusb without the kernel's usblp driver worked
> fine.  So far so good, and I decided to reinstate colord and to
> allow myself to use lsusb from usbutils if I ever needed it.
> 
>  And then I went back to that build to put a 3.13.0 kernel on it.  I
> wanted to check my ink (using escputil), but that needs to read the
> raw device, /dev/usb/lp0, and I didn't have one.  Googling showed
> that arch's wiki mentions building usblp as a module, inserting it
> before using escputil, and then rmmod'ing it to enable printing to
> work.  Sounded awkward, but worth a try.
> 
>  In fact, with usblp as a module everything is working fine in
> 3.13.0 with libusb!  When I connect the printer, usblp (and
> usb_storage - who said printers were straightforward ? :) gets
> loaded and escputil is able to tell me which ink is running out.
> And then, even without trying to rmmod usblp, printing through cups
> works fine.
> 
>  Not sure if building usblp into the kernel will work the same way ?
> I'll have to try that when I next build a new kernel for this system,
> I suppose [ CONFIG_USB_PRINTER=y ].
> 
>  Meanwhile, opinions from people with different usb printers who use
> cups and libusb would be welcome.  Maybe usblp needs to be a module
> so that it isn't loaded when cups start, or perhaps any previous
> problem has now been resolved in a recent version of one of the
> packages. 
> 
> ĸen
> 

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
...
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.

Back to your subject, I did some tests in Lubuntu (my CUPS/SANE server).

{{{
$ lsmod | grep usb
usblp                  17885  0
usb_storage            39646  0
}}}

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

I do not understand this result.

But all seem to indicate that there is no problem, as module, like you said.

Tomorrow, I will investigate ArchLinux, Fedora and Mageia. I think we
are not in a rush (if you think we are, I will stop other
editing/developing works and will concentrate just on this one), but
your experiment is in time for us to modify definitely our CUPS page.

I will try to help as I can. Eventually, I could bring the printer
temporarily to connect by cable, instead of wifi.

Thanks for this experiment.

-- 
[]s,
Fernando
-- 
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