Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#545288: CUPS 1.4.0-4 doesn't find USB-printer

49 views
Skip to first unread message

Oleksandr Natalenko

unread,
Sep 6, 2009, 6:20:06 AM9/6/09
to
Package: cups
Version: 1.4.0-4

After upgrading CUPS to 1.4.0 branch it doesn't find my USB-printer anymore.
When I click «Add printer» in CUPS web-interface, my printer doesn't appear in
the list. «Find New Printers» button also doesn't help.

dmesg shows me:

usbfs: interface 0 claimed by usblp while 'usb' sets config #1

while CUPS is trying to find the printer.

My system hasn't AppArmor or SELinux.

My printer is Xerox 3117, also tried Xerox 3121. Kernel version is 2.6.30.5
with BFQ I/O scheduler.

--
To UNSUBSCRIBE, email to debian-bugs-...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Martin Pitt

unread,
Sep 6, 2009, 7:00:12 AM9/6/09
to
Oleksandr Natalenko [2009-09-06 13:02 +0300]:

> usbfs: interface 0 claimed by usblp while 'usb' sets config #1

Right, usblp must not be loaded for cups to work. cups installs a
blacklist file for this (/etc/modprobe.d/blacklist-cups.conf). Did you
reboot after the upgrade? If not, could you try "rmmod usblp" as root,
and then restart cups with "/etc/init.d/cups restart" as root?

Can you please check ("lsmod | grep usblp" as user) if usblp still
gets loaded for you after a clean boot? If so, does it help if you do
"update-initramfs -u" as root?

If that helps, I'll add the update-initramfs call to the postinst.

Thanks,

Martin

--
Martin Pitt | http://www.piware.de
Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org)

Oleksandr Natalenko

unread,
Sep 6, 2009, 8:00:12 AM9/6/09
to
> Right, usblp must not be loaded for cups to work. cups installs a
> blacklist file for this (/etc/modprobe.d/blacklist-cups.conf). Did you
> reboot after the upgrade? If not, could you try "rmmod usblp" as root,
> and then restart cups with "/etc/init.d/cups restart" as root?
> Can you please check ("lsmod | grep usblp" as user) if usblp still
> gets loaded for you after a clean boot? If so, does it help if you do
> "update-initramfs -u" as root?

Correct, usblp was blacklisted after CUPS installation, I've rebooted several
times. Even more, my kernel doesn't have usblp module, both «sudo modprobe -l
| grep usblp» and «lsmod | grep usblp» show nothing. dmesg output is the same:

[ 306.582323] usb 5-1: new full speed USB device using uhci_hcd and address 2
[ 306.740409] usb 5-1: configuration #1 chosen from 1 choice
[ 306.747338] usblp0: USB Bidirectional printer dev 2 if 0 alt 0 proto 2 vid
0x04E8 pid 0x325B
[ 332.238856] usb 5-1: usbfs: interface 0 claimed by usblp while 'usb' sets
config #1

Also, I've updated initramfs and rebooted again. It didn't help.

Also, I remember one small detail — after first CUPS upgrade in unstable
everything worked well. But CUPS 1.4.0-4 asked me to rewrite its config, and I
agreed. After this (I think that after this, but not sure) CUPS stopped
working.

Regards,
Oleksandr.

Mathias Brodala

unread,
Sep 7, 2009, 6:20:10 AM9/7/09
to
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi.

Please consider removing the usblp module in postinst since not everyone
reboots his system regularly.


Regards, Mathias

- --
debian/rules
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkqk20oACgkQYfUFJ3ewsJiHrgCgjAoKjQD81UKxWA6nkPpflrz5
vK4AnRzz9pZPhsfvd299HWDjPhOeqLaL
=oIeB
-----END PGP SIGNATURE-----

Agustin Martin

unread,
Sep 11, 2009, 11:10:09 AM9/11/09
to
> Martin Pitt wrote
> Oleksandr Natalenko [2009-09-06 16:51 +0300]:
> > > Ah, I guess you have a custom kernel with CONFIG_USB_PRINTER=y?
> >
> > Oh, yes. I forgot about it. I've just recompiled kernel without this option,
> > and everything works well again.
>
> Ah, thanks for checking again. This shouldn't affect the default
> Debian kernel, thus I close this report now.
>
> Martin

Hi, Martin,

I am also having some problems with recent cups from sid, works are queued,
but not printed.

Using Debian default kernel and honouring cups blacklist, so no usblp is
loaded.

$ lsmod | grep usb
usbcore 126004 3 uhci_hcd,ehci_hcd

I have noticed that when trying to install the same printer with a new name
under foomatic-gui, the usb queue is not shown as an alternative. This may
be related to the problem.

Forcing load of usblp causes the usual ton of

usb 1-2: usbfs: interface 0 claimed by usblp while 'usb' sets config #1

errors, and do not make things work.

Everything works under testing (1.3.11-1) and stable (1.3.8-1+lenny6).

Cheers,

--
Agustin

Agustin Martin

unread,
Sep 14, 2009, 12:00:13 PM9/14/09
to
On Fri, Sep 11, 2009 at 05:04:11PM +0200, Agustin Martin wrote:
> I have noticed that when trying to install the same printer with a new name
> under foomatic-gui, the usb queue is not shown as an alternative. This may
> be related to the problem.

However lpinfo seems to see it,

# lpinfo -v
...
direct usb://Samsung/ML-1750?serial=...

Increasing debug level last lines in /var/log/cups/error_log are (time
stripped)

[Job 37] usb_find_busses=0
[Job 37] usb_find_devices=0
[Job 37] STATE: +connecting-to-device
Discarding unused printer-state-changed event...
STATE: -connecting-to-device
[Job 37] Waiting for printer to become available...
Discarding unused printer-state-changed event...
Discarding unused job-progress event...

I get sometimes tons of

usb 1-2: usbfs: interface 0 claimed by usbfs while 'usb' sets config #1

lines, but do not know yet what does exactly trigger them.

Agustin Martin

unread,
Sep 21, 2009, 6:20:04 AM9/21/09
to
On Fri, Sep 11, 2009 at 05:04:11PM +0200, Agustin Martin wrote:
> > Martin Pitt wrote
> > Oleksandr Natalenko [2009-09-06 16:51 +0300]:
> > > > Ah, I guess you have a custom kernel with CONFIG_USB_PRINTER=y?
> > >
> > > Oh, yes. I forgot about it. I've just recompiled kernel without this option,
> > > and everything works well again.
> >
> > Ah, thanks for checking again. This shouldn't affect the default
> > Debian kernel, thus I close this report now.
> >
> > Martin
>
> Hi, Martin,
>
> I am also having some problems with recent cups from sid, works are queued,
> but not printed.
>
> Using Debian default kernel and honouring cups blacklist, so no usblp is
> loaded.
>
> $ lsmod | grep usb
> usbcore 126004 3 uhci_hcd,ehci_hcd
>
> I have noticed that when trying to install the same printer with a new name
> under foomatic-gui, the usb queue is not shown as an alternative. This may
> be related to the problem.

Hi,

Seems I found the reason for the problem with the Samsung printer in my system,

In previous cups (1.3.x) the /etc/cups/printers.conf device uri for my printer
is

DeviceURI usb://Samsung/ML-1750

which worked well. However cups 1.4.x will only work if I put the full
device uri in /etc/cups/printers.conf,

DeviceURI usb://Samsung/ML-1750?serial=serial___number.

trailing dot included, as given by

# lpinfo -v

I do not know if this is intentional or a bug in the migration from usblp,
but if intentional should be well documented as is very confusing.

This may also be related to #545453 [new USB code in Cups 1.4.0 fails to
detect HP LaserJet 2430], CC'ing submitter.

Another thing left is why foomatic-gui does not find the new style usb uri,
but that seems a foomatic-gui problem if the new style is intentional.

Hope this helps,

Cheers

Vincent Bernat

unread,
Sep 21, 2009, 11:50:11 AM9/21/09
to
OoO En cette fin de matinée radieuse du lundi 21 septembre 2009, vers
11:58, Agustin Martin <agma...@debian.org> disait :

> DeviceURI usb://Samsung/ML-1750

> which worked well. However cups 1.4.x will only work if I put the full
> device uri in /etc/cups/printers.conf,

> DeviceURI usb://Samsung/ML-1750?serial=serial___number.

> trailing dot included, as given by

> # lpinfo -v

This also fixed the problem for me.
--
I WAS NOT TOLD TO DO THIS
I WAS NOT TOLD TO DO THIS
I WAS NOT TOLD TO DO THIS
-+- Bart Simpson on chalkboard in episode 5F13

Jason White

unread,
Sep 29, 2009, 10:50:08 PM9/29/09
to
Agustin Martin <agma...@debian.org> wrote:

> Seems I found the reason for the problem with the Samsung printer in my system,
>
> In previous cups (1.3.x) the /etc/cups/printers.conf device uri for my printer
> is
>
> DeviceURI usb://Samsung/ML-1750
>
> which worked well. However cups 1.4.x will only work if I put the full
> device uri in /etc/cups/printers.conf,
>
> DeviceURI usb://Samsung/ML-1750?serial=serial___number.
>
> trailing dot included, as given by
>
> # lpinfo -v

This was part of my problem as well, but not all of it.

There was no trailing . given by lpinfo -v, but as in your case, under Cups
1.4, the only URL listed is the one that contains the full serial number.

After blacklisting usblp and specifying this URL in my printers.conf file,
then trying to print, I get the following in syslog


Sep 30 12:31:09 jdc hp_LaserJet_2430?serial=CNBG48D047: io/hpmud/mlc.c 238: unable to read MlcReverseReply header: Resource temporarily unavailable bytesRead=0
Sep 30 12:31:09 jdc hp_LaserJet_2430?serial=CNBG48D047: io/hpmud/mlc.c 347: invalid MLCInitReply retrying command...
Sep 30 12:31:13 jdc hp_LaserJet_2430?serial=CNBG48D047: io/hpmud/mlc.c 238: unable to read MlcReverseReply header: Resource temporarily unavailable bytesRead=0
Sep 30 12:31:13 jdc hp_LaserJet_2430?serial=CNBG48D047: io/hpmud/mlc.c 357: invalid MLCInitReply: cmd=0, result=3#012, revision=0
Sep 30 12:31:13 jdc hp_LaserJet_2430?serial=CNBG48D047: prnt/backend/hp.c 725: INFO: open print channel failed stat=12; will retry in 30 seconds...
Sep 30 12:31:47 jdc hp_LaserJet_2430?serial=CNBG48D047: io/hpmud/mlc.c 238: unable to read MlcReverseReply header: Resource temporarily unavailable bytesRead=0
Sep 30 12:31:47 jdc hp_LaserJet_2430?serial=CNBG48D047: io/hpmud/mlc.c 347: invalid MLCInitReply retrying command...
Sep 30 12:31:51 jdc hp_LaserJet_2430?serial=CNBG48D047: io/hpmud/mlc.c 238: unable to read MlcReverseReply header: Resource temporarily unavailable bytesRead=0
Sep 30 12:31:51 jdc hp_LaserJet_2430?serial=CNBG48D047: io/hpmud/mlc.c 357: invalid MLCInitReply: cmd=0, result=3#012, revision=0
Sep 30 12:31:51 jdc hp_LaserJet_2430?serial=CNBG48D047: prnt/backend/hp.c 725: INFO: open print channel failed stat=12; will retry in 30 seconds...

Note that Cups 1.3.x works, using the URL without any serial number included,
i.e.,
DeviceURI usb://HP/LaserJet%202430

Any suggestions?

Thanks.

0 new messages