[cups] Guidance on troubleshooting printing to USB-connected brother laser printer

Brian Potkin claremont102 at gmail.com
Thu Oct 1 08:55:03 PDT 2020


On Thu 01 Oct 2020 at 19:55:12 +0530, Banibrata Dutta wrote:

> >> It would be good to confirm that this device is capable of working with
> >> the IPP-over-USB protocol. Please give what you get for
> >>
> >>   lsusb -v | grep -A 3 bInterfaceClass.*7
> >>
> >
> > Output of above command, follows:
>
> Couldn't open device, some information will be missing
> Couldn't open device, some information will be missing
> Couldn't open device, some information will be missing
> Couldn't open device, some information will be missing
> Couldn't open device, some information will be missing
>       bInterfaceClass         7 Printer
>       bInterfaceSubClass      1 Printer
>       bInterfaceProtocol      2 Bidirectional
>       iInterface              0
> can't get debug descriptor: Resource temporarily unavailable
> Couldn't open device, some information will be missing
> Couldn't open device, some information will be missing
> Couldn't open device, some information will be missing
>
> Does it confirm that this printer supports IPP-over-USB ? The complete of
> lsusb -v output, just for this device:

It does not indicate that the printer supports IPP-over-USB. One would
expect lines with "bInterfaceProtocol      4" in the output. On Ubuntu
20.04, 'systemctl status ippusbxd' should show an active and running
service. This is all explained at

  https://wiki.debian.org/CUPSDriverlessPrinting

So we go back to complete the previous debugging task.

Execute

 sudo cupsfilter -p PPD_in_/etc/cups/ppd -m printer/foo -e
your4-pagePDF > out.dat 2>log

Check log for errors. out.dat is a printer-ready file. Send it directly
to the printer with

 sudo sh -c 'cat out.dat > /dev/usb/lp0'

(I would do 'cat out.dat > /dev/usb/lp0' as root, but I think this works
with sudo).

Does out.dat print?

Cheers,

Brian.


More information about the cups mailing list