Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 04 Jul 2006 22:38:58 +0200
From:      Jan-Espen Pettersen <sigsegv@radiotube.org>
To:        Rainer Heesen <rainer.heesen@gmx.de>
Cc:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: cups 1.2 - no output
Message-ID:  <44AAD1E2.8040003@radiotube.org>
In-Reply-To: <200607042022.42893.rainer.heesen@gmx.de>
References:  <200607021653.13546.rainer.heesen@gmx.de> <200607032103.06324.rainer.heesen@gmx.de> <44A98908.3060708@radiotube.org> <200607042022.42893.rainer.heesen@gmx.de>

next in thread | previous in thread | raw e-mail | index | archive | help
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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44AAD1E2.8040003>