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:
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?
This is wrong! usblp is necessary for the foo2zjs driver to work!
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.
Nope backlisting usblp did not work
installing hplip manually and running hp-setup did download the foo2zjs firmware
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>
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?
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.
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>
(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
*** This bug has been marked as a duplicate of bug 558162 ***