On Wed, Aug 3, 2011 at 11:16 PM, Antonio Olivares <[email protected]> wrote: > Warren, > > On Wed, Aug 3, 2011 at 10:48 PM, Warren Block <[email protected]> wrote: >> 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"; >> }; >> >> > > Thank you for your message. I have added the following: > > # AAO > # detect HP ScanJet 3300C > attach 20 { > device-name "ugen[0-9].[0-9]"; > match "vendor" "0x03f0"; > match "product" "0x0205"; > 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'"; > }; > > # AAO > # remove HP ScanJet 3300C > detach 20 { > device-name "ugen[0-9].[0-9]"; > match "vendor" "0x03f0"; > match "product" "0x0205"; > action "/usr/bin/pkill scanbuttond"; > }; > > > > to file /etc/devd.conf and xsane still tells me that I do not have any > devices? > > I restarted devd service > # /etc/rc.d/devd restart > and I get : > > quadcore# /etc/rc.d/devd restart > devd not running? > Starting devd. > devd: devd already running, pid: 801 > /etc/rc.d/devd: WARNING: failed to start devd > > I have also added myself to the "saned" group: > > quadcore# cat /etc/group | grep 'saned' > saned:*:194:olivares > > What else do I need to do? > > Thank you for your help & suggestions. > > Regards, > > Antonio >
Warren, I have rebooted to see if it* would make a difference, and it worked :) I am happy! Thank you very much for your assistance. Regards, Antonio * made the big difference, scanner was detected by xsane! _______________________________________________ [email protected] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[email protected]"
