From owner-freebsd-questions@FreeBSD.ORG Thu Dec 7 11:29:35 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 57FBA16A412 for ; Thu, 7 Dec 2006 11:29:35 +0000 (UTC) (envelope-from jhary@unsane.co.uk) Received: from unsane.co.uk (www.unsane.co.uk [85.233.185.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id BA01843E23 for ; Thu, 7 Dec 2006 11:23:54 +0000 (GMT) (envelope-from jhary@unsane.co.uk) Received: from [192.168.10.217] (150.117-84-212.staticip.namesco.net [212.84.117.150]) (authenticated bits=0) by unsane.co.uk (8.13.7/8.13.3) with ESMTP id kB7BOtKP004538 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 7 Dec 2006 11:24:55 GMT (envelope-from jhary@unsane.co.uk) Message-ID: <4577F9EE.5020203@unsane.co.uk> Date: Thu, 07 Dec 2006 11:24:30 +0000 From: Vince User-Agent: Thunderbird 1.5.0.8 (X11/20061204) MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <20061207063252.GA769@host.my.domain> <4577E484.7000307@unsane.co.uk> <20061207105323.GA566@host.my.domain> In-Reply-To: <20061207105323.GA566@host.my.domain> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: How to use ulpt driver? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Dec 2006 11:29:35 -0000 a@zeos.net wrote: > On Thu, Dec 07, 2006 at 09:53:08AM +0000, Vince wrote: >> a@zeos.net wrote: >>> I get USB printer Canon PIXMA iP 2000 and attached it to my computer. >>> >>> The kernel was compiled with: >>> >>> # USB support >>> device uhci # UHCI PCI->USB interface >>> device usb # USB Bus (required) >>> device ugen # Generic >>> device uhid # "Human Interface Devices" >>> device umass # Disks/Mass storage - Requires scbus and da >>> >>> and sees the printer: >>> >>> What is wrong and how will I print? >>> >> when you plug in/turn on the printer with the system booted, what >> appears in your dmesg/messages log? >> >> I see there are some ugen entries in /dev so it might not be recognised >> by the driver correctly. >> >> Vince >> >>> Elisej Babenko > > It is something misterious. > > When I boot my computer with printer turned on and load ulpt driver > the results is like above (ugens instead of ulpt). > > When I turn off the printer, the kernel reads: > > ugen0: at uhub0 port 2 (addr 2) disconnected > All threads purged from ugen0.2 > All threads purged from ugen0.1 > All threads purged from ugen0 > ugen0: detached > > and ugen0, ugen0.1, and ugen0.2 disappear in /dev. > > When I turn on the printer again with ulpt loaded, the kernel reads: > > ulpt0: Canon iP2000, rev 1.10/1.05, addr 2, iclass 7/1 > ulpt0: using bi-directional mode > > And I have ulpt0 and unlpt0 desired in /dev instead of ugens now! > > May be the ugen driver built in kernel prevents ulpt driver from > proper work and I should throw ugen driver out from kernel? > No instead just have ulpt compiled statically in or load it by /boot/loader.conf (or do what you did here.) Vince _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"