Re: Current - USB2 - cups and u[n]lpt devices.

2009-02-28 Thread eculp

Quoting Hans Petter Selasky hsela...@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 cupsd.





I think not.

# usbconfig dump_access
Global Access: root:operator 0660
ugen0.1: OHCI root HUB nVidia at usbus0, cfg=0 md=HOST spd=FULL  
(12Mbps) pwr=ON


  Device Access: not set
Interface 0 Access: not set

ugen1.1: EHCI root HUB nVidia at usbus1, cfg=0 md=HOST spd=HIGH  
(480Mbps) pwr=ON


  Device Access: not set
Interface 0 Access: not set

ugen2.1: OHCI root HUB nVidia at usbus2, cfg=0 md=HOST spd=FULL  
(12Mbps) pwr=ON


  Device Access: not set
Interface 0 Access: not set

ugen3.1: EHCI root HUB nVidia at usbus3, cfg=0 md=HOST spd=HIGH  
(480Mbps) pwr=ON


  Device Access: not set
Interface 0 Access: not set

ugen0.2: USB1.1 MFP(Full-Speed) EPSON at usbus0, cfg=0 md=HOST  
spd=FULL (12Mbps) pwr=ON


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

ugen1.2: Acer CrystalEye webcam SuYin at usbus1, cfg=0 md=HOST  
spd=HIGH (480Mbps) pwr=ON


  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



___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org


Re: Current - USB2 - cups and u[n]lpt devices.

2009-02-28 Thread Andrew Thompson
On Sat, Feb 28, 2009 at 11:57:33AM -0600, eculp wrote:
 Quoting Andrew Thompson thom...@freebsd.org:
 
 On Wed, Feb 25, 2009 at 06:10:37AM -0600, 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.
 
 Im working on a patch (from Rink) to create proper device nodes, should
 be ready shortly.
 
 I'm just curious.  Has this patch been committed yet?

Yes, it was yesterday.
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org


Re: Current - USB2 - cups and u[n]lpt devices.

2009-02-28 Thread eculp

Quoting Andrew Thompson thom...@freebsd.org:


On Sat, Feb 28, 2009 at 11:57:33AM -0600, eculp wrote:

Quoting Andrew Thompson thom...@freebsd.org:


On Wed, Feb 25, 2009 at 06:10:37AM -0600, 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.


Im working on a patch (from Rink) to create proper device nodes, should
be ready shortly.


I'm just curious.  Has this patch been committed yet?


Yes, it was yesterday.


I rebooted last night and then rebuilt all so I probably just need to reboot.

Thanks,

ed




___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org


Re: Low perfomance when read from usb flash drive

2009-02-28 Thread Artyom Mirgorodsky
Hi please explain what kind of test you have done. It's most likely not 
related to USB, but rather the file system.
 Maybe you can run the following test on Windows and FreeBSD to compare:
 
 dd if=/dev/da0 of=/dev/null bs=65536

I'm test on FreeBSD7-stable and FreeBSD-current and post results. Flash drive, 
FS, computer the same. Windows only for example.

PS
dd makes the same result - problem not in the file system
dd if=/dev/da0 of=/dev/null bs=65536
7281+0 records in
7281+0 records out
477167616 bytes transferred in 36.602952 secs (13036315 bytes/sec)

systat -vm

Disks   ad4   ad6   da0   cd0 pass0   sg0   sg1151844 wire
KB/t  27.33  0.00 64.00  0.00  0.00  0.00  0.00198628 act
tps   9 0   200 0 0 0 0758680 inact
MB/s   0.25  0.00 12.50  0.00  0.00  0.00  0.00  1660 cache
%busy 0 099 0 0 0 0288948 free


-- 
С уважением,
Артём Миргородский
tel: (056) 373 42 84
Jabber Id: artyom.mirgorod...@gmail.com
mailto: m...@alkar.net
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org


Re: Low perfomance when read from usb flash drive

2009-02-28 Thread M. Warner Losh
In message: 200903010038.29534.hsela...@c2i.net
Hans Petter Selasky hsela...@c2i.net writes:
: On Saturday 28 February 2009, Artyom Mirgorodsky wrote:
:  Read speed when copy from usb flash drive decreased from 20MB/s (old usb
:  stack) to 12MB/s. (on windows above 22Mb/s).
: 
: 
: Hi please explain what kind of test you have done. It's most likely not 
: related to USB, but rather the file system.
: 
: Maybe you can run the following test on Windows and FreeBSD to compare:
: 
: dd if=/dev/da0 of=/dev/null bs=65536

I've done a lot of data movement with usb1 and usb2 (love those .dv
videos of youth hockey).  This is exactly opposite of the results that
I'd typically see through the filesystem (ufs).  For usb1 I'd see
about 15MB/s and for usb2 I'd see between 16MB/s and 18MB/s.  Since
this is all ufs, no windows numbers are available for comparison.
These are the numbers reported by gstat, so it includes all the
filesystem traffic.

So a drop from 20MB/s to 12MB/s would be somewhat out of my range of
experience...

Warner
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org