Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Aug 2011 21:48:44 -0600 (MDT)
From:      Warren Block <>
To:        Antonio Olivares <>
Cc:        FreeBSD Questions <>
Subject:   Re: help setup an HP 3300C scanner
Message-ID:  <>
In-Reply-To: <>
References:  <> <> <>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On Wed, 3 Aug 2011, Antonio Olivares wrote:

> This as root though, but as simple user cannot do much :(, again xsane
> tells me that no devices were found :(
> Suggestions/Advice/comments are welcome and appreciated.

To hit some relevant points...

The uscanner device is gone, no longer needed with FreeBSD-8.

devfs.conf hasn't been effective for dynamic devices for me.  Copying 
the clever technique from sysutils/scanbuttond/, I use 
devd.conf to detect the scanner attach and detach devices and change 
permissions and do whatever else is necessary.  Scanner users are a 
member of the saned group.

# WB
# detect Epson Perfection 1640SU scanner and start scanbuttond
attach 20 {
         device-name "ugen[0-9].[0-9]";
         match "vendor" "0x04b8";
         match "product" "0x010a";
         action "usb_devaddr=`echo $device-name | sed 's#^ugen##'` && \
                 chown root:saned /dev/usb/${usb_devaddr}.* && \
                 chmod 0660 /dev/usb/${usb_devaddr}.* && \
                 su saned -c '/usr/local/bin/scanbuttond \
                 -s /usr/local/etc/scanbuttond/ \
                 -S /usr/local/etc/scanbuttond/ \
                 -b /usr/local/lib/'";

# WB
# remove Epson Perfection 1640SU uscanner0 link and stop scanbuttond
detach 20 {
         device-name "ugen[0-9].[0-9]";
         match "vendor" "0x04b8";
         match "product" "0x010a";
         action "/usr/bin/pkill scanbuttond";

Want to link to this message? Use this URL: <>