usb backend does not work with cups-1.4.2

John Frankish j-frankish at slb.com
Thu Dec 3 02:45:21 PST 2009


> compiling cups-1.4.2 with configure switches:
>
> --prefix=/usr/local --sysconfdir=/usr/local/etc --localstatedir=/var --without-languages --with-cups-user=tc --with-cups-group=staff --with-fontpath=/usr/local/share/ghostscript/fonts --with-dbusdir=/usr/local/etc/dbus-1
>
> I get:
> $ lsusb
> Bus 005 Device 002: ID 03f0:0711 Hewlett-Packard OfficeJet K80
>
> $ sudo /usr/local/lib/cups/backend/usb
> DEBUG: list_devices
> DEBUG: usb_find_busses=5
> DEBUG: usb_find_devices=11
>
> $ sudo /usr/local/lib/cups/backend/hp
> direct hp:/usb/OfficeJet_K80?serial=ES0911401VOH "HP OfficeJet K80" "HP OfficeJet K80 USB ES0911401VOH HPLIP" "MFG:Hewlett-Packa;MDL:OfficeJet K80;CLS:PRINTER;DES:OfficeJet K80;SN:ES0911401VOH;"
>
> I believe the usb backend is expecting the usb device to be owned by group "lp", whereas it is owned by group "staff" on my machine - does the usb backend take note of the "--with-cups-group=staff" switch?
>

..and if I compile with the "--disable-libusb" switch, things appear to improve with the usb backend:

$ /usr/local/lib/cups/backend/usb
direct usb://HP/OfficeJet%20K80?serial=ES0911401VOH "HP OfficeJet K80" "HP OfficeJet K80" "MFG:Hewlett-Packard;MDL:OfficeJet K80;CMD:MLC,PCL,PML;CLASS:PRINTER;DESCRIPTION:Hewlett-Packard OfficeJet K Series;1284.3M:f7f,f7f;1284.4DL:4d,4e,1;SERN:ES0911401VOH;VSTATUS:$HB0$NC0,ff,DN,IDLE,CUT,K0,C0,SM,NR,KP036,CP013;AiO:0;DW-PCL;"

..but it appears to break the hp backend:

D [03/Dec/2009:14:11:55 +0000] [Job 3] prnt/backend/hp.c 743: ERROR: cannot open channel PRINT
D [03/Dec/2009:14:11:55 +0000] [Job 3] prnt/hpijs/services.cpp 386: unable to write to output, fd=1, count=4096: Broken pipe
D [03/Dec/2009:14:11:55 +0000] [Job 3] prnt/hpijs/services.cpp 386: unable to write to output, fd=1, count=4096: Broken pipe
D [03/Dec/2009:14:11:55 +0000] [Job 3] prnt/hpijs/services.cpp 386: unable to write to output, fd=1, count=4096: Broken pipe
D [03/Dec/2009:14:11:55 +0000] [Job 3] prnt/hpijs/services.cpp 386: unable to write to output, fd=1, count=4096: Broken pipe
D [03/Dec/2009:14:11:55 +0000] [Job 3] prnt/hpijs/services.cpp 386: unable to write to output, fd=1, count=4096: Broken pipe
D [03/Dec/2009:14:11:55 +0000] PID 5885 (/usr/local/lib/cups/backend/hp) stopped with status 1!





More information about the cups-devel mailing list