[8.0] hplip3/ugen printer problem

2009-10-18 Thread Patrick Lamaiziere
[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.

Regards.
___
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


Re: [8.0] hplip3/ugen printer problem

2009-10-18 Thread Hans Petter Selasky
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/ directly.

Could you check that first?

I recommend USB access using libusb.

--HPS
___
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


Re: [8.0] hplip3/ugen printer problem

2009-10-18 Thread John Hay
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/ 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=0x7fffc7b0 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=0x7fffc7b0 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=0x7fffc7b0 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 

Re: [8.0] hplip3/ugen printer problem

2009-10-18 Thread Patrick Lamaiziere
Le Sun, 18 Oct 2009 19:47:53 +0200,
Hans Petter Selasky hsela...@c2i.net a écrit :

Hello,

 Which backend is your printer driver using?
 
 1) libusb v0.1, v1.0 or v2.0 ?

The documentation of hplip states they use libusb.

The backend is linked with libusb.so.2 but I think (not sure) that
it uses the v0.1 compatibilty mode (usb_init(), usb_open()...)
There is no call to libusb in the code.

Thanks, regards.
___
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


device nodes in usb2 stack (fwd)

2009-10-18 Thread Alexander Best
posted this to freebsd-questions@ a while ago and got no answer.

alex
---BeginMessage---
i was wondering why some device nodes appear as regular files under /dev (like
ulpt or da e.g.) and some don't?

if i attach my usb dongle device i get this dmesg output:

ugen1.2: vendor 0x0a12 at usbus1
ubt0: vendor 0x0a12 product 0x0001, class 224/1, rev 2.00/15.93, addr 2 on
usbus1

but no device node gets created under /dev. however the following lines i have
in my /etc/devd.conf work just as expected:

# When a USB Bluetooth dongle appears activate it
attach 100 {
device-name ubt[0-9]+;
action /etc/rc.d/bluetooth quietstart $device-name;
action /usr/local/bin/obexapp -r /var/spool/obex -s -C1;
};
detach 100 {
device-name ubt[0-9]+;
action /etc/rc.d/bluetooth quietstop $device-name;
action /usr/bin/killall obexapp;
};

the device works perfectly, but i'm still wondering why no device node gets
created in /dev. i always thought one of the main unix philosophies was:
everything is a file!.

cheers.
alex

---End Message---
___
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


Re: device nodes in usb2 stack (fwd)

2009-10-18 Thread Paul B Mahol
On 10/18/09, Alexander Best alexbes...@math.uni-muenster.de wrote:
 posted this to freebsd-questions@ a while ago and got no answer.

Similar to sound devices, they are created in /dev on request - when being used.
___
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


Re: device nodes in usb2 stack (fwd)

2009-10-18 Thread Hans Petter Selasky
On Sunday 18 October 2009 23:08:14 Alexander Best wrote:
 posted this to freebsd-questions@ a while ago and got no answer.

 alex

Hi,

For every USB device there is /dev/usb/XXX . Currently the USB Bluetooth 
driver does not have any file nodes. Entries appearing in devd.conf might not 
always be matched due to /dev/XXX creation. In that regard the USB stack fakes 
ugenX.Y device messages for devd.conf.

--HPS

___
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


Re: usb/139598: [umass] CAM reports xptioctl: put device pass in your kernel config file even when already present

2009-10-18 Thread linimon
Old Synopsis: CAM reports xptioctl: put device pass in your kernel config 
file even when already present
New Synopsis: [umass] CAM reports xptioctl: put device pass in your kernel 
config file even when already present

Responsible-Changed-From-To: freebsd-bugs-freebsd-usb
Responsible-Changed-By: linimon
Responsible-Changed-When: Mon Oct 19 02:31:19 UTC 2009
Responsible-Changed-Why: 
Over to maintainer(s).

http://www.freebsd.org/cgi/query-pr.cgi?pr=139598
___
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