Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Aug 2011 00:26:55 -0500
From:      Antonio Olivares <olivares14031@gmail.com>
To:        Warren Block <wblock@wonkity.com>
Cc:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: help setup an HP 3300C scanner
Message-ID:  <CAJ5UdcPB7j7vZh+BeqUX6Vk-m36YbR=SKV3+raBYGkOvby9CPg@mail.gmail.com>
In-Reply-To: <alpine.BSF.2.00.1108032302020.16241@wonkity.com>
References:  <CAJ5UdcM6OZe48v34o68YHBZsjW41zsKaS_fdOF14jZwneCeXjw@mail.gmail.com> <CAJ5UdcNaX7CR8=rFpRbUY3BrPdB7LVbDREOVoZ1EAQ90WQPKng@mail.gmail.com> <CAJ5UdcMAjJ3TP+cwWevmotbrXL1m8BiOZ_JkGkJFyBMH_s8wnw@mail.gmail.com> <alpine.BSF.2.00.1108032133440.15916@wonkity.com> <CAJ5UdcM3TES1NJUb91X3MrtqR74A2D+RxmCF7pHrQtxg87+f1w@mail.gmail.com> <alpine.BSF.2.00.1108032302020.16241@wonkity.com>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On Thu, Aug 4, 2011 at 12:09 AM, Warren Block <wblock@wonkity.com> wrote:
> On Wed, 3 Aug 2011, Antonio Olivares wrote:
>
>> Thank you for your message. =A0I have added the following:
>>
>> # AAO
>> # detect HP ScanJet 3300C
>> attach 20 {
>> =A0 =A0 =A0device-name "ugen[0-9].[0-9]";
>> =A0 =A0 =A0match "vendor" "0x03f0";
>> =A0 =A0 =A0match "product" "0x0205";
>> =A0 =A0 =A0action "usb_devaddr=3D`echo $device-name | sed 's#^ugen##'` &=
& \
>> =A0 =A0 =A0 =A0 =A0 =A0 =A0chown root:saned /dev/usb/${usb_devaddr}.* &&=
 \
>> =A0 =A0 =A0 =A0 =A0 =A0 =A0chmod 0660 /dev/usb/${usb_devaddr}.* && \
>> =A0 =A0 =A0 =A0 =A0 =A0 =A0su saned -c '/usr/local/bin/scanbuttond \
>> =A0 =A0 =A0 =A0 =A0 =A0 =A0-s /usr/local/etc/scanbuttond/buttonpressed.s=
h \
>> =A0 =A0 =A0 =A0 =A0 =A0 =A0-S /usr/local/etc/scanbuttond/initscanner.sh =
\
>> =A0 =A0 =A0 =A0 =A0 =A0 =A0-b /usr/local/lib/libscanbtnd-backend_epson.s=
o'";
>> };
>
> The last part of the action tries to run scanbuttond when the scanner is
> turned on. =A0That can be removed if you don't use scanbuttond.
>
> =A0 =A0 =A0 action "usb_devaddr=3D`echo $device-name | sed 's#^ugen##'` &=
& \
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 chown root:saned /dev/usb/${usb_devaddr}.* &&=
 \
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 chmod 0660 /dev/usb/${usb_devaddr}.*";
>
>> # AAO
>> # remove HP ScanJet 3300C
>> detach 20 {
>> =A0 =A0 =A0device-name "ugen[0-9].[0-9]";
>> =A0 =A0 =A0match "vendor" "0x03f0";
>> =A0 =A0 =A0match "product" "0x0205";
>> =A0 =A0 =A0action "/usr/bin/pkill scanbuttond";
>> };
>
> Similarly, the detach isn't needed if you're not running scanbuttond.
>

I added scanbuttond from ports to be safe :), I just copied your
example (not looking that it was customized for epson :(
libscanbtnd-backend_epson.so, but I have removed that and left it as
you have suggested :)  I was glad that it worked and I did not notice
that.   The good thing is that it* scanner is working and thanks to
your kind example/suggestion.

Regards,

Antonio



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?CAJ5UdcPB7j7vZh+BeqUX6Vk-m36YbR=SKV3+raBYGkOvby9CPg>