From owner-freebsd-usb@FreeBSD.ORG Sat Jan 25 21:40:00 2014 Return-Path: Delivered-To: freebsd-usb@smarthost.ysv.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 EC14FDB2 for ; Sat, 25 Jan 2014 21:40:00 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id C6E6A195F for ; Sat, 25 Jan 2014 21:40:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id s0PLe0m8040871 for ; Sat, 25 Jan 2014 21:40:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id s0PLe0r7040870; Sat, 25 Jan 2014 21:40:00 GMT (envelope-from gnats) Resent-Date: Sat, 25 Jan 2014 21:40:00 GMT Resent-Message-Id: <201401252140.s0PLe0r7040870@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-usb@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Volker Nebel 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 3A967D0D for ; Sat, 25 Jan 2014 21:35:42 +0000 (UTC) Received: from oldred.freebsd.org (oldred.freebsd.org [IPv6:2001:1900:2254:206a::50:4]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 1A346191F for ; Sat, 25 Jan 2014 21:35:42 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id s0PLZfLC084986 for ; Sat, 25 Jan 2014 21:35:41 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id s0PLZfmo084985; Sat, 25 Jan 2014 21:35:41 GMT (envelope-from nobody) Message-Id: <201401252135.s0PLZfmo084985@oldred.freebsd.org> Date: Sat, 25 Jan 2014 21:35:41 GMT From: Volker Nebel To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: usb/186110: connected over USB, only first document is printed X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Jan 2014 21:40:01 -0000 >Number: 186110 >Category: usb >Synopsis: connected over USB, only first document is printed >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Jan 25 21:40:00 UTC 2014 >Closed-Date: >Last-Modified: >Originator: Volker Nebel >Release: 10.0 on a Macmini, 8.0 on an Acer laptop >Organization: >Environment: FreeBSD macmini.ror.de 10.0-RELEASE FreeBSD 10.0-Release #1: Fri Jan 24 20:32:29 CET 2014 root@macmini.ror.de:/usr/obj/usr/src/sys/MACMINI amd64 and for the ACER lapopt: FreeBSD nebel.ror.de 8.0-RELEASE FreeBSD 8.0-RELEASE #3: Sat Jan 30 10:46:59 CET 2010 root@nebel.ror.de:/usr/obj/usr/src/sys/WENSDAY i386 >Description: Hi! Perhaps I only fail because the handbook (which is excellent in many ways) provi des only little info on how to connect a printer to an USB port. In case there i s something special I overlooked, please let me know how I should do it and send this PR to Class www. My printer is an HP LaserJet 6MP without an USB interface (too old). It serve s me fine when connected to a computer's parallel port. When I connect this prin ter to a computer's USB port (with an adapter cable), only the first document (w hat size ever) is printed. For further documents, printer starts blinking, stops blinking and does nothing. For modern computers no longer have a parallel port, I can only connect via U SB. Obviously, the problem has nothing to with the spooling system, for it happen s as well with [CMD=" "]cat test.ps > /dev/ulpt0[/CMD] issued twice: The first d ocument is printed, any further not. (The printer understands Postscript.) Same situation with /dev/unlpt0. I observe(d) the problem - on my Acer Laptop with FreeBSD 8.0 (after [CMD=" "]kldload ulpt[/CMD]) - on my Apple Macmini with FreeBSD 10.0 (where ulpt is compiled into the kernel) - on a laptop I had in the meantime of which I remember nothing except having Fr eebSD installed - on my Apple Macmini running under XUbuntu 10.4.3 I do/did not observe the problem + on my Apple Macmini running under MacOS X MountainLeopard (which I have completely replaced by FreeBSD) + on my Acer Laptop using parallel port. Surprisingly the problem cannot be solved by turning the printer off and on a gain. It can be solved by rebooting the computer (leaving the printer on). When I issue [CMD=" "]lpr test.ps[/CMD] a 2nd time and [CMD=" "]lpq[/CMD], I get: "waiting for lp to become ready (offline?)" When connected to the parallel interface interface, the printer worked fine only in "polled mode". Unfortunately, I don't know how to tune /boot/device.hint s for ulpt. And [CMD=" "]lptcontrol -p -d /dev/ulpt0[/CMD] returns: "lptcontrol: ioctl: Operation not supported by device". Best regards, Volker >How-To-Repeat: [CMD=" "]cat test.ps > /dev/ulpt0[/CMD] twice. Or [CMD=" "]lpr test.ps[/CMD] twice. Or combinations. >Fix: reboot. For Ubuntu, they seem to have found a solution by tuning cups: https://bugs.launchpad.net/ubuntu/+source/cups/+bug/987485 And the guys from Apple somehow solved it as well. >Release-Note: >Audit-Trail: >Unformatted: