Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Oct 2002 01:30:31 +0200
From:      Cliff Sarginson <cls@raggedclown.net>
To:        FreeBSD Questions <questions@FreeBSD.ORG>
Subject:   Re: USB Printing
Message-ID:  <20021005233031.GA452@raggedclown.net>
In-Reply-To: <3D9F47DD.4070407@trini0.org>
References:  <3D9F47DD.4070407@trini0.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Oct 05, 2002 at 04:13:17PM -0400, Gerard Samuel wrote:
> Well after almost a year and a half of using FreeBSD, Im going to 
> attempt to hook up a printer.
> I have a HP DeskJet 640C and all I have is a usb cable for it.
> The handbook doesn't discuss usb printing.
> I came across a thread in the mailing list about using apsfilter to 
> setup a usb printer.
> Are there any other options to setting up a usb printer??
> Is there anything to look for or watch out for that I should be aware 
> of??  (besides making sure I have the correct kernel/device nodes)
> 
> Thanks for any insight you may provide...
> 
I apsfilter is the right way to go - it works ! Read the manual page
carefully and you should have no problems. Your printer is in the list 
of recognised devices (I just checked) .. which does not necessarily
mean it will work, but it should do. Just follow the bouncing ball.
A few other things, you will of course need usb/usblpt support in your
kernel, mine is shown below.. you of course do not need all of these
and you may need ohci instead of uhci .. depends on controller .. I
don't think it matters if you compile both .. look in LINT.
There used to be a typo in SETUP for apsfilter where it refers to a
parallel port as the connection even though you chose USB .. just carry
on if it is still there .. the whole setup works.

Don't forget you will have to give the printer a name so be aware of
either using the flag -P to lpr, or export the PRINTER environment
variable with the name of the printer (I do this in /etc/profile..which
may not be the right place if you have multiple printers/users etc).

I have commented the ones you definitely need..
# USB support
device          uhci            # UHCI PCI->USB interface (needed or OHCI)
device          usb             # USB Bus (required)
device          ugen            # Generic (good idea to have this)
device          uhid            # "Human Interface Devices" (don't think you need this..but ?)
#device         ukbd            # Keyboard
device          ulpt            # Printer (needed)
device          ums             # Mouse
device          uscanner        # Scanners

Good Luck !
-- 
Regards
   Cliff Sarginson 
   The Netherlands

       Email: cls@raggedclown.net
       Tel  : +31 (0)10 4764595

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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