plustek: Mandriva 2005LE and plustek_pp - How to fix
Subject:
RE: Mandriva 2005LE and plustek_pp - How to fix
From:
####@####.#### (Andreas Funke)
Date:
26 Jun 2005 14:39:14 +0100
Message-Id: <36414F67.295735FC.02DE227F@netscape.net>
Errata and a few additional considerations:
1. Where I wrote
/etc/sane/
please read:
/etc/sane.d/
2. The most relevant steps in my previous message are #6 and $7. The remaining steps where designed to not break the RPM database of Mandriva, but there are alternative ways that can be followed by experienced users;
3. Exactly as suggested by the documentation, it is advisable to set the parallel port mode in BIOS to EPP, and NOT choosing ECP or ECP+EPP. In this particular machine, the EPP 1.7 mode works better than the EPP 1.9 mode;
4. When I switch the power on, the scanner's light turns on and remains in that state until the sane backend accesses it, provided that /etc/sane.d/plustek_pp.conf contains "option lOffOnEnd 1". Since I'm not using the scanner all the time, and I don't like the fact that the lamp stays on for hours or days without being used, I created a simple initscript that works well in any recent version of Mandrake or Mandriva. The script is saved to /etc/init.d/ with the name "lampoff" and then activating it in the default runlevels by running "chkconfig --add lampoff", as root:
#!/bin/bash
#
# chkconfig: 12345 24 60
# description: activate and turn off scanner lamp at boot
#Sources Functions
. /etc/rc.d/init.d/functions
# see how we were called.
case "$1" in
start)
scanimage -n
touch /var/lock/subsys/lampoff
;;
stop)
rm -f /var/lock/subsys/lampoff
;;
status)
echo "no available status info"
;;
restart)
scanimage -n
touch /var/lock/subsys/lampoff
;;
*)
gprintf "*** Usage: $0 {start|stop|status|restart}\n"
exit 1
esac
exit 0
__________________________________________________________________
Switch to Netscape Internet Service.
As low as $9.95 a month -- Sign up today at http://isp.netscape.com/register
Netscape. Just the Net You Need.
New! Netscape Toolbar for Internet Explorer
Search from anywhere on the Web and block those annoying pop-ups.
Download now at http://channels.netscape.com/ns/search/install.jsp