From owner-freebsd-usb@FreeBSD.ORG Sat Feb 28 17:58:59 2009 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 31A0D1065673 for ; Sat, 28 Feb 2009 17:58:59 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe07.swip.net [212.247.154.193]) by mx1.freebsd.org (Postfix) with ESMTP id 881AE8FC15 for ; Sat, 28 Feb 2009 17:58:57 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=beo0rMk-LXkA:10 a=1eCa3KCRIoUA:10 a=MXw7gxVQKqGXY79tIT8aFQ==:17 a=8kQB0OdkAAAA:8 a=y26AOypDAAAA:8 a=NGNng6gqRg4ESMy0aZUA:9 a=brroWvczontaoWHXR1oA:7 a=6RPGzb9xK7a1rM82qwPgs9DBgYUA:4 a=LY0hPdMaydYA:10 a=9aOQ2cSd83gA:10 Received: from [62.113.132.61] (account mc467741@c2i.net HELO laptop) by mailfe07.swip.net (CommuniGate Pro SMTP 5.2.6) with ESMTPA id 1201137566; Sat, 28 Feb 2009 18:58:56 +0100 From: Hans Petter Selasky To: eculp Date: Sat, 28 Feb 2009 19:01:24 +0100 User-Agent: KMail/1.9.7 References: <20090225061037.10896uy7ft1kgu80@econet.encontacto.net> <200902251326.19416.hselasky@c2i.net> <20090228115508.81775n96b4f851gk@econet.encontacto.net> In-Reply-To: <20090228115508.81775n96b4f851gk@econet.encontacto.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200902281901.25043.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: Current - USB2 - cups and u[n]lpt devices. X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Feb 2009 17:59:00 -0000 On Saturday 28 February 2009, eculp wrote: > Quoting Hans Petter Selasky : > > On Wednesday 25 February 2009, eculp wrote: > >> I just rebooted my laptop that I have today's USB2 hopefully with the > >> latest USB compatibility, if I understood the GENERIC kernel > >> correctly. I'm using i386 version, up to date as of this morning. > >> Ports are completely up to date. all etc/dev* stuff is as it was with > >> USB1. > >> > >> From the dmesg I get: > >> > >> +ugen0.2: at usbus0 > >> +ulpt0: on usbus0 > >> +ulpt0: using bi-directional mode > >> +Symlink: ulpt0 -> usb0.2.1.16 > >> +Symlink: unlpt0 -> usb0.2.1.17 > >> > >> With localhost:631 I see Unable to open device file "/dev/ulpt0": > >> Operation not permitted. Probably because, there ain't none. Is > >> there something else that I need to do that I didn't do before? > >> > >> This isn't critical. I probably print only a few pages a week but I > >> do want it to work when something is critical. > > > > The devices are there, but invisible. > > > > Also check "usbconfig dump_access" that the ulpt port is reachable by > > cupsd. > > I think not. > > # usbconfig dump_access > Global Access: root:operator 0660 > ugen0.1: at usbus0, cfg=0 md=HOST spd=FULL > (12Mbps) pwr=ON > > Device Access: > Interface 0 Access: > > ugen1.1: at usbus1, cfg=0 md=HOST spd=HIGH > (480Mbps) pwr=ON > > Device Access: > Interface 0 Access: > > ugen2.1: at usbus2, cfg=0 md=HOST spd=FULL > (12Mbps) pwr=ON > > Device Access: > Interface 0 Access: > > ugen3.1: at usbus3, cfg=0 md=HOST spd=HIGH > (480Mbps) pwr=ON > > Device Access: > Interface 0 Access: > > ugen0.2: at usbus0, cfg=0 md=HOST > spd=FULL (12Mbps) pwr=ON > > Device Access: > Interface 0 Access: > Interface 1 Access: root:operator 0644 > > ugen1.2: at usbus1, cfg=0 md=HOST > spd=HIGH (480Mbps) pwr=ON > > Device Access: > Interface 0 Access: > Interface 1 Access: > > > cat /dev/ulpt0 > > # cat /dev/ulpt0 > ed.local.net.mx > > > should work > > What confuses me is that with dmesg or disconnecting and reconnecting I > see: > > Feb 28 11:50:35 ed kernel: ulpt0: at ushub0, port 2, addr 2 (disconnected) > Feb 28 11:50:35 ed kernel: ugen0.2: at usbus0 (disconnected) > Feb 28 11:50:39 ed kernel: ugen0.2: at usbus0 > Feb 28 11:50:39 ed kernel: ulpt0: on usbus0 > Feb 28 11:50:39 ed kernel: ulpt0: using bi-directional mode > Feb 28 11:50:39 ed kernel: Symlink: ulpt0 -> usb0.2.1.16 > Feb 28 11:50:39 ed kernel: Symlink: unlpt0 -> usb0.2.1.17 > > But cups still says: > > Unable to open device file "/dev/ulpt0": Operation not permitted" > > and there are no lpt devices in /dev or subdirectories. > > Any additional suggestins apreciated. > Try to cvsup. Then you will get a device which you can chmod . --HPS