Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 09 Jun 2002 15:45:52 +0200 (CEST)
From:      Riccardo Torrini <riccardo@torrini.org>
To:        freebsd-current@FreeBSD.ORG
Subject:   I need USB and DEVFS info
Message-ID:  <XFMail.20020609154552.riccardo@torrini.org>

next in thread | raw e-mail | index | archive | help
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 majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




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