1141cc406Sopenharmony_ciPlustek-Driver TROUBLESHOOTING/FAQ - 19.04.2001
2141cc406Sopenharmony_ci-----------------------------------------------
3141cc406Sopenharmony_ci
4141cc406Sopenharmony_ciThe driver exists now since March 2000, this is the first trial to setup
5141cc406Sopenharmony_cia FAQ. This leads into the following:
6141cc406Sopenharmony_ciFirst we have a part, which is more a troubleshooting section and the second
7141cc406Sopenharmony_cione is the FAQ.
8141cc406Sopenharmony_ciTo search through this text, search for "SYMPTOM" or "Q:".
9141cc406Sopenharmony_ci
10141cc406Sopenharmony_ciIf you have some more FAQ entries, let me know <gerhard@gjaeger.de>
11141cc406Sopenharmony_ci
12141cc406Sopenharmony_ciTHANKS to Jochen <jochen@puchalla-online.de>, who roamed through the
13141cc406Sopenharmony_cimailing-list and gathered the different questions.
14141cc406Sopenharmony_ci
15141cc406Sopenharmony_ci*******************************************************************************
16141cc406Sopenharmony_ci*                                 General                                     *
17141cc406Sopenharmony_ci*******************************************************************************
18141cc406Sopenharmony_ci
19141cc406Sopenharmony_ciSYMPTOM: Scanner makes awful noise
20141cc406Sopenharmony_ci--------
21141cc406Sopenharmony_ci
22141cc406Sopenharmony_ciPROBLEM:
23141cc406Sopenharmony_ci--------
24141cc406Sopenharmony_ciThis can have two major causes:
25141cc406Sopenharmony_ci- You have an ASIC96001/3 based scanner, then the sensor hits the
26141cc406Sopenharmony_ci  scanbed: !!! TURN OFF SCANNER POWER !!!
27141cc406Sopenharmony_ci
28141cc406Sopenharmony_ci- You have an ASIC98001 based scanner, then the motor control does
29141cc406Sopenharmony_ci  not work correctly --> hit the cancel button
30141cc406Sopenharmony_ci
31141cc406Sopenharmony_ciSOLUTION:
32141cc406Sopenharmony_ci---------
33141cc406Sopenharmony_ciFor the first case (ASIC 96001/3), there's no solution available. This
34141cc406Sopenharmony_cihappens, when the driver can't keep track of the stepper motor. The image
35141cc406Sopenharmony_ciyou get is normally unusable.
36141cc406Sopenharmony_ciThe second case is often reported when the printer driver lp.o is
37141cc406Sopenharmony_cialready loaded. So remove lp.o before loading pt_drv.
38141cc406Sopenharmony_ci
39141cc406Sopenharmony_ci
40141cc406Sopenharmony_ciSYMPTOM: Printer starts to print while scanning
41141cc406Sopenharmony_ci--------
42141cc406Sopenharmony_ci
43141cc406Sopenharmony_ciPROBLEM:
44141cc406Sopenharmony_ci--------
45141cc406Sopenharmony_ciIt has been reported, that some printers (esp. HP printers) start to
46141cc406Sopenharmony_ciprint, even during startup of the driver. This is a problem to printers
47141cc406Sopenharmony_ciwhich use a bidirectional protocol for talking with the system.
48141cc406Sopenharmony_ci
49141cc406Sopenharmony_ci
50141cc406Sopenharmony_ciSOLUTION:
51141cc406Sopenharmony_ci---------
52141cc406Sopenharmony_ciThere is no possibility to handle this problem inside the driver.
53141cc406Sopenharmony_ciOne possibility is to switch off the bidirectional communication of the
54141cc406Sopenharmony_ciprinter. The other one is to connect the printer to another parallel port.
55141cc406Sopenharmony_ci
56141cc406Sopenharmony_ci
57141cc406Sopenharmony_ci*******************************************************************************
58141cc406Sopenharmony_ci*                                 SANE-topics                                 *
59141cc406Sopenharmony_ci*******************************************************************************
60141cc406Sopenharmony_ci
61141cc406Sopenharmony_ciHere you will not find how to setup xscanimage to work with GIMP or
62141cc406Sopenharmony_cihow to compile sane to obtain xscanimage, for such questions, please
63141cc406Sopenharmony_cirefer to the mailing lists at SANE (http://www.sane-project.org)
64141cc406Sopenharmony_ci
65141cc406Sopenharmony_ci
66141cc406Sopenharmony_ciSYMPTOM: error in loading shared libraries: libsane.so.1: cannot open
67141cc406Sopenharmony_ci-------- shared object file: No such file or directory
68141cc406Sopenharmony_ci
69141cc406Sopenharmony_ciPROBLEM:
70141cc406Sopenharmony_ci--------
71141cc406Sopenharmony_ciThe shared libraries for SANE have been installed to a
72141cc406Sopenharmony_cidirectory which is not in your "library path"
73141cc406Sopenharmony_ci
74141cc406Sopenharmony_ciSOLUTION:
75141cc406Sopenharmony_ci---------
76141cc406Sopenharmony_ciSANE installs its shared libraries to PREFIX/lib/sane.
77141cc406Sopenharmony_ciPREFIX is in general /usr or /usr/local. You should
78141cc406Sopenharmony_cieither add the path to your /etc/ld.so.conf file or
79141cc406Sopenharmony_ciset links to the libraries from a wellknown lib-path.
80141cc406Sopenharmony_ci(i.e. ln -s /usr/lib/sane/libsane.so.1 /usr/lib/libsane.so.1)
81141cc406Sopenharmony_ciIn any case you should run "ldconfig -v"
82141cc406Sopenharmony_ci
83141cc406Sopenharmony_ci
84141cc406Sopenharmony_ci
85141cc406Sopenharmony_ciSYMPTOM: "no SANE devices found"
86141cc406Sopenharmony_ci--------
87141cc406Sopenharmony_ciWhile testing with "scanimage -L" nothing happens. And when starting scanimage
88141cc406Sopenharmony_cithis message is displayed.
89141cc406Sopenharmony_ci
90141cc406Sopenharmony_ciPROBLEM:
91141cc406Sopenharmony_ci--------
92141cc406Sopenharmony_ciThe frontend cannot find any sane-device, this might have several causes:
93141cc406Sopenharmony_ci- the driver is not loaded
94141cc406Sopenharmony_ci- you have no access to the driver
95141cc406Sopenharmony_ci- the backend is not enabled
96141cc406Sopenharmony_ci- the driver is not specified
97141cc406Sopenharmony_ci- version conflict between the loaded driver and the backend
98141cc406Sopenharmony_ci
99141cc406Sopenharmony_ciSOLUTION:
100141cc406Sopenharmony_ci---------
101141cc406Sopenharmony_ciDriver not loaded: check "cat /proc/pt_drv" if this does not exist, load
102141cc406Sopenharmony_cithe driver (see INSTALL)
103141cc406Sopenharmony_ci
104141cc406Sopenharmony_ciNo access to the driver: check "ls -l /dev/pt_drv*" and you should get
105141cc406Sopenharmony_ci
106141cc406Sopenharmony_cicrw-rw-r--   1 root     root      40,   0 Aug 29 15:18 /dev/pt_drv
107141cc406Sopenharmony_cicrw-rw-r--   1 root     root      40,   0 Aug 29 15:18 /dev/pt_drv0
108141cc406Sopenharmony_cicrw-rw-r--   1 root     root      40,   1 Aug 29 15:18 /dev/pt_drv1
109141cc406Sopenharmony_cicrw-rw-r--   1 root     root      40,   2 Aug 29 15:18 /dev/pt_drv2
110141cc406Sopenharmony_cicrw-rw-r--   1 root     root      40,   3 Aug 29 15:18 /dev/pt_drv3
111141cc406Sopenharmony_ci
112141cc406Sopenharmony_ciIf not, call "make load" in the driver source directory. This call sometimes
113141cc406Sopenharmony_cifails, so you might create the entries by using mknod:
114141cc406Sopenharmony_cimknod -m 0664 /dev/pt_drv c 40 0
115141cc406Sopenharmony_cimknod -m 0664 /dev/pt_drv0 c 40 0
116141cc406Sopenharmony_cimknod -m 0664 /dev/pt_drv1 c 40 1
117141cc406Sopenharmony_cimknod -m 0664 /dev/pt_drv2 c 40 2
118141cc406Sopenharmony_cimknod -m 0664 /dev/pt_drv3 c 40 3
119141cc406Sopenharmony_ci
120141cc406Sopenharmony_ciThe backend is not enabled: Check the SANE configuration in /etc/sane.d,
121141cc406Sopenharmony_ci/usr/etc/sane.d or /usr/local/etc/sane.d (depending on your installation).
122141cc406Sopenharmony_ciYour dll.conf MUST include an enabled "plustek" entry (no "#" in front of
123141cc406Sopenharmony_cithat line)
124141cc406Sopenharmony_ci
125141cc406Sopenharmony_ciThe driver is not specified: Check the sane configuration (see above)
126141cc406Sopenharmony_cifor the file plustek.conf and make sure that it contains at least
127141cc406Sopenharmony_ci/dev/pt_drv as entry.
128141cc406Sopenharmony_ci
129141cc406Sopenharmony_ciVersion conflict: After enabling the SANE debug messages you will
130141cc406Sopenharmony_ciget something like upon starting scanimage:
131141cc406Sopenharmony_ciioctl PT_DRV_OPEN_DEVICE failed(-9019)
132141cc406Sopenharmony_ciVersion problem, please recompile driver!
133141cc406Sopenharmony_ciIn this case, you MUST recompile the backend AND the driver and reinstall
134141cc406Sopenharmony_ciboth. This feature makes sure, that both always will use the same ioctl
135141cc406Sopenharmony_ciinterface.
136141cc406Sopenharmony_ci
137141cc406Sopenharmony_ci
138141cc406Sopenharmony_ciPROBLEM:
139141cc406Sopenharmony_ci--------
140141cc406Sopenharmony_ciI have SANE-1.0.4 and there's no backend-directory after unpacking, so
141141cc406Sopenharmony_ciwhat to do?
142141cc406Sopenharmony_ci
143141cc406Sopenharmony_ciSOLUTION:
144141cc406Sopenharmony_ci---------
145141cc406Sopenharmony_ciYou're wrong there is a backend directory!!!
146141cc406Sopenharmony_ciSince SANE-1.0.4, there are two packages:
147141cc406Sopenharmony_cisane-backends
148141cc406Sopenharmony_cisane-frontends
149141cc406Sopenharmony_ciFor the installation, you need the backend tarball. This should give
150141cc406Sopenharmony_ciyou something like:
151141cc406Sopenharmony_cisane-1.0.4/sane-backends
152141cc406Sopenharmony_ciand there below sane-backends is the backend directory. So you have
153141cc406Sopenharmony_cito unpack the plustek-sane...tgz in sane-backends.
154141cc406Sopenharmony_ci
155141cc406Sopenharmony_ci
156141cc406Sopenharmony_ci
157141cc406Sopenharmony_ci*******************************************************************************
158141cc406Sopenharmony_ci*                                   F A Q                                     *
159141cc406Sopenharmony_ci*******************************************************************************
160141cc406Sopenharmony_ci
161141cc406Sopenharmony_ciQ:  What does "Turbo" mean ?
162141cc406Sopenharmony_ci
163141cc406Sopenharmony_ciA:  Turbo does not mean, that the scanner is faster ;-)
164141cc406Sopenharmony_ci    There are currently three OpticPro9636P Scanners.
165141cc406Sopenharmony_ci    OP9636P
166141cc406Sopenharmony_ci    OP9636P+
167141cc406Sopenharmony_ci    OP9636PTurbo
168141cc406Sopenharmony_ci    The + and the Turbo models are quite the same and the difference between
169141cc406Sopenharmony_ci    the Turbo and the non-Turbo	is the scan-sensor. The Turbo uses the same
170141cc406Sopenharmony_ci    like the newer OP9636T/12000T and the non-Turbo uses the older ones
171141cc406Sopenharmony_ci    from the OP9630....
172141cc406Sopenharmony_ci
173141cc406Sopenharmony_ci
174141cc406Sopenharmony_ciQ:  Is it possible to use the front-button of my Plustek 9630P ?
175141cc406Sopenharmony_ci
176141cc406Sopenharmony_ciA:  It is possible since version 0.37. After loading the driver,
177141cc406Sopenharmony_ci    use the proc filesystem to get the button value:
178141cc406Sopenharmony_ci    cat /proc/pt_drv/device0/button0
179141cc406Sopenharmony_ci
180141cc406Sopenharmony_ci
181141cc406Sopenharmony_ciQ:  Is it possible to use the scanner in gimp ?
182141cc406Sopenharmony_ci
183141cc406Sopenharmony_ciA:  You should be able to use xscanimage with gimp:
184141cc406Sopenharmony_ci    1. Login as root
185141cc406Sopenharmony_ci    2. Go into the gimp plug-in directory
186141cc406Sopenharmony_ci       (on SuSE it is: /usr/lib/gimp/1.1/plug-ins/ )
187141cc406Sopenharmony_ci    3. Find xscanimage : which xscanimage
188141cc406Sopenharmony_ci    4. Create a symbolic link to xscanimage :
189141cc406Sopenharmony_ci       ln -s "/path/to/"xscanimage  xscanimage
190141cc406Sopenharmony_ci    5. logout as root
191141cc406Sopenharmony_ci    Now call gimp, in the xtns menu you should find
192141cc406Sopenharmony_ci    now the Acquire Image menu entry. That's all.
193141cc406Sopenharmony_ci    If not, start gimp from an xterm and have a look at the output.
194141cc406Sopenharmony_ci
195141cc406Sopenharmony_ciQ:  I wonder if Mandrake 7.1's sane rpm file has this support already built in.
196141cc406Sopenharmony_ci    My scanner light is coming on yet Xscanimage seems to report that there
197141cc406Sopenharmony_ci    is no scanner present.
198141cc406Sopenharmony_ci
199141cc406Sopenharmony_ciA:  The backend code will be included in Version 1.0.3 of sane and
200141cc406Sopenharmony_ci    AFAIK Mandrake 7.1 only includes 1.0.2.
201141cc406Sopenharmony_ci    Anyway go to the plustek-driver download page at
202141cc406Sopenharmony_ci    http://home.t-online.de/home/g-jaeger/plustek.html
203141cc406Sopenharmony_ci    download and install the driver.
204141cc406Sopenharmony_ci
205141cc406Sopenharmony_ci
206141cc406Sopenharmony_ciQ:  Mandrake installs sane by default at install-time.
207141cc406Sopenharmony_ci    Is there a way to install the driver with the preinstalled sane
208141cc406Sopenharmony_ci    or should the preinstalled sane be removed first?
209141cc406Sopenharmony_ci    If so, how do I remove the preinstalled sane?
210141cc406Sopenharmony_ci
211141cc406Sopenharmony_ciA:  I recommend to uninstall the previous one.
212141cc406Sopenharmony_ci    I think Mandrake uses RPM for managing the packages. To remove sane
213141cc406Sopenharmony_ci    do the following (as root)
214141cc406Sopenharmony_ci
215141cc406Sopenharmony_ci    Ask for all installed packages and filter sane:
216141cc406Sopenharmony_ci    rpm -qa | grep sane
217141cc406Sopenharmony_ci    you should get something like this:
218141cc406Sopenharmony_ci    sane-1.0.1-94
219141cc406Sopenharmony_ci    Now remove this package:
220141cc406Sopenharmony_ci
221141cc406Sopenharmony_ci    rpm -e sane-1.0.1-94
222141cc406Sopenharmony_ci
223141cc406Sopenharmony_ci    After these steps, sane should be removed.
224141cc406Sopenharmony_ci    I'm not sure,  but you might have to remove the /etc/sane.d manually...
225141cc406Sopenharmony_ci    Now got to your sane-1.0.3 stuff and reinstall this
226141cc406Sopenharmony_ci    as described. Before using, you might have a look
227141cc406Sopenharmony_ci    at the dll.conf and enable only the plustek backend.
228141cc406Sopenharmony_ci
229141cc406Sopenharmony_ci
230141cc406Sopenharmony_ciQ:  Now that there's a sane 1.0.3, how do i uninstall sane 1.0.2?
231141cc406Sopenharmony_ci    Or can i install it over?
232141cc406Sopenharmony_ci
233141cc406Sopenharmony_ciA:  In general you can install it over. BUT this has caused
234141cc406Sopenharmony_ci    quite a lot of trouble, so I recommend to remove the 1.0.2
235141cc406Sopenharmony_ci    completely and install 1.0.3...
236141cc406Sopenharmony_ci
237141cc406Sopenharmony_ci    try the rpm-tool:
238141cc406Sopenharmony_ci    Get a list of the installed packages and filter out sane:
239141cc406Sopenharmony_ci
240141cc406Sopenharmony_ci    rpm -qa | grep sane
241141cc406Sopenharmony_ci
242141cc406Sopenharmony_ci    You should get something like:
243141cc406Sopenharmony_ci
244141cc406Sopenharmony_ci    sane-1.0.2-48
245141cc406Sopenharmony_ci
246141cc406Sopenharmony_ci    Then use rpm to remove sane:
247141cc406Sopenharmony_ci
248141cc406Sopenharmony_ci    rpm -e sane-1.0.2-48
249141cc406Sopenharmony_ci
250141cc406Sopenharmony_ci    The other way is:
251141cc406Sopenharmony_ci
252141cc406Sopenharmony_ci    rm -rf /etc/sane.d
253141cc406Sopenharmony_ci    rm -rf /usr/lib/sane
254141cc406Sopenharmony_ci    rm -rf /usr/lib/libsane*
255141cc406Sopenharmony_ci    rm -rf /usr/include/sane
256141cc406Sopenharmony_ci    rm -rf /usr/etc/sane.d
257141cc406Sopenharmony_ci    rm -rf /usr/share/sane*
258141cc406Sopenharmony_ci    rm -rf /usr/local/lib/sane
259141cc406Sopenharmony_ci    rm -rf /usr/local/lib/libsane*
260141cc406Sopenharmony_ci    rm -rf /usr/local/include/sane
261141cc406Sopenharmony_ci    rm -rf /usr/local/etc/sane.d
262141cc406Sopenharmony_ci    rm -rf /usr/local/share/sane*
263141cc406Sopenharmony_ci
264141cc406Sopenharmony_ci    This should cover all the directories where maybe some
265141cc406Sopenharmony_ci    sane files are installed...
266