From owner-freebsd-questions@FreeBSD.ORG Tue Jul 4 20:39:07 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 028EC16A4DA for ; Tue, 4 Jul 2006 20:39:07 +0000 (UTC) (envelope-from sigsegv@radiotube.org) Received: from mail.itconnect.no (mail.itconnect.no [80.89.32.22]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2BD2343D49 for ; Tue, 4 Jul 2006 20:39:05 +0000 (GMT) (envelope-from sigsegv@radiotube.org) Received: from enterprise.localnet.radiotube.org (enterprise.radiotube.org [80.89.53.15]) by mail.itconnect.no (8.12.11.20060308/8.12.11) with ESMTP id k64KcwKM004096; Tue, 4 Jul 2006 22:38:58 +0200 Received: from [10.53.4.10] (endeavour [10.53.4.10]) (authenticated bits=0) by enterprise.localnet.radiotube.org (8.13.6/8.13.6) with ESMTP id k64Kcw9c058418 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 4 Jul 2006 22:38:59 +0200 (CEST) (envelope-from sigsegv@radiotube.org) Message-ID: <44AAD1E2.8040003@radiotube.org> Date: Tue, 04 Jul 2006 22:38:58 +0200 From: Jan-Espen Pettersen User-Agent: Thunderbird 1.5.0.4 (X11/20060605) MIME-Version: 1.0 To: Rainer Heesen References: <200607021653.13546.rainer.heesen@gmx.de> <200607032103.06324.rainer.heesen@gmx.de> <44A98908.3060708@radiotube.org> <200607042022.42893.rainer.heesen@gmx.de> In-Reply-To: <200607042022.42893.rainer.heesen@gmx.de> X-Enigmail-Version: 0.94.0.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig2B458D2093CC3D17B8D43586" X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=failed version=3.1.1 X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on enterprise.localnet.radiotube.org X-Scanned-By: MIMEDefang 2.56 on 80.89.53.15 X-ITCMAIL-MailScanner-Information: Please contact the ISP for more information X-ITCMAIL-MailScanner: Found to be clean X-MailScanner-From: sigsegv@radiotube.org Cc: FreeBSD Questions Subject: Re: cups 1.2 - no output X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: sigsegv@radiotube.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Jul 2006 20:39:07 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig2B458D2093CC3D17B8D43586 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Rainer Heesen wrote: > root@desktop ~# echo test > /dev/ulpt0 > bash: /dev/ulpt0: Device busy > > so I think it is not a cups problem, but what kind of program make the = usb=20 > device busy? > =20 It can't be any other program if fstat is not reporting anything. I've been reading on the usb printer standard, and the ulpt code. I found that it will return 'device busy' (EBUSY) in one more condition other than that it is in use by another program. It will first do a soft reset on the printer, telling it to forget everything about previous request and/or errors. Then it'll wait for the printer to set it's state to Selected (ie. online). If the printer doesn't set its state to online FreeBSD will return EBUSY (device busy). You can try running your kernel in verbose mode ('boot -v' from the loader), and if this is the case you'll see series of messages on the console like: ulpt_open: waiting a while =2E.. To get your printer working again, maybe you can unplug, powercycle (ie. hard reset) your printer. And then try /dev/unlpt0. (No reset) 'echo test > /dev/unlpt0' is an effective test. Maybe your printer sets the online bit correctly if it doesn't receive the reset. And otherwise if you can confirm that the printer is not online, then maybe you can manually tell it to get online or power up. (By pushing an eventual 'power up'/'online' button on the printer itself) --------------enig2B458D2093CC3D17B8D43586 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.4 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFEqtHiH90qNYni6VoRArPnAJ48kVIAeUTnEeFwWu93hOEjdnyrIQCfdTxd Rz9+lBweELbaLQma29wlzU8= =qYUQ -----END PGP SIGNATURE----- --------------enig2B458D2093CC3D17B8D43586--