SliTaz SliTaz Forum

You are not logged in.

#1 2014-11-19 15:39:38

kultex
Administrator
Registered: 2011-03-28
Posts: 1,175

why cups does not find the usb printer?

I am trying to setup a usb printer on the computer of a friend

the printer is present, but on the cups webinterface it does not show up

root@slitaz:/home/anita# lsusb

Bus 001 Device 004: ID 04a9:10d3 Canon, Inc.

root@slitaz:/home/anita# netstat -ant | grep 631

tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN

tcp        0      0 ::1:631                 :::*                    LISTEN 

root@slitaz:/home/anita# dmesg | grep usblp0

usblp0: USB Bidirectional printer dev 4 if 0 alt 0 proto 2 vid 0x04A9 pid 0x10D3

root@slitaz:/home/anita# /usr/lib/cups/backend/usb

direct usb://Canon/iP2700%20series "Canon iP2700 series" "Canon iP2700 series" "MFG:Canon;CMD:BJL,BJRaster3,BSCCe,IVEC,IVECPLI;SOJ:TXT01;MDL:iP2700 series;CLS:PRINTER;DES:Canon iP2700 series;VER:1.030;STA:10;FSI:00;HRI:EU;MSI:AOFF,BOFF,DAT,E3;PDR:4;" ""

Offline

#2 2014-11-19 16:39:54

kultex
Administrator
Registered: 2011-03-28
Posts: 1,175

Re: why cups does not find the usb printer?

google brings something up, but I cannot visit the page

Cups-1.6.2 - usrbin design + programming

www.usrbin.ca/damon/IGNORE/lfs/blfs/.../cups.html

Diese Seite übersetzen

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

Offline

#3 2014-11-19 21:33:59

kultex
Administrator
Registered: 2011-03-28
Posts: 1,175

Re: why cups does not find the usb printer?

this drives me really crazy..

Imy friend has a router with usb port and printer support - so I put the printer there, to get it away from the usb port.

I have a crunchbang CD with me and tested it there - the printer works without any problems - I did exactly the same adjustments and it the jobs are cancelled - see attachment

Edit: the second screenshot is from crunchbang to compare

[attachment=34766,1762] [attachment=34766,1763]

Offline

#4 2014-11-19 22:12:16

kultex
Administrator
Registered: 2011-03-28
Posts: 1,175

Re: why cups does not find the usb printer?

ok - I think I have the solution: we miss the package cups-filters

From CUPS 1.6.0 on, this package is required for using printer drivers with CUPS under Linux. With CUPS 1.5.x and earlier this package can be used optionally to switch over to PDF-based printing.

see: http://www.linuxfoundation.org/collaborate/workgroups/openprinting/cups-filters

http://www.openprinting.org/download/cups-filters/

it would be nice, if sombody can compile it

Offline

#5 2014-11-22 14:06:40

skyhawk
Member
Registered: 2012-11-05
Posts: 21

Re: why cups does not find the usb printer?

I see the same thing happening when trying to install my old HP Laserjet P1006 with hplip-3.12.2 (self-compiled). Running hp-setup gives the error "unable to setup printer queue." Printer seems to be detected on the USB port, but CUPS cannot find the printer. The printer is wired, not wireless, print-function only, monochrome.

Other distros I've used also have such packages as foomatic-engine, foomatic-rip, hplip-gui, which are lacking in the Slitaz 4.0 repository, so I think more priority should be given to printing support in upcoming Slitaz releases.

I'm looking at compiling cups-filters, compatible with cups version 1.4.6.

Offline

#6 2014-11-24 22:03:38

kultex
Administrator
Registered: 2011-03-28
Posts: 1,175

Re: why cups does not find the usb printer?

I have converted cups-filters and cups-filters-ghostscript from opensuse

https://www.dropbox.com/s/gjmr7c6rf421x3j/cups-filters-1.0.58-2.1.3.tazpkg?dl=0

https://www.dropbox.com/s/5o3gkyyei4qp2ba/cups-filters-ghostscript-1.0.58-3.2.tazpkg?dl=0

now the printer is present, but when I try printing, but I get the error > Idle - "Can't detect file type" <

Offline

#7 2020-09-08 18:54:37

dudu
Member
Registered: 2018-05-15
Posts: 8

Re: why cups does not find the usb printer?

In most cases cups is a part of the repository, so people will install it from there.

But that method can make it impossible for cups to detect the usb-printer. Why ?

After all, I found, cups must be a special version (1.5.3 or higher) and it must be compiled

with libusb-developer-files. You can test that with

ldd /usr/lib/cups/backend/usb

and should get a line like

libusb-1.0.so.0 => /lib/x86_64-linux-gnu/libusb-1.0.so.0 (0x00007fab56173000).

When you type

/usr/lib/cups/backend/usb,

you should get a full description of the usb-printer like

direct usb://HP/DESKJET%20600 "HP DESKJET 600" "HP DESKJET 600" ...

After that with

lpinfo -v

you should see the usb-printer with a line like

direct usb://HP/DESKJET%20600.

If that does not work, you can type

chmod 700 /usr/lib/cups/backend/usb

and

chmod 666 /dev/bus/usb/x/y

with x is the Bus-number and y is the Device-number of the printer, which you get

from the corresponding line of

lsusb.

------

There is also the option to configure a parallel-printer by setting a symlink, see:

https://unix.stackexchange.com/questions/245154/dell-3110cn-usb-printer-not-detected

But when you have an usb-printer, cups should be able to find it.

Offline

#8 2021-04-14 12:15:43

dudu
Member
Registered: 2018-05-15
Posts: 8

Re: why cups does not find the usb printer?

Some additional lines about detecting usb-printer with cups.

The first thing is to have support from the kernel. Also old kernels offer it (even slitaz 3.0

with kernel 2.6.30.6). But you will not see the full name of the printer (HP_DESKJET_600), only

a line like:

usb://Unknown/Printer

This means, that you can install the printer correctly, when you know the right ppd-file. When you

want to install it from the web-interface automatically, the wrong ppd-file could be chosen.

The service to see the full name of the printer comes from the file /drivers/usb/core/devio.c of

the kernel-sources and is seen first in the kernel 3.0.10.

The detection of the usb-printer within CUPS happens in the file /backend/usb-libusb.c of the

cups-sources. If you want to compile a CUPS-version 1.5.2 or older, which detects the usb-printer,

you can copy a usb-libusb.c of CUPS 1.5.3 with some modifications an compile it with

LIBS="-lusb-1.0" ./configure --prefix=/...

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.017 seconds, 7 queries executed - Memory usage: 1.55 MiB (Peak: 1.77 MiB) ]