On Thu, Aug 14, 2014 at 02:41:42PM +0200, Alessandro DE LAURENZIS wrote:
> Dear misc@ readers,
> 
> Still unable to make my old HP Deskjet F4280 printer working on -current
> (all was ok in 5.5).
> 
> ulpt is disabled during boot stage; the printer is correctly installed
> (through the CUPS web interface) and device permissions seem ok:
> 
> just22@poseidon:[~]> sudo usbdevs -dv
> Controller /dev/usb0:
> addr 1: high speed, self powered, config 1, EHCI root hub(0x0000), 
> Intel(0x8086), rev 1.00
>   uhub0
>  port 1 powered
>  port 2 powered
>  port 3 powered
>  port 4 powered
> Controller /dev/usb1:
> addr 1: high speed, self powered, config 1, EHCI root hub(0x0000), 
> Intel(0x8086), rev 1.00
>   uhub1
>  port 1 powered
>  port 2 addr 2: high speed, self powered, config 1, Deskjet F4200 
> series(0x2504), HP(0x03f0), rev 1.00, iSerialNumber CN8C54F12J05BR
>    ugen1
> 
> just22@poseidon:[~]> ls -la /dev/usb1
> crw-rw----  1 _cups  _saned   61,   1 Aug 13 09:30 /dev/usb1
> 
> just22@poseidon:[~]> ls -la /dev/ugen1*
> crw-rw----  1 _cups  _saned   63,  16 Aug 13 09:30 /dev/ugen1.00
> crw-rw----  1 _cups  _saned   63,  17 Aug 13 09:30 /dev/ugen1.01
> crw-rw----  1 _cups  _saned   63,  18 Aug 13 09:30 /dev/ugen1.02
> crw-rw----  1 _cups  _saned   63,  19 Aug 13 09:30 /dev/ugen1.03
> crw-rw----  1 _cups  _saned   63,  20 Aug 13 09:30 /dev/ugen1.04
> crw-rw----  1 _cups  _saned   63,  21 Aug 13 09:30 /dev/ugen1.05
> crw-rw----  1 _cups  _saned   63,  22 Aug 13 09:30 /dev/ugen1.06
> crw-rw----  1 _cups  _saned   63,  23 Aug 13 09:30 /dev/ugen1.07
> crw-rw----  1 _cups  _saned   63,  24 Aug 13 09:30 /dev/ugen1.08
> crw-rw----  1 _cups  _saned   63,  25 Aug 13 09:30 /dev/ugen1.09
> crw-rw----  1 _cups  _saned   63,  26 Aug 13 09:30 /dev/ugen1.10
> crw-rw----  1 _cups  _saned   63,  27 Aug 13 09:30 /dev/ugen1.11
> crw-rw----  1 _cups  _saned   63,  28 Aug 13 09:30 /dev/ugen1.12
> crw-rw----  1 _cups  _saned   63,  29 Aug 13 09:30 /dev/ugen1.13
> crw-rw----  1 _cups  _saned   63,  30 Aug 13 09:30 /dev/ugen1.14
> crw-rw----  1 _cups  _saned   63,  31 Aug 13 09:30 /dev/ugen1.15
> 
> But hplip GUI insists in reporting a "Device communication error" (which
> is the exact message I see when ulpt is enabled...).
> 
> After debugging a bit further, I discovered:
> 
> just22@poseidon:[~]> sudo /usr/local/libexec/cups/backend/usb
> DEBUG: Loading USB quirks from "/usr/local/share/cups/usb".
> DEBUG: Loaded 68 quirks.
> DEBUG: list_devices
> DEBUG: libusb_get_device_list=9
> DEBUG: Failed to check whether 03f0:2504 has the "usblp" kernel module 
> attached
> 
> which sounds suspicious...
> 
> Any hints/advices? I'm stuck at the moment.

Can you try this patch:

--- backend/usb-libusb.c.orig   Mon Dec  9 20:26:47 2013
+++ backend/usb-libusb.c        Thu Aug 14 14:45:19 2014
@@ -1473,9 +1473,14 @@
   else
   {
     printer->usblp_attached = 0;
-    fprintf(stderr, "DEBUG: Failed to check whether %04x:%04x has the 
\"usblp\" kernel module attached\n",
-             devdesc.idVendor, devdesc.idProduct);
-    goto error;
+
+    if (errcode != LIBUSB_ERROR_NOT_SUPPORTED)
+    {
+      fprintf(stderr,
+              "DEBUG: Failed to check whether %04x:%04x has the \"usblp\" "
+              "kernel module attached\n", devdesc.idVendor, devdesc.idProduct);
+      goto error;
+    }
   }
 
  /*


-- 
Antoine

Reply via email to