Date: Wed, 3 Aug 2011 21:48:44 -0600 (MDT) From: Warren Block <wblock@wonkity.com> To: Antonio Olivares <olivares14031@gmail.com> Cc: FreeBSD Questions <freebsd-questions@freebsd.org> Subject: Re: help setup an HP 3300C scanner Message-ID: <alpine.BSF.2.00.1108032133440.15916@wonkity.com> In-Reply-To: <CAJ5UdcMAjJ3TP%2BcwWevmotbrXL1m8BiOZ_JkGkJFyBMH_s8wnw@mail.gmail.com> References: <CAJ5UdcM6OZe48v34o68YHBZsjW41zsKaS_fdOF14jZwneCeXjw@mail.gmail.com> <CAJ5UdcNaX7CR8=rFpRbUY3BrPdB7LVbDREOVoZ1EAQ90WQPKng@mail.gmail.com> <CAJ5UdcMAjJ3TP%2BcwWevmotbrXL1m8BiOZ_JkGkJFyBMH_s8wnw@mail.gmail.com>
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/pkg-message.in, 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/buttonpressed.sh \ -S /usr/local/etc/scanbuttond/initscanner.sh \ -b /usr/local/lib/libscanbtnd-backend_epson.so'"; }; # 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: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1108032133440.15916>