Date: Sat, 18 Jul 2009 12:49:51 +0900 (JST) From: MIHIRA Sanpei Yoshiro <sanpei@sanpei.org> To: hselasky@c2i.net Cc: freebsd-usb@freebsd.org Subject: Re: ulpt(EPSON PM-820C Inkjet Printer) does not work on 8-current Message-ID: <20090718.124951.246512787.sanpei@sanpei.org> In-Reply-To: <200907151728.39031.hselasky@c2i.net> References: <200907141714.27199.hselasky@c2i.net> <20090715.230032.226782063.sanpei@sanpei.org> <200907151728.39031.hselasky@c2i.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi. > > [Problem 1] /etc/devd.conf does not work. > > o patched driver still has problem, I Think. I executed /sbin/devd with debug option. old usb stack(before 7.x-RELEASE) notify device "release" number 0x0100 to devd. But 8-current usb stack does not notify to devd. When I comment out match "release" line from /etc/devd.conf, devd was executed correctly. attach 100 { device-name "ulpt[0-9]+"; match "vendor" "0x04b8"; match "product" "0x0005"; # match "release" "0x0100"; action "/usr/bin/printf '000\033\001@EJL 1284.4\n@EJL \n' | /usr/bi n/tr 0 '\0' > /dev/$device-name"; action "/usr/sbin/lpc restart all"; }; Do you know why usb stack in 8-current does not notify "release" number? > > [Problem 2] print job was stop at printing With below patch, I could print out about 10 papers. But at that time, one time, stop printing at 1/3 paper line and Printer's status LED was brinking. So I execute ``cat /dev/ulpt0'', Printer wa restart printing. >Try removing the following two pieces of code from sys/dev/usb/serial/ulpt.c: > > /* clear stall first */ > mtx_lock(&sc->sc_mtx); > usbd_xfer_set_stall(sc->sc_xfer[ULPT_BULK_DT_RD]); > mtx_unlock(&sc->sc_mtx); > > /* clear stall first */ > mtx_lock(&sc->sc_mtx); > usbd_xfer_set_stall(sc->sc_xfer[ULPT_BULK_DT_WR]); > mtx_unlock(&sc->sc_mtx); Cheers. --- MIHIRA, Sanpei Yoshiro Tokyo, Japan.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090718.124951.246512787.sanpei>