Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CUPS does not detect HP USB-Printer #3884

Closed
michaelrsweet opened this issue Jul 7, 2011 · 14 comments

Comments

@michaelrsweet
Copy link
Collaborator

commented Jul 7, 2011

Version: 1.5-current
CUPS.org User: timfly

Since Version 1.4.7 cups doesn't detect some USB HP Printers anymore. Deleting all printers and then adding a new printer doesn't solve the problem. In this case it's a HP LaserJet 1200:

mtp-probe: checking bus 6, device 8: "/sys/devices/pci0000:00/0000:00:1d.1/usb6/6-2"
mtp-probe: bus: 6, device: 8 was not an MTP device
udev-configure-printer: add /devices/pci0000:00/0000:00:1d.1/usb6/6-2/6-2:1.0
udev-configure-printer: parent devpath is /devices/pci0000:00/0000:00:1d.1/usb6/6-2
udev-configure-printer: Device vendor/product is 03F0:0317
udev-configure-printer: MFG:Hewlett-Packard MDL:HP LaserJet 1200 SERN:- serial:00CNxxxxxxx
kernel: [260637.905636] usb 6-2: usbfs: process 15544 (usb) did not claim interface 1 before use
udev-configure-printer: no corresponding CUPS device found

A user at the ArchLinux forum posted another example, in his case it was a HP Deskjet 842C.
https://bbs.archlinux.org/viewtopic.php?pid=957015

Switching to version 1.4.6 brings the USB Printer back again.

@michaelrsweet

This comment has been minimized.

Copy link
Collaborator Author

commented Jul 8, 2011

CUPS.org User: mike

Marking P3 unless we discover this affects more printers.

@michaelrsweet

This comment has been minimized.

Copy link
Collaborator Author

commented Jul 25, 2011

CUPS.org User: pdm

I confirm that problem (here with hp deskjet 959C).
I can access to the printer again after either:

  • downgrading to 1.4.6
  • building 1.4.7 with both r9575 and r9448 reverted (I tried with reverting only r9575 then only r9448 but with no good result).
    Best regards
    Pascal Dormeau
1 similar comment
@michaelrsweet

This comment has been minimized.

Copy link
Collaborator Author

commented Jul 25, 2011

CUPS.org User: pdm

I confirm that problem (here with hp deskjet 959C).
I can access to the printer again after either:

  • downgrading to 1.4.6
  • building 1.4.7 with both r9575 and r9448 reverted (I tried with reverting only r9575 then only r9448 but with no good result).
    Best regards
    Pascal Dormeau
@michaelrsweet

This comment has been minimized.

Copy link
Collaborator Author

commented Aug 6, 2011

CUPS.org User: mike

Run:

cupsctl --debug-logging

and then try printing. Then attach the /var/log/cups/error_log file to this bug.

Thanks!

@michaelrsweet

This comment has been minimized.

Copy link
Collaborator Author

commented Aug 6, 2011

CUPS.org User: timfly

The attached error_log file is from cups 1.4.8. Hope this helps.

@michaelrsweet

This comment has been minimized.

Copy link
Collaborator Author

commented Aug 6, 2011

CUPS.org User: pdm

I do not know if that helps or not (I am not the original poster, if you believe it creates confusion, please disregard my comments and attachments), but I attached two error_log files, one with 4.7.1 and the other with 4.6.9.
"attente de disponibilité de l�imprimante" in error_log-4.7.1 means "waiting for printer availaibility".

Best regards

Pascal Dormeau

@michaelrsweet

This comment has been minimized.

Copy link
Collaborator Author

commented Aug 7, 2011

CUPS.org User: pdm

sorry it is 1.4.6 and 1.4.7 (not 4.6.9 and 4.7.1)

@michaelrsweet

This comment has been minimized.

Copy link
Collaborator Author

commented Aug 9, 2011

CUPS.org User: bias-ply

Same problem with hp 842C. Doesn't detect USB printer. Revert to 1.4.6 and printer is detected just fine. Same "..(usb) did not claim interface 1 before use" error with 1.4.7.

@michaelrsweet

This comment has been minimized.

Copy link
Collaborator Author

commented Sep 3, 2011

CUPS.org User: timfly

The problem still exists in version 1.50. I tried to add a new printer on a fresh cups installation but cups didn't found any USB Printer (see the attachted error_log).

@michaelrsweet

This comment has been minimized.

Copy link
Collaborator Author

commented Sep 5, 2011

CUPS.org User: timfly

Update: With hplip installed cups can see the HP LaserJet back again.

@michaelrsweet

This comment has been minimized.

Copy link
Collaborator Author

commented Sep 7, 2011

CUPS.org User: pdm

I also confirm that the printer is visible with hplip but I believe it is unrelated (though a work around). hplip uses its own backend (from http://hplipopensource.com site : "The "hp" backend can be used in place of the normal "usb" and "parallel" backends provided by CUPS").
Still there is a bug here in the CUPS libusb backend.
For quite old Deskjet HP printers, this hplip big python blob does not bring better functionnality than foomatic+hpijs. So I would prefer using the cups backend if possible.

@michaelrsweet

This comment has been minimized.

Copy link
Collaborator Author

commented Sep 27, 2011

CUPS.org User: ilonabarretta

Same issue with Canon, IP6700D

@michaelrsweet

This comment has been minimized.

Copy link
Collaborator Author

commented Sep 30, 2011

CUPS.org User: pdm

Hello,
Finally that seems to be on the kernel's side.
see http://lkml.org/lkml/2011/9/25/57
I personnally tested the patch upon linux-3.1-rc8 and I can see my USB printers now.
Regards

@michaelrsweet

This comment has been minimized.

Copy link
Collaborator Author

commented Oct 22, 2011

CUPS.org User: till.kamppeter

This is indeed a bug of the Linux kernel and the patch linked to in the previous comment is accepted by the upstream developers of the kernel.

As this is not a CUPS bug it can be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.