hplip-3.12.6 tools fail to identify USB attached printer

Bug #1031419 reported by Steve Alexander
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
HPLIP
Won't Fix
Undecided
Unassigned

Bug Description

Fedora17 using
hplip-3.12.6-1.fc17.x86_64
hplip-common-3.12.6-1.fc17.x86_64
hplip-gui-3.12.6-1.fc17.x86_64
hplip-libs-3.12.6-1.fc17.x86_64

fails to identify or communicate with USB attached printer (HP Officejet k60xi)
Command "hp-probe -busb" results in messages ....
> warning: No devices found on the 'usb' bus. If this isn't the result you are expecting,
> warning: check to make sure your devices are properly connected and powered on.
SImilarly hp-setup err's with "cannot communicate' message.

manually replacing the following two libraries from package hplip-libs-3.12.4-2.fc17.x86_64.rpm
/usr/lib64/libhpmud.so.0.0.6
/usr/lib64/python2.7/site-packages/hpmudext.so

causes the problem to disappear. Then "hp-probe -busb" results in messages ....
> Device URI Model
> ------------------------------------------- -------------------
> hp:/usb/OfficeJet_K60xi?serial=MY12KC609FOH HP OfficeJet K60xi
>
> Found 1 printer(s) on the 'usb' bus.

It is believed this problem is isolated to changes in /usr/lib64/libhpmud.so.0.0.6 between 3.12.4-2.fc17 and 3.12.6-1.fc17 .

Problem with strace and lsusb reported here:
https://bugzilla.redhat.com/show_bug.cgi?id=844185

Revision history for this message
goutam kodu (goutam-hplip) wrote :

Hi Steve,

HPLIP releases one single auto installer "hplip-3.12.6.run" file which you can download it from http://hplipopensource.com/hplip-web/gethplip.html and install it running command "sh hplip-3.12.6.run" in terminal.
We could not able to reproduce this issue using our hplip-3.12.6.run file installer.

Please install hplip from hplip-3.12.6.run file and check if this issue is reproducible for you.

Regards,
Goutam

Changed in hplip:
status: New → Incomplete
Revision history for this message
johanpdx (johanpdx) wrote :

Here is my version of this problem:

1) HP Laserjet M1132 MFP worked fine as printer and scanner under Ubuntu 12.04 on my homebuilt desktop (but only AFTER installing HPLIP as root so that it would accept the proprietary plugin).

2) I installed Linux Mint 13 (32-bit Cinnamon). The printer immediately showed up, correctly labeled, in Preferences --> Printers. Print jobs are reported as "printing" and "completed" but nothing prints.

3) Deleted and reinstalled HPLIP per instructions above from goutam kodu (2012-08-07).

4) HPLIP correctly reports presence of printer but no connectivity. ("X" on printer's icon.) Printing directly from the terminal commnd line also does not work.

5) Same after rebooting computer and disconnecting/reconnecting printer several times and trying a new cable.

6) hp-probe -busb reports no device.
lsusb reports "Bus 001 Device 010: ID 03f0:042a Hewlett-Packard"
lpq reports "HP_LaserJet_Professional_M1132_MFP is ready"

 ... I have tried various USB ports, including the one successfully used under the earlier Ubuntu 12.04 installation. All reports remain the same.

I'm a teacher and the school year looms! Help! (Also, I'm a long-time Linux user with several previous computers and printers, but am not a Linux developer or even hobbyist.)

Revision history for this message
johanpdx (johanpdx) wrote :
Revision history for this message
johanpdx (johanpdx) wrote :

PS: I'm aware that there is an overwhelming number of mentions of similar problems with HP printers and Linux on the Web. The variety of error messages I get make it hard for a novice like me to know exactly how to classify this bug/problem. For example:

"Communication Error 5012"
"/usr/lib/cups/backend/hp failed"
HPLIP can't find USB printer
HP LaserJet M1132 MPF won't print anything.

If you have advice on a better channel for my questions, let me know. I'm about to take this printer back to the store....

Revision history for this message
johanpdx (johanpdx) wrote :

PS: Given the differences in the cases, I've resubmitted mine as Bug #1038885.

Changed in hplip:
status: Incomplete → Opinion
Revision history for this message
Steve Alexander (steve-alexander-g) wrote :

Goutam, Sorry for long delay.

I removed all Fedora hplip packages and installed 3.12.6 from the link you provided.
The results were identical with my previous result.
hp-probe fails to find the printer and of course nothing else works.
....
>warning: No devices found on the 'usb' bus. If this isn't the result you are expecting,
>warning: check to make sure your devices are properly connected and powered on.
>
>Done.

The problem appears to be related to changes in io/hpmud/musb.c for parsing /sys pfs.
It seem possible that the newer versions of Linux kernel present the pseudo-filesystem differently.

The problem has been observed on various Linux kernels from to 3.4.x - 3.5.2

Revision history for this message
goutam kodu (goutam-hplip) wrote :

Hi Steve,

Can you provide us the "hp-check -t" command output ?

Request you to provide us the "lsusb -v" command output with the printer attached to the USB port.

Regards,
Goutam

Revision history for this message
Steve Alexander (steve-alexander-g) wrote :

I installed 3.12.9 for the purpose of this test. Problem symptom are unchanged.

Revision history for this message
Steve Alexander (steve-alexander-g) wrote :

 3.12.9 hp-check -t stderr

Revision history for this message
Steve Alexander (steve-alexander-g) wrote :

hp-check-t log

Revision history for this message
Steve Alexander (steve-alexander-g) wrote :

sudo lsusb -v attached

[stevea@hypoxylon 3.12.9]$ lsusb
Bus 001 Device 005: ID 1a40:0101 TERMINUS TECHNOLOGY INC. USB-2.0 4-Port HUB
Bus 002 Device 002: ID 046d:082c Logitech, Inc.
Bus 003 Device 002: ID 0451:2046 Texas Instruments, Inc. TUSB2046 Hub
Bus 005 Device 002: ID 046d:0a29 Logitech, Inc.
Bus 007 Device 002: ID 03f0:0611 Hewlett-Packard OfficeJet K60xi
Bus 008 Device 002: ID 046d:c318 Logitech, Inc. Illuminated Keyboard
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 009 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 006: ID 058f:6366 Alcor Micro Corp. Multi Flash Reader
Bus 003 Device 003: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 010 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 011 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
[stevea@hypoxylon 3.12.9]$

Revision history for this message
goutam kodu (goutam-hplip) wrote :

Thanks for the logs, We dint find any problem with the installation or with device.

Can your run command "hp-setup -g" in terminal with the device connected to USB and provide its ourput.

Thanks,
Goutam

Revision history for this message
Steve Alexander (steve-alexander-g) wrote :

[stevea@hypoxylon Desktop]$ hp-setup -g

HP Linux Imaging and Printing System (ver. 3.12.9)
Printer/Fax Setup Utility ver. 9.0

Copyright (c) 2001-14 Hewlett-Packard Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

hp-setup[13927]: debug: param=
hp-setup[13927]: debug: selected_device_name=None
hp-setup[13927]: debug: Sys.argv=['/usr/local/bin/hp-setup', '-g'] printer_name=None param= jd_port=1 device_uri=None remove=False
hp-setup[13927]: debug: Starting GUI loop...
Searching... (bus=usb, search=(None), desc=0)
hp-setup[13927]: debug: Probing bus: usb
error: No devices found on bus: usb

Done.
[stevea@hypoxylon Desktop]$

Notes:
On the config window, the default "Universal Serial Bus(USB)" is selected, then "next".
In the following screen ""No devices found ..." appears. Then "Cancel".
This install was compiled with debug and the syslog contains the following message,
Sep 13 14:36:30 hypoxylon hp-setup: hp-setup[13927]: error: No devices found on bus: usb

The printer is powered-on, attached and identified by lsusb.

Revision history for this message
Steve Alexander (steve-alexander-g) wrote :

After some debugging I found this additional information.

In the io/hpmud/musb.c file there is code to support USB bInterfaceProtocol values of 1 and 2 (UNidirectional, Bidirectional) however the K60xi printer returns a bInterfaceProtocol value of 3 (IEEE 1284.4 compatible bidirectional). [see previous lsusb -v attachment].

The two conditional tests for bInterfaceProtocol values in musb.c can be modified to accept a value of '3', and this alleviates the 'not found' and 'can't open' problem, however the printer does not function normally (can see status, but cannot print), presumably b/c the IEEE1284.4 protocol on USB protocol is not properly supported.

Revision history for this message
goutam kodu (goutam-hplip) wrote :

Hi Steve,

This printer is very old and the issue seems with firmware. The firmware is not providing the proper USB interface to communicate with device.

Try upgrading the firmware or use windows driver to work with this printer.

Sorry for the inconvenience.

Thanks,
goutam

Changed in hplip:
status: Opinion → Won't Fix
Revision history for this message
Steve Alexander (steve-alexander-g) wrote :

There is no firmware upgrade.
I don't use Windows.
thanks anyway.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.