From owner-freebsd-usb@FreeBSD.ORG Tue Jun 17 07:05:20 2014 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 629F3BAD for ; Tue, 17 Jun 2014 07:05:20 +0000 (UTC) Received: from mail.turbocat.net (heidi.turbocat.net [88.198.202.214]) (using TLSv1.1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1D8612C0A for ; Tue, 17 Jun 2014 07:05:19 +0000 (UTC) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 411D51FE045; Tue, 17 Jun 2014 09:05:19 +0200 (CEST) Message-ID: <539FE8C4.9090606@selasky.org> Date: Tue, 17 Jun 2014 09:05:40 +0200 From: Hans Petter Selasky User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: Matthias Apitz Subject: Re: Fwd: USB to parallel for printer HP LaserJet 4mL References: <20140616083302.GA1790@La-Habana> <539EB3D7.7040802@selasky.org> <20140616091858.GA1945@La-Habana> <539EBB4B.2070401@selasky.org> <20140616100709.GA2201@La-Habana> <539EC2A1.6040803@selasky.org> <20140616151022.GA1657@La-Habana> <539F0D98.6040703@selasky.org> <20140617055446.GA1427@La-Habana> <539FDFB1.1090007@selasky.org> <20140617065534.GA1634@La-Habana> In-Reply-To: <20140617065534.GA1634@La-Habana> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Cc: freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Jun 2014 07:05:20 -0000 On 06/17/14 08:55, Matthias Apitz wrote: > El día Tuesday, June 17, 2014 a las 08:26:57AM +0200, Hans Petter Selasky escribió: > >> Can you try to set: >> >> sysctl hw.usb.no_cs_fail=1 >> >> before trying the device again? > > Hi, > > Success!!! I reverted the changes in ulpt.c and with the above setting, > printing works to both devices, /dev/ulpt0 and /dev/unlpt0. I just > concatenated a PostScript file to them as > > # cat psfile > /dev/ulpt0 > > What does the above mean? > > I have to add it to /boot/loader.conf or /etc/sysctl.conf. > > Thanks for you patient help. > > matthias > Hi, I think the USB stack is trying to reset the ULPT device, because it does not respond on the control endpoint any more. See TIMEOUT messages in dmesg and usbdump. By setting "no_cs_fail" to non-zero this behaviour is disabled. --HPS