Bug 4279 - USB printers not found by cups
Summary: USB printers not found by cups
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: x86_64 Linux
Priority: Normal major
Target Milestone: ---
Assignee: Thomas Backlund
QA Contact:
URL:
Whiteboard:
Keywords: Junior_job
Depends on:
Blocks:
 
Reported: 2012-01-25 14:38 CET by Helge Hielscher
Modified: 2012-04-02 22:46 CEST (History)
8 users (show)

See Also:
Source RPM: cups-1.5.0-2.mga2
CVE:
Status comment:


Attachments
/var/log/cups/error_log (140.03 KB, text/plain)
2012-01-25 14:38 CET, Helge Hielscher
Details
/etc/cups/printers.conf (580 bytes, text/plain)
2012-02-12 21:53 CET, Helge Hielscher
Details
/var/log/cups/error_log (stripped to just show activity after update) (6.71 KB, text/plain)
2012-03-26 21:47 CEST, Martin Whitaker
Details

Description Helge Hielscher 2012-01-25 14:38:19 CET
Description of problem: 
It seems that cups does not see my printer.
Enabling/Disabling it with system-config-printer does not help

Version-Release number of selected component (if applicable):

$ rpm -qa|grep -i epson
epsoneplijs-0.4.1-5.mga1
epson-inkjet-printer-escpr-1.1.1-1lsb3.2
epson-inkjet-printer-stylus-office-tx510fn-series-1.0.0-1lsb3.2
task-printing-epson-2011-1.mga2

$ rpm -qa|grep cups
gutenprint-cups-5.2.7-3.mga2
lib64cups2-devel-1.5.0-2.mga2
cups-drivers-magicolor5430dl-1.8.1-12.mga1
libcups2-1.5.0-2.mga2
cups-drivers-magicolor2430dl-1.6.1-12.mga2
cups-pk-helper-0.2.1-1.mga2
python-cups-1.9.60-1.mga2
cups-drivers-m2300w-0.51-10.mga2
cups-drivers-lxx74-0.8.4.2-9.mga1
cups-1.5.0-2.mga2
cups-drivers-capt-0.1-10.mga1
cups-drivers-pegg-0.23-9.mga1
cups-drivers-lbp660-0.3.1-5.mga1
cups-drivers-lz11-1.2-9.mga1
cups-drivers-ptouch-1.3-4.mga1
lib64cups2-1.5.0-2.mga2
cups-drivers-foo2kyo-0.1.0a-10.mga1
cups-drivers-magicolor5440dl-1.2.1-12.mga1
cups-drivers-splix-2.0.0-4.mga1
cups-drivers-foo2zjs-0.0-0.20111227.1.mga2
cups-drivers-2008-4.mga1
cups-common-1.5.0-2.mga2

How reproducible: always

$ lsusb -v -s  006:002
Bus 006 Device 002: ID 04b8:0854 Seiko Epson Corp. 
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x04b8 Seiko Epson Corp.
  idProduct          0x0854 
  bcdDevice            1.00
  iManufacturer           1 EPSON
  iProduct                2 USB2.0 MFP(Hi-Speed)
(..)
Comment 1 Helge Hielscher 2012-01-25 14:38:54 CET
Created attachment 1432 [details]
/var/log/cups/error_log
Comment 2 Manuel Hiebel 2012-01-25 23:25:06 CET
can you attach the file /etc/cups/printers.conf  ?
Marja Van Waes 2012-02-12 21:43:21 CET

CC: (none) => doktor5000, marja11

Comment 3 Helge Hielscher 2012-02-12 21:53:36 CET
Created attachment 1534 [details]
/etc/cups/printers.conf

I had to enter the URI in system-config-printer manually because it did not see any printer by default.
Comment 4 Florian Hubold 2012-02-13 10:59:31 CET
Can you please unplug the printer, open a terminal, and as root do:
tailf /var/log/messages
then plug the printer and post the output?

BTW: the printer driver packages epson-inkjet-printer-escpr-1.1.1-1lsb3.2 and
epson-inkjet-printer-stylus-office-tx510fn-series-1.0.0-1lsb3.2 are from epson, there's not much we can do if they are the culprit.
Comment 5 Helge Hielscher 2012-02-13 11:40:18 CET
Feb 13 11:33:38 localhost kernel: usb 1-1: new full-speed USB device number 3 using ohci_hcd
Feb 13 11:33:39 localhost kernel: usb 1-1: not running at top speed; connect to a high speed hub
Feb 13 11:33:39 localhost kernel: usb 1-1: New USB device found, idVendor=04b8, idProduct=0854
Feb 13 11:33:39 localhost kernel: usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Feb 13 11:33:39 localhost kernel: usb 1-1: Product: USB2.0 MFP
Feb 13 11:33:39 localhost kernel: usb 1-1: Manufacturer: EPSON
Feb 13 11:33:39 localhost kernel: usb 1-1: SerialNumber: 4C4458593031393418
Feb 13 11:33:39 localhost udevd[284]: RUN+="socket:..." support will be removed from a future udev release. Please remove it from: /lib/udev/rules.d/90-hal.rules:2 and use libudev to subscribe to events.
Feb 13 11:33:39 localhost kernel: usblp0: USB Bidirectional printer dev 3 if 1 alt 0 proto 2 vid 0x04B8 pid 0x0854
Feb 13 11:33:39 localhost mtp-probe: checking bus 1, device 3: "/sys/devices/pci0000:00/0000:00:12.0/usb1/1-1"
Feb 13 11:33:39 localhost mtp-probe: bus: 1, device: 3 was not an MTP device
Feb 13 11:33:39 localhost mtp-probe: checking bus 1, device 3: "/sys/devices/pci0000:00/0000:00:12.0/usb1/1-1"
Feb 13 11:33:39 localhost mtp-probe: bus: 1, device: 3 was not an MTP device
Feb 13 11:33:40 localhost kernel: usb 1-1: usbfs: interface 1 claimed by usblp while 'usb' sets config #1
Feb 13 11:33:40 localhost kernel: usb 1-1: usbfs: interface 1 claimed by usblp while 'usb' sets config #1
Feb 13 11:33:41 localhost udev-configure-printer: no corresponding CUPS device found
Feb 13 11:33:42 localhost kernel: usb 1-1: usbfs: interface 1 claimed by usblp while 'usb' sets config #1
Feb 13 11:33:42 localhost udev-configure-printer: no corresponding CUPS device found
Feb 13 11:33:45 localhost kernel: usb 1-1: usbfs: interface 1 claimed by usblp while 'usb' sets config #1

The device number changes with every plug/unplug:
$ lsusb|grep Epson
Bus 001 Device 003: ID 04b8:0854 Seiko Epson Corp.

This printer worked previously.
Shouldn't it at least be visible in system-config-printer within "Add Printer"?
Comment 6 Guy Gallagher 2012-03-18 17:24:16 CET
(In reply to comment #5)
> Feb 13 11:33:38 localhost kernel: usb 1-1: new full-speed USB device number 3
> using ohci_hcd
> Feb 13 11:33:39 localhost kernel: usb 1-1: not running at top speed; connect to
> a high speed hub
> Feb 13 11:33:39 localhost kernel: usb 1-1: New USB device found, idVendor=04b8,
> idProduct=0854
> Feb 13 11:33:39 localhost kernel: usb 1-1: New USB device strings: Mfr=1,
> Product=2, SerialNumber=3
> Feb 13 11:33:39 localhost kernel: usb 1-1: Product: USB2.0 MFP
> Feb 13 11:33:39 localhost kernel: usb 1-1: Manufacturer: EPSON
> Feb 13 11:33:39 localhost kernel: usb 1-1: SerialNumber: 4C4458593031393418
> Feb 13 11:33:39 localhost udevd[284]: RUN+="socket:..." support will be removed
> from a future udev release. Please remove it from:
> /lib/udev/rules.d/90-hal.rules:2 and use libudev to subscribe to events.
> Feb 13 11:33:39 localhost kernel: usblp0: USB Bidirectional printer dev 3 if 1
> alt 0 proto 2 vid 0x04B8 pid 0x0854
> Feb 13 11:33:39 localhost mtp-probe: checking bus 1, device 3:
> "/sys/devices/pci0000:00/0000:00:12.0/usb1/1-1"
> Feb 13 11:33:39 localhost mtp-probe: bus: 1, device: 3 was not an MTP device
> Feb 13 11:33:39 localhost mtp-probe: checking bus 1, device 3:
> "/sys/devices/pci0000:00/0000:00:12.0/usb1/1-1"
> Feb 13 11:33:39 localhost mtp-probe: bus: 1, device: 3 was not an MTP device
> Feb 13 11:33:40 localhost kernel: usb 1-1: usbfs: interface 1 claimed by usblp
> while 'usb' sets config #1
> Feb 13 11:33:40 localhost kernel: usb 1-1: usbfs: interface 1 claimed by usblp
> while 'usb' sets config #1
> Feb 13 11:33:41 localhost udev-configure-printer: no corresponding CUPS device
> found
> Feb 13 11:33:42 localhost kernel: usb 1-1: usbfs: interface 1 claimed by usblp
> while 'usb' sets config #1
> Feb 13 11:33:42 localhost udev-configure-printer: no corresponding CUPS device
> found
> Feb 13 11:33:45 localhost kernel: usb 1-1: usbfs: interface 1 claimed by usblp
> while 'usb' sets config #1
> 
> The device number changes with every plug/unplug:
> $ lsusb|grep Epson
> Bus 001 Device 003: ID 04b8:0854 Seiko Epson Corp.
> 
> This printer worked previously.
> Shouldn't it at least be visible in system-config-printer within "Add Printer"?

I found a solution in another forum - cups >= 1.4 does not use module usblp, and in fact this module must not be loaded.  I added usblp to /etc/modprobe.d/blacklist-compat, and my Epson C88+ now shows up properly in the print configuration dialog.

CC: (none) => guy.gallagher

Comment 7 Florian Hubold 2012-03-18 20:49:26 CET
Thierry, as you're the maintainer of module-init-tools, do you have any objections on blacklisting usblp by default?

CC: (none) => thierry.vignaud

Comment 8 Martin Whitaker 2012-03-18 21:18:13 CET
I had the same problem with a Kyocera laser printer, and blacklisting usblp fixed it for me.

I've taken the liberty of changing the bug title to make it more generic - although the original bug reporter has not yet come back to confirm the fix works for him.

CC: (none) => mageia
Summary: Epson printer not found by cups => USB printers not found by cups

Comment 9 Thierry Vignaud 2012-03-18 21:48:05 CET
It was disabled.
Thomas re-enabled it in the kernel (see bug #2240, & bug #2264)

CC: (none) => tmb

Comment 10 Florian Hubold 2012-03-18 21:54:42 CET
(In reply to comment #9)
> It was disabled.
> Thomas re-enabled it in the kernel (see bug #2240, & bug #2264)

Yes, i know it was enabled because i suggested enabling it again :) But it needs to be blacklisted by default in either /etc/modprobe.d/blacklist-mga or /etc/modprobe.d/blacklist-compat, that's what i meant, otherwise it will cause all sorts of printer problems, like in this report.

WDYT?
Comment 11 Florian Hubold 2012-03-18 21:55:41 CET
(In reply to comment #10)
> needs to be blacklisted by default in either /etc/modprobe.d/blacklist-mga or
> /etc/modprobe.d/blacklist-compat

Make that /etc/modprobe.d/blacklist-mga.conf and /etc/modprobe.d/blacklist-compat.conf for cauldron.
Thierry Vignaud 2012-03-23 13:27:15 CET

Assignee: bugsquad => tmb

Comment 12 Florian Hubold 2012-03-25 06:11:18 CEST
@Thierry

Ping? Please see https://bugs.mageia.org/show_bug.cgi?id=4279#c10
Comment 13 Thierry Vignaud 2012-03-26 13:25:30 CEST
And?
If it's enabled in kernel, blacklisting it will make other people suffer.
Anyway I've no time and anybody can do it

Keywords: (none) => Junior_job

Comment 14 Florian Hubold 2012-03-26 21:02:34 CEST
(In reply to comment #6)
> I found a solution in another forum - cups >= 1.4 does not use module usblp,
> and in fact this module must not be loaded.  I added usblp to
> /etc/modprobe.d/blacklist-compat, and my Epson C88+ now shows up properly in
> the print configuration dialog.


(In reply to comment #8)
> I had the same problem with a Kyocera laser printer, and blacklisting usblp
> fixed it for me.
> 
> I've taken the liberty of changing the bug title to make it more generic -
> although the original bug reporter has not yet come back to confirm the fix
> works for him.

Please, both of you try again with latest cups-1.5.2-2.mga2 and system-config-printer-1.3.9-2.mga2, there were quite some fixes to it. Even with usblp not blacklisted it should still work.
Comment 15 Anssi Hannula 2012-03-26 21:07:37 CEST
Even if it still doesn't work, please provide /var/log/cups/error_log and the tail of /var/log/syslog again with the new versions.

CC: (none) => anssi.hannula

Comment 16 Martin Whitaker 2012-03-26 21:42:34 CEST
Still not working, although the logs suggest we're getting closer. Still works with usblp blacklisted.

# rpm -qa | grep cups-1.5
cups-1.5.2-2.mga2

# dmesg
<snip>
usb 4-1: new full-speed USB device number 3 using ohci_hcd
usb 4-1: New USB device found, idVendor=0482, idProduct=000e
usb 4-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 4-1: Product: Kyocera Mita FS-1020D
usb 4-1: Manufacturer: Kyocera Mita
usb 4-1: SerialNumber: XHW5608369
usblp1: USB Bidirectional printer dev 3 if 0 alt 0 proto 2 vid 0x0482 pid 0x000E
usbcore: registered new interface driver usblp

# tail -f /var/log/syslog
<snip>
udev-configure-printer: add /devices/pci0000:00/0000:00:04.0/usb4/4-1/4-1:1.0
udev-configure-printer: add /devices/pci0000:00/0000:00:04.0/usb4/4-1/4-1:1.0/usb/lp1
udev-configure-printer: device devpath is /devices/pci0000:00/0000:00:04.0/usb4/4-1
udev-configure-printer: MFG:Kyocera MDL:FS-1020D SERN:- serial:XHW5608369
udev-configure-printer: CheckAndInstallDrivers()
udev-configure-printer: CheckInstalledDrivers()
udev-configure-printer: MissingDriver()
udev-configure-printer: FAIL HERE
udev-configure-printer: device devpath is /devices/pci0000:00/0000:00:04.0/usb4/4-1
udev-configure-printer: Device vendor/product is 0482:000E
udev-configure-printer: failed to claim interface
Comment 17 Martin Whitaker 2012-03-26 21:47:09 CEST
Created attachment 1862 [details]
/var/log/cups/error_log (stripped to just show activity after update)
Comment 18 Anssi Hannula 2012-03-26 21:56:57 CEST
Martin, were you logged in graphically when the above log messages were printed?

If so, did you see any notifications?
If not, check if the system-config-printer applet is running:
"ps faux | grep system-config-printer/applet"

If this is a system with no monitor, try running system-config-printer and removing (if already set up) and re-adding the printer.

Also, as a clarification, do you mean that printing didn't work, or that it failed when trying to add the printer?
Comment 19 Martin Whitaker 2012-03-26 22:24:40 CEST
Hi Anssi,

Yes, logged in graphically.

No notifications appeared.

I removed the printer in MCC, removed usblp from the blacklist, and rebooted before doing the above tests.

When running system-config-printer (from MCC), I clicked on Add Printer, but there was no printer available to select. After blacklisting usblp and rebooting, my printer was found by system-config-printer.

% ps faux | grep system-config-printer/applet
martin    4779  0.0  0.6 290764 25268 ?        S    21:08   0:00              \_ /usr/bin/python /usr/share/system-config-printer/applet.py
martin    5195  0.0  0.0   9684   860 pts/0    S+   21:15   0:00      \_ grep system-config-printer/applet
Comment 20 Anssi Hannula 2012-03-26 22:38:12 CEST
That's a bit strange, according to the log udev-configure-printer tries to ask the applet if the correct driver packages are installed and install them if not, in which case the applet should show a notification.. Do you have 'task-printing-misc' already installed? That might explain why it doesn't show a notification, but doesn't explain why udev-configure-printer thinks the correct driver isn't installed.

As for printer not appearing in system-config-printere Add Printer dialog, I'm not immediately sure why that is or how to debug it... I'll think about it.
Comment 21 Martin Whitaker 2012-03-26 22:53:28 CEST
Yes, task-printing and task-printing-misc are already installed. And once usblp is blacklisted, system-config-printer finds the correct driver.
Comment 22 Martin Whitaker 2012-03-27 09:49:31 CEST
I've tried running

  /usr/share/system-config-printer/applet.py --debug

in a terminal window. It prints out

  checking for jobs

but no further messages. Running

  dbus-monitor --system

in another terminal window shows no messages on the com.redhat.NewPrinterNotification interface when I turn the printer on, although looking at the code for udev-configure-printer, it should be sending messages, given what it is writing to syslog.
Comment 23 José Jorge 2012-04-02 22:46:03 CEST
Sorry, I was not aware on this bug report, and blacklisted usblp today in cups-common.

I added it to the release notes, and could add it to the Errata if someone has a printer that does not work anymore because of this blacklisting.

Status: NEW => RESOLVED
CC: (none) => lists.jjorge
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.