I need USB and DEVFS info

2002-06-09 Thread Riccardo Torrini

I have a USB scanner (Epson Perfection 1240U) and a digital camera
(Agfa CL18).  The first is identified as uscanner0 and work really
well, the second show up as ugen{0,0.1,0.2,0.3}

With -CURRENT and DEVFS both come up with read/write enable only
for root, so I added this line for scanner to etc/usbd.conf:
attach  /bin/chmod 666 /dev/${DEVNAME}  echo L16cce  /dev/speaker

This enable my user to use scanner.  I tryed the same with digital
camera but (I think) DEVFS reset protections to read only.

# chmod go+w /dev/ugen0*
riccardo@trudy[0]: ll /dev/ugen*
crw-rw-rw-  1 root  operator  114,   0 Jun  9 14:37 /dev/ugen0
crw-rw-rw-  1 root  operator  114,   1 Jun  9 14:37 /dev/ugen0.1
crw-rw-rw-  1 root  operator  114,   2 Jun  9 14:43 /dev/ugen0.2
crw-rw-rw-  1 root  operator  114,   3 Jun  9 14:37 /dev/ugen0.3
riccardo@trudy[0]: gphoto2 --camera Agfa CL18 --list-files
*** Error ***  
An error occurred in the io-library ('Error writing to the port'):
No error description available
*** Error ('Error writing to the port') ***
[...]
riccardo@trudy[1]: ll /dev/ugen*
crw-rw-rw-  1 root  operator  114,   0 Jun  9 14:37 /dev/ugen0
crw-r--r--  1 root  operator  114,   1 Jun  9 14:37 /dev/ugen0.1
crw-r--r--  1 root  operator  114,   2 Jun  9 14:43 /dev/ugen0.2
crw-r--r--  1 root  operator  114,   3 Jun  9 14:37 /dev/ugen0.3

Trying the list/download photo command from root works.
After some command gphoto2 lockup and mark itself as a 'D' process
(D = process in disk (or other short term, uninterruptible) wait)
and I must reboot to remove it  :\
Is a status=D process really unbreakable?  And why it become 'D'?

And why procections reset to 644 after accessing /dev/ugen* device?

Any other hint ?  (no, I cannot buy a more expensive camera).


TIA,
Riccardo.

PS: I'd like to buy an USB (cheaper) printer: Epson C40UX.  Under
linuxprinting.org seems well supported using a ghostscript driver,
so I choose this one.  The only obscure point is FreeBSD USB driver
that is different from Linux one.  Is this printer working?  Any
-CURRENT or -STABLE user with this (or other cheaper) USB printers?

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: I need USB and DEVFS info

2002-06-09 Thread Poul-Henning Kamp

In message [EMAIL PROTECTED], Riccardo Torrini write
s:

This enable my user to use scanner.  I tryed the same with digital
camera but (I think) DEVFS reset protections to read only.

DEVFS certainly doesn't.  The device driver might.

Dima Dorfman has code in the pipeline which will allow you to
instruct DEVFS what to do and what permissions to use when devices
come and go.

I'm hoping he will commit it RSN so people an start to tell us if
it is a totally bogus concept.

-- 
Poul-Henning Kamp   | UNIX since Zilog Zeus 3.20
[EMAIL PROTECTED] | TCP/IP since RFC 956
FreeBSD committer   | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message