usb backend does not work with cups-1.4.2

John Frankish j-frankish at slb.com
Sun Dec 6 02:10:22 PST 2009


> On Dec 3, 2009, at 12:34 AM, John Frankish wrote:
> > compiling cups-1.4.2 with configure switches:
> >=20
> > --prefix=3D/usr/local --sysconfdir=3D/usr/local/etc =
> --localstatedir=3D/var --without-languages --with-cups-user=3Dtc =
> --with-cups-group=3Dstaff =
> --with-fontpath=3D/usr/local/share/ghostscript/fonts =
> --with-dbusdir=3D/usr/local/etc/dbus-1
> >=20
> > I get:
> > $ lsusb
> > Bus 005 Device 002: ID 03f0:0711 Hewlett-Packard OfficeJet K80
> >=20
> > $ sudo /usr/local/lib/cups/backend/usb
> > DEBUG: list_devices
> > DEBUG: usb_find_busses=3D5
> > DEBUG: usb_find_devices=3D11
> >=20
> > $ sudo /usr/local/lib/cups/backend/hp
> > direct hp:/usb/OfficeJet_K80?serial=3DES0911401VOH "HP OfficeJet K80" =
> "HP OfficeJet K80 USB ES0911401VOH HPLIP" =
> "MFG:Hewlett-Packa;MDL:OfficeJet K80;CLS:PRINTER;DES:OfficeJet =
> K80;SN:ES0911401VOH;"
> >=20
> > 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=3Dstaff" switch?
>
>
> That's the group the backend will run as, so as long as you haven't =
> overridden the group in cupsd.conf it should be the one used.
>
> Note that just because the printer shows up from the HP backend doesn't =
> mean it will show up in the regular USB backend - if the printer doesn't =
> report itself as a standard USB printer device we won't show it.
>
> ___________________________________________________
If I compile cups-1.4.2 with the cups usb backend (as opposed to the libusb usb backend) then I get this:

$ /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;" ""

To summarise
1. cups internal usb backend - lists printer details
2. cups libusb usb backend - will not list details


Note that hplip will not work with either version of cups-1.4.2:

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 mailing list