On Tue, 2001-11-20 at 19:11, Jochen Eisinger wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi! > > Jim George wrote: > > | Something has gone wrong now. When I issue the command scanimage > > | out.pnm, as myself or root on the server, it scans but then stops with > | no error messages at all. The only way I can kill I can return to the > | prompt is with kill -9. > > Please do this with SANE_DEBUG_MUSTEK_PP=128... and does out.pnm contain > any data? > > > regards > - -- jochen <snip> Jochen, and anyone else who wants to chip in here...I hope the following makes sense and helps in the resolution of this problem.
When I sun scanimage > out.pnm it appears to work at first then issues the following screen output Missed a bink: got 3 [0xFF (255) 11111111], wanted 1, waited 700 msec Missed a bink: got 3 [0xFF (255) 11111111], wanted 0, waited 700 msec Missed a bink: got 3 [0xFF (255) 11111111], wanted 0, waited 700 msec I leave it a while longer (minutes) then I couldn't resist lifting the lid (I know I shouldn't) and see that the lamp is stationary about 1 inch from the home position. When I break out of the scan (using CTRL-C) I get the following output scanimage: stopping scanner...(sig 2) scanimage: sane_read: Operation was cancelled I can then reset the scanner by issuing a scanimage --test command. the output file out.pnm is 9709605 bytes long! I'm afraid I have no where to 'publish' it on the web, so write to me separately if you want me to send it to you. When I try to load it in gimp I get 'premature end of file'. I have just tried scanning as root using gim (and again using xscanimage on it's own) which obviously invokes xscanimage. I have noticed that the Geometry is set as follows; Top-left x 0cm Top-left y 0cm Bottom-right x 21.7cm Bottom-right y 29.6cm It appears to make no difference whether I'm root, local, or remote, nor which device I choose to use (net:linux, net:localhost, or mustek:1200CP). The page I'm scanning has a actual left-hand margin of 2.9cms, however xscanimage reports this as 5.1cms (i.e. the first text appears at the grid mark equivalent to 5.1cms). The furthest I get to the right-hand side of the page is approximately 11.5cms (of actual paper, including the left-hand margin), and yet xscanimage reports this as 21.7cms (according to the grid at the top of the page). In reality I'm missing the last 9-10cms of my page (horizontally). The top and bottom margins are correct! Here's the output from the above command run as a normal user (i.e. me) [sanei_debug] Setting debug level of mustek_pp to 128. [mustek_pp] init: SANE v1.0.5, backend v1.0.9-devel [mustek_pp] I wouldn't let myself be root if I were you... [mustek_pp] init: option io-mode 2 [mustek_pp] init: option niceload [mustek_pp] init: trying port `0x378' [mustek_pp] attach: couldn't attach to `0x378' (Invalid argument) [mustek_pp] attach(v1.0.9-devel): line 435: debug exception [mustek_pp] init: couldn't attach to port `0x378' [mustek_pp] init: 'name' only allowed after 'port' [mustek_pp] init: 'vendor' only allowed after 'port' [mustek_pp] init: option cis1200 isn't a global option [mustek_pp] init: option strip-height 16 [mustek_pp] init: setting global option strip-height to 16 [mustek_pp] init: option buffer 122400 [mustek_pp] init: setting global option buffer to 122400 [mustek_pp] exit: (...) device `net:localhost:mustek_pp:1200CP' is a Mustek Mustek 600/1200CP flatbed scanner device `net:linux:mustek_pp:1200CP' is a Mustek Mustek 600/1200CP flatbed scanner And here it is when I run the command as root [sanei_debug] Setting debug level of mustek_pp to 128. [mustek_pp] init: SANE v1.0.5, backend v1.0.9-devel [mustek_pp] I wouldn't let myself be root if I were you... [mustek_pp] init: option io-mode 2 [mustek_pp] init: option niceload [mustek_pp] init: trying port `0x378' [mustek_pp] attach: couldn't attach to `0x378' (Invalid argument) [mustek_pp] attach(v1.0.9-devel): line 435: debug exception [mustek_pp] init: couldn't attach to port `0x378' [mustek_pp] init: 'name' only allowed after 'port' [mustek_pp] init: 'vendor' only allowed after 'port' [mustek_pp] init: option cis1200 isn't a global option [mustek_pp] init: option strip-height 16 [mustek_pp] init: setting global option strip-height to 16 [mustek_pp] init: option buffer 122400 [mustek_pp] init: setting global option buffer to 122400 [mustek_pp] exit: (...) device `mustek_pp:1200CP' is a Mustek Mustek 600/1200CP flatbed scanner device `net:localhost:mustek_pp:1200CP' Mustek Mustek 600/1200CP is a flatbed scanner device `net:linux:mustek_pp:1200CP' Mustek Mustek 600/1200CP is a flatbed scanner Kind Regards, Jim