patch -p1 <scanbuttond-nullconfig.patchPatch mailed to the author, and signalled on its Ubuntu bug entry -- ColasNahaboo - 2008-10-17
# set up package for rebuildYou can get the packages (~ 30k) I thus compiled on my i386 systems for:
mkdir /tmp/scanbuttond; cd /tmp/scanbuttond
for i in scanbuttond_0.2.3-7.dsc scanbuttond_0.2.3.orig.tar.gz scanbuttond_0.2.3-7.diff.gz
do wget http://ftp.de.debian.org/debian/pool/main/s/scanbuttond/$i
done
dpkg-source -x *.dsc
cd *[^a-z]
# apply patch
wget http://colas.nahaboo.net/pub/Hacks/ScanButtond/scanbuttond-nullconfig.patch
patch -p1 <scanbuttond-nullconfig.patch
# rebuild
dpkg-buildpackage -us -uc
cd ..
# install
sudo dpkg -i *.deb
/var/log/syslog every 2 seconds if your scanner is not on, like: Oct 17 22:33:49 mougins scanbuttond: rescanning devices...To avoid this I only launch the daemon when my scanner is up and stop it when I turn it off. For this I do not launch
Oct 17 22:33:49 mougins scanbuttond: no supported devices found. rescanning in a few seconds...
Oct 17 22:33:51 mougins scanbuttond: rescanning devices...
Oct 17 22:33:51 mougins scanbuttond: no supported devices found. rescanning in a few seconds...
/etc/init.d/scanbuttond on startup, but the shell daemon:
#!/bin/bashAnd, to be complete, if you want some example, here is my /etc/scanbuttond/buttonpressed.sh script. What it does is
# only start scanbuttond if scanner is on, to avoid messages
scan_on=
while sleep 20; do
scan=`lsusb|grep Perfection`
if test -n "$scan"; then
if test -z "$scan_on"; then
/etc/init.d/scanbuttond start
scan_on=true
fi
else
if test -n "$scan_on"; then
/etc/init.d/scanbuttond stop
scan_on=
fi
fi
done </dev/null >/dev/null 2>&1 &
/0/scans/new in medium quality: 150dpi, 75% quality jpeg
/0/scans/new in high quality: 400 dpi, 90% quality jpeg
|
Navigate:
Changes -
Index -
Map -
Search -
Print version -
RSS Feed
Advanced: Backlinks - Children - Raw View - Email changes - History Admin: Admin - Statistics - Preferences - Notifications - Your Account Edit: Edit - Raw edit - Attach - Create New Topic - More topic actions |
Hacks.ScanButtond Topic revision: r20 - 2008-10-17 - 22:38:21 - ColasNahaboo Powered by Hosted by Linode on Debian |