Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Feb 2009 11:55:08 -0600
From:      eculp <eculp@encontacto.net>
To:        Hans Petter Selasky <hselasky@c2i.net>
Cc:        freebsd-usb@freebsd.org
Subject:   Re: Current - USB2 - cups and u[n]lpt devices.
Message-ID:  <20090228115508.81775n96b4f851gk@econet.encontacto.net>
In-Reply-To: <200902251326.19416.hselasky@c2i.net>
References:  <20090225061037.10896uy7ft1kgu80@econet.encontacto.net> <200902251326.19416.hselasky@c2i.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Quoting Hans Petter Selasky <hselasky@c2i.net>:

> 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: <EPSON> at usbus0
>> +ulpt0: <USB2.0 Printer> 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 cups=
d.

>
I think not.

# usbconfig dump_access
Global Access: root:operator 0660
ugen0.1: <OHCI root HUB nVidia> at usbus0, cfg=3D0 md=3DHOST spd=3DFULL =20
(12Mbps) pwr=3DON

   Device Access: <not set>
     Interface 0 Access: <not set>

ugen1.1: <EHCI root HUB nVidia> at usbus1, cfg=3D0 md=3DHOST spd=3DHIGH =20
(480Mbps) pwr=3DON

   Device Access: <not set>
     Interface 0 Access: <not set>

ugen2.1: <OHCI root HUB nVidia> at usbus2, cfg=3D0 md=3DHOST spd=3DFULL =20
(12Mbps) pwr=3DON

   Device Access: <not set>
     Interface 0 Access: <not set>

ugen3.1: <EHCI root HUB nVidia> at usbus3, cfg=3D0 md=3DHOST spd=3DHIGH =20
(480Mbps) pwr=3DON

   Device Access: <not set>
     Interface 0 Access: <not set>

ugen0.2: <USB1.1 MFP(Full-Speed) EPSON> at usbus0, cfg=3D0 md=3DHOST =20
spd=3DFULL (12Mbps) pwr=3DON

   Device Access: <not set>
     Interface 0 Access: <not set>
     Interface 1 Access: root:operator 0644

ugen1.2: <Acer CrystalEye webcam SuYin> at usbus1, cfg=3D0 md=3DHOST =20
spd=3DHIGH (480Mbps) pwr=3DON

   Device Access: <not set>
     Interface 0 Access: <not set>
     Interface 1 Access: <not set>

> 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: <EPSON> at usbus0 (disconnected)
Feb 28 11:50:39 ed kernel: ugen0.2: <EPSON> at usbus0
Feb 28 11:50:39 ed kernel: ulpt0: <USB2.0 Printer> 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.

ed

>
> --HPS
>




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