Bug 576616 - HP LaserJet 1018 doesn't get installed in Fedora-13
Summary: HP LaserJet 1018 doesn't get installed in Fedora-13
Keywords:
Status: CLOSED DUPLICATE of bug 558162
Alias: None
Product: Fedora
Classification: Fedora
Component: cups
Version: 13
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Tim Waugh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-03-24 16:12 UTC by Niranjan Mallapadi Raghavender
Modified: 2010-03-29 16:16 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-03-29 16:16:50 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Niranjan Mallapadi Raghavender 2010-03-24 16:12:09 UTC
Description of problem:

Testing the https://fedoraproject.org/wiki/Features/AutomaticPrintDriverInstallation Feature of Fedora 13


Install Fedora-13 , Connected HP LaserJet 1018 usb printer to the system.

After connecting, The task bar displays "Install printer driver HP-Lserjet-1018 requires driver installation foomatic. 

clicked on Install , A dialog box with  a below message appeared

"/usr/bin/gpk-install-package-name foomatic wants to install a package "

# rpm -q foomatic
package foomatic is not installed 

Click on gedit and selecting "HP LaserJet1018" doesn't print anything

/var/log/messages showed the below messages when printer was plugged in and powerdon

<snip>
Mar 25 05:12:01 dhcp209-225 kernel: usb 1-1: USB disconnect, address 6
Mar 25 05:12:01 dhcp209-225 kernel: usblp0: nonzero write bulk status received: -108
Mar 25 05:12:01 dhcp209-225 kernel: usblp0: removed
Mar 25 05:12:01 dhcp209-225 libvirtd: 05:12:01.126: info : udevRemoveOneDevice:1202 : Failed to find device to remove that has udev name '/sys/devices/pci0000:00/0000:00:02.1/usb1/1-1/1-1:1.0/usb/lp0'
Mar 25 05:12:01 dhcp209-225 libvirtd: 05:12:01.130: info : udevRemoveOneDevice:1202 : Failed to find device to remove that has udev name '/sys/class/usb'
Mar 25 05:12:01 dhcp209-225 /etc/hotplug/usb/hplj1018: foo2zjs: ... download failed.
Mar 25 05:12:03 dhcp209-225 kernel: usb 1-1: new high speed USB device using ehci_hcd and address 7
Mar 25 05:12:03 dhcp209-225 kernel: usb 1-1: New USB device found, idVendor=03f0, idProduct=4117
Mar 25 05:12:03 dhcp209-225 kernel: usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Mar 25 05:12:03 dhcp209-225 kernel: usb 1-1: Product: HP LaserJet 1018
Mar 25 05:12:03 dhcp209-225 kernel: usb 1-1: Manufacturer: Hewlett-Packard
Mar 25 05:12:03 dhcp209-225 kernel: usb 1-1: SerialNumber: KP3P11Y
Mar 25 05:12:03 dhcp209-225 libvirtd: 05:12:03.530: info : udevGetDeviceProperty:116 : udev reports device 'usb' does not have property 'DRIVER'
Mar 25 05:12:03 dhcp209-225 libvirtd: 05:12:03.530: info : udevGetDeviceProperty:116 : udev reports device 'usb' does not have property 'PCI_CLASS'
Mar 25 05:12:03 dhcp209-225 libvirtd: 05:12:03.530: info : udevGetDeviceProperty:116 : udev reports device 'usb' does not have property 'INTERFACE'
Mar 25 05:12:03 dhcp209-225 libvirtd: 05:12:03.530: info : udevGetDeviceType:1135 : Could not determine device type for device with sysfs path 'usb'#012
Mar 25 05:12:03 dhcp209-225 kernel: usblp0: USB Bidirectional printer dev 7 if 0 alt 0 proto 2 vid 0x03F0 pid 0x4117
Mar 25 05:12:03 dhcp209-225 logger: loading hp_laserjet_1018 firmware 001 007
Mar 25 05:12:03 dhcp209-225 libvirtd: 05:12:03.577: info : udevGetDeviceProperty:116 : udev reports device '1-1' does not have property 'DRIVER'
Mar 25 05:12:03 dhcp209-225 libvirtd: 05:12:03.625: info : udevGetDeviceProperty:116 : udev reports device '1-1:1.0' does not have property 'DRIVER'
Mar 25 05:12:03 dhcp209-225 udev-configure-printer: invalid or missing IEEE 1284 Device ID
Mar 25 05:12:03 dhcp209-225 /etc/hotplug/usb/hplj1018: foo2zjs: loading HP LaserJet 1018 firmware /usr/share/foo2zjs/firmware/sihp1018.dl to /dev/usb/lp0 ...
Mar 25 05:12:03 dhcp209-225 libvirtd: 05:12:03.933: info : udevGetDeviceProperty:116 : udev reports device 'lp0' does not have property 'DRIVER'
Mar 25 05:12:03 dhcp209-225 libvirtd: 05:12:03.933: info : udevGetDeviceProperty:116 : udev reports device 'lp0' does not have property 'PCI_CLASS'
Mar 25 05:12:03 dhcp209-225 libvirtd: 05:12:03.933: info : udevGetDeviceProperty:116 : udev reports device 'lp0' does not have property 'INTERFACE'
Mar 25 05:12:03 dhcp209-225 libvirtd: 05:12:03.933: info : udevGetDeviceType:1135 : Could not determine device type for device with sysfs path 'lp0'#012
Mar 25 05:12:09 dhcp209-225 python: io/hpmud/musb.c 136: unable get_string_descriptor -110: Connection timed out
Mar 25 05:12:09 dhcp209-225 python: io/hpmud/musb.c 2095: invalid product id string ret=-110
Mar 25 05:12:10 dhcp209-225 hp[3648]: io/hpmud/musb.c 136: unable get_string_descriptor -110: Connection timed out
Mar 25 05:12:10 dhcp209-225 hp[3648]: io/hpmud/musb.c 2001: invalid product id string ret=-110
Mar 25 05:12:10 dhcp209-225 python: io/hpmud/musb.c 136: unable get_string_descriptor -110: Connection timed out
Mar 25 05:12:10 dhcp209-225 python: io/hpmud/musb.c 2001: invalid product id string ret=-110
Mar 25 05:12:14 dhcp209-225 python: io/hpmud/musb.c 136: unable get_string_descriptor -110: Connection timed out
Mar 25 05:12:14 dhcp209-225 python: io/hpmud/musb.c 2100: invalid serial id string ret=-110
Mar 25 05:12:15 dhcp209-225 hp[3648]: io/hpmud/musb.c 136: unable get_string_descriptor -110: Connection timed out
Mar 25 05:12:15 dhcp209-225 hp[3648]: io/hpmud/musb.c 2006: invalid serial id string ret=-110
Mar 25 05:12:15 dhcp209-225 python: io/hpmud/musb.c 136: unable get_string_descriptor -110: Connection timed out
Mar 25 05:12:15 dhcp209-225 python: io/hpmud/musb.c 2006: invalid serial id string ret=-110
Mar 25 05:12:19 dhcp209-225 python: io/hpmud/musb.c 136: unable get_string_descriptor -110: Connection timed out
Mar 25 05:12:19 dhcp209-225 python: io/hpmud/musb.c 2001: invalid product id string ret=-110
Mar 25 05:12:24 dhcp209-225 python: io/hpmud/musb.c 136: unable get_string_descriptor -110: Connection timed out
Mar 25 05:12:24 dhcp209-225 python: io/hpmud/musb.c 2006: invalid serial id string ret=-110
Mar 25 05:15:25 dhcp209-225 udev-configure-printer: Failed to get parent
Mar 25 05:15:25 dhcp209-225 udev-configure-printer: Failed to get parent
</snip>


#python /usr/share/system-config-printer/check-device-ids.py
Examining connected devices
Fetching driver list


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




How reproducible:


Steps to Reproduce:
1. Install Fedora-13 Rawhide
2. Connect HP LaserJet 1018 Printer 
3. Display foomatic should be installed but doesn't install the printer. 

  
Actual results:


Expected results:


Additional info:

Comment 1 Tim Waugh 2010-03-24 17:29:47 UTC
Please try this, as root:

echo blacklist usblp > /etc/modprobe.d/blacklist-usblp.conf

Then reboot, and try again.  Does that work around the problem?

Comment 3 Rick Richardson 2010-03-25 10:54:49 UTC
This is wrong!  usblp is necessary for the foo2zjs driver to work!

Comment 4 Tim Waugh 2010-03-25 11:03:16 UTC
Rick: the hp backend is being used here.  That uses libusb, and so *requires* that usblp is *not* loaded.  If it is loaded, it detaches it.  I think what's happening is that there is a battle going on between the hp backend trying to unload usblp, and the foo2zjs firmware downloader (and the CUPS usb backend) trying to load it.

Comment 5 Niranjan Mallapadi Raghavender 2010-03-25 15:15:46 UTC
Nope backlisting usblp did not work

Comment 6 Niranjan Mallapadi Raghavender 2010-03-25 15:16:33 UTC
installing hplip manually and running hp-setup did download the foo2zjs firmware

Comment 7 Niranjan Mallapadi Raghavender 2010-03-25 15:23:36 UTC
Received the following messages probably relevant

<snip>
Mar 25 20:53:16 dhcp209-225 udev-configure-printer: invalid or missing IEEE 1284 Device ID
Mar 25 20:53:16 dhcp209-225 /etc/hotplug/usb/hplj1018: foo2zjs: loading HP LaserJet 1018 firmware /usr/share/foo2zjs/firmware/sihp1018.dl to /dev/usb/lp0 ...
Mar 25 20:53:16 dhcp209-225 libvirtd: 20:53:16.924: info : udevGetDeviceProperty:116 : udev reports device 'lp0' does not have property 'DRIVER'
Mar 25 20:53:16 dhcp209-225 libvirtd: 20:53:16.924: info : udevGetDeviceProperty:116 : udev reports device 'lp0' does not have property 'PCI_CLASS'
Mar 25 20:53:16 dhcp209-225 libvirtd: 20:53:16.924: info : udevGetDeviceProperty:116 : udev reports device 'lp0' does not have property 'INTERFACE'
Mar 25 20:53:16 dhcp209-225 libvirtd: 20:53:16.926: info : udevGetDeviceType:1135 : Could not determine device type for device with sysfs path 'lp0'#012
Mar 25 20:53:17 dhcp209-225 /etc/hotplug/usb/hplj1018: foo2zjs: ... download successful.
</snip>

Comment 8 Tim Waugh 2010-03-25 15:30:58 UTC
I think the basic problem is that several programs all race to talk to the device, some using usblp and some using libusb.

Not sure what the best approach for fixing it is unfortunately.

How about if you remove the system-config-printer-udev package?  Does that help at all?

Comment 9 Rick Richardson 2010-03-25 16:31:50 UTC
From the foo2zjs INSTALL file:

    FEDORA NOTES
    ------------

    If you are using a USB printer AND Fedora 12+, do this:

        # grep udev-configure-printer /var/log/messages
        /var/log/messages:Jan 23 07:32:54 dual udev-configure-printer: \
                invalid or missing IEEE 1284 Device ID

        # yum remove system-config-printer-udev

        # shutdown -r now

        Power off then on the printer.

It was not a problem in Fedora 11.

Comment 10 Niranjan Mallapadi Raghavender 2010-03-26 14:05:50 UTC
After removing the system-config-printer-udev and rebooted the system with printer off,  Powering on the Printer did not show any icon that HP LaserJet1018 is connected if drivers has to be installed. 

But when system-config-printer is run manually and selected "HP LaserJet 1018" under devices. it worked , but had to manually install foomatic as foomatic-rip was required for printer to print test page. 

Running check-device-ids.py manually before doing the above resulted in below error 

<snip>
python /usr/share/system-config-printer/check-device-ids.py
Examining connected devices
Installing relevant drivers using session service
ERROR:dbus.proxies:Introspect error on :1.4:/org/freedesktop/PackageKit: dbus.exceptions.IntrospectionParserException: Error parsing introspect data: <class 'xml.parsers.expat.ExpatError'>: unbound prefix: line 5, column 4
Traceback (most recent call last):
  File "/usr/share/system-config-printer/check-device-ids.py", line 89, in <module>
    except dbus.exceptions.DBusException, (e, r):
ValueError: need more than 1 value to unpack
</snip>

Comment 11 Tim Waugh 2010-03-26 14:40:16 UTC
(In reply to comment #10)
> After removing the system-config-printer-udev and rebooted the system with
> printer off,  Powering on the Printer did not show any icon that HP
> LaserJet1018 is connected if drivers has to be installed. 

Yes, I don't know how we can have both the firmware downloader and the automatic queue configuration both working.

> Running check-device-ids.py manually before doing the above resulted in below
> error 

Can you try using a newer build of system-config-printer please?
https://admin.fedoraproject.org/updates/system-config-printer-1.2.0-11.fc13

Comment 12 Tim Waugh 2010-03-29 16:16:50 UTC

*** This bug has been marked as a duplicate of bug 558162 ***


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