On Sun, Oct 18, 2009 at 07:47:53PM +0200, Hans Petter Selasky wrote: > On Sunday 18 October 2009 15:39:10 Patrick Lamaiziere wrote: > > [FreeBSD 8.0/i386] > > > > Hello, > > > > I've got some troubles to print on an "all-in-one" printer HP > > Photosmart C4680 which should work with the port printer/hplip3. The > > printer prints half of a page, then ejects the page and prints the > > rest or, depending of the resolution, repeats some parts. > > > > It looks like there is a problem between hplip (hp is the cups backend) > > and ugen but I don't know why. > > I think the device disappears while printing, I see some > > "Unknown USB device: vendor 0x03f0 product 0x7411 bus uhub2" on the > > console. > > > > complete log : http://user.lamaiziere.net/patrick/hplip.txt.gz > > > > ugen_default_fs_callback:2192: st=1 alen=8192 aframes=1 > > ugen_ioctl:1406: cmd=0x400155c2 > > ugen_ioctl:1584: error=0 > > ugen_ioctl:1406: cmd=0x400155c2 > > ugen_ioctl:1584: error=16 > > ugen_ioctl:1406: cmd=0x800155c0 > > ugen_ioctl:ugen1_58d4e:fa uelrtr_ofrs=_ca0llback:2192: st=0 alen=8192 > > aframes=1 ugen_ioctl:1406: cmd=0x400155c2 > > > > ugen_ioctl:1584: error=16 > > io/hpmud/musb.c 1028: bulk_write failed buf=0xbfbfc93c size=8192 len=-60: > > Permission denied ugen_default_fs_callback:2192: st=2 alen=0 aframes=0 > > ugen_ioctl:1406: cmd=0x400155c2 > > ugen_ioctl:1584: error=0 > > ugen_ioctl:1406: cmd=0x400155c2 > > ugen_ioctl:1584: error=16 > > ugen_ioctl:1406: cmd=0xc014556f > > > > ... > > ugen_ioctl:1584: error=16 > > io/hpmud/musb.c 1392: unable to write data > > hp:/usb/Photosmart_C4600_series?serial=CN987MF30J05BQ: 45 second io timeout > > ugen_default_fs_callback:2192: st=1 alen=8192 aframes=1 > > ugen_ioctl:1406: cmd=0x400155c2 > > ugen_ioctl:1584: error=0 > > ugen_ioctl:1406: cmd=0x400155c2 > > ugen_ioctl:1584: error=16 > > ugen_ioctl:1406: cmd=0x800155c0 > > ugen_ioctl:uge1n5_8d4e:fa uelrtr_fosr_=cal0lback:2192: st=0 alen=8192 > > aframes=1 ugen_ioctl:1406: cmd=0x400155c2 > > > > > > The scanner works very well, there is also a card reader attached at > > umass/da0 but I removed umass from my kernel to be sure there is no > > conflict. > > > > Any help will be appreciated, thanks. > > Hi, > > Which backend is your printer driver using? > > 1) libusb v0.1, v1.0 or v2.0 ? > > 2) /dev/usb/XXXX directly. > > Could you check that first? > > I recommend USB access using libusb.
I have just upgraded from 7.2-stable(i386) to 8.0 (amd64) at home and it looks like I am hitting the same problem. I have an HP F380 multi- function printer, so I am using print/hplip3 and cups* all built from ports. hpijs is linked to "libusb.so.2 => /usr/lib/libusb.so.2 (0x800acf000)" Is that good enough to know what interface it is using? In my case, before I print, i can use the HP Device Manager (part of hplip3) and the cups web interface, and everything looks ok with the printer, it even detects that the toner is low. When I try to print, it will print the first line, and then stop with most of the LEDs on the printer flashing and this in /var/log/messages: ############################ Oct 18 17:28:57 angel kernel: ugen6.2: <HP> at usbus6 (disconnected) Oct 18 17:29:01 angel root: Unknown USB device: vendor 0x03f0 product 0x5511 bus uhub6 Oct 18 17:29:01 angel kernel: ugen6.2: <HP> at usbus6 Oct 18 17:31:10 angel root: Unknown USB device: vendor 0x03f0 product 0x5511 bus uhub6 Oct 18 17:31:10 angel last message repeated 5 times Oct 18 17:31:10 angel hpijs[23982]: prnt/hpijs/hpijs.cpp 619: WARNING: color pen has low ink Oct 18 17:31:10 angel hpijs[23982]: prnt/hpijs/hpijs.cpp 638: STATE: +marker-supply-low-warning Oct 18 17:31:10 angel root: Unknown USB device: vendor 0x03f0 product 0x5511 bus uhub6 Oct 18 17:31:10 angel last message repeated 2 times Oct 18 17:31:16 angel hp[23977]: io/hpmud/musb.c 1028: bulk_write failed buf=0x7fffffffc7b0 size=8192 len=-60: Resource temporarily unavailable Oct 18 17:31:16 angel hp[23977]: io/hpmud/musb.c 1392: unable to write data hp:/usb/Deskjet_F300_series?serial=CN718GM05H04KH: 45 second io timeout Oct 18 17:31:21 angel hp[23977]: io/hpmud/musb.c 1028: bulk_write failed buf=0x7fffffffc7b0 size=8192 len=-60: Permission denied Oct 18 17:31:21 angel hp[23977]: io/hpmud/musb.c 1392: unable to write data hp:/usb/Deskjet_F300_series?serial=CN718GM05H04KH: 45 second io timeout Oct 18 17:31:27 angel hp[23977]: io/hpmud/musb.c 1028: bulk_write failed buf=0x7fffffffc7b0 size=8192 len=-60: Permission denied Oct 18 17:31:27 angel hp[23977]: io/hpmud/musb.c 1392: unable to write data hp:/usb/Deskjet_F300_series?serial=CN718GM05H04KH: 45 second io timeout Oct 18 17:31:32 angel hp[23977]: io/hpmud/musb.c 731: invalid deviceid wIndex=1, retrying wIndex=100: Input/output error Oct 18 17:31:37 angel hp[23977]: io/hpmud/musb.c 740: invalid deviceid retry ret=-1: Input/output error Oct 18 17:31:37 angel hp[23977]: prnt/backend/hp.c 610: ERROR: 5021 device communication error! ############################ All of this was working on 7.2, although with an older hplip and cups. If there is more info you need, just ask. I can try patches too. :-) John -- John Hay -- j...@meraka.csir.co.za / j...@freebsd.org _______________________________________________ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"