From aneeshmraj@hotmail.com Tue Jul 1 06:17:27 2003 From: aneeshmraj@hotmail.com (aneesh m raj) Date: Tue, 1 Jul 2003 10:47:27 +0530 Subject: [sane-devel] program to convert SANE format to JPEG Message-ID: This is a multi-part message in MIME format. ------=_NextPart_000_006F_01C33FBE.29D2E8D0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello all, Is there a program to convert SANE image format to JPEG. Thanks=20 Aneesh ------=_NextPart_000_006F_01C33FBE.29D2E8D0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hello all,
Is there a program to convert SANE = image format to=20 JPEG.
Thanks
Aneesh
------=_NextPart_000_006F_01C33FBE.29D2E8D0-- From kouno.hironori@pfu.fujitsu.com Tue Jul 1 06:43:55 2003 From: kouno.hironori@pfu.fujitsu.com (hironori kohno) Date: Tue, 1 Jul 2003 14:43:55 +0900 Subject: [sane-devel] About the trouble about the operativity of kooka Message-ID: <200307011443.GEC64471.PJ.OSPLIPVPOSJ@pfu.fujitsu.com> Hi, i am using Kooka in the kde environment. However, although "adf" and "fb" are displayed on the setting screen of source, it is surely reset by setup of "adf". Although I want to also confirm a setup of "fb", what should it carry out? The environment of operation is as follows: backend : sane-fujitsu (cvs+patch version), Kooka : Ver0.35, KDE : Ver3.0.0-10, RedHat Linux : Ver7.3 . Bye, Kouno. -- kouno.hironori@pfu.fujitsu.com -- kouno.hironori@pfu.fujitsu.com From ukd@xenon.pc.Uni-Koeln.DE Tue Jul 1 07:17:21 2003 From: ukd@xenon.pc.Uni-Koeln.DE (Ulrich Deiters) Date: Tue, 1 Jul 2003 08:17:21 +0200 (METDST) Subject: [sane-devel] program to convert SANE format to JPEG Message-ID: <200307010617.IAA03045@xenon.pc.Uni-Koeln.DE> xsane can produce JPEG directly. scanimage produces PNM formats (PPM for colour pictures). You can convert PPM to JPEG with - cjpeg (part of the PBMPLUS package) - xv - ImageMagick - ... and of course some picture manipulation programs like the GIMP or Pixel!FX Regards, Ulrich Deiters From tobi@casino.uni-stuttgart.de Tue Jul 1 09:16:52 2003 From: tobi@casino.uni-stuttgart.de (Tobias Ernst) Date: Tue, 1 Jul 2003 10:16:52 +0200 Subject: [sane-devel] canon lide 20 + mac os x + usb Message-ID: <5EED34F0-AB9C-11D7-8BF1-0003931DA274@casino.uni-stuttgart.de> --Apple-Mail-1--716682281 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed Hi! I have a Canon Lide 20 scanner and want to make it work on Mac OS X 10.1.5, because of some limitations in the Canon-supplied OSX drivers. I have read (on www.mostang.com) that the color quality with Sane and that scanner is "poor", but that's OK, I only need Sane for commandline-driven batch scans in b&w. I have compiled and installed libusb from CVS (28 June 2003), and after no success with the release version of sane I also installed sane from CVS (30 June 2003). sane-find-scanner does find the scanner: found USB scanner (vendor=0x04a9, product=0x220d) at libusb:001:002 I then made sure plustek is in dll.conf and (after no success with the standard plustek.conf) adjusted plustek.conf as follows [usb] 0x04A9 0x220D scanimage does not find the scanner in default settings: $ scanimage -L No scanners were identified. If you were expecting something different, however as soon as I enable debugging to find out why, it DOES find the scanner: $ SANE_DEBUG_SANEI_USB=5 scanimage -L 2>/dev/null device `plustek:libusb:001:002' is a Canon N670U/N676U/LiDE20 USB flatbed scanner Further analysis reveals that SANE_DEBUG_SANEI_USB is the "culprit". As soon as it is set to 5 or any higher value, the scanner is found, while as long as it is 4 or lower, the scanner is not found. SANE_DEBUG and other environment variables do not matter. To me, this looks like a buffer overflow or a timing issue in sanei_usb. I decided to continue anyway, but with no success: $ SANE_DEBUG_SANEI_USB=255 SANE_DEBUG=255 SANE_DEBUG_PLUSTEK=255 scanimage 2>lide20-osx.log P6 # SANE data follows 248 150 255 After that, the process stops. I.e., the plustek backend gets loaded and starts to do something, but fails as soon as actual data should be transferred. I am attaching lide20-osx.log, maybe someone can make some sense out of it. BTW, I was using gcc 3.1, as compilation with gcc 2.97 did not succeed: $ gcc3 -v Reading specs from /usr/libexec/gcc/darwin/ppc/3.1/specs Thread model: posix Apple Computer, Inc. GCC version 1041, based on gcc version 3.1 20020105 (experimental) If necessary, shell access for a trusted developer could be arranged. Thanks a lot, and best regards, Tobias. -- Dipl. Phys. Tobias Ernst University of Stuttgart - Casino IT Faculty for Architecture and Urban Planning --Apple-Mail-1--716682281 Content-Disposition: attachment; filename=lide20-osx.log.gz Content-Transfer-Encoding: base64 Content-Type: application/x-gzip; x-unix-mode=0644; name="lide20-osx.log.gz" H4sICKVBAT8AA2xpZGUyMC1vc3gubG9nAO1dbXPaSBL+7l8x++lwCoheAAO7+MoBO8udHXuDs9lU aosdpBHoIiROEn65X389MxJISLKxw8YYmiKOpOlptabneeZFM/TXgLrMHppsNB//SQYsDG13TMQp cdgNc4hnkZkzD0L2jYQe0er16sHXdTJJmXkwWmSD42HAQpmvnc435kcyrxQnJc89FFm8YGjZrjkc zYOABW1y5s1dkyiK+mCqlko12Y1tpDITz83oyEhpK1LejLltotRoq61pipm+LHMTfsJkkuG5oe85 w2kAj6tqTdIgdVUjClHuRpZlsZraJE2iKorymHizabQUoreWwnBbw/ECVmiOUqdGu6ko9YNPg3eE +b7nt0lK4sT1wgnzycz34KkDQh2fUfOeTGhA2J0BTrdvGKGGSASvgHD0kNW1Clf7kQZ9XdS3P5dV b2i7drjwjHLHTXgLpQlGEDsgcDsChW7Z47kPLntIhSUezbFHvEJH+kqgEMoeFPLSPyS2GzLfovxO hNAwkm5DebR5YfwQC9VIVXDwNULtn+Qqgu+IGt8YyPyuVGv1SqNMZtQPY6hWotSAqFWlqmoV4yap 4/iruCl/4pMWEU/c+yWR7rK7MH4KsJsS7uNkOZ20KjLX4QO53ES25M1/WeuEhiE1JqRE56FXjjFm Wgo/VpK37ck7xgVLQ9tz24n0yCKXThkhbXLMFSZvNPP8MLyfQSLh6WoiCeyv9HuEREnHqUdP6ril /nQ+WwhW1GRpO3Q6u7SsZWI27dI9BVeupAXf7FmXQr3zqzyfspJ0ZruxzXlJnyd2yNJJtnvD/PAD GwcZhTOA7R1ZPMBq0n1xUjChJtD98H7FepeNizTypAKNPKlIYzijRRp5UoFGnlSkEVBIxtR28zwz 9hlz49SVtJEzZ4uMOTrf0+mURtWpqigZrVF6JlXojTPn5KX3xamVvE8SBv4N5+VSEjrAAoAewdcS Z6vYzmWodDNxAzTj+R3JnmXO9ubcCDuSRssRjOFUrR/prJm4uWxfInQCwR6nGfaXgrvLxiX073kf A5oNfh5r+Sut4h/PbOl5tyZNJ8SgjgOOtTw/IhrgiX6ihQDeXTIflMWB4VB7Olw0Im3ywUs0KYLe fyYBc5ghuk2p22UzR7p506k+JptKJjeU1ykwSs1KPvAAqq7r62awfG9Kfpsz/36ZLpQ0abMRdYYy Ri7LM9HQ7naRNpUNFGmzTpUHkSF7DuIO81lYAY4CgM48uABtqWn6vLelFkE7qWI0d77lZ9fWzu7N w5z8+sP5JRJJom+2imtSemO6HaVIzRjwK2lpGNHRsk8WE1a/1yYrnCUvCYJYstTvQpr0ex3JjWVy JaXlJc6TaUK1vWGPhVAHzy9aTf2uwMRbH1rnIS+jJJeJq6RORvch7/MlcsJAAUxXYPRwJP6q/O+j n+rK56DriS4Avx2bkdgfcOeZPWMfmVU9YLNh6A2j0za5ggOitkmv/xFaHOLOpyPm805SnpyWkdNy 5fRITlnI6aty0YEgiISl4ANd1i/hPV2QCy9FWaDtRWXrCMnA/h/r1Mn1ZUfnBXggy9fwpjMHXFTU A0/65pYCkMzYJWXwkFfgoU34thn7VkPfvj7f1op9qy5xu84HfQu+rW3At7W0b/M8tMzPpycyruUX oWBkvoXV/Go7fkDS4Q2z9vJOKiz8ppYofC3zGMuyB0FR9ioJ7SmD1hscUFXEJ2BGPms96ZOp2Y+6 IvKkGnty7IULf2wao03EKGJ09zC6Rm/i1WC00XoKRm3EKGL0VWC09qIYfWAAG4/nxZn2VscB7UsD eqsGPev5VlvTtwR9++p8i7h9jb7FyQrsZO1dJ2unJisQo4hRxOhLYxT7SLvbR8Kxzb77FnH7Gn2L /SbsN2G/6Yk1e0MTyNFqbJMFhm/PxHo5XgorS6dlKVTTE89i6TvkL+nNcrQ0K2+h9+eTM1F8/KMq jexaLWr+h18wweNtctylrucWLSZ9NotoT3oNdYgsgiyCLLI+i5yfXFxVBtcn158GC6wrqeXuH08H p9fX/Q/v4eh9f3B9+nFQSrHFRX/QJf23l4RaIfOlPNfVaPAdJKr421Kx5/jSvIA9x931LXI+cj7O uG03Rv9O/k317gcsHBjUvaI+nYJ6PygV7d9AhkaGRoZGhkaM/jiGfkN+7V3126RWTY+z3pA/4HpH rStlIdHJCnxZCFzYLhx/6RzVUwI9GtIr+445g5D6IaSWybntslPXfEyykZBskNJJ71/JId7xMYGU ipRN2pfSeTZ3HDII2UzUk8E3e8Z3G4tMglSU1efhsgMo+NIVuIyFhyClaqr44QPlqHWYloUWjW9m NeaO2BwaCLglBLj558wdh5NOQ2kq8nk+0pB1PcfzO3rmztzlcMf6kcpHqLUGrwgaPzqCI32ULq6r HumojZpS49bVFLV2mJPe1BvC+CPNOCwTSJtF9Yrfgp8Gms9uOo20LY7D3MhkJ21ymfw3NKCGNstk YomDlZb+PQsvuuf/7tk3tsn8UtomvqF1HO2kvQb+Iydiuo67gpSWNawsNMjjlSKPfmnmPd9Kf/X5 ojcP77v3hsN+tceTlGR37vvMDQlXRSJr4D61amY24Q25uLy+/FiJdAeA888XvOThGeFo2Pt0/YXv YbfSNessripcqwayX8ELzT9ltVLlaUueUiOV9Wpy/44jEDiuQxqrSbyOyKRaKunaC6kj83XIkZbO dt7RWoAsw2OWJfyr8UmOAConW61nV3QesHN7avNi16SdLG22FZ9umv/VeJMNHCD/vzT/4ztx9C2O rXBstbdjq3WY6qGqvVVjKzV+K6k0EKOvj38bDxCwFu1O1rvcuWpXuLtOal2inQmny2+NKHUuAP78 hTv1/G1ONeXvzdsxoctvPT5Qlxdr74h6RN6diONusr78m2teUanJKgiCaj2h+MFv9fwBMCmKHvUq nvLFWg21urGJpqex0vbk1s5NVOxaLa7Y4EGdX9Hf8Yp40k07V+Xfak9U7J8Lqgyv2PoZOevy6q1J BWccOuoZB0cDoNMgLTVVz/9ZrZaFLitXpbaJWogVeycrNs507m5rjKMhHA3t22hoW9Z/FbwvJqbn Fv469LN5ur742bU1foSh+gdi+TXxtIY8jTy9czzd0J/G08ZmeRoxihhFjCJGEaOIUcToZsY7PBDD mIVdOgvyYjRA0jlzg75reank24uTPzqthqKUyeerX7/wM1VLrW3hgyiX8d/Zh4KdZsKjRJvm2kRs lEtuoPFM5vBAEx8aR8qnt/C38entud071ZLaTwLbICLmxl0tuSDlzKHjQF4X5a+t7NTzAxFXIXdv j+nfiGhIeeUQhN6MP1FpCuZ1lBwJnnrqmiWx1ilaGTaj/rdO0e/m4yQQkiKS4tZMAuEkPE7uIP8i /yL/vgz/rvanFl2xXK1R2Er+nwz/KcPsFEa1XA3w1yZT0c/skONsPzMZYo/fUkT2iSKP8SXtPCag pfOdB6mOoBAVccEqmbCNyziKYnG/XEkuYqqFdORwtXzde01pNZIac4OrFUVaE7cXXc8nhF9L27le IDYMhfaD4naNvj9u18jCUGjLImWbCIU2YurfHgrtliXi1vJwtVxdriZoRbQWjDntsev5ApATRlx2 SzyXrWElJ+ZnRVvLWlioCkzUle808VkR3QpszNUFHaDnmIhB43AQtKuDIAwat7u+xQEuDnBxgPvE mr1Vb0YxaBxidAcxikHjEKOI0e3GKAaNwwHtaxz04I9I7LtvEbev0bc4WYGdrL3rZO3UZAViFDGK GH1pjGIfaXf7SDi22XffIm5fo2+x34T9Juw3PbFmb2gCebNB41QMGocsgiyydyzyvKBxhQuAnwlz ndQlzNfbWlz9gjDfJpjr+wZzfe298vFvZ675sZ4Lcz0Jcz0Dcwzs+DpAjaO73fXtFhE29su2tF+G /Lu7/IuBHbfd+8jQyNDI0NuNUQzsiIEdMbDjngZ2VJvKQ8Ed61ptYwEeea5EiMcWhnjcp5YAV7Cg b3GUhaOsvR1lYYjHvcboVvEvhnhMq8RIeDsSCW8jIR5bGOIRK/aWVWyc89zd1hhHQzga2rfR0Las 1ix4c4whHrcDy6+IpzE0FfL07vE0ho9DjCJGEaOIUcQoYvTVYvSHhHgMYBDFw+iAn/X8W/reLKM3 WtHTn9IxyyReXZ3zpSO15BKg86sTvmSqnrz1OyF3VEuuZRn59ngSAggNzw19GsBhTiBHOfY7dW8y Rg3oDcu3yrzlcSUXq7sUQ1HWfiCf3djsVoS1JB8urwkY8FMykKVYrdTtD87pFPzzrG2BauOhSfBo rlq+1zkiyinpNePjLjmtxccnpNkl0Xz1fhMslOf3M2zslJhil05ahkiNVp5N6eyrwiNTyfplqUqz WSCmJsTqxWJaQqyVFotxwNcrioim6dVwctWmquUv21ys2swREMs2+VrM5KrNzfYVcCc79hV2sK+w LXOjj+9kH9zaoTHhzuHNFeGBm5/eWrUebK1a8ZtVbfmGsqjZykA8+8p20bI9t2xfvEK+RAPY2kQD 2FppAFuZCveZ+tP5rMKXbfsyavZaN8A2A9uMvW8zXjZQxiNthpqUgJZiAXFvNmNmamRlxSOrGs8I f+Ca2I5wxXy+b0EO88pwVexigKtij8zqgPC6f3FKwI6P17khUcX7vUQKf04waOZ7BniqmtpkI9OG UdqSlwoE2kIgqrUfT096xKQhJSVVVWHwLAss2cceza1oJKlqR8rqSJL3zWHMOKM+i3vnr3q+DVzF fB9w4RkG3z5jknE0TuEixIbxsj+Vu3fgK65lYHjikrn7zfVuU7rWoyNRIBa1HWaKcKXB3JgQC04J 6DFtnxmh598ffBq8k7rbYjhvOIz6wwl1wnZ0S3FlYTa43HESjvvUv5RyK9MCPa9LHXsktyelRlqA JjBmQk2h0wtsEfc00dOSSZe+PbbdLx1942OpH7zOZH/rwYC5gedXYh+LSSBgEGOS4hRjWU8iM3/6 6acVzokS+CY7Gs75fq1KCxizzG/pekQr5DfBfolsrYRkd2I7Jg9ta/JyLQX22KVOR8tGthYWVKQh SqYdMP2bRcTuNCmffujxtlbJmZXk7YFgOT6L2FFyJiflXJ1ZEhsN+bZMtUyAG791nrN7bJvwgP1E 7CfuwdwCrnvF9VTIv8i/yL+7wL+4nnWH+RfX4SD/7h7/4lo5xChiFDGKGEWMIkZfLUZX54UXc825 WkVqm/D/uJNMGYxFEeXhBXEyj9rS1jQl/Wov6GhHNb0ez5Z3ND31g2lyuvzz6R/9a/nWc2U6XegW njrgy2Ntvii0vZxAb5NT8RrBnPsJy/pvL1dn24We1Yvszg5T74jmoZi1N6jjQNGVQF3l2DI7FZX/ yN4IHretKCr804pKypsxN4kCfh5b9VdaxT/i4pN5lqWXuhzl5SdMJgUsHBqea9njuXy/0Y7t5dVX pgAU+O/4+RblfiKeFeuxBaUcGA61p0M7FhFvcBZnssr/TALmMEOgMnW7bOZI94QGUMEekU0lkxvq zIVRalbygQdQmTJaN4Ple1Py25z598t0oaRpqKaswlkjl+W5LBVlp4tUU6Fx+f4iVQzlQWSIcpDl Mp+FFdtdkCgpxbRbuGZbqrhlhDoc+/dQPDdwwtXlauLrbluHZWKPXU/QQzhhxGW3RKxdeNRKTqP5 Fj4C/6yFharARF35ThOhtcmxUX+Wjbm6oLvyHBMlZ/EWpogBSemN6abfU36mtsAHxx4nfJf5FWFm cZuHU+TYtcSu5Y5OkeMryq2fIn/+6CBnKeP/Aaw9ld/8EgEA --Apple-Mail-1--716682281-- From henning@meier-geinitz.de Tue Jul 1 09:38:30 2003 From: henning@meier-geinitz.de (Henning Meier-Geinitz) Date: Tue, 1 Jul 2003 10:38:30 +0200 Subject: [sane-devel] About the trouble about the operativity of kooka In-Reply-To: <200307011443.GEC64471.PJ.OSPLIPVPOSJ@pfu.fujitsu.com> References: <200307011443.GEC64471.PJ.OSPLIPVPOSJ@pfu.fujitsu.com> Message-ID: <20030701083830.GA3290@meier-geinitz.de> Hi, On Tue, Jul 01, 2003 at 02:43:55PM +0900, hironori kohno wrote: > i am using Kooka in the kde environment. > However, although "adf" and "fb" are > displayed on the setting screen of source, > it is surely reset by setup of "adf". > > Although I want to also confirm a setup of "fb", > what should it carry out? Does this happen with other fronetnds (xsane, xscanimage) also? If yes, it's probably a problem with the fujitsu backend. If no, you'd better contact the kooka authors. Well, maybe they are subscribed to sane-devel but at least I don't remember having heard from them on this list. Bye, Henning From henning@meier-geinitz.de Tue Jul 1 09:53:15 2003 From: henning@meier-geinitz.de (Henning Meier-Geinitz) Date: Tue, 1 Jul 2003 10:53:15 +0200 Subject: [sane-devel] canon lide 20 + mac os x + usb In-Reply-To: <5EED34F0-AB9C-11D7-8BF1-0003931DA274@casino.uni-stuttgart.de> References: <5EED34F0-AB9C-11D7-8BF1-0003931DA274@casino.uni-stuttgart.de> Message-ID: <20030701085315.GB3290@meier-geinitz.de> Hi, On Tue, Jul 01, 2003 at 10:16:52AM +0200, Tobias Ernst wrote: > I have compiled and installed libusb from CVS (28 June 2003), and after no > success with the release version of sane I also installed sane from CVS > (30 June 2003). > > sane-find-scanner does find the scanner: > > found USB scanner (vendor=0x04a9, product=0x220d) at libusb:001:002 sane-find-scanner also uses libusb. > however as soon as I enable debugging to find out why, it DOES find the > scanner: > > $ SANE_DEBUG_SANEI_USB=5 scanimage -L 2>/dev/null > device `plustek:libusb:001:002' is a Canon N670U/N676U/LiDE20 USB > flatbed scanner > > Further analysis reveals that SANE_DEBUG_SANEI_USB is the "culprit". As > soon as it is set to 5 or any higher value, the scanner is found, while as > long as it is 4 or lower, the scanner is not found. SANE_DEBUG and other > environment variables do not matter. > > To me, this looks like a buffer overflow or a timing issue in sanei_usb. If it's really the change from 4 to 5 I'd rather suspect the following line in sanei_usb.c: if (DBG_LEVEL > 4) usb_set_debug (255); Try to comment out the if clause so usb_set_debug is always called. Does it work without debugging in that case? If yes, I'd rather suspect a problem in libusb. I haven't heard about similar problems on MacOS X, however. > I decided to continue anyway, but with no success: > > $ SANE_DEBUG_SANEI_USB=255 SANE_DEBUG=255 SANE_DEBUG_PLUSTEK=255 > scanimage 2>lide20-osx.log > P6 > # SANE data follows > 248 150 > 255 > > After that, the process stops. I.e., the plustek backend gets loaded and > starts to do something, but fails as soon as actual data should be > transferred. > > I am attaching lide20-osx.log, maybe someone can make some sense out of it. [plustek] reader_process started [plustek] reader_process:starting to READ data (111600 bytes) [...] [sanei_usb] sanei_usb_write_bulk: trying to write 4 bytes [sanei_usb] 0000: 01 02 00 01 ................ Converting ep address to pipeRef. ep_to_pipeRef: an error occurred getting pipe information on pipe 1 ep_to_pipeRef: An unknown error occured [sanei_usb] sanei_usb_write_bulk: write failed: No such file or directory USB error: usb_clear_halt: error clearing pipe stall The plustek backend uses fork() to create its reader process. That doesn't work on MacOS X. To be exact, it's not possible to access the already open USB device from the child process. This can only be fixed when MacOS X starts to use file descriptors for accessing USB devives. Maybe it'd also work if SANE on MacOS X therads were used instead of a new process? Check the archive of sane-devel for discussions on this topic. Bye, Henning From freitag@suse.de Tue Jul 1 10:01:01 2003 From: freitag@suse.de (Klaas Freitag) Date: Tue, 1 Jul 2003 11:01:01 +0200 Subject: [sane-devel] About the trouble about the operativity of kooka In-Reply-To: <20030701083830.GA3290@meier-geinitz.de> References: <200307011443.GEC64471.PJ.OSPLIPVPOSJ@pfu.fujitsu.com> <20030701083830.GA3290@meier-geinitz.de> Message-ID: <200307011101.01270.freitag@suse.de> On Tuesday 01 July 2003 10:38, Henning Meier-Geinitz wrote: > Hi, > > On Tue, Jul 01, 2003 at 02:43:55PM +0900, hironori kohno wrote: > > i am using Kooka in the kde environment. > > However, although "adf" and "fb" are > > displayed on the setting screen of source, > > it is surely reset by setup of "adf". > > > > Although I want to also confirm a setup of "fb", > > what should it carry out? > > Does this happen with other fronetnds (xsane, xscanimage) also? If > yes, it's probably a problem with the fujitsu backend. Well, the ADF support in Kooka is still very buggy. That is mainly because I do not have a Scanner with ADF support. Sorry. If you could try to describe the problem more in detail, I can try to help you. Please consider to update Kooka, 0.35 is quite outdated, you should try to update to version 0.40 (although that does not solve the ADF-problem probably, but some others). > > If no, you'd better contact the kooka authors. Well, unfortunately there is only one: me ;-). Volunteers are welcome :-) > Well, maybe they are > subscribed to sane-devel but at least I don't remember having heard > from them on this list. Oh, yes, I am subscribed, but not to busy on the list, I admit. Unfortunately I do not have too much time for Kooka and scanner related things. But I am trying hard to do my best ;-) Regards, Klaas -- Klaas Freitag Internal Tools - SuSE Linux AG From kouno.hironori@pfu.fujitsu.com Tue Jul 1 11:14:49 2003 From: kouno.hironori@pfu.fujitsu.com (hironori kohno) Date: Tue, 1 Jul 2003 19:14:49 +0900 Subject: [sane-devel] About the trouble about the operativity of kooka In-Reply-To: <20030701083830.GA3290@meier-geinitz.de> References: <200307011443.GEC64471.PJ.OSPLIPVPOSJ@pfu.fujitsu.com> <20030701083830.GA3290@meier-geinitz.de> Message-ID: <200307011914.CJH55768.OSPLSPPJJ.IOPV@pfu.fujitsu.com> <20030701083830.GA3290@meier-geinitz.de> $B$N!"(B "Re: [sane-devel] About the trouble about the operativity of kooka" $B$K$*$$$F!"(B "Henning Meier-Geinitz "$B$5$s$O=q$-(B $B$^$7$?!'(B > Hi, > > On Tue, Jul 01, 2003 at 02:43:55PM +0900, hironori kohno wrote: > > i am using Kooka in the kde environment. > > However, although "adf" and "fb" are > > displayed on the setting screen of source, > > it is surely reset by setup of "adf". > > > > Although I want to also confirm a setup of "fb", > > what should it carry out? > > Does this happen with other fronetnds (xsane, xscanimage) also? If > yes, it's probably a problem with the fujitsu backend. i am sorry. i do not have any scanners other than fujitsu-scanner. > > If no, you'd better contact the kooka authors. Mail was sent to support of kooka. However, the reply does not exist. >Well, maybe they are > subscribed to sane-devel but at least I don't remember having heard > from them on this list. i appreciate your advice. Probably, it may be the problem of sane-fujitsu. Thanks. > > Bye, > Henning > _______________________________________________ > Sane-devel mailing list > Sane-devel@www.mostang.com > http://www.mostang.com/mailman/listinfo/sane-devel > -- kouno.hironori@pfu.fujitsu.com -- kouno.hironori@pfu.fujitsu.com From a.deuring@satzbau-gmbh.de Tue Jul 1 11:26:25 2003 From: a.deuring@satzbau-gmbh.de (abel deuring) Date: Tue, 01 Jul 2003 12:26:25 +0200 Subject: [sane-devel] program to convert SANE format to JPEG References: Message-ID: <3F0161D1.3EFD95B1@satzbau-gmbh.de> > aneesh m raj wrote: > > Hello all, > Is there a program to convert SANE image format to JPEG. Sane uses its own format only for internal purposes. All frontends I know save the scan data in well known formats like PNM, TIFF, JPEG etc. If you need to convert PNM files, e.g. produced by scanimage or xscanimage, you can do this with Imagemagick (programs convert and mogrify) or with the PNM tools. There exist probably far more conversion tolls for the Unix world ;) If you want to write your own frontend, have a look at the graphics libraries distributed with every Linux distribution (and probably also with other free OSes like FreddBSD and friends) Abel From khk@khk.net Tue Jul 1 11:56:19 2003 From: khk@khk.net (Karl Heinz Kremer) Date: Tue, 1 Jul 2003 06:56:19 -0400 Subject: [sane-devel] About the trouble about the operativity of kooka In-Reply-To: <200307011914.CJH55768.OSPLSPPJJ.IOPV@pfu.fujitsu.com> Message-ID: On Tuesday, July 1, 2003, at 06:14 AM, hironori kohno wrote: > <20030701083830.GA3290@meier-geinitz.de> $B$N!"(B > "Re: [sane-devel] About the trouble about the operativity of > kooka" $B$K$*$$$F!"(B > "Henning Meier-Geinitz "$B$5$s$O=q$-(B > $B$^$7$?!'(B > > >> Hi, >> >> On Tue, Jul 01, 2003 at 02:43:55PM +0900, hironori kohno wrote: >>> i am using Kooka in the kde environment. >>> However, although "adf" and "fb" are >>> displayed on the setting screen of source, >>> it is surely reset by setup of "adf". >>> >>> Although I want to also confirm a setup of "fb", >>> what should it carry out? >> >> Does this happen with other fronetnds (xsane, xscanimage) also? If >> yes, it's probably a problem with the fujitsu backend. > > i am sorry. > i do not have any scanners other than fujitsu-scanner. > Henning did not ask you to test with another backend (which is scanner related), but with a different frontend (e.g. xsane, xscanimage, quiteinsane, ...) Kooka is also a frontend. The frontend provides the user interface, and can "talk" to any Sane backend, so you don't need a different scanner. Karl Heinz From mpol@gmx.net Tue Jul 1 12:00:08 2003 From: mpol@gmx.net (Marcel Pol) Date: Tue, 1 Jul 2003 13:00:08 +0200 Subject: [sane-devel] Microtek Pagewiz In-Reply-To: <20030628163756.GA4381@lucent.com> References: <20030628163756.GA4381@lucent.com> Message-ID: <20030701130008.26394d3d.mpol@gmx.net> On Sat, 28 Jun 2003 11:37:56 -0500 Peter Fales wrote: > Anyone know anything about Microtek Pagewiz Color Sheetfed Scanner? > > http://www.mir.com/mtek/pport-hints.html makes it sound promising, but > I wonder if anyone has any direct experience. > > They are going for well under $10 on eBay. I thik it might be handy > if it worked reasonable well with Linux. It worked for me, but I haven't used it in about 2 or 3 years. I needed the ppscsi driver for it, because it connects to the parport with a scsi over parport chipset. But if you want to, you can use a scsi card as well to connect it to, you would just need to buy another cable for that. -- Marcel Pol From henning@meier-geinitz.de Tue Jul 1 12:07:19 2003 From: henning@meier-geinitz.de (Henning Meier-Geinitz) Date: Tue, 1 Jul 2003 13:07:19 +0200 Subject: [sane-devel] fujitsu/kooka ADF trouble (was: About the trouble about the operativity of kooka) In-Reply-To: <200307011914.CJH55768.OSPLSPPJJ.IOPV@pfu.fujitsu.com> References: <200307011443.GEC64471.PJ.OSPLIPVPOSJ@pfu.fujitsu.com> <20030701083830.GA3290@meier-geinitz.de> <200307011914.CJH55768.OSPLSPPJJ.IOPV@pfu.fujitsu.com> Message-ID: <20030701110719.GC7500@meier-geinitz.de> Hi, On Tue, Jul 01, 2003 at 07:14:49PM +0900, hironori kohno wrote: > > Does this happen with other fronetnds (xsane, xscanimage) also? If > > yes, it's probably a problem with the fujitsu backend. > > i am sorry. > i do not have any scanners other than fujitsu-scanner. I didn't want you to test different scanners but different frontends. E.g. try what happends if you scan with xsane instead of kooka. Bye, Henning From kouno.hironori@pfu.fujitsu.com Tue Jul 1 12:51:40 2003 From: kouno.hironori@pfu.fujitsu.com (hironori kohno) Date: Tue, 1 Jul 2003 20:51:40 +0900 Subject: [sane-devel] About the trouble about the operativity of kooka In-Reply-To: <200307011101.01270.freitag@suse.de> References: <200307011443.GEC64471.PJ.OSPLIPVPOSJ@pfu.fujitsu.com> <20030701083830.GA3290@meier-geinitz.de> <200307011101.01270.freitag@suse.de> Message-ID: <200307012051.HJJ43475.PJIOSVLOPPP.JS@pfu.fujitsu.com> <200307011101.01270.freitag@suse.de> $B$N!"(B "Re: [sane-devel] About the trouble about the operativity of kooka" $B$K$*$$$F!"(B "Klaas Freitag "$B$5$s$O=q$-$^$7$?!'(B > On Tuesday 01 July 2003 10:38, Henning Meier-Geinitz wrote: > > Hi, > > > > On Tue, Jul 01, 2003 at 02:43:55PM +0900, hironori kohno wrote: > > > i am using Kooka in the kde environment. > > > However, although "adf" and "fb" are > > > displayed on the setting screen of source, > > > it is surely reset by setup of "adf". > > > > > > Although I want to also confirm a setup of "fb", > > > what should it carry out? > > > > Does this happen with other fronetnds (xsane, xscanimage) also? If > > yes, it's probably a problem with the fujitsu backend. > Well, the ADF support in Kooka is still very buggy. That is mainly > because I do not have a Scanner with ADF support. Sorry. > If you could try to describe the problem more in detail, I can try > to help you. Please consider to update Kooka, 0.35 is quite outdated, > you should try to update to version 0.40 (although that does not solve > the ADF-problem probably, but some others). In the following environment, it tested immediately. Redhat: V9 Kooka: V0.39 (KDE-3.1-10). However, the result was NG. Kooka resets to ADF. Kooka is updated to 0.40. And i try. > > > > > If no, you'd better contact the kooka authors. > Well, unfortunately there is only one: me ;-). Volunteers are welcome :-) > > > Well, maybe they are > > subscribed to sane-devel but at least I don't remember having heard > > from them on this list. > Oh, yes, I am subscribed, but not to busy on the list, I admit. > Unfortunately I do not have too much time for Kooka and scanner > related things. But I am trying hard to do my best ;-) Thanks. > > Regards, > Klaas > > -- > Klaas Freitag > Internal Tools - SuSE Linux AG > > _______________________________________________ > Sane-devel mailing list > Sane-devel@www.mostang.com > http://www.mostang.com/mailman/listinfo/sane-devel > -- kouno.hironori@pfu.fujitsu.com -- kouno.hironori@pfu.fujitsu.com From kouno.hironori@pfu.fujitsu.com Tue Jul 1 12:58:34 2003 From: kouno.hironori@pfu.fujitsu.com (hironori kohno) Date: Tue, 1 Jul 2003 20:58:34 +0900 Subject: [sane-devel] About the trouble about the operativity of kooka In-Reply-To: References: <200307011914.CJH55768.OSPLSPPJJ.IOPV@pfu.fujitsu.com> Message-ID: <200307012058.CFD99517.JOSPVPJPOSPIL.@pfu.fujitsu.com> $B$N!"(B "Re: [sane-devel] About the trouble about the operativity of kooka" $B$K$*$$$F!"(B "Karl Heinz Kremer "$B$5$s$O=q$-$^$7$?!'(B > > On Tuesday, July 1, 2003, at 06:14 AM, hironori kohno wrote: > > > <20030701083830.GA3290@meier-geinitz.de> $B$N!"(B > > "Re: [sane-devel] About the trouble about the operativity of > > kooka" $B$K$*$$$F!"(B > > "Henning Meier-Geinitz "$B$5$s$O=q$-(B > > $B$^$7$?!'(B > > > > > >> Hi, > >> > >> On Tue, Jul 01, 2003 at 02:43:55PM +0900, hironori kohno wrote: > >>> i am using Kooka in the kde environment. > >>> However, although "adf" and "fb" are > >>> displayed on the setting screen of source, > >>> it is surely reset by setup of "adf". > >>> > >>> Although I want to also confirm a setup of "fb", > >>> what should it carry out? > >> > >> Does this happen with other fronetnds (xsane, xscanimage) also? If > >> yes, it's probably a problem with the fujitsu backend. > > > > i am sorry. > > i do not have any scanners other than fujitsu-scanner. > > > Henning did not ask you to test with another backend (which is scanner > related), but > with a different frontend (e.g. xsane, xscanimage, quiteinsane, ...) > Kooka is also a > frontend. The frontend provides the user interface, and can "talk" to > any Sane > backend, so you don't need a different scanner. xsane and xscanimage operate normally. It can change into fb. > > Karl Heinz > > _______________________________________________ > Sane-devel mailing list > Sane-devel@www.mostang.com > http://www.mostang.com/mailman/listinfo/sane-devel > -- kouno.hironori@pfu.fujitsu.com -- kouno.hironori@pfu.fujitsu.com From kouno.hironori@pfu.fujitsu.com Tue Jul 1 13:10:30 2003 From: kouno.hironori@pfu.fujitsu.com (hironori kohno) Date: Tue, 1 Jul 2003 21:10:30 +0900 Subject: [sane-devel] fujitsu/kooka ADF trouble (was: About the trouble aboutthe operativity of kooka) In-Reply-To: <20030701110719.GC7500@meier-geinitz.de> References: <200307011443.GEC64471.PJ.OSPLIPVPOSJ@pfu.fujitsu.com> <20030701083830.GA3290@meier-geinitz.de> <200307011914.CJH55768.OSPLSPPJJ.IOPV@pfu.fujitsu.com> <20030701110719.GC7500@meier-geinitz.de> Message-ID: <200307012110.HIG98378.PVLPISPPJSJOO.@pfu.fujitsu.com> <20030701110719.GC7500@meier-geinitz.de> $B$N!"(B "[sane-devel] fujitsu/kooka ADF trouble (was: About the trouble aboutthe operativity of kooka)" $B$K$*$$$F!"(B "Henning Meier-Geinitz "$B$5$s$O=q$-(B $B$^$7$?!'(B > Hi, > > On Tue, Jul 01, 2003 at 07:14:49PM +0900, hironori kohno wrote: > > > Does this happen with other fronetnds (xsane, xscanimage) also? If > > > yes, it's probably a problem with the fujitsu backend. > > > > i am sorry. > > i do not have any scanners other than fujitsu-scanner. > > I didn't want you to test different scanners but different frontends. > > E.g. try what happends if you scan with xsane instead of kooka. xsane and xscanimage operate normally. It can change into fb. > > Bye, > Henning > _______________________________________________ > Sane-devel mailing list > Sane-devel@www.mostang.com > http://www.mostang.com/mailman/listinfo/sane-devel > -- kouno.hironori@pfu.fujitsu.com -- kouno.hironori@pfu.fujitsu.com From priya" This is a multi-part message in MIME format. ------=_NextPart_000_000E_01C34011.80107610 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello , I m using avision 830C scanner on linux. When i open the scanned image = after scanning in GIMP it is very dark. I dont know how to rectify this. = I m using scanimage command to scan the document. Plz help Regards, Priya Gupta ------=_NextPart_000_000E_01C34011.80107610 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hello ,
 
I m using avision 830C scanner on = linux. When i=20 open the scanned image after scanning in GIMP it is very dark. I dont = know how=20 to rectify this.
I m using scanimage command to scan the = document.
Plz help
 
 
Regards,
Priya=20 Gupta
------=_NextPart_000_000E_01C34011.80107610-- From henning@meier-geinitz.de Tue Jul 1 19:14:57 2003 From: henning@meier-geinitz.de (Henning Meier-Geinitz) Date: Tue, 1 Jul 2003 20:14:57 +0200 Subject: [sane-devel] problem in avision scanner In-Reply-To: <001a01c33fea$60767920$5505a8c0@priya> References: <001a01c33fea$60767920$5505a8c0@priya> Message-ID: <20030701181457.GD7500@meier-geinitz.de> Hi, On Tue, Jul 01, 2003 at 08:44:00PM +0530, priya wrote: > I m using avision 830C scanner on linux. Does the scanner work ok otherwise? I'm asking because it's labeled "untested" in our lists. > When i open the scanned image after scanning in GIMP it is very dark. > I dont know how to rectify this. I m using scanimage command to scan > the document. XSane and other graphical frontends provide an easy way to change brightness and gamma settings. If you want to keep using scanimage, check if the avision backend provides an option like "brightness" in the mode you use: scanimage -L. If it doesn't, but has an option called "gamma-table" you can use that one. To generate the gamma table, the program "gamma4scanimage" may be helpful. Bye, Henning From rene.rebe@gmx.net Tue Jul 1 19:56:54 2003 From: rene.rebe@gmx.net (Rene Rebe) Date: Tue, 01 Jul 2003 20:56:54 +0200 (CEST) Subject: [sane-devel] problem in avision scanner In-Reply-To: <20030701181457.GD7500@meier-geinitz.de> References: <001a01c33fea$60767920$5505a8c0@priya> <20030701181457.GD7500@meier-geinitz.de> Message-ID: <20030701.205654.640912868.rene.rebe@gmx.net> Hi, On: Tue, 1 Jul 2003 20:14:57 +0200, Henning Meier-Geinitz wrote: > Hi, > = > On Tue, Jul 01, 2003 at 08:44:00PM +0530, priya wrote: > > I m using avision 830C scanner on linux. > = > Does the scanner work ok otherwise? I'm asking because it's labeled > "untested" in our lists. Which backend version are you using - I once had such a "wrong scaling of calibration data" but for some scanner revisions. Please update to the latest SANE version. Could you also send me a log (in private) containing the log file of: SANE_DEBUG_AVISION=3D7 scanimage -L 2> log ? > > When i open the scanned image after scanning in GIMP it is very dar= k. > > I dont know how to rectify this. I m using scanimage command to sc= an > > the document. = > = > XSane and other graphical frontends provide an easy way to change > brightness and gamma settings. If you want to keep using scanimage, > check if the avision backend provides an option like "brightness" in > the mode you use: scanimage -L. If it doesn't, but has an option > called "gamma-table" you can use that one. To generate the gamma > table, the program "gamma4scanimage" may be helpful. The backend supports both - but I guess he is running a version with broken calibration. I'm currently working on the calibration stuff in this minute anyway because I noticed myself that it has endian issues on big-endian architectures (e.g. PowerPC, SPARC). > Bye, > Henning Sincerely yours, Ren=E9 Rebe - ROCK Linux stable release maintainer -- = Ren=E9 Rebe - Europe/Germany/Berlin rene@rocklinux.org rene.rebe@gmx.net http://www.rocklinux.org http://www.rocklinux.org/people/rene = http://gsmp.tfh-berlin.de/gsmp http://gsmp.tfh-berlin.de/rene From hshane@austin.rr.com Tue Jul 1 23:16:22 2003 From: hshane@austin.rr.com (Howard Shane) Date: Tue, 01 Jul 2003 17:16:22 -0500 Subject: [sane-devel] Second draft of Scanner HOWTO for TLDP In-Reply-To: References: <3EF8FE00.3050107@austin.rr.com> Message-ID: <3F020836.9010106@austin.rr.com> Jonathan Buzzard wrote: > The reason the parallel port scanner page has not been updated for a > long time is the shear lack of new models coming on the market, and > the difficulty of reverse engineering them. > > I would say that 99% of all new scanners are USB capable with a small > number of SCSI and Firewire models at the higher end. It was the > development of tools that allowed the action on the USB cable to be > logged that enabled the big leap forward in USB scanner drivers. > Thanks for the info. Now that you mention it, if anyone could contribute a couple of sentences about any extra steps needed (if any) in configuring a firewire scanner I'd be grateful. Thanks, hs From kouno.hironori@pfu.fujitsu.com Wed Jul 2 04:40:48 2003 From: kouno.hironori@pfu.fujitsu.com (hironori kohno) Date: Wed, 2 Jul 2003 12:40:48 +0900 Subject: [sane-devel] Trouble about "source selection" of Kooka. Message-ID: <200307021240.ICB91107.OOPJIPJPPSLS.V@pfu.fujitsu.com> Hi, i used another scanner which equipped ADF and tested about source selection of kooka. The result was NG like "sane-fujitsu". xsane is OK. Probably, it will be a trouble by the side of Kooka. The environment of a test is as follows: os : Redhat Linux V9 scanner : ES-2200 + ADF unit (EPSON) software: EPSON kowa Image Scan! for Linux : iscan-1.5.2-1.i386 kooka : V0.39 (KDE 3.1-10) . xsane : V0.89 The present condition of a test is as follows: The item of "Flatbed" and "Auto Document Feeder" is displayed on "source selection." initial value is "Flatbed". it is reset by "Flatbed" even if it sets it as "ADF". bb, Kouno -- kouno.hironori@pfu.fujitsu.com -- kouno.hironori@pfu.fujitsu.com From priya" This is a multi-part message in MIME format. ------=_NextPart_000_003B_01C3409D.CDEC89A0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi , Does the scanner work ok otherwise? I'm asking because it's labeled > = "untested" in our lists. Ya the scanner avision 830C which i m using works fine with windows. Which backend version are you using? The backend version which i m using is 1.0.12, which i think is the = latest one. The backend does provide the setting for brightness and i m giving the = brightness as 50. Also i tried to test with gamma table, the = documentation says that if u give gamma-table =3D (yes) then it will use = the default gamma table. i tried this option but when i give this option = then the result was a 0bytes file. That is the scanning didnt worked at = all. But i can surely try to generate a gamma table and then try using = it.=20 The command i m using for scanning is=20 scanimage --brightness 50 --mode grayscale --format Tiff > abc.tiff I have one more doubt : I have 4 versions of Avision scanners, they are : 1. Avision 8000S 2. Avision 3200C 3. Avision 600U 4. Avision 820C No where in the documentation i can found that I can use ADF of these = scanners. Is there any way that i can use the ADF for these scanners???? Regards, Priya ----------------------------------------------- Hi, On: Tue, 1 Jul 2003 20:14:57 +0200, Henning Meier-Geinitz wrote: > Hi, > =3D > On Tue, Jul 01, 2003 at 08:44:00PM +0530, priya wrote: > > I m using avision 830C scanner on linux. > =3D > Does the scanner work ok otherwise? I'm asking because it's labeled > "untested" in our lists. Which backend version are you using - I once had such a "wrong scaling of calibration data" but for some scanner revisions. Please update to the latest SANE version. Could you also send me a log (in private) containing the log file of: SANE_DEBUG_AVISION=3D3D7 scanimage -L 2> log ? > > When i open the scanned image after scanning in GIMP it is very = dar=3D k. > > I dont know how to rectify this. I m using scanimage command to = sc=3D an > > the document. =3D > =3D > XSane and other graphical frontends provide an easy way to change > brightness and gamma settings. If you want to keep using scanimage, > check if the avision backend provides an option like "brightness" in > the mode you use: scanimage -L. If it doesn't, but has an option > called "gamma-table" you can use that one. To generate the gamma > table, the program "gamma4scanimage" may be helpful. The backend supports both - but I guess he is running a version with broken calibration. I'm currently working on the calibration stuff in this minute anyway because I noticed myself that it has endian issues on big-endian architectures (e.g. PowerPC, SPARC). > Bye, > Henning Sincerely yours, Ren=3DE9 Rebe - ROCK Linux stable release maintainer ------=_NextPart_000_003B_01C3409D.CDEC89A0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi ,
 
 
 Does the scanner work = ok otherwise?=20 I'm asking because it's labeled > "untested" in our lists.
Ya the scanner avision 830C which i m = using works=20 fine with windows.
 
 
Which backend version are you=20 using?
 
The backend version which i m using is = 1.0.12,=20 which i think is the latest one.
 
 
 
The backend does provide the setting = for brightness=20 and i m giving the brightness as 50. Also i tried to test with gamma = table, the=20 documentation says that if u give gamma-table =3D (yes) then it will use = the=20 default gamma table. i tried this option but when i give this option = then the=20 result was a 0bytes file. That is the scanning didnt worked at all. But = i can=20 surely try to generate a gamma table and then try using it. =
 
 
The command i m using for scanning is =
scanimage --brightness 50 = --mode grayscale=20 --format Tiff > abc.tiff
 
 
 
I have one more doubt=20 :
 
I have 4 versions of Avision scanners, = they are=20 :
 
1. Avision 8000S
2. Avision 3200C
3. Avision 600U
4. Avision 820C
 
 
No where in the documentation i can = found=20 that I can use ADF of these scanners. Is there any way that i = can use=20 the ADF for these scanners????
 
 
Regards,
Priya
 
 
 
-----------------------------------------------
 
 
Hi,

On: Tue, 1 Jul 2003 20:14:57=20 +0200,
    Henning Meier-Geinitz <henning@meier-geinitz.de>= =20 wrote:
> Hi,
> =3D

> On Tue, Jul = 01, 2003=20 at 08:44:00PM +0530, priya wrote:
> > I m using avision = 830C=20 scanner on linux.
> =3D

> Does the scanner = work ok=20 otherwise? I'm asking because it's labeled> "untested" in our=20 lists.

Which backend version are you using - I once had such = a "wrong=20 scaling
of calibration data" but for some scanner = revisions.

Please=20 update to the latest SANE version.

Could you also send me a log = (in=20 private) containing the log file of:

SANE_DEBUG_AVISION=3D3D7 = scanimage -L=20 2> log

?

> > When i open the scanned image = after=20 scanning in GIMP it is very dar=3D
k.
> > I dont know = how to=20 rectify this.  I m using scanimage command to = sc=3D
an
> >=20 the document. =3D

> =3D

> XSane and = other=20 graphical frontends provide an easy way to change
> = brightness and=20 gamma settings. If you want to keep using scanimage,
> = check if the=20 avision backend provides an option like "brightness" in
> = the mode=20 you use: scanimage -L. If it doesn't, but has an option
> = called=20 "gamma-table" you can use that one. To generate the gamma
> = table,=20 the program "gamma4scanimage" may be helpful.

The backend = supports=20 both - but I guess he is running a version with
broken calibration. = I'm=20 currently working on the calibration stuff in
this minute anyway = because I=20 noticed myself that it has endian issues
on big-endian architectures = (e.g.=20 PowerPC, SPARC).

> Bye,
>  =20 Henning

Sincerely yours,
  Ren=3DE9 = Rebe
   =20 - ROCK Linux stable release maintainer
------=_NextPart_000_003B_01C3409D.CDEC89A0-- From jollyprince@juno.com Wed Jul 2 17:47:17 2003 From: jollyprince@juno.com (jollyprince@juno.com) Date: Wed, 2 Jul 2003 16:47:17 GMT Subject: [sane-devel] Visioneer 5800 Message-ID: <20030702.094812.559.243155@webmail05.lax.untd.com> So far, I've discovered that my chipset is RTS8801C2 and I'm seeking info for writing the backend. If somebody can speed up that process, please help! Meanwhile, I'm trying to find a model for my backend. Does anybody have suggestions for similar scanner drivers to Visioneer 5800? Thanks in advance! Roger From jollyprince@juno.com Wed Jul 2 19:27:23 2003 From: jollyprince@juno.com (jollyprince@juno.com) Date: Wed, 2 Jul 2003 18:27:23 GMT Subject: [sane-devel] Visioneer 5800 Message-ID: <20030702.112740.505.238949@webmail10.lax.untd.com> Yes I believe it's HP 3500 Scanjet also using the RTS8801 chipset which is one of the unsupported scanners on the list. Is there some way of using that info to get a model or example of what my task is to write a scanner for my Visioneer 5800? --- gerard klaver wrote: On Wed, 2003-07-02 at 16:47, jollyprince@juno.com wrote: > So far, I've discovered that my chipset is RTS8801C2 and I'm seeking info for writing the backend. If somebody can speed up that process, please help! > > Meanwhile, I'm trying to find a model for my backend. Does anybody have suggestions for similar scanner drivers to Visioneer 5800? > > Thanks in advance! > > Roger > Look at http://www.meier-geinitz.de/sane/misc/unsupported.html for the HP usb scanners, some scanner use the same chip and some people have already collected some data. -- ---------- m.vr.gr. Gerard Klaver From christoph.knauer@web.de Wed Jul 2 21:39:16 2003 From: christoph.knauer@web.de (Christoph Knauer) Date: 02 Jul 2003 22:39:16 +0200 Subject: [sane-devel] Scanning aborts on full harddisk Message-ID: <1057178356.2370.9.camel@christoph.local> Hi, there is another problem I found: If i trie to scan, but the target-disk is almoust full (here it was 0byte free), xsane exits without any message during the transfer of the datas to this disk. Bye, Christoph From inkubus@interalpha.co.uk Wed Jul 2 23:35:32 2003 From: inkubus@interalpha.co.uk (Martin) Date: 02 Jul 2003 23:35:32 +0100 Subject: [sane-devel] Problems getting SANE to recognise an HP ScanJet 5P Message-ID: <1057185333.521.102.camel@raphael> Hi, Having real problems getting SANE to recognise my ScanJet 5P and someone on our local LUG suggested asking here. Background info: *. Custom UltraSPARC IIi based machine running Debian 3.0 *. SCSI bus and cable definately works *. Scanner worked last time it was used (a little while back) and can be made to play music in test mode. SCSI info *. Have module sg loaded [martin@raphael martin]$ cat /proc/devices Character devices: 21 sg and it works with a SCSI CD burner. *. Scanner is recognised by SCSI drivers [martin@raphael martin]$ cat /proc/scsi/scsi Attached devices: Host: scsi1 Channel: 00 Id: 01 Lun: 00 Vendor: HP Model: C5110A Rev: 3701 Type: Processor ANSI SCSI revision: 02 SANE config *. For an HP ScanJet 5P I /think/ this is all the config I need [martin@raphael martin]$ cat /etc/sane.d/hp.conf scsi HP /dev/scanner *. Version raphael:/u/martin# scanimage -V scanimage (sane-backends) 1.0.7; backend version 1.0.7 The Problem *. The SANE layer doesn't seem to recognise the scanner raphael:/u/martin# scanimage --device-name=hp:/dev/sgc scanimage: open of device hp:/dev/sgc failed: Invalid argument raphael:/u/martin# scanimage --device-name=hp:/dev/sg2 scanimage: open of device hp:/dev/sg2 failed: Invalid argument raphael:/u/martin# scanimage -L No scanners were identified. If you were expecting something different, check that the scanner is plugged in, turned on and detected by the sane-find-scanner tool (if appropriate). Please read the documentation which came with this software (README, FAQ, manpages). raphael:/u/martin# ln --symbolic /dev/sg2 /dev/scanner raphael:/u/martin# scanimage --device-name=hp:/dev/scanner scanimage: open of device hp:/dev/scanner failed: Invalid argument raphael:/u/martin# sane-find-scanner -v # Note that sane-find-scanner will find any scanner that is connected # to a SCSI bus and some scanners that are connected to the Universal # Serial Bus (USB) depending on your OS. It will even find scanners # that are not supported at all by SANE. It won't find a scanner that # is connected to a parallel or proprietary port. sane-find-scanner: searching for SCSI scanners: sane-find-scanner: checking /dev/scanner... open ok sane-find-scanner: found SCSI disk " " at device /dev/scanner sane-find-scanner: checking /dev/sg0... open ok sane-find-scanner: found SCSI disk " " at device /dev/sg0 sane-find-scanner: checking /dev/sg1... open ok sane-find-scanner: found SCSI disk " " at device /dev/sg1 sane-find-scanner: checking /dev/sg2... open ok sane-find-scanner: found SCSI disk " " at device /dev/sg2 Can anyone suggest where I might be able to find more info or what I might be doing wrong? Sweet Dreams, - Martin -- Martin inkubus@interalpha.co.uk "Seasons change, things come to pass" From ahmedf@cs.lafayette.edu Thu Jul 3 01:57:02 2003 From: ahmedf@cs.lafayette.edu (Farhan Ahmed) Date: Wed, 02 Jul 2003 20:57:02 -0400 Subject: [sane-devel] Xsane startup problems Message-ID: <200307022057.02894.ahmedf@cs.lafayette.edu> Hi, I'm running Mandrake 9.1 on my Athlon system. When I initially installed Mandrake, Xsane was configured perfectly automatically and I had no problems using my Lexmark X73 flatbed scanner. But then I had to move to a new place and so I unhooked my computer and moved it. When I reconnected everything, to my utter surprise and dissapointment, I got the following error message: gt68xx] Couldn't open firmware file (neither`/usr/share/sane/gt68xx/OSLO3071b2.usb' nor `/usr/share/sane/gt68xx/oslo3071b2.usb'): No such file or directory I still get the icon for Xsane on my desktop (KDE) automatically when I hook up the scanner and so the OS is detecting the scanner fine. Also, the Control Center on Mandrake seems to recognize the scanner correctly too. By the way, the scanner has a USB interface and it's connected to /dev/usb/scanner0 Can anyone help me out please? -- -------------------------------- Farhan Ahmed Electrical and Computer Engineering Lafayette College Easton, PA 18042-1783. ahmedf_at_cs_lafayette_edu From david@rondotheatre.co.uk Thu Jul 3 10:25:12 2003 From: david@rondotheatre.co.uk (david stevenson) Date: Thu, 3 Jul 2003 10:25:12 +0100 Subject: [sane-devel] Xsane startup problems In-Reply-To: <200307022057.02894.ahmedf@cs.lafayette.edu> References: <200307022057.02894.ahmedf@cs.lafayette.edu> Message-ID: <200307031025.13028.david@rondotheatre.co.uk> On Thursday 03 July 2003 1:57 am, Farhan Ahmed wrote: > Hi, > > I'm running Mandrake 9.1 on my Athlon system. When I initially installed > Mandrake, Xsane was configured perfectly automatically and I had no > problems using my Lexmark X73 flatbed scanner. But then I had to move to a > new place and so I unhooked my computer and moved it. When I reconnected > everything, to my utter surprise and dissapointment, I got the following > error message: > > gt68xx] Couldn't open firmware file > (neither`/usr/share/sane/gt68xx/OSLO3071b2.usb' nor > `/usr/share/sane/gt68xx/oslo3071b2.usb'): No such file or directory This means the backend could not find a file it needs to load into your scanner. You must have had this file installed correctly before for it to work so I do not know what happened in your move to loose it. If you can not find it on your system see http://www.meier-geinitz.de/sane/gt68xx-backend/ for details of where to get it from. > I still get the icon for Xsane on my desktop (KDE) automatically when I > hook up the scanner and so the OS is detecting the scanner fine. Also, the > Control Center on Mandrake seems to recognize the scanner correctly too. By > the way, the scanner has a USB interface and it's connected to > /dev/usb/scanner0 > > Can anyone help me out please? From henning@meier-geinitz.de Thu Jul 3 12:18:00 2003 From: henning@meier-geinitz.de (Henning Meier-Geinitz) Date: Thu, 3 Jul 2003 13:18:00 +0200 Subject: [sane-devel] Problems getting SANE to recognise an HP ScanJet 5P In-Reply-To: <1057185333.521.102.camel@raphael> References: <1057185333.521.102.camel@raphael> Message-ID: <20030703111759.GB12717@meier-geinitz.de> Hi, On Wed, Jul 02, 2003 at 11:35:32PM +0100, Martin wrote: > Background info: > *. Custom UltraSPARC IIi based machine running Debian 3.0 Updated SANE packages for Woody are here: http://people.debian.org/~aurel32/sane.html > *. SCSI bus and cable definately works > *. Scanner worked last time it was used (a little while back) and can be > made to play music in test mode. It worked with the same configuration (sane version etc.)? > Host: scsi1 Channel: 00 Id: 01 Lun: 00 > Vendor: HP Model: C5110A Rev: 3701 > Type: Processor ANSI SCSI revision: 02 Looks ok for me. Nothing else in this file? > [martin@raphael martin]$ cat /etc/sane.d/hp.conf > scsi HP > /dev/scanner Should be ok, too. You could also add /dev/sg?, but that shouldn't be necessary. With ? beeing the correct number for the sg device of your scanner. > raphael:/u/martin# scanimage --device-name=hp:/dev/sgc > scanimage: open of device hp:/dev/sgc failed: Invalid argument > raphael:/u/martin# scanimage --device-name=hp:/dev/sg2 > scanimage: open of device hp:/dev/sg2 failed: Invalid argument > raphael:/u/martin# scanimage -L > > No scanners were identified. If you were expecting something different, > sane-find-scanner: searching for SCSI scanners: > sane-find-scanner: checking /dev/scanner... open ok > sane-find-scanner: found SCSI disk " " at device /dev/scanner You have linked a disk to /dev/scanner, not the scanner. At least that's what sane-find-scanner thinks. > sane-find-scanner: checking /dev/sg0... open ok > sane-find-scanner: found SCSI disk " " at device /dev/sg0 > sane-find-scanner: checking /dev/sg1... open ok > sane-find-scanner: found SCSI disk " " at device /dev/sg1 > sane-find-scanner: checking /dev/sg2... open ok > sane-find-scanner: found SCSI disk " " at device /dev/sg2 > Same here. On which sg device is the scanner ("processor") found? For me, that looks like a problem with the SCSI subsystem. > Can anyone suggest where I might be able to find more info or what I > might be doing wrong? SANE thinks you are trying to scan from a SCSI disk. Can you show us the complete output of /proc/scsi/scsi and "sane-find-scanner -v -v"? Bye, Henning From inkubus@interalpha.co.uk Thu Jul 3 12:32:28 2003 From: inkubus@interalpha.co.uk (Martin) Date: 03 Jul 2003 12:32:28 +0100 Subject: [sane-devel] Problems getting SANE to recognise an HP ScanJet 5P In-Reply-To: <1057224634.1226.6.camel@gkall-lex> References: <1057185333.521.102.camel@raphael> <1057224634.1226.6.camel@gkall-lex> Message-ID: <1057231949.526.69.camel@raphael> > > Hi, > > Having real problems getting SANE to recognise my ScanJet 5P and > > someone on our local LUG suggested asking here. > > Can anyone suggest where I might be able to find more info or what I > > might be doing wrong? > > Check also /dev/sg2, see SANE FAQ Have scanned (ha ha) it and the only thing that seems out of order is scsiinfo /dev/sg2 returns no info raphael:/u/martin# scsiinfo -e /dev/sg2 Unable to read Read-Write Error Recovery Page 01h Beginning to suspect a SCSI problem. I'll try the scanner on another machine when I get a chance. > chmod 666 /dev/sg2 Initially it was: [martin@raphael martin]$ ls -la /dev/sg2 crw------- 1 root root 21, 2 Mar 15 2002 /dev/sg2 I originally performed all the attempts to scan as root so that permissions wouldn't be a problem. After chmod 666 I get identical results to the ones originally quoted. Cheers, - Martin -- Martin inkubus@interalpha.co.uk "Seasons change, things come to pass" From inkubus@interalpha.co.uk Thu Jul 3 12:36:45 2003 From: inkubus@interalpha.co.uk (Martin) Date: 03 Jul 2003 12:36:45 +0100 Subject: [sane-devel] Problems getting SANE to recognise an HP ScanJet 5P In-Reply-To: <20030703111759.GB12717@meier-geinitz.de> References: <1057185333.521.102.camel@raphael> <20030703111759.GB12717@meier-geinitz.de> Message-ID: <1057232207.526.75.camel@raphael> > > Background info: > > *. Custom UltraSPARC IIi based machine running Debian 3.0 > Updated SANE packages for Woody are here: > http://people.debian.org/~aurel32/sane.html OK will try. > > *. SCSI bus and cable definately works > > *. Scanner worked last time it was used (a little while back) and can be > > made to play music in test mode. > It worked with the same configuration (sane version etc.)? No. What I ment is that I have seen this hardware work at least once and nothing drastic has happened to it since. > > Host: scsi1 Channel: 00 Id: 01 Lun: 00 > > Vendor: HP Model: C5110A Rev: 3701 > > Type: Processor ANSI SCSI revision: 02 > Looks ok for me. Nothing else in this file? I snipped to the relevant parts: [martin@raphael martin]$ cat /proc/scsi/scsi Attached devices: Host: scsi0 Channel: 00 Id: 00 Lun: 00 Vendor: QUANTUM Model: QM39100TD-SW Rev: N491 Type: Direct-Access ANSI SCSI revision: 02 Host: scsi0 Channel: 00 Id: 06 Lun: 00 Vendor: TEAC Model: CD-ROM CD-532S Rev: 1.0A Type: CD-ROM ANSI SCSI revision: 02 Host: scsi1 Channel: 00 Id: 01 Lun: 00 Vendor: HP Model: C5110A Rev: 3701 Type: Processor ANSI SCSI revision: 02 > > [martin@raphael martin]$ cat /etc/sane.d/hp.conf > > scsi HP > > /dev/scanner > Should be ok, too. You could also add /dev/sg?, but that shouldn't be > necessary. With ? beeing the correct number for the sg device of your > scanner. OK will try. > > sane-find-scanner: searching for SCSI scanners: > > sane-find-scanner: checking /dev/scanner... open ok > > sane-find-scanner: found SCSI disk " " at device /dev/scanner > You have linked a disk to /dev/scanner, not the scanner. At least > that's what sane-find-scanner thinks. > > > sane-find-scanner: checking /dev/sg0... open ok > > sane-find-scanner: found SCSI disk " " at device /dev/sg0 > > sane-find-scanner: checking /dev/sg1... open ok > > sane-find-scanner: found SCSI disk " " at device /dev/sg1 > > sane-find-scanner: checking /dev/sg2... open ok > > sane-find-scanner: found SCSI disk " " at device /dev/sg2 > > > Same here. On which sg device is the scanner ("processor") found? /dev/sg2 - that's why I posted the output of this. It looked the closest thing to an error to me. > For me, that looks like a problem with the SCSI subsystem. Yea I beginning to think so as well :-\ > > Can anyone suggest where I might be able to find more info or what I > > might be doing wrong? > SANE thinks you are trying to scan from a SCSI disk. Can you show us > the complete output of /proc/scsi/scsi and "sane-find-scanner -v -v"? raphael:/u/martin# sane-find-scanner -v -v # Note that sane-find-scanner will find any scanner that is connected # to a SCSI bus and some scanners that are connected to the Universal # Serial Bus (USB) depending on your OS. It will even find scanners # that are not supported at all by SANE. It won't find a scanner that # is connected to a parallel or proprietary port. sane-find-scanner: searching for SCSI scanners: sane-find-scanner: checking /dev/scanner... failed to open sane-find-scanner: checking /dev/sg0... open ok sane-find-scanner: found SCSI disk " " at device /dev/sg0 sane-find-scanner: checking /dev/sg1... open ok sane-find-scanner: found SCSI disk " " at device /dev/sg1 sane-find-scanner: checking /dev/sg2... open ok sane-find-scanner: found SCSI disk " " at device /dev/sg2 I'll start looking at the SCSI drivers as well. Cheers, - Martin -- Martin inkubus@interalpha.co.uk "Seasons change, things come to pass" From henning@meier-geinitz.de Thu Jul 3 12:57:42 2003 From: henning@meier-geinitz.de (Henning Meier-Geinitz) Date: Thu, 3 Jul 2003 13:57:42 +0200 Subject: [sane-devel] canon lide 20 + mac os x + usb In-Reply-To: <0D339075-AC53-11D7-9713-0003931DA274@casino.uni-stuttgart.de> References: <20030701085315.GB3290@meier-geinitz.de> <0D339075-AC53-11D7-9713-0003931DA274@casino.uni-stuttgart.de> Message-ID: <20030703115742.GC12717@meier-geinitz.de> Hi, I'm cc'ing the sane-devel list as your information is interesting for the other developers, too. On Wed, Jul 02, 2003 at 08:04:33AM +0200, Tobias Ernst wrote: > Beat Birkhofer has kindly sent me a patch that changes the plustek backend > to use threads instead of fork, and also confirmed that the debug level > thing is a problem in libusb, and not sane. Ok. Can we see this patch, please? If it were possible to write a more general thread/fork wrapper, this would be most appreciated. So on "real" Unix systems fork could be used and on platforms where it's necessary, threads. > With the patch the scanner now does what it is supposed to, i.e. it scanes > the area that I specify, but the resulting picture is just garbage. In > color mode there is a faint resemblance with the original (though there > are reddisch vertical stripes), while in the other modes, there is either > black only, or also garbage (vertical stripes). No idea about those problems. Maybe the plustek maintainer has seen that before? Bye, Henning From henning@meier-geinitz.de Thu Jul 3 13:59:05 2003 From: henning@meier-geinitz.de (Henning Meier-Geinitz) Date: Thu, 3 Jul 2003 14:59:05 +0200 Subject: [sane-devel] Problems getting SANE to recognise an HP ScanJet 5P In-Reply-To: <1057232207.526.75.camel@raphael> References: <1057185333.521.102.camel@raphael> <20030703111759.GB12717@meier-geinitz.de> <1057232207.526.75.camel@raphael> Message-ID: <20030703125905.GD12717@meier-geinitz.de> Hi, On Thu, Jul 03, 2003 at 12:36:45PM +0100, Martin wrote: > [martin@raphael martin]$ cat /proc/scsi/scsi > Attached devices: > Host: scsi0 Channel: 00 Id: 00 Lun: 00 > Vendor: QUANTUM Model: QM39100TD-SW Rev: N491 > Type: Direct-Access ANSI SCSI revision: 02 > Host: scsi0 Channel: 00 Id: 06 Lun: 00 > Vendor: TEAC Model: CD-ROM CD-532S Rev: 1.0A > Type: CD-ROM ANSI SCSI revision: 02 > Host: scsi1 Channel: 00 Id: 01 Lun: 00 > Vendor: HP Model: C5110A Rev: 3701 > Type: Processor ANSI SCSI revision: 02 Looks fine for me. > > > sane-find-scanner: searching for SCSI scanners: > > > sane-find-scanner: checking /dev/scanner... open ok > > > sane-find-scanner: found SCSI disk " " at device /dev/scanner > > You have linked a disk to /dev/scanner, not the scanner. At least > > that's what sane-find-scanner thinks. > > > > > sane-find-scanner: checking /dev/sg0... open ok > > > sane-find-scanner: found SCSI disk " " at device /dev/sg0 > > > sane-find-scanner: checking /dev/sg1... open ok > > > sane-find-scanner: found SCSI disk " " at device /dev/sg1 > > > sane-find-scanner: checking /dev/sg2... open ok > > > sane-find-scanner: found SCSI disk " " at device /dev/sg2 > > > > > Same here. On which sg device is the scanner ("processor") found? > /dev/sg2 - that's why I posted the output of this. It looked the > closest thing to an error to me. If you have installed cdrecord, try "cdrecord -scanbus". If that one works, I guess it's a SANE problem. > raphael:/u/martin# sane-find-scanner -v -v > > sane-find-scanner: searching for SCSI scanners: > sane-find-scanner: checking /dev/scanner... failed to open > sane-find-scanner: checking /dev/sg0... open ok > sane-find-scanner: found SCSI disk " " at device /dev/sg0 > sane-find-scanner: checking /dev/sg1... open ok > sane-find-scanner: found SCSI disk " " at device /dev/sg1 > sane-find-scanner: checking /dev/sg2... open ok > sane-find-scanner: found SCSI disk " " at device /dev/sg2 > Ok, SANE 1.0.7 doesn't print more details. When the problem still occurs with 1.0.12, please try sane-find-scanner -v -v again. It should pront the actual data that was send by the devices. Bye, Henning From anoah@pfeiffer.edu Thu Jul 3 14:14:25 2003 From: anoah@pfeiffer.edu (m. allan noah) Date: Thu, 3 Jul 2003 09:14:25 -0400 (EDT) Subject: [sane-devel] Xsane startup problems In-Reply-To: <200307031025.13028.david@rondotheatre.co.uk> Message-ID: when you did the setup of your system last time, did you boot into windows before you installed linux? if you have not turned the scanner off since that time, it might have been using the firmware loaded by your windows boot all that time. now that you have powered the scanner off, it lost that, and you will need to find and load the firmware. allan On Thu, 3 Jul 2003, david stevenson wrote: > On Thursday 03 July 2003 1:57 am, Farhan Ahmed wrote: > > Hi, > > > > I'm running Mandrake 9.1 on my Athlon system. When I initially installed > > Mandrake, Xsane was configured perfectly automatically and I had no > > problems using my Lexmark X73 flatbed scanner. But then I had to move to a > > new place and so I unhooked my computer and moved it. When I reconnected > > everything, to my utter surprise and dissapointment, I got the following > > error message: > > > > gt68xx] Couldn't open firmware file > > (neither`/usr/share/sane/gt68xx/OSLO3071b2.usb' nor > > `/usr/share/sane/gt68xx/oslo3071b2.usb'): No such file or directory > > This means the backend could not find a file it needs to load into your > scanner. You must have had this file installed correctly before for it to > work so I do not know what happened in your move to loose it. > If you can not find it on your system see > http://www.meier-geinitz.de/sane/gt68xx-backend/ > for details of where to get it from. > > > > I still get the icon for Xsane on my desktop (KDE) automatically when I > > hook up the scanner and so the OS is detecting the scanner fine. Also, the > > Control Center on Mandrake seems to recognize the scanner correctly too. By > > the way, the scanner has a USB interface and it's connected to > > /dev/usb/scanner0 > > > > Can anyone help me out please? > > _______________________________________________ > Sane-devel mailing list > Sane-devel@www.mostang.com > http://www.mostang.com/mailman/listinfo/sane-devel > -- "so don't tell us it can't be done, putting down what you don't know. money isn't our god, integrity will free our souls" - Max Cavalera From beat.birkhofer@ilw.agrl.ethz.ch Thu Jul 3 15:05:33 2003 From: beat.birkhofer@ilw.agrl.ethz.ch (Beat Birkhofer) Date: Thu, 3 Jul 2003 16:05:33 +0200 Subject: [sane-devel] canon lide 20 + mac os x + usb In-Reply-To: <20030703131501.11301.17469.Mailman@panda.mostang.com> Message-ID: <69B43620-AD5F-11D7-8C94-000A27E31614@ilw.agrl.ethz.ch> On Donnerstag, Juli 3, 2003, at 03:15 Uhr, sane-devel-request@www.mostang.com wrote: > Ok. Can we see this patch, please? If it were possible to write a more > general thread/fork wrapper, this would be most appreciated. So on > "real" Unix systems fork could be used and on platforms where it's > necessary, threads. Hi It's the same patch I posted 2003-02-03 (Vol 1#282) on the list. The link to the source files is dead because they probably wouldn't work with the current sane release and the quality is not good enough (I didn't do much testing, it simply worked for me). After I posted the patch there was the idea to write a daemon as layer between sane and IOKit to allow forks (see postings around 2003-02-14). As I just started my PhD work I have currently not much time to help out. Regards Beat H. From freitag@suse.de Thu Jul 3 16:33:51 2003 From: freitag@suse.de (Klaas Freitag) Date: Thu, 3 Jul 2003 17:33:51 +0200 Subject: [sane-devel] About the trouble about the operativity of kooka In-Reply-To: <200307012051.HJJ43475.PJIOSVLOPPP.JS@pfu.fujitsu.com> References: <200307011443.GEC64471.PJ.OSPLIPVPOSJ@pfu.fujitsu.com> <200307011101.01270.freitag@suse.de> <200307012051.HJJ43475.PJIOSVLOPPP.JS@pfu.fujitsu.com> Message-ID: <200307031733.51705.freitag@suse.de> --Boundary-00=_fzEB/TepsqDxJBs Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, attached you find a very small patch that applies to the kooka V. 0.40 source, that probably fixes the problem, that your can not switch the scanning source. Can you (or anybody else) apply the patch, compile and try? Thanks, Klaas > > > > Well, the ADF support in Kooka is still very buggy. That is mainly > > because I do not have a Scanner with ADF support. Sorry. > > If you could try to describe the problem more in detail, I can try > > to help you. Please consider to update Kooka, 0.35 is quite outdated, > > you should try to update to version 0.40 (although that does not solve > > the ADF-problem probably, but some others). > > In the following environment, it tested immediately. > Redhat: V9 > Kooka: V0.39 (KDE-3.1-10). > > However, the result was NG. > Kooka resets to ADF. > > Kooka is updated to 0.40. > And i try. -- Klaas Freitag Internal Tools - SuSE Linux AG --Boundary-00=_fzEB/TepsqDxJBs Content-Type: text/x-diff; charset="iso-2022-jp"; name="kooka-0.40.dif" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="kooka-0.40.dif" --- libkscan/scanparams.cpp +++ libkscan/scanparams.cpp 2003/07/03 15:21:29 @@ -551,7 +551,7 @@ adf = d.getAdfBehave(); /* set the selected Document source, the behavior is stored in a membervar */ - so.set( sel_source.latin1() ); // FIX in ScanSourceDialog, then here + so.set( QCString(sel_source.latin1()) ); // FIX in ScanSourceDialog, then here sane_device->apply( &so ); kdDebug(29000) << "Dialog finished OK: " << sel_source << ", " << adf << endl; --Boundary-00=_fzEB/TepsqDxJBs-- From till.kamppeter@gmx.net Thu Jul 3 18:06:35 2003 From: till.kamppeter@gmx.net (Till Kamppeter) Date: Thu, 03 Jul 2003 19:06:35 +0200 Subject: [sane-devel] PATCH: XSane hardcodes Netscape as browser Message-ID: <3F04629B.6000101@gmx.net> Oi, for displaying HTML help pages XSane calls always the web browser Netscape and does not try another browser if Netscape is not installed. As newer distros do not ship Netscape any more (or they ship it only in boxed editions) it is often not possible to call the help pages out of XSane. Daouda Lo from MandrakeSoft (daouda at mandrakesoft dot com) has made a patch (for XSane 0.91) to use the BROWSER environment variable which we use in Mandrake Linux from now on as long as the problem is not solved upstream. I have made the patch available here http://www.linuxprinting.org/till/tmp/xsane-0.91-browser.patch.bz2 Oliver, can you apply it to XSane, so that the browser problem will be solved in 0.92? Thanks in advance. Till From oliver.rauch@rauch-domain.de Thu Jul 3 20:46:37 2003 From: oliver.rauch@rauch-domain.de (Oliver Rauch) Date: Thu, 3 Jul 2003 21:46:37 +0200 Subject: [sane-devel] PATCH: XSane hardcodes Netscape as browser In-Reply-To: <3F04629B.6000101@gmx.net> References: <3F04629B.6000101@gmx.net> Message-ID: <200307032146.37301.oliver.rauch@rauch-domain.de> Hello Tim. You can enter a html viewer in xsane->preferences->setup->display. There is no need to patch xsane. Oliver On Thursday 03 July 2003 19:06, Till Kamppeter wrote: > Oi, > > for displaying HTML help pages XSane calls always the web browser > Netscape and does not try another browser if Netscape is not installed. > As newer distros do not ship Netscape any more (or they ship it only in > boxed editions) it is often not possible to call the help pages out of > XSane. > > Daouda Lo from MandrakeSoft (daouda at mandrakesoft dot com) has made a > patch (for XSane 0.91) to use the BROWSER environment variable which we > use in Mandrake Linux from now on as long as the problem is not solved > upstream. > > I have made the patch available here > > http://www.linuxprinting.org/till/tmp/xsane-0.91-browser.patch.bz2 > > Oliver, can you apply it to XSane, so that the browser problem will be > solved in 0.92? Thanks in advance. > > Till > > _______________________________________________ > Sane-devel mailing list > Sane-devel@www.mostang.com > http://www.mostang.com/mailman/listinfo/sane-devel --=20 http://www.xsane.org http://www.mostang.com/sane http://www.rauch-domain.de mailto:Oliver.Rauch@Rauch-Domain.DE From till.kamppeter@gmx.net Thu Jul 3 20:57:14 2003 From: till.kamppeter@gmx.net (Till Kamppeter) Date: Thu, 03 Jul 2003 21:57:14 +0200 Subject: [sane-devel] PATCH: XSane hardcodes Netscape as browser In-Reply-To: <200307032146.37301.oliver.rauch@rauch-domain.de> References: <3F04629B.6000101@gmx.net> <200307032146.37301.oliver.rauch@rauch-domain.de> Message-ID: <3F048A9A.1070104@gmx.net> Oliver Rauch wrote: > Hello Tim. > My name is Till. > You can enter a html viewer in xsane->preferences->setup->display. > There is no need to patch xsane. > Thank you for the info. A suggestion: One could add a checkbox "automatic" and when it is checked, the BROWSER variable is used and if the BROWSER variable is not set, the most common browsers are tried (netscape, mozilla, konqueror, galeon, opera). Till > Oliver > > On Thursday 03 July 2003 19:06, Till Kamppeter wrote: > >>Oi, >> >>for displaying HTML help pages XSane calls always the web browser >>Netscape and does not try another browser if Netscape is not installed. >>As newer distros do not ship Netscape any more (or they ship it only in >>boxed editions) it is often not possible to call the help pages out of >>XSane. >> >>Daouda Lo from MandrakeSoft (daouda at mandrakesoft dot com) has made a >>patch (for XSane 0.91) to use the BROWSER environment variable which we >>use in Mandrake Linux from now on as long as the problem is not solved >>upstream. >> >>I have made the patch available here >> >>http://www.linuxprinting.org/till/tmp/xsane-0.91-browser.patch.bz2 >> >>Oliver, can you apply it to XSane, so that the browser problem will be >>solved in 0.92? Thanks in advance. >> >> Till >> >>_______________________________________________ >>Sane-devel mailing list >>Sane-devel@www.mostang.com >>http://www.mostang.com/mailman/listinfo/sane-devel > > From jb@jblache.org Thu Jul 3 21:42:33 2003 From: jb@jblache.org (Julien BLACHE) Date: Thu, 03 Jul 2003 22:42:33 +0200 Subject: [sane-devel] PATCH: XSane hardcodes Netscape as browser In-Reply-To: <3F048A9A.1070104@gmx.net> (Till Kamppeter's message of "Thu, 03 Jul 2003 21:57:14 +0200") References: <3F04629B.6000101@gmx.net> <200307032146.37301.oliver.rauch@rauch-domain.de> <3F048A9A.1070104@gmx.net> Message-ID: <87y8zfuyti.fsf@frigate.technologeek.org> Till Kamppeter wrote: > A suggestion: One could add a checkbox "automatic" and when it is > checked, the BROWSER variable is used and if the BROWSER variable is > not set, the most common browsers are tried (netscape, mozilla, > konqueror, galeon, opera). Or Mandrake could provide some wrapper script, such as Debian's /usr/bin/sensible-browser script (see the debianutils package). We use that for the browser in XSane. JB. -- Julien BLACHE From oliver.rauch@rauch-domain.de Thu Jul 3 21:57:53 2003 From: oliver.rauch@rauch-domain.de (Oliver Rauch) Date: Thu, 3 Jul 2003 22:57:53 +0200 Subject: [sane-devel] PATCH: XSane hardcodes Netscape as browser In-Reply-To: <3F048A9A.1070104@gmx.net> References: <3F04629B.6000101@gmx.net> <200307032146.37301.oliver.rauch@rauch-domain.de> <3F048A9A.1070104@gmx.net> Message-ID: <200307032257.53532.oliver.rauch@rauch-domain.de> > > Hello Tim. > > My name is Till. Sorry. Hello Till. > A suggestion: One could add a checkbox "automatic" and when it is > checked, the BROWSER variable is used and if the BROWSER variable is no= t > set, the most common browsers are tried (netscape, mozilla, konqueror, > galeon, opera). Yes, but that also does not help when the users do not read the manual or take a look at the setup dialog. I think it does not make the things easier. Oliver --=20 http://www.xsane.org http://www.mostang.com/sane http://www.rauch-domain.de mailto:Oliver.Rauch@Rauch-Domain.DE From gnawa@libero.it Fri Jul 4 00:20:12 2003 From: gnawa@libero.it (gnawa) Date: Fri, 4 Jul 2003 01:20:12 +0200 Subject: [sane-devel] hp 2300c In-Reply-To: <200307032257.53532.oliver.rauch@rauch-domain.de> References: <3F04629B.6000101@gmx.net> <3F048A9A.1070104@gmx.net> <200307032257.53532.oliver.rauch@rauch-domain.de> Message-ID: <200307040120.12819.gnawa@libero.it> hi! i have logged under windows 2k,using usb_snoopy, the messages between the driver and the scanner (hp scanjet 2300c) with the intention of write a backend for my scanner... but now i don't know the next step... i have made it because there are no information about chipset... there is anyone who can help me? thanks a lot! gnawa From rene.rebe@gmx.net Fri Jul 4 00:24:07 2003 From: rene.rebe@gmx.net (Rene Rebe) Date: Fri, 04 Jul 2003 01:24:07 +0200 (CEST) Subject: [sane-devel] HP 7450C ... Try hpusbscsi In-Reply-To: <1057003598.4579.52.camel@localhost.localdomain> References: <1056948336.3460.127.camel@localhost.localdomain> <20030630.104909.730551847.rene.rebe@gmx.net> <1057003598.4579.52.camel@localhost.localdomain> Message-ID: <20030704.012407.607960576.rene.rebe@gmx.net> Hi, please do send debug logs for SANE/Avision with a log higher then 7 only on request. Those contains many thousand lines with calibration data values ... - And you also should not send such big mails to the list (I guess the list software rejected it anyway?) On: 30 Jun 2003 13:06:39 -0700, Thomas Frayne wrote: > The procedure to switch to hpusbscsi, as I currently understand it is= : > = > Turn off the scanner to clear the "initializing" state > Rename back to hpusbscsi.o > Reboot to get Linux to recognize SCSI scanner > Don't do a modprobe; do an rmmod scanner to make sure. > Modify /etc/rc.d/rc.local to remove the modprobe at the next boot > Modify /usr/local/etc/sane.d/avision.conf to remove the usb lines and= > insert: not needed for you - but uncritical: > scsi AVISION > scsi HP > scsi hp > scsi /dev/scanner erhm /dev/usb/scanner0 is not a SCSI device - but this should just error without any bad side-effects ... > scsi /dev/usb/scanner0 > = > umount /proc = > = > Anything wrong, redundant, or missing? > = > Here is what happened this morning: > = > = > 9:32 > [root@localhost root]# rmmod scanner > rmmod: module scanner is not loaded > [root@localhost root]# locate /*/hpusbscsi.* > /hda/9/lib/modules/2.4.18-14/kernel/drivers/usb/hpusbscsi.o > /lib/modules/2.4.20-8/kernel/drivers/usb/hpusbscsi.o > /lib/modules/2.4.20-18.9/kernel/drivers/usb/hpusbscsi.obk Is this a mv A B ; mv B A ??? > [root@localhost root]# mv /lib/modules/2.4.20-8/kernel/drivers/usb/hp= usbscsi.o /lib/modules/2.4.20-8/kernel/drivers/usb/hpusbscsi.obk > [root@localhost root]# mv /lib/modules/2.4.20-18.9/kernel/drivers/usb= /hpusbscsi.obk /lib/modules/2.4.20-18.9/kernel/drivers/usb/hpusbscsi.o > [root@localhost root]# > Modified /etc/rc.d/rc.local to remove the modprobe at the next boot > Modified /usr/local/etc/sane.d/avision.conf = /proc/bus/usb can just be mounted (and must be for other usb devices you may want to use (digital camera ...) > [root@localhost root]# umount /proc/bus/usb > [root@localhost root]# > = > 10:21 > rebooted because of SBC technician testing my DSL connection. > scanner added to hardware recognized by Linux > = > [root@localhost root]# scanimage -L > device `avision:/dev/sg5' is a Hewlett-Packard ScanJet 7400c flatbed = scanner Good - your scanner is recognized on a SCSI device! > [root@localhost root]# sane-find-scanner > = = > found SCSI scanner "hp scanjet 7400c 0.8M" at /dev/scanner > found SCSI scanner "hp scanjet 7400c 0.8M" at /dev/sg5 > found SCSI scanner "hp scanjet 7400c 0.8M" at /dev/sgf sgf and scanner are just links to sg5. I is ok that you only specify on= e in the avisino.conf. Only one needs to be used. [...] > [root@localhost root]# scanimage -L > device `avision:/dev/sg5' is a Hewlett-Packard ScanJet 7400c flatbed = scanner > [root@localhost root]# > = > [root@localhost root]# ls -l /dev/sg5 > crw------- 1 tom root 21, 5 Jan 30 02:24 /dev/sg5 > [root@localhost root]# > = > 11:35 > xsane, scan Failed to start scanner, error during device I/O. > replug Hm - a "SANE_DEBUG_AVISION=3D7 xsane 2> log" would be interesting ... > [root@localhost root]# SANE_DEBUG_AVISION=3D255 scanimage >~/image.pn= m 2>~/scanlog > [root@localhost root] > = > Failed after a long time. Made noises, so I unplugged. > = > [root@localhost root]# umount /proc/bus/usb > [root@localhost root]# SANE_DEBUG_AVISION=3D255 scanimage >~/image.pn= m 2>>~/scanlo > g > = > Failed immediately. I had forgotten to plug in the scanner. > = > [root@localhost root]# SANE_DEBUG_AVISION=3D255 scanimage >~/image.pn= m 2>>~/scanlo > g > = > Made noises. Not as loud. Unplugged. > = > I am attaching scanlog. The log look mostly ok. Could you try to only scan a smal region of the top of the page and using xscanimage or xsane and see if small scans work - and mail be the log of such a tiny scan or for the error if you get one? Sincerely yours, Ren=E9 Rebe - ROCK Linux stable release maintainer -- = Ren=E9 Rebe - Europe/Germany/Berlin rene@rocklinux.org rene.rebe@gmx.net http://www.rocklinux.org http://www.rocklinux.org/people/rene = http://gsmp.tfh-berlin.de/gsmp http://gsmp.tfh-berlin.de/rene From henning@meier-geinitz.de Fri Jul 4 07:39:50 2003 From: henning@meier-geinitz.de (Henning Meier-Geinitz) Date: Fri, 4 Jul 2003 08:39:50 +0200 Subject: [sane-devel] hp 2300c In-Reply-To: <200307040120.12819.gnawa@libero.it> References: <3F04629B.6000101@gmx.net> <3F048A9A.1070104@gmx.net> <200307032257.53532.oliver.rauch@rauch-domain.de> <200307040120.12819.gnawa@libero.it> Message-ID: <20030704063950.GB17943@meier-geinitz.de> Hi, On Fri, Jul 04, 2003 at 01:20:12AM +0200, gnawa wrote: > i have logged under windows 2k,using usb_snoopy, the messages between the > driver and the scanner (hp scanjet 2300c) with the intention of write a > backend for my scanner... but now i don't know the next step... > i have made it because there are no information about chipset... > there is anyone who can help me? Analyze it. Find out, how the protocol works. Are commands used or registers? At which time which command is used? E.g. if a command is used multiple times during the actual scan and returns lots of data it's most probably the "read_scan_data" command (or however you want to name it). A command that is used only once immediately beforet he scan may be the "start_scan" command. Putting the usb snoopy logs somewhere on a web site might also help. Maybe someone recognizes a pattern or has seen that protocol before? Bye, Henning From gnawa@libero.it Fri Jul 4 10:35:18 2003 From: gnawa@libero.it (gnawa) Date: Fri, 4 Jul 2003 11:35:18 +0200 Subject: [sane-devel] hp 2300c In-Reply-To: <20030704063950.GB17943@meier-geinitz.de> References: <3F04629B.6000101@gmx.net> <200307040120.12819.gnawa@libero.it> <20030704063950.GB17943@meier-geinitz.de> Message-ID: <200307041135.18335.gnawa@libero.it> hi! this is a short example of the protocol i have obtained with usb_snoopy there are a lot of istruction like these befor the "read_scan_data" 00000000 0.00000000 UsbSnoop - IRP_MJ_INTERNAL_DEVICE_CONTROL,=20 IOCTL_INTERNAL_USB_SUBMIT_URB=09 00000001 0.00002039 =09 00000002 0.00002654 >>>>>>> URB 2162 going down...=09 00000003 0.00003799 -- URB_FUNCTION_VENDOR_DEVICE:=09 00000004 0.00005140 TransferFlags =3D 00000000=20 (USBD_TRANSFER_DIRECTION_OUT, ~USBD_SHORT_TRANSFER_OK)=09 00000005 0.00006118 TransferBufferLength =3D 00000001=09 00000006 0.00007180 TransferBuffer =3D 8181bf08=09 00000007 0.00008018 TransferBufferMDL =3D 00000000=09 00000008 0.00008828 =09 00000009 0.00010783 0000: 41 =09 00000010 0.00011622 UrbLink =3D 00000000=09 00000011 0.00012488 RequestTypeReservedBits =3D 40=09 00000012 0.00013326 Request =3D 0c=09 00000013 0.00014164 Value =3D 0083=09 00000014 0.00015114 Index =3D 0000=09 00000015 0.00411477 =09 00000016 0.00412091 <<<<<<< URB 2162 coming back...=09 00000017 0.00413237 -- URB_FUNCTION_CONTROL_TRANSFER:=09 00000018 0.00414271 PipeHandle =3D 813c7574=09 00000019 0.00415360 TransferFlags =3D 00000002=20 (USBD_TRANSFER_DIRECTION_OUT, USBD_SHORT_TRANSFER_OK)=09 00000020 0.00416282 TransferBufferLength =3D 00000001=09 00000021 0.00417204 TransferBuffer =3D 8181bf08=09 00000022 0.00418126 TransferBufferMDL =3D 813b0e68=09 00000023 0.00419076 UrbLink =3D 00000000=09 00000024 0.00425976 SetupPacket : 40 0c 83 00 00 00 01 00 =09 00000025 0.00431004 UsbSnoop - IRP_MJ_INTERNAL_DEVICE_CONTROL,=20 IOCTL_INTERNAL_USB_SUBMIT_URB=09 i need some help for understand what is "urb", the meaning of >>>>>> and=20 <<<<<< (i think it's direction of messages in or out...), ..., ..., ..., et= c.=20 the logs are very long :) (making a preview of scannig the log is about 17M= b=20 and then with real scanning the log is about 7Mb) on 10x10(cm) of area... i hope i'm on the right way, but i'm confused too thanks=20 Gnawa Alle 08:39, venerd=EC 4 luglio 2003, Henning Meier-Geinitz ha scritto: > Hi, > > On Fri, Jul 04, 2003 at 01:20:12AM +0200, gnawa wrote: > > i have logged under windows 2k,using usb_snoopy, the messages between t= he > > driver and the scanner (hp scanjet 2300c) with the intention of write a > > backend for my scanner... but now i don't know the next step... > > i have made it because there are no information about chipset... > > there is anyone who can help me? > > Analyze it. Find out, how the protocol works. Are commands used or > registers? At which time which command is used? E.g. if a command is > used multiple times during the actual scan and returns lots of data it's > most probably the "read_scan_data" command (or however you want to > name it). A command that is used only once immediately beforet he scan > may be the "start_scan" command. > > Putting the usb snoopy logs somewhere on a web site might also help. > Maybe someone recognizes a pattern or has seen that protocol before? > > Bye, > Henning > _______________________________________________ > Sane-devel mailing list > Sane-devel@www.mostang.com > http://www.mostang.com/mailman/listinfo/sane-devel From aneeshmraj@hotmail.com Fri Jul 4 11:01:49 2003 From: aneeshmraj@hotmail.com (aneesh m raj) Date: Fri, 4 Jul 2003 15:31:49 +0530 Subject: [sane-devel] To scan color image Message-ID: This is a multi-part message in MIME format. ------=_NextPart_000_0060_01C34241.628BEA70 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi all, Im using scanimage frontend to scan a color image but im getting only in = B&W.how can i set the option to scan images in RGB. Thanks=20 Aneesh ------=_NextPart_000_0060_01C34241.628BEA70 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi all,
Im using scanimage frontend to scan a = color image=20 but im getting only in B&W.how can i set the option to scan images = in=20 RGB.
Thanks
Aneesh
------=_NextPart_000_0060_01C34241.628BEA70-- From bertrik@zonnet.nl Fri Jul 4 11:21:36 2003 From: bertrik@zonnet.nl (bertrik@zonnet.nl) Date: Fri, 4 Jul 2003 12:21:36 +0200 Subject: [sane-devel] hp 2300c In-Reply-To: <200307041135.18335.gnawa@libero.it> References: <3F04629B.6000101@gmx.net> <200307040120.12819.gnawa@libero.it> <20030704063950.GB17943@meier-geinitz.de> <200307041135.18335.gnawa@libero.it> Message-ID: <1057314096.3f055530dc6a5@webmail.zonnet.nl> Citeren gnawa : The log you sent looks similar to what is used in some other scanners (although the fragment is a bit too small to make a definitive conclusion). It looks like the scanner uses a kind of parallel-over-USB protocol, that is also used for the HP3300, HP3400 and HP4300. Each read or write to a scanner register takes 5 USB transfers. There are already some tools to simplify the logs, allowing you to concentrate on the essentials: * modified USB snoopy that does not log the contents of the bulk transfers (logs get enormously big otherwise, or miss parts) * perl-script to further simplify the log and make it more readable * some example code. Can you post an URL to the full log, so I can check if the protocol is really similar? Kind regards, Bertrik Sikken -- _____________________________________________________________________ 2x sneller ADSL met Zon Breedband Family. In combinatie met ZonTel nu voor maar 29 euro per maand. Bestel nu op www.zonnet.nl/breedband Bovendien met gratis modem en geen aansluitkosten! From henning@meier-geinitz.de Fri Jul 4 11:36:06 2003 From: henning@meier-geinitz.de (Henning Meier-Geinitz) Date: Fri, 4 Jul 2003 12:36:06 +0200 Subject: [sane-devel] hp 2300c In-Reply-To: <200307041135.18335.gnawa@libero.it> References: <3F04629B.6000101@gmx.net> <200307040120.12819.gnawa@libero.it> <20030704063950.GB17943@meier-geinitz.de> <200307041135.18335.gnawa@libero.it> Message-ID: <20030704103606.GC17943@meier-geinitz.de> Hi, I'm not an expert in reading USB snoopy logs so some of my interpretation may be wrong. You should have a look at the USB spec (www.usb.org), especially the chapters explaining how a control and a bulk transfer work. On Fri, Jul 04, 2003 at 11:35:18AM +0200, gnawa wrote: > 00000000 0.00000000 UsbSnoop - IRP_MJ_INTERNAL_DEVICE_CONTROL, IOCTL_INTERNAL_USB_SUBMIT_URB > 00000001 0.00002039 > 00000002 0.00002654 >>>>>>> URB 2162 going down... A URB (USB request block) is goes from the application to the operating system which sends it to the device. 2162 is the number of that block. > 00000003 0.00003799 -- URB_FUNCTION_VENDOR_DEVICE: It's a control message. > 00000004 0.00005140 TransferFlags = 00000000 (USBD_TRANSFER_DIRECTION_OUT, ~USBD_SHORT_TRANSFER_OK) USBD_TRANSFER_DIRECTION_OUT means that data (the TransferBuffer) is sent from the host to the device. > 00000005 0.00006118 TransferBufferLength = 00000001 The buffer has a size of one byte. > 00000006 0.00007180 TransferBuffer = 8181bf08 I think that's the pointer to the buffer. Doesn't matter. > 00000007 0.00008018 TransferBufferMDL = 00000000 No idea. > 00000008 0.00008828 > 00000009 0.00010783 0000: 41 The buffer itsself. One byte with a value of 0x41. > 00000010 0.00011622 UrbLink = 00000000 > 00000011 0.00012488 RequestTypeReservedBits = 40 > 00000012 0.00013326 Request = 0c > 00000013 0.00014164 Value = 0083 > 00000014 0.00015114 Index = 0000 These are the values used in the control message (see USB spec). See also the sanei_usb_control_msg function, you'll recognize some of the arguments there. > 00000015 0.00411477 > 00000016 0.00412091 <<<<<<< URB 2162 coming back... Now the URB is finished (sent). > 00000017 0.00413237 -- URB_FUNCTION_CONTROL_TRANSFER: > 00000018 0.00414271 PipeHandle = 813c7574 > 00000019 0.00415360 TransferFlags = 00000002 (USBD_TRANSFER_DIRECTION_OUT, USBD_SHORT_TRANSFER_OK) > 00000020 0.00416282 TransferBufferLength = 00000001 > 00000021 0.00417204 TransferBuffer = 8181bf08 > 00000022 0.00418126 TransferBufferMDL = 813b0e68 > 00000023 0.00419076 UrbLink = 00000000 > 00000024 0.00425976 SetupPacket : 40 0c 83 00 00 00 01 00 That's the control data actual used for the control message. If you look closely, you see how it looks like: 0x40 = request type, 0c = request, 00 83 (little endian) = value, 00 00 = index, 01 00 = size of the buffer. > i need some help for understand what is "urb", the meaning of >>>>>> and > <<<<<< (i think it's direction of messages in or out...), ..., ..., ..., etc. It's the "direction" of the URB. >>> sent from application to operating system, <<< sent back from os to application. > the logs are very long :) (making a preview of scannig the log is about 17Mb > and then with real scanning the log is about 7Mb) on 10x10(cm) of area... That's not unusual. Especially if the scanner chip is not that intelligent :-) E.g. some drivers ask the scanner if it has finished moving back the scanhead. They do this every few milliseconds so you get an enourmous amount of traffic just for this testing. Bye, Henning From henning@meier-geinitz.de Fri Jul 4 11:38:38 2003 From: henning@meier-geinitz.de (Henning Meier-Geinitz) Date: Fri, 4 Jul 2003 12:38:38 +0200 Subject: [sane-devel] To scan color image In-Reply-To: References: Message-ID: <20030704103838.GD17943@meier-geinitz.de> Hi, On Fri, Jul 04, 2003 at 03:31:49PM +0530, aneesh m raj wrote: > Im using scanimage frontend to scan a color image but im getting only > in B&W.how can i set the option to scan images in RGB. That may depend on the backend but usually something like "scanimage --mode Color >image.pnm" should work. See "scanimage --help" and "man scanimage". Bye, Henning From gnawa@libero.it Fri Jul 4 12:40:00 2003 From: gnawa@libero.it (gnawa) Date: Fri, 4 Jul 2003 13:40:00 +0200 Subject: [sane-devel] hp 2300c In-Reply-To: <1057314096.3f055530dc6a5@webmail.zonnet.nl> References: <3F04629B.6000101@gmx.net> <200307041135.18335.gnawa@libero.it> <1057314096.3f055530dc6a5@webmail.zonnet.nl> Message-ID: <200307041340.00407.gnawa@libero.it> > Can you post an URL to the full log, so I can check if the protocol > is really similar? http://gnawa.homeunix.org/2300c_preview.LOG http://gnawa.homeunix.org/2300c_scan.LOG thanks for help to all! Gnawa From tomf@sjpc.org Fri Jul 4 16:12:43 2003 From: tomf@sjpc.org (Thomas Frayne) Date: 04 Jul 2003 08:12:43 -0700 Subject: [sane-devel] HP 7450C ... Try hpusbscsi - black In-Reply-To: <20030704.012407.607960576.rene.rebe@gmx.net> References: <1056948336.3460.127.camel@localhost.localdomain> <20030630.104909.730551847.rene.rebe@gmx.net> <1057003598.4579.52.camel@localhost.localdomain> <20030704.012407.607960576.rene.rebe@gmx.net> Message-ID: <1057331562.3092.1006.camel@localhost.localdomain> On Thu, 2003-07-03 at 16:24, Rene Rebe wrote: > Hi, > > please do send debug logs for SANE/Avision with a log higher then 7 > only on request. OK. I thought it was requested, but not by you. > > On: 30 Jun 2003 13:06:39 -0700, > Thomas Frayne wrote: > ... > > /lib/modules/2.4.20-8/kernel/drivers/usb/hpusbscsi.o > > /lib/modules/2.4.20-18.9/kernel/drivers/usb/hpusbscsi.obk > Is this a mv A B ; mv B A ??? > > [root@localhost root]# mv /lib/modules/2.4.20-8/kernel/drivers/usb/hpusbscsi.o /lib/modules/2.4.20-8/kernel/drivers/usb/hpusbscsi.obk > > [root@localhost root]# mv /lib/modules/2.4.20-18.9/kernel/drivers/usb/hpusbscsi.obk /lib/modules/2.4.20-18.9/kernel/drivers/usb/hpusbscsi.o No. Different directories. I had just upgraded my kernel and disabled hpusbscsi. I enabled it again just for the new kernel. > > [root@localhost root]# > > Modified /etc/rc.d/rc.local to remove the modprobe at the next boot > > Modified /usr/local/etc/sane.d/avision.conf > /proc/bus/usb can just be mounted (and must be for other usb devices > you may want to use (digital camera ...) OK ... > > [root@localhost root]# scanimage -L > > device `avision:/dev/sg5' is a Hewlett-Packard ScanJet 7400c flatbed scanner > > Good - your scanner is recognized on a SCSI device! > > [...] > > Hm - a "SANE_DEBUG_AVISION=7 xsane 2> log" would be interesting ... > ... > > The log look mostly ok. Could you try to only scan a smal region of > the top of the page and using xscanimage or xsane and see if small > scans work - and mail be the log of such a tiny scan or for the error > if you get one? > OK. I unplugged and plugged the scanner and executed SANE_DEBUG_AVISION=7 xsane 2> ~/logscan2 xsane started for Scanjet 7400c:sg6. I unchecked Enable ADF, set Bottom-right x [in] 3.000, Bottom-right y [in] 2.000, and did a prescan. The scanner behaved normally, but produced a completely black image. (I had gotten good images from xsane while using Redhat 8. One of the reasons I upgraded to Redhat 9 was to try to get the ADF running.) I left xsane running, deleted 3000 repeated lines from the scanlog, and got it down to 366K. I am not copying the mailing list. I plan to leave xsane up until next reboot. What next? Tom From bertrik@zonnet.nl Fri Jul 4 18:50:25 2003 From: bertrik@zonnet.nl (Bertrik Sikken) Date: Fri, 04 Jul 2003 19:50:25 +0200 Subject: [sane-devel] hp 2300c In-Reply-To: <200307041340.00407.gnawa@libero.it> References: <3F04629B.6000101@gmx.net> <200307041135.18335.gnawa@libero.it> <1057314096.3f055530dc6a5@webmail.zonnet.nl> <200307041340.00407.gnawa@libero.it> Message-ID: <3F05BE61.4040204@zonnet.nl> gnawa wrote: >>Can you post an URL to the full log, so I can check if the protocol >>is really similar? > > > http://gnawa.homeunix.org/2300c_preview.LOG > http://gnawa.homeunix.org/2300c_scan.LOG Good news, the transfer method is indeed similar to existing ones. This means that it's quite easy to write some routines that read/write from the internal scanner registers or transfer bulk data. The perl USB log tool (originally written by Marian Eicholz) is also able to make the logs more readable (with some persuasion). I think the perl script is also capable of creating a file that can be used to play back previously logged USB transfers. Next thing is to figure out what each register does and write a simple test tool. For example, write a tool that prints the contents of all status registers and see how they change with lamp on/off, scanner button pressed etc. Try to capture logs under windows from several scans, where each time a single scan option changes and the rest stays the same, then compare the logs. Regards, Bertrik From henning@meier-geinitz.de Fri Jul 4 19:38:27 2003 From: henning@meier-geinitz.de (Henning Meier-Geinitz) Date: Fri, 4 Jul 2003 20:38:27 +0200 Subject: [sane-devel] hp 2300c In-Reply-To: <200307041340.00407.gnawa@libero.it> References: <3F04629B.6000101@gmx.net> <200307041135.18335.gnawa@libero.it> <1057314096.3f055530dc6a5@webmail.zonnet.nl> <200307041340.00407.gnawa@libero.it> Message-ID: <20030704183827.GA26626@meier-geinitz.de> Hi, On Fri, Jul 04, 2003 at 01:40:00PM +0200, gnawa wrote: > > Can you post an URL to the full log, so I can check if the protocol > > is really similar? > > http://gnawa.homeunix.org/2300c_preview.LOG > http://gnawa.homeunix.org/2300c_scan.LOG I had a quick look and may have missed some stuff but that's what I found out. I can see the following types of USB messages (scan log): -------------------------- control messages ------------------------------ 1) Control messages that send one byte of data to the device, e.g. URB 2162: 40 0c 83 00 00 00 01 00 (data: 0x41) Request type 40 means: host-to-device, send to the device itsself (not a specific interface or endpoint), vendor request (so the other rules in the USB spec for control messages do not apply). request is 0x0c, value is 0x83 2) Control messages that read one byte of data from the device, e.g. URB 2163: c0 0c 84 00 00 00 01 00 (data: 0x6c) Request type c0 means: device-to-host, send to the device itsself (not a specific interface or endpoint), vendor request request is 0x0c, value is 0x84 3) Control messages that write one byte of data to the device, e.g. URB 2167: 40 0c 85 00 00 00 01 00 (data: 0x11) request is 0x0c, value is 0x85 The message 1) seems to be always followed by 2), 3) or 4). So maybe it's used to select the register (or function) and message 2) is used to read data while 3) is for sending data? 4) Control messages that write 8 bytes of data to the device, e.g. URB 2170: 40 04 82 00 00 00 08 00 (data: 01 11 00 00 06 00 00 00) request is 0x04, value is 0x82 Message 4) seems to be used to initiate a bulk transfer (see below). Byte 5 of the data (06 in this example) and byte 6 (little-endian) is the number of bytes that will be transferred in the following bulk transfer. I don't know what the second byte of data (0x11) means. It's sometimes 0x11, sometimes 0x00. The fisrt byte of data seems to describe the direction of the following bulk-transfer: 01 is out (write), 00 is in (read). 5) Control messages that write 1 byte of data to the device, e.g. URB 3800: 40 0c 8b 00 00 00 01 00 (data: 0x00) request is 0x0c, value is 0x8b 6) Control messages that read 1 byte of data to the device, e.g. URB 3872: c0 0c 8a 00 00 00 01 00 (data: 0x73) request is 0x0c, value is 0x8a I'm not sure about those ones (5) and 6)), they only appear at the end of the scan and some URBs are missing here. -------------------------- bulk messages ------------------------------ 7) bulk-out tranfers: Different sizes are used. They are initiated by control message 4). Maybe the smaller buffers are used to set parameters, the bigger ones to set gamma tables or calibration. 8) bulk-in transfers: Different sizes. Seems to be split to more than one message sometimes. Looks like the windows driver used fixed buffer sizes of e.g. 0x500 bytes, 0x100 bytes or 0x40 bytes. If the number of bytes that should be read doesn't fit into that sizes, multiple buffers are read. E.g. to read 0x102 bytes, 0x100 and 0x40 are read and the last buffer is only filled with 2 bytes. Probably used for calibration and reading scan data. Ok, I think you now have enough information for more digging what that actually means. Bye, Henning From henning@meier-geinitz.de Sat Jul 5 12:26:44 2003 From: henning@meier-geinitz.de (Henning Meier-Geinitz) Date: Sat, 5 Jul 2003 13:26:44 +0200 Subject: [sane-devel] Canon D660u uses Merlin chipset (-->plustek?) Message-ID: <20030705112644.GC26626@meier-geinitz.de> Hi, Just for the record: I got a report from a user that his Canon D660u uses a National Semiconductor LM9832CCVJD chip (and a EliteMT M11B416256A 4 Mbit RAM). I guess that scanner may work with the plustek backends after adding it to plustek-devices.c. I've asked him to try that and am waiting for results. Details about that scanner: http://www.meier-geinitz.de/sane/misc/canon-d660u.txt Bye, Henning From jollyprince@juno.com Sat Jul 5 16:54:50 2003 From: jollyprince@juno.com (jollyprince@juno.com) Date: Sat, 5 Jul 2003 15:54:50 GMT Subject: [sane-devel] Canon D660u uses Merlin chipset (-->plustek?) Message-ID: <20030705.085526.506.280763@webmail03.lax.untd.com> I have a Visioneer 5800 with a Realtek RTS8801C chip. Without cooperation from either company, is there any hope of creating a backend for this product? What productive course of action can I take, if any? --- Henning Meier-Geinitz wrote: Hi, Just for the record: I got a report from a user that his Canon D660u uses a National Semiconductor LM9832CCVJD chip (and a EliteMT M11B416256A 4 Mbit RAM). I guess that scanner may work with the plustek backends after adding it to plustek-devices.c. I've asked him to try that and am waiting for results. Details about that scanner: http://www.meier-geinitz.de/sane/misc/canon-d660u.txt Bye, Henning _______________________________________________ Sane-devel mailing list Sane-devel@www.mostang.com http://www.mostang.com/mailman/listinfo/sane-devel From henning@meier-geinitz.de Sat Jul 5 17:14:58 2003 From: henning@meier-geinitz.de (Henning Meier-Geinitz) Date: Sat, 5 Jul 2003 18:14:58 +0200 Subject: [sane-devel] Canon D660u uses Merlin chipset (-->plustek?) In-Reply-To: <20030705.085526.506.280763@webmail03.lax.untd.com> References: <20030705.085526.506.280763@webmail03.lax.untd.com> Message-ID: <20030705161457.GE26626@meier-geinitz.de> Hi, On Sat, Jul 05, 2003 at 03:54:50PM +0000, jollyprince@juno.com wrote: > I have a Visioneer 5800 with a Realtek RTS8801C chip. We know, you have mentioned that fact more than once :-) But what's the connection to the article about the Canon D660u you are responding to? As you yoursef wrote, the visioneer 5800 uses a Realtek, not a National Semiconductor chip. > Without cooperation from either company, Have you already asked Realtek about programming information for that chip? What about Visioneer? > is there any hope of creating a backend for this product? What > productive course of action can I take, if any? Have you read the documentation you have been ponited, to? E.g. http://www.meier-geinitz.de/sane/misc/unsupported.html http://www.meier-geinitz.de/sane/misc/develop.html and doc/backend-writing.txt? In your case I'd start with trying to capture the USB commands send to the scanner using one of the methods explained in the docu. You know that the HP ScanJet 3530C uses the same (similar?) chip? See http://www.cscs.ch/~tack/hp3530.html . Maybe you can work together? Bye, Henning From gene.heskett@verizon.net Sat Jul 5 18:29:58 2003 From: gene.heskett@verizon.net (Gene Heskett) Date: Sat, 5 Jul 2003 13:29:58 -0400 Subject: [sane-devel] Re: Visioneer 5800? In-Reply-To: <20030705.085526.506.280763@webmail03.lax.untd.com> References: <20030705.085526.506.280763@webmail03.lax.untd.com> Message-ID: <200307051329.58556.gene.heskett@verizon.net> On Saturday 05 July 2003 11:54, jollyprince@juno.com wrote: >I have a Visioneer 5800 with a Realtek RTS8801C chip. Without > cooperation from either company, is there any hope of creating a > backend for this product? What productive course of action can I > take, if any? I'd hate to rain on your parade, but even if you do get it working with sane, if you have a warranty problem with that unit, do NOT even mention to the store clerk or on the warranty form that you have been using it with linux. If you do, the claim will be denied out of hand because that is a memorex house branded unit, and memorex is one of the worst linux haters about. In my case, even though I could demo that it didn't work on a windows box either, the claim was denied because I'm honest and I'd mentioned linux. Something linux did wrecked it, nothing to do with the lightning strike that took out its parallel port, was their response. The fact thay I also lost a modem and a telephone in the same strike somehow wasn't germain to my claim. If you just bought it, return it and get an Epson, like the 1260u, which I think works just fine, my 1250u sure does. After that experience (they were snotty has all get out on the phone), I haven't bought anything I could trace back to memorex. Their loss IMO, and my 'something learned' for the day. [snip Hennings msg since my reply is OT] -- Cheers, Gene AMD K6-III@500mhz 320M Athlon1600XP@1400mhz 512M 99.26% setiathome rank, not too shabby for a WV hillbilly Yahoo.com attornies please note, additions to this message by Gene Heskett are: Copyright 2003 by Maurice Eugene Heskett, all rights reserved. From scott@scottsavarese.com Sat Jul 5 19:49:44 2003 From: scott@scottsavarese.com (Scott Savarese) Date: Sat, 5 Jul 2003 14:49:44 -0400 (EDT) Subject: [sane-devel] xsane cutting off part of scan Message-ID: <35896.216.220.98.209.1057430984.squirrel@mail.scottsavarese.com> I have an HP PSC 2210 printer working with xsane. I have it scanning, but I am having a problem scanning full size papers. If a page is 8.5x11 inches, it only scans the left 8 inches cutting off the right .5 inches. Is there a way to fix this? Let me know what information you need to help. I can send my xsanerc and the printer config file if you'd like. Thanks, Scott From till.kamppeter@gmx.net Sat Jul 5 20:21:16 2003 From: till.kamppeter@gmx.net (Till Kamppeter) Date: Sat, 05 Jul 2003 21:21:16 +0200 Subject: [sane-devel] xsane cutting off part of scan In-Reply-To: <35896.216.220.98.209.1057430984.squirrel@mail.scottsavarese.com> References: <35896.216.220.98.209.1057430984.squirrel@mail.scottsavarese.com> Message-ID: <3F07252C.7070209@gmx.net> You should also post on the HPOJ mailing list (see http://hpoj.sf.net/) so that the developers of HPOJ, the actual driver for this device, see your report. Till Scott Savarese wrote: > I have an HP PSC 2210 printer working with xsane. I have it scanning, but > I am having a problem scanning full size papers. If a page is 8.5x11 > inches, it only scans the left 8 inches cutting off the right .5 inches. > Is there a way to fix this? > > Let me know what information you need to help. I can send my xsanerc and > the printer config file if you'd like. > From tomf@sjpc.org Sat Jul 5 21:03:50 2003 From: tomf@sjpc.org (Thomas Frayne) Date: 05 Jul 2003 13:03:50 -0700 Subject: [sane-devel] HP 7450C ... Try hpusbscsi - scanlog2 In-Reply-To: <20030705.004101.640910003.rene.rebe@gmx.net> References: <1057003598.4579.52.camel@localhost.localdomain> <20030704.012407.607960576.rene.rebe@gmx.net> <1057331386.3092.1002.camel@localhost.localdomain> <20030705.004101.640910003.rene.rebe@gmx.net> Message-ID: <1057435429.15799.40.camel@localhost.localdomain> On Fri, 2003-07-04 at 15:41, Rene Rebe wrote: > Hi, > .. > > (sorry screen prevents me from attaching in mew ... - so here is the > patch inlined - I hope you have a good mailer ...) > > Index: avision.c > =================================================================== > RCS file: /cvsroot/external/sane/sane-backends/backend/avision.c,v > retrieving revision 1.21 > diff -u -r1.21 avision.c > --- avision.c 9 May 2003 01:36:20 -0000 1.21 > +++ avision.c 4 Jul 2003 22:29:44 -0000 > @@ -82,6 +82,9 @@ > All the many other beta-tester and debug-log sender ;-) > > ChangeLog: > + 2003-06-30: René Rebe > + * fixed big-endian issues > + > 2003-05-08: René Rebe > * fixed crash when config is missing reported by Franz Bakan > > @@ -473,7 +476,7 @@ > #endif > > #define BACKEND_NAME avision > -#define BACKEND_BUILD 70 /* avision backend BUILD version */ > +#define BACKEND_BUILD 71 /* avision backend BUILD version */ ... I copied the patch into /home/tom/rh9-downloads/sane-backends-1.0.12/backend/avision.diff and executed [tom@localhost gnucashShadow]$ cd ~/rh9-downloads/sane-backends-1.0.12/backend [tom@localhost backend]$ patch -p0 < ./avision.diff can't find file to patch at input line 8 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |Index: avision.c |=================================================================== |RCS file: /cvsroot/external/sane/sane-backends/backend/avision.c,v |retrieving revision 1.21 |diff -u -r1.21 avision.c |--- avision.c 9 May 2003 01:36:20 -0000 1.21 |+++ avision.c 4 Jul 2003 22:29:44 -0000 -------------------------- File to patch: avision.c patching file avision.c patch: **** malformed patch at line 9: All the many other beta-tester and debug-log sender ;-) [tom@localhost backend]$ I have almost no experience with patch. What went wrong? From jonesrf1@qwest.net Sat Jul 5 14:22:35 2003 From: jonesrf1@qwest.net (Randolph Jones) Date: Sat, 05 Jul 2003 06:22:35 -0700 Subject: [sane-devel] print margin with pbmtolj Message-ID: <3F06D11B.1090903@qwest.net> I am using scanimage with a fujitsu sp15c with adf to scan. I am trying to print with pbmtolj -resolution 300 | lpr -Plpraw lpraw is a raw input queue on the server The output looks pretty good, but the image is printed slightly to the right of the original. I am losing the right-side vertical line on each page, and the left margin is too wide. I dont get this problem with pnmtops, but that output is too rough to use Where can I adjust the parameters to fix this? TIA rfjones From henning@meier-geinitz.de Sat Jul 5 23:38:28 2003 From: henning@meier-geinitz.de (Henning Meier-Geinitz) Date: Sun, 6 Jul 2003 00:38:28 +0200 Subject: [sane-devel] Canon D660u uses Merlin chipset (-->plustek?) In-Reply-To: <20030705.130617.16315.692212@webmail02.lax.untd.com> References: <20030705.130617.16315.692212@webmail02.lax.untd.com> Message-ID: <20030705223828.GF26626@meier-geinitz.de> Hi, On Sat, Jul 05, 2003 at 08:06:02PM +0000, jollyprince@juno.com wrote: >> We know, you have mentioned that fact more than once :-) >> But what's the connection to the article about the Canon D660u you are >> responding to? As you yoursef wrote, the visioneer 5800 uses a >> Realtek, not a National Semiconductor chip. > I had been advised to model any backend that I would write after the > Plustek project, that's all. I think that was because we thought your scanner is based on the E5 chipset which was thought to be a National Semiconductor LM9832. But that is not true, it's realtek. So the plustek backend is not of much use. You can use it as a general example of an USB backend but not much more. It's pretty complex so looking at a simpler backend like ma1509 may make more sense. >> Have you already asked Realtek about programming information for that >> chip? What about Visioneer? > No, i was led to believe this was hopeless. Are you saying , not necessarily so. I don't know any of these companies. When I contacted Mustek, I got good responses, even the Windows source code for some scanners. Some other manufacturers also cooperate so I would just try it. It may be difficult to get the right contact addresses, however. >> Have you read the documentation you have been ponited, to? E.g. >> http://www.meier-geinitz.de/sane/misc/unsupported.html >> http://www.meier-geinitz.de/sane/misc/develop.html >> and >> doc/backend-writing.txt? > > Yes, I'm currently in a state of information overload and I'm saving > everything I can get my hands on. Right now, I'm trying to be more > productive than that. I'm at the crossroads. I may well be better > served to go shopping for a different scanner, That will be definitely easier. > but I simply don't know at this point. With the information and data > I already have maybe I can start, but I just don't know for sure. > I've never done anything like this. > >> In your case I'd start with trying to capture the USB commands send to >> the scanner using one of the methods explained in the docu. > > Now you're talking! Where do I start? Well, I just wrote it in the above sentence. Capture the USB data. The methods how to do that are mentioned in the develop.html web page. Also have a look at the recent discussions on sane-devel on the hp2300 scanner. While that scanner is different, the guy who wants to write the backend also captures the commands the windows driver sends to the scanner. Bye, Henning From franb@ibelgique.com Sun Jul 6 12:13:56 2003 From: franb@ibelgique.com (franb@ibelgique.com) Date: Sun, 6 Jul 2003 11:13:56 GMT Subject: [sane-devel] Access to the ressource has been denied Message-ID: <200307061113.3844@th00.opsion.fr> Hello, I'm getting this message whenever I try use my scanner (it's a Primax colorado Direct 300). It's getting listed without any problems by scanimage -L, but when I try for instance scanimage --lamp-on, I'm getting sane_start:access to the resource has been denied.=20 It's the same when I try to connect via a frontend (xscanimage,xsane). The frontend starts, it recognises the scanner but when I click preview or lamp-on, I get always the same message error. I've never had this problem before on a Mandrake 8.2 or 9.0. It's only since I've upgraded to 9.1 that this happens. Connnecting via saned changes nothing. Off course I tried to connect as root, to chmod 777 on /dev/lp0, to setowner and group to root in saned.conf and to set all the permissions in the net.conf and dll.conf files to localhost. If someone could help, or even give a hint, I would be very thankful. Franek From henning@meier-geinitz.de Sun Jul 6 12:30:36 2003 From: henning@meier-geinitz.de (Henning Meier-Geinitz) Date: Sun, 6 Jul 2003 13:30:36 +0200 Subject: [sane-devel] Access to the ressource has been denied In-Reply-To: <200307061113.3844@th00.opsion.fr> References: <200307061113.3844@th00.opsion.fr> Message-ID: <20030706113036.GB1534@meier-geinitz.de> Hi, On Sun, Jul 06, 2003 at 11:13:56AM +0000, franb@ibelgique.com wrote: > I'm getting this message whenever I try use my > scanner (it's a Primax colorado Direct 300). So you are using the external primax backend? > It's getting listed without any problems by scanimage -L, but when I > try for instance scanimage --lamp-on, I'm getting sane_start:access > to the resource has been denied. Usually you get debug messages by setting SANE_DEBUG_BACKENDNAME, so in your case try SANE_DEBUG_PRIMAX=255 scanimage --lamp-on > It's the same when I try to connect via a frontend > (xscanimage,xsane). The frontend starts, it > recognises the scanner but when I click preview or > lamp-on, I get always the same message error. > I've never had this problem before on a Mandrake 8.2 > or 9.0. It's only since I've upgraded to 9.1 that > this happens. What has changed between these versions? Kernel and/or the version of the primax backend? > Connnecting via saned changes nothing. > Off course I tried to connect as root, to chmod 777 > on /dev/lp0, That's the device for the printer, not the parallel port. > to setowner and group to root in > saned.conf You can't set any oweners or groups in saned.conf. > and to set all the permissions in the > net.conf and dll.conf files to localhost. Huh? You can't set any permissions in these files. > If someone could help, or even give a hint, I would > be very thankful. Maybe the backend doesn't like that you have the ppdev module loaded? Bye, Henning From rene.rebe@gmx.net Sun Jul 6 15:21:30 2003 From: rene.rebe@gmx.net (Rene Rebe) Date: Sun, 06 Jul 2003 16:21:30 +0200 (CEST) Subject: [sane-devel] HP 7450C ... Try hpusbscsi - scanlog2 In-Reply-To: <1057435429.15799.40.camel@localhost.localdomain> References: <1057331386.3092.1002.camel@localhost.localdomain> <20030705.004101.640910003.rene.rebe@gmx.net> <1057435429.15799.40.camel@localhost.localdomain> Message-ID: <20030706.162130.730557932.rene.rebe@gmx.net> Hi, On: 05 Jul 2003 13:03:50 -0700, Thomas Frayne wrote: > I copied the patch into > /home/tom/rh9-downloads/sane-backends-1.0.12/backend/avision.diff > and executed > [tom@localhost gnucashShadow]$ cd > ~/rh9-downloads/sane-backends-1.0.12/backend > [tom@localhost backend]$ patch -p0 < ./avision.diff > can't find file to patch at input line 8 > Perhaps you used the wrong -p or --strip option? > The text leading up to this was: > -------------------------- > |Index: avision.c > |=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > |RCS file: /cvsroot/external/sane/sane-backends/backend/avision.c,v > |retrieving revision 1.21 > |diff -u -r1.21 avision.c > I have almost no experience with patch. What went wrong? The patch directly modifies avision.c, so you need to be in the backend directory. I hope you saved the file with you mail application - otherwise you might get problems due to whitespace / tab convertions ... If this fails I'll send an easier to apply and tested patch tomorrow ... Sincerely yours, Ren=E9 Rebe - ROCK Linux stable release maintainer -- = Ren=E9 Rebe - Europe/Germany/Berlin rene@rocklinux.org rene.rebe@gmx.net http://www.rocklinux.org http://www.rocklinux.org/people/rene = http://gsmp.tfh-berlin.de/gsmp http://gsmp.tfh-berlin.de/rene From tomf@sjpc.org Sun Jul 6 17:22:12 2003 From: tomf@sjpc.org (Thomas Frayne) Date: 06 Jul 2003 09:22:12 -0700 Subject: [sane-devel] HP 7450C ... Try hpusbscsi - scanlog2 In-Reply-To: <20030706.162130.730557932.rene.rebe@gmx.net> References: <1057331386.3092.1002.camel@localhost.localdomain> <20030705.004101.640910003.rene.rebe@gmx.net> <1057435429.15799.40.camel@localhost.localdomain> <20030706.162130.730557932.rene.rebe@gmx.net> Message-ID: <1057508531.15799.391.camel@localhost.localdomain> On Sun, 2003-07-06 at 07:21, Rene Rebe wrote: > Hi, > > On: 05 Jul 2003 13:03:50 -0700, > Thomas Frayne wrote: > > > I copied the patch into > > /home/tom/rh9-downloads/sane-backends-1.0.12/backend/avision.diff > > and executed > > [tom@localhost gnucashShadow]$ cd > > ~/rh9-downloads/sane-backends-1.0.12/backend > > [tom@localhost backend]$ patch -p0 < ./avision.diff > > can't find file to patch at input line 8 > > Perhaps you used the wrong -p or --strip option? > > The text leading up to this was: > > -------------------------- > > |Index: avision.c > > |=================================================================== > > |RCS file: /cvsroot/external/sane/sane-backends/backend/avision.c,v > > |retrieving revision 1.21 > > |diff -u -r1.21 avision.c > > > I have almost no experience with patch. What went wrong? > > The patch directly modifies avision.c, so you need to be in the > backend directory. > > I hope you saved the file with you mail application - otherwise you > might get problems due to whitespace / tab convertions ... > > If this fails I'll send an easier to apply and tested patch tomorrow > ... > > Sincerely yours, > René Rebe > - ROCK Linux stable release maintainer > > -- > René Rebe - Europe/Germany/Berlin > rene@rocklinux.org rene.rebe@gmx.net > http://www.rocklinux.org http://www.rocklinux.org/people/rene > http://gsmp.tfh-berlin.de/gsmp http://gsmp.tfh-berlin.de/rene > I was in the backend directory and had gotten past the problem you quoted. What I was asking about was: File to patch: avision.c patching file avision.c patch: **** malformed patch at line 9: All the many other beta-tester and debug-log sender ;-) I don't know why the patch was malformed. The text it was complaining about was: Index: avision.c =================================================================== RCS file: /cvsroot/external/sane/sane-backends/backend/avision.c,v retrieving revision 1.21 diff -u -r1.21 avision.c --- avision.c 9 May 2003 01:36:20 -0000 1.21 +++ avision.c 4 Jul 2003 22:29:44 -0000 @@ -82,6 +82,9 @@ All the many other beta-tester and debug-log sender ;-) ChangeLog: + 2003-06-30: René Rebe + * fixed big-endian issues + I am leaving for a trip tomorrow. Back at the end of the week. Thanks, Tom Frayne From gerhard@gjaeger.de Sun Jul 6 19:41:33 2003 From: gerhard@gjaeger.de (Jaeger, Gerhard) Date: Sun, 6 Jul 2003 20:41:33 +0200 Subject: [sane-devel] Canon D660u uses Merlin chipset (-->plustek?) In-Reply-To: <20030705112644.GC26626@meier-geinitz.de> References: <20030705112644.GC26626@meier-geinitz.de> Message-ID: <200307062041.33440.gerhard@gjaeger.de> Hi, according to the info, I'll add the scanner to the device list... What are the specs for this scanner (resolution, etc...)? AFAIK this is a CCD device, is that correct? Are there any volunteers to test this scanner? Gerhard On Samstag, 5. Juli 2003 13:26, Henning Meier-Geinitz wrote: > Hi, > > Just for the record: I got a report from a user that his Canon D660u > uses a National Semiconductor LM9832CCVJD chip (and a EliteMT > M11B416256A 4 Mbit RAM). I guess that scanner may work with the > plustek backends after adding it to plustek-devices.c. I've asked him > to try that and am waiting for results. > > Details about that scanner: > http://www.meier-geinitz.de/sane/misc/canon-d660u.txt > > Bye, > Henning > _______________________________________________ > Sane-devel mailing list > Sane-devel@www.mostang.com > http://www.mostang.com/mailman/listinfo/sane-devel From gerhard@gjaeger.de Sun Jul 6 20:10:26 2003 From: gerhard@gjaeger.de (Jaeger, Gerhard) Date: Sun, 6 Jul 2003 21:10:26 +0200 Subject: [sane-devel] canon lide 20 + mac os x + usb In-Reply-To: <20030703115742.GC12717@meier-geinitz.de> References: <20030701085315.GB3290@meier-geinitz.de> <0D339075-AC53-11D7-9713-0003931DA274@casino.uni-stuttgart.de> <20030703115742.GC12717@meier-geinitz.de> Message-ID: <200307062110.26960.gerhard@gjaeger.de> Hi, On Donnerstag, 3. Juli 2003 13:57, Henning Meier-Geinitz wrote: [SNIPSNAP] > > With the patch the scanner now does what it is supposed to, i.e. it > > scanes the area that I specify, but the resulting picture is just > > garbage. In color mode there is a faint resemblance with the original > > (though there are reddisch vertical stripes), while in the other modes, > > there is either black only, or also garbage (vertical stripes). > > No idea about those problems. Maybe the plustek maintainer has seen > that before? > That's why I'm writing about "poor picture quality", but in the meantime, the quality is not that bad to say "it's garbage". It might be, that there are endian problems left. Gerhard From karsten.festag@gmx.de Sun Jul 6 21:35:02 2003 From: karsten.festag@gmx.de (Karsten Festag) Date: Sun, 6 Jul 2003 22:35:02 +0200 Subject: [sane-devel] Re: Microtek SlimScan C6 on Mac OS X In-Reply-To: <7E65E923-AE87-11D7-BDC5-0003934EC2A4@headsail.net> References: <7E65E923-AE87-11D7-BDC5-0003934EC2A4@headsail.net> Message-ID: <200307062235.02087.karsten.festag@gmx.de> Hi Dave, unfortunately I have no experiences with OS X and SANE. But I will cc this mail to the SANE mailing list, hopefully someone can tell you some more details. But I'm not sure if you can get your scanner to work out of the box because there needs to be a piece of software that translates the USB signals to SCSI commands that are used in the scanner software (backend). In Linux there is a kernel module (microtek.c); I don't know if there is something similar under OS X. ( SANE experts, please comment on this...) regards, Karsten On Saturday 05 July 2003 03:24, you wrote: > Mr. Festag - > > I am not a developer, so I don't understand most of what I read on the > SANE web site, but I am trying to use a Microtek SlimScan C6 (USB) on a > Macintosh running OS X 10.2.6. I can scan in Classic mode, but I would > prefer to scan in OS X. Are you aware of any user-friendly front end > that will do this? If there's an application I can run through the UNIX > terminal, I suppose I could do that as well. > > Thank you, > > - Dave Hudson > > -- > Dave and Wendy Hudson > dwhudson@headsail.net > www.dwhudson.net From franb@ibelgique.com Mon Jul 7 00:07:01 2003 From: franb@ibelgique.com (franb@ibelgique.com) Date: Sun, 6 Jul 2003 23:07:01 GMT Subject: Rep:Re: [sane-devel] Access to the ressource has been denied Message-ID: <200307062307.0159@th00.opsion.fr> Henning, thanks for your quick reply. >So you are using the external primax backend? Yes I am, http://px-backend.sourceforge.net/ >> It's getting listed without any problems by scanimage -L, >but when I >> try for instance scanimage --lamp-on, I'm getting >sane_start:access >> to the resource has been denied.=20 >Usually you get debug messages by setting >SANE_DEBUG_BACKENDNAME, so >in your case try >SANE_DEBUG_PRIMAX=3D255 scanimage --lamp-on Ok, I did it, but this gives no other results (it still only prints the error message). I tried SANE_DEBUG_DLL and I've got something there. But IMHO nothing seemed strange. I can send the results if someone wants me to do so. >>It's only since I've upgraded to 9.1 that >> this happens. >What has changed between these versions? Kernel and/or the >version of the primax backend? Maybe the kernel, but I'm not sure. If there was a change it was a minor one. The backend did certainly not change. >> Connnecting via saned changes nothing. >> Off course I tried to connect as root, to chmod 777 >> on /dev/lp0, >That's the device for the printer, not the parallel port. scanimage -L shows me this, so I assume it's right what I'm doing. Anyway it worked before like this. >Maybe the backend doesn't like that you have the ppdev >module loaded? Sorry, I'm not an expert. Could you explain this to me? Thanks for your help Franek From priyag" This is a multi-part message in MIME format. ------=_NextPart_000_006E_01C34472.50734D00 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi ,=20 I have a avision 600U USB scanner. But sane-find-scanner is not able to = find that scanner. i m using sane backend 1.0.12 and kernel version 2.4.18.=20 Do i need to configire or install something for running the USB scanner? Regards, Priya Gupta ------=_NextPart_000_006E_01C34472.50734D00 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi ,
 
I have a avision 600U = USB scanner. But=20 sane-find-scanner is not able to find that scanner.
 
i m using sane backend 1.0.12 and = kernel version=20 2.4.18.
Do i need to configire or install = something for=20 running the USB scanner?
 
Regards,
Priya = Gupta
------=_NextPart_000_006E_01C34472.50734D00-- From henning@meier-geinitz.de Mon Jul 7 13:55:50 2003 From: henning@meier-geinitz.de (Henning Meier-Geinitz) Date: Mon, 7 Jul 2003 14:55:50 +0200 Subject: Rep:Re: [sane-devel] Access to the ressource has been denied In-Reply-To: <200307062307.0159@th00.opsion.fr> References: <200307062307.0159@th00.opsion.fr> Message-ID: <20030707125550.GA8571@meier-geinitz.de> Hi, On Sun, Jul 06, 2003 at 11:07:01PM +0000, franb@ibelgique.com wrote: > >> to the resource has been denied. > >Usually you get debug messages by setting > >SANE_DEBUG_BACKENDNAME, so > >in your case try > >SANE_DEBUG_PRIMAX=255 scanimage --lamp-on > > Ok, I did it, but this gives no other results (it > still only prints the error message). I tried > SANE_DEBUG_DLL and I've got something there. But IMHO > nothing seemed strange. I can send the results if > someone wants me to do so. You are right. The promax backend doesn't seem to have any debug messages. > >>It's only since I've upgraded to 9.1 that > >> this happens. > >What has changed between these versions? Kernel > and/or the >version of the primax backend? > > Maybe the kernel, but I'm not sure. If there was a > change it was a minor one. The backend did certainly > not change. Does the command line program work (primax_scan)? Have you changed the settings of your parallel port, e.g. ECP to EPP in the BIOS? Or added a printer? > >> Connnecting via saned changes nothing. > >> Off course I tried to connect as root, to chmod > 777 > >> on /dev/lp0, > > >That's the device for the printer, not the parallel > port. > scanimage -L shows me this, so I assume it's right > what I'm doing. Anyway it worked before like this. Ok. Usually /dev/lp0 is the pronter and /dev/parport is the raw parallel port or /dev/port if the ppdev module is not loaded. But I'm neither a parport expert nor I know the primax backend so maybe /dev/lp0 is right. > >Maybe the backend doesn't like that you have the > ppdev >module loaded? > > Sorry, I'm not an expert. Could you explain this to > me? I don't know exactly, how the primax backend accesses the parallel port. There are some ways to do that: 1) Using assembler (inb, outb) and access the raw port directly 2) Using /dev/port These two need root permissions 3) Using /dev/parport0 I think using that way you don't need root permissions but the kernel must have the ppdev driver (modprobe ppdev). So maybe you get trouble when you mix these methods. If you don't find details in the docu, try to contact the authors of the promax backend. I'm not sure if they read this list. Bye, Henning From tomf@sjpc.org Mon Jul 7 14:05:57 2003 From: tomf@sjpc.org (Thomas Frayne) Date: 07 Jul 2003 06:05:57 -0700 Subject: [sane-devel] HP 7450C ... Try hpusbscsi - scanlog2 In-Reply-To: <20030706.162130.730557932.rene.rebe@gmx.net> References: <1057331386.3092.1002.camel@localhost.localdomain> <20030705.004101.640910003.rene.rebe@gmx.net> <1057435429.15799.40.camel@localhost.localdomain> <20030706.162130.730557932.rene.rebe@gmx.net> Message-ID: <1057583156.15799.405.camel@localhost.localdomain> On Sun, 2003-07-06 at 07:21, Rene Rebe wrote: > Hi, > > On: 05 Jul 2003 13:03:50 -0700, > Thomas Frayne wrote: > > > I copied the patch into > > /home/tom/rh9-downloads/sane-backends-1.0.12/backend/avision.diff > > and executed > > [tom@localhost gnucashShadow]$ cd > > ~/rh9-downloads/sane-backends-1.0.12/backend > > [tom@localhost backend]$ patch -p0 < ./avision.diff > > can't find file to patch at input line 8 > > Perhaps you used the wrong -p or --strip option? > > The text leading up to this was: > > -------------------------- > > |Index: avision.c > > |=================================================================== > > |RCS file: /cvsroot/external/sane/sane-backends/backend/avision.c,v > > |retrieving revision 1.21 > > |diff -u -r1.21 avision.c > > > I have almost no experience with patch. What went wrong? > > The patch directly modifies avision.c, so you need to be in the > backend directory. > > I hope you saved the file with you mail application - otherwise you > might get problems due to whitespace / tab convertions ... > > If this fails I'll send an easier to apply and tested patch tomorrow > ... > > Sincerely yours, > René Rebe > - ROCK Linux stable release maintainer > > -- > René Rebe - Europe/Germany/Berlin > rene@rocklinux.org rene.rebe@gmx.net > http://www.rocklinux.org http://www.rocklinux.org/people/rene > http://gsmp.tfh-berlin.de/gsmp http://gsmp.tfh-berlin.de/rene > I was in the backend directory and had gotten past the problem you quoted. What I was asking about was: File to patch: avision.c patching file avision.c patch: **** malformed patch at line 9: All the many other beta-tester and debug-log sender ;-) I don't know why the patch was malformed. The text it was complaining about was: Index: avision.c =================================================================== RCS file: /cvsroot/external/sane/sane-backends/backend/avision.c,v retrieving revision 1.21 diff -u -r1.21 avision.c --- avision.c 9 May 2003 01:36:20 -0000 1.21 +++ avision.c 4 Jul 2003 22:29:44 -0000 @@ -82,6 +82,9 @@ All the many other beta-tester and debug-log sender ;-) ChangeLog: + 2003-06-30: René Rebe + * fixed big-endian issues + I am leaving for a trip tomorrow. Back at the end of the week. Thanks, Tom Frayne P.S. I tried editing the first few lines of the patch to make them conform to the contents of the same lines in avision.c. The malformed patch message then refers to the first line I did not edit. I think that the problem is that my mail reader (Evolution) changed the font and spacing. It may be necessary to send the patch as an attachment. I am leaving for my trip in a couple of hours. Tom Frayne From haidara@gucmed.com Tue Jul 8 00:12:55 2003 From: haidara@gucmed.com (Ayman Haidar) Date: Mon, 7 Jul 2003 19:12:55 -0400 Subject: [sane-devel] scanner recommendations Message-ID: <200307071910.49769.haidara@gucmed.com> Hello, I am asking for recommendations on a scanner that I will use in the office to scan test documents, I am expecting to scan about 100pages/day. obviously I want one that has ADF and works well with sane. Somebody recommended Fujitsu scanners, I know the backend seems to be in Beta which is fine but I would like to hear more recommendations. Thanks Ayman From dave@i-r-labs.com Tue Jul 8 02:03:10 2003 From: dave@i-r-labs.com (David A Iacobellis) Date: Mon, 7 Jul 2003 21:03:10 -0400 Subject: [sane-devel] SuSE 8.2 and umax scanner Message-ID: <200307072103.10973.dave@i-r-labs.com> Hello, This is the first time I have posted to this list. I read in your June list that another person is having the exact same problem with SuSE 8.2 that I am having. I am also using an adaptec 2904 card with a umax 1200s scanner. Each time I have tried to obtain a preview either with xsane or kooka my system will lock up tight forcing me to power down (sort of reminds me of my windows days). I am getting the same resmgr messages prior to the system lockup as the other person but no scsi error message. Did anybody figure out what the problem is and how to fix it? SuSE 8.2 uses sane 1.0.10 -36. SuSE has been very uncooperative in helping me solve this issue and seeing the exact same problem from another SuSE 8.2 user makes me really think this is a SuSE config problem. Also, everything worked great with SuSE 8.1 and 8.0. Please let me know. Dave From psfales@lucent.com Tue Jul 8 02:55:11 2003 From: psfales@lucent.com (Peter Fales) Date: Mon, 7 Jul 2003 20:55:11 -0500 Subject: [sane-devel] Microtek Pagewiz In-Reply-To: <20030701130008.26394d3d.mpol@gmx.net> References: <20030628163756.GA4381@lucent.com> <20030701130008.26394d3d.mpol@gmx.net> Message-ID: <20030708015511.GA25982@lucent.com> On Tue, Jul 01, 2003 at 01:00:08PM +0200, Marcel Pol wrote: > On Sat, 28 Jun 2003 11:37:56 -0500 > Peter Fales wrote: > > Anyone know anything about Microtek Pagewiz Color Sheetfed Scanner? > It worked for me, but I haven't used it in about 2 or 3 years. ... > But if you want to, you can use a scsi card as well > to connect it to, you would just need to buy another cable for that. Just following up for the record. I got the scanner today, and it works great using the Microtek backend. I'm using the direct SCSI connection, so I don't have to deal with ppSCSI and it's faster than my flatbed Microtek E6. The only minor problem I've found is that it takes a SCSI error if you try to scan more than the actual paper size (e.g. you tell it to scan 12 inches when the paper is only 11 inches long) -- Peter Fales Lucent Technologies, Room 1C-436 N9IYJ 2000 N Naperville Rd PO Box 3033 internet: psfales@lucent.com Naperville, IL 60566-7033 work: (630) 979-8031 From aneeshmraj@hotmail.com Wed Jul 9 06:48:58 2003 From: aneeshmraj@hotmail.com (aneesh m raj) Date: Wed, 9 Jul 2003 11:18:58 +0530 Subject: [sane-devel] How to print color image Message-ID: This is a multi-part message in MIME format. ------=_NextPart_000_006E_01C3460B.E4941380 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi all, Im developing a frontend and Im confused with the SANE_Option_Descriptor = structure. How can I set to scan the image in RGB. Thanks Aneesh ------=_NextPart_000_006E_01C3460B.E4941380 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi all,
Im developing a frontend and Im = confused with the=20 SANE_Option_Descriptor structure. How can I set to scan the image in=20 RGB.
Thanks
Aneesh
 
------=_NextPart_000_006E_01C3460B.E4941380-- From ahg@servidor.unam.mx Wed Jul 9 06:56:01 2003 From: ahg@servidor.unam.mx (ahg@servidor.unam.mx) Date: Wed, 09 Jul 2003 00:56:01 -0500 (CDT) Subject: [sane-devel] UMAX Astra 610P on Debian Woody Message-ID: <1057730161.3f0bae7125c67@www.correo.unam.mx> Hi, I'm writing to ask what's the best way (if there is a way) to use a UMAX Astra 610P scanner with Debian Woody. This device is listed as "don't work (yet)" at http://panda.mostang.com/sane/sane-mfgs.html#UMAX I guess I'm hoping that "don't work" might be a bit out of date and that there's _some_ way to make it work "now". I could... ...install sane the latest SANE binaries as described at http://people.debian.org/~aurel32/sane.html ...or ...get an unstable source of sane-umax_pp ...or ...anything else you might recommend. I don't mind if there are a few hoops to jump through to get this working. However, the box and the scanner aren't mine, and I have to leave them in relatively good working order for non-techincal GNU/Linux newbies, so any solution has to be relatively low-maintenance. Thanks in advance for your help, Andrew P.S. If this works, will I be able to connect a printer to the scaner's "to printer" port? P.P.S. The machine also has Win 98 installed and the scanner works OK under that "operating system"... so I suppose I might be able to make it work under Wine... though if that's the way to go I'd appreciate one or two brief pointers as to where to start... Thanks again. ------------------------------------------------- Obtén tu correo en www.correo.unam.mx UNAMonos Comunicándonos From henning@meier-geinitz.de Wed Jul 9 10:27:53 2003 From: henning@meier-geinitz.de (Henning Meier-Geinitz) Date: Wed, 9 Jul 2003 11:27:53 +0200 Subject: [sane-devel] How to print color image In-Reply-To: References: Message-ID: <20030709092753.GD1761@meier-geinitz.de> Hi, On Wed, Jul 09, 2003 at 11:18:58AM +0530, aneesh m raj wrote: > Im developing a frontend and Im confused with the > SANE_Option_Descriptor structure. How can I set to scan the image in > RGB. You (as the frontend programmer) don't do that. Instead the user sets the option that represents the scan mode as he likes. Usually this option is named "mode" and is a string list with values like "Color" or "Gray". Keep in mind that this option needn't exist and even if it exists, there may not be a color mode. Bye, Henning From henning@meier-geinitz.de Wed Jul 9 10:35:46 2003 From: henning@meier-geinitz.de (Henning Meier-Geinitz) Date: Wed, 9 Jul 2003 11:35:46 +0200 Subject: [sane-devel] problem while detecting USB scanner In-Reply-To: <007101c34444$374c2d70$5505a8c0@priya> References: <007101c34444$374c2d70$5505a8c0@priya> Message-ID: <20030709093546.GE1761@meier-geinitz.de> Hi, On Mon, Jul 07, 2003 at 10:27:06AM +0530, priyag wrote: > I have a avision 600U USB scanner. That scanner is listed as "untested" so I don't know if it works. > But sane-find-scanner is not able to find that scanner. In this case you probably haven't installed libusb or /proc/bus/usb is not set up correctly. See the man page sane-usb for details. > i m using sane backend 1.0.12 and kernel version 2.4.18. > Do i need to configire or install something for running the USB scanner? Since version 1.0.12 the avision backend makes use of libusb to access USB scanners. Before that version, a kernel module "hpusbscsi" was necessary. For details have a look at the archive of the sane-devel mailing list. There was a discussion about this topic during the lat one or two weeks. Bye, Henning From aanton@reversedhell.net Tue Jul 8 00:36:15 2003 From: aanton@reversedhell.net (Alin-Adrian Anton) Date: Tue, 08 Jul 2003 02:36:15 +0300 Subject: [sane-devel] freebsd parallel port scanner Message-ID: <3F0A03EF.5060506@reversedhell.net> Hello guys, I was desperately searching the web, the mailing lists, etc, in order to find out if it is possible to use sane + freebsd + parallel port scanner. For my particular case, I have a Color Vivid Page Pro II which is fully supported by the plustek backened, as stable. They say for parallel port devices, a special kernel module needs to be installed. But I only found a linux kernel module, and I need to get it work on FreeBSD. I will really be thankfull for any help. I MUST use the scanner on freebsd! Also, if any of you knows a parallel device working on *BSD please tell me that too. I want to know if I really have to port the linux module. Best Regards, Anton Alin-Adrian. From priyag" This is a multi-part message in MIME format. ------=_NextPart_000_000D_01C34650.75B04480 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, I m running avision scanners on Red hat Linux 8.0. With scanimage its = working fine. But when i try to scan through XSANE its not able to = detect the scanner. I have XSANE version 0.90 installed on my system. Can anyone tell me what to do?? Regards Priya Gupta ------=_NextPart_000_000D_01C34650.75B04480 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi,
 
I m running avision scanners on Red hat = Linux 8.0.=20 With scanimage its working fine. But when i try to scan through XSANE = its not=20 able to detect the scanner. I have XSANE version 0.90 installed on my=20 system.
 
Can anyone tell me what to = do??
 
Regards
Priya Gupta
 
------=_NextPart_000_000D_01C34650.75B04480-- From henning@meier-geinitz.de Wed Jul 9 18:55:27 2003 From: henning@meier-geinitz.de (Henning Meier-Geinitz) Date: Wed, 9 Jul 2003 19:55:27 +0200 Subject: [sane-devel] problem finding scanner through XSANE In-Reply-To: <001001c34622$5c08d160$5505a8c0@priya> References: <001001c34622$5c08d160$5505a8c0@priya> Message-ID: <20030709175527.GA6036@meier-geinitz.de> Hi, On Wed, Jul 09, 2003 at 07:29:48PM +0530, priyag wrote: > I m running avision scanners on Red hat Linux 8.0. With scanimage its > working fine. But when i try to scan through XSANE its not able to > detect the scanner. I have XSANE version 0.90 installed on my system. > > Can anyone tell me what to do?? Maybe you have installed two versions of sane-backends at the same time but in different directories? E.g. the one from your distribution and another self-compiled version? Make sure that you have only one version of the backends at the same time. Bye, Henning From aneeshmraj@hotmail.com Fri Jul 4 07:32:05 2003 From: aneeshmraj@hotmail.com (aneesh m raj) Date: Fri, 4 Jul 2003 12:02:05 +0530 Subject: [sane-devel] How to scan color images in UMAX 2000p Message-ID: This is a multi-part message in MIME format. ------=_NextPart_000_000B_01C34224.1649FF70 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi all, How can I scan color images using scanimage. I couldnt find any options. Thanks Aneesh ------=_NextPart_000_000B_01C34224.1649FF70 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi all,
How can I scan color images using = scanimage. I=20 couldnt find any options.
Thanks
Aneesh
------=_NextPart_000_000B_01C34224.1649FF70-- From mouse@Rodents.Montreal.QC.CA Wed Jul 9 22:49:06 2003 From: mouse@Rodents.Montreal.QC.CA (der Mouse) Date: Wed, 9 Jul 2003 17:49:06 -0400 (EDT) Subject: [sane-devel] How to scan color images in UMAX 2000p In-Reply-To: References: Message-ID: <200307092205.SAA05414@Sparkle.Rodents.Montreal.QC.CA> > How can I scan color images using scanimage. I couldnt find any > options. I think this is backend-dependent (indeed, it almost has to be, given the variety of things "color" can mean and the ways different scanners can implement them). With the teco1 backend, the one my scanner uses, it's "--mode color" (if memory serves). /~\ The ASCII der Mouse \ / Ribbon Campaign X Against HTML mouse@rodents.montreal.qc.ca / \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B From priyag" This is a multi-part message in MIME format. ------=_NextPart_000_0029_01C346E3.2D0EA1C0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi,=20 I have just started working on SANE and LINUX.=20 Can anybody let me know that if i want to add something in the source = code of SANE backend or XSANE then how to go about that? I mean if i = want to add my additions too in the latest SANE or XSANE release then = how to go about that???? Regards Priya Gupta ------=_NextPart_000_0029_01C346E3.2D0EA1C0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi,
 
I have just started working on SANE and = LINUX.=20
 
Can anybody let me know that if i want = to add=20 something in the source code of SANE backend or XSANE then how to go = about that?=20 I mean if i want to add my additions too in the latest SANE or = XSANE=20 release then how to go about that????
 
Regards
Priya Gupta
 
------=_NextPart_000_0029_01C346E3.2D0EA1C0-- From priyag" Message-ID: <005201c346c1$a35a6a70$5505a8c0@priya> Hi Haidar, I have just tested an Avision 8000 S scanner on sane. It works fine with SANE. The backend for this is regularly tested. Even i have tested that myslef also. The ppm(Pages per minute) for A4, 200 dpi resolution , portrait orientation, Line Art mode is 30. So you can very well scan 100 pages per day.. and even more. This ppm is even more if you scan with Landscape orientation. regards Priya Gupta > Message: 1 > From: Ayman Haidar > Reply-To: haidara@gucmed.com > To: Sane-devel@www.mostang.com > Date: Mon, 7 Jul 2003 19:12:55 -0400 > Subject: [sane-devel] scanner recommendations > > Hello, > > I am asking for recommendations on a scanner that I will use in the office to > scan test documents, I am expecting to scan about 100pages/day. obviously I > want one that has ADF and works well with sane. > > Somebody recommended Fujitsu scanners, I know the backend seems to be in Beta > which is fine but I would like to hear more recommendations. > > Thanks > > Ayman > From henning@meier-geinitz.de Thu Jul 10 10:43:29 2003 From: henning@meier-geinitz.de (Henning Meier-Geinitz) Date: Thu, 10 Jul 2003 11:43:29 +0200 Subject: [sane-devel] How to do the source modification? In-Reply-To: <002c01c346b5$1751af40$5505a8c0@priya> References: <002c01c346b5$1751af40$5505a8c0@priya> Message-ID: <20030710094329.GB6036@meier-geinitz.de> Hi, On Thu, Jul 10, 2003 at 01:00:02PM +0530, priyag wrote: > Can anybody let me know that if i want to add something in the source > code of SANE backend or XSANE then how to go about that? I mean if i > want to add my additions too in the latest SANE or XSANE release then > how to go about that???? You can get a daily snapshot of sane-backends from http://sane.informatik.uni-freiburg.de/anoncvs/ . Modify that, make a patch of it and send it to this list. Or, if the patch is too big, put it on a website somewhere and tell us where it is and what it does. If it's ok, one of the developers may commit it to CVS. Bye, Henning From henning@meier-geinitz.de Thu Jul 10 11:03:27 2003 From: henning@meier-geinitz.de (Henning Meier-Geinitz) Date: Thu, 10 Jul 2003 12:03:27 +0200 Subject: [sane-devel] freebsd parallel port scanner In-Reply-To: <3F0A03EF.5060506@reversedhell.net> References: <3F0A03EF.5060506@reversedhell.net> Message-ID: <20030710100327.GD6036@meier-geinitz.de> Hi, On Tue, Jul 08, 2003 at 02:36:15AM +0300, Alin-Adrian Anton wrote: > I was desperately searching the web, the mailing lists, etc, in order to > find out if it is possible to use sane + freebsd + parallel port scanner. > > For my particular case, I have a Color Vivid Page Pro II which is fully > supported by the plustek backened, as stable. They say for parallel port > devices, a special kernel module needs to be installed. But I only found > a linux kernel module, and I need to get it work on FreeBSD. > > I will really be thankfull for any help. I MUST use the scanner on freebsd! If you must, write a module for FreeBSD :-) > Also, if any of you knows a parallel device working on *BSD please tell > me that too. I want to know if I really have to port the linux module. Some of the other parport scanners are accessed without kernel modules, e.g. by using inb/outb. That should work with FreeBSD also. The Mustek Paragon 600 II N is not really a parallel port scanner but uses its own ISA card which is very similar to a parport card. As far as I know, it works on FreeBSD also. Bye, Henning From twaugh@redhat.com Thu Jul 10 11:43:00 2003 From: twaugh@redhat.com (Tim Waugh) Date: Thu, 10 Jul 2003 11:43:00 +0100 Subject: [sane-devel] freebsd parallel port scanner In-Reply-To: <20030710100327.GD6036@meier-geinitz.de> References: <3F0A03EF.5060506@reversedhell.net> <20030710100327.GD6036@meier-geinitz.de> Message-ID: <20030710104300.GC6867@redhat.com> --x0PBmTWHB3bjoOVh Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Jul 10, 2003 at 12:03:27PM +0200, Henning Meier-Geinitz wrote: > Some of the other parport scanners are accessed without kernel > modules, e.g. by using inb/outb. That should work with FreeBSD also. > The Mustek Paragon 600 II N is not really a parallel port scanner but > uses its own ISA card which is very similar to a parport card. As far > as I know, it works on FreeBSD also. Any driver using libieee1284 ought to work on FreeBSD I think. Tim. */ --x0PBmTWHB3bjoOVh Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQE/DUMztO8Ac4jnUq4RAs3/AKCGHbK7L0vDE4hUuQNFVEsPkCYqQwCcCF+s yg+rb6P5eUrdhR9y6aeo+Qc= =Zr2Y -----END PGP SIGNATURE----- --x0PBmTWHB3bjoOVh-- From seva@sevatech.com Thu Jul 10 12:41:19 2003 From: seva@sevatech.com (Seva Epsteyn) Date: Thu, 10 Jul 2003 06:41:19 -0500 (CDT) Subject: [sane-devel] Help with Nikon AF-10 ADF with AX-210 SCSI Message-ID: This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. Send mail to mime@docserver.cac.washington.edu for more info. ---125802090-216743081-1057836438=:16990 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII Content-ID: I am having problems with SANE and Nikon AX-210 (SCSI) with AF-10 page feeder. Using scanadf I get no paper movement, yet scanadf tells me that it's working fine and continues to count up the page output. xscanimage gets as far as rolling the paper to the start of the scaning, then errors out with paper jam... I am using Red Hat Linux 7.3, I have tried the sane (front|back)ends 1.0.7 that came with the distribution and the latest 1.0.(11|12) with the same results. Attached are the debug outputs with SANE_DEBUG_UMAX set.. /Seva ---125802090-216743081-1057836438=:16990 Content-Type: APPLICATION/X-GZIP; NAME="scanadf.debug.gz" Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: Content-Disposition: ATTACHMENT; FILENAME="scanadf.debug.gz" H4sICP1MDT8AA3NjYW5hZGYuZGVidWcA7F1tc9w2kv6+vwKbfMgoZckE+DKk rnR1suXE2k1snxTv7VYqxcOQmBmWOeSEL9LM/vprgO8cjkRRcshLYbLxRmR3 A2g8jW5098i/xjRgnu2yRbr6Dd2yJPGCFRI/Ip/dMR+FS5Ru6A4lIcLEPPvL r/yn3xDns73AS4oHv6y9GMH/+ItTwXHHotgLA4TPFLRIPd9FmlJQO+Fm6/nM Rfdeskafb9+gON1uwyhByzBCl3ESUUSIUtLP3p4gbFnzU3hG0GKPPvoeyEc3 NHXWBdG7ny+vfzrPX52JV/8V8T9P3XBDveDMZQVpxKjLV+qEwdJbpRFDS5iO WOkZf1ZfpmdnVDZNEuqs7Q1NnDUwg9buPIfFs9iJPfT558t/ou/RrUODgEUn TxfwkxeE75nvo79dXr17Dv/H5RKePl8CeY6I28tP769vXkCEOlBEst+yXIQ2 QMT7q5/RT7fae3w7gPmD9wVwf/nPU4yV57CTGnvOEWf4OkevgeV1vMKvOIYD 5iRgarZYND7GEm5ZwEEvBslGLMUc48lmzTlszm6zXcICFww3YkkaBfAfQtoi XS7BHGPv3wxdIGyopnZMIvX90KHinLl9e3uds/6q/FYw1E+ViP2esjjJJgBP 4KeUofJzgUibchvBwti97XsBi+uUWDkUSoM2nSCtzqk1DVyf2Qvq2jELYmaz KIIDqiItKdmOOWnC7FI4J0ddlGIt2aptrjB74wWN4VUyN8zj1HC0NtalYmVe qgGOT4eVSlh4iR2tFt3T8MN7dPxzgU5LUMQbRqN+pA71vUVEBRopnLI9Se89 N1nb4XIZs6QitfjnMXLYHDCiB8kX+4TF2+2xibDdNozBB9iJt2FcX6C3wO0k 9QJwLbC5a+E+bJcm9JhUn2623NyTKPRtekc9ny58ViMtd2JBnS9gVChKgxiB 5ftekgAlPPJogDaUHxGl57qjkScEHdjdLI3pinGHfcxoT+om5oGCAE531Ae8 li9cFiTecl+Ya/HcDcHZ/5560b548kOYwpSzowrl1PmZVXr+f+Aziy/oyFnD /wQNRRGcXoX42Te5yFyUkPFNOfEVKylbM7/+8N+fr2/+dV78fJF/ip9L/YEm wujsyOccfZePj74rOLZR6KZOcpyjmGrx+a4aS+jhOCdfXDUOi7ztmkXUR7+n sDlLj0V1aqWDMNcsP/crQqO95rdv3t8ioS4U0WDF2vNQTomuVwcODTah2yKq iGmaQDSVeA6Awkk3gBe0ZMyF3Z9dXv1Qg5jYJbSA0/4LxJLBKlnXxWADI2GX 7cle336EXc8RNItYzKI7gO6hGt69/fmyF+HlB3AzBWHHikh7CoUsMUGk7BS9 bq4Hb4362/q5DYqh4CXBv8wU5aSE5unhp829fH1fRcRpILz7Q/yVBHSaoSfZ 14/A2tsljROUO4hS9mMaUI2HNKDOuzXATy9AEix/aRxffm1uMRyqcLRtaRxD WOODp+X8NQLurSnopPV4FdF9+1knP9wrgngLjilw9mj2+ZfLk9rLnsiur48f eg7d0oUnND5bOK+QMod/H97uY+tfeKfZrcvb8KMcNglQW5//JvWTx2i2FA6I 3OIQ3wNww+Ag+QVOA7Os7ktc4ZkjQ9yRvV7BHQmlWz+kLvcwdc0E1A9XaEU3 G4ryE7sDNdl7N7wPuAxUOr0j70W0WhpfFoiB98pHSQFhELMGTLxBM77HJ69Q so4Yy4lnYo9PSonNcbxgm/JgwgS1JvHrrbcDpeVG1aQM00SQPkR5DPvGg2eD 0WkZB1SLB2U4XTIyeMc82gycI4d1eWT75XKY2xQQRoBvcSnI3ncLEBoZwii2 Ttzx3769Qq4XJxRm214L/OFt0g26g/AjRBu2CaP9sbUQ3UB/f/OYRuekS2fh FowbvCZQh36aHHfN3IkqCnK3XnuKu9PHmMG1kW7e/QDeMtx6A4eoT5MFc0/5 mVYdL/CmGECcuCI2PiLdPNOVxhHQZm776cbU8Nm8yV38P5yjaFY/WltT5O93 p2HkrTw4SNA29IIj4RR47TOlOQhn3j+HuZ92OpRzwHxUOw8ppw1NsxOaVx9v 0MwNUx7ZH8K0pU9O3A/LgGO1DifO2Q/KoMxjjA/juINx8N5z5sF7X5/yY3v/ OPMDe3/AfHTrWdfW+zwgq8Vq4uYIkX0QQ0jRHuqxISylewiQeE+jTbotV8Uv u927FzOnYLyHi3B4D5OJHbhzJHDud8fzwn5IM6CHIU1TJc3gIanHA0cXYT7k Dy2ra4nFsuqKFNfzLFTgaeU82DlHesm9XLxOE3qe+zThrWgk7kgi/Kvdg85r eTV3ec7veX2Y1PIOBv5PkBZOsBvHmSYfVVAnkC46PjyLwIOq4jrWRdOWs7Oz W+ImzzRdIIL1M5NnV8qs3v6Qxpqf4TnQqJUcOAdqdBfCu4Gx8E8lqAdR/9zp 3//1Dr3l+/IJguPT9zf6gPzru0+3Hz+gTyxaZmEuhAJDpNy+/XjzC/rmR4i+ IFKiPKK4/WaAoF8i70e2QZ/Cexbx8sL1dUtIGi+OSoB3gBdswCUVbqpErVbC HQjYSJU9PhXx+MXx/HGWv8l+epG0czPHJFPPMvV8kEWVqecKmzL1nF9ahqae m4L5nzL9LNPPzcnK9PNOpp9l+lmmn2X6WaafOw5rmX6W6ecnMffTjkw/HyhT pp9l+lmmn8v1yfTzaOnno6nSMnrsTJWm8eJotvQoZ5Et5YnbevKiElZeALLk L/w3TwBzvoyb6/t/Wzzfwb2L99ufo+sAbuIeRMfRStwxyuvszc3Hm/MB08kl l5D2Ai9eiyxtV4t9ffI2T6cUiWqemfXtMPD3HFuNDLdY28GD83w+Ad2wi678 zmd+ncuDamGAtbi8ShN4iZ1tb3lw8DwgNyL067fkN35vEfWEMmTnWcJfv61y xgcPyqVlcu3a6aX0oME9aEgPGrUHjdaDRu9BY/SgmfegMXvQWH102EvRuL6F i+h0B9uIcZ99xKTFuuespBdrn33BfTYG99kZ3GdrcJ+9wX02B/fZHdJnd0gv O+hjCKSPxkkfjZM+Gid9NE76aJz00Tjpo3G1j8bVPhpXex09fTSu9tG42kfj ah+Nq300rvbRuNpH41ofjWt9NK710bjW67Tvo3Gtj8a1PhrX+mhc66NxrY/G 9T4a1/toXO+jcb2PxvVeDraPxvU+Gtf7aFzvo3G9j8aNPho3+mjc6KNxo4/G jT4aN3rFNH00bpQa54FA4osYwvqt9VBEB0r7aZO0V6ASNwIVHpseXo26x+wV zMSNYEaIP7hVCUFwhYwaMXRnRbdPAH5AkyXDi9fOmjlfWmJTwcIz86JQI6J+ /qReaynuJmnM8lLOqUginxZ54wO9bGkEF4mEReU4cA8t80xoBtfEk6J8juv3 xx5EvMwMA3sBTXhDR8xyyuyyWYnqQ5VutyyyfbZM7B2a7TjdSauoXyPZo9m+ i4TrR+Sj+POGFKzgqpOBk+WVHNSUhDWl8oOZJC/IEvVVS8sFMqtTOZdzQAWy 8LxqSOA44AUkQfQ6y3FkokoSnuURNCKhURuN6NVw2SC20ESdrDmngw6crjkF bEUT744dUpUkvCwUr0PfBTXlRcJCUVWot4i81TqBEWM0W1N/mQCGT9pEom2D p+TQA0RZTsvO7Kk5I/5PQbaG8Xw+5sHEQVPFv+Ver6nb1ZbTklkkuM7K3hWR ymuTiaRlk+Ihadx6xJ07SDcL2NlGiwrvsRHyjmk/I2G1xpkjJAHbweEYbhE3 DrRHB0juqF0XgCjBTqMNmFiXnsocSFeNu0nCE7xdnxrJ5dUPj5FsaAAThnPT SeMjJEtvl7+HvfDKBdVJXC8WbT1bnqOpiaqRgPHGXCncfN3Q4bLaJBz9PBtU jIWUzaZFUvmO86z75onNfarW6gkthNXJ1hRmuuYJPfcVT0JVPX8ZVRf/MmLs eFdgnfLRFsJVRBftFqZ76iXtZ4WH4mmy/eHDLOFaOeZA5NJU9L2oQGZHYFms Folm7jxvfnxTZ8kOCNEq1nSerUq4KHZzARuatMrivMsty8JnHrI68rsz8w6s Jyl+r0c7JZ8xzeITLrYcgStWaKfxJOsYrR66od3RUPKwZnlhOEZXWdpykcb7 V4KBiz47K3+ViYgx+LnrZuaRtU9m7ZcREj249tLl8Kt+F0Unzzn6x7sP3LBv P717e/3D9duC+vQ/URCirH9z9m2V3ITn9YNmsUduxH93yYMYyUj4r1pxQ5Ff PdRK3giar8Th9XdOnpl5Car/ubz5cP3hx3O08WKBCi/IIMDnQhcQiBUli9M6 gspPPpEk8gCLECuuUu7ZCmFZzPbXA663tQWLNRQV+pj5zOHQyRpLViyEcCza g69zAWbbZP3Xtlo4xGO49+VuXEjBOoSsRYTBWfM2r9fNHgLqO6mfmTGFRfAB swY1bkUiGm30pvy10ixvx621YBYvGjynIuLAgnoIJxnMqQ7m1AZz6oM5jcGc 88Gc5mBOazAnVoazDkcRHg4jPBxHeDiQ8HAk4eFQwsOxhIeDCQ9HExmOJvKM M2k4mshwNJHhaCLD0USGo4kMRxMZjiYyHE3qcDSpw9GkPsPFDUeTOhxN6nA0 qcPRpA5HkzocTepwNGnD0aQNR5M2HE3aMyKm4WjShqNJG44mbTiatOFo0oaj SW+iSVxpu1jr1xRO9dS75QNJYD4+i+xtFDr8diPYmdv99mh2oOopaDOU04H7 0827yytUXxbcrDZ2FN6DFJ7ZOEfw33b+g7iOYlBQlgrg38XLrkH1kbhgYpmq rhR0XpDd00XyoCbgJe/TnbdW/qctvkJpCwSIS57YRP61RXHtKlMpr4pccb7G fjLOkec25fD7pbIzFcfQ1KaQ9jbwn/N7p8CQGKQt7elLwS+0FFwuxTWYaT5z Kbi1FLHnGVltHq3Fzzz3otTlyYMzyJNxTYCJef0HoFFX1PIZTxqEf1aEPK5W XKlV7Guz6Y2PmI8rvpXbNNQBmsdzojxT8396QH8VzZumpkjMj4F5U1csiflR MI/nc4n5MTA/NzVDYn4MzM91rEnMj4J5bKoS82Ng3jB1LDE/BuYNHcJ5ifln Y/7rbA42TWkWTzQLTbGM5ypeN/W5tIoxPIGu8/ZLCfk/3hPo2NIk5sfAvGYa RGJ+DMxruool5kfBPLYsifkxMK+ahikxP9GIX9VVQ5rFCBG/ShRdWsUTrYKY xpw8V/PEnMta7gt4gq9hFUTXZLV3qr6CECwLwmP4CmzOZT14FF+BdU3Wgyfq KzDBsmL8AlbxVXyFYpqyqDyGr1B0XdaUJ2sVEEJJqxghCYUt05Jl56eaxeF5 9DWCLGzpuqw6P99XfJ29IUQWpl/ebl7kTDNNS5auJ2o3pm7I4vZE/Y1JVFn+ nqjdzC1FFsgnajdz3ZAl9KnaDVFlkX2idmNYiqyxT9RuDH0uy/BTtRuiyUL9 RO1Gt7As1E80L6DrpqzTT9VuiCZL+RP1N5qFZbF/onaj6aYs9k/Vbogua/0T tRvVIrIdYKJ2o0IQLe1monZDDNkvMFG7IRaR/QITtRuiW7JfYKp2QwzZL/Dy dvMiORtsqbJfYKJ2gw1F9gtM1N9gMpf9AhO1G8VSZb/ARO1GMRTZLzBVu4GA QtrNJO3GsjTZLjBNs7EMLLsFJmo1xJTNAtO0GhMiNGk1k7Qa08CyVWCaLTYm MWWnwDStZm7pslFgmr5mbhDZJzBRqyGWbBOYptUYcLGRVjNJqzEMVTYJTNRq iCV7BKZpNbplyBaBaVqNbqiyQ2CiVqMqskFgmlajWXPZHzDNvhrN0GR7wESt RlVkd8A0fY1qzWVzwDStRjU02RswUavhT6TVTNFqiGXK3oBpWk32F0JKq5mi 1Yi/o0RazQStJvt9ttJqJmg12a8UklYzwWxA9q1OaTUTtBrRWCuNZoKuRhQ5 pc1M0GbqTw535v8d0DqX0h4IG5g8PBWl+doNbYcGDvOLB1883/eCFWpOrXjb nnDCoo0X0ASgs9ij2FsF1EdY7yYXsplbvEyiPR8I1hMxn9GYoRimEsD6z87O yunnj3KSTuZtGHuJFwZd/EGYIL7VnJjv7dILvHidLbDNV/A4PrwAivyxy+48 hwEnzJ3FTuRtk/CAVuiWBS7fu623ZX+5FcwuKNhJNyxIMmM7VRQFN7YmTmiU FE9gcolHfe/fzL6jflpt02cxCDh4L4nFOlZ0s6FAv02TozRhmtReO2vmfGmJ TQVLGDC0pbA/YsH8ySZ0WXsH0hjA54R+GJ1uvR3zT0PQTATUjeWsWGJvaUQ3 DKBRjsORHod+KrQ9c7feCRKfC4SV8rDb9yHa2U4IAwvM2QsOmowSiEhdVB+q dLsFcPpsmdg7NNtxupNswC6SPZrtu0i4fu49Fw5v+DSkYAVbVp0sP+RRUxLW FLUkyyR5ARI6jlHxuUBm5RZyOQdUIAvPSyqBA5h+RvRabF0uqiQRJwqnAZtn qDYa/1vfC6psEFtook7WnBO8qaZbF1WfU8BWNPHu2CFVSZKsAQbr0HdBTVwo mEehKDIvJx55q3US8ENltqb+MgEMn7SJnDBIIhonXOFHiSicWOHKzuypOSP+ T0G2hvF8PubBxEFTxb/lXq+pG9536aIh0wFLX0Q0OUNsB2dRGjGUeBvWJuPI aVE8JI1bD7dfFKSbBexsTbULmjjrTN4x7Wck/CB7hCRguwSO3y3ixoH26ADJ v6cwoWTfmFe+jyXYabQBE+vSU0Gy5Pu3jeAIZvdomQZOLqdGcvXxpgN3DZLL qx8eI9nQACYM56aTxkdIlt4uf196jjaJ68V04TM+44aoGgkYb8yVws0XnAOX 1Sbh6IedK8dCymbTIql8x3kWSsRO7NnhlgU2bAzsH7ieiCVpxH0Qf1fEFjE4 Fx5makp1EK4iurBbTlDER61nlTPehhEcLleZZ1yk8f5V6WU7nTd194cPYxbd VR49hklzfhV9D7aUB1TcnWamWUZnNz++qbNkliuCt6ZXy9nC+8APwTc7KQzG BWwo4Ha/ZYhUYhL73guANHNd1VnMn6HK6aOFHzpfkAPr4RHPvQeHsNmKtzKm WXzCxZYj8I0S2mw8KYKMRjBWWsvX34njDrsVuInZVlvVjgKpD3qhYszbt7fX VQB9jKFcPcRvN+8ur1B9+5LI29hReA9SOFghboWNyX8oLkg5OuAsUTPPUx+J C85KGgUdmJrYurgVWvdTcU1lf7brtryfDrqLEUtXZMXsqffkF/k7Ai08lwWx pyZcXkTzpqnJetcomIdrlixnjYN5PJfVqlEwPzc1WYwaBfNzHcti0ziYx6Ys Jo2CecPU5bdIR8G86G+TmH825r/O5mBTfk30+eXgpyteN3X5JdBRPIGuE/kd z1E8gY4t+RXOUTCvmYb8huYomNd0VX4BcxzMY0t+v3IUzKumIb8+OQrmVV2V 344cB/P8q0IS8y9+y/2DvulFzLks9758W/SLmBbRNVkQnmYHPiEEy5LxGPkj bM5lxfipRvEikMe6JivGo8RYmGBZMR7lXqGYpqwYj4J5RddlxXgczENsIzE/ Auaz3+0gMf/HYx5bui7LweNgnhBZD55olwQ2TUuWjEe45WJTN2TFeBRPYBJV VoxH8QRzS5EV41EwP9cNWTEeB/NElRXjUTBvWIqsGI+CefFr8iTmx8A80WSx dxTM6xaWpdxRMK/rpizUvgDmv8YtVyearOWOYhWahWUtdxRPoOmmrOWOg3mi y1ruKJhXLSJruaNgXoXAU2J+FMzz3zguMT8C5olFZC13FMwT3ZK13HEwTwxZ qB0F89hSZaX2K/QvvER+ARuKrOWOYxVkLmu5o3gCxVJlLXcUzCuGImu542Ae hEjMj4B58Zc3Scj/8ZC3DPx/7V1Lb+M2EL7vr+Ct9qJ25Uf8CJAFtg1a9FRg g56KhZaWKJuIRGpFKrb763eG1NtyNicrBzoIApAfZ0bDbzgjjGK5Tu4gjJ9v XCN3CMZvoKpxjB+A8ZvVzDVpB2H8fON6tO/zyYX19s41cYeIifVq7nq4Q2SB 9XzrWrhDMH4Fpb5j/ACMN6+/dYwfgPHzrevfDsH4u+3KtW+HYPzdauG6t4Mw fuG55u0QjF9u164zOwTjl6ula8y+z8cVwALXuR0iJhbbtWvcDpEFFqul69sO wngccYy/PePty5sd42/OePs2Lsf42zPefEG8Y/zNGW+/TdAx/uaMt19w4Rh/ e8ab/7lyjH+H97bmQUEXEsM0sVxE3P7OtjFy6fd3RpJeQ9+gqKsjyhjjYk+e /nj6u76Qq2guuDrAruIELkMfXNM+W83mrx9SXns6lH5ARcDicuCZxzFqaZvR b5wBs7Cc1NkZV4J7MhYzqhhRIFuAO6fTaWVPMVRAehenUnHNpehbL6QmyAsE IxGse6zF3XXlmiCGCUAUwyF74QGDlWA7U0HGUy0vsMZZTIRIhZSn7MOTWRyC x4I8YULbuJt4njdv+VppmulyBIzTnMb8f+a/0Div/f6vUQJE4VqZ69jTJKGA T3N9FSNz3ZgODix47ojNzRIpGEkp7I+5YBxJZMi6O5Ar4HIgY5lNUn5i8USC ZzJAty5nz7Sf0owmTLOs0oOBo2ScG2+PwpSPifk8kJlXnXvnt4BOfiBBMRdU M3+HpLFIAM2bot6CytMUyBmzSPsnMjohbmwV9kHOZHTug6B/jjyEcxw+LSkz b7bdNmHFeU/akmZLb1HBrCQuiPGxIuXngWzqDFHIuUCBrNm6QhkegPkW9JvZ ukJUBTEHFGIgiBlpaMN32pYoq8Q3nmjC2jbBTG1uU1TTJsH2VPMXdomqIPoA NDjIOAQ3oVAIj9JR83VleMb3By3wUBkdaBxp4PC4Cwqk0BlVGh1+FUQFjeXe t/HUtgh/StgB9MWo88Jw8FT5W+31gYby2OeLlswAIn2XUT0l7ARnUZ4xonnC ujBkTgfxmjSMHoxfIvJkBzvbcO2O6uBg5V3zvoXgQfYTiGAnDcdvSjA4yJlc MPl7Dgbpc8uuYh8rstMsgRDr81MJiXD/0gyOYHYkUS6CQk4D8vjPlx7etSCf H//8GSShAgyGczPI1RVIxE/FfJU5upCQK7qLGVrcEtWAQPAqdAqGLyQHlNWF IPth5ypdxEuSDqTOHfe2MlGB4r5MmfBhY2D/TAWg8wxzEM6VpYqC5IIV59Kr D8J9Rnd+JwmaYqozVifjVGZwuDzazLjL1fnXKsv2Jm8ani8HFcte6oyuwGhc vyAfIZaKOyNMpzY0q1Luy1+/N5fYyPWbVY7NasUyeRSxhNwc5KAMBSQUeHtO GanzMOSsIxcAtamrPotxjNRJn+xiGTyTAK5Hg1uPHA7hTaeAsotGaoxiKw24 UcabrZGyyGhVV1W09O4E/qVhdA8CZJo2qpSm25Eb7TLtom57vfiqtYAobrg1 De7n3mrVHMLbEVN035PPCjbTRMQ3vM95eCCjURSCNxP1cRxBOS4i+R/MTD5F 4ddpirs1nnwyhn4/ADt+gUDH+mr64QfbN2T+i34BAA== ---125802090-216743081-1057836438=:16990 Content-Type: APPLICATION/X-GZIP; NAME="xscanimage.debug.gz" Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: Content-Disposition: ATTACHMENT; FILENAME="xscanimage.debug.gz" H4sICP5MDT8AA3hzY2FuaW1hZ2UuZGVidWcA7V1tc9s2Ev7eX4EmHyLfRLJI 6s2a8c05tpP42sQ5O+m1k8nwIBKScOGLSoK2dL/+dsF3ipRhOp1J76g2aUU+ uwAWu4vdJb3+HFKPcdNmi2j1hdwyIbi3IvIrcdgdc4i/JJFLt0T4RNNngx8+ 47cvBOlM7nGRXvi45iGBf/FGX1LcsSDkvke0wZAsIu7YZDRM0ZbvbrjDbHLP xZp8un1Fwmiz8QNBln5AzkIRUKLrwwzfOz8i2snJtA/XdLLYkWuHA39yQyNr nYIu351d/TxPbg3krb8F+Hff9l3KvYHNUmjAqI0rtXxvyVdRwMgSpiNXOsBr xWVyM0aZVAhqrU2XCmsNxCC1O26xsBdaISef3p39Sv5Cbi3qeSw4ejyDn7nn v2WOQ/5+dnH5FPrr5RKuPp2D/hQWt2cf3l7dfAMWRksWYrdhCYtRCxZvL96R n29Hb7XbFsTv+VfQ+7Nf+5o2fAq5XiBPKMJYv+bkGEiOw5X2EnXYY5YAUzPl orUmEn/DPFR6OUg8YsamiSaeNVKYSG6yrWCeDYYbMBEFHvyP5LaIlkswx5D/ h5FTok2M2aiJI3Uc36LSz9ye314lpJ+HX1KColcJ2O8RC0U8AbgC3yJGss8p 0avITQALY/emwz0WFpHacJ8p9ao4Cc391Jp6tsPMBbXNkHkhM1kQgIPKoRmS bZkVCWZmzBFO6pByLfGqTRSY6XKvNLyhTyezZjS41tK6DG04zcQA7tNimRAW XJjBalE/Dce/J82fU9LPlCJ0GQ3UoBZ1+CKgUhspeFlF6D23xdr0l8uQiRx6 gp+H4LA5YEQH4YudYOFm0zQRtt34IZwBpuAuQ3mB3Dy7Fso9OFpgc9fy+DBt KmgTV4e6GzR3EfiOSe8od+jCYQVothMLan0FoyJB5IUELN/hQgASLnHqEZei i8hOrjsacMloz+56UUhXDA/sJqM9KpoYBwGBOt1RB/Q1u2EzT/DlLjXX9Lrt w2H/e8SDXXrltR/BlGNXRRJ04rOyk/8XbXCCC2rwNfg3SCgIwHul7HvPEpYJ K8njWTbxFcuQlZlfvf/Hp6ub3+bp99Pkk37P5AeS8INBw2dOXiTjkxcpxSbw 7cgSzRTpVNPPi3wsKYdmSlxcPg4L+GbNAuqQ3yPYnCVnQRE9rAEmkkW/nwMn 1TWfv3p7S6S4SEC9FavOY9jXx+Pc4VDP9e0KKAfTSEA0JbgFSmFFLugLWTJm w+73zi5eF1RM7hJZgLf/CrGktxLrIhttohFpl9XJXt1ew64nGtQLWMiCO1Dd fTFcnr87UwKevYdjJgXWrEivTiHlJSdIhtvhuGiue3cnxbtFvw2CoXBKwvnS Gw6PMtXs73+q1Mvj+zwijjx5uh+izzmQfqw9Yld0gYW7SxoKkhwQGe+HJGBM DknAmNZLAL0XaBIsfzlpXn5hbiE4VXBtGxqGENY4cNIifQGApzUFmVQurwK6 q16rpYe8wgs3cDB51o70Pn08OyrcVNTs4vrQ6Vl0QxdcSry3sF6S4RT+HN7u pvUveD/OuriLrhw2CbS2OH83csRDmA0FB5FYHME9gGMYDkhM4EZglnm+hAKP DzKCB9nxCnIkEm0cn9p4whQl41HHX5EVdV1KEo9dozXxfdu/95AHyQ69hvsy Ws2MLw7E4PRKRolAwyBm9Zi8Q3q4x0cviVgHjCXgntzjo4xjeRzubSIMJmYg VhEeb/gWhJYYVRnpR0JCDyGbdH9y0DdMai1jD7U4yMOq4xGrd4jRpmc1OOvM ZTvZcphdZuAHoN8yKYjv1zOQEmlDKLdO5vjn5xfE5qGgMNvqWuAv7kYuuYPw wycuc/1g17QWfTwhP716SKJTvU5m/gaMG05NQPtOJJqPZjxEh0Nib3h1itv+ Q8RwtOn1tLsWtFm49QqcqEPFgtl99Gm5e4E76QDS48rYuIH7bDAellxAlbh6 Tpempg2mZer0v+BHSa/oWitTxPvbvh/wFQdHQjY+9xrCKTi1B8PyIEi8ewqx mnRqhLNH3CidQ8KpquasVjUvrm9Iz/YjjOz31bQiTwSr6TKIpKhNSKimyQcI D6txDWHrrUfi1ltfnPJDW/8w8YGt3yNu3HlWt/MOxmOFUE0mjhDYeyFEFNWh HhriZFg/BHC8p4EbbbJVYa5bv3shs1LCe8iD/XuYTGhByiHA7deH89J89HI8 D0POZoZejh1EMRxoXMTs0HF4clK3xHRZRUHK7DyOFLCqnMQ6czLOqJeL40jQ eXKkycOKBjJFktFfIQ2aF8pq9nKOaZ4KkZGlYHD8SWh6BtbrcSzJBwVUq0in NR8sImBMlWZjdZgqn60ZJ4luUmg6Jbo2HsywuJIV9Xb7mJPpQJsCxsj5gB8o 4E7l4QbGgp+ckQJIvXT602+X5Bz35QPExv23N+MW5dfLD7fX78kHFizjKBci gTZcbs+vbz6SZ28g+IJAiWJAcfusBaOPAX/DXPLBv2cBPl24uqowicJFIwe4 B/qiTSBHhURVN/KV4PkBNpIXj/syHD9tLh/H5Zv42zepOpdLTF3luas87xVR u8pzrptd5TnJWdpWnsuM8e+u+txVn8uT7arP26763FWfu+pzV33uqs81zrqr PnfV50cRq0mnqz6rEnbV5weIG3e+qz531eeu+vz46nNjpTQLHmsrpVG4aCyW NlKmxVKs2xZrFzmzLP6Pa7/w/1j/RbqYGuX9rwrNC0i78G37ObnyIBHnEBwH K5liZNnszc31zbzFdBLOmUpzj4drWaSte8G+OHkTqylpnRoLs47pe84OdatU 4JZr27swT+bjUZed1pV3PmE2l8TU0gALYXleJeDCjLc3cxxYBkQjIp+f618w bZGPE7KIHYuEn5/nJeNsJTEbs+CsNAWMXmScDatAaBQJQz8KLCQ1VEhHRdL8 MAXykQr5WAEzqR+iL6ubn59PVMaZFnl4bAVe9Q7XOFUhnilgTooDCKe/BeYn Shs7rFDugFJT0wmtSLoI5KCapkSqV0jlqErKohkqoJJe2GwDaRMMoKQT2rhI m1SA+hggAoexEoeJCmiqApqVlG+1SLVOmylN5ETFbIcqICUHoKuAVPZPH6mA VKxXV9kLXWUvdBU71FUkbqhI3ChZVxz69aXf7wfoHZXszNAbmayQiZp7NhqZ LJCJkqM2ShZpRaHw3ZgJslAyTENlvw2V/TZU9ttQ2W9DZb9HKvs9UrGwkYqF jVQsbKRiYSMViY9UJD5SkfhIReIjFYmPVSQ+VpH4WEXiYxWJj1UkPlaR+FhF 4mMViY9VJD5WkfhEReITFYlPVCQ+UZH4REXiE6UYUEXiEyWvouTESiFI7Gpl vo++UikEUXODldDW7leGUopt1ZxpKQJeBYx51cGUYmE1p1yKmhZOxKpj1URP GxpA+iVYECqMkKtoNcN6E9DdoxgopEVKgW6XvHXJW5e8fZ/JW5ei/XlTtGrO g85NycIMlf0wlA4Clf3oEqwuweoSrC7B6hKsPyDBelRykEuuHBFjenCWvRh3 kb4Y91q+GFfim77vHPOeS0a3159uzi/J6cMskqeOydPEz+kjQDIYFB4/Zmvc HUBnDyK/5Lyzh4yI1hBWeMxY4KqG61KkLkXqUqQuRepSpC5F6lKkLkXqUqQu RepSpP/5FOlR4fYT438llX9MnKwSB3+rcFcpslWKYZWi1W8XlyoFoF2M2cWY ijHm9xhFqrnYOu+JpSClpXWRZBdJdpFkF0l+p5GkUgjSxXpdrNfFel2s938Q 63WRXBfJdZFcF8l9p5Hc6o/6ic9vFbatHnjKHQqa95FpbL+m8uOye5i4c016 21oz62uFbbaA/VLn1izMumdv+FHank4r/oC2AgjbuPmBzT0qsGFiyBJk/NPc OSsVVLTZsMB02FKYW9LbIu6o0jSvANmR3q4Ogj+LLBs+4PUSF22o5Z0CEZZ0 SiJlTtpomB9HMSfuxY1w8paRp2SWO8eEzx4KeGnTvOEfbh02aJKg47iJQMwq g2AbBYmRHQPqR4vHMKUgiqjylPYaXNZNKXv1YQ+VQbDrUrj2HRuklPTgSuWU B1yLgK/WAkYMSW9NnaXwPSnNEki+JYQtL8gBUPxc1owtoDwj/CeFrWE8B8fc m7g+Hqd/sq1eU7uu62WFZ9pAYpC1hpStMqow2RSkjDjEDY1HvnzjRe4CNrbU ARJbWEp+TdKPIazQl7IB4rGtIMLfELQNsiN7ilzTGi5ViEzXaeCChdXJKYXU tpArQ7CBSt2nADm7eN0AyebiUg8mDJ7OisIGLku+Te7DXvBsQUWIzUNZxNxg D4QCqwIEbDdEoaD12r6FvKoQ1H7stpCORYauW4Hk3n4eN7d8ZO9cY1RpuZwy K8LWFGa6xnfU7JfY5CFvqRuj6uiXAWPNTXeLyAc79K4Cuqh2CL2nXFSvpd0p sA3Fbv9i3NAku479TmFIbO4Ve7+sD5xs4iKPw+LPKAE+9g6yDWt2LsjjsdJl TjaSQw4uFZWWc9hBNm5xE5+Oubuvb3tjwWJE+iszq/1uYqJeeIRssxFQqlI0 mTLudVOVmLg/cwlW077xsKCxDVtILuIuIYso3L2UBMh6MMh+b6gMEtAN27G1 xM2K42bHAZEdr82ljdo4PTpIMye/XL5HO7/9cHl+9frqPEX3/0o8n8TdknvP 814icL3odxY7Ygf4i0IPqkwMwd9ravuyncm+VJK2y8lKLOx2h/DY6jMd++fZ zfur92/mxOWh1BPuxUqBc6ELiKTSDkH9ok5ln2QiIuCgnsInqwgPupRZHHT9 uEd1XliwXEPaDy9kDrNQmeI2jivmQ3AW7ODos+NX436sigWVPoRkLDnVJZfx 8OQkDTeQMumpelxu2EcdK3Jio6awBhwv7gaLdiWjyVIjyB9zwWLv60K/4/RG iaYv4w9NottQ6q0pjdaUo9aU49aUk9aU09aUs9aUJ60ptWF70vZapLVXI629 HmntFUlrr0lae1XS2uuS1l6ZtPbapLfXJv0JPqm9NunttUlvr016e23S22uT 3l6b9PbapLfXJqO9Nhnttcl4whHXXpuM9tpktNcmo702Ge21yWivTUZ7bRq1 16ZRe20atdem0RMipvbaNGqvTaP22jRqr02j9to0aq9N47I2yRy3jrSYpSDq Uclm0mYSv5g5fi6LMXHj+H/neTDkI5gTQLITQLaCBds0Fynkk3nWJiF2HXFW mqmh93yRpamYj8QNLPHbPl02ZvdyR/dyR/dyR/dyR/dyR/dyR/dyR/dyR/dy x5/05Q4Jshw//w1G8smHZ+Xla6UoVAa0K37H8tbplu+6WBPPn7gJKqLSA5LH xqpylBzSaixcbPq0B2iTpu7Ymz0XUEk6bMvFD/8F/fCmaCeOAAA= ---125802090-216743081-1057836438=:16990-- From henning@meier-geinitz.de Thu Jul 10 17:58:40 2003 From: henning@meier-geinitz.de (Henning Meier-Geinitz) Date: Thu, 10 Jul 2003 18:58:40 +0200 Subject: [sane-devel] Help with Nikon AF-10 ADF with AX-210 SCSI In-Reply-To: References: Message-ID: <20030710165840.GE6036@meier-geinitz.de> Hi, On Thu, Jul 10, 2003 at 06:41:19AM -0500, Seva Epsteyn wrote: > I am having problems with SANE and Nikon AX-210 (SCSI) with AF-10 page > feeder. I have no personal experience with this scanner but maybe some generic hints: > Using scanadf I get no paper movement, yet scanadf tells me that > it's working fine and continues to count up the page output. scanadf (and scanimage) just scan one image after the other. It's up to the backend (umax in this case) to make sure that the paper is moved. If the scanner has a flatbed and an ADF, there is usually an option called "source" that can be used to select ADF. > xscanimage gets as far as rolling the paper to the start of the > scaning, then errors out with paper jam... xscanimage can only scan one image whith every time you press the scan button. If that fails, I guess it's a problem with the umax backend. > Attached are the debug outputs with SANE_DEBUG_UMAX set.. scanadf: [...] > [umax] fast preview function = 0 > [umax] DOR = 0 > [umax] ADF = 0 You haven't enabled the ADF when you used scanadf. > scanadf: sanei_scsi.c:2066: sanei_scsi_req_wait: Assertion `req == ((fdparms*)fd_info[req->fd].pdata)->sane_qhead' failed. Huh? That looks bad. But I don't think it's related to your problem. xscanimage: > [umax] fast preview function = 0 > [umax] DOR = 0 > [umax] ADF = 1 This time the ADF is enabled. > [umax] send_shading_data > [umax] shading-data sent > [umax] start_scan > [umax] do_inquiry > [umax] ERROR: umax_start_scan: ADF paper jam > [umax] trying to release scanner ... > [umax] scanner released > [umax] trying to reposition scanner ... > [umax] not waiting for finishing reposition scanner Looks like it fails right at the start of the scan process. Are you sure that there is really no hardware/paper problem? Otherwise I guess the author of the umax backend may know more than me about that topic :-) Bye, Henning From seva@sevatech.com Thu Jul 10 19:44:40 2003 From: seva@sevatech.com (Seva Epsteyn) Date: Thu, 10 Jul 2003 13:44:40 -0500 (CDT) Subject: [sane-devel] Help with Nikon AF-10 ADF with AX-210 SCSI In-Reply-To: <20030710165840.GE6036@meier-geinitz.de> References: <20030710165840.GE6036@meier-geinitz.de> Message-ID: > > Using scanadf I get no paper movement, yet scanadf tells me that > > it's working fine and continues to count up the page output. > > scanadf (and scanimage) just scan one image after the other. It's up > to the backend (umax in this case) to make sure that the paper is > moved. If the scanner has a flatbed and an ADF, there is usually an > option called "source" that can be used to select ADF. Ok, I missed that, I do have to use --source="Automatic Document Feeder" option, at least with the UMAX backend, I was assuming that utility for ADF would enable that itself ;) > Looks like it fails right at the start of the scan process. Are you > sure that there is really no hardware/paper problem? Ick, there *was* a physical problem, I apologize for sending the original mail -- the transparent flip of paper that is supposed to route the paper back into the output bin was no folder correctly! It seems to work quite well now. Thanks for the help and the software.. /Seva From oliver.rauch@rauch-domain.de Thu Jul 10 19:52:49 2003 From: oliver.rauch@rauch-domain.de (Oliver Rauch) Date: Thu, 10 Jul 2003 20:52:49 +0200 Subject: [sane-devel] Help with Nikon AF-10 ADF with AX-210 SCSI In-Reply-To: <20030710165840.GE6036@meier-geinitz.de> References: <20030710165840.GE6036@meier-geinitz.de> Message-ID: <200307102052.49630.oliver.rauch@rauch-domain.de> On Thursday 10 July 2003 18:58, Henning Meier-Geinitz wrote: > Looks like it fails right at the start of the scan process. Are you > sure that there is really no hardware/paper problem? > > Otherwise I guess the author of the umax backend may know more than me > about that topic :-) Good analyse Henning. I must admit that I do not have any experiences with the ADF. If I remember right then the ADF does work with umax scanners. Seva, did you ever test the ADF with windows? Oliver From priyag" Message-ID: <00b701c347a9$e1232d90$5505a8c0@priya> Hi, I m able to run xsane and am able to scan the documents through XSANE. But now the problem is that I am able to scan only single page through Automatic Document Feeder. The ADF is not taking all the documents automatically. The problem which i could locate is that in the Setup menu the option for Automatic Document Feeder Modus is giving as "None" whereas the literature says it should have different values such as None, ADF etc. Mine is an Avision 8000S scanner. scanimage is working fine. I came to know that ..... The ADF Modus needs the cooperation between frontend (xsane) and backend. Some Backends do not use the options in a way xsane needs this. Can anyone let me know what options are needed and where i have to write those options so that i can work with XSANE and ADF? Or is there any other solution.?? I would be highly obliged. Regards Priya Gupta From anoah@pfeiffer.edu Fri Jul 11 14:09:26 2003 From: anoah@pfeiffer.edu (m. allan noah) Date: Fri, 11 Jul 2003 09:09:26 -0400 (EDT) Subject: [sane-devel] XSANE ADF problem In-Reply-To: <00b701c347a9$e1232d90$5505a8c0@priya> Message-ID: i dont know about xsane (i dont use it) but if you want the adf to work, you need to have a probram like 'scanadf' (which comes with the sane-frontends), which is smart (or foolish :) enough to try to run additional scans for adf use. allan On Fri, 11 Jul 2003, priyag wrote: > Hi, > > I m able to run xsane and am able to scan the documents through XSANE. > But now the problem is that I am able to scan only single page through > Automatic Document Feeder. The ADF is not taking all the documents > automatically. > > The problem which i could locate is that in the Setup menu the option for > Automatic Document Feeder Modus is giving as "None" whereas the literature > says it should have different values such as None, ADF etc. > Mine is an Avision 8000S scanner. scanimage is working fine. > > > I came to know that ..... > > The ADF Modus needs the cooperation between frontend (xsane) and backend. > Some Backends do not use the options in a way xsane needs this. > > Can anyone let me know what options are needed and where i have to write > those options so that i can work with XSANE and ADF? > > Or is there any other solution.?? > > I would be highly obliged. > > Regards > Priya Gupta > > > _______________________________________________ > Sane-devel mailing list > Sane-devel@www.mostang.com > http://www.mostang.com/mailman/listinfo/sane-devel > -- "so don't tell us it can't be done, putting down what you don't know. money isn't our god, integrity will free our souls" - Max Cavalera From hans007@prexar.com Fri Jul 11 14:06:39 2003 From: hans007@prexar.com (Hans Krueger) Date: 11 Jul 2003 09:06:39 -0400 Subject: [sane-devel] scanner help Message-ID: <1057928789.7805.15.camel@linux.local> --=-qVfJvwOH3MIUKlXBG1Ez Content-Type: text/plain Content-Transfer-Encoding: 7bit I had my mustek 600IIIep scanner working under suse 8.1 sane 1.0.4-47 i586.rpm now I have suse 8.2 sane 1.0.10-36 i586.rpm I tried to do like I did under 8.1 but I got it to see it but the light just sets their and doesn't move it comes on but thats heres my config file thanks # For documentation see sane-mustek_pp(5) # # Scanner definition template: # # scanner # option ? # option ? # ... # # where: # # is an arbitrary name for the scanner (eg. Mustek-1200CP) # # is the parallel port to which the scanner is connected # Possible values are 0x378, 0x278, and 0x3bc. For Linux, the # mapping between ports an numbers is different for kernel # version 2.2 and 2.4. Port 0x378 corresponds to lp0 on 2.4 kernel. # # is an identification of the scanner type. # Possible values are: # - cis600 (for Mustek 600CP & OEM versions), # - cis1200 (for Mustek 1200CP & OEM versions), # - cis1200+ (for Mustek 1200CP+ & OEM versions), # - ... (non-CIS versions will be added in the future) # # is a name of an option, and an optional value # for the option. # Currently available options for *CIS* type scanners are: # - top_adjust : # Vertical adjustment of origin, in millimeter. # Values between -5.0 and +5.0 mm are possible # (floating point). # Default: 0.0 # - slow_skip: # Boolean option. Disables fast skipping to the start # of the scan region. May be necessary in case fast # skipping results in inaccuracies. # Default: fast skipping enabled # - bw : # Black/white discrimination value for lineart scans. # Pixel values below that value are considered black, # others are considered white. Range: 0-255. # Default: 127 # # # Example for a LifeTec LT9350 (Mustek 1200CP clone): # # scanner LT9350 0x378 cis1200 # option top_adjust 0 # option bw 127 # # # Uncomment/customize to your needs # # Mustek 600 III EP Plus # name 600IIIEPP # vendor Mustek # option wait-lamp 5 scanner Mustek-600IIIepp 0x378 CCD300 # scanner Mustek-600CP 0x378 cis600 # scanner Mustek-1200CP 0x378 cis1200 # scanner Mustek-1200CP+ 0x378 cis1200+ # -- Hans hans007@prexar.com registered Linux user 289023 "They that can give up essential liberty to obtain a little temporary safety, deserve neither liberty nor safety." -Benjamin Franklin --=-qVfJvwOH3MIUKlXBG1Ez Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit I had my mustek 600IIIep scanner working under suse 8.1 sane 1.0.4-47 i586.rpm
now I have suse 8.2 sane 1.0.10-36 i586.rpm I tried to do like I did under 8.1
but I got it to see it but the light just sets their and doesn't move it comes on
but thats
heres my config file
thanks
# For documentation see sane-mustek_pp(5)

#
# Scanner definition template:
#
#  scanner <name> <port> <type>
#     option <optname> <optval>?
#     option <optname> <optval>?
#     ...
#
#  where:
#
#     <name> is an arbitrary name for the scanner (eg. Mustek-1200CP)
#
#     <port> is the parallel port to which the scanner is connected
#            Possible values are 0x378, 0x278, and 0x3bc. For Linux, the
#            mapping between ports an numbers is different for kernel
#            version 2.2 and 2.4. Port 0x378 corresponds to lp0 on 2.4 kernel.
#
#     <type> is an identification of the scanner type.
#            Possible values are:
#              - cis600    (for Mustek 600CP & OEM versions),
#              - cis1200   (for Mustek 1200CP & OEM versions),
#              - cis1200+  (for Mustek 1200CP+ & OEM versions),
#              - ... (non-CIS versions will be added in the future)
#
#     <optname> is a name of an option, and <optval> an optional value
#               for the option.
#               Currently available options for *CIS* type scanners are:
#                 - top_adjust <value>:
#                      Vertical adjustment of origin, in millimeter.
#                      Values between -5.0 and +5.0 mm are possible
#                      (floating point).
#                      Default: 0.0
#                 - slow_skip:
#                      Boolean option. Disables fast skipping to the start
#                      of the scan region. May be necessary in case fast
#                      skipping results in inaccuracies.
#                      Default: fast skipping enabled
#                 - bw <value>:
#                      Black/white discrimination value for lineart scans.
#                      Pixel values below that value are considered black,
#                      others are considered white. Range: 0-255.
#                      Default: 127
#
#
# Example for a LifeTec LT9350 (Mustek 1200CP clone):
#
#    scanner LT9350 0x378 cis1200
#       option top_adjust 0
#       option bw 127
#
#
# Uncomment/customize to your needs
#
#  Mustek 600 III EP Plus
#  name 600IIIEPP
#  vendor Mustek
#  option wait-lamp 5
  scanner Mustek-600IIIepp 0x378 CCD300
# scanner Mustek-600CP 0x378 cis600
# scanner Mustek-1200CP 0x378 cis1200
# scanner Mustek-1200CP+ 0x378 cis1200+
#

-- 
Hans 
hans007@prexar.com

registered Linux user  289023 

"They that can give up essential liberty to obtain a little 
temporary safety, deserve neither liberty nor safety." 
                                  -Benjamin Franklin
--=-qVfJvwOH3MIUKlXBG1Ez-- From anoah@pfeiffer.edu Fri Jul 11 14:22:59 2003 From: anoah@pfeiffer.edu (m. allan noah) Date: Fri, 11 Jul 2003 09:22:59 -0400 (EDT) Subject: [sane-devel] libusb vs linux kernel scanner driver Message-ID: i am running usb fujitsu scanner on linux 2.4.21. the fujitsu backend uses sanei_usb, so both the kernel scanner driver, and libusb work. however, libusb causes a long pause, and a couple of timeouts happen, before the scanner starts. after that, the multi-page (adf) scans proceed normally, with no other errors. so i did two scans with SADE_DEBUG_SANEI_USB=255, one with kernel scanner driver, one with libusb, and i compaired the parts prior to the pause using libusb. the usb packets, and the order they are sent in are the same. so, it would seem to be lower level than the backend. anyone know how can i get more debugging info from the kernel scanner driver and libusb, so that i can see exactly what packets are going out to the device, and what sort of time signature they have? allan -- "so don't tell us it can't be done, putting down what you don't know. money isn't our god, integrity will free our souls" - Max Cavalera From priyag" > Hi Allan, > > I want to have a graphical frontend. Moreover i want to run avision scanner > 8000S which is not supported by ScanAdf. > Do you have any more idea to run this? > > --- > Priya > > > > ----- Original Message ----- > From: "m. allan noah" > To: "priyag" > Cc: > Sent: Friday, July 11, 2003 6:39 PM > Subject: Re: [sane-devel] XSANE ADF problem > > > > i dont know about xsane (i dont use it) but if you want the adf to work, > you > > need to have a probram like 'scanadf' (which comes with the > sane-frontends), > > which is smart (or foolish :) enough to try to run additional scans for > adf use. > > > > allan > > > > On Fri, 11 Jul 2003, priyag wrote: > > > > > Hi, > > > > > > I m able to run xsane and am able to scan the documents through XSANE. > > > But now the problem is that I am able to scan only single page through > > > Automatic Document Feeder. The ADF is not taking all the documents > > > automatically. > > > > > > The problem which i could locate is that in the Setup menu the option > for > > > Automatic Document Feeder Modus is giving as "None" whereas the > literature > > > says it should have different values such as None, ADF etc. > > > Mine is an Avision 8000S scanner. scanimage is working fine. > > > > > > > > > I came to know that ..... > > > > > > The ADF Modus needs the cooperation between frontend (xsane) and > backend. > > > Some Backends do not use the options in a way xsane needs this. > > > > > > Can anyone let me know what options are needed and where i have to > write > > > those options so that i can work with XSANE and ADF? > > > > > > Or is there any other solution.?? > > > > > > I would be highly obliged. > > > > > > Regards > > > Priya Gupta > > > > > > > > > _______________________________________________ > > > Sane-devel mailing list > > > Sane-devel@www.mostang.com > > > http://www.mostang.com/mailman/listinfo/sane-devel > > > > > > > -- > > "so don't tell us it can't be done, putting down what you don't know. > > money isn't our god, integrity will free our souls" - Max Cavalera > From aanton@reversedhell.net Thu Jul 10 02:59:40 2003 From: aanton@reversedhell.net (Alin-Adrian Anton) Date: Thu, 10 Jul 2003 04:59:40 +0300 Subject: [sane-devel] Mustek 1200 UB on FreeBSD Message-ID: <3F0CC88C.6050609@reversedhell.net> Hello, I am going to change my scanner and I am going to buy a scanner which 100% works fine with FreeBSD. Obiously, an USB scanner, like Mustek 1200 UB. I would like to verify if indeed this scanner works well with FreeBSD and if anyone can tell, please tell me. I don't want to spend my summer coding an ISA module:-). I am already working on my mustek webcam driver, and lot of other busy coding projects. Thanks in advance! Regards, Alin. From henning@meier-geinitz.de Fri Jul 11 16:25:28 2003 From: henning@meier-geinitz.de (Henning Meier-Geinitz) Date: Fri, 11 Jul 2003 17:25:28 +0200 Subject: [sane-devel] Mustek 1200 UB on FreeBSD In-Reply-To: <3F0CC88C.6050609@reversedhell.net> References: <3F0CC88C.6050609@reversedhell.net> Message-ID: <20030711152528.GA13712@meier-geinitz.de> Hi, On Thu, Jul 10, 2003 at 04:59:40AM +0300, Alin-Adrian Anton wrote: > I am going to change my scanner and I am going to buy a scanner which > 100% works fine with FreeBSD. Obiously, an USB scanner, like Mustek 1200 > UB. I would like to verify if indeed this scanner works well with > FreeBSD and if anyone can tell, please tell me. It doesn't. Well, you can scan once (or as long as you keep xsane open) but not more. See the manpage: BUGS These devices have a hardware bug: Once data is written to them, they can't be resetted (toggle = DATA0). That means, any operation that tries to reset the device will result in running into timeouts. That means that this backend will fail when it is loaded the second time in some configurations: E.g. using libusb, (Free|Open|Net)BSD or with Linux if you unload and reload the scanner module. The only choice is to replug the scanner in this case. Better use a different scanner. By the way: Don't use scanners that are supported by the gt68xx backend. They don't work correctly with FreeBSD either (at least with 5.0, see man sane-gt68xx). In this case I suspect a problem with the kernel. Some time I'll try a more current version of FreeBSD, maybe it's fixed in the meantime. Bye, Henning From henning@meier-geinitz.de Fri Jul 11 16:27:54 2003 From: henning@meier-geinitz.de (Henning Meier-Geinitz) Date: Fri, 11 Jul 2003 17:27:54 +0200 Subject: [sane-devel] XSANE ADF problem In-Reply-To: References: <00b701c347a9$e1232d90$5505a8c0@priya> Message-ID: <20030711152754.GB13712@meier-geinitz.de> Hi, On Fri, Jul 11, 2003 at 09:09:26AM -0400, m. allan noah wrote: > i dont know about xsane (i dont use it) but if you want the adf to work, you > need to have a probram like 'scanadf' (which comes with the sane-frontends), > which is smart (or foolish :) enough to try to run additional scans for adf use. scanimage can do that also (see batch-scan options). And XSane. Bye, Henning From henning@meier-geinitz.de Fri Jul 11 16:30:10 2003 From: henning@meier-geinitz.de (Henning Meier-Geinitz) Date: Fri, 11 Jul 2003 17:30:10 +0200 Subject: [sane-devel] XSANE ADF problem In-Reply-To: <000801c347b4$16c94380$5505a8c0@priya> References: <000801c347b4$16c94380$5505a8c0@priya> Message-ID: <20030711153010.GC13712@meier-geinitz.de> Hi, On Fri, Jul 11, 2003 at 07:25:29PM +0530, priyag wrote: > > I want to have a graphical frontend. Moreover i want to run avision scanner > > 8000S which is not supported by ScanAdf. I doesn't need to be supported by scanadf. The support is in the backend. The only thing the frontend needs to do is to get more than one image. scanadf, scanimage and xsane can do that. Can you show us the output of "scanimage --help", please? So we can see how the option for the ADF is called exactly. Which version of xsane are you using? Bye, Henning From henning@meier-geinitz.de Fri Jul 11 16:34:08 2003 From: henning@meier-geinitz.de (Henning Meier-Geinitz) Date: Fri, 11 Jul 2003 17:34:08 +0200 Subject: [sane-devel] scanner help In-Reply-To: <1057928789.7805.15.camel@linux.local> References: <1057928789.7805.15.camel@linux.local> Message-ID: <20030711153408.GD13712@meier-geinitz.de> Hi, On Fri, Jul 11, 2003 at 09:06:39AM -0400, Hans Krueger wrote: > I had my mustek 600IIIep scanner working under suse 8.1 sane 1.0.4-47 > i586.rpm > now I have suse 8.2 sane 1.0.10-36 i586.rpm I tried to do like I did That's too new. Use 1.0.9. Since 1.0.10 the CCD scanners don't work anymore. See http://www.penguin-breeder.org/sane/mustek_pp/ . Bye, Henning From henning@meier-geinitz.de Fri Jul 11 16:38:43 2003 From: henning@meier-geinitz.de (Henning Meier-Geinitz) Date: Fri, 11 Jul 2003 17:38:43 +0200 Subject: [sane-devel] libusb vs linux kernel scanner driver In-Reply-To: References: Message-ID: <20030711153843.GE13712@meier-geinitz.de> Hi, On Fri, Jul 11, 2003 at 09:22:59AM -0400, m. allan noah wrote: > i am running usb fujitsu scanner on linux 2.4.21. the fujitsu backend uses > sanei_usb, so both the kernel scanner driver, and libusb work. however, libusb > causes a long pause, and a couple of timeouts happen, before the scanner starts. > after that, the multi-page (adf) scans proceed normally, with no other errors. Do you see any timeout from the scanner driver in syslog? Maybe the timeout of the scanner driver is just shorter. Usually a timeout occurs because of a bug in the backend (or hardware). But usually it's the other way round: the scanner driver tries longer to get some data than libusb. > so, it would seem to be lower level than the backend. anyone know how can i get > more debugging info from the kernel scanner driver and libusb, so that i can see > exactly what packets are going out to the device, and what sort of time > signature they have? Not sure about libusb but to enable debugging in the scanner driver, edit linux/drivers/usb/scanner.h. There are two options: One for general debugging and one that enables pronting very USB packet. Bye, Henning From anoah@pfeiffer.edu Fri Jul 11 19:57:43 2003 From: anoah@pfeiffer.edu (m. allan noah) Date: Fri, 11 Jul 2003 14:57:43 -0400 (EDT) Subject: [sane-devel] libusb vs linux kernel scanner driver In-Reply-To: <20030711153843.GE13712@meier-geinitz.de> Message-ID: On Fri, 11 Jul 2003, Henning Meier-Geinitz wrote: > Hi, > > On Fri, Jul 11, 2003 at 09:22:59AM -0400, m. allan noah wrote: > > i am running usb fujitsu scanner on linux 2.4.21. the fujitsu backend uses > > sanei_usb, so both the kernel scanner driver, and libusb work. however, libusb > > causes a long pause, and a couple of timeouts happen, before the scanner starts. > > after that, the multi-page (adf) scans proceed normally, with no other errors. > > Do you see any timeout from the scanner driver in syslog? Maybe the > timeout of the scanner driver is just shorter. nope, timeouts only with the libusb connection. Usually a timeout > occurs because of a bug in the backend (or hardware). But usually it's > the other way round: the scanner driver tries longer to get some data > than libusb. no, the kernel driver starts the scan the second you ask, with no errors in the log, the libusb connection has a couple timeouts, and the scan starts after the timeouts are over, maybe 30 seconds. i am thinking that the logic in the kernel scanner driver and the libusb portions of sanei_usb must be sending different packets to the scanner, even though the backend does not distinguish between the two. > > > so, it would seem to be lower level than the backend. anyone know how can i get > > more debugging info from the kernel scanner driver and libusb, so that i can see > > exactly what packets are going out to the device, and what sort of time > > signature they have? > > Not sure about libusb but to enable debugging in the scanner driver, > edit linux/drivers/usb/scanner.h. There are two options: One for > general debugging and one that enables pronting very USB packet. > cool, thanks. if i can get the scanner driver to dump all packets, and libusb to dump all, then i can compair. allan > Bye, > Henning > _______________________________________________ > Sane-devel mailing list > Sane-devel@www.mostang.com > http://www.mostang.com/mailman/listinfo/sane-devel > -- "so don't tell us it can't be done, putting down what you don't know. money isn't our god, integrity will free our souls" - Max Cavalera From henning@meier-geinitz.de Fri Jul 11 21:59:38 2003 From: henning@meier-geinitz.de (Henning Meier-Geinitz) Date: Fri, 11 Jul 2003 22:59:38 +0200 Subject: [sane-devel] libusb vs linux kernel scanner driver In-Reply-To: References: <20030711153843.GE13712@meier-geinitz.de> Message-ID: <20030711205938.GA15762@meier-geinitz.de> Hi, On Fri, Jul 11, 2003 at 02:57:43PM -0400, m. allan noah wrote: > no, the kernel driver starts the scan the second you ask, with no errors in the > log, the libusb connection has a couple timeouts, and the scan starts after the > timeouts are over, maybe 30 seconds. i am thinking that the logic in the kernel > scanner driver and the libusb portions of sanei_usb must be sending different > packets to the scanner, even though the backend does not distinguish between the > two. The scanner driver limits the maximum size of the packets to 32k I think. Maybe that's the difference? Can you show me a some lines of the log with SANE_DEBUG_SANEI_USB=255 and libusb? e.g. the part where the timeout occurs plus 20 lines before that happens? Bye, Henning From Thomas Guettler Fri Jul 11 23:08:40 2003 From: Thomas Guettler (Thomas Guettler) Date: Sat, 12 Jul 2003 00:08:40 +0200 Subject: [sane-devel] Epson 1660 Photo Message-ID: <20030711220840.GC3041@thomas-guettler.de> Hi! I just bouht a Epson 1660 Photo. I works fine, thank you all for this! Two small issues: 1: ==root@sonne:~# scanimage --list-devices device `epson:/dev/usb/scanner0' is a Epson GT-8300 flatbed scanner Why GT-8300? I have a 1660 Photo. "cd sane-source; grep -r 8300 *" did not show anything about a GT-8300. 2: Scanned negatives look faded. The colors are too white. After color equalize in gimp it looks quite good. Except that human skin is a bit to blue. Any hints? I use versionn 1.0.12 thomas -- Thomas Guettler http://www.thomas-guettler.de From khk@khk.net Sat Jul 12 01:40:10 2003 From: khk@khk.net (Karl Heinz Kremer) Date: Fri, 11 Jul 2003 20:40:10 -0400 Subject: [sane-devel] Epson 1660 Photo In-Reply-To: <20030711220840.GC3041@thomas-guettler.de> Message-ID: <644FDB74-B401-11D7-B23B-000A957E40E8@khk.net> On Friday, July 11, 2003, at 06:08 PM, Thomas Guettler wrote: > Hi! > > I just bouht a Epson 1660 Photo. > > I works fine, thank you all for this! > > Two small issues: > > 1: > > ==root@sonne:~# scanimage --list-devices > device `epson:/dev/usb/scanner0' is a Epson GT-8300 flatbed scanner > > Why GT-8300? I have a 1660 Photo. > > "cd sane-source; grep -r 8300 *" did not show anything about a GT-8300. See the last "Frequently asked question" on my FAQ page: http://www.khk.net/sane/faq.html > > 2: > > Scanned negatives look faded. The colors are too white. After color > equalize in gimp it looks quite good. Except that human skin is a bit > to blue. > > Any hints? Correcting negatives is something you either have to do manually, or you have to use a frontend that automates this. Karl Heinz From aanton@reversedhell.net Fri Jul 11 00:32:51 2003 From: aanton@reversedhell.net (Alin-Adrian Anton) Date: Fri, 11 Jul 2003 02:32:51 +0300 Subject: [sane-devel] Mustek 1200 UB on FreeBSD In-Reply-To: <3F0CC88C.6050609@reversedhell.net> References: <3F0CC88C.6050609@reversedhell.net> Message-ID: <3F0DF7A3.6030407@reversedhell.net> Alin-Adrian Anton wrote: > Hello, > > I am going to change my scanner and I am going to buy a scanner which > 100% works fine with FreeBSD. Obiously, an USB scanner, like Mustek > 1200 UB. I would like to verify if indeed this scanner works well with > FreeBSD and if anyone can tell, please tell me. > > I don't want to spend my summer coding an ISA module:-). I am already > working on my mustek webcam driver, and lot of other busy coding > projects. > > > Thanks in advance! > > Regards, > Alin. > > > _______________________________________________ > Sane-devel mailing list > Sane-devel@www.mostang.com > http://www.mostang.com/mailman/listinfo/sane-devel > Okay, Mustek 1200 UB works buggy. Then, let's do it the other way: what scanner would you recommend me to buy for working on FreeBSD with it? I am confident in your suggestions :-). Regards, Alin. From dave@i-r-labs.com Sat Jul 12 12:42:44 2003 From: dave@i-r-labs.com (David A Iacobellis) Date: Sat, 12 Jul 2003 07:42:44 -0400 Subject: [sane-devel] ccd scanners and 1.0.10 Message-ID: <200307120742.44392.dave@i-r-labs.com> I read on another site that ccd scanners were disabled in the sane 1.0.10 backend and only the cis scanners would work. Could somebody verify the truth in this statement? If this is true, would a ccd scanner not work at all or would it cause the application to hang? Thanks From jochen.eisinger@gmx.de Sat Jul 12 15:05:00 2003 From: jochen.eisinger@gmx.de (Jochen Eisinger) Date: Sat, 12 Jul 2003 16:05:00 +0200 Subject: [sane-devel] ccd scanners and 1.0.10 In-Reply-To: <200307120742.44392.dave@i-r-labs.com> References: <200307120742.44392.dave@i-r-labs.com> Message-ID: <20030712160500.5603d475.jochen.eisinger@gmx.de> --=.E(ZvrHD6M:2+ys Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Hi, yes, it's true, and it just shouldn't work. regards -- jochen [David A Iacobellis] > I read on another site that ccd scanners were disabled in the sane > 1.0.10 backend and only the cis scanners would work. Could somebody > verify the truth in this statement? If this is true, would a ccd > scanner not work at all or would it cause the application to hang? > > Thanks > _______________________________________________ > Sane-devel mailing list > Sane-devel@www.mostang.com > http://www.mostang.com/mailman/listinfo/sane-devel > --=.E(ZvrHD6M:2+ys Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQE/EBWS8OF76YrreuMRAhKZAJ4rwmj2WlMx+1eCbT1zPW3etmcPXgCg0onI gx1+9F0Nsn8qOhfbfDsi92g= =Rzmr -----END PGP SIGNATURE----- --=.E(ZvrHD6M:2+ys-- From henning@meier-geinitz.de Sat Jul 12 16:49:35 2003 From: henning@meier-geinitz.de (Henning Meier-Geinitz) Date: Sat, 12 Jul 2003 17:49:35 +0200 Subject: [sane-devel] ccd scanners and 1.0.10 In-Reply-To: <200307120742.44392.dave@i-r-labs.com> References: <200307120742.44392.dave@i-r-labs.com> Message-ID: <20030712154935.GC15762@meier-geinitz.de> Hi, On Sat, Jul 12, 2003 at 07:42:44AM -0400, David A Iacobellis wrote: > I read on another site that ccd scanners were disabled in the sane 1.0.10 > backend and only the cis scanners would work. Could somebody verify the > truth in this statement? That's only true for scanners supported by the mustek_pp backend, e.g. the Mustek 600 III EP Plus. See man sane-mustek_pp and http://www.penguin-breeder.org/sane/mustek_pp/ . Other CCD scanners work like they did before. Bye, Henning From tomf@sjpc.org Sun Jul 13 03:52:10 2003 From: tomf@sjpc.org (Thomas Frayne) Date: 12 Jul 2003 19:52:10 -0700 Subject: [sane-devel] HP 7450C ... Need new patch In-Reply-To: <20030706.162130.730557932.rene.rebe@gmx.net> References: <1057331386.3092.1002.camel@localhost.localdomain> <20030705.004101.640910003.rene.rebe@gmx.net> <1057435429.15799.40.camel@localhost.localdomain> <20030706.162130.730557932.rene.rebe@gmx.net> Message-ID: <1058064729.3167.147.camel@localhost.localdomain> On Sun, 2003-07-06 at 07:21, Rene Rebe wrote: > > I hope you saved the file with you mail application - otherwise you > might get problems due to whitespace / tab convertions ... > > If this fails I'll send an easier to apply and tested patch tomorrow > ... When I got back from my trip I read your note again, and realized that I should have saved the file containing the patch instead of using the clipboard to copy and paste the patch. I tried this today, and got rid of the malformed patch messages. However, the patch still failed. I saved the email to avision030712.diff, deleted the extraneous lines, saved, and executed: [tom@localhost backend]$ pwd /home/tom/rh9-downloads/sane-backends-1.0.12/backend [tom@localhost backend]$ patch -p0 < ./avision030712.diff patching file avision.c Hunk #1 FAILED at 82. Hunk #18 FAILED at 3053. Hunk #23 FAILED at 3194. Hunk #24 FAILED at 3215. 4 out of 25 hunks FAILED -- saving rejects to file avision.c.rej [tom@localhost backend]$ I was unable to figure out what to do with the rejected hunks. I'll send avision.c.rej separately. Please send me a patch that is easier for me to apply. Thanks, Tom Frayne From priyag" This is a multi-part message in MIME format. ------=_NextPart_000_0041_01C349FB.9DE511C0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi Henning, Rene, Allan, Thanx a lot for ur help. i m able to run XSANE with ADF now. Actually the problem was with the code of driver itself. I had to make = the changes in Avision.c file to get the options that XSANE needs for = automatic scanning through ADF. Previously it was scanning page by page = with ADF. Thanx once again Regards, Priya Gupta INDIA ------=_NextPart_000_0041_01C349FB.9DE511C0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi Henning, Rene, Allan,
 
Thanx a lot for ur help. i m able to = run XSANE with=20 ADF now.
 
Actually the problem was with the code = of driver=20 itself. I had to make the changes in Avision.c file to get the options = that=20 XSANE needs for automatic scanning through ADF. Previously it was = scanning page=20 by page with ADF.
 
Thanx once again
 
Regards,
Priya=20 Gupta
INDIA
------=_NextPart_000_0041_01C349FB.9DE511C0-- From didierbe@sps.nus.edu.sg Mon Jul 14 12:04:07 2003 From: didierbe@sps.nus.edu.sg (Didier Casse) Date: Mon, 14 Jul 2003 19:04:07 +0800 (SGT) Subject: [sane-devel] problems with cpufreq.c during recompilation Message-ID: Hi there, I tried to patch my Linux kernel 2.4.20-8 i686 i386 GNU/Linux (on redhat 9) with the linux-ppscsi patch so that I can add my parallel port scanner HP Scanjet 5100C to my pc. I started as follows in the /usr/src/linux-2.4.20-8/ directory step 1. patch -p1 < linux.ppscsi.patch step 2. make menuconfig to ensure SCSI suppoer and parallel port support step 3. make dep step 4. make bzImage step 5. make modules then error occures at step 5 as shown below: +--------------------------------------------------------------------+ /usr/src/linux-2.4.20-8/include/linux/dcache.h: In function `dget': /usr/src/linux-2.4.20-8/include/linux/dcache.h:254: warning: implicit declaration of function `__out_of_line_bug_R8b0fd3c5' cpufreq.c: In function `cpufreq_parse_policy': cpufreq.c:111: warning: implicit declaration of function `sscanf_R859204af' cpufreq.c: In function `cpufreq_proc_read': cpufreq.c:225: warning: implicit declaration of function `sprintf_R1d26aa98' cpufreq.c: In function `cpufreq_proc_init': cpufreq.c:327: warning: implicit declaration of function `printk_R1b7d4074' cpufreq.c: In function `cpufreq_restore_Re39890df': cpufreq.c:1109: warning: implicit declaration of function `panic_R01075bf0' cpufreq.c: At top level: cpufreq.c:192: warning: `cpufreq_setup' defined but not used make[1]: *** [cpufreq.o] Error 1 make[1]: Leaving directory `/usr/src/linux-2.4.20-8/kernel' make: *** [_mod_kernel] Error 2 +--------------------------------------------------------------------+ Can anybody help me out with this thing as i really need to get that scanner going? I have no clue how to solve this type of error and everybody on the redhat mailing list is clueless too! Thanks for helping out. regards, Didier --- PhD student Singapore Synchrotron Light Source (SSLS) 5 Research Link, Singapore 117603 Email: slsbdfc@nus.edu.sg or didierbe@sps.nus.edu.sg Website: http://ssls.nus.edu.sg From didierbe@sps.nus.edu.sg Mon Jul 14 12:08:07 2003 From: didierbe@sps.nus.edu.sg (Didier Casse) Date: Mon, 14 Jul 2003 19:08:07 +0800 (SGT) Subject: [sane-devel] HP Scanjet 5100C Message-ID: Hi , I tried to use the linux-ppscsi path to path my kernel so that I can add my HP Scanjet 5100C to my redhat 9 box but it was a failure. Can anybody who installed successfully this type of scanner before using other methods, share with me how to do that? Please describe as comprehensively as possible the steps to make xsane detect my parport scanner. I really need to install this scanner in my office and I do not use Windows so I'm really stuck. Please provide some help. -- Didier PhD student Singapore Synchrotron Light Source (SSLS) 5 Research Link, Singapore 117603 Email: slsbdfc@nus.edu.sg or didierbe@sps.nus.edu.sg Website: http://ssls.nus.edu.sg From rene.rebe@gmx.net Mon Jul 14 14:31:43 2003 From: rene.rebe@gmx.net (Rene Rebe) Date: Mon, 14 Jul 2003 15:31:43 +0200 (CEST) Subject: [sane-devel] HP 7450C ... Need new patch In-Reply-To: <1058064729.3167.147.camel@localhost.localdomain> References: <1057435429.15799.40.camel@localhost.localdomain> <20030706.162130.730557932.rene.rebe@gmx.net> <1058064729.3167.147.camel@localhost.localdomain> Message-ID: <20030714.153143.846936143.rene.rebe@gmx.net> Hi, I was away to LinuxTag - a Linux fair here in germy - over the weekend. I'll work on the backend this night, finish the endian issues ..., and release a new backend (hopefully around midnight. I'll send a seperate mail when finished. on: 12 Jul 2003 19:52:10 -0700, Thomas Frayne wrote: > On Sun, 2003-07-06 at 07:21, Rene Rebe wrote: > = > > = > > I hope you saved the file with you mail application - otherwise you= > > might get problems due to whitespace / tab convertions ... > > = > > If this fails I'll send an easier to apply and tested patch tomorro= w > > ... > = > When I got back from my trip I read your note again, and realized tha= t I = > should have saved the file containing the patch instead of using the = > clipboard to copy and paste the patch. I tried this today, and got r= id = > of the malformed patch messages. However, the patch still failed. > = > I saved the email to avision030712.diff, deleted the extraneous lines= , = > saved, and executed: > = > [tom@localhost backend]$ pwd > /home/tom/rh9-downloads/sane-backends-1.0.12/backend > [tom@localhost backend]$ patch -p0 < ./avision030712.diff > patching file avision.c > Hunk #1 FAILED at 82. > Hunk #18 FAILED at 3053. > Hunk #23 FAILED at 3194. > Hunk #24 FAILED at 3215. > 4 out of 25 hunks FAILED -- saving rejects to file avision.c.rej > [tom@localhost backend]$ > = > I was unable to figure out what to do with the rejected hunks. > I'll send avision.c.rej separately. > = > Please send me a patch that is easier for me to apply. > = > Thanks, > = > Tom Frayne Sincerely yours, Ren=E9 Rebe - ROCK Linux stable release maintainer -- = Ren=E9 Rebe - Europe/Germany/Berlin rene@rocklinux.org rene.rebe@gmx.net http://www.rocklinux.org http://www.rocklinux.org/people/rene = http://gsmp.tfh-berlin.de/gsmp http://gsmp.tfh-berlin.de/rene From rene.rebe@gmx.net Mon Jul 14 14:36:20 2003 From: rene.rebe@gmx.net (Rene Rebe) Date: Mon, 14 Jul 2003 15:36:20 +0200 (CEST) Subject: [sane-devel] XSANE ADF problem In-Reply-To: <004601c349cf$f8cb0b20$5505a8c0@priya> References: <004601c349cf$f8cb0b20$5505a8c0@priya> Message-ID: <20030714.153620.607960897.rene.rebe@gmx.net> Hi, On: Mon, 14 Jul 2003 11:32:33 +0530, "priyag" wrote: > Hi Henning, Rene, Allan, > = > Thanx a lot for ur help. i m able to run XSANE with ADF now. > = > Actually the problem was with the code of driver itself. I had to mak= e the changes in Avision.c file to get the options that XSANE needs for= automatic scanning through ADF. Previously it was scanning page by pag= e with ADF. > = > Thanx once again Could you mail the code you have modified (best would be a unified diff)? > Regards, > Priya Gupta > INDIA > = Sincerely yours, Ren=E9 Rebe - ROCK Linux stable release maintainer -- = Ren=E9 Rebe - Europe/Germany/Berlin rene@rocklinux.org rene.rebe@gmx.net http://www.rocklinux.org http://www.rocklinux.org/people/rene = http://gsmp.tfh-berlin.de/gsmp http://gsmp.tfh-berlin.de/rene From stef-listes@wanadoo.fr Tue Jul 15 07:51:50 2003 From: stef-listes@wanadoo.fr (stef) Date: Tue, 15 Jul 2003 06:51:50 +0000 Subject: [sane-devel] How to scan color images in UMAX 2000p In-Reply-To: References: Message-ID: <20030715065150.GA649@wanadoo.fr> On Fri, Jul 04, 2003 at 12:02:05PM +0530, aneesh m raj wrote: > Hi all, > How can I scan color images using scanimage. I couldnt find any options. > Thanks > Aneesh Hello, you can get all available options with (this isnot specific to umax_pp backend): scanimage -d dev -h with 'dev' the device name given by 'scanimage -L'. With my settings, it is umax_pp:/dev/parport0, so 'scanimage -d umax_pp:/dev/parport0 -h' gives you all the scanning options of the umax_pp backend. Finally, the one you wanted is Color: ... --mode Lineart|Grayscale|Color [Grayscale] Selects the scan mode (e.g., lineart,monochrome, or color). ... Regards, Stef From stef-listes@wanadoo.fr Tue Jul 15 08:06:30 2003 From: stef-listes@wanadoo.fr (stef) Date: Tue, 15 Jul 2003 07:06:30 +0000 Subject: [sane-devel] UMAX Astra 610P on Debian Woody In-Reply-To: <1057730161.3f0bae7125c67@www.correo.unam.mx> References: <1057730161.3f0bae7125c67@www.correo.unam.mx> Message-ID: <20030715070630.GB649@wanadoo.fr> On Wed, Jul 09, 2003 at 12:56:01AM -0500, ahg@servidor.unam.mx wrote: > > Hi, > > I'm writing to ask what's the best way (if there is a way) to use a UMAX Astra > 610P scanner with Debian Woody. > > This device is listed as "don't work (yet)" at > http://panda.mostang.com/sane/sane-mfgs.html#UMAX > > I guess I'm hoping that "don't work" might be a bit out of date and that there's > _some_ way to make it work "now". > Due to lack of hardware to test, the 610P is barely detected, and is not operated by the umax_pp backend. > I could... > > ...install sane the latest SANE binaries as described at > http://people.debian.org/~aurel32/sane.html > > ...or > > ...get an unstable source of sane-umax_pp > > ...or > > ...anything else you might recommend. > > I don't mind if there are a few hoops to jump through to get this working. > However, the box and the scanner aren't mine, and I have to leave them in > relatively good working order for non-techincal GNU/Linux newbies, so any > solution has to be relatively low-maintenance. > The umax_pp backend is far from supporting the 610P model. It is likely (but unproven) that is uses the same high-level commands than the 1220P/2000P. But the main problem is that is doesn't use the EPP mode the same way. So all low-level communication has to be reworked. Even though I have some logs of the data flow between the scanner and windows under win98, it's not easy to implement. Such a thing can't be seriously done without having the hardware to test. > Thanks in advance for your help, > Andrew > > P.S. If this works, will I be able to connect a printer to the scaner's "to > printer" port? > I don't know for 610P, but for 1220P/200P, you don't have to do anything special to have the 'pass-through' working. Currently, when the backend uses the ppdev character device, it mitigates the trouble of using printer and scanner at the same time. ie, you scan and print, printing waits for any scan to complete before starting, but launching xsane or scanimage kills any printing in progress. > P.P.S. The machine also has Win 98 installed and the scanner works OK under that > "operating system"... so I suppose I might be able to make it work under Wine... Only the windows 3.1 driver has a chance to work under wine since it uses direct hardware access. They are some infos in wine on how to achieve this. Newer drivers for win 9x use a VxD, so will never work under wine. > though if that's the way to go I'd appreciate one or two brief pointers as to > where to start... Thanks again. > Regards, Stef From didierbe@sps.nus.edu.sg Tue Jul 15 06:37:45 2003 From: didierbe@sps.nus.edu.sg (Didier Casse) Date: Tue, 15 Jul 2003 13:37:45 +0800 (SGT) Subject: [sane-devel] HP Scanjet 5100C Message-ID: Hi , I tried to use the linux-ppscsi path to path my kernel so that I can add my HP Scanjet 5100C to my redhat 9 box but it was a failure. Can anybody who installed successfully this type of scanner before using other methods, share with me how to do that? Please describe as comprehensively as possible the steps to make xsane detect my parport scanner. I really need to install this scanner in my office and I do not use Windows so I'm really stuck. Please provide some help. -- Didier PhD student Singapore Synchrotron Light Source (SSLS) 5 Research Link, Singapore 117603 Email: slsbdfc@nus.edu.sg or didierbe@sps.nus.edu.sg Website: http://ssls.nus.edu.sg From anoah@pfeiffer.edu Tue Jul 15 19:48:56 2003 From: anoah@pfeiffer.edu (m. allan noah) Date: Tue, 15 Jul 2003 14:48:56 -0400 (EDT) Subject: [sane-devel] libusb vs linux kernel scanner driver In-Reply-To: <20030711205938.GA15762@meier-geinitz.de> Message-ID: ok, this seems highly intermittent. various combinations of: a. scanner driver already loaded at plugin time, b. scanner driver loaded by hotplug c. manually rmmod and insmod scanner driver, d. allowing the scanner to go in and out of power saving mode are causing many errors in the syslog, and pauses for many seconds either when initially attaching to the scanner, or after the adf loads the first sheet from the hopper, but before it returns image data. i am having some trouble being able to repeat the errors on demand, but it may have something to do with sanei_usb scanning the /dev/usb/scanner0 files, and then immediately scanning the same device via libusb, but i cannot say for certain. i will continue to look. allan On Fri, 11 Jul 2003, Henning Meier-Geinitz wrote: > Hi, > > On Fri, Jul 11, 2003 at 02:57:43PM -0400, m. allan noah wrote: > > no, the kernel driver starts the scan the second you ask, with no errors in the > > log, the libusb connection has a couple timeouts, and the scan starts after the > > timeouts are over, maybe 30 seconds. i am thinking that the logic in the kernel > > scanner driver and the libusb portions of sanei_usb must be sending different > > packets to the scanner, even though the backend does not distinguish between the > > two. > > The scanner driver limits the maximum size of the packets to 32k I > think. Maybe that's the difference? > > Can you show me a some lines of the log with SANE_DEBUG_SANEI_USB=255 > and libusb? e.g. the part where the timeout occurs plus 20 lines > before that happens? > > Bye, > Henning > _______________________________________________ > Sane-devel mailing list > Sane-devel@www.mostang.com > http://www.mostang.com/mailman/listinfo/sane-devel > -- "so don't tell us it can't be done, putting down what you don't know. money isn't our god, integrity will free our souls" - Max Cavalera From oliver.rauch@rauch-domain.de Wed Jul 16 18:37:30 2003 From: oliver.rauch@rauch-domain.de (Oliver Rauch) Date: Wed, 16 Jul 2003 19:37:30 +0200 Subject: [sane-devel] Re: Bug on xsane 0.90 and help In-Reply-To: <200307161856.28860.blaisorblade_work@yahoo.it> References: <200307161856.28860.blaisorblade_work@yahoo.it> Message-ID: <200307161937.30965.oliver.rauch@rauch-domain.de> Hello. 1) The problem with the inherited filedscriptor to the html viewer is a backend related problem. My prefered way is that the backend can be opened by several frontends at the same time and it only does block when a frontend starts the scan. If the backend can only be opened by one frontend it may help to add your suggested fcntl() function, but this must be done in the backend. 2) xsane can reduce the color depth from 48/16 bit to 24/8 bit. Take a look at preferences->setup->image Oliver On Wednesday 16 July 2003 18:56, you wrote: > Hi, I'm a user of Xsane and I've had some problem with it. > First, when it starts the browser to view the help, Xsane passes to it = the > file descriptor of scanner device file(or better, the browser inherits = it > from exec() ). When you open it, you should set the 'close-on-exec' fla= g > with fcntl(see its man page). > > This created some problem when I closed xsane and left the browser open= ed: > - I couldn't "rmmod scanner" to reinsert it with correct parameters lik= e > vendor and product ID, the module didn't autodetect my scanner even if > those ID are present in the sources. > - I wasn't able to restart xsane because the scanner was open, so busy, > until I closed the browser. And finding that was not that easy(I used l= sof, > a luser wouldn't be able to). > > I'm not sure the second part is right, because I had various problems, > however it is sensible that only one program at a time can open a scann= er, > right? I've even given a look to kernel sources that seem to agree with= me: > if (scn->isopen) { > dbg("open_scanner(%d): Scanner device is already open", > scn_minor); > err =3D -EBUSY; > goto out_error; > } > > > Second, on my system, with a HP 3400C USB scanner, the "niash" backend = is > used(I didn't find a word in the docs about it). This backend doesn't > support acquiring data with reduced color depth, so I wasn't able to se= t > it. Shouldn't xsane emulate in a general way the reduction of color-dep= th, > with the ability to delegate it to the backend if it supports this? --=20 http://www.xsane.org http://www.mostang.com/sane http://www.rauch-domain.de mailto:Oliver.Rauch@Rauch-Domain.DE From henning@meier-geinitz.de Wed Jul 16 19:10:58 2003 From: henning@meier-geinitz.de (Henning Meier-Geinitz) Date: Wed, 16 Jul 2003 20:10:58 +0200 Subject: [sane-devel] Re: Bug on xsane 0.90 and help In-Reply-To: <200307161937.30965.oliver.rauch@rauch-domain.de> References: <200307161856.28860.blaisorblade_work@yahoo.it> <200307161937.30965.oliver.rauch@rauch-domain.de> Message-ID: <20030716181058.GB7333@meier-geinitz.de> Hi, On Wed, Jul 16, 2003 at 07:37:30PM +0200, Oliver Rauch wrote: > 1) The problem with the inherited filedscriptor to the > html viewer is a backend related problem. Oh, so my assumption that I'm the only one who noticed that "problem" was wrong :-) > My prefered way is that the backend can be opened by > several frontends at the same time and it only does block > when a frontend starts the scan. If the backend can only be > opened by one frontend it may help to add your suggested > fcntl() function, but this must be done in the backend. That's a good idea. I'll try that in my backends. I hope fcntl() is portable? Bye, Henning From Thomas Guettler Mon Jul 14 20:54:04 2003 From: Thomas Guettler (Thomas Guettler) Date: Mon, 14 Jul 2003 21:54:04 +0200 Subject: [sane-devel] Colorcorection of scanned negatives In-Reply-To: <644FDB74-B401-11D7-B23B-000A957E40E8@khk.net> References: <20030711220840.GC3041@thomas-guettler.de> <644FDB74-B401-11D7-B23B-000A957E40E8@khk.net> Message-ID: <20030714195404.GD772@thomas-guettler.de> On Fri, Jul 11, 2003 at 08:40:10PM -0400, Karl Heinz Kremer wrote: > >Scanned negatives look faded. The colors are too white. After color > >equalize in gimp it looks quite good. Except that human skin is a bit > >to blue. > > > >Any hints? > > Correcting negatives is something you either have to do manually, or > you have to use a frontend that automates this. Hi Karl and Sane-Users/Developers, I looked at you documentation of how to get rid of the orange of scanned negatives. Since I am very new to gimp and scanning it would be nice to be more verbose. Which frontend could automate this? thomas -- Thomas Guettler http://www.thomas-guettler.de From crapsite@gmx.net Thu Jul 17 06:17:43 2003 From: crapsite@gmx.net (Michael Herder) Date: Thu, 17 Jul 2003 07:17:43 +0200 Subject: [sane-devel] Small xscanimage bug Message-ID: <20030717051751.C8F04F8C@panda.mostang.com> Hi, Gerard Klaver reported a small bug in xscanimage (and quiteinsane). I don't know, whether he also informed the xscanimage maintainer, therefore I report it on sane-devel. Problem: The size of huge images gets displayed incorrectly. For instance, the size of a 27192 x 37439 image in 8bit RGB mode is reported as 1185,07 Mbyte. Fix: Cast ints to double before multiplication. In xscanimage.c around line 464 change double size = params.bytes_per_line * params.lines; to double size = (double)params.bytes_per_line * (double)params.lines; otherwise multiplying two ints might exceed INT_MAX. bb Michael From henning@meier-geinitz.de Thu Jul 17 15:06:17 2003 From: henning@meier-geinitz.de (Henning Meier-Geinitz) Date: Thu, 17 Jul 2003 16:06:17 +0200 Subject: [sane-devel] Small xscanimage bug In-Reply-To: <20030717051751.C8F04F8C@panda.mostang.com> References: <20030717051751.C8F04F8C@panda.mostang.com> Message-ID: <20030717140617.GB1197@meier-geinitz.de> Hi, On Thu, Jul 17, 2003 at 07:17:43AM +0200, Michael Herder wrote: > The size of huge images gets displayed incorrectly. For instance, the size > of a 27192 x 37439 image in 8bit RGB mode is reported as 1185,07 Mbyte. Thanks. It's now fixed in CVS. Bye, Henning From gerard@gkall.hobby.nl Thu Jul 17 17:23:05 2003 From: gerard@gkall.hobby.nl (gerard klaver) Date: 17 Jul 2003 16:23:05 +0000 Subject: [sane-devel] Small xscanimage bug In-Reply-To: <20030717051751.C8F04F8C@panda.mostang.com> References: <20030717051751.C8F04F8C@panda.mostang.com> Message-ID: <1058458984.1799.13.camel@gkall-lex> On Thu, 2003-07-17 at 05:17, Michael Herder wrote: > Hi, > Gerard Klaver reported a small bug in xscanimage (and quiteinsane). I don't > know, whether he also informed the xscanimage maintainer, therefore I report > it on sane-devel. Not yet, but thanks :-) > > Problem: > The size of huge images gets displayed incorrectly. For instance, the size > of a 27192 x 37439 image in 8bit RGB mode is reported as 1185,07 Mbyte. > > Fix: > Cast ints to double before multiplication. > In xscanimage.c around line 464 change > double size = params.bytes_per_line * params.lines; > > to > > double size = (double)params.bytes_per_line * (double)params.lines; > > otherwise multiplying two ints might exceed INT_MAX. > > bb > Michael I've changed the following lines in the test backend so you don't need a connected scanner to test this: test.conf line 27 change 1200 to 4800 test.c line 88 change 1200 to 4800 -- ---------- m.vr.gr. Gerard Klaver From henning@meier-geinitz.de Thu Jul 17 15:58:22 2003 From: henning@meier-geinitz.de (Henning Meier-Geinitz) Date: Thu, 17 Jul 2003 16:58:22 +0200 Subject: [sane-devel] Small xscanimage bug In-Reply-To: <1058458984.1799.13.camel@gkall-lex> References: <20030717051751.C8F04F8C@panda.mostang.com> <1058458984.1799.13.camel@gkall-lex> Message-ID: <20030717145822.GA8073@meier-geinitz.de> Hi, On Thu, Jul 17, 2003 at 04:23:05PM +0000, gerard klaver wrote: > I've changed the following lines in the test backend so you don't need a > connected scanner to test this: That's how I tested that also :-) > test.conf line 27 change 1200 to 4800 > test.c line 88 change 1200 to 4800 Changing in test.conf is enough. Bye, Henning From henning@meier-geinitz.de Thu Jul 17 16:03:45 2003 From: henning@meier-geinitz.de (Henning Meier-Geinitz) Date: Thu, 17 Jul 2003 17:03:45 +0200 Subject: [sane-devel] Re: Bug on xsane 0.90 and help In-Reply-To: <200307161937.30965.oliver.rauch@rauch-domain.de> References: <200307161856.28860.blaisorblade_work@yahoo.it> <200307161937.30965.oliver.rauch@rauch-domain.de> Message-ID: <20030717150345.GB8073@meier-geinitz.de> Hi, On Wed, Jul 16, 2003 at 07:37:30PM +0200, Oliver Rauch wrote: > If the backend can only be opened by one frontend it may help to add > your suggested fcntl() function, but this must be done in the > backend. I've changed this in sanei_usb instead, so it should work for all USB backends now. I haven't touched sanei_scsi, so anyone with more expereince with that code may add the appropriate fcntl there if there are any SCSI backends that open the scanner on sane_start, not sane_open. Bye, Henning From henning@meier-geinitz.de Fri Jul 18 13:23:45 2003 From: henning@meier-geinitz.de (Henning Meier-Geinitz) Date: Fri, 18 Jul 2003 14:23:45 +0200 Subject: [sane-devel] sane-find-scanner can detect the type of USB chipset now Message-ID: <20030718122345.GA3449@meier-geinitz.de> Hi, I've just added support for detecting USB chipsets in sane-find-scanner in CVS. If you don't have access to CVS, a snapshot of sane-backends is here: http://www.meier-geinitz.de/sane/snapshots/ If the chipset is detected, the output looks like this: found USB scanner (vendor=0x05d8, product=0x4002, chip=GT-6801) at libusb:001:011 or this (if the kernel scanner driver is loaded): found USB scanner (vendor=0x05d8, product=0x4002, chip=GT-6801?) at libusb:001:011 The idea is to be able to find out, which new devices use the same chip and may be supported by an already existing backend. Keep in mind that just detecting the chipsets doesn't mean that the scanner is supported by SANE. Please test with your scanners. I want to make sure that I haven't broken anything. Also please add tests for more chipsets. First check the characteristics of your chip in the USB descriptor, e.g. number and type of endpoints. If you are sure that you've found "your" chip, you can send a typical message to the scanner like a control message to get the firmware version or similar. The code is in tools/check-usb-chip.c. Just copy one of the existing tests and change as it fits. If you have a scanner whose chip is not detected but can't write the code yourself, please send the output of "sane-find-scanner -v -v" and tell me, which chip it uses. I'll try to write a test myself in this case. The following chipsets are currently detected: Grandtech GT-6801 (e.g. Mustek BearPaw 1200 CU) Grandtech GT-6816 (e.g. Mustek BearPaw 2400 CU Plus) Mustek MA-1015 (Mustek ScanExpress 1200 USB) Mustek MA-1017 (e.g. Mustek ScanExpress 1200 UB) Mustek MA-1509 (Mustek BearPaw 1200F, SCSI-over-USB) National Semiconductor LM983x "Merlin" (e.g. HP ScanJet 2200c) The code for these tests was taken from the "check-usb-scanner" program which is obsolete now. Bye, Henning From iainjunk@freeuk.com Fri Jul 18 22:29:37 2003 From: iainjunk@freeuk.com (Iain Mac Donald) Date: 18 Jul 2003 22:29:37 +0100 Subject: [sane-devel] scanimage & epson with gamma correction Message-ID: <1058563777.3435.10.camel@bill> Hello I have been trying to use scanimage to batch scan some colour slides on an Epson 2450 Photo. My purpose is to have a digital reference file for every slide without having to interactively edit each image. Scans using the standard settings usually appear too dark. I decided to use the --red-gamma-table option as the --brightness option did not produce the desired results. The command I used is shown below When doing this I get the error message attempted to set inactive option red-gamma-table As an alternative I tried to use the --gamma-table option (not listed for epson) I received this error unrecognized option '--gamma-table' The scanimage -h man page specifically mentions the red-gamma-table option (and green, blue). I have also used the --gamma-correction 'User defined' option at the same time which is accepted but I still get the same error message. Otherwise everything works perfectly. Anyone have a working version of this or know what is wrong? Is gamma correction unsupported? Any help much appreciated. Iain. ============================================= scanimage -d epson:/dev/usb/scanner0 --format=pnm --focus-position 'Focus 2.5mm above glass' --sharpness 2 --resolution 600 --red-gamma-table '/home/iain/.sane/gammatable.epson ' --source 'Transparency Unit' --film-type 'Positive Film' -x 28mm -y 40mm -l 38.5mm -t 7.8mm --mode Color > $fn.1.pnm debian scanimage 1.0.12 -- Iain Mac Donald Glenfintaig Lodge, Spean Bridge, Lochaber, PH34 4DX, Scotland Phone +44 (1397) 712 407 email iainjunk@freeuk.com From henning@meier-geinitz.de Sat Jul 19 07:22:51 2003 From: henning@meier-geinitz.de (Henning Meier-Geinitz) Date: Sat, 19 Jul 2003 08:22:51 +0200 Subject: [sane-devel] scanimage & epson with gamma correction In-Reply-To: <1058563777.3435.10.camel@bill> References: <1058563777.3435.10.camel@bill> Message-ID: <20030719062251.GA7130@meier-geinitz.de> Hi, On Fri, Jul 18, 2003 at 10:29:37PM +0100, Iain Mac Donald wrote: > I have been trying to use scanimage to batch scan some colour slides on > an Epson 2450 Photo. My purpose is to have a digital reference file for > every slide without having to interactively edit each image. Scans using > the standard settings usually appear too dark. I decided to use the > --red-gamma-table option as the --brightness option did not produce the > desired results. The command I used is shown below > > When doing this I get the error message > > attempted to set inactive option red-gamma-table Well, the option is not active :-) When you run "scanimage -h", you should get an "inactive" marker after the option. > As an alternative I tried to use the --gamma-table option (not listed > for epson) I received this error That one is disabled in the source code. > The scanimage -h man page specifically mentions the red-gamma-table > option (and green, blue). I have also used the --gamma-correction 'User > defined' option at the same time which is accepted but I still get the > same error message. I think "--gamma-correction" must be used before --red-gamma-table in the command line. Does "scanimage --help" list "User Defined" as a possible value for --gama-correction? > Otherwise everything works perfectly. Anyone have a working version of > this or know what is wrong? Is gamma correction unsupported? Any help > much appreciated. I don't have an Epson scanner. But from the source code it looks like that not all scanners support that feature. > scanimage -d epson:/dev/usb/scanner0 --format=pnm --focus-position > 'Focus 2.5mm above glass' --sharpness 2 --resolution 600 > --red-gamma-table '/home/iain/.sane/gammatable.epson ' --source The argument for the --red-gamma-table is the gamma table itself, not a filename. You can generate gamma tables with gamma4scanimage. Bye, Henning From iainjunk@freeuk.com Sat Jul 19 10:03:52 2003 From: iainjunk@freeuk.com (Iain Mac Donald) Date: 19 Jul 2003 10:03:52 +0100 Subject: [sane-devel] scanimage & epson with gamma correction In-Reply-To: <20030719062251.GA7130@meier-geinitz.de> References: <1058563777.3435.10.camel@bill> <20030719062251.GA7130@meier-geinitz.de> Message-ID: <1058605432.414.47.camel@bill> Hello Henning Thanks for the info. On Sat, 2003-07-19 at 07:22, Henning Meier-Geinitz wrote: > > > > When doing this I get the error message > > > > attempted to set inactive option red-gamma-table > > Well, the option is not active :-) When you run "scanimage -h", you > should get an "inactive" marker after the option. > The option as listed in the man page is "--red-gamma-table 0..255,... Gamma-correction table for the red band." Colour correction options do have inactive flags. > > I think "--gamma-correction" must be used before --red-gamma-table in > the command line. Does "scanimage --help" list "User Defined" as a > possible value for --gama-correction? I had tried the option in lots of positions ;-) The man page (scanimage --help...) states "--gamma-correction Default|User defined|High density printing|Low density printing|High contrast printing [Default] Selectes the gamma correction value from a list of pre-defined devices or the user defined table, which can be downloaded to the scanner" > > The argument for the --red-gamma-table is the gamma table itself, not > a filename. You can generate gamma tables with gamma4scanimage. > I have used gamma4scanimage and a very handy tool it is too. So rather than referencing a file I have placed the table on the command line didn't work though. Maybe I need to try a few more combinations. What confuses me though is it appears that xsane does correct the gamma. Or is xsane changing the value before showing the picture in the viewer? Thanks and regards, Iain. From henning@meier-geinitz.de Sat Jul 19 10:24:07 2003 From: henning@meier-geinitz.de (Henning Meier-Geinitz) Date: Sat, 19 Jul 2003 11:24:07 +0200 Subject: [sane-devel] scanimage & epson with gamma correction In-Reply-To: <1058605432.414.47.camel@bill> References: <1058563777.3435.10.camel@bill> <20030719062251.GA7130@meier-geinitz.de> <1058605432.414.47.camel@bill> Message-ID: <20030719092407.GA7419@meier-geinitz.de> Hi, On Sat, Jul 19, 2003 at 10:03:52AM +0100, Iain Mac Donald wrote: > Thanks for the info. As I said I don't have an Epson scanner for testing. So the epson backend maintainer may have the authorative answer :-) > The option as listed in the man page is > > "--red-gamma-table 0..255,... > Gamma-correction table for the red band." > > Colour correction options do have inactive flags. Ooops, it looks like scanimage doesn't print "inactive" dor array-like functions. That needs to be fixed, I think. By the way: Be careful with the scanimage manpage. It only lists examples. The options are "generated" by the backends, not scanimage. So your backend may have different options than those mentioned in the manpage. scanimage --help is authorative. > > I think "--gamma-correction" must be used before --red-gamma-table in > > the command line. Does "scanimage --help" list "User Defined" as a > > possible value for --gama-correction? > > I had tried the option in lots of positions ;-) > The man page (scanimage --help...) states > > "--gamma-correction Default|User defined|High density printing|Low > density printing|High contrast printing [Default] > Selectes the gamma correction value from a list of pre-defined > devices > or the user defined table, which can be downloaded to the > scanner" --gamma-correction "User defined" --red-gamma-table 0,1,2,3,... should work in this case. But maybe I missed some other option? > > The argument for the --red-gamma-table is the gamma table itself, not > > a filename. You can generate gamma tables with gamma4scanimage. > > > > I have used gamma4scanimage and a very handy tool it is too. So rather > than referencing a file I have placed the table on the command line > didn't work though. Maybe I need to try a few more combinations. I think the "setting inactive option" is a different error, it's not connected to the kind of the argument. > What confuses me though is it appears that xsane does correct the gamma. > Or is xsane changing the value before showing the picture in the viewer? XSane can do both: Use its own gamma tables applied after scanning the image and use the gamma table options of the backend. If the backend provides gamma table options, they will be used by scanimage. Maybe setting the environment variable SANE_DEBUG_EPSON=255 and calling scanimage after that shows a hint what's wrong? Bye, Henning From henning@meier-geinitz.de Sat Jul 19 11:10:15 2003 From: henning@meier-geinitz.de (Henning Meier-Geinitz) Date: Sat, 19 Jul 2003 12:10:15 +0200 Subject: [sane-devel] Does anyone need help writing a backend? Message-ID: <20030719101015.GA7579@meier-geinitz.de> Hi, Usually people ask for help here. In this case it's the other way round: I may have some spare time during the next few weeks so if anyone needs help writing a backend I may able to spend some time on it. The list of unsupported scanners gets longer and longer so I thought something should be done :-) I prefer working on fairly recent not too expensive USB scanners so I can get one of these devices for coding. Bye, Henning From henning@meier-geinitz.de Sat Jul 19 12:36:07 2003 From: henning@meier-geinitz.de (Henning Meier-Geinitz) Date: Sat, 19 Jul 2003 13:36:07 +0200 Subject: [sane-devel] Please update description files Message-ID: <20030719113607.GA8628@meier-geinitz.de> Hi, Please update your description files (doc/descriptions/*.desc) to use the new :status values and remove the :backend status. So the users get a better idea how good the support for their scanners are. Quote from doc/descriptions.txt: The keyword `:status' is an indication of the level of support for the model. It's followed by one of the following keyword arguments: `:unsupported', `:untested', `:minimal', `:basic', `:good', or `:complete'. The `:status' keyword refers to the previous `:model', is optional and should be used only once per model. `:unsupported' means the device is not supported at least by this backend. The keyword should only be used in the file `unsupported.desc', or to make clear that a specific scanner is not supported by a backend. `:untested' means the device may be supported but couldn't be tested. `:minimal' means that the device is detected and scans at least in one mode. But the quality is bad or important features won't work. `:basic' means it works at least in the most important modes but quality is not perfect. `:good' means the device is usable for day-to-day work. Some rather exotic features may be missing. `:complete' means the backends supports everything the device can do. Example: `:status :untested' Running "make" in doc/ will give you warnings for your backend if there are still old :status values in your description file. The following backend description files haven't been updated yet: avision canon canon_pp canon630u coolscan2 fujitsu gphoto2 (just remove the :status line, check spelling of comment :-) hp hp5400 hpsj5s leo matsushita microtek microtek2 mustek_pp plustek sceptre sharp snapscan st400 teco1 teco2 teco3 umax umax1220u umax_pp If you don't have enough time in the next few weeks please contact me. I'll try to change your file to the new systax in this case. Before the next release I'll update all remaining description files. However it's better if the backend maintainer does it because he knows how well his scanners are supported so I don't have to guess. If you own a scanner that is supported by SANE please tell us if the status mentioned on our pages is correct. E.g. search for your scanner in the scanner search engine: http://sane.informatik.uni-freiburg.de/cgi-bin/driver.pl Currently the old status codes are translated to the new ones, but this translation isn't very intelligent. A stable backend can still provide only minimal support or vice versa. Bye, Henning From henning@meier-geinitz.de Sat Jul 19 13:06:41 2003 From: henning@meier-geinitz.de (Henning Meier-Geinitz) Date: Sat, 19 Jul 2003 14:06:41 +0200 Subject: [sane-devel] Does anyone need help writing a backend? In-Reply-To: <20030719.062848.1836.0.jollyprince@juno.com> References: <20030719.062848.1836.0.jollyprince@juno.com> Message-ID: <20030719120641.GB7579@meier-geinitz.de> Hi, (cc'ing to sane-devel) On Sat, Jul 19, 2003 at 06:28:48AM -0500, Roger O Wales wrote: > I do, but I don't think I'm going to be able to get the info from either > the Visioneer people or the Realtek people. I've called Mr. Brandon > Green the Technical Director of Visioneer at ((25) 251-6300 but keep > getting his voice mail service and no replies. Realtek is worse. I'm > not very good at reverse engineering stuff even though I've been chief > engineer several times in my life. I have no idea how complicated that realtek protocol is. Sometimes it's quite easy, sometimes it's pretty hard. > I will say that the Visioneer 5800 satisfies the low end of the price > spectrum. Micro Center, a national mail order, and retailer is featuring > a $10 rebate on this scanner for $29.99 USD. I'd like to help but the problem is that Visioneer scanners don't seem to be sold in Germany. At least I have checked about 10 online stores and nobody sells any Visioneer scanners. Even Ebay Germany has only a few of them and only older models. So I don't think I'm able to get one of these and help. Support for these scanners would be good because this Realtek chipset seems to be used by quite a variety of scanners. Bye, Henning From iainjunk@freeuk.com Sat Jul 19 13:27:24 2003 From: iainjunk@freeuk.com (Iain Mac Donald) Date: 19 Jul 2003 13:27:24 +0100 Subject: [sane-devel] scanimage & epson with gamma correction In-Reply-To: <20030719062251.GA7130@meier-geinitz.de> References: <1058563777.3435.10.camel@bill> <20030719062251.GA7130@meier-geinitz.de> Message-ID: <1058617645.414.98.camel@bill> Whoopee! It works Thanks Karl Heinz and Henning. Here are my findings. scanimage -d epson:/dev/usb/scanner0 --gamma-correction 'User defined' THEN --red-gamma-table 'gamma table NOT referenced file' The --gamma-correction option must come before --red-gamma-table (or green or blue). Otherwise the response is unrecognized option '--gamma-table' It doesn't even need to be immediately before just somewhere before. The option --focus-position 'Focus 2.5mm above glass' doesn't report as a problem maybe it just gets ignored. My scans do appear a little "soft" compared to the original. This might depend on how thick my slide mounts are and whether the default is to focus on the glass or 2.5mm above it. For 35mm I don't use film strips. Now back to gamma4scanimage... -- Iain From gerhard@gjaeger.de Sat Jul 19 13:38:36 2003 From: gerhard@gjaeger.de (Jaeger, Gerhard) Date: Sat, 19 Jul 2003 14:38:36 +0200 Subject: [sane-devel] Does anyone need help writing a backend? In-Reply-To: <20030719101015.GA7579@meier-geinitz.de> References: <20030719101015.GA7579@meier-geinitz.de> Message-ID: <200307191438.36375.gerhard@gjaeger.de> On Samstag, 19. Juli 2003 12:10, Henning Meier-Geinitz wrote: > Hi, > > Usually people ask for help here. In this case it's the other way > round: I may have some spare time during the next few weeks so if > anyone needs help writing a backend I may able to spend some time on > it. "Oh, what a lucky man he is...." >The list of unsupported scanners gets longer and longer so I > thought something should be done :-) > > I prefer working on fairly recent not too expensive USB scanners so I > can get one of these devices for coding. Well, I think that by supporting the GeneSys Logic stuff we can cover a lot of currently available devices. I know that Oliver Rauch is working on that but I don't know the status. The only thing I know is, that he's short of time... --> Just a proposal! Are there any other chipsets around that may have the same spreading? Ciao Gerhard From jollyprince@juno.com Sat Jul 19 15:48:10 2003 From: jollyprince@juno.com (Roger O Wales) Date: Sat, 19 Jul 2003 09:48:10 -0500 Subject: [sane-devel] Does anyone need help writing a backend? Message-ID: <20030719.094810.1772.0.jollyprince@juno.com> All roads seem to lead me to a new solution. I ordered an Epson 1260 yesterday. On Sat, 19 Jul 2003 14:06:41 +0200 Henning Meier-Geinitz writes: > Hi, > > (cc'ing to sane-devel) > > On Sat, Jul 19, 2003 at 06:28:48AM -0500, Roger O Wales wrote: > > I do, but I don't think I'm going to be able to get the info from > either > > the Visioneer people or the Realtek people. I've called Mr. > Brandon > > Green the Technical Director of Visioneer at ((25) 251-6300 but > keep > > getting his voice mail service and no replies. Realtek is worse. > I'm > > not very good at reverse engineering stuff even though I've been > chief > > engineer several times in my life. > > I have no idea how complicated that realtek protocol is. Sometimes > it's quite easy, sometimes it's pretty hard. > > > I will say that the Visioneer 5800 satisfies the low end of the > price > > spectrum. Micro Center, a national mail order, and retailer is > featuring > > a $10 rebate on this scanner for $29.99 USD. > > I'd like to help but the problem is that Visioneer scanners don't > seem > to be sold in Germany. At least I have checked about 10 online > stores > and nobody sells any Visioneer scanners. Even Ebay Germany has only > a > few of them and only older models. So I don't think I'm able to get > one of these and help. > > Support for these scanners would be good because this Realtek > chipset > seems to be used by quite a variety of scanners. > > Bye, > Henning > _______________________________________________ > Sane-devel mailing list > Sane-devel@www.mostang.com > http://www.mostang.com/mailman/listinfo/sane-devel > > ________________________________________________________________ The best thing to hit the internet in years - Juno SpeedBand! Surf the web up to FIVE TIMES FASTER! Only $14.95/ month - visit www.juno.com to sign up today! From hshane@austin.rr.com Sat Jul 19 22:45:12 2003 From: hshane@austin.rr.com (Howard Shane) Date: Sat, 19 Jul 2003 16:45:12 -0500 Subject: [sane-devel] Third revision of Scanner HOWTO available Message-ID: <3F19BBE8.6030409@austin.rr.com> ...at http://66.25.191.66/docs/HOWTOS/Scanner/index.html This is your last chance to point out any remaining technical errata prior to grammatical review and (hopefully) publication by TLDP. Thanks for any input, hs From henning@meier-geinitz.de Sun Jul 20 10:55:13 2003 From: henning@meier-geinitz.de (Henning Meier-Geinitz) Date: Sun, 20 Jul 2003 11:55:13 +0200 Subject: [sane-devel] Third revision of Scanner HOWTO available In-Reply-To: <3F19BBE8.6030409@austin.rr.com> References: <3F19BBE8.6030409@austin.rr.com> Message-ID: <20030720095513.GA27016@meier-geinitz.de> Hi, On Sat, Jul 19, 2003 at 04:45:12PM -0500, Howard Shane wrote: > ...at http://66.25.191.66/docs/HOWTOS/Scanner/index.html > > This is your last chance to point out any remaining technical errata > prior to grammatical review and (hopefully) publication by TLDP. Ok, lets see if I can nitpick a bit :-) I'm not a native english speaker, so grammar/spelling corrections may be wrong. | 1. Introduction | | within X-windows ->"The X Consortium requests that the following names be used when referring to this software: X, X Window System, X Version 11, X Window System, Version 11, X11" (from man X) | It does not address how use the available software --> how to use (?) | 2.1. SCSI Devices | While most SCSI-cards that linux supports allow scanning, you should | be aware that if your SCSI card came come bundled with your scanner | you may run into problems, as these may not be complete SCSI cards | (much like a winmodem). I don't think that's a very good comparison. While a winmodem is not a modem at all (it's more a sound chip), the bundled SCSI adapter are real SCSI cards. They may not be of good qquality, i.e. don't have IRQ/DMA support. But at least the ones I know of can be used for e.g. CDROMS, too. Well, I wouldn't do that but anyway. | 3.1. USB Scanners and Libusb | $ grep -e USB_DEVICEFS /boot/config-X.XX --> I think it's easier to do grep "\(usbfs\)\|\(usbdevfs\)" /proc/filesystems This way you are checking the currently running kernel. | If you have USB device filesystem running, and you have usb devices | loaded already you can confirm this with cat /proc/bus/usb, which | should give you a list of active devices the kernel is aware of. --> It's "cat /proc/bus/usb/devices". | IMPORTANT: You cannot have both kernel scanner support enabled (i.e., | compiled in statically or the module loaded if a module) and libusb | installed and access the hardware at the same time, or nothing will | work. Well, I know what you mean but it's not completely true the way you have written it. If the scanner driver is loaded and has detected the scanner it will "lock" it. So libusb can't use it. But the scanner driver can still use it. After unloading the scanner driver, libusb can use it again. So there is no real conflict. The scanner driver just has the higher priority. | (A hint for newbies: [...] | where 'file.txt' will contain the info that can then be accessed with | cat.) --> with "less", otherwse it will scroll again too fast. | 3.2.2. Kernel USB Support | USB-ohci, USB-ehci, --> lower case (usb-ohci) | 3.3.2. Directio | | Some parallel port scanners can be accessed with directio (a.k.a. | direct_IO) instead; you will likely need to compile your own SANE | binaries and have libieee1484 installed. You will need generic scsi | device support in your kernel. At compile time use the | --enable-parport-directio --enable-scsi-directio with the ./configure | script. I'm not an expert in these things but I think you are mixing different topics here. --enable-parport-directio means, that direct hardware access to the ports (inb/outb assembler commands) is used. So you don't need libieee1284 (not 1448) here. This is only used in the mustek_pp and umax_pp backends. --enable-scsi-directio From README.linux: SCSI Direct IO: Recent versions of the Linux SG driver for the 2.4 kernels support direct IO, i.e., the SCSI adapter's DMA chip copies data directly to/from user memory. Direct IO reduces memory usage, but it can lead to access conflicts, if a backend uses shared memory. SANE does not use direct IO by default. If you want to use it, run configure --enable-scsi-directio=yes I don't think you should mention --enable-scsi-directio in a HOWTO document. it's seldomly (if at all?) used. | 5.1. Getting SANE | that of the Software Building HOWTO. --> the link to the HOWTO seems to be wrong. | For Debian users there is a sane package in stable (Woody), testing | (Sarge) and unstable (Sid) package repositories, so a simple apt-get | install sane is all that is required whatever version you are using. The package in Woody is quite old but there are backports from Aurelien Jarno: http://people.debian.org/~aurel32/sane.html | There is an excellent write-up of how to compile SANE from source and | get an SCSI scanner working at Laurent-jan's HOWTO page originally | written by Steve Sheriff (the graphics are interesting, too). While his HOWTO is written very detailed, with fairly current distributions it's not necessary to compile all the graphic libraries yourself. You'll find some discussions about this howto on the sane-devel list if I remeber correctly. I'd mention the fact that compiling the glib/gtk/gimp stuff is not necessary otherwise it's quite misleading for newbies.Even the newest versions of xsane and xscanimage can be compiled with old gtk and gimp libraries. | 5.2. Configuring SANE | 5.2.1. Selecting the SANE Backend --> Before doing anything else, I'd run "scanimage -L". Most scanners will just run out-of-the-box so it's not necessary to go through all your trouble-shooting steps. If it's not found, the user can still check the files you mention. | There are two important entries in the file named after the backend | your scanner will use: --> give an example (e.g. "epson.conf") | interface type (scsi vs. usb), and the device | name. If you have a usb scanner, you will usually need to comment out | (make a # mark in front of) the 'scsi' line, Usually that's not needed. If there is no scsi device, it just won't be detected. | and uncomment the line containing 'usb.' If it's commented. Is there any backend but "epson", where this is the case? Maybe it'd be possible to do automatic detection in the epson backend, too? (without manipulating the config file). Well, I'll ask the epson maintainer. | In addition the device name may need to be changed, depending on your | distribution (e.g., /dev/scanner0 may become /dev/usb/scanner0) That's unlikely. Maybe you mean /dev/usbscanner0 --> /dev/usb/scanner0? | though if you made the symlink I suggested in the section on making | devices this probably isn't necessary. You mean the /dev/scanner symlink? This is ONLY used for SCSI devices. Don't use it for USB scanners. And even for SCSI, it's not necessary for most backends on Linux and FreeBSD. | For a full list try apropos sane. The exact protocols and | manufacturers available may depend on your version of SANE. A pointer to "man sane" may be useful, too, as it lists all the backends and gives some hints which one may be the right one. | 5.2.2. Across a Network I still think you should make more clear that the saned server runs on the machine that has the scanner and the frontend/net backend runs on the client that want access to the server with the scanner. At least I wouldn't have understaood that you mean the client when you talk about the "target". | In addition port 6566 will need to be open, accomplished by adding the | following line to /etc/services: | | sane 6566/tcp # SANE network scanner daemon I think I already mentioned that he last time you asked for corrections (?): /etc/services is just a list of name/number combinations. It's not responsible for "opening the port". That#s done by inetd/xinetd. | Finally, be sure that the word "net" isn't commented out in the | dll.conf file referenced in the previous section. On the client machine. And you need to edit net.conf on the client to add the hostname of the server. | 6. Testing Your Scanner | sane-find-scanner -v First I would do it without the "-v" as you may miss the important information. If the scanner is not found, "sane-find-scanner -v -v" may be useful. | If your scanner is a type not looked for by sane-find-scanner, you can | try scanimage --test -v which may yield more information about | attached devices (you may need to do this twice). Well, "scanimage --test -v" jsut starts a test scan. It won't give you any information. Try "scanimage -L" instead. | If your scanner isn't identified by any of the above, but you're | pretty sure you've done everything right up to now, you can try | scanning as outlined in the next paragraph. It's highly unlikely that the scanner is dnot detected but scanning works. That only happens when the backend is commented out in dll.conf but the user selects the backend explicitely (with -d). | $ scanimage -d backend:/dev/scanner0 --format pnm > outfile.pnm If the user did everything right until now, the following should just work: scanimage >image.pnm | 7. Sane Frontends | X-windows see above | A more spartan solution (though technically a meta-backend) is | xscanimage, which is bundled with SANE and can be evoked from within | an xterm. See man xscanimage for more info. xscanimage is not a meta backend, it's just a normal frontend. Meta backends are backends that call other backends (e.g. dll, net). xscanimage is in the sane-frontends package so calling it "bundled with SANE" may be a bit confusing. xscanimage can not only be invoked "from an xterm" but can be started like any other software from an icon or menu. It just depens on the window manage you are using. I'd add a link to the SANE frontends page so the user can have a look at all the other frontends: http://www.mostang.com/sane/sane-frontends.html | 8. Troubleshooting | 8.1. If your device cannot be found... | If this isn't the problem, go to /etc/sane.d/ (or | /usr/local/etc/sane.d) and edit the file sane.dll, commenting out any | backend or other (e.g. v4l) protocol that you don't need. It's "dll.conf", not "sane.dll". | If you have a usb scanner, you will usually need to comment out (make | a # mark in front of) the 'scsi' line, As I said, I don't remeber a case where that would be necessary. The same comments as above apply. | 8.2. What if SANE can't identify (or correctly identify) my USB scanner? | | Often when you first set up your scanner equipment it becomes | necessary to help the kernel along in identifying the device you wish | to access. If you've done everything by the book and it still doesn't | work, and you don't see any obvious error messages in the steps | leading up to this point, it may be necessary to give the kernel more | parameters when loading modules, particularly if you have a USB device. That's true. But you should mention that in this case the scanner is not even detected by sane-find-scanner. If it's found by sane-find-scanner that usually means that the kernel has detected the scanner correctly. | Within the kernel source is the cryptic data required. If you don't | have the source code for your kernel installed you can obtain it from | your linux distribution vendor. For a USB device, go to | /usr/src/linux/drivers/usb and find the file scanner.h. then use grep | for your particular model, in this example Epson: I don't think that looking at the kernel source code helps in this case. If the scanner is not detected by the kernel, it is not listed in scanner.h. So looking at scanner.h for the ids does not help. Better check /proc/bus/usb/devices or /var/log/messages for the vendor and product ids of the scanner. An if you have libusb, you don't need to do anything like this. Mabye I have missed it, but you should also point out that having more than one version of SANE installed at the same time calls for trouble. Thanks for your work! Bye, Henning From a.deuring@satzbau-gmbh.de Sun Jul 20 12:42:58 2003 From: a.deuring@satzbau-gmbh.de (abel deuring) Date: Sun, 20 Jul 2003 13:42:58 +0200 Subject: [sane-devel] Third revision of Scanner HOWTO available In-Reply-To: <3F19BBE8.6030409@austin.rr.com> References: <3F19BBE8.6030409@austin.rr.com> Message-ID: <3F1A8042.6040307@gmx.net> Howard Shane schrieb: > ...at http://66.25.191.66/docs/HOWTOS/Scanner/index.html > > This is your last chance to point out any remaining technical errata > prior to grammatical review and (hopefully) publication by TLDP. Perhaps I'm jumping a bit too late into the discussion of your Howto, but anyway, here are my 2 cents: > 2.1. SCSI Devices > > These scanners connect to an SCSI adapter. In general just about > any scanner using an SCSI interface should work, though some with > difficulty. While most SCSI-cards that linux supports allow scanning, > you should be aware that if your SCSI card came come bundled with > your scanner you may run into problems, as these may not be complete > SCSI cards (much like a winmodem). I don't think that "just about any scanner using a SCSI interface" works with Sane -- users should first check on the Sane web site, if a scanner is indeed supported. > 3.2.1. Kernel SCSI Support > > If you have an SCSI-type interface, when invoking make config, make > menuconfig or make xconfig etc., be aware that in addition to the > option to support your particular SCSI adapter, generic SCSI device > support is also required. Such generic devices are usually named > /dev/sg0, /dev/sg1... Since you probably already know if your card is > supported from the supported devices and backends list, all that is ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > required after confirming that your kernel supports your hardware and > generic SCSI devices is to load the appropriate module(s): The text "supported devices and backends list" links to the page http://www.mostang.com/sane/sane-mfgs.html (SANE: supported devices), which does not list any SCSI adapters, but "only" scanners, while you are writing here about kernel SCSI support. I think it would be good to point out (either in 3.2.1 or perhaps in section 2.1) that one must have support for a SCSI adapter card in the kernel, regardless of the SCSI scanner model. And it would perhaps help to mention that any combination of SCSI adapter and SCSI scanner will work, provided that the SCSI adapter is suported by the kernel and that the scanner is supported by Sane. (there are some nasty combinations though, like HP scanners / 2.4 kernels / Bus Logic adapters.) In "7. Sane Frontends", you write only about xsane and xscanimage. While I agree that xsane is probably the most advanced frontend, I think it would be fair to mention at least shortly that other frontends exist, like Quiteinsane and Kooka. Even Openoffice has builtin support for Sane (though not with a very comfortable user interface...). Abel From peter@pscomp.com Sun Jul 20 13:48:54 2003 From: peter@pscomp.com (Peter Santoro) Date: Sun, 20 Jul 2003 08:48:54 -0400 Subject: [sane-devel] Sane API Suggestion Message-ID: <3F1A8FB6.60505@pscomp.com> The initial version of my based application (written in scheme) does not use the sane api directly, but utilizes scanimage and scanadf to perform scanning. In a future release, I would like to use the sane api directly for better control. Although I have a number of years of experience programming C/C++/Java, I now prefer to use scheme for most of my programming. After briefly looking at the sane api, I noticed that callbacks are sometimes used. I am aware of a number of ways and various ffi libraries to handle callbacks from non-C to C, but it sure would be nice if the sane API was a little more non-C friendly. Specifically, when a callback pointer is required, why not also require a "user data" void pointer (or perhaps an integer id) that would be returned untouched to the callback as a parameter? This would allow non-C languages to interface more easily to the sane api. A thin C interface layer could then use one callback dispatcher to handle all C callbacks. The callback dispatcher could use stdarg.h to process the other args or perhaps they could be passed to the callback using a count and array. In the future, I would be happy to contribute a scheme->sane interface library to the sane project, but it sure would be nice if the sane api was more non-C friendly. Peter From peter@pscomp.com Sun Jul 20 14:00:41 2003 From: peter@pscomp.com (Peter Santoro) Date: Sun, 20 Jul 2003 09:00:41 -0400 Subject: [sane-devel] re: Sane API Suggestion Message-ID: <3F1A9279.1060006@pscomp.com> Oops, sorry for the typo in my first paragraph. Here's my previous post with a corrected first paragraph: The initial version of my application (written in scheme) does not use the sane api directly, but utilizes scanimage and scanadf to perform scanning. In a future release, I would like to use the sane api directly for better control. Although I have a number of years of experience programming C/C++/Java, I now prefer to use scheme for most of my programming. After briefly looking at the sane api, I noticed that callbacks are sometimes used. I am aware of a number of ways and various ffi libraries to handle callbacks from non-C to C, but it sure would be nice if the sane API was a little more non-C friendly. Specifically, when a callback pointer is required, why not also require a "user data" void pointer (or perhaps an integer id) that would be returned untouched to the callback as a parameter? This would allow non-C languages to interface more easily to the sane api. A thin C interface layer could then use one callback dispatcher to handle all C callbacks. The callback dispatcher could use stdarg.h to process the other args or perhaps they could be passed to the callback using a count and array. In the future, I would be happy to contribute a scheme->sane interface library to the sane project, but it sure would be nice if the sane api was more non-C friendly. Peter From henning@meier-geinitz.de Sun Jul 20 13:54:31 2003 From: henning@meier-geinitz.de (Henning Meier-Geinitz) Date: Sun, 20 Jul 2003 14:54:31 +0200 Subject: [sane-devel] Does anyone need help writing a backend? In-Reply-To: <200307191438.36375.gerhard@gjaeger.de> References: <20030719101015.GA7579@meier-geinitz.de> <200307191438.36375.gerhard@gjaeger.de> Message-ID: <20030720125431.GA4833@meier-geinitz.de> Hi, On Sat, Jul 19, 2003 at 02:38:36PM +0200, Jaeger, Gerhard wrote: > On Samstag, 19. Juli 2003 12:10, Henning Meier-Geinitz wrote: > > Hi, > > > > Usually people ask for help here. In this case it's the other way > > round: I may have some spare time during the next few weeks so if > > anyone needs help writing a backend I may able to spend some time on > > it. > > "Oh, what a lucky man he is...." Ha, I just finished my PhD examination so I think it's fair to have some free time now :-) > >The list of unsupported scanners gets longer and longer so I > > thought something should be done :-) > > > > I prefer working on fairly recent not too expensive USB scanners so I > > can get one of these devices for coding. > > Well, I think that by supporting the GeneSys Logic stuff we can cover a lot of > currently available devices. I know that Oliver Rauch is working on that but I > don't know the status. The only thing I know is, that he's short of time... > --> Just a proposal! Ok, I'll get a UMAX 4500 and will see what I can do. From my quick scan of our lists it looks like these scanners use a GL646 chip: Avision iVina FB1600 http://www.meier-geinitz.de/sane/misc/umax-astra-4500.txt Genius ColorPage HR7X http://www.meier-geinitz.de/sane/misc/genius-colorpage-hr7x.txt Lexmark X83 http://www.meier-geinitz.de/sane/misc/lexmark-x83.txt Medion/Tevion MD 5345 http://www.meier-geinitz.de/sane/misc/medion-MD5345.txt Medion MD6228 Medion MD5345 http://www.meier-geinitz.de/sane/misc/medion-md6228.txt Plustek OpticPro S12 Plustek OpticPro S24 UMAX Astra 4500 http://www.meier-geinitz.de/sane/misc/umax-astra-4500.txt And maybe the: Canon CanoScan D2400UF (maybe) http://www.meier-geinitz.de/sane/misc/canon-d2400uf.txt But the interval for the interrupt endpoint is different here: Ivl=10ms. I'm not sure if that matters. Any more scanners that use the GL646 chipset? > Are there any other chipsets around that may have the same spreading? There are some more Genesys chipsets (e.g. the gl841). I have no idea how common they are and how different they are from the gl646. The Realtek RTS8801B and C chips are also fairly common. E.g. some HP and Visioneer scanners use these chips. Ok, so I'd like to know everything about the gl646. I know the data sheet from http://www.genesyslogic.com/GL646.htm but nothing more. Are there already any logs or code (Oliver?)? Bye, Henning From henning@meier-geinitz.de Sun Jul 20 14:49:58 2003 From: henning@meier-geinitz.de (Henning Meier-Geinitz) Date: Sun, 20 Jul 2003 15:49:58 +0200 Subject: [sane-devel] Sane API Suggestion In-Reply-To: <3F1A8FB6.60505@pscomp.com> References: <3F1A8FB6.60505@pscomp.com> Message-ID: <20030720134958.GB4833@meier-geinitz.de> Hi, On Sun, Jul 20, 2003 at 08:48:54AM -0400, Peter Santoro wrote: > Although I have a number of years of experience programming C/C++/Java, I > now prefer to use scheme for most of my programming. After briefly looking > at the sane api, I noticed that callbacks are sometimes used. From my memories, there is only one callback in the current API: the authorization callback. And that one is only used very seldomly anyway. > I am aware > of a number of ways and various ffi libraries to handle callbacks from > non-C to C, but it sure would be nice if the sane API was a little more > non-C friendly. Specifically, when a callback pointer is required, why not > also require a "user data" void pointer (or perhaps an integer id) that > would be returned untouched to the callback as a parameter? This would > allow non-C languages to interface more easily to the sane api. I have to admit that I don't understand why this helps. Well, I don't know scheme so maybe it's quite obvious. Even if we had more than one callback, the callback is identified by its (function) pointer. So why do we need more than that? O haven't tried, but even if you call more than one backend at the same time one callback per callback type should be enough if the callback itsself is thread-safe. > A thin C interface layer could then use one callback dispatcher to > handle all C callbacks. The callback dispatcher could use stdarg.h > to process the other args or perhaps they could be passed to the > callback using a count and array. Well, maybe the other developers have more experience with other languages. My first impression however, is that this makes the interface more complicated and complex. However, I'm no expert in interface design so if the other developers say it's better that way, I'll accept that. > In the future, I would be happy to contribute a scheme->sane interface > library to the sane project, but it sure would be nice if the sane api was > more non-C friendly. Well, it's a C interface so beeing C-friendly is a feature :-) Just for the record: the SANE 1 standard is fixed, it won't be changed. Even for SANE 2 I don't think we should make any changes that make it more incompatible than necessary. We'll have to provide a a sane2/sane1 meta backend and everything that introduces incompatibilities can make that goal harder to achieve. Bye, Henning From henning@meier-geinitz.de Sun Jul 20 14:52:20 2003 From: henning@meier-geinitz.de (Henning Meier-Geinitz) Date: Sun, 20 Jul 2003 15:52:20 +0200 Subject: [sane-devel] Sane API Suggestion In-Reply-To: <3F1A8FB6.60505@pscomp.com> References: <3F1A8FB6.60505@pscomp.com> Message-ID: <20030720135220.GC4833@meier-geinitz.de> Hi, I forgot to add: On Sun, Jul 20, 2003 at 08:48:54AM -0400, Peter Santoro wrote: > In the future, I would be happy to contribute a scheme->sane interface > library to the sane project, but it sure would be nice if the sane api was > more non-C friendly. I don't want to discourage you: A scheme->sane interface and interfaces to other languages are higly appreciated. I rememebr someone writing a C++ interface and there is a (extremely outdated) java interface. Bye, Henning From andras@users.sourceforge.net Sun Jul 20 15:55:17 2003 From: andras@users.sourceforge.net (Major A) Date: Sun, 20 Jul 2003 15:55:17 +0100 Subject: [sane-devel] Third revision of Scanner HOWTO available In-Reply-To: <3F19BBE8.6030409@austin.rr.com> References: <3F19BBE8.6030409@austin.rr.com> Message-ID: <20030720145517.GE12005@ventus.lan> Howard, > Thanks for any input, Sorry for joining the discussion so late, and sorry for possibly duplicating what others have said (I didn't have time to read their responses). chapter 2.: There is no mention of IEEE 1394 devices. There should be, since several of those are supported by SANE, and setup might not be trivial. (See problems with LS-8000 with certain kernel versions.) (Oh, I've just spotted "Firewire" in there -- please refer to it as IEEE 1394, because that's the standard name, Firewire and i.Link are proprietary names for the same thing by Apple and Sony.) "Most USB devices are supported ... with the SANE application programming interface." This is very confusing, I think you should split that into two sentences. One thing is that they are supported by SANE, the other is that SANE uses a homogeneous API throughout, regardless of the hardware. chapter 3.: "IMPORTANT: You cannot have both kernel scanner support enabled (i.e., compiled in statically or the module loaded if a module) and libusb installed and access the hardware at the same time, or nothing will work." Why not? The only thing that won't work is sane-backends with a USB scanner if it was built with libusb support. "nothing will work" is a bit of an exaggeration. Also, libusb can safely be installed when the kernel USB scanner module is loaded, even SANE will work as long as sane-backend was built without libusb support. I'd write "Directio" as "DirectIO" in the title, or even "Direct I/O", to avoid confusion (directio can be mistaken as a typo, or a latin word!). chapter 4.: There is no mention of libusb here -- you don't need any device files outside /proc/bus/usb/ if you use libusb. Somewhere on the line, you should also include instructions on how to use hotplug to modify permissions to devices in /proc/bus/usb/ so that a regular user can access the scanner. "WARNING: If you enable 'devfs' without devfsd you will be left with an unbootable system!" -- not true: this only applies if CONFIG_DEVFS_MOUNT is also set. chapter 5.: saned section: there's no mention at all of the changes required to net.conf. Also, what's the warning all about? I'd say it's advisable to run saned as a dedicated user (I usually call it saned), but it's not a group. Also, once saned is set up properly, _everyone_ has access to the scanner without requiring root privileges, as long as their computer is listed in saned.conf. chapter 6.: It would be very important to note here that sane-find-scanner isn't related to any backends, therefore cannot tell whether the scanner is supported or not. It only looks for devices which claim to be scanners. BTW, it also works for IEEE 1394 devices (which essentially behave as SCSI once SBP2 is set up). chapter 7.: "X-windows" is misleading and even wrong. Please use "X11" or "The X Window System". "X-windows" sounds like a sci-fi version of M$ Windows. "gtk+-1.2": version unnecessary, write "GTK+" (in capitals please) It would be nice to elaborate on the GIMP-xsane relationship, i.e. that xsane can be used as a GIMP plugin, and maybe even how. Most people I know only ever scan with the GIMP plugin because they're used to TWAIN scanners under Windows that only support scanning from within an application. "A more spartan solution (though technically a meta-backend) is xscanimage, which is bundled with SANE": 1. it's not really spartan, given the gamma adjustment capabilities which surpass those of xsane, 2. it's NOT a meta-backend but a frontend, 3. it's bundled with sane-frontends, SANE is too general. This was just a quick run through the document, hope it all makes sense. I like the overall structure of the document. Andras =========================================================================== Major Andras e-mail: andras@users.sourceforge.net www: http://andras.webhop.org/ =========================================================================== From andras@users.sourceforge.net Sun Jul 20 16:18:30 2003 From: andras@users.sourceforge.net (Major A) Date: Sun, 20 Jul 2003 16:18:30 +0100 Subject: [sane-devel] Sane API Suggestion In-Reply-To: <20030720134958.GB4833@meier-geinitz.de> References: <3F1A8FB6.60505@pscomp.com> <20030720134958.GB4833@meier-geinitz.de> Message-ID: <20030720151830.GA8908@ventus.lan> > > A thin C interface layer could then use one callback dispatcher to > > handle all C callbacks. The callback dispatcher could use stdarg.h > > to process the other args or perhaps they could be passed to the > > callback using a count and array. > > Well, maybe the other developers have more experience with other > languages. My first impression however, is that this makes the > interface more complicated and complex. However, I'm no expert in > interface design so if the other developers say it's better that way, > I'll accept that. Scheme is a full-blown functional language, and thus very different from a pure procedural language. You can see from GObject (loosely part of GTK+) how difficult it is to approach object-oriented programming with C, and emulating functional programming in C would certainly be totally impractical. No C API will ever approach the full closure capabilities of Scheme, so some sacrifices on the Scheme side must always be made when interfacing C code. > > In the future, I would be happy to contribute a scheme->sane interface > > library to the sane project, but it sure would be nice if the sane api was > > more non-C friendly. > > Well, it's a C interface so beeing C-friendly is a feature :-) The SANE API is designed to be simple and portable, and any change towards object orientation or functional programming would only bloat it unnecessarily. Sorry, if you want to interface Scheme to SANE, you'll have to adapt to the way things are. Adding a callback data argument to both sane_init() and SANE_Authorization_Callback would cause a number of problems, in particular that of network transparency. Scheme or C++ programmers would certainly like to use that parameter as a pointer to a structure, but that only works if the size of the argument is at least that of void*. Since the latter varies across platforms, this would be ugly and non-portable. Since the only callback in SANE is the one responsible for authentication, I'd say it wouldn't be worth changing anything. A Scheme frontend would either have to relay the authentication request to the user, in which case the callback data is not used, or look up username and password in a database, in which case the resource string supplied is sufficient. Andras =========================================================================== Major Andras e-mail: andras@users.sourceforge.net www: http://andras.webhop.org/ =========================================================================== From henning@meier-geinitz.de Sun Jul 20 16:39:26 2003 From: henning@meier-geinitz.de (Henning Meier-Geinitz) Date: Sun, 20 Jul 2003 17:39:26 +0200 Subject: [sane-devel] Third revision of Scanner HOWTO available In-Reply-To: <20030720145517.GE12005@ventus.lan> References: <3F19BBE8.6030409@austin.rr.com> <20030720145517.GE12005@ventus.lan> Message-ID: <20030720153926.GE4833@meier-geinitz.de> Hi, On Sun, Jul 20, 2003 at 03:55:17PM +0100, Major A wrote: > "IMPORTANT: You cannot have both kernel scanner support enabled (i.e., > compiled in statically or the module loaded if a module) and libusb > installed and access the hardware at the same time, or nothing will > work." Why not? The only thing that won't work is sane-backends with a > USB scanner if it was built with libusb support. "nothing will work" > is a bit of an exaggeration. Also, libusb can safely be installed when > the kernel USB scanner module is loaded, even SANE will work as long > as sane-backend was built without libusb support. Even if SANE was built with libusb support there is no problem. If the backend asks sanei_usb for a vendor/product id combination, sanei_usb will try both the kernel scanner driver and libusb. If the kernel scanner driver is loaded, it has priority over libusb and is used. Otherwise libusb is used. I can't think of any problem here at all. bye, Henning From till.kamppeter@gmx.net Sun Jul 20 17:52:56 2003 From: till.kamppeter@gmx.net (Till Kamppeter) Date: Sun, 20 Jul 2003 18:52:56 +0200 Subject: [sane-devel] Third revision of Scanner HOWTO available In-Reply-To: <20030720145517.GE12005@ventus.lan> References: <3F19BBE8.6030409@austin.rr.com> <20030720145517.GE12005@ventus.lan> Message-ID: <3F1AC8E8.9010503@gmx.net> Major A wrote: > > chapter 5.: > > saned section: there's no mention at all of the changes required to > net.conf. Also, what's the warning all about? I'd say it's advisable > to run saned as a dedicated user (I usually call it saned), but it's > not a group. Also, once saned is set up properly, _everyone_ has > access to the scanner without requiring root privileges, as long as > their computer is listed in saned.conf. > I didn´t look into the document, but it should be mentioned that with saned and the net backend acting on one and the same machine as both client and server parallel scanners which are normally only accessible by root (e. g. Canon) can be accessed by normal users. Here a Mini-HOWTO: The problem is that the SANE driver for your scanner accesses the parallel port directly, without use of the kernel. Such way of device access is only possible for root. Due to the kernel not being used there is no special file in /dev or /proc which represents the scanner and whose permissions can be opened for normal users. Scanning-as-Normal-User-on-Wierd-Scanner-Mini-HOWTO --------------------------------------------------- Original version I presented on MandrakeClub: http://www.mandrakeclub.com/modules.php?op=modload&name=Splatt_Forum&file=viewtopic&topic=5895&forum=13 This version can also be used with non-Mandrake distros. 1. Make sure that saned is installed as in some distros it can be in an extra package (for example in Mandrake, type "urpmi saned" as root or use rpmdrake there). 2. Get root and stay root for the next steps. Create or edit /etc/xinetd.d/saned (we assume xinetd is used as in most modern distros): # default: off # description: The sane server accepts requests \ # for network access to a local scanner via the \ # network. service sane { disable = no port = 6566 socket_type = stream wait = no groups = yes user = root group = root server = /usr/sbin/saned } It can be already provided by your distro, but probably with user = saned group = saned Make sure that you have user = root group = root Add the line sane 6566/tcp # SANE Control Port to /etc/services if your distro didn´t put it there already. 3. Restart xinetd with service xinetd restart 4. Add a line only containing "localhost" in both /etc/sane.d/saned.conf and /etc/sane.d/net.conf. Make sure that in /etc/sane.d/dll.conf is a line containing only "net" and a line containing only the name of the driver for your scanner, both without comment sign ("#") in the beginning. Make also sure that the configuration file for your scanner driver /etc/sane.d/.conf is correctly set up (see "man sane-"). Mandrake Linux users can also proceed as follows: Start Scannerdrake scannerdrake and click on "Scanner sharing". Mark "The scanners on this machine are available to other computers" and "Use scanners on remote computers". Click on "Scanner sharing to hosts" and in the next window on "Add host". Then choose "Name/IP address of host:" and type "localhost" in the input line. Click "OK" and "Done". Now click "Use scanners on hosts: ..." and in the dialog appearing "Add host". In the next window choose "This machine" and click "OK". Click "Done" to get back into the "Scanner sharing" and "OK" to get back into the main window of Scannerdrake. Now you can close Scannerdrake. 5. Run X-Sane (or your preferred frontend) as normal user and you should be able to scan. Please report here whether it really works. 6. You can still share your scanner on a network, simply add the addresses of the clients to your /etc/sane.d/saned.conf file. How does this work? We use the network scanning facility of SANE, but our "network" consists of only one machine, the machine where your parallel scanner is connected to. You do not need a network card for it. Linux has a virtual network consisting of only the local machine which is used when your machine is called with the name "localhost" or the IP address 127.0.0.1. So the server and the client are on the same machine. The server is the "saned" which you have installed in step (1). It calls the scanner driver and communicates with the scanner. To make this possible you let it run with root privileges. This you have configured in step (2) and (3). In step (4) you have told that the local machine and no other machine can access to your scanner (/etc/sane.d/saned.conf or scannerdrake's "Scanner sharing to hosts:" button) and that locally started scanning software should search for scanner servers on the local machine (/etc/sane.d/net.conf or scannerdrake's "Use the scanners on hosts:" button). The client is the X-Sane running as a normal user, started in step (5). It searches for local scanners where a normal user has access to and for remote scanners. In your case it searches only on the local machine and finds the saned providing your scanner. This way the scanner driver runs as root, but the scanning frontend, X-Sane, as normal user. Troubleshooting: Does your scanner work if you scan as root? If so, please check whether running the command "ifconfig" lists the "lo" device and whether your /etc/hosts file contains a line like 127.0.0.1 localhost If not, do "ifup lo" and then try to scan as user with my method described above again. If you have a personal firewall installed, go to the firewall config tool of your distro (Mandrake: in the MCC ("Security" section), click on "Advanced" and in the appearing input line enter/add the port) and open the port 6566 (TCP if TCP/UDP has to be supplied). Check whether /etc/services contains the line sane 6566/tcp # SANE Control Port and add it if it is missing. Then enter the command service xinetd restart and try to scan as user again. If it does not work, post the output of the command shown on the SANE mailing list and also the config files mentioned in this posting. Till From till.kamppeter@gmx.net Sun Jul 20 18:11:08 2003 From: till.kamppeter@gmx.net (Till Kamppeter) Date: Sun, 20 Jul 2003 19:11:08 +0200 Subject: [sane-devel] Third revision of Scanner HOWTO available In-Reply-To: <3F1AC8E8.9010503@gmx.net> References: <3F19BBE8.6030409@austin.rr.com> <20030720145517.GE12005@ventus.lan> <3F1AC8E8.9010503@gmx.net> Message-ID: <3F1ACD2C.907@gmx.net> I have put up my Mini-HOWTO also here http://www.linuxprinting.org/download/digitalimage/Scanning-as-Normal-User-on-Wierd-Scanner-Mini-HOWTO.txt but all the way it should be the best to have this also described in your HOWTO. Till Till Kamppeter wrote: [...] > > Scanning-as-Normal-User-on-Wierd-Scanner-Mini-HOWTO > --------------------------------------------------- > [...] From hshane@austin.rr.com Sun Jul 20 18:30:11 2003 From: hshane@austin.rr.com (Howard Shane) Date: Sun, 20 Jul 2003 12:30:11 -0500 Subject: [sane-devel] Third revision of Scanner HOWTO available In-Reply-To: <20030720095513.GA27016@meier-geinitz.de> References: <3F19BBE8.6030409@austin.rr.com> <20030720095513.GA27016@meier-geinitz.de> Message-ID: <3F1AD1A3.8050709@austin.rr.com> Thanks to everyone for all the suggestions. I though I had addressed most of the concerns up to now, but it looks like there will need to be one more revision prior to publication. A few of the comments I've received are contradictory; I'm going out of town for a week and upon return I'll negotiate/incorporate everyone's ideas and corrections, so definitely keep the comments coming. Also, its not nitpicking if it makes the document more accurate and effective. :^) Henning Meier-Geinitz wrote: > Hi, > > On Sat, Jul 19, 2003 at 04:45:12PM -0500, Howard Shane wrote: > >> ...at http://66.25.191.66/docs/HOWTOS/Scanner/index.html >> >> This is your last chance to point out any remaining technical >> errata prior to grammatical review and (hopefully) publication by >> TLDP. > > > Ok, lets see if I can nitpick a bit :-) I'm not a native english > speaker, so grammar/spelling corrections may be wrong. > > | 1. Introduction | | within X-windows > > ->"The X Consortium requests that the following names be used when > referring to this software: X, X Window System, X Version 11, X > Window System, Version 11, X11" (from man X) > > | It does not address how use the available software > > --> how to use (?) > > | 2.1. SCSI Devices | While most SCSI-cards that linux supports allow > scanning, you should | be aware that if your SCSI card came come > bundled with your scanner | you may run into problems, as these may > not be complete SCSI cards | (much like a winmodem). > > I don't think that's a very good comparison. While a winmodem is not > a modem at all (it's more a sound chip), the bundled SCSI adapter are > real SCSI cards. They may not be of good qquality, i.e. don't have > IRQ/DMA support. But at least the ones I know of can be used for e.g. > CDROMS, too. Well, I wouldn't do that but anyway. > > | 3.1. USB Scanners and Libusb > > | $ grep -e USB_DEVICEFS /boot/config-X.XX > > --> I think it's easier to do grep "\(usbfs\)\|\(usbdevfs\)" > /proc/filesystems > > This way you are checking the currently running kernel. > > | If you have USB device filesystem running, and you have usb devices > | loaded already you can confirm this with cat /proc/bus/usb, which > | should give you a list of active devices the kernel is aware of. > > --> It's "cat /proc/bus/usb/devices". > > | IMPORTANT: You cannot have both kernel scanner support enabled > (i.e., | compiled in statically or the module loaded if a module) and > libusb | installed and access the hardware at the same time, or > nothing will | work. > > Well, I know what you mean but it's not completely true the way you > have written it. > > If the scanner driver is loaded and has detected the scanner it will > "lock" it. So libusb can't use it. But the scanner driver can still > use it. After unloading the scanner driver, libusb can use it again. > > So there is no real conflict. The scanner driver just has the higher > priority. > > | (A hint for newbies: [...] | where 'file.txt' will contain the info > that can then be accessed with | cat.) > > --> with "less", otherwse it will scroll again too fast. > > | 3.2.2. Kernel USB Support > > | USB-ohci, USB-ehci, > > --> lower case (usb-ohci) > > | 3.3.2. Directio | | Some parallel port scanners can be accessed > with directio (a.k.a. | direct_IO) instead; you will likely need to > compile your own SANE | binaries and have libieee1484 installed. You > will need generic scsi | device support in your kernel. At compile > time use the | --enable-parport-directio --enable-scsi-directio with > the ./configure | script. > > I'm not an expert in these things but I think you are mixing > different topics here. > > --enable-parport-directio means, that direct hardware access to the > ports (inb/outb assembler commands) is used. So you don't need > libieee1284 (not 1448) here. This is only used in the mustek_pp and > umax_pp backends. > > --enable-scsi-directio > >> From README.linux: > > SCSI Direct IO: Recent versions of the Linux SG driver for the 2.4 > kernels support direct IO, i.e., the SCSI adapter's DMA chip copies > data directly to/from user memory. Direct IO reduces memory usage, > but it can lead to access conflicts, if a backend uses shared memory. > SANE does not use direct IO by default. If you want to use it, run > > configure --enable-scsi-directio=yes > > I don't think you should mention --enable-scsi-directio in a HOWTO > document. it's seldomly (if at all?) used. | 5.1. Getting SANE > > | that of the Software Building HOWTO. > > --> the link to the HOWTO seems to be wrong. > > | For Debian users there is a sane package in stable (Woody), testing > | (Sarge) and unstable (Sid) package repositories, so a simple > apt-get | install sane is all that is required whatever version you > are using. > > The package in Woody is quite old but there are backports from > Aurelien Jarno: http://people.debian.org/~aurel32/sane.html > > | There is an excellent write-up of how to compile SANE from source > and | get an SCSI scanner working at Laurent-jan's HOWTO page > originally | written by Steve Sheriff (the graphics are interesting, > too). > > While his HOWTO is written very detailed, with fairly current > distributions it's not necessary to compile all the graphic libraries > yourself. You'll find some discussions about this howto on the > sane-devel list if I remeber correctly. I'd mention the fact that > compiling the glib/gtk/gimp stuff is not necessary otherwise it's > quite misleading for newbies.Even the newest versions of xsane and > xscanimage can be compiled with old gtk and gimp libraries. > > | 5.2. Configuring SANE | 5.2.1. Selecting the SANE Backend > > --> Before doing anything else, I'd run "scanimage -L". Most scanners > will just run out-of-the-box so it's not necessary to go through all > your trouble-shooting steps. If it's not found, the user can still > check the files you mention. > > | There are two important entries in the file named after the backend > | your scanner will use: > > --> give an example (e.g. "epson.conf") > > | interface type (scsi vs. usb), and the device | name. If you have a > usb scanner, you will usually need to comment out | (make a # mark in > front of) the 'scsi' line, > > Usually that's not needed. If there is no scsi device, it just won't > be detected. > > | and uncomment the line containing 'usb.' > > If it's commented. Is there any backend but "epson", where this is > the case? Maybe it'd be possible to do automatic detection in the > epson backend, too? (without manipulating the config file). Well, > I'll ask the epson maintainer. > > | In addition the device name may need to be changed, depending on > your | distribution (e.g., /dev/scanner0 may become > /dev/usb/scanner0) > > That's unlikely. Maybe you mean /dev/usbscanner0 --> > /dev/usb/scanner0? > > | though if you made the symlink I suggested in the section on making > | devices this probably isn't necessary. > > You mean the /dev/scanner symlink? This is ONLY used for SCSI > devices. Don't use it for USB scanners. And even for SCSI, it's not > necessary for most backends on Linux and FreeBSD. > > | For a full list try apropos sane. The exact protocols and | > manufacturers available may depend on your version of SANE. > > A pointer to "man sane" may be useful, too, as it lists all the > backends and gives some hints which one may be the right one. > > | 5.2.2. Across a Network > > I still think you should make more clear that the saned server runs > on the machine that has the scanner and the frontend/net backend runs > on the client that want access to the server with the scanner. At > least I wouldn't have understaood that you mean the client when you > talk about the "target". > > | In addition port 6566 will need to be open, accomplished by adding > the | following line to /etc/services: | | sane 6566/tcp # SANE > network scanner daemon > > I think I already mentioned that he last time you asked for > corrections (?): /etc/services is just a list of name/number > combinations. It's not responsible for "opening the port". That#s > done by inetd/xinetd. > > | Finally, be sure that the word "net" isn't commented out in the | > dll.conf file referenced in the previous section. > > On the client machine. And you need to edit net.conf on the client to > add the hostname of the server. > > | 6. Testing Your Scanner > > | sane-find-scanner -v > > First I would do it without the "-v" as you may miss the important > information. If the scanner is not found, "sane-find-scanner -v -v" > may be useful. > > | If your scanner is a type not looked for by sane-find-scanner, you > can | try scanimage --test -v which may yield more information about > | attached devices (you may need to do this twice). > > Well, "scanimage --test -v" jsut starts a test scan. It won't give > you any information. Try "scanimage -L" instead. > > | If your scanner isn't identified by any of the above, but you're | > pretty sure you've done everything right up to now, you can try | > scanning as outlined in the next paragraph. > > It's highly unlikely that the scanner is dnot detected but scanning > works. That only happens when the backend is commented out in > dll.conf but the user selects the backend explicitely (with -d). > > | $ scanimage -d backend:/dev/scanner0 --format pnm > outfile.pnm > > If the user did everything right until now, the following should just > work: > > scanimage >image.pnm > > | 7. Sane Frontends | X-windows > > see above > > | A more spartan solution (though technically a meta-backend) is | > xscanimage, which is bundled with SANE and can be evoked from within > | an xterm. See man xscanimage for more info. > > xscanimage is not a meta backend, it's just a normal frontend. Meta > backends are backends that call other backends (e.g. dll, net). > > xscanimage is in the sane-frontends package so calling it "bundled > with SANE" may be a bit confusing. > > xscanimage can not only be invoked "from an xterm" but can be started > like any other software from an icon or menu. It just depens on the > window manage you are using. > > I'd add a link to the SANE frontends page so the user can have a look > at all the other frontends: > http://www.mostang.com/sane/sane-frontends.html > > | 8. Troubleshooting | 8.1. If your device cannot be found... > > | If this isn't the problem, go to /etc/sane.d/ (or | > /usr/local/etc/sane.d) and edit the file sane.dll, commenting out any > | backend or other (e.g. v4l) protocol that you don't need. > > It's "dll.conf", not "sane.dll". > > | If you have a usb scanner, you will usually need to comment out > (make | a # mark in front of) the 'scsi' line, > > As I said, I don't remeber a case where that would be necessary. > > The same comments as above apply. > > | 8.2. What if SANE can't identify (or correctly identify) my USB > scanner? | | Often when you first set up your scanner equipment it > becomes | necessary to help the kernel along in identifying the > device you wish | to access. If you've done everything by the book > and it still doesn't | work, and you don't see any obvious error > messages in the steps | leading up to this point, it may be necessary > to give the kernel more | parameters when loading modules, > particularly if you have a USB device. > > That's true. But you should mention that in this case the scanner is > not even detected by sane-find-scanner. If it's found by > sane-find-scanner that usually means that the kernel has detected the > scanner correctly. > > | Within the kernel source is the cryptic data required. If you don't > | have the source code for your kernel installed you can obtain it > from | your linux distribution vendor. For a USB device, go to | > /usr/src/linux/drivers/usb and find the file scanner.h. then use grep > | for your particular model, in this example Epson: > > I don't think that looking at the kernel source code helps in this > case. If the scanner is not detected by the kernel, it is not listed > in scanner.h. So looking at scanner.h for the ids does not help. > > Better check /proc/bus/usb/devices or /var/log/messages for the > vendor and product ids of the scanner. > > An if you have libusb, you don't need to do anything like this. > > Mabye I have missed it, but you should also point out that having > more than one version of SANE installed at the same time calls for > trouble. > > Thanks for your work! > > Bye, Henning > > > > > > From peter@pscomp.com Mon Jul 21 13:22:00 2003 From: peter@pscomp.com (Peter Santoro) Date: Mon, 21 Jul 2003 08:22:00 -0400 Subject: [sane-devel] Re: Sane API Suggestion Message-ID: <3F1BDAE8.5080107@pscomp.com> Thank you all for your input. I do understand (and expected) the responses I got. I probably should have included some sample source code to support and clarify my suggestion. For those who are interested, a summary of some cross language issues can be found at http://xarch.tu-graz.ac.at/autocad/lisp/ffis.html. In any event, having to live with the sane C-API "as is" will not discourage me from writing a scheme->sane interface layer in the future. :-) Peter From a.deuring@satzbau-gmbh.de Mon Jul 21 22:07:37 2003 From: a.deuring@satzbau-gmbh.de (abel deuring) Date: Mon, 21 Jul 2003 23:07:37 +0200 Subject: [sane-devel] Sane API Suggestion In-Reply-To: <20030720151830.GA8908@ventus.lan> References: <3F1A8FB6.60505@pscomp.com> <20030720134958.GB4833@meier-geinitz.de> <20030720151830.GA8908@ventus.lan> Message-ID: <3F1C5619.9020904@gmx.net> Major A schrieb: > The SANE API is designed to be simple and portable, and any change > towards object orientation or functional programming would only bloat > it unnecessarily. Sorry, if you want to interface Scheme to SANE, > you'll have to adapt to the way things are. Well, changing the current API is indeed not a good idea. For newer versions, we should be a bit more open, IMHO. > > Adding a callback data argument to both sane_init() and > SANE_Authorization_Callback would cause a number of problems, in > particular that of network transparency. Scheme or C++ programmers > would certainly like to use that parameter as a pointer to a > structure, but that only works if the size of the argument is at least > that of void*. Since the latter varies across platforms, this would be > ugly and non-portable. I don't think that network transparency introduces a problem for "user data" pointer sizes. Since Sane itself does not deal with this pointer, the net backend does not need to send and receive the correct value of this pointer to/from the Sane server. Instead, the net backend can use the pointer value as passed by the application in the callback. > > Since the only callback in SANE is the one responsible for > authentication, I'd say it wouldn't be worth changing anything. A > Scheme frontend would either have to relay the authentication request > to the user, in which case the callback data is not used, or look up > username and password in a database, in which case the resource string > supplied is sufficient. Well, some time has passed sine my last look into the Sane 2 API docs, but IIRC it has at least one more callback. Abel From stuart@beandog.freeserve.co.uk Mon Jul 21 22:21:11 2003 From: stuart@beandog.freeserve.co.uk (Stuart Hirons) Date: 21 Jul 2003 22:21:11 +0100 Subject: [sane-devel] Does anyone need help writing a backend? In-Reply-To: <20030720125431.GA4833@meier-geinitz.de> References: <20030719101015.GA7579@meier-geinitz.de> <200307191438.36375.gerhard@gjaeger.de> <20030720125431.GA4833@meier-geinitz.de> Message-ID: <1058822470.1583.3.camel@localhost.localdomain> Henning, I have a UMAX 4500 sitting on my desk lying unused since I moved to Red Hat 4 months ago, can I be of any help here in obtaining any logs or anything ? Regards, Stu Hirons On Sun, 2003-07-20 at 13:54, Henning Meier-Geinitz wrote: > Hi, > > On Sat, Jul 19, 2003 at 02:38:36PM +0200, Jaeger, Gerhard wrote: > > On Samstag, 19. Juli 2003 12:10, Henning Meier-Geinitz wrote: > > > Hi, > > > > > > Usually people ask for help here. In this case it's the other way > > > round: I may have some spare time during the next few weeks so if > > > anyone needs help writing a backend I may able to spend some time on > > > it. > > > > "Oh, what a lucky man he is...." > > Ha, I just finished my PhD examination so I think it's fair to have > some free time now :-) > > > >The list of unsupported scanners gets longer and longer so I > > > thought something should be done :-) > > > > > > I prefer working on fairly recent not too expensive USB scanners so I > > > can get one of these devices for coding. > > > > Well, I think that by supporting the GeneSys Logic stuff we can cover a lot of > > currently available devices. I know that Oliver Rauch is working on that but I > > don't know the status. The only thing I know is, that he's short of time... > > --> Just a proposal! > > Ok, I'll get a UMAX 4500 and will see what I can do. From my quick > scan of our lists it looks like these scanners use a GL646 chip: > > Avision iVina FB1600 http://www.meier-geinitz.de/sane/misc/umax-astra-4500.txt > Genius ColorPage HR7X http://www.meier-geinitz.de/sane/misc/genius-colorpage-hr7x.txt > Lexmark X83 http://www.meier-geinitz.de/sane/misc/lexmark-x83.txt > Medion/Tevion MD 5345 http://www.meier-geinitz.de/sane/misc/medion-MD5345.txt > Medion MD6228 > Medion MD5345 http://www.meier-geinitz.de/sane/misc/medion-md6228.txt > Plustek OpticPro S12 > Plustek OpticPro S24 > UMAX Astra 4500 http://www.meier-geinitz.de/sane/misc/umax-astra-4500.txt > > And maybe the: > Canon CanoScan D2400UF (maybe) http://www.meier-geinitz.de/sane/misc/canon-d2400uf.txt > > But the interval for the interrupt endpoint is different here: > Ivl=10ms. I'm not sure if that matters. > > Any more scanners that use the GL646 chipset? > > > Are there any other chipsets around that may have the same spreading? > > There are some more Genesys chipsets (e.g. the gl841). I have no idea > how common they are and how different they are from the gl646. > > The Realtek RTS8801B and C chips are also fairly common. E.g. some HP > and Visioneer scanners use these chips. > > > Ok, so I'd like to know everything about the gl646. I know the data > sheet from http://www.genesyslogic.com/GL646.htm but nothing more. > Are there already any logs or code (Oliver?)? > > Bye, > Henning > _______________________________________________ > Sane-devel mailing list > Sane-devel@www.mostang.com > http://www.mostang.com/mailman/listinfo/sane-devel -- Stuart Hirons From andras@users.sourceforge.net Mon Jul 21 22:53:32 2003 From: andras@users.sourceforge.net (Major A) Date: Mon, 21 Jul 2003 22:53:32 +0100 Subject: [sane-devel] Sane API Suggestion In-Reply-To: <3F1C5619.9020904@gmx.net> References: <3F1A8FB6.60505@pscomp.com> <20030720134958.GB4833@meier-geinitz.de> <20030720151830.GA8908@ventus.lan> <3F1C5619.9020904@gmx.net> Message-ID: <20030721215332.GH22030@ventus.lan> > I don't think that network transparency introduces a problem for "user > data" pointer sizes. Since Sane itself does not deal with this pointer, > the net backend does not need to send and receive the correct value of > this pointer to/from the Sane server. Instead, the net backend can use > the pointer value as passed by the application in the callback. OK, you're right. Back to the original question: I just realized that the callback function is set when you call sane_init(), thus it must be the same for all scanner instances. Therefore I can see little point in having any kind of user_data since even a Scheme interface to SANE would only use sane_init() once so it could store the user_data itself just the same. (Unless, of course, the Scheme interface would allow for more than one backend to be used at the same time, but with dynamic loading etc. this would soon become a mess anyway.) > Well, some time has passed sine my last look into the Sane 2 API docs, > but IIRC it has at least one more callback. I can't remember any. The only thing that is similar in a way is the file descriptor returned by sane_get_select_fd(), but it's not a callback. Andras =========================================================================== Major Andras e-mail: andras@users.sourceforge.net www: http://andras.webhop.org/ =========================================================================== From henning@meier-geinitz.de Tue Jul 22 18:19:13 2003 From: henning@meier-geinitz.de (Henning Meier-Geinitz) Date: Tue, 22 Jul 2003 19:19:13 +0200 Subject: [sane-devel] Does anyone need help writing a backend? In-Reply-To: <1058822470.1583.3.camel@localhost.localdomain> References: <20030719101015.GA7579@meier-geinitz.de> <200307191438.36375.gerhard@gjaeger.de> <20030720125431.GA4833@meier-geinitz.de> <1058822470.1583.3.camel@localhost.localdomain> Message-ID: <20030722171913.GD7740@meier-geinitz.de> Hi, On Mon, Jul 21, 2003 at 10:21:11PM +0100, Stuart Hirons wrote: > I have a UMAX 4500 sitting on my desk lying unused since I moved to Red > Hat 4 months ago, can I be of any help here in obtaining any logs or > anything ? If you have MS Windows installed, you could install usbsnoopy and get a log of a simple scan if that's possible. E.g. 1 cm x 1 cm in 100 dpi grayscale. I'll do that anyway once I have that scanner but if you do it now we may understand the protocoll a bit earlier :-) Bye, Henning From foffy_69@yahoo.es Tue Jul 22 20:54:45 2003 From: foffy_69@yahoo.es (=?iso-8859-1?q?Foffy?=) Date: Tue, 22 Jul 2003 21:54:45 +0200 (CEST) Subject: [sane-devel] detect the correct scanner Message-ID: <20030722195445.19196.qmail@web41001.mail.yahoo.com> i have a genius color page vivid-III but when mandrake detect it as a plustek, that has the same chip. Is this important or not? and how i can get it detected as genius color page vivid-III. ___________________________________________________ Yahoo! Messenger - Nueva versión GRATIS Super Webcam, voz, caritas animadas, y más... http://messenger.yahoo.es From henning@meier-geinitz.de Tue Jul 22 21:22:23 2003 From: henning@meier-geinitz.de (Henning Meier-Geinitz) Date: Tue, 22 Jul 2003 22:22:23 +0200 Subject: [sane-devel] detect the correct scanner In-Reply-To: <20030722195445.19196.qmail@web41001.mail.yahoo.com> References: <20030722195445.19196.qmail@web41001.mail.yahoo.com> Message-ID: <20030722202223.GE7740@meier-geinitz.de> Hi, On Tue, Jul 22, 2003 at 09:54:45PM +0200, Foffy wrote: > i have a genius color page vivid-III but when mandrake > detect it as a plustek, that has the same chip. Is > this important or not? and how i can get it detected > as genius color page vivid-III. It would have been important if the Plustek 1212U had been supported. But as far as I know this is not the case. The scanner search engine says: "All devices using product ID 0x0001 are not supported, for others see Plustek backend. The older models seem to use a P98003 parallel port ASIC and a GenesysLogic parport-over USB brigde. The P98003 is also used by the P12 and PT12 models." So basically you need someone who writes a backend for that combination of chips. If you want to start coding yourself, have a look at http://www.meier-geinitz.de/sane/misc/unsupported.html. Bye, Henning From stuart@beandog.freeserve.co.uk Tue Jul 22 22:11:51 2003 From: stuart@beandog.freeserve.co.uk (Stuart Hirons) Date: 22 Jul 2003 22:11:51 +0100 Subject: [sane-devel] Does anyone need help writing a backend? In-Reply-To: <20030722171913.GD7740@meier-geinitz.de> References: <20030719101015.GA7579@meier-geinitz.de> <200307191438.36375.gerhard@gjaeger.de> <20030720125431.GA4833@meier-geinitz.de> <1058822470.1583.3.camel@localhost.localdomain> <20030722171913.GD7740@meier-geinitz.de> Message-ID: <1058908311.1343.9.camel@localhost.localdomain> Ah sorry Henning but i haven't got MS Windows. The main reason I moved to Linux was because I was fed up with dodgy windows installations, crashes, etc and did not want to give Mr Gates any money in order to rectify it. Red hat has been fine ever since I installed it, I just didn't realise that the 4500 wasn't supported. Regards, Stu On Tue, 2003-07-22 at 18:19, Henning Meier-Geinitz wrote: > Hi, > > On Mon, Jul 21, 2003 at 10:21:11PM +0100, Stuart Hirons wrote: > > I have a UMAX 4500 sitting on my desk lying unused since I moved to Red > > Hat 4 months ago, can I be of any help here in obtaining any logs or > > anything ? > > If you have MS Windows installed, you could install usbsnoopy and get > a log of a simple scan if that's possible. E.g. 1 cm x 1 cm in 100 dpi > grayscale. I'll do that anyway once I have that scanner but if you do > it now we may understand the protocoll a bit earlier :-) > > Bye, > Henning > _______________________________________________ > Sane-devel mailing list > Sane-devel@www.mostang.com > http://www.mostang.com/mailman/listinfo/sane-devel -- Stuart Hirons From foffy_69@yahoo.es Tue Jul 22 23:03:18 2003 From: foffy_69@yahoo.es (=?iso-8859-1?q?Albero=20Miguel?=) Date: Wed, 23 Jul 2003 00:03:18 +0200 (CEST) Subject: [sane-devel] detect the correct scanner In-Reply-To: <20030722202223.GE7740@meier-geinitz.de> Message-ID: <20030722220318.48713.qmail@web41001.mail.yahoo.com> Hi, > > On Tue, Jul 22, 2003 at 09:54:45PM +0200, Foffy > wrote: > > i have a genius color page vivid-III but when > mandrake > > detect it as a plustek, that has the same chip. Is > > this important or not? and how i can get it > detected > > as genius color page vivid-III. > > It would have been important if the Plustek 1212U > had been supported. > But as far as I know this is not the case. The > scanner search engine > says: "All devices using product ID 0x0001 are not > supported, for > others see Plustek backend. The older models seem to > use a P98003 > parallel port ASIC and a GenesysLogic parport-over > USB brigde. The > P98003 is also used by the P12 and PT12 models." > > So basically you need someone who writes a backend > for that > combination of chips. If you want to start coding > yourself, have a > look at > http://www.meier-geinitz.de/sane/misc/unsupported.html. > > Bye, > Henning I will try to write a backend this summer. I downloaded the sniffusb and the SANE CVS snapshot. I will read it and try to understand how the scanner works but i think i will need some help thanks ___________________________________________________ Yahoo! Messenger - Nueva versión GRATIS Super Webcam, voz, caritas animadas, y más... http://messenger.yahoo.es From olaf@epkowa.co.jp Wed Jul 23 03:36:57 2003 From: olaf@epkowa.co.jp (Olaf Meeuwissen) Date: Wed, 23 Jul 2003 11:36:57 +0900 Subject: [sane-devel] sane-backends effectively GPL'd in disguise? Message-ID: <20030723023657.GA21544@zen.epkowa.co.jp> Dear all, I have been upgrading "Image Scan! for Linux" to use SANE internals from sane-backends-1.0.12. Ever since the FSF slapped us on the wrist for an unintentional violation of the GPL, we have a little allergic to license issues so I combed through the include/, lib/ and sanei/ directories for license problems. The following files in include/ and sanei/ are GPL'd *without* the SANE exception: include/lalloca.h include/lassert.h include/sane/sanei.h include/sane/sanei_codec_ascii.h include/sane/sanei_codec_bin.h include/sane/sanei_scsi.h include/sane/sanei_thread.h include/sane/sanei_usb.h include/sane/sanei_wire.h include/sane/saneopts.h sanei/linux_sg3_err.h Even though I have read the GPL twenty+ times over, I am still not sure whether this means that files including any of these would effectively void their SANE exception (assuming they have one). After all the SANE exception explicitly states: This exception does not, however, invalidate any other reasons why the executable file might be covered by the GNU General Public License. Ergo, files like sanei/sanei_scsi.c and sanei/sanei_usb.c, which include their counterpart header files, might in effect be released under the GPL and the GPL only without any SANE exception. The same logic applies to backends including files from the above list. The TODO notes that the getopt*.c and md5.c files have been checked for (and replaced by LGPL'd versions) precisely the reasons cited above. Could anyone shed any light on this? -- Olaf Meeuwissen EPSON KOWA Corporation, ECS GnuPG key: 6BE37D90/AB6B 0D1F 99E7 1BF5 EB97 976A 16C7 F27D 6BE3 7D90 Penguin's lib! -- I hack, therefore I am -- LPIC-2 From fzago@austin.rr.com Tue Jul 22 23:43:19 2003 From: fzago@austin.rr.com (Frank Zago) Date: Tue, 22 Jul 2003 17:43:19 -0500 Subject: [sane-devel] detect the correct scanner In-Reply-To: <20030722195445.19196.qmail@web41001.mail.yahoo.com> References: <20030722195445.19196.qmail@web41001.mail.yahoo.com> Message-ID: <3F1DBE07.9020102@austin.rr.com> Hi Foffy_69, Assuming your scanner works, why do you care? Another solution to your problem would be to print a Plustek sticker and put it on top of the Genius logo. :) Frank. Foffy wrote: > i have a genius color page vivid-III but when mandrake > detect it as a plustek, that has the same chip. Is > this important or not? and how i can get it detected > as genius color page vivid-III. > > From fzago@austin.rr.com Tue Jul 22 23:53:58 2003 From: fzago@austin.rr.com (Frank Zago) Date: Tue, 22 Jul 2003 17:53:58 -0500 Subject: [sane-devel] sane-backends effectively GPL'd in disguise? In-Reply-To: <20030723023657.GA21544@zen.epkowa.co.jp> References: <20030723023657.GA21544@zen.epkowa.co.jp> Message-ID: <3F1DC086.3090609@austin.rr.com> Hi Olaf, IANAL but I'll try to answer anyway. None of these contain code. Just prototype and APIs. I don't think that the omission of the SANE exception would propagate to the rest of the code. Besides the README states that the backends are under GPL+exception. It is also quite clear that the authors of these files didn't intend to put these files under GPL only since they were written specifically for SANE. The files should be fixed though. Frank. Olaf Meeuwissen wrote: > Dear all, > > I have been upgrading "Image Scan! for Linux" to use SANE internals from > sane-backends-1.0.12. Ever since the FSF slapped us on the wrist for an > unintentional violation of the GPL, we have a little allergic to license > issues so I combed through the include/, lib/ and sanei/ directories for > license problems. > > The following files in include/ and sanei/ are GPL'd *without* the SANE > exception: > > include/lalloca.h > include/lassert.h > include/sane/sanei.h > include/sane/sanei_codec_ascii.h > include/sane/sanei_codec_bin.h > include/sane/sanei_scsi.h > include/sane/sanei_thread.h > include/sane/sanei_usb.h > include/sane/sanei_wire.h > include/sane/saneopts.h > sanei/linux_sg3_err.h > > Even though I have read the GPL twenty+ times over, I am still not sure > whether this means that files including any of these would effectively > void their SANE exception (assuming they have one). After all the SANE > exception explicitly states: > > This exception does not, however, invalidate any other reasons why > the executable file might be covered by the GNU General Public > License. > > Ergo, files like sanei/sanei_scsi.c and sanei/sanei_usb.c, which include > their counterpart header files, might in effect be released under the > GPL and the GPL only without any SANE exception. The same logic applies > to backends including files from the above list. > > The TODO notes that the getopt*.c and md5.c files have been checked for > (and replaced by LGPL'd versions) precisely the reasons cited above. > > Could anyone shed any light on this? From olaf@zen.epkowa.co.jp Wed Jul 23 05:47:48 2003 From: olaf@zen.epkowa.co.jp (Olaf Meeuwissen) Date: Wed, 23 Jul 2003 13:47:48 +0900 Subject: [sane-devel] sane-backends effectively GPL'd in disguise? In-Reply-To: <3F1DC086.3090609@austin.rr.com> References: <20030723023657.GA21544@zen.epkowa.co.jp> <3F1DC086.3090609@austin.rr.com> Message-ID: <20030723044748.GB21544@zen.epkowa.co.jp> Hi Frank, Thanks for your prompt feedback. I would like to point out though that include/lalloca.h, include/lassert.h and sanei/linux_sg3_err.h were NOT written specifically for SANE. Furthermore, one could argue that some of the #define's count as code because the preprocessor substitutes the definition. I guess, looking at the amount of "code" involved, that you could make a case for "fair use" though. The README (huh? I assume you mean the LICENSE file) can state whatever it wants, if a backend links against GPL'd code the exception is void. BTW, the LICENSE file explicitly says that copyright information in each file overrides whatever it says. I would certainly appreciate it if sane-backends-1.0.13 includes a SANE exception in the files I listed, if only to avoid confusing people like myself ;-) For include/lalloca.h, include/lassert.h and sanei/linux_sg3_err.h this is probably not feasible though. Permission to add the exception from the copyright holder is required or appropriate replacements need to be provided. In the case of lalloca.h you could probably use the example from the autoconf info pages (citing "fair use" of the manual). On Tue, Jul 22, 2003 at 05:53:58PM -0500, Frank Zago wrote: > Hi Olaf, > > IANAL but I'll try to answer anyway. > None of these contain code. Just prototype and APIs. I don't think that the > omission of the SANE exception would propagate to the rest of the code. > Besides the README states that the backends are under GPL+exception. It is > also quite clear that the authors of these files didn't intend to put these > files under GPL only since they were written specifically for SANE. > The files should be fixed though. > > Frank. > > Olaf Meeuwissen wrote: > >Dear all, > > > >I have been upgrading "Image Scan! for Linux" to use SANE internals from > >sane-backends-1.0.12. Ever since the FSF slapped us on the wrist for an > >unintentional violation of the GPL, we have a little allergic to license > >issues so I combed through the include/, lib/ and sanei/ directories for > >license problems. > > > >The following files in include/ and sanei/ are GPL'd *without* the SANE > >exception: > > > > include/lalloca.h > > include/lassert.h > > include/sane/sanei.h > > include/sane/sanei_codec_ascii.h > > include/sane/sanei_codec_bin.h > > include/sane/sanei_scsi.h > > include/sane/sanei_thread.h > > include/sane/sanei_usb.h > > include/sane/sanei_wire.h > > include/sane/saneopts.h > > sanei/linux_sg3_err.h > > > >Even though I have read the GPL twenty+ times over, I am still not sure > >whether this means that files including any of these would effectively > >void their SANE exception (assuming they have one). After all the SANE > >exception explicitly states: > > > > This exception does not, however, invalidate any other reasons why > > the executable file might be covered by the GNU General Public > > License. > > > >Ergo, files like sanei/sanei_scsi.c and sanei/sanei_usb.c, which include > >their counterpart header files, might in effect be released under the > >GPL and the GPL only without any SANE exception. The same logic applies > >to backends including files from the above list. > > > >The TODO notes that the getopt*.c and md5.c files have been checked for > >(and replaced by LGPL'd versions) precisely the reasons cited above. > > > >Could anyone shed any light on this? > -- Olaf Meeuwissen EPSON KOWA Corporation, ECS GnuPG key: 6BE37D90/AB6B 0D1F 99E7 1BF5 EB97 976A 16C7 F27D 6BE3 7D90 Penguin's lib! -- I hack, therefore I am -- LPIC-2 From gerhard@gjaeger.de Wed Jul 23 07:20:27 2003 From: gerhard@gjaeger.de (Gerhard Jaeger) Date: Wed, 23 Jul 2003 08:20:27 +0200 Subject: [sane-devel] detect the correct scanner In-Reply-To: <20030722220318.48713.qmail@web41001.mail.yahoo.com> References: <20030722220318.48713.qmail@web41001.mail.yahoo.com> Message-ID: <200307230820.27261.gerhard@gjaeger.de> Hi, I think I could be possible to detect it as Genius, BUT this is not that trivial. The difference between the Plustek devices and Genius devices can be found out by accessing a specific register within the P98003 and reading back the PCB (printed circuit board) identification and the CCD-ID. That way the Plustek-drivers are able to find out what hardware is attached to the P98003 ASIC. Simply by reading the USB vendor and device ID is not enough as Plustek uses one device ID for various models (U1212 and some U12). I already started to make those "brigded" devices work, using the available P98003 driver code and replacing the I/O access to the parport by the access to the GeneSys Logic chip. The only results I have so far=20 are some register accesses and light switching stuff. Not that much, but = a=20 starting point... If somebody is interested in that code snippets, I can put them to gjaeger.de Ciao Gerhard On Mittwoch, 23. Juli 2003 00:03, Albero Miguel wrote: [SNIPSNAP] > Hi, > > > On Tue, Jul 22, 2003 at 09:54:45PM +0200, Foffy > > > > wrote: > > > i have a genius color page vivid-III but when > > mandrake > > > detect it as a plustek, that has the same chip. Is > > > this important or not? and how i can get it > > detected > > > as genius color page vivid-III. > > > > It would have been important if the Plustek 1212U > > had been supported. > > But as far as I know this is not the case. The > > scanner search engine > > says: "All devices using product ID 0x0001 are not > > supported, for > > others see Plustek backend. The older models seem to > > use a P98003 > > parallel port ASIC and a GenesysLogic parport-over > > USB brigde. The > > P98003 is also used by the P12 and PT12 models." > > > > So basically you need someone who writes a backend > > for that > > combination of chips. If you want to start coding > > yourself, have a > > look at > > http://www.meier-geinitz.de/sane/misc/unsupported.html. > > > Bye, > > Henning > > I will try to write a backend this summer. I > downloaded the sniffusb and the SANE CVS snapshot. I > will read it and try to understand how the scanner > works but i think i will need some help > > thanks > > ___________________________________________________ > Yahoo! Messenger - Nueva versi=F3n GRATIS > Super Webcam, voz, caritas animadas, y m=E1s... > http://messenger.yahoo.es > _______________________________________________ > Sane-devel mailing list > Sane-devel@www.mostang.com > http://www.mostang.com/mailman/listinfo/sane-devel From henning@meier-geinitz.de Wed Jul 23 09:25:15 2003 From: henning@meier-geinitz.de (Henning Meier-Geinitz) Date: Wed, 23 Jul 2003 10:25:15 +0200 Subject: [sane-devel] sane-backends effectively GPL'd in disguise? In-Reply-To: <20030723023657.GA21544@zen.epkowa.co.jp> References: <20030723023657.GA21544@zen.epkowa.co.jp> Message-ID: <20030723082515.GD11768@meier-geinitz.de> Hi, On Wed, Jul 23, 2003 at 11:36:57AM +0900, Olaf Meeuwissen wrote: > I have been upgrading "Image Scan! for Linux" to use SANE internals from > sane-backends-1.0.12. Ever since the FSF slapped us on the wrist for an > unintentional violation of the GPL, we have a little allergic to license > issues so I combed through the include/, lib/ and sanei/ directories for > license problems. > > The following files in include/ and sanei/ are GPL'd *without* the SANE > exception: (reordered:) > include/sane/sanei.h > include/sane/sanei_codec_ascii.h > include/sane/sanei_codec_bin.h > include/sane/sanei_scsi.h > include/sane/sanei_thread.h > include/sane/sanei_usb.h > include/sane/sanei_wire.h > include/sane/saneopts.h I guess that's a simple omission from the days when GPL was changed to GPL+SANE exception (Jun 14 1997). Most of them don't seem to contain copyrightable code but I'll ask the authors anyway. > include/lalloca.h > include/lassert.h Well, have I already said that I hate AIX for forcing us to do that ugly stuff? Is anyone using AIX for scanning at all? Anyway, I'll put it on the TODO list to either remove this files (if possible), check if we can find another solution. > sanei/linux_sg3_err.h Well, I'm not sure how to understan this line in the file: /* Feel free to copy and modify this GPL-ed code into your applications. */ If it says "it's GPLed", I could copy and modify it anyway if the resulting file is GPLed. So maybe this was inetnded to mean "you can use this code even in non GPL programs?" Anyway, if that's not the case, rewriting this file only using the values we need doesn't seem to be too complicated. > Even though I have read the GPL twenty+ times over, I am still not sure > whether this means that files including any of these would effectively > void their SANE exception (assuming they have one). If the code in these files are copyrightable, the SANE exception would be void. Otherwise I could get e.g. the XSane code, write add a few lines of my own GPL+SANE code and the complete code would be GPL+SANE. > Ergo, files like sanei/sanei_scsi.c and sanei/sanei_usb.c, which include > their counterpart header files, might in effect be released under the > GPL and the GPL only without any SANE exception. The same logic applies > to backends including files from the above list. Basically yes. But only if the "code" in the headers is copyrightable. > The TODO notes that the getopt*.c and md5.c files have been checked for > (and replaced by LGPL'd versions) precisely the reasons cited above. Yes, but these files do contain quite some code and not only definitions and simple macros. Bye, Henning From Oliver.Schwartz@gmx.de Wed Jul 23 18:15:51 2003 From: Oliver.Schwartz@gmx.de (Oliver Schwartz) Date: Wed, 23 Jul 2003 19:15:51 +0200 Subject: [sane-devel] Virus warning: Abuse of sane-devel email addresses Message-ID: <200307231915.54277.Oliver.Schwartz@gmx.de> =2D----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, in the last two days I received two emails with faked addresses that=20 claimed to be sent via sane-devel (but in fact were not). Both emails=20 contained a .pif file which, I assume, contains a virus. DO NOT OPEN=20 THIS FILE. The sender names were taken from SANE-Devel (Martin Kho, Henning=20 Meyer-Geinitz). The email address of the sender, however, was faked=20 (see attached mail below). To make the mail look more authentic it=20 also gives a small quote from an previous email to sane-devel. I don't think such mails can be prevented, but, as always, you should=20 take extra care when opening attachements, even from people you=20 recognize from the mailing list. =2D -Oliver =2D -------------forwarded mail ------------------------------------------ Return-Path: Received: (qmail 31579 invoked by alias); 23 Jul 2003 14:56:00 -0000 Delivered-To: GMX delivery to oliver.schwartz@gmx.de Received: (qmail 31513 invoked by uid 65534); 23 Jul 2003 14:55:59=20 =2D -0000 Received: from vsmtp1.tin.it (EHLO vsmtp1.tin.it) (212.216.176.221) by mx0.gmx.net (mx005-rz3) with SMTP; 23 Jul 2003 16:55:59 +0200 Received: from server--amd (62.211.178.22) by vsmtp1.tin.it (7.0.019) id 3F17CBF9001C28AE; Wed, 23 Jul 2003 16:54:29 +0200 Date: Wed, 23 Jul 2003 16:54:29 +0200 (added by=20 postmaster@virgilio.it) Message-ID: <3F17CBF9001C28AE@vsmtp1.tin.it> (added by=20 postmaster@virgilio.it) =46rom: Henning Meier-Geinitz Subject: Re: [sane-devel] Problem in setting up Xsane MIME-Version: 1.0 Content-Type: multipart/mixed; boundary=3D"----------VF3U8XRG18M7N2" To: Oliver.Schwartz@gmx.de X-GMX-Antispam: 0 (Mail was not recognized as spam) X-Resent-By: Forwarder X-Resent-For: oliver.schwartz@gmx.de X-Resent-To: oliver.schwartz@swissonline.ch, Oliver.Schwartz@gmx.net X-Spam-Status: No, hits=3D-6.4 required=3D5.0 tests=3DEMAIL_ATTRIBUTION,MICROSOFT_EXECUTABLE autolearn=3Dham version=3D2.53 X-Spam-Level:=20 X-Spam-Checker-Version: SpamAssassin 2.53 (1.174.2.15-2003-03-30-exp) Status: R=20 X-Status: N X-KMail-EncryptionState: =20 X-KMail-SignatureState: =20 Hi, On Thu, Feb 27, 2003 at 05:07:30PM +0800, Stephen Liu wrote: > Henning Meier-Geinitz wrote: > >You have the same card as mentioned in this article? >=20 > Attached: BuonNatale.zip.pif =2D----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE/HsLH/V6sbrmfIuMRAnOwAJ4w/aVaJmAFwdn4qaUHZmLaZ/UcmwCfXCN2 vDjYQxYiwj/XVBbaA/jYVQI=3D =3DPf3j =2D----END PGP SIGNATURE----- From henning@meier-geinitz.de Wed Jul 23 18:55:53 2003 From: henning@meier-geinitz.de (Henning Meier-Geinitz) Date: Wed, 23 Jul 2003 19:55:53 +0200 Subject: [sane-devel] Virus warning: Abuse of sane-devel email addresses In-Reply-To: <200307231915.54277.Oliver.Schwartz@gmx.de> References: <200307231915.54277.Oliver.Schwartz@gmx.de> Message-ID: <20030723175552.GC25935@meier-geinitz.de> Hi, On Wed, Jul 23, 2003 at 07:15:51PM +0200, Oliver Schwartz wrote: > in the last two days I received two emails with faked addresses that > claimed to be sent via sane-devel (but in fact were not). Both emails > contained a .pif file which, I assume, contains a virus. DO NOT OPEN > THIS FILE. I have received emails claiming to be sent by SANE developers for about 18 months now. > The sender names were taken from SANE-Devel (Martin Kho, Henning > Meyer-Geinitz). The email address of the sender, however, was faked > (see attached mail below). To make the mail look more authentic it > also gives a small quote from an previous email to sane-devel. That one looks like a new sort of worm/virus. I have received about 10 of those during the last two weeks. Mostly "from" SANE developers, but also from other entities. One claims to be sent by "Henning Meier-Geinitz" . I thought about suing the real author because of this defamation :-) > I don't think such mails can be prevented, but, as always, you should > take extra care when opening attachements, even from people you > recognize from the mailing list. I'd be interested on how the mails are created. Is the person who is infected by this worm subscribed to sane-devel? Or are the messages scanned from the web archive? All mails of this type were sent over vsmtp1.tin.it. IIRC, that's a big Italien provider. > From: Henning Meier-Geinitz Hah, that's the same mail I also got today. > X-Spam-Status: No, hits=-6.4 required=5.0 > tests=EMAIL_ATTRIBUTION,MICROSOFT_EXECUTABLE > autolearn=ham version=2.53 -6.4 point for an obvious worm. Looks like GMX has to do more homework. Bye, Henning From technomage-hawke@cox.net Wed Jul 23 19:11:50 2003 From: technomage-hawke@cox.net (technomage) Date: Wed, 23 Jul 2003 11:11:50 -0700 Subject: [sane-devel] Virus warning: Abuse of sane-devel email addresses In-Reply-To: <200307231915.54277.Oliver.Schwartz@gmx.de> References: <200307231915.54277.Oliver.Schwartz@gmx.de> Message-ID: <200307231112.03664.technomage-hawke@cox.net> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 hmm,. I've seen that bug before. its a known windows trojan that scans for e-mail addresses and clips of e-mails and hijacks your box to send out via its own smtp engine. guess I'll be expecting a copy to land here as well. fortunately, these e-mails have virtually no effect on a linux box. Technomage On Wednesday 23 July 2003 10:15 am, Oliver Schwartz wrote: > Hi, > > in the last two days I received two emails with faked addresses that > claimed to be sent via sane-devel (but in fact were not). Both emails > contained a .pif file which, I assume, contains a virus. DO NOT OPEN > THIS FILE. > > The sender names were taken from SANE-Devel (Martin Kho, Henning > Meyer-Geinitz). The email address of the sender, however, was faked > (see attached mail below). To make the mail look more authentic it > also gives a small quote from an previous email to sane-devel. > > I don't think such mails can be prevented, but, as always, you should > take extra care when opening attachements, even from people you > recognize from the mailing list. > > -Oliver > - -- I will not be pushed, filed, stamped, indexed, briefed, debriefed, or numbered! My life is my own - No. 6 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE/Hs/xn/usgigAaLcRAjMBAJ9iCZzQdurepLSEJI6VWdjlTYNoqgCeLJWi aJZt7NztTdUpztnb86ZxLno= =+7mg -----END PGP SIGNATURE----- From mouse@Rodents.Montreal.QC.CA Wed Jul 23 19:09:07 2003 From: mouse@Rodents.Montreal.QC.CA (der Mouse) Date: Wed, 23 Jul 2003 14:09:07 -0400 (EDT) Subject: [sane-devel] Virus warning: Abuse of sane-devel email addresses In-Reply-To: <200307231915.54277.Oliver.Schwartz@gmx.de> References: <200307231915.54277.Oliver.Schwartz@gmx.de> Message-ID: <200307231814.OAA29047@Sparkle.Rodents.Montreal.QC.CA> > [...ordinary address-forging virus infection attempts...] > I don't think such mails can be prevented, Actually, they can be, very simply. Just don't run Windows. (This not only prevents you from originating them, it also prevents you from falling victim to those others, less careful, send out.) It's just that people aren't willing to do that. Actually, it's probably enough to not run Microsoft email software, though it's possible there are other user agents stupid enough to execute `executable' attachments. /~\ The ASCII der Mouse \ / Ribbon Campaign X Against HTML mouse@rodents.montreal.qc.ca / \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B From stefan@schloerholz.de Wed Jul 23 20:42:37 2003 From: stefan@schloerholz.de (Stefan =?iso-8859-15?q?Schl=F6rholz?=) Date: Wed, 23 Jul 2003 21:42:37 +0200 Subject: [sane-devel] rference palette for Sane Message-ID: <200307232142.37456.stefan@schloerholz.de> Hello, when operating my scanner (Microtek ScanMaker 35t plus (slide scanner)) under Windows it was possible to scan a Kodak reference slide. Ther was a special reference aquiring mode (including selecting the type of reference slide). Somehow this reference was saved and new scans are were corrected against this reference slide. The results where much better than using Linux Sane. I could not find any hint how to calibrate Sane using such a reference scan. Is it possible to have the same feature as under the Windows application (BTW: it was not Sane under Windows)? Can I realize it or does someone with more know how needs to do that? cu Stefan From henning@meier-geinitz.de Wed Jul 23 22:06:57 2003 From: henning@meier-geinitz.de (Henning Meier-Geinitz) Date: Wed, 23 Jul 2003 23:06:57 +0200 Subject: [sane-devel] rference palette for Sane In-Reply-To: <200307232142.37456.stefan@schloerholz.de> References: <200307232142.37456.stefan@schloerholz.de> Message-ID: <20030723210657.GD25935@meier-geinitz.de> Hi, On Wed, Jul 23, 2003 at 09:42:37PM +0200, Stefan Schlörholz wrote: > when operating my scanner (Microtek ScanMaker 35t plus (slide scanner)) > under Windows it was possible to scan a Kodak reference slide. Ther was > a special reference aquiring mode (including selecting the type of > reference slide). I don't know if there is an automatic way to do that. I've a printed Agfa reference card. When I want to calibrate a scanner whose gamma setting doesn't look correct, I just scan that reference print. Most of the time it's enough to select white, gray and dark point in Xsane and let XSane change the gamma setting from those parameters. Sometimes I scan a preview from that card, compare it on the scarren with the original card and sett the gamma settings so they are identical. I don't know if that's useful for slide scanners, however. Bye, Henning From frares@netscape.net Wed Jul 23 22:29:39 2003 From: frares@netscape.net (frares@netscape.net) Date: Wed, 23 Jul 2003 17:29:39 -0400 Subject: [sane-devel] Re: Does anyone need help writing a backend? Message-ID: <3210EBB1.275F3D7E.0006305B@netscape.net> I have a Genius HR7X scanner that I'd love to use in Linux, but I have no experience on programing in Linux, so I can't help (i hope this will change in near future ;-) . Would you consider this one? Thanks Francisco Ares __________________________________________________________________ McAfee VirusScan Online from the Netscape Network. Comprehensive protection for your entire computer. Get your free trial today! http://channels.netscape.com/ns/computing/mcafee/index.jsp?promo=393397 Get AOL Instant Messenger 5.1 free of charge. Download Now! http://aim.aol.com/aimnew/Aim/register.adp?promo=380455 From a.deuring@satzbau-gmbh.de Thu Jul 24 10:58:43 2003 From: a.deuring@satzbau-gmbh.de (abel deuring) Date: Thu, 24 Jul 2003 11:58:43 +0200 Subject: [sane-devel] rference palette for Sane References: <200307232142.37456.stefan@schloerholz.de> Message-ID: <3F1FADD3.8EE70152@satzbau-gmbh.de> Stefan Schlörholz wrote: > > Hello, > > when operating my scanner (Microtek ScanMaker 35t plus (slide scanner)) > under Windows it was possible to scan a Kodak reference slide. Ther was > a special reference aquiring mode (including selecting the type of > reference slide). > > Somehow this reference was saved and new scans are were corrected > against this reference slide. The results where much better than using > Linux Sane. I could not find any hint how to calibrate Sane using such > a reference scan. > > Is it possible to have the same feature as under the Windows application > (BTW: it was not Sane under Windows)? Can I realize it or does someone > with more know how needs to do that? I don't know about any fully integrated color correction solution for Sane frontends -- but you may have a look at free software for color management and color corretion. A few links for a start: Karl-Heinz Kremer's link collection: http://www.khk.net/color/links.html color aid: http://www.coloraid.de/ Especially LCMS and GCMS, mentioned on both sites, may provide what you need. Abel From henning@meier-geinitz.de Thu Jul 24 15:47:51 2003 From: henning@meier-geinitz.de (Henning Meier-Geinitz) Date: Thu, 24 Jul 2003 16:47:51 +0200 Subject: [sane-devel] Re: Does anyone need help writing a backend? In-Reply-To: <3210EBB1.275F3D7E.0006305B@netscape.net> References: <3210EBB1.275F3D7E.0006305B@netscape.net> Message-ID: <20030724144751.GA837@meier-geinitz.de> Hi, On Wed, Jul 23, 2003 at 05:29:39PM -0400, frares@netscape.net wrote: > I have a Genius HR7X scanner that I'd love to use in Linux, but I > have no experience on programing in Linux, so I can't help (i hope > this will change in near future ;-) . I have now a Umax Astra 4500 and will try to get it working. The chipset used by this scanner is labelled "Avision B2" so I'm not sure if that's really a gl646 based scanner. However, the output of cat proc/bus/usb/devices of your scanner is very similar to the one of my scanner. If you don't fear losing your warranty, could you open the scanner and have a look at the names printed on the chips? Bye, Henning From henning@meier-geinitz.de Thu Jul 24 18:14:30 2003 From: henning@meier-geinitz.de (Henning Meier-Geinitz) Date: Thu, 24 Jul 2003 19:14:30 +0200 Subject: [sane-devel] sane-backends effectively GPL'd in disguise? In-Reply-To: <20030723023657.GA21544@zen.epkowa.co.jp> References: <20030723023657.GA21544@zen.epkowa.co.jp> Message-ID: <20030724171430.GC1262@meier-geinitz.de> Hi, a quick status update: On Wed, Jul 23, 2003 at 11:36:57AM +0900, Olaf Meeuwissen wrote: [GPL instead of GPL + SANE exception] > include/sane/sanei_thread.h > include/sane/sanei_usb.h Fixed in CVS with consent of the authors. > include/sane/sanei.h > include/sane/sanei_codec_ascii.h > include/sane/sanei_codec_bin.h > include/sane/sanei_scsi.h > include/sane/sanei_wire.h > include/sane/saneopts.h I'm waiting for responses from the authors. > include/lalloca.h > include/lassert.h > sanei/linux_sg3_err.h Put on the TODO list. Bye, Henning From henning@meier-geinitz.de Thu Jul 24 18:29:32 2003 From: henning@meier-geinitz.de (Henning Meier-Geinitz) Date: Thu, 24 Jul 2003 19:29:32 +0200 Subject: [sane-devel] Development of backend for Genesys GL646 based scanners (e.g. UMAX Astra 4500) Message-ID: <20030724172932.GD1262@meier-geinitz.de> Hi, As already mentioned earlier, I've just started working on a backend for scanners based on the Genesys Logic GL646 chip. There is no code yet and it will take some time to write it. The homepage of the backend is: http://www.meier-geinitz.de/sane/genesys-backend/ I'm using a UMAX Astra 4500 scanner so that one is the one that will be supported at first (hopefully). These scanners are reported to have the same chip: Avision iVina FB1600 Genius ColorPage HR7X Lexmark X83 Medion/Tevion MD6228 + MD5345 Plustek OpticPro S12 Plustek OpticPro S24 As a first step, sane-find-scanner is now able to detect the GL646 chip. If you have one of these scanners, please run the latest sane-find-scanner tool as described on the genesys backend homepage. And/or open the scanner and check the names printed on the chips inside. This may void your warranty. If you have a scanner that is not mentioned here and you think it also uses the GL646 chip, please do the same and contact me. Bye, Henning From peter@kirchgessner.net Thu Jul 24 19:36:27 2003 From: peter@kirchgessner.net (Peter Kirchgessner) Date: Thu, 24 Jul 2003 20:36:27 +0200 Subject: [sane-devel] SANE_I18N for hp-backend Message-ID: <3F20272B.8020203@kirchgessner.net> Hi, the hp-backend has been prepared for i18n in CVS. Bye Peter -- Peter Kirchgessner http://www.kirchgessner.net mailto:peter@kirchgessner.net From olaf@zen.epkowa.co.jp Fri Jul 25 02:59:08 2003 From: olaf@zen.epkowa.co.jp (Olaf Meeuwissen) Date: Fri, 25 Jul 2003 10:59:08 +0900 Subject: [sane-devel] sane-backends effectively GPL'd in disguise? In-Reply-To: <20030724171430.GC1262@meier-geinitz.de> References: <20030723023657.GA21544@zen.epkowa.co.jp> <20030724171430.GC1262@meier-geinitz.de> Message-ID: <20030725015908.GA1501@zen.epkowa.co.jp> On Thu, Jul 24, 2003 at 07:14:30PM +0200, Henning Meier-Geinitz wrote: > Hi, > > a quick status update: > > On Wed, Jul 23, 2003 at 11:36:57AM +0900, Olaf Meeuwissen wrote: > [GPL instead of GPL + SANE exception] > > include/sane/sanei_thread.h > > include/sane/sanei_usb.h > > Fixed in CVS with consent of the authors. > > > include/sane/sanei.h > > include/sane/sanei_codec_ascii.h > > include/sane/sanei_codec_bin.h > > include/sane/sanei_scsi.h > > include/sane/sanei_wire.h > > include/sane/saneopts.h > > I'm waiting for responses from the authors. > > > include/lalloca.h > > include/lassert.h > > sanei/linux_sg3_err.h > > Put on the TODO list. Hi Henning, Thanks for the quick action. As for the lalloca.h file, you may be able to use the following (taken from the autoconf info pages which are under the FDL) /* AIX requires this to be the first thing in the file. */ #ifndef __GNUC__ # if HAVE_ALLOCA_H # include # else # ifdef _AIX #pragma alloca # else # ifndef alloca /* predefined by HP cc +Olibcalls */ char *alloca (); # endif # endif # endif #endif I *think* you can cite "fair use" and put this in the public domain. Double checking with the authors, of course, won't hurt :-) Thanks again, -- Olaf Meeuwissen EPSON KOWA Corporation, ECS GnuPG key: 6BE37D90/AB6B 0D1F 99E7 1BF5 EB97 976A 16C7 F27D 6BE3 7D90 Penguin's lib! -- I hack, therefore I am -- LPIC-2 From henning@meier-geinitz.de Fri Jul 25 09:32:35 2003 From: henning@meier-geinitz.de (Henning Meier-Geinitz) Date: Fri, 25 Jul 2003 10:32:35 +0200 Subject: [sane-devel] Current TODO list Message-ID: <20030725083235.GI1262@meier-geinitz.de> Hi, I'll append the current TODO list from CVS. If your backend or other code you care about is mentioned there, please try to fix the issues. If something is wrong or missing on this list, please change it in CVS or tell me :-) Bye, Henning TODO (2003-07-25) ******** todo ******** backends -------- * Add new backends (+ means scheduled for SANE 1.0.13) - Hewlett-Packard ScanJet 3300C / 3400C and 4300C (wip) http://sourceforge.net/projects/hp3300backend - Hewlett-Packard 4200c http://hp4200-backend.sourceforge.net/ http://fz.eryx.net/sane/#hp4200 * qcam: - implement auto mode for brightness and black-level (don't just advertise it!) Actually, implement an auto "backend" instead that can be plugged in front of any backend with brightness/contrast etc controls - figure out how/if to support bulb mode - convert to use sanei_pio functions instead of direct port access. - The result of locking isn't checked --> does it make sense at all? * dc210, dc240, gphoto2, and jpeg stuff: move sanei_* functions to sanei/ (if they are necessary). That's probably for SANE2. * v4l: - Geometry support is missing - Frequency setting is missing - check if v4lctl distributed with xawtv can be used - Use #define _LINUX_TIME_H 1 just before including videodev.h or videodev2.h to avoid trouble if /usr/include/linux is a link. - Add v4l updates from Martin Palm, see http://www.meier-geinitz.de/sane/misc/sane-v4l-update.tar.gz - compilation seems to break when video4linux version 2 is installed? * memory leaks: - sane_exit() does not release memory allocated by sane_get_devices(): abaton, agfafocus, apple, as6e, bh, canon, coolscan, dmc, qcam, ricoh, s9036, sp15c, tamarack - as6e: attach: memory (dev + dev-sane.name) isn't freed if driver isn't found. * suspicious warnings or type mismatchs: - bh: backend/bh.c, line 1923: warning: end-of-loop code not reached see sane-devel. Also don't use mktemp. - coolscan: Lots of compilation warnings (e.g. "backend/coolscan-scsidef.h", line 160: warning: initialization type mismatch; empty declarations), see sane-devel. * Check if sp15c backend (Fujitsu ScanPartner 15C) can be included in the avision backend. * artec - Fix email address of Chris Pinkham. cpinkham@infi.net bounces. * All backends: Check that global variables are initialized propperly. sane_init can be called more than once (if sane_exit was called before)! Global variables must be either initialized in sane_init or reset in sane_exit. At least these backends segfault: - microtek - hp5400 * fujitsu: option names shouldn't contain "_" * fujitsu: Add patch from m. allan noah: http://www.mostang.com/pipermail/sane-devel/2003-June/019332.html * mustek_pp: Re-enable support for CCD scanners. * avision: Add patch for using the --source option from priya (?) * Don't mark option names with SANE_I18N (see po/README for details): - canon630u.c ("cal") doc --- * Add doxygen documentation for the remaining sanei files: - sanei_pio.h - sanei_pv8630.h - sanei_wire.h * desc files: - Add keywords "vendor-id" and "product-id" for SCSI and USB ids. - umax: genius.kye.de times out? - umax, artec_eplus48u: http://www.umax.com.tw/ times out? - plustek: add Genius ColorPage HR6X EPP as supported - Change all description files to use the new status keyword: avision, canon, canon630u, coolscan2, fujitsu, hp, hp5400, hpsj5s, microtek, microtek2, plustek, sharp, st400, umax1220u. * manpages: - html manpages have broken links to other man pages if link is wrapped at the end of the line (e.g. sane-pint points to pint.5.html). Escaping the "-" with a backslash seems to work. frontends --------- * saned: - saned times out after 60 minutes. Check if the watchdog timer is really necessary (e.g. to avoid blocking scanners by one user). Maybe add a command line option to saned to set the timeout. Otherwise turn on TCP keep alive (where available) and (maybe) check the connection from server side. - Check for wire errors everywhere. Maybe create a macro? - Can the amount of memory that's used for strings be limited? Otherwise remote computers can allocate huge amounts of memories on the server. - Think about a complete rewrite with security in mind. * scanimage: Check range of width and height. scanimage just uses the ranges from br-x and br-y but this is wrong for tl-x and tl-y != 0 and for SANE_UNIT_PIXEL. sanei ----- * sanei_scsi: Think about a completely new interface. Details are in http://www.mostang.com/pipermail/sane-devel/2002-January/001995.html and http://www.mostang.com/pipermail/sane-devel/2002-December/016773.html. * create sanei_parport_* and remove all inb, outb,... from all backends; use libieee1284 if available (see http://people.redhat.com/twaugh/libieee1284/). Or just include this library into sane. * Check if the device file has the right type before accessing it. E.g. check for major/minor numbers to avoid accessing a USB file as SCSI device. This is finished for sanei_scsi.c/Linux and sane-find-scanner. Patches for other platforms are welcome. * sanei_scsi (Linux): Make sure that the SCSI driver is loaded when checking for scanners. Ideas: Open/close all the /dev/sg* files in sanei_scsi.c, dll.c or in a new backend. * sanei_scsi: Print all data send to and received from devices. Use high debug level. Already implemented for sanei_usb. * sanei_scsi: enable close_on_exec flag with fcntl on open filedescriptors to avoid blocking if the main application is already closed. * sanei_usb: - some scanners seem to provide more than one bulk-in endpoint(?) platform-specific ----------------- * Fix MacOS X issues: - More docu in README.darwin. * OS/2 issues: - Add support for semaphores also for OS/2 (currently used in snapscan). * icc on ia32 + ia64: - fix sys/io.h problems (see README.linux) misc ---- * sane-config: add options "--exec-prefix=...." and "--prefix=..." compareable to gtk-config * Make output of sane-find-scanner more flexible. See scanimage -f for details. * Can we link external libraries only to backends that need them? See http://fz.eryx.net/sane/#configure. * Fix japi to run on current jdks. Swing is now included, and there is a segfault in Sane.c. Silvio Vogt is working on this topic. * There is a mysterious problem with string list options that occurs with (at least) the epson backend, saned and xsane. See http://www.mostang.com/pipermail/sane-devel/2003-May/018755.html. * configure/libtool: find a simple way to avoid all the unneccessary tests for c++ and fortran. * Check the license of these files, they don't contain the SANE exception: include/sane/sanei.h David Mosberger-Tang and Andreas Beck include/sane/sanei_codec_ascii.h David Mosberger-Tang and Andreas Beck include/sane/sanei_codec_bin.h David Mosberger-Tang and Andreas Beck include/sane/saneopts.h David Mosberger-Tang and Andreas Beck Probably just forgotten to move from GPL to GPL+SANE. include/lalloca.h The Free Software Foundation include/lassert.h Henning Meier-Geinitz, FSF(?) sanei/linux_sg3_err.h ? (somewhere from the linux kernel or sg tools?) External files. Check for replacements. Are they necessary at all? From stefan@schloerholz.de Fri Jul 25 12:54:57 2003 From: stefan@schloerholz.de (Stefan =?iso-8859-1?q?Schl=F6rholz?=) Date: Fri, 25 Jul 2003 13:54:57 +0200 Subject: [sane-devel] Current TODO list In-Reply-To: <20030725083235.GI1262@meier-geinitz.de> References: <20030725083235.GI1262@meier-geinitz.de> Message-ID: <200307251354.57632.stefan@schloerholz.de> Henning Meier-Geinitz schrieb am Freitag, 25. Juli 2003 10:32: > Hi, Hi, what about general support for .icm profile generation and usgae? An aquire module for these .icm files using a reference target (Kodak Q-60E3 or IT8.7) would be nice so that you can calibrate yout scanner Maybe together with monitor profile you can aquire an image from the scanner and directly get the proper result for your scanner/monitor combintion. Since I have no clue about programming and CVS I have to go through email cu Stefan From khk@khk.net Fri Jul 25 13:16:29 2003 From: khk@khk.net (Karl Heinz Kremer) Date: Fri, 25 Jul 2003 08:16:29 -0400 Subject: [sane-devel] rference palette for Sane In-Reply-To: <3F1FADD3.8EE70152@satzbau-gmbh.de> Message-ID: LCMS does come with a scanner profiler (creates an ICC profile that can then be used to color correct the scan). It's a two step process,=20 because no Sane frontend does support an automatic color correction (yet?). Karl Heinz On Thursday, July 24, 2003, at 05:58 AM, abel deuring wrote: > Stefan Schl=F6rholz wrote: >> >> Hello, >> >> when operating my scanner (Microtek ScanMaker 35t plus (slide=20 >> scanner)) >> under Windows it was possible to scan a Kodak reference slide. Ther=20= >> was >> a special reference aquiring mode (including selecting the type of >> reference slide). >> >> Somehow this reference was saved and new scans are were corrected >> against this reference slide. The results where much better than = using >> Linux Sane. I could not find any hint how to calibrate Sane using = such >> a reference scan. >> >> Is it possible to have the same feature as under the Windows=20 >> application >> (BTW: it was not Sane under Windows)? Can I realize it or does = someone >> with more know how needs to do that? > > I don't know about any fully integrated color correction solution for > Sane frontends -- but you may have a look at free software for color > management and color corretion. A few links for a start: > > Karl-Heinz Kremer's link collection: > http://www.khk.net/color/links.html > > color aid: > http://www.coloraid.de/ > > Especially LCMS and GCMS, mentioned on both sites, may provide what = you > need. > > Abel > _______________________________________________ > Sane-devel mailing list > Sane-devel@www.mostang.com > http://www.mostang.com/mailman/listinfo/sane-devel From psfales@lucent.com Fri Jul 25 13:46:00 2003 From: psfales@lucent.com (Peter Fales) Date: Fri, 25 Jul 2003 07:46:00 -0500 Subject: [sane-devel] Current TODO list In-Reply-To: <20030725083235.GI1262@meier-geinitz.de> References: <20030725083235.GI1262@meier-geinitz.de> Message-ID: <20030725124600.GA8784@lucent.com> On Fri, Jul 25, 2003 at 10:32:35AM +0200, Henning Meier-Geinitz wrote: > * dc210, dc240, gphoto2, and jpeg stuff: move sanei_* functions to sanei/ > (if they are necessary). That's probably for SANE2. Henning, I think we've discussed this briefly before, but now that I've got more experience with SANE, I might be more willing to tackle it. However, I'm not really sure what is being asked here. Can you provide more details? Is it just moving cdjpeg.h and djpeg.c into the sanei directory? Thanks, Peter Fales From henning@meier-geinitz.de Fri Jul 25 15:10:39 2003 From: henning@meier-geinitz.de (Henning Meier-Geinitz) Date: Fri, 25 Jul 2003 16:10:39 +0200 Subject: [sane-devel] Current TODO list In-Reply-To: <200307251354.57632.stefan@schloerholz.de> References: <20030725083235.GI1262@meier-geinitz.de> <200307251354.57632.stefan@schloerholz.de> Message-ID: <20030725141039.GK1262@meier-geinitz.de> Hi, On Fri, Jul 25, 2003 at 01:54:57PM +0200, Stefan Schlörholz wrote: > what about general support for .icm profile generation and usgae? There was some discussion on this list about color management, e.g.: http://www.mostang.com/pipermail/sane-devel/2002-August/015083.html > An aquire module for these .icm files using a reference target (Kodak > Q-60E3 or IT8.7) would be nice so that you can calibrate yout scanner > > Maybe together with monitor profile you can aquire an image from the > scanner and directly get the proper result for your scanner/monitor > combintion. > > Since I have no clue about programming and CVS I have to go through > email Well, it looks like it's not important enough for the developers as nothing has been implemented yet :-) I personally don't know much about color management and this kind of calibration. Do we need support for that in the backends and or the API at all? I thought it's necessary to create the .icm files with each individual scanner. So e.g. if you have two scanners (exactly same model) they may vary, because e.g. gain/offset is different because of slightly different sensitivity of the CCD/CIS. I'll add an entry in the TODO list but more input would be appreciated. Bye, Henning From henning@meier-geinitz.de Fri Jul 25 15:43:47 2003 From: henning@meier-geinitz.de (Henning Meier-Geinitz) Date: Fri, 25 Jul 2003 16:43:47 +0200 Subject: [sane-devel] Current TODO list In-Reply-To: <20030725124600.GA8784@lucent.com> References: <20030725083235.GI1262@meier-geinitz.de> <20030725124600.GA8784@lucent.com> Message-ID: <20030725144347.GL1262@meier-geinitz.de> Hi, On Fri, Jul 25, 2003 at 07:46:00AM -0500, Peter Fales wrote: > On Fri, Jul 25, 2003 at 10:32:35AM +0200, Henning Meier-Geinitz wrote: > > * dc210, dc240, gphoto2, and jpeg stuff: move sanei_* functions to sanei/ > > (if they are necessary). That's probably for SANE2. > > Henning, > > I think we've discussed this briefly before, but now that I've got more > experience with SANE, I might be more willing to tackle it. However, > I'm not really sure what is being asked here. Can you provide more > details? Is it just moving cdjpeg.h and djpeg.c into the sanei directory? The idea is to have all code that's shared between backends in sanei/ and its header files in include/sane. I haven't looked too hard and haven't tried but if possible, I'd move all the jpeg source code to e.g. sanei/sanei_jpeg.c and the header file(s) to include/sane/sanei_jpeg.h. Move the djpeg.README to the root directory (README.djpeg sound nicer). Add some comments on the top of that file which backends use it and what was changed in the code. The names were changed to sanei_* and the license requires to write down what was changed IIRC. You may need some Makefile changes to make sure the jpeg files are only compiled when libjpeg is available (?). Better check the details. This topic is not that important so if you can use the time to write a new backend that would be better. But cleaning up the jpeg code is nice, too. Bye, Henning From stefan@schloerholz.de Fri Jul 25 22:23:37 2003 From: stefan@schloerholz.de (Stefan =?iso-8859-1?q?Schl=F6rholz?=) Date: Fri, 25 Jul 2003 23:23:37 +0200 Subject: [sane-devel] Current TODO list In-Reply-To: <20030725124600.GA8784@lucent.com> References: <20030725083235.GI1262@meier-geinitz.de> <20030725124600.GA8784@lucent.com> Message-ID: <200307252323.37987.stefan@schloerholz.de> Peter Fales schrieb am Freitag, 25. Juli 2003 14:46: > On Fri, Jul 25, 2003 at 10:32:35AM +0200, Henning Meier-Geinitz wrote: > Henning, Hello Henning, > However, I'm not really sure what is being asked here. Can you > provide more details? Is it just moving cdjpeg.h and djpeg.c into Since I do not know much about programming, header files, object files and the works I do not know what you are talking here. Let me explain my suggestion: The software for my scanner under windows offers a dialog where you scan a reference target, tell the programm which target standard you used and mark the positions of the reference marks. The program then knows at which position to expect what color, say pure red. It also knows which color it actually got from the scan. It then calculates a profile file (suffix .icm) with information how to correct colors. Any scan is then corrected using this scheme automatically. The quality of a scan under linux differs extremely from a scan under windows. The windows scan is by far closer to what you expect. The histogram, gamma correction and the works can not compensate for it. There are some projects for this color management under linux but they end up applying the profile after scanning and reworking it in a third application applying histogram or other funktions. This could be done in one go if sane could handle the color management. It may be splitted in frontend and backend part. Each scanner has its own profile. The aquire and processing the .icm file should always be the same. I believe that this correction procedure is very important to scanners. Having such a color management would greatly improve acceptance at the professional users. An additional possibility to import and use other .icm profiles, e. g. for the monitor or printer would improve the output even more. cu Stefan From crapsite@gmx.net Sat Jul 26 04:56:26 2003 From: crapsite@gmx.net (Michael Herder) Date: Sat, 26 Jul 2003 05:56:26 +0200 Subject: [sane-devel] Current TODO list In-Reply-To: <20030725083235.GI1262@meier-geinitz.de> References: <20030725083235.GI1262@meier-geinitz.de> Message-ID: <20030726040647.679B33B@panda.mostang.com> Henning Meier-Geinitz, Freitag, 25. Juli 2003 10:32: ... > * desc files: > - umax, artec_eplus48u: http://www.umax.com.tw/ times out? The link works for me, not sure what you mean. Perhaps this was just a temporary proplem. bb Michael From tomf@sjpc.org Sat Jul 26 05:49:30 2003 From: tomf@sjpc.org (Thomas Frayne) Date: 25 Jul 2003 21:49:30 -0700 Subject: [sane-devel] HP 7450C ... Need new patch In-Reply-To: <20030714.153143.846936143.rene.rebe@gmx.net> References: <1057435429.15799.40.camel@localhost.localdomain> <20030706.162130.730557932.rene.rebe@gmx.net> <1058064729.3167.147.camel@localhost.localdomain> <20030714.153143.846936143.rene.rebe@gmx.net> Message-ID: <1059194970.3238.2.camel@localhost.localdomain> On Mon, 2003-07-14 at 06:31, Rene Rebe wrote: > Hi, > > I was away to LinuxTag - a Linux fair here in germy - over the > weekend. I'll work on the backend this night, finish the endian issues > ..., and release a new backend (hopefully around midnight. I'll send a > seperate mail when finished. > Any progress on the new backend? Tom Frayne From henning@meier-geinitz.de Sat Jul 26 08:34:07 2003 From: henning@meier-geinitz.de (Henning Meier-Geinitz) Date: Sat, 26 Jul 2003 09:34:07 +0200 Subject: [sane-devel] Current TODO list In-Reply-To: <20030726040647.679B33B@panda.mostang.com> References: <20030725083235.GI1262@meier-geinitz.de> <20030726040647.679B33B@panda.mostang.com> Message-ID: <20030726073407.GA29840@meier-geinitz.de> Hi, On Sat, Jul 26, 2003 at 05:56:26AM +0200, Michael Herder wrote: > Henning Meier-Geinitz, Freitag, 25. Juli 2003 10:32: > ... > > * desc files: > > - umax, artec_eplus48u: http://www.umax.com.tw/ times out? > > The link works for me, not sure what you mean. Perhaps this was just a > temporary proplem. You are right, I can load the page when I'm using a host in the DFN (German university network). Well, it's sloow and in chinese but it loads :-) With my t-online TDSL connection I can't even get a response to ping. Either they don't like t-online users or t-online blocks them. I'll remove that entry. Bye, Henning From henning@meier-geinitz.de Sat Jul 26 12:49:57 2003 From: henning@meier-geinitz.de (Henning Meier-Geinitz) Date: Sat, 26 Jul 2003 13:49:57 +0200 Subject: [sane-devel] sane-backends effectively GPL'd in disguise? In-Reply-To: <20030725015908.GA1501@zen.epkowa.co.jp> References: <20030723023657.GA21544@zen.epkowa.co.jp> <20030724171430.GC1262@meier-geinitz.de> <20030725015908.GA1501@zen.epkowa.co.jp> Message-ID: <20030726114957.GC29840@meier-geinitz.de> Hi, On Fri, Jul 25, 2003 at 10:59:08AM +0900, Olaf Meeuwissen wrote: > Thanks for the quick action. As for the lalloca.h file, you may be > able to use the following (taken from the autoconf info pages which > are under the FDL) > > /* AIX requires this to be the first thing in the file. */ > #ifndef __GNUC__ > # if HAVE_ALLOCA_H > # include > # else > # ifdef _AIX > #pragma alloca > # else > # ifndef alloca /* predefined by HP cc +Olibcalls */ > char *alloca (); > # endif > # endif > # endif > #endif > > I *think* you can cite "fair use" and put this in the public domain. > Double checking with the authors, of course, won't hurt :-) The code that's currently used is based on the autoconf manual (from 1997). I've found a comment in the Changelog. As this is a very small piece of code and the autoconf authors state it should be used in the program I don't see any problem to use GPL + SANE exceptions for it. Meanwhile all files but sanei/linux_sg3_err.h have been changed to GPL+ SANE exception. I'm waiting for the response of the sg_utils author before I decide what to do with that file. We only need the #defines anyway. I've found some backends that don't use the SANE exception, some of them maybe unintentional. I'll write a sepearate email about this topic. Bye, Henning From henning@meier-geinitz.de Sat Jul 26 13:01:47 2003 From: henning@meier-geinitz.de (Henning Meier-Geinitz) Date: Sat, 26 Jul 2003 14:01:47 +0200 Subject: [sane-devel] Licenses of the backends Message-ID: <20030726120147.GD29840@meier-geinitz.de> Hi, The following backend files use pure GPL without the SANE exception: ./backend/agfafocus.c ./backend/agfafocus.h ./backend/s9036.c ./backend/s9036.h ./backend/tamarack.c ./backend/tamarack.h ./backend/snapscan-usb.c ./backend/snapscan-usb.h While the omission of the exception note is intentional for tamarack, I'm not that sure about the other files. Especially the missing note in the snapscan-usb files voids the exception in the snapscan backend. I propose to either use or not use the exception, just to be consistant. Bye, Henning From henning@meier-geinitz.de Sat Jul 26 13:19:13 2003 From: henning@meier-geinitz.de (Henning Meier-Geinitz) Date: Sat, 26 Jul 2003 14:19:13 +0200 Subject: [sane-devel] Current TODO list In-Reply-To: <200307252323.37987.stefan@schloerholz.de> References: <20030725083235.GI1262@meier-geinitz.de> <20030725124600.GA8784@lucent.com> <200307252323.37987.stefan@schloerholz.de> Message-ID: <20030726121913.GE29840@meier-geinitz.de> Hi, On Fri, Jul 25, 2003 at 11:23:37PM +0200, Stefan Schlörholz wrote: > > However, I'm not really sure what is being asked here. Can you > > provide more details? Is it just moving cdjpeg.h and djpeg.c into > > Since I do not know much about programming, header files, object files > and the works I do not know what you are talking here. Well, we are talking about the TODO list and one of its entries was to move some internal files. I'm not sure why you don't respond to the email that covers the icm topic but to this one. > Let me explain my suggestion: > The software for my scanner under windows offers a dialog where you scan > a reference target, tell the programm which target standard you used > and mark the positions of the reference marks. So it does a preview scan and you must select where the target is positioned on the glass? Or does the software find out the position automatically ? > The program then knows at which position to expect what color, say pure > red. It also knows which color it actually got from the scan. It then > calculates a profile file (suffix .icm) with information how to correct > colors. Any scan is then corrected using this scheme automatically. Ok. From your description I don't see any need to add support for icm files to backends or the SANE API. For me it looks like it can be included in the frontends without the help of the backends. Or a special "frontend" could be created that just does the calibration and other frontends could just use the .icm files. If I understand the method correctly, the frontends then use the .icm files to adjust the gamma tables. What I don't really understand is how that corresponds to the other scanner settings like exposure, gain and offset which have influence on the brightness/gamma of the image, too. So the .icm profile is only valid for one scanner with one setting of these values? > The quality of a scan under linux differs extremely from a scan under > windows. The windows scan is by far closer to what you expect. The > histogram, gamma correction and the works can not compensate for it. If you can't correct the color by using a gamma table, calibrating with the standard target won't help. Maybe in your case the widnows driver uses other settings (e.g. exposure, gain etc)? Generally speaking, the images scanned by SANE are NOT always worse than with Windows, so this may be a backend/scanner-specific problem. > There are some projects for this color management under linux but they > end up applying the profile after scanning and reworking it in a third > application applying histogram or other funktions. > > This could be done in one go if sane could handle the color management. > It may be splitted in frontend and backend part. Each scanner has its > own profile. The aquire and processing the .icm file should always be > the same. But the profile muste be created with the help of the frontend anyway. So I don't see what role the backend plays here. Keep in mind that quite a lot of scanners don't have gamma support at all, that's all been done in software. > I believe that this correction procedure is very important to scanners. > Having such a color management would greatly improve acceptance at the > professional users. Ok, then these users should propose the details on how to do it and send patches :-) I'll add a pointer to thie discussion to the TODO list. Bye, Henning From Oliver.Schwartz@gmx.de Sat Jul 26 15:37:47 2003 From: Oliver.Schwartz@gmx.de (Oliver Schwartz) Date: Sat, 26 Jul 2003 16:37:47 +0200 Subject: [sane-devel] Licenses of the backends In-Reply-To: <20030726120147.GD29840@meier-geinitz.de> References: <20030726120147.GD29840@meier-geinitz.de> Message-ID: <200307261637.55577.Oliver.Schwartz@gmx.de> =2D----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, > ./backend/snapscan-usb.c > ./backend/snapscan-usb.h > > Especially the missing note in the snapscan-usb files voids the > exception in the snapscan backend. I propose to either use or not > use the exception, just to be consistant. I'll contact the original author, but I'm quite sure it was just=20 forgotten.=20 =2D -Oliver =2D----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE/IpJA/V6sbrmfIuMRAk2EAKCIJ3gb7dB3ValsvOGUkRn0CqqsBgCcD5U1 qgL329CuFA43+Fy8/bprYa4=3D =3DtpAN =2D----END PGP SIGNATURE----- From henning@meier-geinitz.de Sun Jul 27 10:00:11 2003 From: henning@meier-geinitz.de (Henning Meier-Geinitz) Date: Sun, 27 Jul 2003 11:00:11 +0200 Subject: [sane-devel] Current TODO list In-Reply-To: <200307262218.23102.stefan@schloerholz.de> References: <20030725083235.GI1262@meier-geinitz.de> <200307252323.37987.stefan@schloerholz.de> <20030726121913.GE29840@meier-geinitz.de> <200307262218.23102.stefan@schloerholz.de> Message-ID: <20030727090011.GB5496@meier-geinitz.de> Hi, I think the discussion is of general interest so I Cc: sane-devel. On Sat, Jul 26, 2003 at 10:18:23PM +0200, Stefan Schlörholz wrote: > > > Let me explain my suggestion: > > > The software for my scanner under windows offers a dialog where you > > > scan a reference target, tell the programm which target standard > > > you used and mark the positions of the reference marks. > > > > So it does a preview scan and you must select where the target is > > positioned on the glass? Or does the software find out the position > > automatically ? > > You make a preview scan of the target and then mark the calibration > marks. This is necessary since you may end up with diffrent visible > areas or tilted targets. I think an automatism could be possible but > then you need some image processing. Ok. > > files to backends or the SANE API. For me it looks like it can be > > included in the frontends without the help of the backends. Or a > > special "frontend" could be created that just does the calibration > > and other frontends could just use the .icm files. > > agree > > > If I understand the method correctly, the frontends then use the .icm > > files to adjust the gamma tables. What I don't really understand is > > could be. I do not know what gamma correction really does. But does the > gamma correction compensate for when only a single color is affected > (say if the scanner bulp is missing some red)? The .icm would do that. > I thought gamma applies a transfer function whereas the .icm file is > more or less a look-up table for color transformation. In SANE terms, gamma tables are look-up tables. For color mode, there could be one table (total), three tables (RGB) or four tables (RGB + total). If the scanner provides a mean to set gamma tables in hardware, the backends usually provide these tables and send them to the scanner. Otherwise the correction is done in the frontend. > > how that corresponds to the other scanner settings like exposure, > > gain and offset which have influence on the brightness/gamma of the > > image, too. So the .icm profile is only valid for one scanner with > > one setting of these values? > > correct, the .icm file compensates for the color in raw (no other > correction) mode. Other methods like histogram and gamma should be > applied afterwards. Ok. > > driver uses other settings (e.g. exposure, gain etc)? Generally > > speaking, the images scanned by SANE are NOT always worse than with > > Windows, so this may be a backend/scanner-specific problem. > > I do not doubt that. When having said Windows I meant including the use > of the .icm File. Scans in raw (no correction applied) modes do not > differ from Linux to Windows. > > > But the profile muste be created with the help of the frontend > > anyway. So I don't see what role the backend plays here. Keep in mind > > Is this a mailing list for the backends anly then? Sorry I did nor know > that. Where can I bring up this isuue correctly? It's the correct list here. This comment was directed to the previous discussion on this list. > On the other side I see that the functionality should be available for > any scanner. Why not bringing it in the backend (again, due to lack of > programming know how i do not know if possible at all) making it easier > for frontend developers to take advantage of it? The backens should support all the functions the hardware provides. As that type of calibration is not a harware feature, I don't think they can do anything to help it. Especially if a feature is needed for all devices, it's better to put it in the frontend because that means to change one (or some) frontends instead of > 50 backends. The only thing I could think about is that the backend could provide the .icm file over the SANE API once that file was generated and written to the hard disc. > > Ok, then these users should propose the details on how to do it and > > send patches :-) > > Maybe it would be best to involve some developers of the existing > projects like "lcms" projects. They know all the details of gamma, > histogram and the difference to color management using .icm files. Well, go ahead :-) Bye, Henning From henning@meier-geinitz.de Sun Jul 27 10:25:06 2003 From: henning@meier-geinitz.de (Henning Meier-Geinitz) Date: Sun, 27 Jul 2003 11:25:06 +0200 Subject: [sane-devel] sane-backends effectively GPL'd in disguise? In-Reply-To: <20030726114957.GC29840@meier-geinitz.de> References: <20030723023657.GA21544@zen.epkowa.co.jp> <20030724171430.GC1262@meier-geinitz.de> <20030725015908.GA1501@zen.epkowa.co.jp> <20030726114957.GC29840@meier-geinitz.de> Message-ID: <20030727092506.GD5496@meier-geinitz.de> Hi, On Sat, Jul 26, 2003 at 01:49:57PM +0200, Henning Meier-Geinitz wrote: > Meanwhile all files but sanei/linux_sg3_err.h have been changed to > GPL+ SANE exception. I'm waiting for the response of the sg_utils > author before I decide what to do with that file. We only need the > #defines anyway. I've changed that file to GPL + SANE exception, too. I hope that was the last one :-) Bye, Henning From khk@khk.net Sun Jul 27 12:43:40 2003 From: khk@khk.net (Karl Heinz Kremer) Date: Sun, 27 Jul 2003 07:43:40 -0400 Subject: [sane-devel] Current TODO list In-Reply-To: <20030727090011.GB5496@meier-geinitz.de> Message-ID: <916DF70C-C027-11D7-9E97-000A957E40E8@khk.net> On Sunday, July 27, 2003, at 05:00 AM, Henning Meier-Geinitz wrote: [ ... ] > >> On the other side I see that the functionality should be available for >> any scanner. Why not bringing it in the backend (again, due to lack of >> programming know how i do not know if possible at all) making it >> easier >> for frontend developers to take advantage of it? > > The backens should support all the functions the hardware provides. As > that type of calibration is not a harware feature, I don't think they > can do anything to help it. Especially if a feature is needed for all > devices, it's better to put it in the frontend because that means to > change one (or some) frontends instead of > 50 backends. > > The only thing I could think about is that the backend could provide > the .icm file over the SANE API once that file was generated and > written to the hard disc. There are a couple of ways this can be handled. But regardless of this, there are two general areas that need to be addressed: - preview in the frontend - storing the image data For the preview, the color correction has to be done in the frontend, based on two ICC profiles: One for the scanner, and one for the display. LCMS does also provide a mechanism to profile monitors. And of course, LCMS also provides the functions to actually apply the profiles. Once we store the image data, there are (at least) two options: For image formats that support embedded ICC profiles (TIFF and PNG) it is not necessary to do any color correction: The image gets stored as it was read from the scanner. In addition to the raw image data, the ICC profile gets also stored in the image file. This way, there is no loss in image quality, and an application that is ICC aware can then apply the source profile (scanner profile) and e.g. another display profile or an output profile (printer) to perform the necessary color correction. Every time a profile is applied, the image quality suffers a bit, so it's a good idea to limit the number of profile transformations. For all other image formats (which are not ICC aware), the transformation would be applied by the frontend, and the modified image data would be stored. Karl Heinz From henning@meier-geinitz.de Sun Jul 27 12:54:16 2003 From: henning@meier-geinitz.de (Henning Meier-Geinitz) Date: Sun, 27 Jul 2003 13:54:16 +0200 Subject: [sane-devel] Current TODO list In-Reply-To: <916DF70C-C027-11D7-9E97-000A957E40E8@khk.net> References: <20030727090011.GB5496@meier-geinitz.de> <916DF70C-C027-11D7-9E97-000A957E40E8@khk.net> Message-ID: <20030727115416.GE5496@meier-geinitz.de> Hi, On Sun, Jul 27, 2003 at 07:43:40AM -0400, Karl Heinz Kremer wrote: > Once we store the image data, there are (at least) two options: For > image formats that support embedded ICC profiles (TIFF and PNG) it is > not necessary to do any color correction: The image gets stored as it > was read from the scanner. In addition to the raw image data, the ICC > profile gets also stored in the image file. This way, there is no > loss in image quality, and an application that is ICC aware can then > apply the source profile (scanner profile) and e.g. another display > profile or an output profile (printer) to perform the necessary > color correction. Every time a profile is applied, the image quality > suffers a bit, so it's a good idea to limit the number of profile > transformations. Ok, but e.g. with Xsane viewer mode the program doesn't know which file type is used before the user actually saves the file. And I think the color correction should be done in hardware if the backend/scanner supports that. So the user has to decide if he wants to apply the color correction immediately (instead of saving the ICC data with the image data) before actually doing the scan. That's because the frontend must set the gamma tables before the scan. Bye, Henning From gerard@gkall.hobby.nl Sun Jul 27 16:11:14 2003 From: gerard@gkall.hobby.nl (gerard klaver) Date: 27 Jul 2003 15:11:14 +0000 Subject: [sane-devel] Current TODO list In-Reply-To: <916DF70C-C027-11D7-9E97-000A957E40E8@khk.net> References: <916DF70C-C027-11D7-9E97-000A957E40E8@khk.net> Message-ID: <1059318673.988.22.camel@gkall-lex> On Sun, 2003-07-27 at 11:43, Karl Heinz Kremer wrote: > On Sunday, July 27, 2003, at 05:00 AM, Henning Meier-Geinitz wrote: > [ ... ] > > > >> On the other side I see that the functionality should be available for > >> any scanner. Why not bringing it in the backend (again, due to lack of > >> programming know how i do not know if possible at all) making it > >> easier > >> for frontend developers to take advantage of it? > > > > The backens should support all the functions the hardware provides. As > > that type of calibration is not a harware feature, I don't think they > > can do anything to help it. Especially if a feature is needed for all > > devices, it's better to put it in the frontend because that means to > > change one (or some) frontends instead of > 50 backends. > > > > The only thing I could think about is that the backend could provide > > the .icm file over the SANE API once that file was generated and > > written to the hard disc. > > There are a couple of ways this can be handled. But regardless of this, > there are two general areas that need to be addressed: > - preview in the frontend > - storing the image data > > For the preview, the color correction has to be done in the frontend, > based > on two ICC profiles: One for the scanner, and one for the display. LCMS > does > also provide a mechanism to profile monitors. And of course, LCMS also > provides the functions to actually apply the profiles. > > > Karl Heinz > With LCMS profile package you mean the lprof package from littlecms? On http://www.littlecms.com/profilers.htm there are some screen shots of this package. I think it should be nice if this package could be used as a short of plugin package in the sane frontends. But maybe i am wrong? -- ---------- m.vr.gr. Gerard Klaver From rene.rebe@gmx.net Sun Jul 27 21:01:51 2003 From: rene.rebe@gmx.net (Rene Rebe) Date: Sun, 27 Jul 2003 22:01:51 +0200 (CEST) Subject: [sane-devel] Re: code modified for avision In-Reply-To: <01c601c34ac7$adf04d60$5505a8c0@priya> References: <004601c349cf$f8cb0b20$5505a8c0@priya> <20030714.153620.607960897.rene.rebe@gmx.net> <01c601c34ac7$adf04d60$5505a8c0@priya> Message-ID: <20030727.220151.304121048.rene.rebe@gmx.net> Hi, On: Tue, 15 Jul 2003 17:23:14 +0530, "priya" wrote: > i m mailing u the code itself. The changes i made are with respect to= below > mentioned description. ... > I have modified the avision.c and avision.h file and am attaching tha= t. > = > How can i make sure that the code i have changed will be merged in th= e next > release or not? will there be any notification for the same.. or i wi= ll have > to maintain my code and will have to merge it everytime with the late= st > version? Sorry (again) for the long delay. It is merged now. But I did modifications because: a) the new OPT_SOURCE is redudant with OPT_ADF and OPT_TRANS. So I did some cleanups and restructurings to get rid of those. b) in the code you send you did not take care of the size change of the scan-area for the various different sources. If you do further modificatoins it would be nice if you could send changes as "diff -u" against the current SANE/Avision code at: http://schillernet.dyndns.org/svn/sane-avision/ To get a tiny how-to use this Subversion repository see: http://schillernet.dyndns.org/svn/ > regards > Priya Gupta > Newgen Software Pvt Ltd > India Sincerely yours, Ren=E9 Rebe - ROCK Linux stable release maintainer -- = Ren=E9 Rebe - Europe/Germany/Berlin rene@rocklinux.org rene.rebe@gmx.net http://www.rocklinux.org http://www.rocklinux.org/people/rene = http://gsmp.tfh-berlin.de/gsmp http://gsmp.tfh-berlin.de/rene From rene.rebe@gmx.net Sun Jul 27 21:05:13 2003 From: rene.rebe@gmx.net (Rene Rebe) Date: Sun, 27 Jul 2003 22:05:13 +0200 (CEST) Subject: [sane-devel] HP 7450C ... Need new patch In-Reply-To: <1059194970.3238.2.camel@localhost.localdomain> References: <1058064729.3167.147.camel@localhost.localdomain> <20030714.153143.846936143.rene.rebe@gmx.net> <1059194970.3238.2.camel@localhost.localdomain> Message-ID: <20030727.220513.229750962.rene.rebe@gmx.net> Hi, On: 25 Jul 2003 21:49:30 -0700, Thomas Frayne wrote: > On Mon, 2003-07-14 at 06:31, Rene Rebe wrote: > > Hi, > > = > > I was away to LinuxTag - a Linux fair here in germy - over the > > weekend. I'll work on the backend this night, finish the endian iss= ues > > ..., and release a new backend (hopefully around midnight. I'll sen= d a > > seperate mail when finished. > > = > = > = > Any progress on the new backend? Yes - today I foud the first free minutes ... I merged the ADF handling posted here two weeks ago, too. Coud you try the current version at: http://schillernet.dyndns.org/svn/sane-avision/ To get a tiny how-to use this Subversion repository see: http://schillernet.dyndns.org/svn/ but you could also just download the two files you see in the backend dir with any browser ... Btw: the ROCK Linux homage sites are in a flux - and my new person dir at: http://www.rocklinux.net/people/rene ^^^- was org before ... but there a no new files yet > Tom Frayne Sincerely yours, Ren=E9 Rebe - ROCK Linux stable release maintainer -- = Ren=E9 Rebe - Europe/Germany/Berlin rene@rocklinux.org rene.rebe@gmx.net http://www.rocklinux.org http://www.rocklinux.net/people/rene http://gsmp.tfh-berlin.de/gsmp http://gsmp.tfh-berlin.de/rene From rene.rebe@gmx.net Sun Jul 27 21:10:03 2003 From: rene.rebe@gmx.net (Rene Rebe) Date: Sun, 27 Jul 2003 22:10:03 +0200 (CEST) Subject: [sane-devel] Current TODO list In-Reply-To: <20030725083235.GI1262@meier-geinitz.de> References: <20030725083235.GI1262@meier-geinitz.de> Message-ID: <20030727.221003.35041182.rene.rebe@gmx.net> Hi, On: Fri, 25 Jul 2003 10:32:35 +0200, Henning Meier-Geinitz wrote: > Hi, > = > I'll append the current TODO list from CVS. If your backend or other > code you care about is mentioned there, please try to fix the issues.= > If something is wrong or missing on this list, please change it in CV= S > or tell me :-) > = > Bye, > Henning > = > TODO (2003-07-25) > * Check if sp15c backend (Fujitsu ScanPartner 15C) can be included = in > the avision backend. This should be possible and I already started some initial changes (infrastructure work) half a year ago. I'll add it to my TODO for the next weeks. > * avision: Add patch for using the --source option from priya > (?) Done locally - not yet in the CVS, since I only commit widely tested modifications (and tht patch needed some cleanups and still has two tiny open issues I'll resolve in the next days. Sincerely yours, Ren=E9 Rebe - ROCK Linux stable release maintainer -- = Ren=E9 Rebe - Europe/Germany/Berlin rene@rocklinux.org rene.rebe@gmx.net http://www.rocklinux.org http://www.rocklinux.net/people/rene http://gsmp.tfh-berlin.de/gsmp http://gsmp.tfh-berlin.de/rene From khk@khk.net Sun Jul 27 22:59:09 2003 From: khk@khk.net (Karl Heinz Kremer) Date: Sun, 27 Jul 2003 17:59:09 -0400 Subject: [sane-devel] Current TODO list In-Reply-To: <20030727115416.GE5496@meier-geinitz.de> Message-ID: <8CD75FCA-C07D-11D7-9E97-000A957E40E8@khk.net> On Sunday, July 27, 2003, at 07:54 AM, Henning Meier-Geinitz wrote: > Hi, > > On Sun, Jul 27, 2003 at 07:43:40AM -0400, Karl Heinz Kremer wrote: >> Once we store the image data, there are (at least) two options: For >> image formats that support embedded ICC profiles (TIFF and PNG) it is >> not necessary to do any color correction: The image gets stored as it >> was read from the scanner. In addition to the raw image data, the ICC >> profile gets also stored in the image file. This way, there is no >> loss in image quality, and an application that is ICC aware can then >> apply the source profile (scanner profile) and e.g. another display >> profile or an output profile (printer) to perform the necessary >> color correction. Every time a profile is applied, the image quality >> suffers a bit, so it's a good idea to limit the number of profile >> transformations. > > Ok, but e.g. with Xsane viewer mode the program doesn't know which file > type is used before the user actually saves the file. For this mode you would also use the two profiles (scanner and monitor) to convert the raw data to color corrected data for the viewer. > > And I think the color correction should be done in hardware if the > backend/scanner supports that. So the user has to decide if he wants > to apply the color correction immediately (instead of saving the ICC > data with the image data) before actually doing the scan. That's > because the frontend must set the gamma tables before the scan. > In order to profile scanner, you would pick one gamma setting, create the profile and then restore the same setting everytime you are going to use this profile. A scanner profile is only valid for one set of scanner options. Scanning based on a profile is probably not something the average user would do, it's a very advanced concept. Therefore it does not have to be fool proof. Using the gamma table to perform color corrections is not always a good idea: Some scanners use only 8-bit gamma tables, even though they scan with 12, 14 or 16 bit per channel. ICC profiles can deal with 16 bit data, and therefore will create less error. Karl Heinz From soumarmt@nerim.net Mon Jul 28 08:27:31 2003 From: soumarmt@nerim.net (Thomas Soumarmon) Date: Mon, 28 Jul 2003 09:27:31 +0200 Subject: [sane-devel] Current TODO list In-Reply-To: <20030725083235.GI1262@meier-geinitz.de> References: <20030725083235.GI1262@meier-geinitz.de> Message-ID: <200307280927.31538.soumarmt@nerim.net> Hi, > TODO (2003-07-25) > > ******** todo ******** [snip] > backends > -------- > > * All backends: > Check that global variables are initialized propperly. sane_init can be > called more than once (if sane_exit was called before)! Global > variables must be either initialized in sane_init or reset in sane_exit. At > least these backends segfault: > - microtek > - hp5400 Some work has been done for hp5400. Just a few questions : * may the backend be called after a sane_exit() ? * is this needed for "const" global variables ? * could you explain me what the problem is with global initialization ? > doc > --- > > * desc files: > - Change all description files to use the new status keyword: > avision, canon, canon630u, coolscan2, fujitsu, > hp, hp5400, hpsj5s, microtek, microtek2, > plustek, sharp, st400, umax1220u. done for hp5400. From gerard@gkall.hobby.nl Mon Jul 28 14:44:10 2003 From: gerard@gkall.hobby.nl (gerard klaver) Date: 28 Jul 2003 13:44:10 +0000 Subject: [sane-devel] Which viewer to use with raw .png file and a .icc profile file Message-ID: <1059399850.1916.93.camel@gkall-lex> Hello, I have scanned a raw .png file and made a .icc profile with a reference target (wine, lprof program). The question is what can i do to or which viewer to use to correct the png file with the .icc file? No luck yet with gimp1.3 or imagemagic (display) -- ---------- m.vr.gr. Gerard Klaver From gerard@gkall.hobby.nl Mon Jul 28 16:54:32 2003 From: gerard@gkall.hobby.nl (gerard klaver) Date: 28 Jul 2003 15:54:32 +0000 Subject: [sane-devel] Current TODO list In-Reply-To: <8CD75FCA-C07D-11D7-9E97-000A957E40E8@khk.net> References: <8CD75FCA-C07D-11D7-9E97-000A957E40E8@khk.net> Message-ID: <1059407671.1918.129.camel@gkall-lex> On Sun, 2003-07-27 at 21:59, Karl Heinz Kremer wrote: > In order to profile scanner, you would pick one gamma setting, create > the > profile and then restore the same setting everytime you are going to use > this profile. A scanner profile is only valid for one set of scanner > options. > > Scanning based on a profile is probably not something the average user > would do, it's a very advanced concept. Therefore it does not have to > be fool proof. > > Using the gamma table to perform color corrections is not always a good > idea: Some scanners use only 8-bit gamma tables, even though they > scan with 12, 14 or 16 bit per channel. ICC profiles can deal with 16 > bit data, and therefore will create less error. > > Karl Heinz > Some idees about different user needs: The average user only wants a button to select enable/disable use of the default profile and the default settings belonging to the profile. After that the user can use for example Gimp to check/change the scan. Default profile generated by the manufacturer or backend maintainer(or any body else who supplied a profile file with a settings file). The more demanding user wants to select between different profiles depending on his scanning object. The advanced user wants to add his own profiles to the backend and use them when he wants and takes the effort to get a reference target and use it. -- ---------- m.vr.gr. Gerard Klaver From henning@meier-geinitz.de Mon Jul 28 15:29:46 2003 From: henning@meier-geinitz.de (Henning Meier-Geinitz) Date: Mon, 28 Jul 2003 16:29:46 +0200 Subject: [sane-devel] Which viewer to use with raw .png file and a .icc profile file In-Reply-To: <1059399850.1916.93.camel@gkall-lex> References: <1059399850.1916.93.camel@gkall-lex> Message-ID: <20030728142945.GA11798@meier-geinitz.de> Hi, On Mon, Jul 28, 2003 at 01:44:10PM +0000, gerard klaver wrote: > I have scanned a raw .png file and made a .icc profile with a reference > target (wine, lprof program). > > The question is what can i do to or which viewer to use to correct the > png file with the .icc file? > > No luck yet with gimp1.3 or imagemagic (display) I haven't tested that but "man covert" says: -profile add ICM, IPTC, or generic profile to image Is .icc == ICM? But maybe it only adds the profile to e.g. a TIFF image. Bye, Henning From oliver.rauch@rauch-domain.de Mon Jul 28 16:12:17 2003 From: oliver.rauch@rauch-domain.de (Oliver Rauch) Date: Mon, 28 Jul 2003 17:12:17 +0200 Subject: [sane-devel] Which viewer to use with raw .png file and a .icc profile file In-Reply-To: <20030728142945.GA11798@meier-geinitz.de> References: <1059399850.1916.93.camel@gkall-lex> <20030728142945.GA11798@meier-geinitz.de> Message-ID: <200307281712.17860.oliver.rauch@rauch-domain.de> BTW: scanimage also can include an ICC profile into a tiff image: -i, --icc-profile=3DPROFILE include this ICC profile into TIFF file But I do not know any viewers that make use of the profile in a TIFF imag= e. Oliver Oliver On Monday 28 July 2003 16:29, Henning Meier-Geinitz wrote: > Hi, > > On Mon, Jul 28, 2003 at 01:44:10PM +0000, gerard klaver wrote: > > I have scanned a raw .png file and made a .icc profile with a referen= ce > > target (wine, lprof program). > > > > The question is what can i do to or which viewer to use to correct th= e > > png file with the .icc file? > > > > No luck yet with gimp1.3 or imagemagic (display) > > I haven't tested that but "man covert" says: > > -profile > add ICM, IPTC, or generic profile to image > > Is .icc =3D=3D ICM? But maybe it only adds the profile to e.g. a TIFF i= mage. > > Bye, > Henning > > _______________________________________________ > Sane-devel mailing list > Sane-devel@www.mostang.com > http://www.mostang.com/mailman/listinfo/sane-devel --=20 http://www.xsane.org http://www.mostang.com/sane http://www.rauch-domain.de mailto:Oliver.Rauch@Rauch-Domain.DE From henning@meier-geinitz.de Mon Jul 28 16:05:26 2003 From: henning@meier-geinitz.de (Henning Meier-Geinitz) Date: Mon, 28 Jul 2003 17:05:26 +0200 Subject: [sane-devel] Current TODO list In-Reply-To: <200307280927.31538.soumarmt@nerim.net> References: <20030725083235.GI1262@meier-geinitz.de> <200307280927.31538.soumarmt@nerim.net> Message-ID: <20030728150526.GC11798@meier-geinitz.de> Hi, On Mon, Jul 28, 2003 at 09:27:31AM +0200, Thomas Soumarmon wrote: > Just a few questions : > * may the backend be called after a sane_exit() ? Yes, but only sane_init () again. After that, normal operation can start again. > * is this needed for "const" global variables ? I don't think so. If they are not changed, there is no problem. > * could you explain me what the problem is with global initialization ? e.g. int * some_buffer = 0; sane_init () { attach (); } attach () { if (!some_buffer) some_buffer = malloc (...); } sane_exit () { if (some_buffer) free (some_buffer); } This works once but the second time malloc won't be called. --> crash. Freeing already freed buffers also can happen if you don't explicitely set them to 0 in sane_init or sane_exit. Another example: SANE_Bool first_scan = SANE_TRUE; sane_start () { if (first_scan) { first_scan = SANE_FALSE; turn_lamp_on(); wait_for_30_seconds_for_lamp_warmup (); } } sane_exit () { turn_lamp_off (); } -> after the first sane_exit/sane_init the lamp is not warmed up. > > * desc files: > > - Change all description files to use the new status keyword: > > avision, canon, canon630u, coolscan2, fujitsu, > > hp, hp5400, hpsj5s, microtek, microtek2, > > plustek, sharp, st400, umax1220u. > > > done for hp5400. There are still some ":status :alpha" lines in your .desc file :-) Run "make" ind doc/ and grep the warnings for "hp5400". Bye, Henning From stefan@schloerholz.de Mon Jul 28 17:53:51 2003 From: stefan@schloerholz.de (Stefan =?iso-8859-15?q?Schl=F6rholz?=) Date: Mon, 28 Jul 2003 18:53:51 +0200 Subject: [sane-devel] Current TODO list In-Reply-To: <1059407671.1918.129.camel@gkall-lex> References: <8CD75FCA-C07D-11D7-9E97-000A957E40E8@khk.net> <1059407671.1918.129.camel@gkall-lex> Message-ID: <200307281853.51547.stefan@schloerholz.de> gerard klaver schrieb am Montag, 28. Juli 2003 17:54: Hi Gerald, > Some idees about different user needs: > > The average user only wants a button to select enable/disable use of > the default profile and the default settings belonging to the > profile. After that the user can use for example Gimp to check/change > the scan. > > Default profile generated by the manufacturer or backend > maintainer(or any body else who supplied a profile file with a > settings file). > > The more demanding user wants to select between different profiles > depending on his scanning object. > > The advanced user wants to add his own profiles to the backend and > use them when he wants and takes the effort to get a reference target > and use it. In general I agree, but also the average user should have the possibility to aquire a profile siince the lamp could age and it is more convenient to aquire a profile yourself. Also some scanner manufactureres do not deliver references to save costs. Additionally each scanner differs from the other, even within one model batch. cu Stefan From soumarmt@nerim.net Mon Jul 28 18:16:14 2003 From: soumarmt@nerim.net (Thomas Soumarmon) Date: Mon, 28 Jul 2003 19:16:14 +0200 Subject: backend status: (was Re:[sane-devel] Current TODO list) In-Reply-To: <20030728150526.GC11798@meier-geinitz.de> References: <20030725083235.GI1262@meier-geinitz.de> <200307280927.31538.soumarmt@nerim.net> <20030728150526.GC11798@meier-geinitz.de> Message-ID: <200307281916.14624.soumarmt@nerim.net> Hi, Thank you Henning for your explanation. I thought it could be due to a platform specific weird initialization. in the hp5400.desc file, when I set the backend status to beta, the make gives me the following warning : [sane-desc] Warning: DEPRECATED backend status `beta': setting status of backend `hp5400' to `good' So i set it to good and then it says to me : [sane-desc] ERROR: unknown status of backend `hp5400': `:good' Bye, Thomas. From matthew@mattshouse.com Mon Jul 28 19:16:05 2003 From: matthew@mattshouse.com (Matthew) Date: Mon, 28 Jul 2003 13:16:05 -0500 Subject: [sane-devel] UMAX Astra 2200 USB weirdness (Repost) Message-ID: <3F256865.3030100@mattshouse.com> This is an extension of the thread from 17 Jun 2003 regarding the problems with the UMAX Astra 2200 series scanner connected via USB. This is a repost due to my inability to send from the correct e-mail address. :-) http://www.mostang.com/pipermail/sane-devel/2003-June/019106.html I'm having the same problem, as described below: From xsane I can "Preview" an image, but when I try to "Scan" an image the interface locks up and I start to see the following in the syslog: Jul 28 10:39:45 scan4 kernel: usb_control/bulk_msg: timeout Jul 28 10:40:25 scan4 last message repeated 2 times Jul 28 10:41:25 scan4 last message repeated 3 times Followed later by: Jul 28 10:48:43 scan4 kernel: scanner.c: read_scanner(0): excessive NAK's received I then have to unload usb-ohci.o and scanner.o before trying again. incidently, xscanimage locks up immediately. I've tried several combinations of kernel/sane. Redhat kernel 2.4.20 Stock Linus kernel 2.4.21 Stock Linus 2.4.21 + 2.4.22-pre6 Stock Redhat sane 1.0.9-5 Rawhide sane 1.0.12-4 sane cvs snapshot from Jul 27th (after thouroughly removing the prev vers). All of the combos above yield the same result. The scanner that I'm using is described as such from `lsusb`: idVendor 0x1606 Umax [hex] idProduct 0x0230 Astra 2200/2200SU Like I said, the "Preview" works but the "Scan" does not. It doesn't matter whether or not I've already done a "Preview". If you need further information, or need access to the machine just let me know. In any case it seems that others are having the same problem so the Supported Scanner matrix should probably be updated to show something other than "stable" since I used that to guide my purchase. Let me know if I can be of further assistance. Matthew From henning@meier-geinitz.de Mon Jul 28 19:33:28 2003 From: henning@meier-geinitz.de (Henning Meier-Geinitz) Date: Mon, 28 Jul 2003 20:33:28 +0200 Subject: backend status: (was Re:[sane-devel] Current TODO list) In-Reply-To: <200307281916.14624.soumarmt@nerim.net> References: <20030725083235.GI1262@meier-geinitz.de> <200307280927.31538.soumarmt@nerim.net> <20030728150526.GC11798@meier-geinitz.de> <200307281916.14624.soumarmt@nerim.net> Message-ID: <20030728183328.GI11798@meier-geinitz.de> Hi, On Mon, Jul 28, 2003 at 07:16:14PM +0200, Thomas Soumarmon wrote: > in the hp5400.desc file, when I set the backend status to beta, the make gives > me the following warning : > [sane-desc] Warning: DEPRECATED backend status `beta': setting status of > backend `hp5400' to `good' > > So i set it to good and then it says to me : > [sane-desc] ERROR: unknown status of backend `hp5400': `:good' That's simple: there is no backend status anymore, only per-scanner statuses (stati? statii? whatever). So just remove that one. If you really want to mention that your backend is beta, you can use tha backend's comment header. Bye, Henning From oliver.rauch@rauch-domain.de Mon Jul 28 19:56:09 2003 From: oliver.rauch@rauch-domain.de (Oliver Rauch) Date: Mon, 28 Jul 2003 20:56:09 +0200 Subject: [sane-devel] UMAX Astra 2200 USB weirdness (Repost) In-Reply-To: <3F256865.3030100@mattshouse.com> References: <3F256865.3030100@mattshouse.com> Message-ID: <200307282056.09611.oliver.rauch@rauch-domain.de> Disable qualtiy calibration Oliver On Monday 28 July 2003 20:16, Matthew wrote: > This is an extension of the thread from 17 Jun 2003 regarding the > problems with the UMAX Astra 2200 series scanner connected via USB. > This is a repost due to my inability to send from the correct e-mail > address. :-) > > http://www.mostang.com/pipermail/sane-devel/2003-June/019106.html > > I'm having the same problem, as described below: > > From xsane I can "Preview" an image, but when I try to "Scan" an image > the interface locks up and I start to see the following in the syslog: > > Jul 28 10:39:45 scan4 kernel: usb_control/bulk_msg: timeout > Jul 28 10:40:25 scan4 last message repeated 2 times > Jul 28 10:41:25 scan4 last message repeated 3 times > > Followed later by: > > Jul 28 10:48:43 scan4 kernel: scanner.c: read_scanner(0): excessive > NAK's received > > I then have to unload usb-ohci.o and scanner.o before trying again. > incidently, xscanimage locks up immediately. > > I've tried several combinations of kernel/sane. > > Redhat kernel 2.4.20 > Stock Linus kernel 2.4.21 > Stock Linus 2.4.21 + 2.4.22-pre6 > > Stock Redhat sane 1.0.9-5 > Rawhide sane 1.0.12-4 > sane cvs snapshot from Jul 27th (after thouroughly removing the prev ve= rs). > > All of the combos above yield the same result. > > The scanner that I'm using is described as such from `lsusb`: > idVendor 0x1606 Umax [hex] > idProduct 0x0230 Astra 2200/2200SU > > Like I said, the "Preview" works but the "Scan" does not. It doesn't > matter whether or not I've already done a "Preview". > > If you need further information, or need access to the machine just let > me know. In any case it seems that others are having the same problem > so the Supported Scanner matrix should probably be updated to show > something other than "stable" since I used that to guide my purchase. > > Let me know if I can be of further assistance. > > Matthew > > > _______________________________________________ > Sane-devel mailing list > Sane-devel@www.mostang.com > http://www.mostang.com/mailman/listinfo/sane-devel --=20 http://www.xsane.org http://www.mostang.com/sane http://www.rauch-domain.de mailto:Oliver.Rauch@Rauch-Domain.DE From henning@meier-geinitz.de Mon Jul 28 19:51:15 2003 From: henning@meier-geinitz.de (Henning Meier-Geinitz) Date: Mon, 28 Jul 2003 20:51:15 +0200 Subject: [sane-devel] UMAX Astra 2200 USB weirdness (Repost) In-Reply-To: <3F256865.3030100@mattshouse.com> References: <3F256865.3030100@mattshouse.com> Message-ID: <20030728185115.GJ11798@meier-geinitz.de> Hi, I've no idea about your specific problem but maybe some generic comments help: On Mon, Jul 28, 2003 at 01:16:05PM -0500, Matthew wrote: > From xsane I can "Preview" an image, but when I try to "Scan" an image > the interface locks up and I start to see the following in the syslog: > > Jul 28 10:39:45 scan4 kernel: usb_control/bulk_msg: timeout > Jul 28 10:40:25 scan4 last message repeated 2 times > Jul 28 10:41:25 scan4 last message repeated 3 times Do you have a VIA mainboard chipset? Is local APIC enabled? Is ACPI enabled? If yes, try disabling both in your kernel. > I've tried several combinations of kernel/sane. Try using libusb instead of the kernel scanner driver (see man sane-usb). If the problem still occurs I guess it's either a SANE or a hardware problem. Bye, Henning From matthew@mattshouse.com Mon Jul 28 21:01:01 2003 From: matthew@mattshouse.com (Matthew) Date: Mon, 28 Jul 2003 15:01:01 -0500 Subject: [sane-devel] UMAX Astra 2200 USB weirdness (Repost) In-Reply-To: <200307282056.09611.oliver.rauch@rauch-domain.de> References: <3F256865.3030100@mattshouse.com> <200307282056.09611.oliver.rauch@rauch-domain.de> Message-ID: <3F2580FD.5050607@mattshouse.com> For the record, this suggestion worked. I can now scan with the UMAX 2200SU Thanks a lot, Matthew Oliver Rauch wrote: >Disable qualtiy calibration > >Oliver > >On Monday 28 July 2003 20:16, Matthew wrote: > > >>This is an extension of the thread from 17 Jun 2003 regarding the >>problems with the UMAX Astra 2200 series scanner connected via USB. >>This is a repost due to my inability to send from the correct e-mail >>address. :-) >> >>http://www.mostang.com/pipermail/sane-devel/2003-June/019106.html >> >>I'm having the same problem, as described below: >> >> From xsane I can "Preview" an image, but when I try to "Scan" an image >>the interface locks up and I start to see the following in the syslog: >> >>Jul 28 10:39:45 scan4 kernel: usb_control/bulk_msg: timeout >>Jul 28 10:40:25 scan4 last message repeated 2 times >>Jul 28 10:41:25 scan4 last message repeated 3 times >> >>Followed later by: >> >>Jul 28 10:48:43 scan4 kernel: scanner.c: read_scanner(0): excessive >>NAK's received >> >>I then have to unload usb-ohci.o and scanner.o before trying again. >>incidently, xscanimage locks up immediately. >> >>I've tried several combinations of kernel/sane. >> >>Redhat kernel 2.4.20 >>Stock Linus kernel 2.4.21 >>Stock Linus 2.4.21 + 2.4.22-pre6 >> >>Stock Redhat sane 1.0.9-5 >>Rawhide sane 1.0.12-4 >>sane cvs snapshot from Jul 27th (after thouroughly removing the prev vers). >> >>All of the combos above yield the same result. >> >>The scanner that I'm using is described as such from `lsusb`: >>idVendor 0x1606 Umax [hex] >>idProduct 0x0230 Astra 2200/2200SU >> >>Like I said, the "Preview" works but the "Scan" does not. It doesn't >>matter whether or not I've already done a "Preview". >> >>If you need further information, or need access to the machine just let >>me know. In any case it seems that others are having the same problem >>so the Supported Scanner matrix should probably be updated to show >>something other than "stable" since I used that to guide my purchase. >> >>Let me know if I can be of further assistance. >> >>Matthew >> >> >>_______________________________________________ >>Sane-devel mailing list >>Sane-devel@www.mostang.com >>http://www.mostang.com/mailman/listinfo/sane-devel >> >> > > > From fzago@austin.rr.com Mon Jul 28 18:48:49 2003 From: fzago@austin.rr.com (Frank Zago) Date: Mon, 28 Jul 2003 12:48:49 -0500 Subject: [sane-devel] UMAX Astra 2200 USB weirdness (Repost) In-Reply-To: <200307282056.09611.oliver.rauch@rauch-domain.de> References: <3F256865.3030100@mattshouse.com> <200307282056.09611.oliver.rauch@rauch-domain.de> Message-ID: <3F256201.5090906@austin.rr.com> Oliver Rauch wrote: > Disable qualtiy calibration > > Oliver > Olivier, could the backend avoid using this command for the umax 2200, since the scanner does not support it (even in scsi)? I don't have access to that scanner anymore, so I cannot test. Frank. From David.Mosberger@acm.org Tue Jul 29 03:41:59 2003 From: David.Mosberger@acm.org (David Mosberger-Tang) Date: Mon, 28 Jul 2003 19:41:59 -0700 (PDT) Subject: [sane-devel] upcoming machine upgrade Message-ID: <20030729024159.EFA97F89@panda.mostang.com> A quick heads up: I plan on upgrading the SANE server from an Itanium (hp i2000) to an Itanium 2 (hp zx2000) machine. Depending on how things go, the switch-over may happen some time tonight. In theory, this should all be transparent apart from a couple of reboots. The reboots will cause brief downtimes for the SANE mailing list and web server, but hopefully nothing that lasts longer than a few minutes. Thanks for your understanding & patience, --david From soumarmt@nerim.net Tue Jul 29 06:36:33 2003 From: soumarmt@nerim.net (Thomas Soumarmon) Date: Tue, 29 Jul 2003 07:36:33 +0200 Subject: backend status: (was Re:[sane-devel] Current TODO list) In-Reply-To: <20030728183328.GI11798@meier-geinitz.de> References: <20030725083235.GI1262@meier-geinitz.de> <200307281916.14624.soumarmt@nerim.net> <20030728183328.GI11798@meier-geinitz.de> Message-ID: <200307290736.33865.soumarmt@nerim.net> Thank you Henning. The hp5400.desc should be compliant now. Have a nice day. Le Lundi 28 Juillet 2003 20:33, Henning Meier-Geinitz a =E9crit : > Hi, > > On Mon, Jul 28, 2003 at 07:16:14PM +0200, Thomas Soumarmon wrote: > > in the hp5400.desc file, when I set the backend status to beta, the make > > gives me the following warning : > > [sane-desc] Warning: DEPRECATED backend status `beta': setting status of > > backend `hp5400' to `good' > > > > So i set it to good and then it says to me : > > [sane-desc] ERROR: unknown status of backend `hp5400': `:good' > > That's simple: there is no backend status anymore, only per-scanner > statuses (stati? statii? whatever). So just remove that one. > > If you really want to mention that your backend is beta, you can use > tha backend's comment header. > > Bye, > Henning > _______________________________________________ > Sane-devel mailing list > Sane-devel@www.mostang.com > http://www.mostang.com/mailman/listinfo/sane-devel From gerard@gkall.hobby.nl Tue Jul 29 13:44:59 2003 From: gerard@gkall.hobby.nl (gerard klaver) Date: 29 Jul 2003 12:44:59 +0000 Subject: [sane-devel] Which viewer to use with raw .png file and a .icc profile file In-Reply-To: <20030728142945.GA11798@meier-geinitz.de> References: <1059399850.1916.93.camel@gkall-lex> <20030728142945.GA11798@meier-geinitz.de> Message-ID: <1059482699.879.15.camel@gkall-lex> On Mon, 2003-07-28 at 14:29, Henning Meier-Geinitz wrote: > Hi, > > On Mon, Jul 28, 2003 at 01:44:10PM +0000, gerard klaver wrote: > > I have scanned a raw .png file and made a .icc profile with a reference > > target (wine, lprof program). > > > > The question is what can i do to or which viewer to use to correct the > > png file with the .icc file? > > > > No luck yet with gimp1.3 or imagemagic (display) > > I haven't tested that but "man covert" says: > > -profile > add ICM, IPTC, or generic profile to image > > Is .icc == ICM? But maybe it only adds the profile to e.g. a TIFF image. > > Bye, > Henning The following line did the trick (program imagemagick): convert -profile scanner.icc -profile monitor.icc display The view is much better, thanks :-) -- ---------- m.vr.gr. Gerard Klaver From khk@khk.net Tue Jul 29 12:35:24 2003 From: khk@khk.net (khk@khk.net) Date: Tue, 29 Jul 2003 07:35:24 -0400 (EDT) Subject: [Fwd: Re: [sane-devel] Which viewer to use with raw .png file and a .iccprofile file] Message-ID: <12636.198.176.225.6.1059478524.squirrel@home.khk.net> Hit the wrong button... This message should have been CC'ed to sane-devel: ---------------------------- Original Message ---------------------------- Subject: Re: [sane-devel] Which viewer to use with raw .png file and a .iccprofile file From: khk@khk.net Date: Tue, July 29, 2003 7:34 am To: gerard@gkall.hobby.nl -------------------------------------------------------------------------- You always need two profiles when you want to convert from one color space to a different color space: A transformation based on an ICC profile (BTW: ICM is the extension that Microsoft uses for ICC profiles) always transforms from a real color space to the so called connection space (either CIELAB or XYZ) or vice versa. So with just the scanner profile, you can only get from RGB to e.g. Lab, but not to the RGB values your monitor needs. So you need a second profile to get from Lab to your monitor color space - this is what you've done by providing two profiles on the convert command line. Once you used convert with the two profile, you should be able to use any image viewer, and not just display. > On Mon, 2003-07-28 at 14:29, Henning Meier-Geinitz wrote: >> Hi, >> >> On Mon, Jul 28, 2003 at 01:44:10PM +0000, gerard klaver wrote: >> > I have scanned a raw .png file and made a .icc profile with a >> reference >> > target (wine, lprof program). >> > >> > The question is what can i do to or which viewer to use to correct the png file with the .icc file? >> > >> > No luck yet with gimp1.3 or imagemagic (display) >> >> I haven't tested that but "man covert" says: >> >> -profile >> add ICM, IPTC, or generic profile to image >> >> Is .icc == ICM? But maybe it only adds the profile to e.g. a TIFF image. >> >> Bye, >> Henning > > The following line did the trick (program imagemagick): > > convert -profile scanner.icc -profile monitor.icc > > display > > The view is much better, thanks :-) > > > -- > ---------- > m.vr.gr. > Gerard Klaver > > _______________________________________________ > Sane-devel mailing list > Sane-devel@www.mostang.com > http://www.mostang.com/mailman/listinfo/sane-devel > From matthew@mattshouse.com Tue Jul 29 15:44:15 2003 From: matthew@mattshouse.com (Matthew) Date: Tue, 29 Jul 2003 09:44:15 -0500 Subject: [sane-devel] Scanner panel buttons In-Reply-To: <3F256201.5090906@austin.rr.com> References: <3F256865.3030100@mattshouse.com> <200307282056.09611.oliver.rauch@rauch-domain.de> <3F256201.5090906@austin.rr.com> Message-ID: <3F26883F.70402@mattshouse.com> Is there some documentation regarding the use of the "Scan" and other buttons on the various scanners? I assume that a standard is not in place so it would be a scanner-specific hack but I'm interested in getting the buttons to work. I took a long look at the scanner kernel module and I see that there is basically no interface built. There's a front panel buffer allocated but it's never used except as a placeholder. So maybe a little info about what the scanner does when a button is pressed before I start sniffing the USB communication? Matthew From gerard@gkall.hobby.nl Tue Jul 29 18:36:02 2003 From: gerard@gkall.hobby.nl (gerard klaver) Date: 29 Jul 2003 17:36:02 +0000 Subject: [sane-devel] Scanner panel buttons In-Reply-To: <3F26883F.70402@mattshouse.com> References: <3F256865.3030100@mattshouse.com> <200307282056.09611.oliver.rauch@rauch-domain.de> <3F256201.5090906@austin.rr.com> <3F26883F.70402@mattshouse.com> Message-ID: <1059500161.877.31.camel@gkall-lex> On Tue, 2003-07-29 at 14:44, Matthew wrote: > Is there some documentation regarding the use of the "Scan" and other > buttons on the various scanners? I assume that a standard is not in > place so it would be a scanner-specific hack but I'm interested in > getting the buttons to work. I took a long look at the scanner kernel > module and I see that there is basically no interface built. There's a > front panel buffer allocated but it's never used except as a > placeholder. So maybe a little info about what the scanner does when a > button is pressed before I start sniffing the USB communication? > > Matthew > No expert, but user of the epson backend, if you check the epson backend source a button function is present. When using xsane -> view -> advanced options there is a "wait for button" when enabled you have to press a button on the scanner. For me (epson 1660 photo has four buttons) i push on the "start" button or the "scan to email" the scanner starts. -- ---------- m.vr.gr. Gerard Klaver From henning@meier-geinitz.de Tue Jul 29 16:28:52 2003 From: henning@meier-geinitz.de (Henning Meier-Geinitz) Date: Tue, 29 Jul 2003 17:28:52 +0200 Subject: [sane-devel] Scanner panel buttons In-Reply-To: <3F26883F.70402@mattshouse.com> References: <3F256865.3030100@mattshouse.com> <200307282056.09611.oliver.rauch@rauch-domain.de> <3F256201.5090906@austin.rr.com> <3F26883F.70402@mattshouse.com> Message-ID: <20030729152852.GH488@meier-geinitz.de> Hi, On Tue, Jul 29, 2003 at 09:44:15AM -0500, Matthew wrote: > Is there some documentation regarding the use of the "Scan" and other > buttons on the various scanners? There was some discussion on how to implement that in version 2 of the SANE standard. But I think that's not the information you need. > I assume that a standard is not in > place so it would be a scanner-specific hack but I'm interested in > getting the buttons to work. I took a long look at the scanner kernel > module and I see that there is basically no interface built. There's a > front panel buffer allocated but it's never used except as a > placeholder. So maybe a little info about what the scanner does when a > button is pressed before I start sniffing the USB communication? Well, there are two issues: How to get that information from the scanner and what to do with that information. The scanner kernel module is not involved here. I think the original maintainer thought about the possible usage of interrupt URBs and therefore button events came to mind. The way how to get the information about a button event is completely scanner-dependent. So you need to do that in the backend or a special stand-alone program. Which scanner are you talking about? For some scanners you must just read one register of the scanner's chip. Others really seem to use interrupt URBs. In the latter case, that may or may not work with libusb. When you do some sniffing, check what happens when you don't scan but the "wait for button" program is running. If there is steady traffic (bulk or control messages), that's probably the reading of the button-related registers. If the messages only flow when you press a button, I guess interrupt URBs are used. Bye, Henning From anoah@pfeiffer.edu Tue Jul 29 17:03:15 2003 From: anoah@pfeiffer.edu (m. allan noah) Date: Tue, 29 Jul 2003 12:03:15 -0400 (EDT) Subject: [sane-devel] Scanner panel buttons In-Reply-To: <3F26883F.70402@mattshouse.com> Message-ID: depends heavily on the scanner model and backend software design. some scanners use a usb interrupt pipe to have the host check for button presses periodically, sending a proprietary data packet at each request, which would need to be reverse engineered. other scanners use scsi commands over bulk usb pipe, so you have to determine the appropriate scsi command and send this to the scanner periodically, and interpret the return data in the backend. this would require adding a new sane_* function call to the sane spec, so that the frontend could ask the backend periodically, or the backend could set an option descriptor to run the button check, and the frontend could flip that option back and forth every couple seconds. the backend could set its results from looking at the buttons in some other option. this is how i am patching the fujitsu backend to work. allan On Tue, 29 Jul 2003, Matthew wrote: > > Is there some documentation regarding the use of the "Scan" and other > buttons on the various scanners? I assume that a standard is not in > place so it would be a scanner-specific hack but I'm interested in > getting the buttons to work. I took a long look at the scanner kernel > module and I see that there is basically no interface built. There's a > front panel buffer allocated but it's never used except as a > placeholder. So maybe a little info about what the scanner does when a > button is pressed before I start sniffing the USB communication? > > Matthew > > > _______________________________________________ > Sane-devel mailing list > Sane-devel@www.mostang.com > http://www.mostang.com/mailman/listinfo/sane-devel > -- "so don't tell us it can't be done, putting down what you don't know. money isn't our god, integrity will free our souls" - Max Cavalera From oliver.rauch@rauch-domain.de Tue Jul 29 18:02:08 2003 From: oliver.rauch@rauch-domain.de (Oliver Rauch) Date: Tue, 29 Jul 2003 19:02:08 +0200 Subject: [sane-devel] UMAX Astra 2200 USB weirdness (Repost) In-Reply-To: <3F256201.5090906@austin.rr.com> References: <3F256865.3030100@mattshouse.com> <200307282056.09611.oliver.rauch@rauch-domain.de> <3F256201.5090906@austin.rr.com> Message-ID: <200307291902.08699.oliver.rauch@rauch-domain.de> Hello Frank, the scanner does support it when connected via scsi. At least when the setup is correct. I am not sure if it really does not work on USB. May be it is a problem of buffer sizes. I don`t want to disable it by default for the scanner when there is an other way. Oliver On Monday 28 July 2003 19:48, Frank Zago wrote: > Oliver Rauch wrote: > > Disable qualtiy calibration > > > > Oliver > > Olivier, could the backend avoid using this command for the umax 2200, > since the scanner does not support it (even in scsi)? I don't have acce= ss > to that scanner anymore, so I cannot test. > > Frank. --=20 http://www.xsane.org http://www.mostang.com/sane http://www.rauch-domain.de mailto:Oliver.Rauch@Rauch-Domain.DE From klaus.dahlke@gmx.de Tue Jul 29 21:32:06 2003 From: klaus.dahlke@gmx.de (Klaus Dahlke) Date: Tue, 29 Jul 2003 22:32:06 +0200 Subject: [sane-devel] UMAX Astra 2200 USB weirdness (Repost) In-Reply-To: <20030728185115.GJ11798@meier-geinitz.de> References: <3F256865.3030100@mattshouse.com> <20030728185115.GJ11798@meier-geinitz.de> Message-ID: <20030729223206.0a020156.klaus.dahlke@gmx.de> On Mon, 28 Jul 2003 20:51:15 +0200 Henning Meier-Geinitz wrote: > Hi, > > I've no idea about your specific problem but maybe some generic > comments help: > > On Mon, Jul 28, 2003 at 01:16:05PM -0500, Matthew wrote: > > From xsane I can "Preview" an image, but when I try to "Scan" an image > > the interface locks up and I start to see the following in the syslog: > > > > Jul 28 10:39:45 scan4 kernel: usb_control/bulk_msg: timeout > > Jul 28 10:40:25 scan4 last message repeated 2 times > > Jul 28 10:41:25 scan4 last message repeated 3 times > > Do you have a VIA mainboard chipset? > > Is local APIC enabled? Is ACPI enabled? If yes, try disabling both in > your kernel. > > > I've tried several combinations of kernel/sane. > > Try using libusb instead of the kernel scanner driver (see man > sane-usb). If the problem still occurs I guess it's either a SANE or a > hardware problem. > > Bye, > Henning > _______________________________________________ Hi all, I have reported problems with Umax Astra 2200SU connected by USB before: when doing resizing after preview, scanning stops after about 95% of the scan. Today, I compiled sane-backends-1.0.12 with libusb-0.1.7. After starting the scanner, I did a 'rmmod scanner' to delete the kernel driver, started xsane and did about 12 scans with resizing/rearranging the scanning area: no stop, no freeze, works perfect. So, in addition to switch-off 'quality calibration' for usb connection, it is also important to use libusb instead of the kernel driver (kernel 2-4-19). Cheers, Klaus From psfales@lucent.com Wed Jul 30 02:36:37 2003 From: psfales@lucent.com (Peter Fales) Date: Tue, 29 Jul 2003 20:36:37 -0500 Subject: [sane-devel] Scanner panel buttons In-Reply-To: <3F26883F.70402@mattshouse.com> References: <3F256865.3030100@mattshouse.com> <200307282056.09611.oliver.rauch@rauch-domain.de> <3F256201.5090906@austin.rr.com> <3F26883F.70402@mattshouse.com> Message-ID: <20030730013637.GA21544@lucent.com> On Tue, Jul 29, 2003 at 09:44:15AM -0500, Matthew wrote: > Is there some documentation regarding the use of the "Scan" and other > buttons on the various scanners? I assume that a standard is not in > place so it would be a scanner-specific hack but I'm interested in > getting the buttons to work. Take a look at http://www.remote.org/frederik/projects/software/sane/ It's a program that "watches" for the scanner buttons to be pressed and launches a user defined program (e.g. scanimage or scanadf) when that happens. This particular program is specific to Fujitsu scanners and uses the SCSI "sense" command to poll the scanner and detect when the button is pressed. I wanted to do something similar with my Microtek PageWiz which can detect when a sheet of paper is in the feeder. I wanted it watch for that and automatically start scanning, so I used sensed as a starting point for my own utility which periodically polls the scanner using the SCSI "inquiry" command. -- Peter Fales From tomf@sjpc.org Wed Jul 30 07:04:38 2003 From: tomf@sjpc.org (Thomas Frayne) Date: 29 Jul 2003 23:04:38 -0700 Subject: [sane-devel] HP 7450C ... Need new patch In-Reply-To: <20030727.220513.229750962.rene.rebe@gmx.net> References: <1058064729.3167.147.camel@localhost.localdomain> <20030714.153143.846936143.rene.rebe@gmx.net> <1059194970.3238.2.camel@localhost.localdomain> <20030727.220513.229750962.rene.rebe@gmx.net> Message-ID: <1059545077.4055.77.camel@localhost.localdomain> On Sun, 2003-07-27 at 13:05, Rene Rebe wrote: > On: 25 Jul 2003 21:49:30 -0700, > Thomas Frayne wrote: > > > Any progress on the new backend? > > Yes - today I foud the first free minutes ... I merged the ADF > handling posted here two weeks ago, too. > > Coud you try the current version at: > > http://schillernet.dyndns.org/svn/sane-avision/ > > To get a tiny how-to use this Subversion repository see: > > http://schillernet.dyndns.org/svn/ > > but you could also just download the two files you see in the backend > dir with any browser ... > > Btw: the ROCK Linux homage sites are in a flux - and my new person dir > at: > > http://www.rocklinux.net/people/rene > ^^^- was org before ... but there a no new files > yet > I downloaded the two files, did configure and make, ran xsane with ADF setting, and clicked SCAN. The scanner hung initializing as it did before I changed configuration files to get it to produce a black page. After several minutes xsane produced an error message, and Jul 29 22:31:27 localhost modprobe: modprobe: Can't locate module char-major-81 Jul 29 22:31:27 localhost last message repeated 3 times Jul 29 22:35:41 localhost kernel: scsi: device set offline - command error recover failed: host 1 channel 0 id 0 lun 0 appeared in /var/log/messages. I did a Redhat kernel upgrade since I last had the scanner (sort of) working, so I might have destroyed some configuration data. I am appending more of the log in case it might help. If you can't spot what might be wrong from this much info, please let me know what other data is needed. Thanks. Tom Frayne --------------------------------------------------------------- Jul 29 16:53:52 localhost kernel: usb.c: USB device 2 (vend/prod 0x3f0/0x801) is not claimed by any active driver. Jul 29 16:53:52 localhost kernel: hpusbscsi.c: [hpusbscsi_init:250] driver loaded, DebugLvel=0 Jul 29 16:53:52 localhost kernel: usb.c: registered new driver hpusbscsi Jul 29 16:53:52 localhost kernel: scsi1 : hpusbscsi Jul 29 16:53:52 localhost kernel: hub.c: new USB device 00:0b.2-1.2, assigned address 3 Jul 29 16:53:52 localhost kernel: usb.c: USB device 3 (vend/prod 0x2821/0x5001) is not claimed by any active driver. Jul 29 16:53:52 localhost kernel: EXT2-fs warning: maximal mount count reached, running e2fsck is recommended Jul 29 16:53:52 localhost kernel: hub.c: new USB device 00:0b.2-1.4, assigned address 4 Jul 29 16:53:52 localhost kernel: usb.c: USB device 4 (vend/prod 0x3f0/0x3404) is not claimed by any active driver. Jul 29 16:53:52 localhost kernel: hdc: attached ide-scsi driver. Jul 29 16:53:52 localhost kernel: scsi2 : SCSI host adapter emulation for IDE ATAPI devices Jul 29 16:53:52 localhost kernel: Vendor: HP Model: CD-Writer+ 8100 Rev: 1.0g Jul 29 16:53:52 localhost kernel: Type: CD-ROM ANSI SCSI revision: 02 Jul 29 16:53:52 localhost kernel: resize_dma_pool: unknown device type -1 Jul 29 16:53:52 localhost kernel: Vendor: hp Model: scanjet 7400c Rev: 0.8M Jul 29 16:53:52 localhost kernel: Type: Scanner ANSI SCSI revision: 02 Jul 29 16:53:52 localhost kernel: Initializing USB Mass Storage driver... Jul 29 16:53:52 localhost kernel: usb.c: registered new driver usb-storage Jul 29 16:53:52 localhost kernel: scsi3 : SCSI emulation for USB Mass Storage devices Jul 29 16:53:52 localhost kernel: Vendor: ASUS Model: CRW-5224A Rev: 1.00 Jul 29 16:53:52 localhost kernel: Type: CD-ROM ANSI SCSI revision: 02 Jul 29 16:53:52 localhost kernel: USB Mass Storage support registered. Jul 29 16:53:53 localhost kernel: Attached scsi CD-ROM sr0 at scsi0, channel 0, id 4, lun 0 Jul 29 16:53:53 localhost kernel: Attached scsi CD-ROM sr1 at scsi2, channel 0, id 0, lun 0 Jul 29 16:53:53 localhost kernel: Attached scsi CD-ROM sr2 at scsi3, channel 0, id 0, lun 0 Jul 29 16:53:53 localhost kernel: (scsi0:A:4): 10.000MB/s transfers (10.000MHz, offset 32) Jul 29 16:53:53 localhost kernel: sr0: scsi3-mmc drive: 0x/0x dvd-ram cd/rw xa/form2 cdda tray Jul 29 16:53:53 localhost kernel: Uniform CD-ROM driver Revision: 3.12 Jul 29 16:53:53 localhost kernel: sr1: scsi3-mmc drive: 24x/24x writer cd/rw xa/form2 cdda tray Jul 29 16:53:53 localhost kernel: usb.c: registered new driver usblp Jul 29 16:53:53 localhost kernel: printer.c: usblp0: USB Bidirectional printer dev 4 if 0 alt 0 proto 2 vid 0x03F0 pid 0x3404 Jul 29 16:53:53 localhost kernel: printer.c: v0.11: USB Printer Device Class driver Jul 29 16:53:53 localhost kernel: sr2: scsi-1 drive Jul 29 16:53:53 localhost kernel: Attached scsi generic sg5 at scsi1, channel 0, id 0, lun 0, type 6 Jul 29 16:53:53 localhost kernel: parport0: PC-style at 0x378 [PCSPP,TRISTATE] Jul 29 16:53:53 localhost kernel: ip_tables: (C) 2000-2002 Netfilter core team Jul 29 16:53:53 localhost kernel: ip_conntrack version 2.1 (6143 buckets, 49144 max) - 292 bytes per conntrack Jul 29 16:53:53 localhost kernel: Linux Tulip driver version 0.9.15-pre12 (Aug 9, 2002) Jul 29 16:53:53 localhost kernel: PCI: Found IRQ 11 for device 00:0c.0 Jul 29 16:53:53 localhost kernel: eth0: ADMtek Comet rev 17 at 0xf09a3000, 00:C0:49:B4:25:D7, IRQ 11. Jul 29 16:53:53 localhost sshd: succeeded Jul 29 16:53:55 localhost xinetd[2719]: xinetd Version 2.3.11 started with libwrap loadavg options compiled in. Jul 29 16:53:55 localhost xinetd[2719]: Started working: 1 available service Jul 29 16:53:57 localhost xinetd: xinetd startup succeeded Jul 29 16:53:59 localhost ntpd: succeeded Jul 29 16:53:59 localhost ntpd: succeeded Jul 29 16:54:05 localhost ntpdate[2734]: step time server 66.187.233.4 offset -0.495394 sec Jul 29 16:54:05 localhost ntpd: succeeded Jul 29 16:54:05 localhost ntpd: ntpd startup succeeded Jul 29 16:54:05 localhost ntpd[2738]: ntpd 4.1.1c-rc1@1.836 Thu Feb 13 12:17:19 EST 2003 (1) Jul 29 16:54:05 localhost exportfs[2747]: No 'sync' or 'async' option specified for export "FrayneLaptop:/usr/local". Assuming default behaviour ('sync'). NOTE: this default has changed from previous versions Jul 29 16:54:05 localhost exportfs: exportfs: No 'sync' or 'async' option specified for export "FrayneLaptop:/usr/local". Jul 29 16:54:05 localhost exportfs: Assuming default behaviour ('sync'). Jul 29 16:54:05 localhost exportfs: NOTE: this default has changed from previous versions Jul 29 16:54:05 localhost exportfs[2747]: No 'sync' or 'async' option specified for export "FrayneLaptop:/usr/local/tom/mydata". Assuming default behaviour ('sync'). NOTE: this default has changed from previous versions Jul 29 16:54:05 localhost exportfs: exportfs: No 'sync' or 'async' option specified for export "FrayneLaptop:/usr/local/tom/mydata". Jul 29 16:54:05 localhost exportfs: Assuming default behaviour ('sync'). Jul 29 16:54:05 localhost exportfs: NOTE: this default has changed from previous versions Jul 29 16:54:05 localhost ntpd[2738]: precision = 15 usec Jul 29 16:54:05 localhost ntpd[2738]: kernel time discipline status 0040 Jul 29 16:54:05 localhost ntpd[2738]: frequency initialized -50.198 from /etc/ntp/drift Jul 29 16:54:05 localhost kernel: Installing knfsd (copyright (C) 1996 okir@monad.swb.de). Jul 29 16:54:05 localhost nfs: Starting NFS services: succeeded Jul 29 16:54:05 localhost nfs: rpc.rquotad startup succeeded Jul 29 16:54:05 localhost nfs: rpc.nfsd startup succeeded Jul 29 16:54:05 localhost nfs: rpc.mountd startup succeeded Jul 29 16:54:06 localhost Win4Lin: Starting Win4Lin: Jul 29 16:54:10 localhost kernel: win4lin: mki_version 5, num_cpus 1, pae 0 Jul 29 16:54:10 localhost kernel: win4Lin: preempt_enable 0x00000000 Jul 29 16:54:10 localhost Win4Lin: succeeded Jul 29 16:54:10 localhost Win4Lin: ^[[60G Jul 29 16:54:11 localhost Win4Lin: Jul 29 16:54:11 localhost rc: Starting Win4Lin: succeeded Jul 29 16:54:11 localhost sendmail: sendmail startup succeeded Jul 29 16:54:11 localhost sendmail: sm-client startup succeeded Jul 29 16:54:12 localhost gpm: gpm startup succeeded Jul 29 16:54:12 localhost rc: Starting edge: succeeded Jul 29 16:54:13 localhost canna: succeeded Jul 29 16:54:13 localhost crond: crond startup succeeded Jul 29 16:54:15 localhost kernel: parport0: PC-style at 0x378 [PCSPP,TRISTATE] Jul 29 16:54:15 localhost kernel: lp0: using parport0 (polling). Jul 29 16:54:15 localhost kernel: lp0: console ready Jul 29 16:54:15 localhost modprobe: modprobe: Can't locate module char-major-188 Jul 29 16:54:15 localhost last message repeated 15 times Jul 29 16:54:16 localhost cups: cupsd startup succeeded Jul 29 16:54:16 localhost xfs: xfs startup succeeded Jul 29 16:54:16 localhost anacron: anacron startup succeeded Jul 29 16:54:16 localhost atd: atd startup succeeded Jul 29 16:54:17 localhost rhnsd: rhnsd startup succeeded Jul 29 16:54:17 localhost rhnsd[3612]: Red Hat Network Services Daemon starting up. Jul 29 16:54:17 localhost xfs: ignoring font path element /usr/X11R6/lib/X11/fonts/cyrillic (unreadable) Jul 29 16:57:26 localhost ntpd[2738]: kernel time discipline status change 41 Jul 29 16:59:34 localhost ntpd[2738]: kernel time discipline status change 1 Jul 29 17:35:53 localhost gdm(pam_unix)[3667]: session opened for user tom by (uid=0) Jul 29 17:35:54 localhost gdm[3667]: gdm_auth_user_add: /home/tom is writable by group. Jul 29 17:35:55 localhost gconfd (tom-3992): starting (version 2.2.0), pid 3992 user 'tom' Jul 29 17:35:55 localhost gconfd (tom-3992): Resolved address "xml:readonly:/etc/gconf/gconf.xml.mandatory" to a read-only config source at position 0 Jul 29 17:35:55 localhost gconfd (tom-3992): Resolved address "xml:readwrite:/home/tom/.gconf" to a writable config source at position 1 Jul 29 17:35:55 localhost gconfd (tom-3992): Resolved address "xml:readonly:/etc/gconf/gconf.xml.defaults" to a read-only config source at position 2 Jul 29 17:36:15 localhost kernel: Creative EMU10K1 PCI Audio Driver, version 0.20, 17:28:21 Jul 15 2003 Jul 29 17:36:15 localhost kernel: PCI: Found IRQ 10 for device 00:0d.0 Jul 29 17:36:15 localhost kernel: PCI: Sharing IRQ 10 with 00:07.2 Jul 29 17:36:15 localhost kernel: PCI: Sharing IRQ 10 with 00:0b.2 Jul 29 17:36:15 localhost kernel: emu10k1: EMU10K1 rev 8 model 0x8027 found, IO at 0x9c00-0x9c1f, IRQ 10 Jul 29 17:36:15 localhost kernel: ac97_codec: AC97 codec, id: TRA35 (TriTech TR A5) Jul 29 17:36:15 localhost modprobe: modprobe: Can't locate module sound-service-0-3 Jul 29 17:37:31 localhost su(pam_unix)[4133]: session opened for user root by tom(uid=500) Jul 29 17:37:38 localhost gconfd (root-4179): starting (version 2.2.0), pid 4179 user 'root' Jul 29 17:37:38 localhost gconfd (root-4179): Resolved address "xml:readonly:/etc/gconf/gconf.xml.mandatory" to a read-only config source at position 0 Jul 29 17:37:38 localhost gconfd (root-4179): Resolved address "xml:readwrite:/root/.gconf" to a writable config source at position 1 Jul 29 17:37:38 localhost gconfd (root-4179): Resolved address "xml:readonly:/etc/gconf/gconf.xml.defaults" to a read-only config source at position 2 Jul 29 22:31:27 localhost modprobe: modprobe: Can't locate module char-major-81 Jul 29 22:31:27 localhost last message repeated 3 times Jul 29 22:35:41 localhost kernel: scsi: device set offline - command error recover failed: host 1 channel 0 id 0 lun 0 From gerard@gkall.hobby.nl Wed Jul 30 15:24:05 2003 From: gerard@gkall.hobby.nl (gerard klaver) Date: 30 Jul 2003 14:24:05 +0000 Subject: [sane-devel] xscanimage, no file extention check? Message-ID: <1059575044.877.29.camel@gkall-lex> To make it more "foolproof" it would be nice/good to have in the menu of xscanimage a check if the file extension which can be saved exists or a choice which file extension can be used (like xsane) At this moment you can save each file extension you want or make a type error. -- ---------- m.vr.gr. Gerard Klaver From jollyprince@juno.com Thu Jul 31 05:41:47 2003 From: jollyprince@juno.com (Roger O Wales) Date: Wed, 30 Jul 2003 23:41:47 -0500 Subject: [sane-devel] Page size on Xsane Message-ID: <20030730.234147.1756.2.jollyprince@juno.com> I have retired my Visioneer 5800 to the scrap heap. Question: Now that I have an Epson 1260 with a recognizable backend, how can I set the scanner size to 8" x 10"? Right now, I have a 4" x 2" and I saw no size configuration options in the front ends that I saw. HELP! ________________________________________________________________ The best thing to hit the internet in years - Juno SpeedBand! Surf the web up to FIVE TIMES FASTER! Only $14.95/ month - visit www.juno.com to sign up today! From peter@dimtech.com.au Thu Jul 31 07:36:21 2003 From: peter@dimtech.com.au (Peter Hartshorn) Date: Thu, 31 Jul 2003 16:36:21 +1000 Subject: [sane-devel] Fujitsu fi-4220C problems Message-ID: <20030731063621.GA26402@helios.microsux.com> Hello all, I have revieved a Fujitsu fi-4220C scanner and I am having problems scanning. I can sucessfully scan several pages with scanimage but sometimes (quite often) I receive the following error usb_control/bulk_msg: timeout after about a minute the scan will continue as normal. I have tried with standard RedHat 8.1 and 9 using sane-backends 1.0.12 I have also tried using libusb which gives me the error: usb_control/bulk_msg: timeout usbdevfs: USBDEVFS_BULK failed dev 2 ep 0x81 len 13 ret -110 ^^ || (some times 13 is 96) Any help would be greatly appreciated. I have also tried scanning with a gt68xx scanner (Mustek 1200 UB plus) with no errors. So this leads me to think that it is in fact a bug in the fujitsu driver for sane. From Peter Hartshorn peter@dimtech.com.au From olaf@zen.epkowa.co.jp Thu Jul 31 09:02:22 2003 From: olaf@zen.epkowa.co.jp (Olaf Meeuwissen) Date: Thu, 31 Jul 2003 17:02:22 +0900 Subject: [sane-devel] Page size on Xsane In-Reply-To: <20030730.234147.1756.2.jollyprince@juno.com> References: <20030730.234147.1756.2.jollyprince@juno.com> Message-ID: <20030731080222.GA11421@zen.epkowa.co.jp> On Wed, Jul 30, 2003 at 11:41:47PM -0500, Roger O Wales wrote: > I have retired my Visioneer 5800 to the scrap heap. > > Question: Now that I have an Epson 1260 with a recognizable backend, how > can I set the scanner size to 8" x 10"? Right now, I have a 4" x 2" and > I saw no size configuration options in the front ends that I saw. HELP! You could try "Image Scan! for Linux!" available from http://www.epkowa.co.jp/english/linux/_e/lsd_e.html It comes with its own backend and supports the EPSON Perfection 1260 and Perfection 1260 Photo. -- Olaf Meeuwissen EPSON KOWA Corporation, ECS GnuPG key: 6BE37D90/AB6B 0D1F 99E7 1BF5 EB97 976A 16C7 F27D 6BE3 7D90 Penguin's lib! -- I hack, therefore I am -- LPIC-2 From henning@meier-geinitz.de Thu Jul 31 09:36:40 2003 From: henning@meier-geinitz.de (Henning Meier-Geinitz) Date: Thu, 31 Jul 2003 10:36:40 +0200 Subject: [sane-devel] Page size on Xsane In-Reply-To: <20030730.234147.1756.2.jollyprince@juno.com> References: <20030730.234147.1756.2.jollyprince@juno.com> Message-ID: <20030731083640.GA2531@meier-geinitz.de> Hi, On Wed, Jul 30, 2003 at 11:41:47PM -0500, Roger O Wales wrote: > Question: Now that I have an Epson 1260 with a recognizable backend, how > can I set the scanner size to 8" x 10"? Right now, I have a 4" x 2" and > I saw no size configuration options in the front ends that I saw. HELP! You mean that the maximun size of the scan area is only 4" x 2"? I'd be very surprised if that was true, because the 1260 seems to be used very often with the Epson backend. Which version of SANE do you use (scanimage --version)? Do you use the epson backend that came with the SANE distribution or the Epson-Kowa backend? If it's just a problem of not finding the geometry options: With XSane, you can select the size of the image in the preview window. Either by selecting the scan area with the mouse cursor or by selecting one of the predefined sizes. Or you can use the geometry sliders (Top left and so on). With scanimage, the options should look similar to these: Geometry: -l 0..217mm [0] Top-left x position of scan area. -t 0..299mm [0] Top-left y position of scan area. -x 0..217mm [217] Width of scan-area. -y 0..299mm [299] Height of scan-area. If it's not just a problem of not finding the geometry options, can you please show us the output of: scanimage --help and SANE_DEBUG_EPSON=255 scanimage -L Bye, Henning From henning@meier-geinitz.de Thu Jul 31 09:45:31 2003 From: henning@meier-geinitz.de (Henning Meier-Geinitz) Date: Thu, 31 Jul 2003 10:45:31 +0200 Subject: [sane-devel] xscanimage, no file extention check? In-Reply-To: <1059575044.877.29.camel@gkall-lex> References: <1059575044.877.29.camel@gkall-lex> Message-ID: <20030731084531.GB2531@meier-geinitz.de> Hi, On Wed, Jul 30, 2003 at 02:24:05PM +0000, gerard klaver wrote: > To make it more "foolproof" it would be nice/good to have in the menu > of xscanimage a check if the file extension which can be saved exists or > a choice which file extension can be used (like xsane) > > At this moment you can save each file extension you want or make a type > error. Well, if you want a new feature for xscanimage, write a patch :-) Currently nobody actively maintains xscanimage. I'll fix grave bugs when someone notices them and add patches, if they look useful. But otherwise, not much work to improve the features of xscanimage is done by the SANE developers themselves. Concerning your idea: If you make it optional (e.g. a preferences menu option) and test for all the pnm types (e.g. pgm) and better in upper and lower case a patch would be accepted, I guess. Thanks, Henning From jb@jblache.org Thu Jul 31 10:52:47 2003 From: jb@jblache.org (Julien BLACHE) Date: Thu, 31 Jul 2003 11:52:47 +0200 Subject: [sane-devel] xscanimage, no file extention check? In-Reply-To: <20030731084531.GB2531@meier-geinitz.de> (Henning Meier-Geinitz's message of "Thu, 31 Jul 2003 10:45:31 +0200") References: <1059575044.877.29.camel@gkall-lex> <20030731084531.GB2531@meier-geinitz.de> Message-ID: <87adav10r4.fsf@frigate.technologeek.org> Henning Meier-Geinitz wrote: Hi, > Concerning your idea: If you make it optional (e.g. a preferences menu > option) and test for all the pnm types (e.g. pgm) and better in > upper and lower case a patch would be accepted, I guess. That's just a matter of using g_strcasecmp() (from glib). HTH, JB. -- Julien BLACHE From anoah@pfeiffer.edu Thu Jul 31 14:10:48 2003 From: anoah@pfeiffer.edu (m. allan noah) Date: Thu, 31 Jul 2003 09:10:48 -0400 (EDT) Subject: [sane-devel] Fujitsu fi-4220C problems In-Reply-To: <20030731063621.GA26402@helios.microsux.com> Message-ID: peter, i am actively looking at this. it may be a bug in the fujitsu backend, as we dont currently send exactly the same data as a windows machine does. i should have an updated version of the backend in a couple days. would you (or anyone else) mind testing the patch for me? allan On Thu, 31 Jul 2003, Peter Hartshorn wrote: > Hello all, > > I have revieved a Fujitsu fi-4220C scanner and I am having problems scanning. > > I can sucessfully scan several pages with scanimage but sometimes (quite often) > I receive the following error > > usb_control/bulk_msg: timeout > > after about a minute the scan will continue as normal. > > I have tried with standard RedHat 8.1 and 9 using sane-backends 1.0.12 > > I have also tried using libusb which gives me the error: > > usb_control/bulk_msg: timeout > usbdevfs: USBDEVFS_BULK failed dev 2 ep 0x81 len 13 ret -110 > ^^ > || > (some times 13 is 96) > > Any help would be greatly appreciated. > > I have also tried scanning with a gt68xx scanner (Mustek 1200 UB plus) with no > errors. So this leads me to think that it is in fact a bug in the fujitsu > driver for sane. > > >From Peter Hartshorn > peter@dimtech.com.au > _______________________________________________ > Sane-devel mailing list > Sane-devel@www.mostang.com > http://www.mostang.com/mailman/listinfo/sane-devel > -- "so don't tell us it can't be done, putting down what you don't know. money isn't our god, integrity will free our souls" - Max Cavalera From gene.heskett@verizon.net Thu Jul 31 15:13:37 2003 From: gene.heskett@verizon.net (Gene Heskett) Date: Thu, 31 Jul 2003 10:13:37 -0400 Subject: [sane-devel] Page size on Xsane In-Reply-To: <20030731080222.GA11421@zen.epkowa.co.jp> References: <20030730.234147.1756.2.jollyprince@juno.com> <20030731080222.GA11421@zen.epkowa.co.jp> Message-ID: <200307311013.37561.gene.heskett@verizon.net> On Thursday 31 July 2003 04:02, Olaf Meeuwissen wrote: >On Wed, Jul 30, 2003 at 11:41:47PM -0500, Roger O Wales wrote: >> I have retired my Visioneer 5800 to the scrap heap. >> >> Question: Now that I have an Epson 1260 with a recognizable >> backend, how can I set the scanner size to 8" x 10"? Right now, I >> have a 4" x 2" and I saw no size configuration options in the >> front ends that I saw. HELP! > >You could try "Image Scan! for Linux!" available from > > http://www.epkowa.co.jp/english/linux/_e/lsd_e.html > >It comes with its own backend and supports the EPSON Perfection 1260 > and Perfection 1260 Photo. And an error 404 when clicking on the link :) -- Cheers, Gene AMD K6-III@500mhz 320M Athlon1600XP@1400mhz 512M 99.27% setiathome rank, not too shabby for a WV hillbilly Yahoo.com attornies please note, additions to this message by Gene Heskett are: Copyright 2003 by Maurice Eugene Heskett, all rights reserved. From peter@dimtech.com.au Thu Jul 31 15:58:30 2003 From: peter@dimtech.com.au (Peter Hartshorn) Date: Fri, 1 Aug 2003 00:58:30 +1000 Subject: [sane-devel] Fujitsu fi-4220C problems In-Reply-To: References: <20030731063621.GA26402@helios.microsux.com> Message-ID: <20030731145829.GA26813@helios.microsux.com> Yeah, sure I'll test it. As soon as you are ready for testing, send a tarball or a patch against 1.0.12 (or your preferred version) and I'll give as much feedback as possible. On Thu, Jul 31, 2003 at 09:10:48AM -0400, m. allan noah wrote: > peter, i am actively looking at this. it may be a bug in the fujitsu > backend, as we dont currently send exactly the same data as a windows > machine does. i should have an updated version of the backend in a > couple days. would you (or anyone else) mind testing the patch for me? > > allan > > On Thu, 31 Jul 2003, Peter Hartshorn wrote: > > > Hello all, > > > > I have revieved a Fujitsu fi-4220C scanner and I am having problems scanning. > > > > I can sucessfully scan several pages with scanimage but sometimes (quite often) > > I receive the following error > > > > usb_control/bulk_msg: timeout > > > > after about a minute the scan will continue as normal. > > > > I have tried with standard RedHat 8.1 and 9 using sane-backends 1.0.12 > > > > I have also tried using libusb which gives me the error: > > > > usb_control/bulk_msg: timeout > > usbdevfs: USBDEVFS_BULK failed dev 2 ep 0x81 len 13 ret -110 > > ^^ > > || > > (some times 13 is 96) > > > > Any help would be greatly appreciated. > > > > I have also tried scanning with a gt68xx scanner (Mustek 1200 UB plus) with no > > errors. So this leads me to think that it is in fact a bug in the fujitsu > > driver for sane. > > > > >From Peter Hartshorn > > peter@dimtech.com.au > > _______________________________________________ > > Sane-devel mailing list > > Sane-devel@www.mostang.com > > http://www.mostang.com/mailman/listinfo/sane-devel > > > > -- > "so don't tell us it can't be done, putting down what you don't know. > money isn't our god, integrity will free our souls" - Max Cavalera > From henning@meier-geinitz.de Thu Jul 31 19:08:16 2003 From: henning@meier-geinitz.de (Henning Meier-Geinitz) Date: Thu, 31 Jul 2003 20:08:16 +0200 Subject: [sane-devel] Page size on Xsane In-Reply-To: <20030731.125450.1756.0.jollyprince@juno.com> References: <20030731.125450.1756.0.jollyprince@juno.com> Message-ID: <20030731180816.GH2531@meier-geinitz.de> Hi, Please don't send answers to me personally, I can't help with ImageScan or Epson Kowa problems. Send your questions to the list. I'm cc'ing sane-devel now. On Thu, Jul 31, 2003 at 12:54:50PM -0500, Roger O Wales wrote: > I decided to check out the Epson-Kowa driver But that was after the problem you had with the maximum size of the scan area? So that problem was with the Epson backend that came with SANE? Could you find out what the source of that problem was? > and downloaded it and > installed it. Everything to be going fine until I reached the step 3 > "Overview on Scanning" of the User Guide for Image Scan! The result of > my starting iscan in terminal mode was "Segmentation Fault". What do I > do with that? HELP! Maybe someone else can help with that one. Bye, Henning From aneeshmraj at hotmail.com Tue Jul 1 06:17:27 2003 From: aneeshmraj at hotmail.com (aneesh m raj) Date: Tue, 1 Jul 2003 10:47:27 +0530 Subject: [sane-devel] program to convert SANE format to JPEG Message-ID: Hello all, Is there a program to convert SANE image format to JPEG. Thanks Aneesh -------------- next part -------------- An HTML attachment was scrubbed... URL: From kouno.hironori at pfu.fujitsu.com Tue Jul 1 06:43:55 2003 From: kouno.hironori at pfu.fujitsu.com (hironori kohno) Date: Tue, 1 Jul 2003 14:43:55 +0900 Subject: [sane-devel] About the trouble about the operativity of kooka Message-ID: <200307011443.GEC64471.PJ.OSPLIPVPOSJ@pfu.fujitsu.com> Hi, i am using Kooka in the kde environment. However, although "adf" and "fb" are displayed on the setting screen of source, it is surely reset by setup of "adf". Although I want to also confirm a setup of "fb", what should it carry out? The environment of operation is as follows: backend : sane-fujitsu (cvs+patch version), Kooka : Ver0.35, KDE : Ver3.0.0-10, RedHat Linux : Ver7.3 . Bye, Kouno. -- kouno.hironori at pfu.fujitsu.com -- kouno.hironori at pfu.fujitsu.com From ukd at xenon.pc.Uni-Koeln.DE Tue Jul 1 07:17:21 2003 From: ukd at xenon.pc.Uni-Koeln.DE (Ulrich Deiters) Date: Tue, 1 Jul 2003 08:17:21 +0200 (METDST) Subject: [sane-devel] program to convert SANE format to JPEG Message-ID: <200307010617.IAA03045@xenon.pc.Uni-Koeln.DE> xsane can produce JPEG directly. scanimage produces PNM formats (PPM for colour pictures). You can convert PPM to JPEG with - cjpeg (part of the PBMPLUS package) - xv - ImageMagick - ... and of course some picture manipulation programs like the GIMP or Pixel!FX Regards, Ulrich Deiters From tobi at casino.uni-stuttgart.de Tue Jul 1 09:16:52 2003 From: tobi at casino.uni-stuttgart.de (Tobias Ernst) Date: Tue, 1 Jul 2003 10:16:52 +0200 Subject: [sane-devel] canon lide 20 + mac os x + usb Message-ID: <5EED34F0-AB9C-11D7-8BF1-0003931DA274@casino.uni-stuttgart.de> Hi! I have a Canon Lide 20 scanner and want to make it work on Mac OS X 10.1.5, because of some limitations in the Canon-supplied OSX drivers. I have read (on www.mostang.com) that the color quality with Sane and that scanner is "poor", but that's OK, I only need Sane for commandline-driven batch scans in b&w. I have compiled and installed libusb from CVS (28 June 2003), and after no success with the release version of sane I also installed sane from CVS (30 June 2003). sane-find-scanner does find the scanner: found USB scanner (vendor=0x04a9, product=0x220d) at libusb:001:002 I then made sure plustek is in dll.conf and (after no success with the standard plustek.conf) adjusted plustek.conf as follows [usb] 0x04A9 0x220D scanimage does not find the scanner in default settings: $ scanimage -L No scanners were identified. If you were expecting something different, however as soon as I enable debugging to find out why, it DOES find the scanner: $ SANE_DEBUG_SANEI_USB=5 scanimage -L 2>/dev/null device `plustek:libusb:001:002' is a Canon N670U/N676U/LiDE20 USB flatbed scanner Further analysis reveals that SANE_DEBUG_SANEI_USB is the "culprit". As soon as it is set to 5 or any higher value, the scanner is found, while as long as it is 4 or lower, the scanner is not found. SANE_DEBUG and other environment variables do not matter. To me, this looks like a buffer overflow or a timing issue in sanei_usb. I decided to continue anyway, but with no success: $ SANE_DEBUG_SANEI_USB=255 SANE_DEBUG=255 SANE_DEBUG_PLUSTEK=255 scanimage 2>lide20-osx.log P6 # SANE data follows 248 150 255 After that, the process stops. I.e., the plustek backend gets loaded and starts to do something, but fails as soon as actual data should be transferred. I am attaching lide20-osx.log, maybe someone can make some sense out of it. BTW, I was using gcc 3.1, as compilation with gcc 2.97 did not succeed: $ gcc3 -v Reading specs from /usr/libexec/gcc/darwin/ppc/3.1/specs Thread model: posix Apple Computer, Inc. GCC version 1041, based on gcc version 3.1 20020105 (experimental) If necessary, shell access for a trusted developer could be arranged. Thanks a lot, and best regards, Tobias. -- Dipl. Phys. Tobias Ernst University of Stuttgart - Casino IT Faculty for Architecture and Urban Planning -------------- next part -------------- A non-text attachment was scrubbed... Name: lide20-osx.log.gz Type: application/x-gzip Size: 4368 bytes Desc: not available URL: From henning at meier-geinitz.de Tue Jul 1 09:38:30 2003 From: henning at meier-geinitz.de (Henning Meier-Geinitz) Date: Tue, 1 Jul 2003 10:38:30 +0200 Subject: [sane-devel] About the trouble about the operativity of kooka In-Reply-To: <200307011443.GEC64471.PJ.OSPLIPVPOSJ@pfu.fujitsu.com> References: <200307011443.GEC64471.PJ.OSPLIPVPOSJ@pfu.fujitsu.com> Message-ID: <20030701083830.GA3290@meier-geinitz.de> Hi, On Tue, Jul 01, 2003 at 02:43:55PM +0900, hironori kohno wrote: > i am using Kooka in the kde environment. > However, although "adf" and "fb" are > displayed on the setting screen of source, > it is surely reset by setup of "adf". > > Although I want to also confirm a setup of "fb", > what should it carry out? Does this happen with other fronetnds (xsane, xscanimage) also? If yes, it's probably a problem with the fujitsu backend. If no, you'd better contact the kooka authors. Well, maybe they are subscribed to sane-devel but at least I don't remember having heard from them on this list. Bye, Henning From henning at meier-geinitz.de Tue Jul 1 09:53:15 2003 From: henning at meier-geinitz.de (Henning Meier-Geinitz) Date: Tue, 1 Jul 2003 10:53:15 +0200 Subject: [sane-devel] canon lide 20 + mac os x + usb In-Reply-To: <5EED34F0-AB9C-11D7-8BF1-0003931DA274@casino.uni-stuttgart.de> References: <5EED34F0-AB9C-11D7-8BF1-0003931DA274@casino.uni-stuttgart.de> Message-ID: <20030701085315.GB3290@meier-geinitz.de> Hi, On Tue, Jul 01, 2003 at 10:16:52AM +0200, Tobias Ernst wrote: > I have compiled and installed libusb from CVS (28 June 2003), and after no > success with the release version of sane I also installed sane from CVS > (30 June 2003). > > sane-find-scanner does find the scanner: > > found USB scanner (vendor=0x04a9, product=0x220d) at libusb:001:002 sane-find-scanner also uses libusb. > however as soon as I enable debugging to find out why, it DOES find the > scanner: > > $ SANE_DEBUG_SANEI_USB=5 scanimage -L 2>/dev/null > device `plustek:libusb:001:002' is a Canon N670U/N676U/LiDE20 USB > flatbed scanner > > Further analysis reveals that SANE_DEBUG_SANEI_USB is the "culprit". As > soon as it is set to 5 or any higher value, the scanner is found, while as > long as it is 4 or lower, the scanner is not found. SANE_DEBUG and other > environment variables do not matter. > > To me, this looks like a buffer overflow or a timing issue in sanei_usb. If it's really the change from 4 to 5 I'd rather suspect the following line in sanei_usb.c: if (DBG_LEVEL > 4) usb_set_debug (255); Try to comment out the if clause so usb_set_debug is always called. Does it work without debugging in that case? If yes, I'd rather suspect a problem in libusb. I haven't heard about similar problems on MacOS X, however. > I decided to continue anyway, but with no success: > > $ SANE_DEBUG_SANEI_USB=255 SANE_DEBUG=255 SANE_DEBUG_PLUSTEK=255 > scanimage 2>lide20-osx.log > P6 > # SANE data follows > 248 150 > 255 > > After that, the process stops. I.e., the plustek backend gets loaded and > starts to do something, but fails as soon as actual data should be > transferred. > > I am attaching lide20-osx.log, maybe someone can make some sense out of it. [plustek] reader_process started [plustek] reader_process:starting to READ data (111600 bytes) [...] [sanei_usb] sanei_usb_write_bulk: trying to write 4 bytes [sanei_usb] 0000: 01 02 00 01 ................ Converting ep address to pipeRef. ep_to_pipeRef: an error occurred getting pipe information on pipe 1 ep_to_pipeRef: An unknown error occured [sanei_usb] sanei_usb_write_bulk: write failed: No such file or directory USB error: usb_clear_halt: error clearing pipe stall The plustek backend uses fork() to create its reader process. That doesn't work on MacOS X. To be exact, it's not possible to access the already open USB device from the child process. This can only be fixed when MacOS X starts to use file descriptors for accessing USB devives. Maybe it'd also work if SANE on MacOS X therads were used instead of a new process? Check the archive of sane-devel for discussions on this topic. Bye, Henning From freitag at suse.de Tue Jul 1 10:01:01 2003 From: freitag at suse.de (Klaas Freitag) Date: Tue, 1 Jul 2003 11:01:01 +0200 Subject: [sane-devel] About the trouble about the operativity of kooka In-Reply-To: <20030701083830.GA3290@meier-geinitz.de> References: <200307011443.GEC64471.PJ.OSPLIPVPOSJ@pfu.fujitsu.com> <20030701083830.GA3290@meier-geinitz.de> Message-ID: <200307011101.01270.freitag@suse.de> On Tuesday 01 July 2003 10:38, Henning Meier-Geinitz wrote: > Hi, > > On Tue, Jul 01, 2003 at 02:43:55PM +0900, hironori kohno wrote: > > i am using Kooka in the kde environment. > > However, although "adf" and "fb" are > > displayed on the setting screen of source, > > it is surely reset by setup of "adf". > > > > Although I want to also confirm a setup of "fb", > > what should it carry out? > > Does this happen with other fronetnds (xsane, xscanimage) also? If > yes, it's probably a problem with the fujitsu backend. Well, the ADF support in Kooka is still very buggy. That is mainly because I do not have a Scanner with ADF support. Sorry. If you could try to describe the problem more in detail, I can try to help you. Please consider to update Kooka, 0.35 is quite outdated, you should try to update to version 0.40 (although that does not solve the ADF-problem probably, but some others). > > If no, you'd better contact the kooka authors. Well, unfortunately there is only one: me ;-). Volunteers are welcome :-) > Well, maybe they are > subscribed to sane-devel but at least I don't remember having heard > from them on this list. Oh, yes, I am subscribed, but not to busy on the list, I admit. Unfortunately I do not have too much time for Kooka and scanner related things. But I am trying hard to do my best ;-) Regards, Klaas -- Klaas Freitag Internal Tools - SuSE Linux AG From kouno.hironori at pfu.fujitsu.com Tue Jul 1 11:14:49 2003 From: kouno.hironori at pfu.fujitsu.com (hironori kohno) Date: Tue, 1 Jul 2003 19:14:49 +0900 Subject: [sane-devel] About the trouble about the operativity of kooka In-Reply-To: <20030701083830.GA3290@meier-geinitz.de> References: <200307011443.GEC64471.PJ.OSPLIPVPOSJ@pfu.fujitsu.com> <20030701083830.GA3290@meier-geinitz.de> Message-ID: <200307011914.CJH55768.OSPLSPPJJ.IOPV@pfu.fujitsu.com> <20030701083830.GA3290 at meier-geinitz.de> ?? "Re: [sane-devel] About the trouble about the operativity of kooka" ????? "Henning Meier-Geinitz "????? ???? > Hi, > > On Tue, Jul 01, 2003 at 02:43:55PM +0900, hironori kohno wrote: > > i am using Kooka in the kde environment. > > However, although "adf" and "fb" are > > displayed on the setting screen of source, > > it is surely reset by setup of "adf". > > > > Although I want to also confirm a setup of "fb", > > what should it carry out? > > Does this happen with other fronetnds (xsane, xscanimage) also? If > yes, it's probably a problem with the fujitsu backend. i am sorry. i do not have any scanners other than fujitsu-scanner. > > If no, you'd better contact the kooka authors. Mail was sent to support of kooka. However, the reply does not exist. >Well, maybe they are > subscribed to sane-devel but at least I don't remember having heard > from them on this list. i appreciate your advice. Probably, it may be the problem of sane-fujitsu. Thanks. > > Bye, > Henning > _______________________________________________ > Sane-devel mailing list > Sane-devel at www.mostang.com > http://www.mostang.com/mailman/listinfo/sane-devel > -- kouno.hironori at pfu.fujitsu.com -- kouno.hironori at pfu.fujitsu.com From a.deuring at satzbau-gmbh.de Tue Jul 1 11:26:25 2003 From: a.deuring at satzbau-gmbh.de (abel deuring) Date: Tue, 01 Jul 2003 12:26:25 +0200 Subject: [sane-devel] program to convert SANE format to JPEG References: Message-ID: <3F0161D1.3EFD95B1@satzbau-gmbh.de> > aneesh m raj wrote: > > Hello all, > Is there a program to convert SANE image format to JPEG. Sane uses its own format only for internal purposes. All frontends I know save the scan data in well known formats like PNM, TIFF, JPEG etc. If you need to convert PNM files, e.g. produced by scanimage or xscanimage, you can do this with Imagemagick (programs convert and mogrify) or with the PNM tools. There exist probably far more conversion tolls for the Unix world ;) If you want to write your own frontend, have a look at the graphics libraries distributed with every Linux distribution (and probably also with other free OSes like FreddBSD and friends) Abel From khk at khk.net Tue Jul 1 11:56:19 2003 From: khk at khk.net (Karl Heinz Kremer) Date: Tue, 1 Jul 2003 06:56:19 -0400 Subject: [sane-devel] About the trouble about the operativity of kooka In-Reply-To: <200307011914.CJH55768.OSPLSPPJJ.IOPV@pfu.fujitsu.com> Message-ID: On Tuesday, July 1, 2003, at 06:14 AM, hironori kohno wrote: > <20030701083830.GA3290 at meier-geinitz.de> ?? > "Re: [sane-devel] About the trouble about the operativity of > kooka" ????? > "Henning Meier-Geinitz "????? > ???? > > >> Hi, >> >> On Tue, Jul 01, 2003 at 02:43:55PM +0900, hironori kohno wrote: >>> i am using Kooka in the kde environment. >>> However, although "adf" and "fb" are >>> displayed on the setting screen of source, >>> it is surely reset by setup of "adf". >>> >>> Although I want to also confirm a setup of "fb", >>> what should it carry out? >> >> Does this happen with other fronetnds (xsane, xscanimage) also? If >> yes, it's probably a problem with the fujitsu backend. > > i am sorry. > i do not have any scanners other than fujitsu-scanner. > Henning did not ask you to test with another backend (which is scanner related), but with a different frontend (e.g. xsane, xscanimage, quiteinsane, ...) Kooka is also a frontend. The frontend provides the user interface, and can "talk" to any Sane backend, so you don't need a different scanner. Karl Heinz From mpol at gmx.net Tue Jul 1 12:00:08 2003 From: mpol at gmx.net (Marcel Pol) Date: Tue, 1 Jul 2003 13:00:08 +0200 Subject: [sane-devel] Microtek Pagewiz In-Reply-To: <20030628163756.GA4381@lucent.com> References: <20030628163756.GA4381@lucent.com> Message-ID: <20030701130008.26394d3d.mpol@gmx.net> On Sat, 28 Jun 2003 11:37:56 -0500 Peter Fales wrote: > Anyone know anything about Microtek Pagewiz Color Sheetfed Scanner? > > http://www.mir.com/mtek/pport-hints.html makes it sound promising, but > I wonder if anyone has any direct experience. > > They are going for well under $10 on eBay. I thik it might be handy > if it worked reasonable well with Linux. It worked for me, but I haven't used it in about 2 or 3 years. I needed the ppscsi driver for it, because it connects to the parport with a scsi over parport chipset. But if you want to, you can use a scsi card as well to connect it to, you would just need to buy another cable for that. -- Marcel Pol From henning at meier-geinitz.de Tue Jul 1 12:07:19 2003 From: henning at meier-geinitz.de (Henning Meier-Geinitz) Date: Tue, 1 Jul 2003 13:07:19 +0200 Subject: [sane-devel] fujitsu/kooka ADF trouble (was: About the trouble about the operativity of kooka) In-Reply-To: <200307011914.CJH55768.OSPLSPPJJ.IOPV@pfu.fujitsu.com> References: <200307011443.GEC64471.PJ.OSPLIPVPOSJ@pfu.fujitsu.com> <20030701083830.GA3290@meier-geinitz.de> <200307011914.CJH55768.OSPLSPPJJ.IOPV@pfu.fujitsu.com> Message-ID: <20030701110719.GC7500@meier-geinitz.de> Hi, On Tue, Jul 01, 2003 at 07:14:49PM +0900, hironori kohno wrote: > > Does this happen with other fronetnds (xsane, xscanimage) also? If > > yes, it's probably a problem with the fujitsu backend. > > i am sorry. > i do not have any scanners other than fujitsu-scanner. I didn't want you to test different scanners but different frontends. E.g. try what happends if you scan with xsane instead of kooka. Bye, Henning From kouno.hironori at pfu.fujitsu.com Tue Jul 1 12:51:40 2003 From: kouno.hironori at pfu.fujitsu.com (hironori kohno) Date: Tue, 1 Jul 2003 20:51:40 +0900 Subject: [sane-devel] About the trouble about the operativity of kooka In-Reply-To: <200307011101.01270.freitag@suse.de> References: <200307011443.GEC64471.PJ.OSPLIPVPOSJ@pfu.fujitsu.com> <20030701083830.GA3290@meier-geinitz.de> <200307011101.01270.freitag@suse.de> Message-ID: <200307012051.HJJ43475.PJIOSVLOPPP.JS@pfu.fujitsu.com> <200307011101.01270.freitag at suse.de> ?? "Re: [sane-devel] About the trouble about the operativity of kooka" ????? "Klaas Freitag "????????? > On Tuesday 01 July 2003 10:38, Henning Meier-Geinitz wrote: > > Hi, > > > > On Tue, Jul 01, 2003 at 02:43:55PM +0900, hironori kohno wrote: > > > i am using Kooka in the kde environment. > > > However, although "adf" and "fb" are > > > displayed on the setting screen of source, > > > it is surely reset by setup of "adf". > > > > > > Although I want to also confirm a setup of "fb", > > > what should it carry out? > > > > Does this happen with other fronetnds (xsane, xscanimage) also? If > > yes, it's probably a problem with the fujitsu backend. > Well, the ADF support in Kooka is still very buggy. That is mainly > because I do not have a Scanner with ADF support. Sorry. > If you could try to describe the problem more in detail, I can try > to help you. Please consider to update Kooka, 0.35 is quite outdated, > you should try to update to version 0.40 (although that does not solve > the ADF-problem probably, but some others). In the following environment, it tested immediately. Redhat: V9 Kooka: V0.39 (KDE-3.1-10). However, the result was NG. Kooka resets to ADF. Kooka is updated to 0.40. And i try. > > > > > If no, you'd better contact the kooka authors. > Well, unfortunately there is only one: me ;-). Volunteers are welcome :-) > > > Well, maybe they are > > subscribed to sane-devel but at least I don't remember having heard > > from them on this list. > Oh, yes, I am subscribed, but not to busy on the list, I admit. > Unfortunately I do not have too much time for Kooka and scanner > related things. But I am trying hard to do my best ;-) Thanks. > > Regards, > Klaas > > -- > Klaas Freitag > Internal Tools - SuSE Linux AG > > _______________________________________________ > Sane-devel mailing list > Sane-devel at www.mostang.com > http://www.mostang.com/mailman/listinfo/sane-devel > -- kouno.hironori at pfu.fujitsu.com -- kouno.hironori at pfu.fujitsu.com From kouno.hironori at pfu.fujitsu.com Tue Jul 1 12:58:34 2003 From: kouno.hironori at pfu.fujitsu.com (hironori kohno) Date: Tue, 1 Jul 2003 20:58:34 +0900 Subject: [sane-devel] About the trouble about the operativity of kooka In-Reply-To: References: <200307011914.CJH55768.OSPLSPPJJ.IOPV@pfu.fujitsu.com> Message-ID: <200307012058.CFD99517.JOSPVPJPOSPIL.@pfu.fujitsu.com> ?? "Re: [sane-devel] About the trouble about the operativity of kooka" ????? "Karl Heinz Kremer "????????? > > On Tuesday, July 1, 2003, at 06:14 AM, hironori kohno wrote: > > > <20030701083830.GA3290 at meier-geinitz.de> ?? > > "Re: [sane-devel] About the trouble about the operativity of > > kooka" ????? > > "Henning Meier-Geinitz "????? > > ???? > > > > > >> Hi, > >> > >> On Tue, Jul 01, 2003 at 02:43:55PM +0900, hironori kohno wrote: > >>> i am using Kooka in the kde environment. > >>> However, although "adf" and "fb" are > >>> displayed on the setting screen of source, > >>> it is surely reset by setup of "adf". > >>> > >>> Although I want to also confirm a setup of "fb", > >>> what should it carry out? > >> > >> Does this happen with other fronetnds (xsane, xscanimage) also? If > >> yes, it's probably a problem with the fujitsu backend. > > > > i am sorry. > > i do not have any scanners other than fujitsu-scanner. > > > Henning did not ask you to test with another backend (which is scanner > related), but > with a different frontend (e.g. xsane, xscanimage, quiteinsane, ...) > Kooka is also a > frontend. The frontend provides the user interface, and can "talk" to > any Sane > backend, so you don't need a different scanner. xsane and xscanimage operate normally. It can change into fb. > > Karl Heinz > > _______________________________________________ > Sane-devel mailing list > Sane-devel at www.mostang.com > http://www.mostang.com/mailman/listinfo/sane-devel > -- kouno.hironori at pfu.fujitsu.com -- kouno.hironori at pfu.fujitsu.com From kouno.hironori at pfu.fujitsu.com Tue Jul 1 13:10:30 2003 From: kouno.hironori at pfu.fujitsu.com (hironori kohno) Date: Tue, 1 Jul 2003 21:10:30 +0900 Subject: [sane-devel] fujitsu/kooka ADF trouble (was: About the trouble aboutthe operativity of kooka) In-Reply-To: <20030701110719.GC7500@meier-geinitz.de> References: <200307011443.GEC64471.PJ.OSPLIPVPOSJ@pfu.fujitsu.com> <20030701083830.GA3290@meier-geinitz.de> <200307011914.CJH55768.OSPLSPPJJ.IOPV@pfu.fujitsu.com> <20030701110719.GC7500@meier-geinitz.de> Message-ID: <200307012110.HIG98378.PVLPISPPJSJOO.@pfu.fujitsu.com> <20030701110719.GC7500 at meier-geinitz.de> ?? "[sane-devel] fujitsu/kooka ADF trouble (was: About the trouble aboutthe operativity of kooka)" ????? "Henning Meier-Geinitz "????? ???? > Hi, > > On Tue, Jul 01, 2003 at 07:14:49PM +0900, hironori kohno wrote: > > > Does this happen with other fronetnds (xsane, xscanimage) also? If > > > yes, it's probably a problem with the fujitsu backend. > > > > i am sorry. > > i do not have any scanners other than fujitsu-scanner. > > I didn't want you to test different scanners but different frontends. > > E.g. try what happends if you scan with xsane instead of kooka. xsane and xscanimage operate normally. It can change into fb. > > Bye, > Henning > _______________________________________________ > Sane-devel mailing list > Sane-devel at www.mostang.com > http://www.mostang.com/mailman/listinfo/sane-devel > -- kouno.hironori at pfu.fujitsu.com -- kouno.hironori at pfu.fujitsu.com From priyag at newgen.co.in Tue Jul 1 16:14:00 2003 From: priyag at newgen.co.in (priya) Date: Tue, 1 Jul 2003 20:44:00 +0530 Subject: [sane-devel] problem in avision scanner Message-ID: <001a01c33fea$60767920$5505a8c0@priya> Hello , I m using avision 830C scanner on linux. When i open the scanned image after scanning in GIMP it is very dark. I dont know how to rectify this. I m using scanimage command to scan the document. Plz help Regards, Priya Gupta -------------- next part -------------- An HTML attachment was scrubbed... URL: From henning at meier-geinitz.de Tue Jul 1 19:14:57 2003 From: henning at meier-geinitz.de (Henning Meier-Geinitz) Date: Tue, 1 Jul 2003 20:14:57 +0200 Subject: [sane-devel] problem in avision scanner In-Reply-To: <001a01c33fea$60767920$5505a8c0@priya> References: <001a01c33fea$60767920$5505a8c0@priya> Message-ID: <20030701181457.GD7500@meier-geinitz.de> Hi, On Tue, Jul 01, 2003 at 08:44:00PM +0530, priya wrote: > I m using avision 830C scanner on linux. Does the scanner work ok otherwise? I'm asking because it's labeled "untested" in our lists. > When i open the scanned image after scanning in GIMP it is very dark. > I dont know how to rectify this. I m using scanimage command to scan > the document. XSane and other graphical frontends provide an easy way to change brightness and gamma settings. If you want to keep using scanimage, check if the avision backend provides an option like "brightness" in the mode you use: scanimage -L. If it doesn't, but has an option called "gamma-table" you can use that one. To generate the gamma table, the program "gamma4scanimage" may be helpful. Bye, Henning From rene.rebe at gmx.net Tue Jul 1 19:56:54 2003 From: rene.rebe at gmx.net (Rene Rebe) Date: Tue, 01 Jul 2003 20:56:54 +0200 (CEST) Subject: [sane-devel] problem in avision scanner In-Reply-To: <20030701181457.GD7500@meier-geinitz.de> References: <001a01c33fea$60767920$5505a8c0@priya> <20030701181457.GD7500@meier-geinitz.de> Message-ID: <20030701.205654.640912868.rene.rebe@gmx.net> Hi, On: Tue, 1 Jul 2003 20:14:57 +0200, Henning Meier-Geinitz wrote: > Hi, > > On Tue, Jul 01, 2003 at 08:44:00PM +0530, priya wrote: > > I m using avision 830C scanner on linux. > > Does the scanner work ok otherwise? I'm asking because it's labeled > "untested" in our lists. Which backend version are you using - I once had such a "wrong scaling of calibration data" but for some scanner revisions. Please update to the latest SANE version. Could you also send me a log (in private) containing the log file of: SANE_DEBUG_AVISION=7 scanimage -L 2> log ? > > When i open the scanned image after scanning in GIMP it is very dark. > > I dont know how to rectify this. I m using scanimage command to scan > > the document. > > XSane and other graphical frontends provide an easy way to change > brightness and gamma settings. If you want to keep using scanimage, > check if the avision backend provides an option like "brightness" in > the mode you use: scanimage -L. If it doesn't, but has an option > called "gamma-table" you can use that one. To generate the gamma > table, the program "gamma4scanimage" may be helpful. The backend supports both - but I guess he is running a version with broken calibration. I'm currently working on the calibration stuff in this minute anyway because I noticed myself that it has endian issues on big-endian architectures (e.g. PowerPC, SPARC). > Bye, > Henning Sincerely yours, Ren? Rebe - ROCK Linux stable release maintainer -- Ren? Rebe - Europe/Germany/Berlin rene at rocklinux.org rene.rebe at gmx.net http://www.rocklinux.org http://www.rocklinux.org/people/rene http://gsmp.tfh-berlin.de/gsmp http://gsmp.tfh-berlin.de/rene From hshane at austin.rr.com Tue Jul 1 23:16:22 2003 From: hshane at austin.rr.com (Howard Shane) Date: Tue, 01 Jul 2003 17:16:22 -0500 Subject: [sane-devel] Second draft of Scanner HOWTO for TLDP In-Reply-To: References: <3EF8FE00.3050107@austin.rr.com> Message-ID: <3F020836.9010106@austin.rr.com> Jonathan Buzzard wrote: > The reason the parallel port scanner page has not been updated for a > long time is the shear lack of new models coming on the market, and > the difficulty of reverse engineering them. > > I would say that 99% of all new scanners are USB capable with a small > number of SCSI and Firewire models at the higher end. It was the > development of tools that allowed the action on the USB cable to be > logged that enabled the big leap forward in USB scanner drivers. > Thanks for the info. Now that you mention it, if anyone could contribute a couple of sentences about any extra steps needed (if any) in configuring a firewire scanner I'd be grateful. Thanks, hs From kouno.hironori at pfu.fujitsu.com Wed Jul 2 04:40:48 2003 From: kouno.hironori at pfu.fujitsu.com (hironori kohno) Date: Wed, 2 Jul 2003 12:40:48 +0900 Subject: [sane-devel] Trouble about "source selection" of Kooka. Message-ID: <200307021240.ICB91107.OOPJIPJPPSLS.V@pfu.fujitsu.com> Hi, i used another scanner which equipped ADF and tested about source selection of kooka. The result was NG like "sane-fujitsu". xsane is OK. Probably, it will be a trouble by the side of Kooka. The environment of a test is as follows: os : Redhat Linux V9 scanner : ES-2200 + ADF unit (EPSON) software: EPSON kowa Image Scan! for Linux : iscan-1.5.2-1.i386 kooka : V0.39 (KDE 3.1-10) . xsane : V0.89 The present condition of a test is as follows: The item of "Flatbed" and "Auto Document Feeder" is displayed on "source selection." initial value is "Flatbed". it is reset by "Flatbed" even if it sets it as "ADF". bb, Kouno -- kouno.hironori at pfu.fujitsu.com -- kouno.hironori at pfu.fujitsu.com From priyag at newgen.co.in Wed Jul 2 08:58:20 2003 From: priyag at newgen.co.in (priya) Date: Wed, 2 Jul 2003 13:28:20 +0530 Subject: [sane-devel] re : problem in avision scanner Message-ID: <004601c3406f$d328cd80$5505a8c0@priya> Hi , Does the scanner work ok otherwise? I'm asking because it's labeled > "untested" in our lists. Ya the scanner avision 830C which i m using works fine with windows. Which backend version are you using? The backend version which i m using is 1.0.12, which i think is the latest one. The backend does provide the setting for brightness and i m giving the brightness as 50. Also i tried to test with gamma table, the documentation says that if u give gamma-table = (yes) then it will use the default gamma table. i tried this option but when i give this option then the result was a 0bytes file. That is the scanning didnt worked at all. But i can surely try to generate a gamma table and then try using it. The command i m using for scanning is scanimage --brightness 50 --mode grayscale --format Tiff > abc.tiff I have one more doubt : I have 4 versions of Avision scanners, they are : 1. Avision 8000S 2. Avision 3200C 3. Avision 600U 4. Avision 820C No where in the documentation i can found that I can use ADF of these scanners. Is there any way that i can use the ADF for these scanners???? Regards, Priya ----------------------------------------------- Hi, On: Tue, 1 Jul 2003 20:14:57 +0200, Henning Meier-Geinitz wrote: > Hi, > = > On Tue, Jul 01, 2003 at 08:44:00PM +0530, priya wrote: > > I m using avision 830C scanner on linux. > = > Does the scanner work ok otherwise? I'm asking because it's labeled > "untested" in our lists. Which backend version are you using - I once had such a "wrong scaling of calibration data" but for some scanner revisions. Please update to the latest SANE version. Could you also send me a log (in private) containing the log file of: SANE_DEBUG_AVISION=3D7 scanimage -L 2> log ? > > When i open the scanned image after scanning in GIMP it is very dar= k. > > I dont know how to rectify this. I m using scanimage command to sc= an > > the document. = > = > XSane and other graphical frontends provide an easy way to change > brightness and gamma settings. If you want to keep using scanimage, > check if the avision backend provides an option like "brightness" in > the mode you use: scanimage -L. If it doesn't, but has an option > called "gamma-table" you can use that one. To generate the gamma > table, the program "gamma4scanimage" may be helpful. The backend supports both - but I guess he is running a version with broken calibration. I'm currently working on the calibration stuff in this minute anyway because I noticed myself that it has endian issues on big-endian architectures (e.g. PowerPC, SPARC). > Bye, > Henning Sincerely yours, Ren=E9 Rebe - ROCK Linux stable release maintainer -------------- next part -------------- An HTML attachment was scrubbed... URL: From jollyprince at juno.com Wed Jul 2 17:47:17 2003 From: jollyprince at juno.com (jollyprince at juno.com) Date: Wed, 2 Jul 2003 16:47:17 GMT Subject: [sane-devel] Visioneer 5800 Message-ID: <20030702.094812.559.243155@webmail05.lax.untd.com> So far, I've discovered that my chipset is RTS8801C2 and I'm seeking info for writing the backend. If somebody can speed up that process, please help! Meanwhile, I'm trying to find a model for my backend. Does anybody have suggestions for similar scanner drivers to Visioneer 5800? Thanks in advance! Roger From jollyprince at juno.com Wed Jul 2 19:27:23 2003 From: jollyprince at juno.com (jollyprince at juno.com) Date: Wed, 2 Jul 2003 18:27:23 GMT Subject: [sane-devel] Visioneer 5800 Message-ID: <20030702.112740.505.238949@webmail10.lax.untd.com> Yes I believe it's HP 3500 Scanjet also using the RTS8801 chipset which is one of the unsupported scanners on the list. Is there some way of using that info to get a model or example of what my task is to write a scanner for my Visioneer 5800? --- gerard klaver wrote: On Wed, 2003-07-02 at 16:47, jollyprince at juno.com wrote: > So far, I've discovered that my chipset is RTS8801C2 and I'm seeking info for writing the backend. If somebody can speed up that process, please help! > > Meanwhile, I'm trying to find a model for my backend. Does anybody have suggestions for similar scanner drivers to Visioneer 5800? > > Thanks in advance! > > Roger > Look at http://www.meier-geinitz.de/sane/misc/unsupported.html for the HP usb scanners, some scanner use the same chip and some people have already collected some data. -- ---------- m.vr.gr. Gerard Klaver From christoph.knauer at web.de Wed Jul 2 21:39:16 2003 From: christoph.knauer at web.de (Christoph Knauer) Date: 02 Jul 2003 22:39:16 +0200 Subject: [sane-devel] Scanning aborts on full harddisk Message-ID: <1057178356.2370.9.camel@christoph.local> Hi, there is another problem I found: If i trie to scan, but the target-disk is almoust full (here it was 0byte free), xsane exits without any message during the transfer of the datas to this disk. Bye, Christoph From inkubus at interalpha.co.uk Wed Jul 2 23:35:32 2003 From: inkubus at interalpha.co.uk (Martin) Date: 02 Jul 2003 23:35:32 +0100 Subject: [sane-devel] Problems getting SANE to recognise an HP ScanJet 5P Message-ID: <1057185333.521.102.camel@raphael> Hi, Having real problems getting SANE to recognise my ScanJet 5P and someone on our local LUG suggested asking here. Background info: *. Custom UltraSPARC IIi based machine running Debian 3.0 *. SCSI bus and cable definately works *. Scanner worked last time it was used (a little while back) and can be made to play music in test mode. SCSI info *. Have module sg loaded [martin at raphael martin]$ cat /proc/devices Character devices: 21 sg and it works with a SCSI CD burner. *. Scanner is recognised by SCSI drivers [martin at raphael martin]$ cat /proc/scsi/scsi Attached devices: Host: scsi1 Channel: 00 Id: 01 Lun: 00 Vendor: HP Model: C5110A Rev: 3701 Type: Processor ANSI SCSI revision: 02 SANE config *. For an HP ScanJet 5P I /think/ this is all the config I need [martin at raphael martin]$ cat /etc/sane.d/hp.conf scsi HP /dev/scanner *. Version raphael:/u/martin# scanimage -V scanimage (sane-backends) 1.0.7; backend version 1.0.7 The Problem *. The SANE layer doesn't seem to recognise the scanner raphael:/u/martin# scanimage --device-name=hp:/dev/sgc scanimage: open of device hp:/dev/sgc failed: Invalid argument raphael:/u/martin# scanimage --device-name=hp:/dev/sg2 scanimage: open of device hp:/dev/sg2 failed: Invalid argument raphael:/u/martin# scanimage -L No scanners were identified. If you were expecting something different, check that the scanner is plugged in, turned on and detected by the sane-find-scanner tool (if appropriate). Please read the documentation which came with this software (README, FAQ, manpages). raphael:/u/martin# ln --symbolic /dev/sg2 /dev/scanner raphael:/u/martin# scanimage --device-name=hp:/dev/scanner scanimage: open of device hp:/dev/scanner failed: Invalid argument raphael:/u/martin# sane-find-scanner -v # Note that sane-find-scanner will find any scanner that is connected # to a SCSI bus and some scanners that are connected to the Universal # Serial Bus (USB) depending on your OS. It will even find scanners # that are not supported at all by SANE. It won't find a scanner that # is connected to a parallel or proprietary port. sane-find-scanner: searching for SCSI scanners: sane-find-scanner: checking /dev/scanner... open ok sane-find-scanner: found SCSI disk " " at device /dev/scanner sane-find-scanner: checking /dev/sg0... open ok sane-find-scanner: found SCSI disk " " at device /dev/sg0 sane-find-scanner: checking /dev/sg1... open ok sane-find-scanner: found SCSI disk " " at device /dev/sg1 sane-find-scanner: checking /dev/sg2... open ok sane-find-scanner: found SCSI disk " " at device /dev/sg2 Can anyone suggest where I might be able to find more info or what I might be doing wrong? Sweet Dreams, - Martin -- Martin inkubus at interalpha.co.uk "Seasons change, things come to pass" From ahmedf at cs.lafayette.edu Thu Jul 3 01:57:02 2003 From: ahmedf at cs.lafayette.edu (Farhan Ahmed) Date: Wed, 02 Jul 2003 20:57:02 -0400 Subject: [sane-devel] Xsane startup problems Message-ID: <200307022057.02894.ahmedf@cs.lafayette.edu> Hi, I'm running Mandrake 9.1 on my Athlon system. When I initially installed Mandrake, Xsane was configured perfectly automatically and I had no problems using my Lexmark X73 flatbed scanner. But then I had to move to a new place and so I unhooked my computer and moved it. When I reconnected everything, to my utter surprise and dissapointment, I got the following error message: gt68xx] Couldn't open firmware file (neither`/usr/share/sane/gt68xx/OSLO3071b2.usb' nor `/usr/share/sane/gt68xx/oslo3071b2.usb'): No such file or directory I still get the icon for Xsane on my desktop (KDE) automatically when I hook up the scanner and so the OS is detecting the scanner fine. Also, the Control Center on Mandrake seems to recognize the scanner correctly too. By the way, the scanner has a USB interface and it's connected to /dev/usb/scanner0 Can anyone help me out please? -- -------------------------------- Farhan Ahmed Electrical and Computer Engineering Lafayette College Easton, PA 18042-1783. ahmedf_at_cs_lafayette_edu From david at rondotheatre.co.uk Thu Jul 3 10:25:12 2003 From: david at rondotheatre.co.uk (david stevenson) Date: Thu, 3 Jul 2003 10:25:12 +0100 Subject: [sane-devel] Xsane startup problems In-Reply-To: <200307022057.02894.ahmedf@cs.lafayette.edu> References: <200307022057.02894.ahmedf@cs.lafayette.edu> Message-ID: <200307031025.13028.david@rondotheatre.co.uk> On Thursday 03 July 2003 1:57 am, Farhan Ahmed wrote: > Hi, > > I'm running Mandrake 9.1 on my Athlon system. When I initially installed > Mandrake, Xsane was configured perfectly automatically and I had no > problems using my Lexmark X73 flatbed scanner. But then I had to move to a > new place and so I unhooked my computer and moved it. When I reconnected > everything, to my utter surprise and dissapointment, I got the following > error message: > > gt68xx] Couldn't open firmware file > (neither`/usr/share/sane/gt68xx/OSLO3071b2.usb' nor > `/usr/share/sane/gt68xx/oslo3071b2.usb'): No such file or directory This means the backend could not find a file it needs to load into your scanner. You must have had this file installed correctly before for it to work so I do not know what happened in your move to loose it. If you can not find it on your system see http://www.meier-geinitz.de/sane/gt68xx-backend/ for details of where to get it from. > I still get the icon for Xsane on my desktop (KDE) automatically when I > hook up the scanner and so the OS is detecting the scanner fine. Also, the > Control Center on Mandrake seems to recognize the scanner correctly too. By > the way, the scanner has a USB interface and it's connected to > /dev/usb/scanner0 > > Can anyone help me out please? From henning at meier-geinitz.de Thu Jul 3 12:18:00 2003 From: henning at meier-geinitz.de (Henning Meier-Geinitz) Date: Thu, 3 Jul 2003 13:18:00 +0200 Subject: [sane-devel] Problems getting SANE to recognise an HP ScanJet 5P In-Reply-To: <1057185333.521.102.camel@raphael> References: <1057185333.521.102.camel@raphael> Message-ID: <20030703111759.GB12717@meier-geinitz.de> Hi, On Wed, Jul 02, 2003 at 11:35:32PM +0100, Martin wrote: > Background info: > *. Custom UltraSPARC IIi based machine running Debian 3.0 Updated SANE packages for Woody are here: http://people.debian.org/~aurel32/sane.html > *. SCSI bus and cable definately works > *. Scanner worked last time it was used (a little while back) and can be > made to play music in test mode. It worked with the same configuration (sane version etc.)? > Host: scsi1 Channel: 00 Id: 01 Lun: 00 > Vendor: HP Model: C5110A Rev: 3701 > Type: Processor ANSI SCSI revision: 02 Looks ok for me. Nothing else in this file? > [martin at raphael martin]$ cat /etc/sane.d/hp.conf > scsi HP > /dev/scanner Should be ok, too. You could also add /dev/sg?, but that shouldn't be necessary. With ? beeing the correct number for the sg device of your scanner. > raphael:/u/martin# scanimage --device-name=hp:/dev/sgc > scanimage: open of device hp:/dev/sgc failed: Invalid argument > raphael:/u/martin# scanimage --device-name=hp:/dev/sg2 > scanimage: open of device hp:/dev/sg2 failed: Invalid argument > raphael:/u/martin# scanimage -L > > No scanners were identified. If you were expecting something different, > sane-find-scanner: searching for SCSI scanners: > sane-find-scanner: checking /dev/scanner... open ok > sane-find-scanner: found SCSI disk " " at device /dev/scanner You have linked a disk to /dev/scanner, not the scanner. At least that's what sane-find-scanner thinks. > sane-find-scanner: checking /dev/sg0... open ok > sane-find-scanner: found SCSI disk " " at device /dev/sg0 > sane-find-scanner: checking /dev/sg1... open ok > sane-find-scanner: found SCSI disk " " at device /dev/sg1 > sane-find-scanner: checking /dev/sg2... open ok > sane-find-scanner: found SCSI disk " " at device /dev/sg2 > Same here. On which sg device is the scanner ("processor") found? For me, that looks like a problem with the SCSI subsystem. > Can anyone suggest where I might be able to find more info or what I > might be doing wrong? SANE thinks you are trying to scan from a SCSI disk. Can you show us the complete output of /proc/scsi/scsi and "sane-find-scanner -v -v"? Bye, Henning From inkubus at interalpha.co.uk Thu Jul 3 12:32:28 2003 From: inkubus at interalpha.co.uk (Martin) Date: 03 Jul 2003 12:32:28 +0100 Subject: [sane-devel] Problems getting SANE to recognise an HP ScanJet 5P In-Reply-To: <1057224634.1226.6.camel@gkall-lex> References: <1057185333.521.102.camel@raphael> <1057224634.1226.6.camel@gkall-lex> Message-ID: <1057231949.526.69.camel@raphael> > > Hi, > > Having real problems getting SANE to recognise my ScanJet 5P and > > someone on our local LUG suggested asking here. > > Can anyone suggest where I might be able to find more info or what I > > might be doing wrong? > > Check also /dev/sg2, see SANE FAQ Have scanned (ha ha) it and the only thing that seems out of order is scsiinfo /dev/sg2 returns no info raphael:/u/martin# scsiinfo -e /dev/sg2 Unable to read Read-Write Error Recovery Page 01h Beginning to suspect a SCSI problem. I'll try the scanner on another machine when I get a chance. > chmod 666 /dev/sg2 Initially it was: [martin at raphael martin]$ ls -la /dev/sg2 crw------- 1 root root 21, 2 Mar 15 2002 /dev/sg2 I originally performed all the attempts to scan as root so that permissions wouldn't be a problem. After chmod 666 I get identical results to the ones originally quoted. Cheers, - Martin -- Martin inkubus at interalpha.co.uk "Seasons change, things come to pass" From inkubus at interalpha.co.uk Thu Jul 3 12:36:45 2003 From: inkubus at interalpha.co.uk (Martin) Date: 03 Jul 2003 12:36:45 +0100 Subject: [sane-devel] Problems getting SANE to recognise an HP ScanJet 5P In-Reply-To: <20030703111759.GB12717@meier-geinitz.de> References: <1057185333.521.102.camel@raphael> <20030703111759.GB12717@meier-geinitz.de> Message-ID: <1057232207.526.75.camel@raphael> > > Background info: > > *. Custom UltraSPARC IIi based machine running Debian 3.0 > Updated SANE packages for Woody are here: > http://people.debian.org/~aurel32/sane.html OK will try. > > *. SCSI bus and cable definately works > > *. Scanner worked last time it was used (a little while back) and can be > > made to play music in test mode. > It worked with the same configuration (sane version etc.)? No. What I ment is that I have seen this hardware work at least once and nothing drastic has happened to it since. > > Host: scsi1 Channel: 00 Id: 01 Lun: 00 > > Vendor: HP Model: C5110A Rev: 3701 > > Type: Processor ANSI SCSI revision: 02 > Looks ok for me. Nothing else in this file? I snipped to the relevant parts: [martin at raphael martin]$ cat /proc/scsi/scsi Attached devices: Host: scsi0 Channel: 00 Id: 00 Lun: 00 Vendor: QUANTUM Model: QM39100TD-SW Rev: N491 Type: Direct-Access ANSI SCSI revision: 02 Host: scsi0 Channel: 00 Id: 06 Lun: 00 Vendor: TEAC Model: CD-ROM CD-532S Rev: 1.0A Type: CD-ROM ANSI SCSI revision: 02 Host: scsi1 Channel: 00 Id: 01 Lun: 00 Vendor: HP Model: C5110A Rev: 3701 Type: Processor ANSI SCSI revision: 02 > > [martin at raphael martin]$ cat /etc/sane.d/hp.conf > > scsi HP > > /dev/scanner > Should be ok, too. You could also add /dev/sg?, but that shouldn't be > necessary. With ? beeing the correct number for the sg device of your > scanner. OK will try. > > sane-find-scanner: searching for SCSI scanners: > > sane-find-scanner: checking /dev/scanner... open ok > > sane-find-scanner: found SCSI disk " " at device /dev/scanner > You have linked a disk to /dev/scanner, not the scanner. At least > that's what sane-find-scanner thinks. > > > sane-find-scanner: checking /dev/sg0... open ok > > sane-find-scanner: found SCSI disk " " at device /dev/sg0 > > sane-find-scanner: checking /dev/sg1... open ok > > sane-find-scanner: found SCSI disk " " at device /dev/sg1 > > sane-find-scanner: checking /dev/sg2... open ok > > sane-find-scanner: found SCSI disk " " at device /dev/sg2 > > > Same here. On which sg device is the scanner ("processor") found? /dev/sg2 - that's why I posted the output of this. It looked the closest thing to an error to me. > For me, that looks like a problem with the SCSI subsystem. Yea I beginning to think so as well :-\ > > Can anyone suggest where I might be able to find more info or what I > > might be doing wrong? > SANE thinks you are trying to scan from a SCSI disk. Can you show us > the complete output of /proc/scsi/scsi and "sane-find-scanner -v -v"? raphael:/u/martin# sane-find-scanner -v -v # Note that sane-find-scanner will find any scanner that is connected # to a SCSI bus and some scanners that are connected to the Universal # Serial Bus (USB) depending on your OS. It will even find scanners # that are not supported at all by SANE. It won't find a scanner that # is connected to a parallel or proprietary port. sane-find-scanner: searching for SCSI scanners: sane-find-scanner: checking /dev/scanner... failed to open sane-find-scanner: checking /dev/sg0... open ok sane-find-scanner: found SCSI disk " " at device /dev/sg0 sane-find-scanner: checking /dev/sg1... open ok sane-find-scanner: found SCSI disk " " at device /dev/sg1 sane-find-scanner: checking /dev/sg2... open ok sane-find-scanner: found SCSI disk " " at device /dev/sg2 I'll start looking at the SCSI drivers as well. Cheers, - Martin -- Martin inkubus at interalpha.co.uk "Seasons change, things come to pass" From henning at meier-geinitz.de Thu Jul 3 12:57:42 2003 From: henning at meier-geinitz.de (Henning Meier-Geinitz) Date: Thu, 3 Jul 2003 13:57:42 +0200 Subject: [sane-devel] canon lide 20 + mac os x + usb In-Reply-To: <0D339075-AC53-11D7-9713-0003931DA274@casino.uni-stuttgart.de> References: <20030701085315.GB3290@meier-geinitz.de> <0D339075-AC53-11D7-9713-0003931DA274@casino.uni-stuttgart.de> Message-ID: <20030703115742.GC12717@meier-geinitz.de> Hi, I'm cc'ing the sane-devel list as your information is interesting for the other developers, too. On Wed, Jul 02, 2003 at 08:04:33AM +0200, Tobias Ernst wrote: > Beat Birkhofer has kindly sent me a patch that changes the plustek backend > to use threads instead of fork, and also confirmed that the debug level > thing is a problem in libusb, and not sane. Ok. Can we see this patch, please? If it were possible to write a more general thread/fork wrapper, this would be most appreciated. So on "real" Unix systems fork could be used and on platforms where it's necessary, threads. > With the patch the scanner now does what it is supposed to, i.e. it scanes > the area that I specify, but the resulting picture is just garbage. In > color mode there is a faint resemblance with the original (though there > are reddisch vertical stripes), while in the other modes, there is either > black only, or also garbage (vertical stripes). No idea about those problems. Maybe the plustek maintainer has seen that before? Bye, Henning From henning at meier-geinitz.de Thu Jul 3 13:59:05 2003 From: henning at meier-geinitz.de (Henning Meier-Geinitz) Date: Thu, 3 Jul 2003 14:59:05 +0200 Subject: [sane-devel] Problems getting SANE to recognise an HP ScanJet 5P In-Reply-To: <1057232207.526.75.camel@raphael> References: <1057185333.521.102.camel@raphael> <20030703111759.GB12717@meier-geinitz.de> <1057232207.526.75.camel@raphael> Message-ID: <20030703125905.GD12717@meier-geinitz.de> Hi, On Thu, Jul 03, 2003 at 12:36:45PM +0100, Martin wrote: > [martin at raphael martin]$ cat /proc/scsi/scsi > Attached devices: > Host: scsi0 Channel: 00 Id: 00 Lun: 00 > Vendor: QUANTUM Model: QM39100TD-SW Rev: N491 > Type: Direct-Access ANSI SCSI revision: 02 > Host: scsi0 Channel: 00 Id: 06 Lun: 00 > Vendor: TEAC Model: CD-ROM CD-532S Rev: 1.0A > Type: CD-ROM ANSI SCSI revision: 02 > Host: scsi1 Channel: 00 Id: 01 Lun: 00 > Vendor: HP Model: C5110A Rev: 3701 > Type: Processor ANSI SCSI revision: 02 Looks fine for me. > > > sane-find-scanner: searching for SCSI scanners: > > > sane-find-scanner: checking /dev/scanner... open ok > > > sane-find-scanner: found SCSI disk " " at device /dev/scanner > > You have linked a disk to /dev/scanner, not the scanner. At least > > that's what sane-find-scanner thinks. > > > > > sane-find-scanner: checking /dev/sg0... open ok > > > sane-find-scanner: found SCSI disk " " at device /dev/sg0 > > > sane-find-scanner: checking /dev/sg1... open ok > > > sane-find-scanner: found SCSI disk " " at device /dev/sg1 > > > sane-find-scanner: checking /dev/sg2... open ok > > > sane-find-scanner: found SCSI disk " " at device /dev/sg2 > > > > > Same here. On which sg device is the scanner ("processor") found? > /dev/sg2 - that's why I posted the output of this. It looked the > closest thing to an error to me. If you have installed cdrecord, try "cdrecord -scanbus". If that one works, I guess it's a SANE problem. > raphael:/u/martin# sane-find-scanner -v -v > > sane-find-scanner: searching for SCSI scanners: > sane-find-scanner: checking /dev/scanner... failed to open > sane-find-scanner: checking /dev/sg0... open ok > sane-find-scanner: found SCSI disk " " at device /dev/sg0 > sane-find-scanner: checking /dev/sg1... open ok > sane-find-scanner: found SCSI disk " " at device /dev/sg1 > sane-find-scanner: checking /dev/sg2... open ok > sane-find-scanner: found SCSI disk " " at device /dev/sg2 > Ok, SANE 1.0.7 doesn't print more details. When the problem still occurs with 1.0.12, please try sane-find-scanner -v -v again. It should pront the actual data that was send by the devices. Bye, Henning From anoah at pfeiffer.edu Thu Jul 3 14:14:25 2003 From: anoah at pfeiffer.edu (m. allan noah) Date: Thu, 3 Jul 2003 09:14:25 -0400 (EDT) Subject: [sane-devel] Xsane startup problems In-Reply-To: <200307031025.13028.david@rondotheatre.co.uk> Message-ID: when you did the setup of your system last time, did you boot into windows before you installed linux? if you have not turned the scanner off since that time, it might have been using the firmware loaded by your windows boot all that time. now that you have powered the scanner off, it lost that, and you will need to find and load the firmware. allan On Thu, 3 Jul 2003, david stevenson wrote: > On Thursday 03 July 2003 1:57 am, Farhan Ahmed wrote: > > Hi, > > > > I'm running Mandrake 9.1 on my Athlon system. When I initially installed > > Mandrake, Xsane was configured perfectly automatically and I had no > > problems using my Lexmark X73 flatbed scanner. But then I had to move to a > > new place and so I unhooked my computer and moved it. When I reconnected > > everything, to my utter surprise and dissapointment, I got the following > > error message: > > > > gt68xx] Couldn't open firmware file > > (neither`/usr/share/sane/gt68xx/OSLO3071b2.usb' nor > > `/usr/share/sane/gt68xx/oslo3071b2.usb'): No such file or directory > > This means the backend could not find a file it needs to load into your > scanner. You must have had this file installed correctly before for it to > work so I do not know what happened in your move to loose it. > If you can not find it on your system see > http://www.meier-geinitz.de/sane/gt68xx-backend/ > for details of where to get it from. > > > > I still get the icon for Xsane on my desktop (KDE) automatically when I > > hook up the scanner and so the OS is detecting the scanner fine. Also, the > > Control Center on Mandrake seems to recognize the scanner correctly too. By > > the way, the scanner has a USB interface and it's connected to > > /dev/usb/scanner0 > > > > Can anyone help me out please? > > _______________________________________________ > Sane-devel mailing list > Sane-devel at www.mostang.com > http://www.mostang.com/mailman/listinfo/sane-devel > -- "so don't tell us it can't be done, putting down what you don't know. money isn't our god, integrity will free our souls" - Max Cavalera From beat.birkhofer at ilw.agrl.ethz.ch Thu Jul 3 15:05:33 2003 From: beat.birkhofer at ilw.agrl.ethz.ch (Beat Birkhofer) Date: Thu, 3 Jul 2003 16:05:33 +0200 Subject: [sane-devel] canon lide 20 + mac os x + usb In-Reply-To: <20030703131501.11301.17469.Mailman@panda.mostang.com> Message-ID: <69B43620-AD5F-11D7-8C94-000A27E31614@ilw.agrl.ethz.ch> On Donnerstag, Juli 3, 2003, at 03:15 Uhr, sane-devel-request at www.mostang.com wrote: > Ok. Can we see this patch, please? If it were possible to write a more > general thread/fork wrapper, this would be most appreciated. So on > "real" Unix systems fork could be used and on platforms where it's > necessary, threads. Hi It's the same patch I posted 2003-02-03 (Vol 1#282) on the list. The link to the source files is dead because they probably wouldn't work with the current sane release and the quality is not good enough (I didn't do much testing, it simply worked for me). After I posted the patch there was the idea to write a daemon as layer between sane and IOKit to allow forks (see postings around 2003-02-14). As I just started my PhD work I have currently not much time to help out. Regards Beat H. From freitag at suse.de Thu Jul 3 16:33:51 2003 From: freitag at suse.de (Klaas Freitag) Date: Thu, 3 Jul 2003 17:33:51 +0200 Subject: [sane-devel] About the trouble about the operativity of kooka In-Reply-To: <200307012051.HJJ43475.PJIOSVLOPPP.JS@pfu.fujitsu.com> References: <200307011443.GEC64471.PJ.OSPLIPVPOSJ@pfu.fujitsu.com> <200307011101.01270.freitag@suse.de> <200307012051.HJJ43475.PJIOSVLOPPP.JS@pfu.fujitsu.com> Message-ID: <200307031733.51705.freitag@suse.de> Hi, attached you find a very small patch that applies to the kooka V. 0.40 source, that probably fixes the problem, that your can not switch the scanning source. Can you (or anybody else) apply the patch, compile and try? Thanks, Klaas > > > > Well, the ADF support in Kooka is still very buggy. That is mainly > > because I do not have a Scanner with ADF support. Sorry. > > If you could try to describe the problem more in detail, I can try > > to help you. Please consider to update Kooka, 0.35 is quite outdated, > > you should try to update to version 0.40 (although that does not solve > > the ADF-problem probably, but some others). > > In the following environment, it tested immediately. > Redhat: V9 > Kooka: V0.39 (KDE-3.1-10). > > However, the result was NG. > Kooka resets to ADF. > > Kooka is updated to 0.40. > And i try. -- Klaas Freitag Internal Tools - SuSE Linux AG -------------- next part -------------- A non-text attachment was scrubbed... Name: kooka-0.40.dif Type: text/x-diff Size: 474 bytes Desc: not available URL: From till.kamppeter at gmx.net Thu Jul 3 18:06:35 2003 From: till.kamppeter at gmx.net (Till Kamppeter) Date: Thu, 03 Jul 2003 19:06:35 +0200 Subject: [sane-devel] PATCH: XSane hardcodes Netscape as browser Message-ID: <3F04629B.6000101@gmx.net> Oi, for displaying HTML help pages XSane calls always the web browser Netscape and does not try another browser if Netscape is not installed. As newer distros do not ship Netscape any more (or they ship it only in boxed editions) it is often not possible to call the help pages out of XSane. Daouda Lo from MandrakeSoft (daouda at mandrakesoft dot com) has made a patch (for XSane 0.91) to use the BROWSER environment variable which we use in Mandrake Linux from now on as long as the problem is not solved upstream. I have made the patch available here http://www.linuxprinting.org/till/tmp/xsane-0.91-browser.patch.bz2 Oliver, can you apply it to XSane, so that the browser problem will be solved in 0.92? Thanks in advance. Till From oliver.rauch at rauch-domain.de Thu Jul 3 20:46:37 2003 From: oliver.rauch at rauch-domain.de (Oliver Rauch) Date: Thu, 3 Jul 2003 21:46:37 +0200 Subject: [sane-devel] PATCH: XSane hardcodes Netscape as browser In-Reply-To: <3F04629B.6000101@gmx.net> References: <3F04629B.6000101@gmx.net> Message-ID: <200307032146.37301.oliver.rauch@rauch-domain.de> Hello Tim. You can enter a html viewer in xsane->preferences->setup->display. There is no need to patch xsane. Oliver On Thursday 03 July 2003 19:06, Till Kamppeter wrote: > Oi, > > for displaying HTML help pages XSane calls always the web browser > Netscape and does not try another browser if Netscape is not installed. > As newer distros do not ship Netscape any more (or they ship it only in > boxed editions) it is often not possible to call the help pages out of > XSane. > > Daouda Lo from MandrakeSoft (daouda at mandrakesoft dot com) has made a > patch (for XSane 0.91) to use the BROWSER environment variable which we > use in Mandrake Linux from now on as long as the problem is not solved > upstream. > > I have made the patch available here > > http://www.linuxprinting.org/till/tmp/xsane-0.91-browser.patch.bz2 > > Oliver, can you apply it to XSane, so that the browser problem will be > solved in 0.92? Thanks in advance. > > Till > > _______________________________________________ > Sane-devel mailing list > Sane-devel at www.mostang.com > http://www.mostang.com/mailman/listinfo/sane-devel -- http://www.xsane.org http://www.mostang.com/sane http://www.rauch-domain.de mailto:Oliver.Rauch at Rauch-Domain.DE From till.kamppeter at gmx.net Thu Jul 3 20:57:14 2003 From: till.kamppeter at gmx.net (Till Kamppeter) Date: Thu, 03 Jul 2003 21:57:14 +0200 Subject: [sane-devel] PATCH: XSane hardcodes Netscape as browser In-Reply-To: <200307032146.37301.oliver.rauch@rauch-domain.de> References: <3F04629B.6000101@gmx.net> <200307032146.37301.oliver.rauch@rauch-domain.de> Message-ID: <3F048A9A.1070104@gmx.net> Oliver Rauch wrote: > Hello Tim. > My name is Till. > You can enter a html viewer in xsane->preferences->setup->display. > There is no need to patch xsane. > Thank you for the info. A suggestion: One could add a checkbox "automatic" and when it is checked, the BROWSER variable is used and if the BROWSER variable is not set, the most common browsers are tried (netscape, mozilla, konqueror, galeon, opera). Till > Oliver > > On Thursday 03 July 2003 19:06, Till Kamppeter wrote: > >>Oi, >> >>for displaying HTML help pages XSane calls always the web browser >>Netscape and does not try another browser if Netscape is not installed. >>As newer distros do not ship Netscape any more (or they ship it only in >>boxed editions) it is often not possible to call the help pages out of >>XSane. >> >>Daouda Lo from MandrakeSoft (daouda at mandrakesoft dot com) has made a >>patch (for XSane 0.91) to use the BROWSER environment variable which we >>use in Mandrake Linux from now on as long as the problem is not solved >>upstream. >> >>I have made the patch available here >> >>http://www.linuxprinting.org/till/tmp/xsane-0.91-browser.patch.bz2 >> >>Oliver, can you apply it to XSane, so that the browser problem will be >>solved in 0.92? Thanks in advance. >> >> Till >> >>_______________________________________________ >>Sane-devel mailing list >>Sane-devel at www.mostang.com >>http://www.mostang.com/mailman/listinfo/sane-devel > > From jb at jblache.org Thu Jul 3 21:42:33 2003 From: jb at jblache.org (Julien BLACHE) Date: Thu, 03 Jul 2003 22:42:33 +0200 Subject: [sane-devel] PATCH: XSane hardcodes Netscape as browser In-Reply-To: <3F048A9A.1070104@gmx.net> (Till Kamppeter's message of "Thu, 03 Jul 2003 21:57:14 +0200") References: <3F04629B.6000101@gmx.net> <200307032146.37301.oliver.rauch@rauch-domain.de> <3F048A9A.1070104@gmx.net> Message-ID: <87y8zfuyti.fsf@frigate.technologeek.org> Till Kamppeter wrote: > A suggestion: One could add a checkbox "automatic" and when it is > checked, the BROWSER variable is used and if the BROWSER variable is > not set, the most common browsers are tried (netscape, mozilla, > konqueror, galeon, opera). Or Mandrake could provide some wrapper script, such as Debian's /usr/bin/sensible-browser script (see the debianutils package). We use that for the browser in XSane. JB. -- Julien BLACHE From oliver.rauch at rauch-domain.de Thu Jul 3 21:57:53 2003 From: oliver.rauch at rauch-domain.de (Oliver Rauch) Date: Thu, 3 Jul 2003 22:57:53 +0200 Subject: [sane-devel] PATCH: XSane hardcodes Netscape as browser In-Reply-To: <3F048A9A.1070104@gmx.net> References: <3F04629B.6000101@gmx.net> <200307032146.37301.oliver.rauch@rauch-domain.de> <3F048A9A.1070104@gmx.net> Message-ID: <200307032257.53532.oliver.rauch@rauch-domain.de> > > Hello Tim. > > My name is Till. Sorry. Hello Till. > A suggestion: One could add a checkbox "automatic" and when it is > checked, the BROWSER variable is used and if the BROWSER variable is not > set, the most common browsers are tried (netscape, mozilla, konqueror, > galeon, opera). Yes, but that also does not help when the users do not read the manual or take a look at the setup dialog. I think it does not make the things easier. Oliver -- http://www.xsane.org http://www.mostang.com/sane http://www.rauch-domain.de mailto:Oliver.Rauch at Rauch-Domain.DE From gnawa at libero.it Fri Jul 4 00:20:12 2003 From: gnawa at libero.it (gnawa) Date: Fri, 4 Jul 2003 01:20:12 +0200 Subject: [sane-devel] hp 2300c In-Reply-To: <200307032257.53532.oliver.rauch@rauch-domain.de> References: <3F04629B.6000101@gmx.net> <3F048A9A.1070104@gmx.net> <200307032257.53532.oliver.rauch@rauch-domain.de> Message-ID: <200307040120.12819.gnawa@libero.it> hi! i have logged under windows 2k,using usb_snoopy, the messages between the driver and the scanner (hp scanjet 2300c) with the intention of write a backend for my scanner... but now i don't know the next step... i have made it because there are no information about chipset... there is anyone who can help me? thanks a lot! gnawa From rene.rebe at gmx.net Fri Jul 4 00:24:07 2003 From: rene.rebe at gmx.net (Rene Rebe) Date: Fri, 04 Jul 2003 01:24:07 +0200 (CEST) Subject: [sane-devel] HP 7450C ... Try hpusbscsi In-Reply-To: <1057003598.4579.52.camel@localhost.localdomain> References: <1056948336.3460.127.camel@localhost.localdomain> <20030630.104909.730551847.rene.rebe@gmx.net> <1057003598.4579.52.camel@localhost.localdomain> Message-ID: <20030704.012407.607960576.rene.rebe@gmx.net> Hi, please do send debug logs for SANE/Avision with a log higher then 7 only on request. Those contains many thousand lines with calibration data values ... - And you also should not send such big mails to the list (I guess the list software rejected it anyway?) On: 30 Jun 2003 13:06:39 -0700, Thomas Frayne wrote: > The procedure to switch to hpusbscsi, as I currently understand it is: > > Turn off the scanner to clear the "initializing" state > Rename back to hpusbscsi.o > Reboot to get Linux to recognize SCSI scanner > Don't do a modprobe; do an rmmod scanner to make sure. > Modify /etc/rc.d/rc.local to remove the modprobe at the next boot > Modify /usr/local/etc/sane.d/avision.conf to remove the usb lines and > insert: not needed for you - but uncritical: > scsi AVISION > scsi HP > scsi hp > scsi /dev/scanner erhm /dev/usb/scanner0 is not a SCSI device - but this should just error without any bad side-effects ... > scsi /dev/usb/scanner0 > > umount /proc > > Anything wrong, redundant, or missing? > > Here is what happened this morning: > > > 9:32 > [root at localhost root]# rmmod scanner > rmmod: module scanner is not loaded > [root at localhost root]# locate /*/hpusbscsi.* > /hda/9/lib/modules/2.4.18-14/kernel/drivers/usb/hpusbscsi.o > /lib/modules/2.4.20-8/kernel/drivers/usb/hpusbscsi.o > /lib/modules/2.4.20-18.9/kernel/drivers/usb/hpusbscsi.obk Is this a mv A B ; mv B A ??? > [root at localhost root]# mv /lib/modules/2.4.20-8/kernel/drivers/usb/hpusbscsi.o /lib/modules/2.4.20-8/kernel/drivers/usb/hpusbscsi.obk > [root at localhost root]# mv /lib/modules/2.4.20-18.9/kernel/drivers/usb/hpusbscsi.obk /lib/modules/2.4.20-18.9/kernel/drivers/usb/hpusbscsi.o > [root at localhost root]# > Modified /etc/rc.d/rc.local to remove the modprobe at the next boot > Modified /usr/local/etc/sane.d/avision.conf /proc/bus/usb can just be mounted (and must be for other usb devices you may want to use (digital camera ...) > [root at localhost root]# umount /proc/bus/usb > [root at localhost root]# > > 10:21 > rebooted because of SBC technician testing my DSL connection. > scanner added to hardware recognized by Linux > > [root at localhost root]# scanimage -L > device `avision:/dev/sg5' is a Hewlett-Packard ScanJet 7400c flatbed scanner Good - your scanner is recognized on a SCSI device! > [root at localhost root]# sane-find-scanner > > found SCSI scanner "hp scanjet 7400c 0.8M" at /dev/scanner > found SCSI scanner "hp scanjet 7400c 0.8M" at /dev/sg5 > found SCSI scanner "hp scanjet 7400c 0.8M" at /dev/sgf sgf and scanner are just links to sg5. I is ok that you only specify one in the avisino.conf. Only one needs to be used. [...] > [root at localhost root]# scanimage -L > device `avision:/dev/sg5' is a Hewlett-Packard ScanJet 7400c flatbed scanner > [root at localhost root]# > > [root at localhost root]# ls -l /dev/sg5 > crw------- 1 tom root 21, 5 Jan 30 02:24 /dev/sg5 > [root at localhost root]# > > 11:35 > xsane, scan Failed to start scanner, error during device I/O. > replug Hm - a "SANE_DEBUG_AVISION=7 xsane 2> log" would be interesting ... > [root at localhost root]# SANE_DEBUG_AVISION=255 scanimage >~/image.pnm 2>~/scanlog > [root at localhost root] > > Failed after a long time. Made noises, so I unplugged. > > [root at localhost root]# umount /proc/bus/usb > [root at localhost root]# SANE_DEBUG_AVISION=255 scanimage >~/image.pnm 2>>~/scanlo > g > > Failed immediately. I had forgotten to plug in the scanner. > > [root at localhost root]# SANE_DEBUG_AVISION=255 scanimage >~/image.pnm 2>>~/scanlo > g > > Made noises. Not as loud. Unplugged. > > I am attaching scanlog. The log look mostly ok. Could you try to only scan a smal region of the top of the page and using xscanimage or xsane and see if small scans work - and mail be the log of such a tiny scan or for the error if you get one? Sincerely yours, Ren? Rebe - ROCK Linux stable release maintainer -- Ren? Rebe - Europe/Germany/Berlin rene at rocklinux.org rene.rebe at gmx.net http://www.rocklinux.org http://www.rocklinux.org/people/rene http://gsmp.tfh-berlin.de/gsmp http://gsmp.tfh-berlin.de/rene From henning at meier-geinitz.de Fri Jul 4 07:39:50 2003 From: henning at meier-geinitz.de (Henning Meier-Geinitz) Date: Fri, 4 Jul 2003 08:39:50 +0200 Subject: [sane-devel] hp 2300c In-Reply-To: <200307040120.12819.gnawa@libero.it> References: <3F04629B.6000101@gmx.net> <3F048A9A.1070104@gmx.net> <200307032257.53532.oliver.rauch@rauch-domain.de> <200307040120.12819.gnawa@libero.it> Message-ID: <20030704063950.GB17943@meier-geinitz.de> Hi, On Fri, Jul 04, 2003 at 01:20:12AM +0200, gnawa wrote: > i have logged under windows 2k,using usb_snoopy, the messages between the > driver and the scanner (hp scanjet 2300c) with the intention of write a > backend for my scanner... but now i don't know the next step... > i have made it because there are no information about chipset... > there is anyone who can help me? Analyze it. Find out, how the protocol works. Are commands used or registers? At which time which command is used? E.g. if a command is used multiple times during the actual scan and returns lots of data it's most probably the "read_scan_data" command (or however you want to name it). A command that is used only once immediately beforet he scan may be the "start_scan" command. Putting the usb snoopy logs somewhere on a web site might also help. Maybe someone recognizes a pattern or has seen that protocol before? Bye, Henning From gnawa at libero.it Fri Jul 4 10:35:18 2003 From: gnawa at libero.it (gnawa) Date: Fri, 4 Jul 2003 11:35:18 +0200 Subject: [sane-devel] hp 2300c In-Reply-To: <20030704063950.GB17943@meier-geinitz.de> References: <3F04629B.6000101@gmx.net> <200307040120.12819.gnawa@libero.it> <20030704063950.GB17943@meier-geinitz.de> Message-ID: <200307041135.18335.gnawa@libero.it> hi! this is a short example of the protocol i have obtained with usb_snoopy there are a lot of istruction like these befor the "read_scan_data" 00000000 0.00000000 UsbSnoop - IRP_MJ_INTERNAL_DEVICE_CONTROL, IOCTL_INTERNAL_USB_SUBMIT_URB 00000001 0.00002039 00000002 0.00002654 >>>>>>> URB 2162 going down... 00000003 0.00003799 -- URB_FUNCTION_VENDOR_DEVICE: 00000004 0.00005140 TransferFlags = 00000000 (USBD_TRANSFER_DIRECTION_OUT, ~USBD_SHORT_TRANSFER_OK) 00000005 0.00006118 TransferBufferLength = 00000001 00000006 0.00007180 TransferBuffer = 8181bf08 00000007 0.00008018 TransferBufferMDL = 00000000 00000008 0.00008828 00000009 0.00010783 0000: 41 00000010 0.00011622 UrbLink = 00000000 00000011 0.00012488 RequestTypeReservedBits = 40 00000012 0.00013326 Request = 0c 00000013 0.00014164 Value = 0083 00000014 0.00015114 Index = 0000 00000015 0.00411477 00000016 0.00412091 <<<<<<< URB 2162 coming back... 00000017 0.00413237 -- URB_FUNCTION_CONTROL_TRANSFER: 00000018 0.00414271 PipeHandle = 813c7574 00000019 0.00415360 TransferFlags = 00000002 (USBD_TRANSFER_DIRECTION_OUT, USBD_SHORT_TRANSFER_OK) 00000020 0.00416282 TransferBufferLength = 00000001 00000021 0.00417204 TransferBuffer = 8181bf08 00000022 0.00418126 TransferBufferMDL = 813b0e68 00000023 0.00419076 UrbLink = 00000000 00000024 0.00425976 SetupPacket : 40 0c 83 00 00 00 01 00 00000025 0.00431004 UsbSnoop - IRP_MJ_INTERNAL_DEVICE_CONTROL, IOCTL_INTERNAL_USB_SUBMIT_URB i need some help for understand what is "urb", the meaning of >>>>>> and <<<<<< (i think it's direction of messages in or out...), ..., ..., ..., etc. the logs are very long :) (making a preview of scannig the log is about 17Mb and then with real scanning the log is about 7Mb) on 10x10(cm) of area... i hope i'm on the right way, but i'm confused too thanks Gnawa Alle 08:39, venerd? 4 luglio 2003, Henning Meier-Geinitz ha scritto: > Hi, > > On Fri, Jul 04, 2003 at 01:20:12AM +0200, gnawa wrote: > > i have logged under windows 2k,using usb_snoopy, the messages between the > > driver and the scanner (hp scanjet 2300c) with the intention of write a > > backend for my scanner... but now i don't know the next step... > > i have made it because there are no information about chipset... > > there is anyone who can help me? > > Analyze it. Find out, how the protocol works. Are commands used or > registers? At which time which command is used? E.g. if a command is > used multiple times during the actual scan and returns lots of data it's > most probably the "read_scan_data" command (or however you want to > name it). A command that is used only once immediately beforet he scan > may be the "start_scan" command. > > Putting the usb snoopy logs somewhere on a web site might also help. > Maybe someone recognizes a pattern or has seen that protocol before? > > Bye, > Henning > _______________________________________________ > Sane-devel mailing list > Sane-devel at www.mostang.com > http://www.mostang.com/mailman/listinfo/sane-devel From aneeshmraj at hotmail.com Fri Jul 4 11:01:49 2003 From: aneeshmraj at hotmail.com (aneesh m raj) Date: Fri, 4 Jul 2003 15:31:49 +0530 Subject: [sane-devel] To scan color image Message-ID: Hi all, Im using scanimage frontend to scan a color image but im getting only in B&W.how can i set the option to scan images in RGB. Thanks Aneesh -------------- next part -------------- An HTML attachment was scrubbed... URL: From bertrik at zonnet.nl Fri Jul 4 11:21:36 2003 From: bertrik at zonnet.nl (bertrik at zonnet.nl) Date: Fri, 4 Jul 2003 12:21:36 +0200 Subject: [sane-devel] hp 2300c In-Reply-To: <200307041135.18335.gnawa@libero.it> References: <3F04629B.6000101@gmx.net> <200307040120.12819.gnawa@libero.it> <20030704063950.GB17943@meier-geinitz.de> <200307041135.18335.gnawa@libero.it> Message-ID: <1057314096.3f055530dc6a5@webmail.zonnet.nl> Citeren gnawa : The log you sent looks similar to what is used in some other scanners (although the fragment is a bit too small to make a definitive conclusion). It looks like the scanner uses a kind of parallel-over-USB protocol, that is also used for the HP3300, HP3400 and HP4300. Each read or write to a scanner register takes 5 USB transfers. There are already some tools to simplify the logs, allowing you to concentrate on the essentials: * modified USB snoopy that does not log the contents of the bulk transfers (logs get enormously big otherwise, or miss parts) * perl-script to further simplify the log and make it more readable * some example code. Can you post an URL to the full log, so I can check if the protocol is really similar? Kind regards, Bertrik Sikken -- _____________________________________________________________________ 2x sneller ADSL met Zon Breedband Family. In combinatie met ZonTel nu voor maar 29 euro per maand. Bestel nu op www.zonnet.nl/breedband Bovendien met gratis modem en geen aansluitkosten! From henning at meier-geinitz.de Fri Jul 4 11:36:06 2003 From: henning at meier-geinitz.de (Henning Meier-Geinitz) Date: Fri, 4 Jul 2003 12:36:06 +0200 Subject: [sane-devel] hp 2300c In-Reply-To: <200307041135.18335.gnawa@libero.it> References: <3F04629B.6000101@gmx.net> <200307040120.12819.gnawa@libero.it> <20030704063950.GB17943@meier-geinitz.de> <200307041135.18335.gnawa@libero.it> Message-ID: <20030704103606.GC17943@meier-geinitz.de> Hi, I'm not an expert in reading USB snoopy logs so some of my interpretation may be wrong. You should have a look at the USB spec (www.usb.org), especially the chapters explaining how a control and a bulk transfer work. On Fri, Jul 04, 2003 at 11:35:18AM +0200, gnawa wrote: > 00000000 0.00000000 UsbSnoop - IRP_MJ_INTERNAL_DEVICE_CONTROL, IOCTL_INTERNAL_USB_SUBMIT_URB > 00000001 0.00002039 > 00000002 0.00002654 >>>>>>> URB 2162 going down... A URB (USB request block) is goes from the application to the operating system which sends it to the device. 2162 is the number of that block. > 00000003 0.00003799 -- URB_FUNCTION_VENDOR_DEVICE: It's a control message. > 00000004 0.00005140 TransferFlags = 00000000 (USBD_TRANSFER_DIRECTION_OUT, ~USBD_SHORT_TRANSFER_OK) USBD_TRANSFER_DIRECTION_OUT means that data (the TransferBuffer) is sent from the host to the device. > 00000005 0.00006118 TransferBufferLength = 00000001 The buffer has a size of one byte. > 00000006 0.00007180 TransferBuffer = 8181bf08 I think that's the pointer to the buffer. Doesn't matter. > 00000007 0.00008018 TransferBufferMDL = 00000000 No idea. > 00000008 0.00008828 > 00000009 0.00010783 0000: 41 The buffer itsself. One byte with a value of 0x41. > 00000010 0.00011622 UrbLink = 00000000 > 00000011 0.00012488 RequestTypeReservedBits = 40 > 00000012 0.00013326 Request = 0c > 00000013 0.00014164 Value = 0083 > 00000014 0.00015114 Index = 0000 These are the values used in the control message (see USB spec). See also the sanei_usb_control_msg function, you'll recognize some of the arguments there. > 00000015 0.00411477 > 00000016 0.00412091 <<<<<<< URB 2162 coming back... Now the URB is finished (sent). > 00000017 0.00413237 -- URB_FUNCTION_CONTROL_TRANSFER: > 00000018 0.00414271 PipeHandle = 813c7574 > 00000019 0.00415360 TransferFlags = 00000002 (USBD_TRANSFER_DIRECTION_OUT, USBD_SHORT_TRANSFER_OK) > 00000020 0.00416282 TransferBufferLength = 00000001 > 00000021 0.00417204 TransferBuffer = 8181bf08 > 00000022 0.00418126 TransferBufferMDL = 813b0e68 > 00000023 0.00419076 UrbLink = 00000000 > 00000024 0.00425976 SetupPacket : 40 0c 83 00 00 00 01 00 That's the control data actual used for the control message. If you look closely, you see how it looks like: 0x40 = request type, 0c = request, 00 83 (little endian) = value, 00 00 = index, 01 00 = size of the buffer. > i need some help for understand what is "urb", the meaning of >>>>>> and > <<<<<< (i think it's direction of messages in or out...), ..., ..., ..., etc. It's the "direction" of the URB. >>> sent from application to operating system, <<< sent back from os to application. > the logs are very long :) (making a preview of scannig the log is about 17Mb > and then with real scanning the log is about 7Mb) on 10x10(cm) of area... That's not unusual. Especially if the scanner chip is not that intelligent :-) E.g. some drivers ask the scanner if it has finished moving back the scanhead. They do this every few milliseconds so you get an enourmous amount of traffic just for this testing. Bye, Henning From henning at meier-geinitz.de Fri Jul 4 11:38:38 2003 From: henning at meier-geinitz.de (Henning Meier-Geinitz) Date: Fri, 4 Jul 2003 12:38:38 +0200 Subject: [sane-devel] To scan color image In-Reply-To: References: Message-ID: <20030704103838.GD17943@meier-geinitz.de> Hi, On Fri, Jul 04, 2003 at 03:31:49PM +0530, aneesh m raj wrote: > Im using scanimage frontend to scan a color image but im getting only > in B&W.how can i set the option to scan images in RGB. That may depend on the backend but usually something like "scanimage --mode Color >image.pnm" should work. See "scanimage --help" and "man scanimage". Bye, Henning From gnawa at libero.it Fri Jul 4 12:40:00 2003 From: gnawa at libero.it (gnawa) Date: Fri, 4 Jul 2003 13:40:00 +0200 Subject: [sane-devel] hp 2300c In-Reply-To: <1057314096.3f055530dc6a5@webmail.zonnet.nl> References: <3F04629B.6000101@gmx.net> <200307041135.18335.gnawa@libero.it> <1057314096.3f055530dc6a5@webmail.zonnet.nl> Message-ID: <200307041340.00407.gnawa@libero.it> > Can you post an URL to the full log, so I can check if the protocol > is really similar? http://gnawa.homeunix.org/2300c_preview.LOG http://gnawa.homeunix.org/2300c_scan.LOG thanks for help to all! Gnawa From tomf at sjpc.org Fri Jul 4 16:12:43 2003 From: tomf at sjpc.org (Thomas Frayne) Date: 04 Jul 2003 08:12:43 -0700 Subject: [sane-devel] HP 7450C ... Try hpusbscsi - black In-Reply-To: <20030704.012407.607960576.rene.rebe@gmx.net> References: <1056948336.3460.127.camel@localhost.localdomain> <20030630.104909.730551847.rene.rebe@gmx.net> <1057003598.4579.52.camel@localhost.localdomain> <20030704.012407.607960576.rene.rebe@gmx.net> Message-ID: <1057331562.3092.1006.camel@localhost.localdomain> On Thu, 2003-07-03 at 16:24, Rene Rebe wrote: > Hi, > > please do send debug logs for SANE/Avision with a log higher then 7 > only on request. OK. I thought it was requested, but not by you. > > On: 30 Jun 2003 13:06:39 -0700, > Thomas Frayne wrote: > ... > > /lib/modules/2.4.20-8/kernel/drivers/usb/hpusbscsi.o > > /lib/modules/2.4.20-18.9/kernel/drivers/usb/hpusbscsi.obk > Is this a mv A B ; mv B A ??? > > [root at localhost root]# mv /lib/modules/2.4.20-8/kernel/drivers/usb/hpusbscsi.o /lib/modules/2.4.20-8/kernel/drivers/usb/hpusbscsi.obk > > [root at localhost root]# mv /lib/modules/2.4.20-18.9/kernel/drivers/usb/hpusbscsi.obk /lib/modules/2.4.20-18.9/kernel/drivers/usb/hpusbscsi.o No. Different directories. I had just upgraded my kernel and disabled hpusbscsi. I enabled it again just for the new kernel. > > [root at localhost root]# > > Modified /etc/rc.d/rc.local to remove the modprobe at the next boot > > Modified /usr/local/etc/sane.d/avision.conf > /proc/bus/usb can just be mounted (and must be for other usb devices > you may want to use (digital camera ...) OK ... > > [root at localhost root]# scanimage -L > > device `avision:/dev/sg5' is a Hewlett-Packard ScanJet 7400c flatbed scanner > > Good - your scanner is recognized on a SCSI device! > > [...] > > Hm - a "SANE_DEBUG_AVISION=7 xsane 2> log" would be interesting ... > ... > > The log look mostly ok. Could you try to only scan a smal region of > the top of the page and using xscanimage or xsane and see if small > scans work - and mail be the log of such a tiny scan or for the error > if you get one? > OK. I unplugged and plugged the scanner and executed SANE_DEBUG_AVISION=7 xsane 2> ~/logscan2 xsane started for Scanjet 7400c:sg6. I unchecked Enable ADF, set Bottom-right x [in] 3.000, Bottom-right y [in] 2.000, and did a prescan. The scanner behaved normally, but produced a completely black image. (I had gotten good images from xsane while using Redhat 8. One of the reasons I upgraded to Redhat 9 was to try to get the ADF running.) I left xsane running, deleted 3000 repeated lines from the scanlog, and got it down to 366K. I am not copying the mailing list. I plan to leave xsane up until next reboot. What next? Tom From bertrik at zonnet.nl Fri Jul 4 18:50:25 2003 From: bertrik at zonnet.nl (Bertrik Sikken) Date: Fri, 04 Jul 2003 19:50:25 +0200 Subject: [sane-devel] hp 2300c In-Reply-To: <200307041340.00407.gnawa@libero.it> References: <3F04629B.6000101@gmx.net> <200307041135.18335.gnawa@libero.it> <1057314096.3f055530dc6a5@webmail.zonnet.nl> <200307041340.00407.gnawa@libero.it> Message-ID: <3F05BE61.4040204@zonnet.nl> gnawa wrote: >>Can you post an URL to the full log, so I can check if the protocol >>is really similar? > > > http://gnawa.homeunix.org/2300c_preview.LOG > http://gnawa.homeunix.org/2300c_scan.LOG Good news, the transfer method is indeed similar to existing ones. This means that it's quite easy to write some routines that read/write from the internal scanner registers or transfer bulk data. The perl USB log tool (originally written by Marian Eicholz) is also able to make the logs more readable (with some persuasion). I think the perl script is also capable of creating a file that can be used to play back previously logged USB transfers. Next thing is to figure out what each register does and write a simple test tool. For example, write a tool that prints the contents of all status registers and see how they change with lamp on/off, scanner button pressed etc. Try to capture logs under windows from several scans, where each time a single scan option changes and the rest stays the same, then compare the logs. Regards, Bertrik From henning at meier-geinitz.de Fri Jul 4 19:38:27 2003 From: henning at meier-geinitz.de (Henning Meier-Geinitz) Date: Fri, 4 Jul 2003 20:38:27 +0200 Subject: [sane-devel] hp 2300c In-Reply-To: <200307041340.00407.gnawa@libero.it> References: <3F04629B.6000101@gmx.net> <200307041135.18335.gnawa@libero.it> <1057314096.3f055530dc6a5@webmail.zonnet.nl> <200307041340.00407.gnawa@libero.it> Message-ID: <20030704183827.GA26626@meier-geinitz.de> Hi, On Fri, Jul 04, 2003 at 01:40:00PM +0200, gnawa wrote: > > Can you post an URL to the full log, so I can check if the protocol > > is really similar? > > http://gnawa.homeunix.org/2300c_preview.LOG > http://gnawa.homeunix.org/2300c_scan.LOG I had a quick look and may have missed some stuff but that's what I found out. I can see the following types of USB messages (scan log): -------------------------- control messages ------------------------------ 1) Control messages that send one byte of data to the device, e.g. URB 2162: 40 0c 83 00 00 00 01 00 (data: 0x41) Request type 40 means: host-to-device, send to the device itsself (not a specific interface or endpoint), vendor request (so the other rules in the USB spec for control messages do not apply). request is 0x0c, value is 0x83 2) Control messages that read one byte of data from the device, e.g. URB 2163: c0 0c 84 00 00 00 01 00 (data: 0x6c) Request type c0 means: device-to-host, send to the device itsself (not a specific interface or endpoint), vendor request request is 0x0c, value is 0x84 3) Control messages that write one byte of data to the device, e.g. URB 2167: 40 0c 85 00 00 00 01 00 (data: 0x11) request is 0x0c, value is 0x85 The message 1) seems to be always followed by 2), 3) or 4). So maybe it's used to select the register (or function) and message 2) is used to read data while 3) is for sending data? 4) Control messages that write 8 bytes of data to the device, e.g. URB 2170: 40 04 82 00 00 00 08 00 (data: 01 11 00 00 06 00 00 00) request is 0x04, value is 0x82 Message 4) seems to be used to initiate a bulk transfer (see below). Byte 5 of the data (06 in this example) and byte 6 (little-endian) is the number of bytes that will be transferred in the following bulk transfer. I don't know what the second byte of data (0x11) means. It's sometimes 0x11, sometimes 0x00. The fisrt byte of data seems to describe the direction of the following bulk-transfer: 01 is out (write), 00 is in (read). 5) Control messages that write 1 byte of data to the device, e.g. URB 3800: 40 0c 8b 00 00 00 01 00 (data: 0x00) request is 0x0c, value is 0x8b 6) Control messages that read 1 byte of data to the device, e.g. URB 3872: c0 0c 8a 00 00 00 01 00 (data: 0x73) request is 0x0c, value is 0x8a I'm not sure about those ones (5) and 6)), they only appear at the end of the scan and some URBs are missing here. -------------------------- bulk messages ------------------------------ 7) bulk-out tranfers: Different sizes are used. They are initiated by control message 4). Maybe the smaller buffers are used to set parameters, the bigger ones to set gamma tables or calibration. 8) bulk-in transfers: Different sizes. Seems to be split to more than one message sometimes. Looks like the windows driver used fixed buffer sizes of e.g. 0x500 bytes, 0x100 bytes or 0x40 bytes. If the number of bytes that should be read doesn't fit into that sizes, multiple buffers are read. E.g. to read 0x102 bytes, 0x100 and 0x40 are read and the last buffer is only filled with 2 bytes. Probably used for calibration and reading scan data. Ok, I think you now have enough information for more digging what that actually means. Bye, Henning From henning at meier-geinitz.de Sat Jul 5 12:26:44 2003 From: henning at meier-geinitz.de (Henning Meier-Geinitz) Date: Sat, 5 Jul 2003 13:26:44 +0200 Subject: [sane-devel] Canon D660u uses Merlin chipset (-->plustek?) Message-ID: <20030705112644.GC26626@meier-geinitz.de> Hi, Just for the record: I got a report from a user that his Canon D660u uses a National Semiconductor LM9832CCVJD chip (and a EliteMT M11B416256A 4 Mbit RAM). I guess that scanner may work with the plustek backends after adding it to plustek-devices.c. I've asked him to try that and am waiting for results. Details about that scanner: http://www.meier-geinitz.de/sane/misc/canon-d660u.txt Bye, Henning From jollyprince at juno.com Sat Jul 5 16:54:50 2003 From: jollyprince at juno.com (jollyprince at juno.com) Date: Sat, 5 Jul 2003 15:54:50 GMT Subject: [sane-devel] Canon D660u uses Merlin chipset (-->plustek?) Message-ID: <20030705.085526.506.280763@webmail03.lax.untd.com> I have a Visioneer 5800 with a Realtek RTS8801C chip. Without cooperation from either company, is there any hope of creating a backend for this product? What productive course of action can I take, if any? --- Henning Meier-Geinitz wrote: Hi, Just for the record: I got a report from a user that his Canon D660u uses a National Semiconductor LM9832CCVJD chip (and a EliteMT M11B416256A 4 Mbit RAM). I guess that scanner may work with the plustek backends after adding it to plustek-devices.c. I've asked him to try that and am waiting for results. Details about that scanner: http://www.meier-geinitz.de/sane/misc/canon-d660u.txt Bye, Henning _______________________________________________ Sane-devel mailing list Sane-devel at www.mostang.com http://www.mostang.com/mailman/listinfo/sane-devel From henning at meier-geinitz.de Sat Jul 5 17:14:58 2003 From: henning at meier-geinitz.de (Henning Meier-Geinitz) Date: Sat, 5 Jul 2003 18:14:58 +0200 Subject: [sane-devel] Canon D660u uses Merlin chipset (-->plustek?) In-Reply-To: <20030705.085526.506.280763@webmail03.lax.untd.com> References: <20030705.085526.506.280763@webmail03.lax.untd.com> Message-ID: <20030705161457.GE26626@meier-geinitz.de> Hi, On Sat, Jul 05, 2003 at 03:54:50PM +0000, jollyprince at juno.com wrote: > I have a Visioneer 5800 with a Realtek RTS8801C chip. We know, you have mentioned that fact more than once :-) But what's the connection to the article about the Canon D660u you are responding to? As you yoursef wrote, the visioneer 5800 uses a Realtek, not a National Semiconductor chip. > Without cooperation from either company, Have you already asked Realtek about programming information for that chip? What about Visioneer? > is there any hope of creating a backend for this product? What > productive course of action can I take, if any? Have you read the documentation you have been ponited, to? E.g. http://www.meier-geinitz.de/sane/misc/unsupported.html http://www.meier-geinitz.de/sane/misc/develop.html and doc/backend-writing.txt? In your case I'd start with trying to capture the USB commands send to the scanner using one of the methods explained in the docu. You know that the HP ScanJet 3530C uses the same (similar?) chip? See http://www.cscs.ch/~tack/hp3530.html . Maybe you can work together? Bye, Henning From gene.heskett at verizon.net Sat Jul 5 18:29:58 2003 From: gene.heskett at verizon.net (Gene Heskett) Date: Sat, 5 Jul 2003 13:29:58 -0400 Subject: [sane-devel] Re: Visioneer 5800? In-Reply-To: <20030705.085526.506.280763@webmail03.lax.untd.com> References: <20030705.085526.506.280763@webmail03.lax.untd.com> Message-ID: <200307051329.58556.gene.heskett@verizon.net> On Saturday 05 July 2003 11:54, jollyprince at juno.com wrote: >I have a Visioneer 5800 with a Realtek RTS8801C chip. Without > cooperation from either company, is there any hope of creating a > backend for this product? What productive course of action can I > take, if any? I'd hate to rain on your parade, but even if you do get it working with sane, if you have a warranty problem with that unit, do NOT even mention to the store clerk or on the warranty form that you have been using it with linux. If you do, the claim will be denied out of hand because that is a memorex house branded unit, and memorex is one of the worst linux haters about. In my case, even though I could demo that it didn't work on a windows box either, the claim was denied because I'm honest and I'd mentioned linux. Something linux did wrecked it, nothing to do with the lightning strike that took out its parallel port, was their response. The fact thay I also lost a modem and a telephone in the same strike somehow wasn't germain to my claim. If you just bought it, return it and get an Epson, like the 1260u, which I think works just fine, my 1250u sure does. After that experience (they were snotty has all get out on the phone), I haven't bought anything I could trace back to memorex. Their loss IMO, and my 'something learned' for the day. [snip Hennings msg since my reply is OT] -- Cheers, Gene AMD K6-III at 500mhz 320M Athlon1600XP at 1400mhz 512M 99.26% setiathome rank, not too shabby for a WV hillbilly Yahoo.com attornies please note, additions to this message by Gene Heskett are: Copyright 2003 by Maurice Eugene Heskett, all rights reserved. From scott at scottsavarese.com Sat Jul 5 19:49:44 2003 From: scott at scottsavarese.com (Scott Savarese) Date: Sat, 5 Jul 2003 14:49:44 -0400 (EDT) Subject: [sane-devel] xsane cutting off part of scan Message-ID: <35896.216.220.98.209.1057430984.squirrel@mail.scottsavarese.com> I have an HP PSC 2210 printer working with xsane. I have it scanning, but I am having a problem scanning full size papers. If a page is 8.5x11 inches, it only scans the left 8 inches cutting off the right .5 inches. Is there a way to fix this? Let me know what information you need to help. I can send my xsanerc and the printer config file if you'd like. Thanks, Scott From till.kamppeter at gmx.net Sat Jul 5 20:21:16 2003 From: till.kamppeter at gmx.net (Till Kamppeter) Date: Sat, 05 Jul 2003 21:21:16 +0200 Subject: [sane-devel] xsane cutting off part of scan In-Reply-To: <35896.216.220.98.209.1057430984.squirrel@mail.scottsavarese.com> References: <35896.216.220.98.209.1057430984.squirrel@mail.scottsavarese.com> Message-ID: <3F07252C.7070209@gmx.net> You should also post on the HPOJ mailing list (see http://hpoj.sf.net/) so that the developers of HPOJ, the actual driver for this device, see your report. Till Scott Savarese wrote: > I have an HP PSC 2210 printer working with xsane. I have it scanning, but > I am having a problem scanning full size papers. If a page is 8.5x11 > inches, it only scans the left 8 inches cutting off the right .5 inches. > Is there a way to fix this? > > Let me know what information you need to help. I can send my xsanerc and > the printer config file if you'd like. > From tomf at sjpc.org Sat Jul 5 21:03:50 2003 From: tomf at sjpc.org (Thomas Frayne) Date: 05 Jul 2003 13:03:50 -0700 Subject: [sane-devel] HP 7450C ... Try hpusbscsi - scanlog2 In-Reply-To: <20030705.004101.640910003.rene.rebe@gmx.net> References: <1057003598.4579.52.camel@localhost.localdomain> <20030704.012407.607960576.rene.rebe@gmx.net> <1057331386.3092.1002.camel@localhost.localdomain> <20030705.004101.640910003.rene.rebe@gmx.net> Message-ID: <1057435429.15799.40.camel@localhost.localdomain> On Fri, 2003-07-04 at 15:41, Rene Rebe wrote: > Hi, > .. > > (sorry screen prevents me from attaching in mew ... - so here is the > patch inlined - I hope you have a good mailer ...) > > Index: avision.c > =================================================================== > RCS file: /cvsroot/external/sane/sane-backends/backend/avision.c,v > retrieving revision 1.21 > diff -u -r1.21 avision.c > --- avision.c 9 May 2003 01:36:20 -0000 1.21 > +++ avision.c 4 Jul 2003 22:29:44 -0000 > @@ -82,6 +82,9 @@ > All the many other beta-tester and debug-log sender ;-) > > ChangeLog: > + 2003-06-30: Ren? Rebe > + * fixed big-endian issues > + > 2003-05-08: Ren? Rebe > * fixed crash when config is missing reported by Franz Bakan > > @@ -473,7 +476,7 @@ > #endif > > #define BACKEND_NAME avision > -#define BACKEND_BUILD 70 /* avision backend BUILD version */ > +#define BACKEND_BUILD 71 /* avision backend BUILD version */ ... I copied the patch into /home/tom/rh9-downloads/sane-backends-1.0.12/backend/avision.diff and executed [tom at localhost gnucashShadow]$ cd ~/rh9-downloads/sane-backends-1.0.12/backend [tom at localhost backend]$ patch -p0 < ./avision.diff can't find file to patch at input line 8 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |Index: avision.c |=================================================================== |RCS file: /cvsroot/external/sane/sane-backends/backend/avision.c,v |retrieving revision 1.21 |diff -u -r1.21 avision.c |--- avision.c 9 May 2003 01:36:20 -0000 1.21 |+++ avision.c 4 Jul 2003 22:29:44 -0000 -------------------------- File to patch: avision.c patching file avision.c patch: **** malformed patch at line 9: All the many other beta-tester and debug-log sender ;-) [tom at localhost backend]$ I have almost no experience with patch. What went wrong? From jonesrf1 at qwest.net Sat Jul 5 14:22:35 2003 From: jonesrf1 at qwest.net (Randolph Jones) Date: Sat, 05 Jul 2003 06:22:35 -0700 Subject: [sane-devel] print margin with pbmtolj Message-ID: <3F06D11B.1090903@qwest.net> I am using scanimage with a fujitsu sp15c with adf to scan. I am trying to print with pbmtolj -resolution 300 | lpr -Plpraw lpraw is a raw input queue on the server The output looks pretty good, but the image is printed slightly to the right of the original. I am losing the right-side vertical line on each page, and the left margin is too wide. I dont get this problem with pnmtops, but that output is too rough to use Where can I adjust the parameters to fix this? TIA rfjones From henning at meier-geinitz.de Sat Jul 5 23:38:28 2003 From: henning at meier-geinitz.de (Henning Meier-Geinitz) Date: Sun, 6 Jul 2003 00:38:28 +0200 Subject: [sane-devel] Canon D660u uses Merlin chipset (-->plustek?) In-Reply-To: <20030705.130617.16315.692212@webmail02.lax.untd.com> References: <20030705.130617.16315.692212@webmail02.lax.untd.com> Message-ID: <20030705223828.GF26626@meier-geinitz.de> Hi, On Sat, Jul 05, 2003 at 08:06:02PM +0000, jollyprince at juno.com wrote: >> We know, you have mentioned that fact more than once :-) >> But what's the connection to the article about the Canon D660u you are >> responding to? As you yoursef wrote, the visioneer 5800 uses a >> Realtek, not a National Semiconductor chip. > I had been advised to model any backend that I would write after the > Plustek project, that's all. I think that was because we thought your scanner is based on the E5 chipset which was thought to be a National Semiconductor LM9832. But that is not true, it's realtek. So the plustek backend is not of much use. You can use it as a general example of an USB backend but not much more. It's pretty complex so looking at a simpler backend like ma1509 may make more sense. >> Have you already asked Realtek about programming information for that >> chip? What about Visioneer? > No, i was led to believe this was hopeless. Are you saying , not necessarily so. I don't know any of these companies. When I contacted Mustek, I got good responses, even the Windows source code for some scanners. Some other manufacturers also cooperate so I would just try it. It may be difficult to get the right contact addresses, however. >> Have you read the documentation you have been ponited, to? E.g. >> http://www.meier-geinitz.de/sane/misc/unsupported.html >> http://www.meier-geinitz.de/sane/misc/develop.html >> and >> doc/backend-writing.txt? > > Yes, I'm currently in a state of information overload and I'm saving > everything I can get my hands on. Right now, I'm trying to be more > productive than that. I'm at the crossroads. I may well be better > served to go shopping for a different scanner, That will be definitely easier. > but I simply don't know at this point. With the information and data > I already have maybe I can start, but I just don't know for sure. > I've never done anything like this. > >> In your case I'd start with trying to capture the USB commands send to >> the scanner using one of the methods explained in the docu. > > Now you're talking! Where do I start? Well, I just wrote it in the above sentence. Capture the USB data. The methods how to do that are mentioned in the develop.html web page. Also have a look at the recent discussions on sane-devel on the hp2300 scanner. While that scanner is different, the guy who wants to write the backend also captures the commands the windows driver sends to the scanner. Bye, Henning From franb at ibelgique.com Sun Jul 6 12:13:56 2003 From: franb at ibelgique.com (franb at ibelgique.com) Date: Sun, 6 Jul 2003 11:13:56 GMT Subject: [sane-devel] Access to the ressource has been denied Message-ID: <200307061113.3844@th00.opsion.fr> Hello, I'm getting this message whenever I try use my scanner (it's a Primax colorado Direct 300). It's getting listed without any problems by scanimage -L, but when I try for instance scanimage --lamp-on, I'm getting sane_start:access to the resource has been denied. It's the same when I try to connect via a frontend (xscanimage,xsane). The frontend starts, it recognises the scanner but when I click preview or lamp-on, I get always the same message error. I've never had this problem before on a Mandrake 8.2 or 9.0. It's only since I've upgraded to 9.1 that this happens. Connnecting via saned changes nothing. Off course I tried to connect as root, to chmod 777 on /dev/lp0, to setowner and group to root in saned.conf and to set all the permissions in the net.conf and dll.conf files to localhost. If someone could help, or even give a hint, I would be very thankful. Franek From henning at meier-geinitz.de Sun Jul 6 12:30:36 2003 From: henning at meier-geinitz.de (Henning Meier-Geinitz) Date: Sun, 6 Jul 2003 13:30:36 +0200 Subject: [sane-devel] Access to the ressource has been denied In-Reply-To: <200307061113.3844@th00.opsion.fr> References: <200307061113.3844@th00.opsion.fr> Message-ID: <20030706113036.GB1534@meier-geinitz.de> Hi, On Sun, Jul 06, 2003 at 11:13:56AM +0000, franb at ibelgique.com wrote: > I'm getting this message whenever I try use my > scanner (it's a Primax colorado Direct 300). So you are using the external primax backend? > It's getting listed without any problems by scanimage -L, but when I > try for instance scanimage --lamp-on, I'm getting sane_start:access > to the resource has been denied. Usually you get debug messages by setting SANE_DEBUG_BACKENDNAME, so in your case try SANE_DEBUG_PRIMAX=255 scanimage --lamp-on > It's the same when I try to connect via a frontend > (xscanimage,xsane). The frontend starts, it > recognises the scanner but when I click preview or > lamp-on, I get always the same message error. > I've never had this problem before on a Mandrake 8.2 > or 9.0. It's only since I've upgraded to 9.1 that > this happens. What has changed between these versions? Kernel and/or the version of the primax backend? > Connnecting via saned changes nothing. > Off course I tried to connect as root, to chmod 777 > on /dev/lp0, That's the device for the printer, not the parallel port. > to setowner and group to root in > saned.conf You can't set any oweners or groups in saned.conf. > and to set all the permissions in the > net.conf and dll.conf files to localhost. Huh? You can't set any permissions in these files. > If someone could help, or even give a hint, I would > be very thankful. Maybe the backend doesn't like that you have the ppdev module loaded? Bye, Henning From rene.rebe at gmx.net Sun Jul 6 15:21:30 2003 From: rene.rebe at gmx.net (Rene Rebe) Date: Sun, 06 Jul 2003 16:21:30 +0200 (CEST) Subject: [sane-devel] HP 7450C ... Try hpusbscsi - scanlog2 In-Reply-To: <1057435429.15799.40.camel@localhost.localdomain> References: <1057331386.3092.1002.camel@localhost.localdomain> <20030705.004101.640910003.rene.rebe@gmx.net> <1057435429.15799.40.camel@localhost.localdomain> Message-ID: <20030706.162130.730557932.rene.rebe@gmx.net> Hi, On: 05 Jul 2003 13:03:50 -0700, Thomas Frayne wrote: > I copied the patch into > /home/tom/rh9-downloads/sane-backends-1.0.12/backend/avision.diff > and executed > [tom at localhost gnucashShadow]$ cd > ~/rh9-downloads/sane-backends-1.0.12/backend > [tom at localhost backend]$ patch -p0 < ./avision.diff > can't find file to patch at input line 8 > Perhaps you used the wrong -p or --strip option? > The text leading up to this was: > -------------------------- > |Index: avision.c > |=================================================================== > |RCS file: /cvsroot/external/sane/sane-backends/backend/avision.c,v > |retrieving revision 1.21 > |diff -u -r1.21 avision.c > I have almost no experience with patch. What went wrong? The patch directly modifies avision.c, so you need to be in the backend directory. I hope you saved the file with you mail application - otherwise you might get problems due to whitespace / tab convertions ... If this fails I'll send an easier to apply and tested patch tomorrow ... Sincerely yours, Ren? Rebe - ROCK Linux stable release maintainer -- Ren? Rebe - Europe/Germany/Berlin rene at rocklinux.org rene.rebe at gmx.net http://www.rocklinux.org http://www.rocklinux.org/people/rene http://gsmp.tfh-berlin.de/gsmp http://gsmp.tfh-berlin.de/rene From tomf at sjpc.org Sun Jul 6 17:22:12 2003 From: tomf at sjpc.org (Thomas Frayne) Date: 06 Jul 2003 09:22:12 -0700 Subject: [sane-devel] HP 7450C ... Try hpusbscsi - scanlog2 In-Reply-To: <20030706.162130.730557932.rene.rebe@gmx.net> References: <1057331386.3092.1002.camel@localhost.localdomain> <20030705.004101.640910003.rene.rebe@gmx.net> <1057435429.15799.40.camel@localhost.localdomain> <20030706.162130.730557932.rene.rebe@gmx.net> Message-ID: <1057508531.15799.391.camel@localhost.localdomain> On Sun, 2003-07-06 at 07:21, Rene Rebe wrote: > Hi, > > On: 05 Jul 2003 13:03:50 -0700, > Thomas Frayne wrote: > > > I copied the patch into > > /home/tom/rh9-downloads/sane-backends-1.0.12/backend/avision.diff > > and executed > > [tom at localhost gnucashShadow]$ cd > > ~/rh9-downloads/sane-backends-1.0.12/backend > > [tom at localhost backend]$ patch -p0 < ./avision.diff > > can't find file to patch at input line 8 > > Perhaps you used the wrong -p or --strip option? > > The text leading up to this was: > > -------------------------- > > |Index: avision.c > > |=================================================================== > > |RCS file: /cvsroot/external/sane/sane-backends/backend/avision.c,v > > |retrieving revision 1.21 > > |diff -u -r1.21 avision.c > > > I have almost no experience with patch. What went wrong? > > The patch directly modifies avision.c, so you need to be in the > backend directory. > > I hope you saved the file with you mail application - otherwise you > might get problems due to whitespace / tab convertions ... > > If this fails I'll send an easier to apply and tested patch tomorrow > ... > > Sincerely yours, > Ren? Rebe > - ROCK Linux stable release maintainer > > -- > Ren? Rebe - Europe/Germany/Berlin > rene at rocklinux.org rene.rebe at gmx.net > http://www.rocklinux.org http://www.rocklinux.org/people/rene > http://gsmp.tfh-berlin.de/gsmp http://gsmp.tfh-berlin.de/rene > I was in the backend directory and had gotten past the problem you quoted. What I was asking about was: File to patch: avision.c patching file avision.c patch: **** malformed patch at line 9: All the many other beta-tester and debug-log sender ;-) I don't know why the patch was malformed. The text it was complaining about was: Index: avision.c =================================================================== RCS file: /cvsroot/external/sane/sane-backends/backend/avision.c,v retrieving revision 1.21 diff -u -r1.21 avision.c --- avision.c 9 May 2003 01:36:20 -0000 1.21 +++ avision.c 4 Jul 2003 22:29:44 -0000 @@ -82,6 +82,9 @@ All the many other beta-tester and debug-log sender ;-) ChangeLog: + 2003-06-30: Ren? Rebe + * fixed big-endian issues + I am leaving for a trip tomorrow. Back at the end of the week. Thanks, Tom Frayne From gerhard at gjaeger.de Sun Jul 6 19:41:33 2003 From: gerhard at gjaeger.de (Jaeger, Gerhard) Date: Sun, 6 Jul 2003 20:41:33 +0200 Subject: [sane-devel] Canon D660u uses Merlin chipset (-->plustek?) In-Reply-To: <20030705112644.GC26626@meier-geinitz.de> References: <20030705112644.GC26626@meier-geinitz.de> Message-ID: <200307062041.33440.gerhard@gjaeger.de> Hi, according to the info, I'll add the scanner to the device list... What are the specs for this scanner (resolution, etc...)? AFAIK this is a CCD device, is that correct? Are there any volunteers to test this scanner? Gerhard On Samstag, 5. Juli 2003 13:26, Henning Meier-Geinitz wrote: > Hi, > > Just for the record: I got a report from a user that his Canon D660u > uses a National Semiconductor LM9832CCVJD chip (and a EliteMT > M11B416256A 4 Mbit RAM). I guess that scanner may work with the > plustek backends after adding it to plustek-devices.c. I've asked him > to try that and am waiting for results. > > Details about that scanner: > http://www.meier-geinitz.de/sane/misc/canon-d660u.txt > > Bye, > Henning > _______________________________________________ > Sane-devel mailing list > Sane-devel at www.mostang.com > http://www.mostang.com/mailman/listinfo/sane-devel From gerhard at gjaeger.de Sun Jul 6 20:10:26 2003 From: gerhard at gjaeger.de (Jaeger, Gerhard) Date: Sun, 6 Jul 2003 21:10:26 +0200 Subject: [sane-devel] canon lide 20 + mac os x + usb In-Reply-To: <20030703115742.GC12717@meier-geinitz.de> References: <20030701085315.GB3290@meier-geinitz.de> <0D339075-AC53-11D7-9713-0003931DA274@casino.uni-stuttgart.de> <20030703115742.GC12717@meier-geinitz.de> Message-ID: <200307062110.26960.gerhard@gjaeger.de> Hi, On Donnerstag, 3. Juli 2003 13:57, Henning Meier-Geinitz wrote: [SNIPSNAP] > > With the patch the scanner now does what it is supposed to, i.e. it > > scanes the area that I specify, but the resulting picture is just > > garbage. In color mode there is a faint resemblance with the original > > (though there are reddisch vertical stripes), while in the other modes, > > there is either black only, or also garbage (vertical stripes). > > No idea about those problems. Maybe the plustek maintainer has seen > that before? > That's why I'm writing about "poor picture quality", but in the meantime, the quality is not that bad to say "it's garbage". It might be, that there are endian problems left. Gerhard From karsten.festag at gmx.de Sun Jul 6 21:35:02 2003 From: karsten.festag at gmx.de (Karsten Festag) Date: Sun, 6 Jul 2003 22:35:02 +0200 Subject: [sane-devel] Re: Microtek SlimScan C6 on Mac OS X In-Reply-To: <7E65E923-AE87-11D7-BDC5-0003934EC2A4@headsail.net> References: <7E65E923-AE87-11D7-BDC5-0003934EC2A4@headsail.net> Message-ID: <200307062235.02087.karsten.festag@gmx.de> Hi Dave, unfortunately I have no experiences with OS X and SANE. But I will cc this mail to the SANE mailing list, hopefully someone can tell you some more details. But I'm not sure if you can get your scanner to work out of the box because there needs to be a piece of software that translates the USB signals to SCSI commands that are used in the scanner software (backend). In Linux there is a kernel module (microtek.c); I don't know if there is something similar under OS X. ( SANE experts, please comment on this...) regards, Karsten On Saturday 05 July 2003 03:24, you wrote: > Mr. Festag - > > I am not a developer, so I don't understand most of what I read on the > SANE web site, but I am trying to use a Microtek SlimScan C6 (USB) on a > Macintosh running OS X 10.2.6. I can scan in Classic mode, but I would > prefer to scan in OS X. Are you aware of any user-friendly front end > that will do this? If there's an application I can run through the UNIX > terminal, I suppose I could do that as well. > > Thank you, > > - Dave Hudson > > -- > Dave and Wendy Hudson > dwhudson at headsail.net > www.dwhudson.net From franb at ibelgique.com Mon Jul 7 00:07:01 2003 From: franb at ibelgique.com (franb at ibelgique.com) Date: Sun, 6 Jul 2003 23:07:01 GMT Subject: Rep:Re: [sane-devel] Access to the ressource has been denied Message-ID: <200307062307.0159@th00.opsion.fr> Henning, thanks for your quick reply. >So you are using the external primax backend? Yes I am, http://px-backend.sourceforge.net/ >> It's getting listed without any problems by scanimage -L, >but when I >> try for instance scanimage --lamp-on, I'm getting >sane_start:access >> to the resource has been denied. >Usually you get debug messages by setting >SANE_DEBUG_BACKENDNAME, so >in your case try >SANE_DEBUG_PRIMAX=255 scanimage --lamp-on Ok, I did it, but this gives no other results (it still only prints the error message). I tried SANE_DEBUG_DLL and I've got something there. But IMHO nothing seemed strange. I can send the results if someone wants me to do so. >>It's only since I've upgraded to 9.1 that >> this happens. >What has changed between these versions? Kernel and/or the >version of the primax backend? Maybe the kernel, but I'm not sure. If there was a change it was a minor one. The backend did certainly not change. >> Connnecting via saned changes nothing. >> Off course I tried to connect as root, to chmod 777 >> on /dev/lp0, >That's the device for the printer, not the parallel port. scanimage -L shows me this, so I assume it's right what I'm doing. Anyway it worked before like this. >Maybe the backend doesn't like that you have the ppdev >module loaded? Sorry, I'm not an expert. Could you explain this to me? Thanks for your help Franek From priyag at newgen.co.in Mon Jul 7 05:57:06 2003 From: priyag at newgen.co.in (priyag) Date: Mon, 7 Jul 2003 10:27:06 +0530 Subject: [sane-devel] problem while detecting USB scanner Message-ID: <007101c34444$374c2d70$5505a8c0@priya> Hi , I have a avision 600U USB scanner. But sane-find-scanner is not able to find that scanner. i m using sane backend 1.0.12 and kernel version 2.4.18. Do i need to configire or install something for running the USB scanner? Regards, Priya Gupta -------------- next part -------------- An HTML attachment was scrubbed... URL: From henning at meier-geinitz.de Mon Jul 7 13:55:50 2003 From: henning at meier-geinitz.de (Henning Meier-Geinitz) Date: Mon, 7 Jul 2003 14:55:50 +0200 Subject: Rep:Re: [sane-devel] Access to the ressource has been denied In-Reply-To: <200307062307.0159@th00.opsion.fr> References: <200307062307.0159@th00.opsion.fr> Message-ID: <20030707125550.GA8571@meier-geinitz.de> Hi, On Sun, Jul 06, 2003 at 11:07:01PM +0000, franb at ibelgique.com wrote: > >> to the resource has been denied. > >Usually you get debug messages by setting > >SANE_DEBUG_BACKENDNAME, so > >in your case try > >SANE_DEBUG_PRIMAX=255 scanimage --lamp-on > > Ok, I did it, but this gives no other results (it > still only prints the error message). I tried > SANE_DEBUG_DLL and I've got something there. But IMHO > nothing seemed strange. I can send the results if > someone wants me to do so. You are right. The promax backend doesn't seem to have any debug messages. > >>It's only since I've upgraded to 9.1 that > >> this happens. > >What has changed between these versions? Kernel > and/or the >version of the primax backend? > > Maybe the kernel, but I'm not sure. If there was a > change it was a minor one. The backend did certainly > not change. Does the command line program work (primax_scan)? Have you changed the settings of your parallel port, e.g. ECP to EPP in the BIOS? Or added a printer? > >> Connnecting via saned changes nothing. > >> Off course I tried to connect as root, to chmod > 777 > >> on /dev/lp0, > > >That's the device for the printer, not the parallel > port. > scanimage -L shows me this, so I assume it's right > what I'm doing. Anyway it worked before like this. Ok. Usually /dev/lp0 is the pronter and /dev/parport is the raw parallel port or /dev/port if the ppdev module is not loaded. But I'm neither a parport expert nor I know the primax backend so maybe /dev/lp0 is right. > >Maybe the backend doesn't like that you have the > ppdev >module loaded? > > Sorry, I'm not an expert. Could you explain this to > me? I don't know exactly, how the primax backend accesses the parallel port. There are some ways to do that: 1) Using assembler (inb, outb) and access the raw port directly 2) Using /dev/port These two need root permissions 3) Using /dev/parport0 I think using that way you don't need root permissions but the kernel must have the ppdev driver (modprobe ppdev). So maybe you get trouble when you mix these methods. If you don't find details in the docu, try to contact the authors of the promax backend. I'm not sure if they read this list. Bye, Henning From tomf at sjpc.org Mon Jul 7 14:05:57 2003 From: tomf at sjpc.org (Thomas Frayne) Date: 07 Jul 2003 06:05:57 -0700 Subject: [sane-devel] HP 7450C ... Try hpusbscsi - scanlog2 In-Reply-To: <20030706.162130.730557932.rene.rebe@gmx.net> References: <1057331386.3092.1002.camel@localhost.localdomain> <20030705.004101.640910003.rene.rebe@gmx.net> <1057435429.15799.40.camel@localhost.localdomain> <20030706.162130.730557932.rene.rebe@gmx.net> Message-ID: <1057583156.15799.405.camel@localhost.localdomain> On Sun, 2003-07-06 at 07:21, Rene Rebe wrote: > Hi, > > On: 05 Jul 2003 13:03:50 -0700, > Thomas Frayne wrote: > > > I copied the patch into > > /home/tom/rh9-downloads/sane-backends-1.0.12/backend/avision.diff > > and executed > > [tom at localhost gnucashShadow]$ cd > > ~/rh9-downloads/sane-backends-1.0.12/backend > > [tom at localhost backend]$ patch -p0 < ./avision.diff > > can't find file to patch at input line 8 > > Perhaps you used the wrong -p or --strip option? > > The text leading up to this was: > > -------------------------- > > |Index: avision.c > > |=================================================================== > > |RCS file: /cvsroot/external/sane/sane-backends/backend/avision.c,v > > |retrieving revision 1.21 > > |diff -u -r1.21 avision.c > > > I have almost no experience with patch. What went wrong? > > The patch directly modifies avision.c, so you need to be in the > backend directory. > > I hope you saved the file with you mail application - otherwise you > might get problems due to whitespace / tab convertions ... > > If this fails I'll send an easier to apply and tested patch tomorrow > ... > > Sincerely yours, > Ren? Rebe > - ROCK Linux stable release maintainer > > -- > Ren? Rebe - Europe/Germany/Berlin > rene at rocklinux.org rene.rebe at gmx.net > http://www.rocklinux.org http://www.rocklinux.org/people/rene > http://gsmp.tfh-berlin.de/gsmp http://gsmp.tfh-berlin.de/rene > I was in the backend directory and had gotten past the problem you quoted. What I was asking about was: File to patch: avision.c patching file avision.c patch: **** malformed patch at line 9: All the many other beta-tester and debug-log sender ;-) I don't know why the patch was malformed. The text it was complaining about was: Index: avision.c =================================================================== RCS file: /cvsroot/external/sane/sane-backends/backend/avision.c,v retrieving revision 1.21 diff -u -r1.21 avision.c --- avision.c 9 May 2003 01:36:20 -0000 1.21 +++ avision.c 4 Jul 2003 22:29:44 -0000 @@ -82,6 +82,9 @@ All the many other beta-tester and debug-log sender ;-) ChangeLog: + 2003-06-30: Ren? Rebe + * fixed big-endian issues + I am leaving for a trip tomorrow. Back at the end of the week. Thanks, Tom Frayne P.S. I tried editing the first few lines of the patch to make them conform to the contents of the same lines in avision.c. The malformed patch message then refers to the first line I did not edit. I think that the problem is that my mail reader (Evolution) changed the font and spacing. It may be necessary to send the patch as an attachment. I am leaving for my trip in a couple of hours. Tom Frayne From haidara at gucmed.com Tue Jul 8 00:12:55 2003 From: haidara at gucmed.com (Ayman Haidar) Date: Mon, 7 Jul 2003 19:12:55 -0400 Subject: [sane-devel] scanner recommendations Message-ID: <200307071910.49769.haidara@gucmed.com> Hello, I am asking for recommendations on a scanner that I will use in the office to scan test documents, I am expecting to scan about 100pages/day. obviously I want one that has ADF and works well with sane. Somebody recommended Fujitsu scanners, I know the backend seems to be in Beta which is fine but I would like to hear more recommendations. Thanks Ayman From dave at i-r-labs.com Tue Jul 8 02:03:10 2003 From: dave at i-r-labs.com (David A Iacobellis) Date: Mon, 7 Jul 2003 21:03:10 -0400 Subject: [sane-devel] SuSE 8.2 and umax scanner Message-ID: <200307072103.10973.dave@i-r-labs.com> Hello, This is the first time I have posted to this list. I read in your June list that another person is having the exact same problem with SuSE 8.2 that I am having. I am also using an adaptec 2904 card with a umax 1200s scanner. Each time I have tried to obtain a preview either with xsane or kooka my system will lock up tight forcing me to power down (sort of reminds me of my windows days). I am getting the same resmgr messages prior to the system lockup as the other person but no scsi error message. Did anybody figure out what the problem is and how to fix it? SuSE 8.2 uses sane 1.0.10 -36. SuSE has been very uncooperative in helping me solve this issue and seeing the exact same problem from another SuSE 8.2 user makes me really think this is a SuSE config problem. Also, everything worked great with SuSE 8.1 and 8.0. Please let me know. Dave From psfales at lucent.com Tue Jul 8 02:55:11 2003 From: psfales at lucent.com (Peter Fales) Date: Mon, 7 Jul 2003 20:55:11 -0500 Subject: [sane-devel] Microtek Pagewiz In-Reply-To: <20030701130008.26394d3d.mpol@gmx.net> References: <20030628163756.GA4381@lucent.com> <20030701130008.26394d3d.mpol@gmx.net> Message-ID: <20030708015511.GA25982@lucent.com> On Tue, Jul 01, 2003 at 01:00:08PM +0200, Marcel Pol wrote: > On Sat, 28 Jun 2003 11:37:56 -0500 > Peter Fales wrote: > > Anyone know anything about Microtek Pagewiz Color Sheetfed Scanner? > It worked for me, but I haven't used it in about 2 or 3 years. ... > But if you want to, you can use a scsi card as well > to connect it to, you would just need to buy another cable for that. Just following up for the record. I got the scanner today, and it works great using the Microtek backend. I'm using the direct SCSI connection, so I don't have to deal with ppSCSI and it's faster than my flatbed Microtek E6. The only minor problem I've found is that it takes a SCSI error if you try to scan more than the actual paper size (e.g. you tell it to scan 12 inches when the paper is only 11 inches long) -- Peter Fales Lucent Technologies, Room 1C-436 N9IYJ 2000 N Naperville Rd PO Box 3033 internet: psfales at lucent.com Naperville, IL 60566-7033 work: (630) 979-8031 From aneeshmraj at hotmail.com Wed Jul 9 06:48:58 2003 From: aneeshmraj at hotmail.com (aneesh m raj) Date: Wed, 9 Jul 2003 11:18:58 +0530 Subject: [sane-devel] How to print color image Message-ID: Hi all, Im developing a frontend and Im confused with the SANE_Option_Descriptor structure. How can I set to scan the image in RGB. Thanks Aneesh -------------- next part -------------- An HTML attachment was scrubbed... URL: From ahg at servidor.unam.mx Wed Jul 9 06:56:01 2003 From: ahg at servidor.unam.mx (ahg at servidor.unam.mx) Date: Wed, 09 Jul 2003 00:56:01 -0500 (CDT) Subject: [sane-devel] UMAX Astra 610P on Debian Woody Message-ID: <1057730161.3f0bae7125c67@www.correo.unam.mx> Hi, I'm writing to ask what's the best way (if there is a way) to use a UMAX Astra 610P scanner with Debian Woody. This device is listed as "don't work (yet)" at http://panda.mostang.com/sane/sane-mfgs.html#UMAX I guess I'm hoping that "don't work" might be a bit out of date and that there's _some_ way to make it work "now". I could... ...install sane the latest SANE binaries as described at http://people.debian.org/~aurel32/sane.html ...or ...get an unstable source of sane-umax_pp ...or ...anything else you might recommend. I don't mind if there are a few hoops to jump through to get this working. However, the box and the scanner aren't mine, and I have to leave them in relatively good working order for non-techincal GNU/Linux newbies, so any solution has to be relatively low-maintenance. Thanks in advance for your help, Andrew P.S. If this works, will I be able to connect a printer to the scaner's "to printer" port? P.P.S. The machine also has Win 98 installed and the scanner works OK under that "operating system"... so I suppose I might be able to make it work under Wine... though if that's the way to go I'd appreciate one or two brief pointers as to where to start... Thanks again. ------------------------------------------------- Obt?n tu correo en www.correo.unam.mx UNAMonos Comunic?ndonos From henning at meier-geinitz.de Wed Jul 9 10:27:53 2003 From: henning at meier-geinitz.de (Henning Meier-Geinitz) Date: Wed, 9 Jul 2003 11:27:53 +0200 Subject: [sane-devel] How to print color image In-Reply-To: References: Message-ID: <20030709092753.GD1761@meier-geinitz.de> Hi, On Wed, Jul 09, 2003 at 11:18:58AM +0530, aneesh m raj wrote: > Im developing a frontend and Im confused with the > SANE_Option_Descriptor structure. How can I set to scan the image in > RGB. You (as the frontend programmer) don't do that. Instead the user sets the option that represents the scan mode as he likes. Usually this option is named "mode" and is a string list with values like "Color" or "Gray". Keep in mind that this option needn't exist and even if it exists, there may not be a color mode. Bye, Henning From henning at meier-geinitz.de Wed Jul 9 10:35:46 2003 From: henning at meier-geinitz.de (Henning Meier-Geinitz) Date: Wed, 9 Jul 2003 11:35:46 +0200 Subject: [sane-devel] problem while detecting USB scanner In-Reply-To: <007101c34444$374c2d70$5505a8c0@priya> References: <007101c34444$374c2d70$5505a8c0@priya> Message-ID: <20030709093546.GE1761@meier-geinitz.de> Hi, On Mon, Jul 07, 2003 at 10:27:06AM +0530, priyag wrote: > I have a avision 600U USB scanner. That scanner is listed as "untested" so I don't know if it works. > But sane-find-scanner is not able to find that scanner. In this case you probably haven't installed libusb or /proc/bus/usb is not set up correctly. See the man page sane-usb for details. > i m using sane backend 1.0.12 and kernel version 2.4.18. > Do i need to configire or install something for running the USB scanner? Since version 1.0.12 the avision backend makes use of libusb to access USB scanners. Before that version, a kernel module "hpusbscsi" was necessary. For details have a look at the archive of the sane-devel mailing list. There was a discussion about this topic during the lat one or two weeks. Bye, Henning From aanton at reversedhell.net Tue Jul 8 00:36:15 2003 From: aanton at reversedhell.net (Alin-Adrian Anton) Date: Tue, 08 Jul 2003 02:36:15 +0300 Subject: [sane-devel] freebsd parallel port scanner Message-ID: <3F0A03EF.5060506@reversedhell.net> Hello guys, I was desperately searching the web, the mailing lists, etc, in order to find out if it is possible to use sane + freebsd + parallel port scanner. For my particular case, I have a Color Vivid Page Pro II which is fully supported by the plustek backened, as stable. They say for parallel port devices, a special kernel module needs to be installed. But I only found a linux kernel module, and I need to get it work on FreeBSD. I will really be thankfull for any help. I MUST use the scanner on freebsd! Also, if any of you knows a parallel device working on *BSD please tell me that too. I want to know if I really have to port the linux module. Best Regards, Anton Alin-Adrian. From priyag at newgen.co.in Wed Jul 9 14:59:48 2003 From: priyag at newgen.co.in (priyag) Date: Wed, 9 Jul 2003 19:29:48 +0530 Subject: [sane-devel] problem finding scanner through XSANE Message-ID: <001001c34622$5c08d160$5505a8c0@priya> Hi, I m running avision scanners on Red hat Linux 8.0. With scanimage its working fine. But when i try to scan through XSANE its not able to detect the scanner. I have XSANE version 0.90 installed on my system. Can anyone tell me what to do?? Regards Priya Gupta -------------- next part -------------- An HTML attachment was scrubbed... URL: From henning at meier-geinitz.de Wed Jul 9 18:55:27 2003 From: henning at meier-geinitz.de (Henning Meier-Geinitz) Date: Wed, 9 Jul 2003 19:55:27 +0200 Subject: [sane-devel] problem finding scanner through XSANE In-Reply-To: <001001c34622$5c08d160$5505a8c0@priya> References: <001001c34622$5c08d160$5505a8c0@priya> Message-ID: <20030709175527.GA6036@meier-geinitz.de> Hi, On Wed, Jul 09, 2003 at 07:29:48PM +0530, priyag wrote: > I m running avision scanners on Red hat Linux 8.0. With scanimage its > working fine. But when i try to scan through XSANE its not able to > detect the scanner. I have XSANE version 0.90 installed on my system. > > Can anyone tell me what to do?? Maybe you have installed two versions of sane-backends at the same time but in different directories? E.g. the one from your distribution and another self-compiled version? Make sure that you have only one version of the backends at the same time. Bye, Henning From aneeshmraj at hotmail.com Fri Jul 4 07:32:05 2003 From: aneeshmraj at hotmail.com (aneesh m raj) Date: Fri, 4 Jul 2003 12:02:05 +0530 Subject: [sane-devel] How to scan color images in UMAX 2000p Message-ID: Hi all, How can I scan color images using scanimage. I couldnt find any options. Thanks Aneesh -------------- next part -------------- An HTML attachment was scrubbed... URL: From mouse at Rodents.Montreal.QC.CA Wed Jul 9 22:49:06 2003 From: mouse at Rodents.Montreal.QC.CA (der Mouse) Date: Wed, 9 Jul 2003 17:49:06 -0400 (EDT) Subject: [sane-devel] How to scan color images in UMAX 2000p In-Reply-To: References: Message-ID: <200307092205.SAA05414@Sparkle.Rodents.Montreal.QC.CA> > How can I scan color images using scanimage. I couldnt find any > options. I think this is backend-dependent (indeed, it almost has to be, given the variety of things "color" can mean and the ways different scanners can implement them). With the teco1 backend, the one my scanner uses, it's "--mode color" (if memory serves). /~\ The ASCII der Mouse \ / Ribbon Campaign X Against HTML mouse at rodents.montreal.qc.ca / \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B From priyag at newgen.co.in Thu Jul 10 08:30:02 2003 From: priyag at newgen.co.in (priyag) Date: Thu, 10 Jul 2003 13:00:02 +0530 Subject: [sane-devel] How to do the source modification? Message-ID: <002c01c346b5$1751af40$5505a8c0@priya> Hi, I have just started working on SANE and LINUX. Can anybody let me know that if i want to add something in the source code of SANE backend or XSANE then how to go about that? I mean if i want to add my additions too in the latest SANE or XSANE release then how to go about that???? Regards Priya Gupta -------------- next part -------------- An HTML attachment was scrubbed... URL: From priyag at newgen.co.in Thu Jul 10 09:59:56 2003 From: priyag at newgen.co.in (priyag) Date: Thu, 10 Jul 2003 14:29:56 +0530 Subject: [sane-devel] Re: scanner recommendations References: <20030708132525.28484.47488.Mailman@panda.mostang.com> Message-ID: <005201c346c1$a35a6a70$5505a8c0@priya> Hi Haidar, I have just tested an Avision 8000 S scanner on sane. It works fine with SANE. The backend for this is regularly tested. Even i have tested that myslef also. The ppm(Pages per minute) for A4, 200 dpi resolution , portrait orientation, Line Art mode is 30. So you can very well scan 100 pages per day.. and even more. This ppm is even more if you scan with Landscape orientation. regards Priya Gupta > Message: 1 > From: Ayman Haidar > Reply-To: haidara at gucmed.com > To: Sane-devel at www.mostang.com > Date: Mon, 7 Jul 2003 19:12:55 -0400 > Subject: [sane-devel] scanner recommendations > > Hello, > > I am asking for recommendations on a scanner that I will use in the office to > scan test documents, I am expecting to scan about 100pages/day. obviously I > want one that has ADF and works well with sane. > > Somebody recommended Fujitsu scanners, I know the backend seems to be in Beta > which is fine but I would like to hear more recommendations. > > Thanks > > Ayman > From henning at meier-geinitz.de Thu Jul 10 10:43:29 2003 From: henning at meier-geinitz.de (Henning Meier-Geinitz) Date: Thu, 10 Jul 2003 11:43:29 +0200 Subject: [sane-devel] How to do the source modification? In-Reply-To: <002c01c346b5$1751af40$5505a8c0@priya> References: <002c01c346b5$1751af40$5505a8c0@priya> Message-ID: <20030710094329.GB6036@meier-geinitz.de> Hi, On Thu, Jul 10, 2003 at 01:00:02PM +0530, priyag wrote: > Can anybody let me know that if i want to add something in the source > code of SANE backend or XSANE then how to go about that? I mean if i > want to add my additions too in the latest SANE or XSANE release then > how to go about that???? You can get a daily snapshot of sane-backends from http://sane.informatik.uni-freiburg.de/anoncvs/ . Modify that, make a patch of it and send it to this list. Or, if the patch is too big, put it on a website somewhere and tell us where it is and what it does. If it's ok, one of the developers may commit it to CVS. Bye, Henning From henning at meier-geinitz.de Thu Jul 10 11:03:27 2003 From: henning at meier-geinitz.de (Henning Meier-Geinitz) Date: Thu, 10 Jul 2003 12:03:27 +0200 Subject: [sane-devel] freebsd parallel port scanner In-Reply-To: <3F0A03EF.5060506@reversedhell.net> References: <3F0A03EF.5060506@reversedhell.net> Message-ID: <20030710100327.GD6036@meier-geinitz.de> Hi, On Tue, Jul 08, 2003 at 02:36:15AM +0300, Alin-Adrian Anton wrote: > I was desperately searching the web, the mailing lists, etc, in order to > find out if it is possible to use sane + freebsd + parallel port scanner. > > For my particular case, I have a Color Vivid Page Pro II which is fully > supported by the plustek backened, as stable. They say for parallel port > devices, a special kernel module needs to be installed. But I only found > a linux kernel module, and I need to get it work on FreeBSD. > > I will really be thankfull for any help. I MUST use the scanner on freebsd! If you must, write a module for FreeBSD :-) > Also, if any of you knows a parallel device working on *BSD please tell > me that too. I want to know if I really have to port the linux module. Some of the other parport scanners are accessed without kernel modules, e.g. by using inb/outb. That should work with FreeBSD also. The Mustek Paragon 600 II N is not really a parallel port scanner but uses its own ISA card which is very similar to a parport card. As far as I know, it works on FreeBSD also. Bye, Henning From twaugh at redhat.com Thu Jul 10 11:43:00 2003 From: twaugh at redhat.com (Tim Waugh) Date: Thu, 10 Jul 2003 11:43:00 +0100 Subject: [sane-devel] freebsd parallel port scanner In-Reply-To: <20030710100327.GD6036@meier-geinitz.de> References: <3F0A03EF.5060506@reversedhell.net> <20030710100327.GD6036@meier-geinitz.de> Message-ID: <20030710104300.GC6867@redhat.com> On Thu, Jul 10, 2003 at 12:03:27PM +0200, Henning Meier-Geinitz wrote: > Some of the other parport scanners are accessed without kernel > modules, e.g. by using inb/outb. That should work with FreeBSD also. > The Mustek Paragon 600 II N is not really a parallel port scanner but > uses its own ISA card which is very similar to a parport card. As far > as I know, it works on FreeBSD also. Any driver using libieee1284 ought to work on FreeBSD I think. Tim. */ -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From seva at sevatech.com Thu Jul 10 12:41:19 2003 From: seva at sevatech.com (Seva Epsteyn) Date: Thu, 10 Jul 2003 06:41:19 -0500 (CDT) Subject: [sane-devel] Help with Nikon AF-10 ADF with AX-210 SCSI Message-ID: I am having problems with SANE and Nikon AX-210 (SCSI) with AF-10 page feeder. Using scanadf I get no paper movement, yet scanadf tells me that it's working fine and continues to count up the page output. xscanimage gets as far as rolling the paper to the start of the scaning, then errors out with paper jam... I am using Red Hat Linux 7.3, I have tried the sane (front|back)ends 1.0.7 that came with the distribution and the latest 1.0.(11|12) with the same results. Attached are the debug outputs with SANE_DEBUG_UMAX set.. /Seva -------------- next part -------------- A non-text attachment was scrubbed... Name: scanadf.debug.gz Type: application/x-gzip Size: 7141 bytes Desc: URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: xscanimage.debug.gz Type: application/x-gzip Size: 4043 bytes Desc: URL: From henning at meier-geinitz.de Thu Jul 10 17:58:40 2003 From: henning at meier-geinitz.de (Henning Meier-Geinitz) Date: Thu, 10 Jul 2003 18:58:40 +0200 Subject: [sane-devel] Help with Nikon AF-10 ADF with AX-210 SCSI In-Reply-To: References: Message-ID: <20030710165840.GE6036@meier-geinitz.de> Hi, On Thu, Jul 10, 2003 at 06:41:19AM -0500, Seva Epsteyn wrote: > I am having problems with SANE and Nikon AX-210 (SCSI) with AF-10 page > feeder. I have no personal experience with this scanner but maybe some generic hints: > Using scanadf I get no paper movement, yet scanadf tells me that > it's working fine and continues to count up the page output. scanadf (and scanimage) just scan one image after the other. It's up to the backend (umax in this case) to make sure that the paper is moved. If the scanner has a flatbed and an ADF, there is usually an option called "source" that can be used to select ADF. > xscanimage gets as far as rolling the paper to the start of the > scaning, then errors out with paper jam... xscanimage can only scan one image whith every time you press the scan button. If that fails, I guess it's a problem with the umax backend. > Attached are the debug outputs with SANE_DEBUG_UMAX set.. scanadf: [...] > [umax] fast preview function = 0 > [umax] DOR = 0 > [umax] ADF = 0 You haven't enabled the ADF when you used scanadf. > scanadf: sanei_scsi.c:2066: sanei_scsi_req_wait: Assertion `req == ((fdparms*)fd_info[req->fd].pdata)->sane_qhead' failed. Huh? That looks bad. But I don't think it's related to your problem. xscanimage: > [umax] fast preview function = 0 > [umax] DOR = 0 > [umax] ADF = 1 This time the ADF is enabled. > [umax] send_shading_data > [umax] shading-data sent > [umax] start_scan > [umax] do_inquiry > [umax] ERROR: umax_start_scan: ADF paper jam > [umax] trying to release scanner ... > [umax] scanner released > [umax] trying to reposition scanner ... > [umax] not waiting for finishing reposition scanner Looks like it fails right at the start of the scan process. Are you sure that there is really no hardware/paper problem? Otherwise I guess the author of the umax backend may know more than me about that topic :-) Bye, Henning From seva at sevatech.com Thu Jul 10 19:44:40 2003 From: seva at sevatech.com (Seva Epsteyn) Date: Thu, 10 Jul 2003 13:44:40 -0500 (CDT) Subject: [sane-devel] Help with Nikon AF-10 ADF with AX-210 SCSI In-Reply-To: <20030710165840.GE6036@meier-geinitz.de> References: <20030710165840.GE6036@meier-geinitz.de> Message-ID: > > Using scanadf I get no paper movement, yet scanadf tells me that > > it's working fine and continues to count up the page output. > > scanadf (and scanimage) just scan one image after the other. It's up > to the backend (umax in this case) to make sure that the paper is > moved. If the scanner has a flatbed and an ADF, there is usually an > option called "source" that can be used to select ADF. Ok, I missed that, I do have to use --source="Automatic Document Feeder" option, at least with the UMAX backend, I was assuming that utility for ADF would enable that itself ;) > Looks like it fails right at the start of the scan process. Are you > sure that there is really no hardware/paper problem? Ick, there *was* a physical problem, I apologize for sending the original mail -- the transparent flip of paper that is supposed to route the paper back into the output bin was no folder correctly! It seems to work quite well now. Thanks for the help and the software.. /Seva From oliver.rauch at rauch-domain.de Thu Jul 10 19:52:49 2003 From: oliver.rauch at rauch-domain.de (Oliver Rauch) Date: Thu, 10 Jul 2003 20:52:49 +0200 Subject: [sane-devel] Help with Nikon AF-10 ADF with AX-210 SCSI In-Reply-To: <20030710165840.GE6036@meier-geinitz.de> References: <20030710165840.GE6036@meier-geinitz.de> Message-ID: <200307102052.49630.oliver.rauch@rauch-domain.de> On Thursday 10 July 2003 18:58, Henning Meier-Geinitz wrote: > Looks like it fails right at the start of the scan process. Are you > sure that there is really no hardware/paper problem? > > Otherwise I guess the author of the umax backend may know more than me > about that topic :-) Good analyse Henning. I must admit that I do not have any experiences with the ADF. If I remember right then the ADF does work with umax scanners. Seva, did you ever test the ADF with windows? Oliver From priyag at newgen.co.in Fri Jul 11 13:42:20 2003 From: priyag at newgen.co.in (priyag) Date: Fri, 11 Jul 2003 18:12:20 +0530 Subject: [sane-devel] XSANE ADF problem References: <20030710114201.14317.87711.Mailman@panda.mostang.com> Message-ID: <00b701c347a9$e1232d90$5505a8c0@priya> Hi, I m able to run xsane and am able to scan the documents through XSANE. But now the problem is that I am able to scan only single page through Automatic Document Feeder. The ADF is not taking all the documents automatically. The problem which i could locate is that in the Setup menu the option for Automatic Document Feeder Modus is giving as "None" whereas the literature says it should have different values such as None, ADF etc. Mine is an Avision 8000S scanner. scanimage is working fine. I came to know that ..... The ADF Modus needs the cooperation between frontend (xsane) and backend. Some Backends do not use the options in a way xsane needs this. Can anyone let me know what options are needed and where i have to write those options so that i can work with XSANE and ADF? Or is there any other solution.?? I would be highly obliged. Regards Priya Gupta From anoah at pfeiffer.edu Fri Jul 11 14:09:26 2003 From: anoah at pfeiffer.edu (m. allan noah) Date: Fri, 11 Jul 2003 09:09:26 -0400 (EDT) Subject: [sane-devel] XSANE ADF problem In-Reply-To: <00b701c347a9$e1232d90$5505a8c0@priya> Message-ID: i dont know about xsane (i dont use it) but if you want the adf to work, you need to have a probram like 'scanadf' (which comes with the sane-frontends), which is smart (or foolish :) enough to try to run additional scans for adf use. allan On Fri, 11 Jul 2003, priyag wrote: > Hi, > > I m able to run xsane and am able to scan the documents through XSANE. > But now the problem is that I am able to scan only single page through > Automatic Document Feeder. The ADF is not taking all the documents > automatically. > > The problem which i could locate is that in the Setup menu the option for > Automatic Document Feeder Modus is giving as "None" whereas the literature > says it should have different values such as None, ADF etc. > Mine is an Avision 8000S scanner. scanimage is working fine. > > > I came to know that ..... > > The ADF Modus needs the cooperation between frontend (xsane) and backend. > Some Backends do not use the options in a way xsane needs this. > > Can anyone let me know what options are needed and where i have to write > those options so that i can work with XSANE and ADF? > > Or is there any other solution.?? > > I would be highly obliged. > > Regards > Priya Gupta > > > _______________________________________________ > Sane-devel mailing list > Sane-devel at www.mostang.com > http://www.mostang.com/mailman/listinfo/sane-devel > -- "so don't tell us it can't be done, putting down what you don't know. money isn't our god, integrity will free our souls" - Max Cavalera From hans007 at prexar.com Fri Jul 11 14:06:39 2003 From: hans007 at prexar.com (Hans Krueger) Date: 11 Jul 2003 09:06:39 -0400 Subject: [sane-devel] scanner help Message-ID: <1057928789.7805.15.camel@linux.local> I had my mustek 600IIIep scanner working under suse 8.1 sane 1.0.4-47 i586.rpm now I have suse 8.2 sane 1.0.10-36 i586.rpm I tried to do like I did under 8.1 but I got it to see it but the light just sets their and doesn't move it comes on but thats heres my config file thanks # For documentation see sane-mustek_pp(5) # # Scanner definition template: # # scanner # option ? # option ? # ... # # where: # # is an arbitrary name for the scanner (eg. Mustek-1200CP) # # is the parallel port to which the scanner is connected # Possible values are 0x378, 0x278, and 0x3bc. For Linux, the # mapping between ports an numbers is different for kernel # version 2.2 and 2.4. Port 0x378 corresponds to lp0 on 2.4 kernel. # # is an identification of the scanner type. # Possible values are: # - cis600 (for Mustek 600CP & OEM versions), # - cis1200 (for Mustek 1200CP & OEM versions), # - cis1200+ (for Mustek 1200CP+ & OEM versions), # - ... (non-CIS versions will be added in the future) # # is a name of an option, and an optional value # for the option. # Currently available options for *CIS* type scanners are: # - top_adjust : # Vertical adjustment of origin, in millimeter. # Values between -5.0 and +5.0 mm are possible # (floating point). # Default: 0.0 # - slow_skip: # Boolean option. Disables fast skipping to the start # of the scan region. May be necessary in case fast # skipping results in inaccuracies. # Default: fast skipping enabled # - bw : # Black/white discrimination value for lineart scans. # Pixel values below that value are considered black, # others are considered white. Range: 0-255. # Default: 127 # # # Example for a LifeTec LT9350 (Mustek 1200CP clone): # # scanner LT9350 0x378 cis1200 # option top_adjust 0 # option bw 127 # # # Uncomment/customize to your needs # # Mustek 600 III EP Plus # name 600IIIEPP # vendor Mustek # option wait-lamp 5 scanner Mustek-600IIIepp 0x378 CCD300 # scanner Mustek-600CP 0x378 cis600 # scanner Mustek-1200CP 0x378 cis1200 # scanner Mustek-1200CP+ 0x378 cis1200+ # -- Hans hans007 at prexar.com registered Linux user 289023 "They that can give up essential liberty to obtain a little temporary safety, deserve neither liberty nor safety." -Benjamin Franklin -------------- next part -------------- An HTML attachment was scrubbed... URL: From anoah at pfeiffer.edu Fri Jul 11 14:22:59 2003 From: anoah at pfeiffer.edu (m. allan noah) Date: Fri, 11 Jul 2003 09:22:59 -0400 (EDT) Subject: [sane-devel] libusb vs linux kernel scanner driver Message-ID: i am running usb fujitsu scanner on linux 2.4.21. the fujitsu backend uses sanei_usb, so both the kernel scanner driver, and libusb work. however, libusb causes a long pause, and a couple of timeouts happen, before the scanner starts. after that, the multi-page (adf) scans proceed normally, with no other errors. so i did two scans with SADE_DEBUG_SANEI_USB=255, one with kernel scanner driver, one with libusb, and i compaired the parts prior to the pause using libusb. the usb packets, and the order they are sent in are the same. so, it would seem to be lower level than the backend. anyone know how can i get more debugging info from the kernel scanner driver and libusb, so that i can see exactly what packets are going out to the device, and what sort of time signature they have? allan -- "so don't tell us it can't be done, putting down what you don't know. money isn't our god, integrity will free our souls" - Max Cavalera From priyag at newgen.co.in Fri Jul 11 14:55:29 2003 From: priyag at newgen.co.in (priyag) Date: Fri, 11 Jul 2003 19:25:29 +0530 Subject: [sane-devel] XSANE ADF problem Message-ID: <000801c347b4$16c94380$5505a8c0@priya> > Hi Allan, > > I want to have a graphical frontend. Moreover i want to run avision scanner > 8000S which is not supported by ScanAdf. > Do you have any more idea to run this? > > --- > Priya > > > > ----- Original Message ----- > From: "m. allan noah" > To: "priyag" > Cc: > Sent: Friday, July 11, 2003 6:39 PM > Subject: Re: [sane-devel] XSANE ADF problem > > > > i dont know about xsane (i dont use it) but if you want the adf to work, > you > > need to have a probram like 'scanadf' (which comes with the > sane-frontends), > > which is smart (or foolish :) enough to try to run additional scans for > adf use. > > > > allan > > > > On Fri, 11 Jul 2003, priyag wrote: > > > > > Hi, > > > > > > I m able to run xsane and am able to scan the documents through XSANE. > > > But now the problem is that I am able to scan only single page through > > > Automatic Document Feeder. The ADF is not taking all the documents > > > automatically. > > > > > > The problem which i could locate is that in the Setup menu the option > for > > > Automatic Document Feeder Modus is giving as "None" whereas the > literature > > > says it should have different values such as None, ADF etc. > > > Mine is an Avision 8000S scanner. scanimage is working fine. > > > > > > > > > I came to know that ..... > > > > > > The ADF Modus needs the cooperation between frontend (xsane) and > backend. > > > Some Backends do not use the options in a way xsane needs this. > > > > > > Can anyone let me know what options are needed and where i have to > write > > > those options so that i can work with XSANE and ADF? > > > > > > Or is there any other solution.?? > > > > > > I would be highly obliged. > > > > > > Regards > > > Priya Gupta > > > > > > > > > _______________________________________________ > > > Sane-devel mailing list > > > Sane-devel at www.mostang.com > > > http://www.mostang.com/mailman/listinfo/sane-devel > > > > > > > -- > > "so don't tell us it can't be done, putting down what you don't know. > > money isn't our god, integrity will free our souls" - Max Cavalera > From aanton at reversedhell.net Thu Jul 10 02:59:40 2003 From: aanton at reversedhell.net (Alin-Adrian Anton) Date: Thu, 10 Jul 2003 04:59:40 +0300 Subject: [sane-devel] Mustek 1200 UB on FreeBSD Message-ID: <3F0CC88C.6050609@reversedhell.net> Hello, I am going to change my scanner and I am going to buy a scanner which 100% works fine with FreeBSD. Obiously, an USB scanner, like Mustek 1200 UB. I would like to verify if indeed this scanner works well with FreeBSD and if anyone can tell, please tell me. I don't want to spend my summer coding an ISA module:-). I am already working on my mustek webcam driver, and lot of other busy coding projects. Thanks in advance! Regards, Alin. From henning at meier-geinitz.de Fri Jul 11 16:25:28 2003 From: henning at meier-geinitz.de (Henning Meier-Geinitz) Date: Fri, 11 Jul 2003 17:25:28 +0200 Subject: [sane-devel] Mustek 1200 UB on FreeBSD In-Reply-To: <3F0CC88C.6050609@reversedhell.net> References: <3F0CC88C.6050609@reversedhell.net> Message-ID: <20030711152528.GA13712@meier-geinitz.de> Hi, On Thu, Jul 10, 2003 at 04:59:40AM +0300, Alin-Adrian Anton wrote: > I am going to change my scanner and I am going to buy a scanner which > 100% works fine with FreeBSD. Obiously, an USB scanner, like Mustek 1200 > UB. I would like to verify if indeed this scanner works well with > FreeBSD and if anyone can tell, please tell me. It doesn't. Well, you can scan once (or as long as you keep xsane open) but not more. See the manpage: BUGS These devices have a hardware bug: Once data is written to them, they can't be resetted (toggle = DATA0). That means, any operation that tries to reset the device will result in running into timeouts. That means that this backend will fail when it is loaded the second time in some configurations: E.g. using libusb, (Free|Open|Net)BSD or with Linux if you unload and reload the scanner module. The only choice is to replug the scanner in this case. Better use a different scanner. By the way: Don't use scanners that are supported by the gt68xx backend. They don't work correctly with FreeBSD either (at least with 5.0, see man sane-gt68xx). In this case I suspect a problem with the kernel. Some time I'll try a more current version of FreeBSD, maybe it's fixed in the meantime. Bye, Henning From henning at meier-geinitz.de Fri Jul 11 16:27:54 2003 From: henning at meier-geinitz.de (Henning Meier-Geinitz) Date: Fri, 11 Jul 2003 17:27:54 +0200 Subject: [sane-devel] XSANE ADF problem In-Reply-To: References: <00b701c347a9$e1232d90$5505a8c0@priya> Message-ID: <20030711152754.GB13712@meier-geinitz.de> Hi, On Fri, Jul 11, 2003 at 09:09:26AM -0400, m. allan noah wrote: > i dont know about xsane (i dont use it) but if you want the adf to work, you > need to have a probram like 'scanadf' (which comes with the sane-frontends), > which is smart (or foolish :) enough to try to run additional scans for adf use. scanimage can do that also (see batch-scan options). And XSane. Bye, Henning From henning at meier-geinitz.de Fri Jul 11 16:30:10 2003 From: henning at meier-geinitz.de (Henning Meier-Geinitz) Date: Fri, 11 Jul 2003 17:30:10 +0200 Subject: [sane-devel] XSANE ADF problem In-Reply-To: <000801c347b4$16c94380$5505a8c0@priya> References: <000801c347b4$16c94380$5505a8c0@priya> Message-ID: <20030711153010.GC13712@meier-geinitz.de> Hi, On Fri, Jul 11, 2003 at 07:25:29PM +0530, priyag wrote: > > I want to have a graphical frontend. Moreover i want to run avision scanner > > 8000S which is not supported by ScanAdf. I doesn't need to be supported by scanadf. The support is in the backend. The only thing the frontend needs to do is to get more than one image. scanadf, scanimage and xsane can do that. Can you show us the output of "scanimage --help", please? So we can see how the option for the ADF is called exactly. Which version of xsane are you using? Bye, Henning From henning at meier-geinitz.de Fri Jul 11 16:34:08 2003 From: henning at meier-geinitz.de (Henning Meier-Geinitz) Date: Fri, 11 Jul 2003 17:34:08 +0200 Subject: [sane-devel] scanner help In-Reply-To: <1057928789.7805.15.camel@linux.local> References: <1057928789.7805.15.camel@linux.local> Message-ID: <20030711153408.GD13712@meier-geinitz.de> Hi, On Fri, Jul 11, 2003 at 09:06:39AM -0400, Hans Krueger wrote: > I had my mustek 600IIIep scanner working under suse 8.1 sane 1.0.4-47 > i586.rpm > now I have suse 8.2 sane 1.0.10-36 i586.rpm I tried to do like I did That's too new. Use 1.0.9. Since 1.0.10 the CCD scanners don't work anymore. See http://www.penguin-breeder.org/sane/mustek_pp/ . Bye, Henning From henning at meier-geinitz.de Fri Jul 11 16:38:43 2003 From: henning at meier-geinitz.de (Henning Meier-Geinitz) Date: Fri, 11 Jul 2003 17:38:43 +0200 Subject: [sane-devel] libusb vs linux kernel scanner driver In-Reply-To: References: Message-ID: <20030711153843.GE13712@meier-geinitz.de> Hi, On Fri, Jul 11, 2003 at 09:22:59AM -0400, m. allan noah wrote: > i am running usb fujitsu scanner on linux 2.4.21. the fujitsu backend uses > sanei_usb, so both the kernel scanner driver, and libusb work. however, libusb > causes a long pause, and a couple of timeouts happen, before the scanner starts. > after that, the multi-page (adf) scans proceed normally, with no other errors. Do you see any timeout from the scanner driver in syslog? Maybe the timeout of the scanner driver is just shorter. Usually a timeout occurs because of a bug in the backend (or hardware). But usually it's the other way round: the scanner driver tries longer to get some data than libusb. > so, it would seem to be lower level than the backend. anyone know how can i get > more debugging info from the kernel scanner driver and libusb, so that i can see > exactly what packets are going out to the device, and what sort of time > signature they have? Not sure about libusb but to enable debugging in the scanner driver, edit linux/drivers/usb/scanner.h. There are two options: One for general debugging and one that enables pronting very USB packet. Bye, Henning From anoah at pfeiffer.edu Fri Jul 11 19:57:43 2003 From: anoah at pfeiffer.edu (m. allan noah) Date: Fri, 11 Jul 2003 14:57:43 -0400 (EDT) Subject: [sane-devel] libusb vs linux kernel scanner driver In-Reply-To: <20030711153843.GE13712@meier-geinitz.de> Message-ID: On Fri, 11 Jul 2003, Henning Meier-Geinitz wrote: > Hi, > > On Fri, Jul 11, 2003 at 09:22:59AM -0400, m. allan noah wrote: > > i am running usb fujitsu scanner on linux 2.4.21. the fujitsu backend uses > > sanei_usb, so both the kernel scanner driver, and libusb work. however, libusb > > causes a long pause, and a couple of timeouts happen, before the scanner starts. > > after that, the multi-page (adf) scans proceed normally, with no other errors. > > Do you see any timeout from the scanner driver in syslog? Maybe the > timeout of the scanner driver is just shorter. nope, timeouts only with the libusb connection. Usually a timeout > occurs because of a bug in the backend (or hardware). But usually it's > the other way round: the scanner driver tries longer to get some data > than libusb. no, the kernel driver starts the scan the second you ask, with no errors in the log, the libusb connection has a couple timeouts, and the scan starts after the timeouts are over, maybe 30 seconds. i am thinking that the logic in the kernel scanner driver and the libusb portions of sanei_usb must be sending different packets to the scanner, even though the backend does not distinguish between the two. > > > so, it would seem to be lower level than the backend. anyone know how can i get > > more debugging info from the kernel scanner driver and libusb, so that i can see > > exactly what packets are going out to the device, and what sort of time > > signature they have? > > Not sure about libusb but to enable debugging in the scanner driver, > edit linux/drivers/usb/scanner.h. There are two options: One for > general debugging and one that enables pronting very USB packet. > cool, thanks. if i can get the scanner driver to dump all packets, and libusb to dump all, then i can compair. allan > Bye, > Henning > _______________________________________________ > Sane-devel mailing list > Sane-devel at www.mostang.com > http://www.mostang.com/mailman/listinfo/sane-devel > -- "so don't tell us it can't be done, putting down what you don't know. money isn't our god, integrity will free our souls" - Max Cavalera From henning at meier-geinitz.de Fri Jul 11 21:59:38 2003 From: henning at meier-geinitz.de (Henning Meier-Geinitz) Date: Fri, 11 Jul 2003 22:59:38 +0200 Subject: [sane-devel] libusb vs linux kernel scanner driver In-Reply-To: References: <20030711153843.GE13712@meier-geinitz.de> Message-ID: <20030711205938.GA15762@meier-geinitz.de> Hi, On Fri, Jul 11, 2003 at 02:57:43PM -0400, m. allan noah wrote: > no, the kernel driver starts the scan the second you ask, with no errors in the > log, the libusb connection has a couple timeouts, and the scan starts after the > timeouts are over, maybe 30 seconds. i am thinking that the logic in the kernel > scanner driver and the libusb portions of sanei_usb must be sending different > packets to the scanner, even though the backend does not distinguish between the > two. The scanner driver limits the maximum size of the packets to 32k I think. Maybe that's the difference? Can you show me a some lines of the log with SANE_DEBUG_SANEI_USB=255 and libusb? e.g. the part where the timeout occurs plus 20 lines before that happens? Bye, Henning From guettli at thomas-guettler.de Fri Jul 11 23:08:40 2003 From: guettli at thomas-guettler.de (Thomas Guettler) Date: Sat, 12 Jul 2003 00:08:40 +0200 Subject: [sane-devel] Epson 1660 Photo Message-ID: <20030711220840.GC3041@thomas-guettler.de> Hi! I just bouht a Epson 1660 Photo. I works fine, thank you all for this! Two small issues: 1: ==root at sonne:~# scanimage --list-devices device `epson:/dev/usb/scanner0' is a Epson GT-8300 flatbed scanner Why GT-8300? I have a 1660 Photo. "cd sane-source; grep -r 8300 *" did not show anything about a GT-8300. 2: Scanned negatives look faded. The colors are too white. After color equalize in gimp it looks quite good. Except that human skin is a bit to blue. Any hints? I use versionn 1.0.12 thomas -- Thomas Guettler http://www.thomas-guettler.de From khk at khk.net Sat Jul 12 01:40:10 2003 From: khk at khk.net (Karl Heinz Kremer) Date: Fri, 11 Jul 2003 20:40:10 -0400 Subject: [sane-devel] Epson 1660 Photo In-Reply-To: <20030711220840.GC3041@thomas-guettler.de> Message-ID: <644FDB74-B401-11D7-B23B-000A957E40E8@khk.net> On Friday, July 11, 2003, at 06:08 PM, Thomas Guettler wrote: > Hi! > > I just bouht a Epson 1660 Photo. > > I works fine, thank you all for this! > > Two small issues: > > 1: > > ==root at sonne:~# scanimage --list-devices > device `epson:/dev/usb/scanner0' is a Epson GT-8300 flatbed scanner > > Why GT-8300? I have a 1660 Photo. > > "cd sane-source; grep -r 8300 *" did not show anything about a GT-8300. See the last "Frequently asked question" on my FAQ page: http://www.khk.net/sane/faq.html > > 2: > > Scanned negatives look faded. The colors are too white. After color > equalize in gimp it looks quite good. Except that human skin is a bit > to blue. > > Any hints? Correcting negatives is something you either have to do manually, or you have to use a frontend that automates this. Karl Heinz From aanton at reversedhell.net Fri Jul 11 00:32:51 2003 From: aanton at reversedhell.net (Alin-Adrian Anton) Date: Fri, 11 Jul 2003 02:32:51 +0300 Subject: [sane-devel] Mustek 1200 UB on FreeBSD In-Reply-To: <3F0CC88C.6050609@reversedhell.net> References: <3F0CC88C.6050609@reversedhell.net> Message-ID: <3F0DF7A3.6030407@reversedhell.net> Alin-Adrian Anton wrote: > Hello, > > I am going to change my scanner and I am going to buy a scanner which > 100% works fine with FreeBSD. Obiously, an USB scanner, like Mustek > 1200 UB. I would like to verify if indeed this scanner works well with > FreeBSD and if anyone can tell, please tell me. > > I don't want to spend my summer coding an ISA module:-). I am already > working on my mustek webcam driver, and lot of other busy coding > projects. > > > Thanks in advance! > > Regards, > Alin. > > > _______________________________________________ > Sane-devel mailing list > Sane-devel at www.mostang.com > http://www.mostang.com/mailman/listinfo/sane-devel > Okay, Mustek 1200 UB works buggy. Then, let's do it the other way: what scanner would you recommend me to buy for working on FreeBSD with it? I am confident in your suggestions :-). Regards, Alin. From dave at i-r-labs.com Sat Jul 12 12:42:44 2003 From: dave at i-r-labs.com (David A Iacobellis) Date: Sat, 12 Jul 2003 07:42:44 -0400 Subject: [sane-devel] ccd scanners and 1.0.10 Message-ID: <200307120742.44392.dave@i-r-labs.com> I read on another site that ccd scanners were disabled in the sane 1.0.10 backend and only the cis scanners would work. Could somebody verify the truth in this statement? If this is true, would a ccd scanner not work at all or would it cause the application to hang? Thanks From jochen.eisinger at gmx.de Sat Jul 12 15:05:00 2003 From: jochen.eisinger at gmx.de (Jochen Eisinger) Date: Sat, 12 Jul 2003 16:05:00 +0200 Subject: [sane-devel] ccd scanners and 1.0.10 In-Reply-To: <200307120742.44392.dave@i-r-labs.com> References: <200307120742.44392.dave@i-r-labs.com> Message-ID: <20030712160500.5603d475.jochen.eisinger@gmx.de> Hi, yes, it's true, and it just shouldn't work. regards -- jochen [David A Iacobellis] > I read on another site that ccd scanners were disabled in the sane > 1.0.10 backend and only the cis scanners would work. Could somebody > verify the truth in this statement? If this is true, would a ccd > scanner not work at all or would it cause the application to hang? > > Thanks > _______________________________________________ > Sane-devel mailing list > Sane-devel at www.mostang.com > http://www.mostang.com/mailman/listinfo/sane-devel > -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From henning at meier-geinitz.de Sat Jul 12 16:49:35 2003 From: henning at meier-geinitz.de (Henning Meier-Geinitz) Date: Sat, 12 Jul 2003 17:49:35 +0200 Subject: [sane-devel] ccd scanners and 1.0.10 In-Reply-To: <200307120742.44392.dave@i-r-labs.com> References: <200307120742.44392.dave@i-r-labs.com> Message-ID: <20030712154935.GC15762@meier-geinitz.de> Hi, On Sat, Jul 12, 2003 at 07:42:44AM -0400, David A Iacobellis wrote: > I read on another site that ccd scanners were disabled in the sane 1.0.10 > backend and only the cis scanners would work. Could somebody verify the > truth in this statement? That's only true for scanners supported by the mustek_pp backend, e.g. the Mustek 600 III EP Plus. See man sane-mustek_pp and http://www.penguin-breeder.org/sane/mustek_pp/ . Other CCD scanners work like they did before. Bye, Henning From tomf at sjpc.org Sun Jul 13 03:52:10 2003 From: tomf at sjpc.org (Thomas Frayne) Date: 12 Jul 2003 19:52:10 -0700 Subject: [sane-devel] HP 7450C ... Need new patch In-Reply-To: <20030706.162130.730557932.rene.rebe@gmx.net> References: <1057331386.3092.1002.camel@localhost.localdomain> <20030705.004101.640910003.rene.rebe@gmx.net> <1057435429.15799.40.camel@localhost.localdomain> <20030706.162130.730557932.rene.rebe@gmx.net> Message-ID: <1058064729.3167.147.camel@localhost.localdomain> On Sun, 2003-07-06 at 07:21, Rene Rebe wrote: > > I hope you saved the file with you mail application - otherwise you > might get problems due to whitespace / tab convertions ... > > If this fails I'll send an easier to apply and tested patch tomorrow > ... When I got back from my trip I read your note again, and realized that I should have saved the file containing the patch instead of using the clipboard to copy and paste the patch. I tried this today, and got rid of the malformed patch messages. However, the patch still failed. I saved the email to avision030712.diff, deleted the extraneous lines, saved, and executed: [tom at localhost backend]$ pwd /home/tom/rh9-downloads/sane-backends-1.0.12/backend [tom at localhost backend]$ patch -p0 < ./avision030712.diff patching file avision.c Hunk #1 FAILED at 82. Hunk #18 FAILED at 3053. Hunk #23 FAILED at 3194. Hunk #24 FAILED at 3215. 4 out of 25 hunks FAILED -- saving rejects to file avision.c.rej [tom at localhost backend]$ I was unable to figure out what to do with the rejected hunks. I'll send avision.c.rej separately. Please send me a patch that is easier for me to apply. Thanks, Tom Frayne From priyag at newgen.co.in Mon Jul 14 07:02:33 2003 From: priyag at newgen.co.in (priyag) Date: Mon, 14 Jul 2003 11:32:33 +0530 Subject: [sane-devel] XSANE ADF problem Message-ID: <004601c349cf$f8cb0b20$5505a8c0@priya> Hi Henning, Rene, Allan, Thanx a lot for ur help. i m able to run XSANE with ADF now. Actually the problem was with the code of driver itself. I had to make the changes in Avision.c file to get the options that XSANE needs for automatic scanning through ADF. Previously it was scanning page by page with ADF. Thanx once again Regards, Priya Gupta INDIA -------------- next part -------------- An HTML attachment was scrubbed... URL: From didierbe at sps.nus.edu.sg Mon Jul 14 12:04:07 2003 From: didierbe at sps.nus.edu.sg (Didier Casse) Date: Mon, 14 Jul 2003 19:04:07 +0800 (SGT) Subject: [sane-devel] problems with cpufreq.c during recompilation Message-ID: Hi there, I tried to patch my Linux kernel 2.4.20-8 i686 i386 GNU/Linux (on redhat 9) with the linux-ppscsi patch so that I can add my parallel port scanner HP Scanjet 5100C to my pc. I started as follows in the /usr/src/linux-2.4.20-8/ directory step 1. patch -p1 < linux.ppscsi.patch step 2. make menuconfig to ensure SCSI suppoer and parallel port support step 3. make dep step 4. make bzImage step 5. make modules then error occures at step 5 as shown below: +--------------------------------------------------------------------+ /usr/src/linux-2.4.20-8/include/linux/dcache.h: In function `dget': /usr/src/linux-2.4.20-8/include/linux/dcache.h:254: warning: implicit declaration of function `__out_of_line_bug_R8b0fd3c5' cpufreq.c: In function `cpufreq_parse_policy': cpufreq.c:111: warning: implicit declaration of function `sscanf_R859204af' cpufreq.c: In function `cpufreq_proc_read': cpufreq.c:225: warning: implicit declaration of function `sprintf_R1d26aa98' cpufreq.c: In function `cpufreq_proc_init': cpufreq.c:327: warning: implicit declaration of function `printk_R1b7d4074' cpufreq.c: In function `cpufreq_restore_Re39890df': cpufreq.c:1109: warning: implicit declaration of function `panic_R01075bf0' cpufreq.c: At top level: cpufreq.c:192: warning: `cpufreq_setup' defined but not used make[1]: *** [cpufreq.o] Error 1 make[1]: Leaving directory `/usr/src/linux-2.4.20-8/kernel' make: *** [_mod_kernel] Error 2 +--------------------------------------------------------------------+ Can anybody help me out with this thing as i really need to get that scanner going? I have no clue how to solve this type of error and everybody on the redhat mailing list is clueless too! Thanks for helping out. regards, Didier --- PhD student Singapore Synchrotron Light Source (SSLS) 5 Research Link, Singapore 117603 Email: slsbdfc at nus.edu.sg or didierbe at sps.nus.edu.sg Website: http://ssls.nus.edu.sg From didierbe at sps.nus.edu.sg Mon Jul 14 12:08:07 2003 From: didierbe at sps.nus.edu.sg (Didier Casse) Date: Mon, 14 Jul 2003 19:08:07 +0800 (SGT) Subject: [sane-devel] HP Scanjet 5100C Message-ID: Hi , I tried to use the linux-ppscsi path to path my kernel so that I can add my HP Scanjet 5100C to my redhat 9 box but it was a failure. Can anybody who installed successfully this type of scanner before using other methods, share with me how to do that? Please describe as comprehensively as possible the steps to make xsane detect my parport scanner. I really need to install this scanner in my office and I do not use Windows so I'm really stuck. Please provide some help. -- Didier PhD student Singapore Synchrotron Light Source (SSLS) 5 Research Link, Singapore 117603 Email: slsbdfc at nus.edu.sg or didierbe at sps.nus.edu.sg Website: http://ssls.nus.edu.sg From rene.rebe at gmx.net Mon Jul 14 14:31:43 2003 From: rene.rebe at gmx.net (Rene Rebe) Date: Mon, 14 Jul 2003 15:31:43 +0200 (CEST) Subject: [sane-devel] HP 7450C ... Need new patch In-Reply-To: <1058064729.3167.147.camel@localhost.localdomain> References: <1057435429.15799.40.camel@localhost.localdomain> <20030706.162130.730557932.rene.rebe@gmx.net> <1058064729.3167.147.camel@localhost.localdomain> Message-ID: <20030714.153143.846936143.rene.rebe@gmx.net> Hi, I was away to LinuxTag - a Linux fair here in germy - over the weekend. I'll work on the backend this night, finish the endian issues ..., and release a new backend (hopefully around midnight. I'll send a seperate mail when finished. on: 12 Jul 2003 19:52:10 -0700, Thomas Frayne wrote: > On Sun, 2003-07-06 at 07:21, Rene Rebe wrote: > > > > > I hope you saved the file with you mail application - otherwise you > > might get problems due to whitespace / tab convertions ... > > > > If this fails I'll send an easier to apply and tested patch tomorrow > > ... > > When I got back from my trip I read your note again, and realized that I > should have saved the file containing the patch instead of using the > clipboard to copy and paste the patch. I tried this today, and got rid > of the malformed patch messages. However, the patch still failed. > > I saved the email to avision030712.diff, deleted the extraneous lines, > saved, and executed: > > [tom at localhost backend]$ pwd > /home/tom/rh9-downloads/sane-backends-1.0.12/backend > [tom at localhost backend]$ patch -p0 < ./avision030712.diff > patching file avision.c > Hunk #1 FAILED at 82. > Hunk #18 FAILED at 3053. > Hunk #23 FAILED at 3194. > Hunk #24 FAILED at 3215. > 4 out of 25 hunks FAILED -- saving rejects to file avision.c.rej > [tom at localhost backend]$ > > I was unable to figure out what to do with the rejected hunks. > I'll send avision.c.rej separately. > > Please send me a patch that is easier for me to apply. > > Thanks, > > Tom Frayne Sincerely yours, Ren? Rebe - ROCK Linux stable release maintainer -- Ren? Rebe - Europe/Germany/Berlin rene at rocklinux.org rene.rebe at gmx.net http://www.rocklinux.org http://www.rocklinux.org/people/rene http://gsmp.tfh-berlin.de/gsmp http://gsmp.tfh-berlin.de/rene From rene.rebe at gmx.net Mon Jul 14 14:36:20 2003 From: rene.rebe at gmx.net (Rene Rebe) Date: Mon, 14 Jul 2003 15:36:20 +0200 (CEST) Subject: [sane-devel] XSANE ADF problem In-Reply-To: <004601c349cf$f8cb0b20$5505a8c0@priya> References: <004601c349cf$f8cb0b20$5505a8c0@priya> Message-ID: <20030714.153620.607960897.rene.rebe@gmx.net> Hi, On: Mon, 14 Jul 2003 11:32:33 +0530, "priyag" wrote: > Hi Henning, Rene, Allan, > > Thanx a lot for ur help. i m able to run XSANE with ADF now. > > Actually the problem was with the code of driver itself. I had to make the changes in Avision.c file to get the options that XSANE needs for automatic scanning through ADF. Previously it was scanning page by page with ADF. > > Thanx once again Could you mail the code you have modified (best would be a unified diff)? > Regards, > Priya Gupta > INDIA > Sincerely yours, Ren? Rebe - ROCK Linux stable release maintainer -- Ren? Rebe - Europe/Germany/Berlin rene at rocklinux.org rene.rebe at gmx.net http://www.rocklinux.org http://www.rocklinux.org/people/rene http://gsmp.tfh-berlin.de/gsmp http://gsmp.tfh-berlin.de/rene From stef-listes at wanadoo.fr Tue Jul 15 07:51:50 2003 From: stef-listes at wanadoo.fr (stef) Date: Tue, 15 Jul 2003 06:51:50 +0000 Subject: [sane-devel] How to scan color images in UMAX 2000p In-Reply-To: References: Message-ID: <20030715065150.GA649@wanadoo.fr> On Fri, Jul 04, 2003 at 12:02:05PM +0530, aneesh m raj wrote: > Hi all, > How can I scan color images using scanimage. I couldnt find any options. > Thanks > Aneesh Hello, you can get all available options with (this isnot specific to umax_pp backend): scanimage -d dev -h with 'dev' the device name given by 'scanimage -L'. With my settings, it is umax_pp:/dev/parport0, so 'scanimage -d umax_pp:/dev/parport0 -h' gives you all the scanning options of the umax_pp backend. Finally, the one you wanted is Color: ... --mode Lineart|Grayscale|Color [Grayscale] Selects the scan mode (e.g., lineart,monochrome, or color). ... Regards, Stef From stef-listes at wanadoo.fr Tue Jul 15 08:06:30 2003 From: stef-listes at wanadoo.fr (stef) Date: Tue, 15 Jul 2003 07:06:30 +0000 Subject: [sane-devel] UMAX Astra 610P on Debian Woody In-Reply-To: <1057730161.3f0bae7125c67@www.correo.unam.mx> References: <1057730161.3f0bae7125c67@www.correo.unam.mx> Message-ID: <20030715070630.GB649@wanadoo.fr> On Wed, Jul 09, 2003 at 12:56:01AM -0500, ahg at servidor.unam.mx wrote: > > Hi, > > I'm writing to ask what's the best way (if there is a way) to use a UMAX Astra > 610P scanner with Debian Woody. > > This device is listed as "don't work (yet)" at > http://panda.mostang.com/sane/sane-mfgs.html#UMAX > > I guess I'm hoping that "don't work" might be a bit out of date and that there's > _some_ way to make it work "now". > Due to lack of hardware to test, the 610P is barely detected, and is not operated by the umax_pp backend. > I could... > > ...install sane the latest SANE binaries as described at > http://people.debian.org/~aurel32/sane.html > > ...or > > ...get an unstable source of sane-umax_pp > > ...or > > ...anything else you might recommend. > > I don't mind if there are a few hoops to jump through to get this working. > However, the box and the scanner aren't mine, and I have to leave them in > relatively good working order for non-techincal GNU/Linux newbies, so any > solution has to be relatively low-maintenance. > The umax_pp backend is far from supporting the 610P model. It is likely (but unproven) that is uses the same high-level commands than the 1220P/2000P. But the main problem is that is doesn't use the EPP mode the same way. So all low-level communication has to be reworked. Even though I have some logs of the data flow between the scanner and windows under win98, it's not easy to implement. Such a thing can't be seriously done without having the hardware to test. > Thanks in advance for your help, > Andrew > > P.S. If this works, will I be able to connect a printer to the scaner's "to > printer" port? > I don't know for 610P, but for 1220P/200P, you don't have to do anything special to have the 'pass-through' working. Currently, when the backend uses the ppdev character device, it mitigates the trouble of using printer and scanner at the same time. ie, you scan and print, printing waits for any scan to complete before starting, but launching xsane or scanimage kills any printing in progress. > P.P.S. The machine also has Win 98 installed and the scanner works OK under that > "operating system"... so I suppose I might be able to make it work under Wine... Only the windows 3.1 driver has a chance to work under wine since it uses direct hardware access. They are some infos in wine on how to achieve this. Newer drivers for win 9x use a VxD, so will never work under wine. > though if that's the way to go I'd appreciate one or two brief pointers as to > where to start... Thanks again. > Regards, Stef From didierbe at sps.nus.edu.sg Tue Jul 15 06:37:45 2003 From: didierbe at sps.nus.edu.sg (Didier Casse) Date: Tue, 15 Jul 2003 13:37:45 +0800 (SGT) Subject: [sane-devel] HP Scanjet 5100C Message-ID: Hi , I tried to use the linux-ppscsi path to path my kernel so that I can add my HP Scanjet 5100C to my redhat 9 box but it was a failure. Can anybody who installed successfully this type of scanner before using other methods, share with me how to do that? Please describe as comprehensively as possible the steps to make xsane detect my parport scanner. I really need to install this scanner in my office and I do not use Windows so I'm really stuck. Please provide some help. -- Didier PhD student Singapore Synchrotron Light Source (SSLS) 5 Research Link, Singapore 117603 Email: slsbdfc at nus.edu.sg or didierbe at sps.nus.edu.sg Website: http://ssls.nus.edu.sg From anoah at pfeiffer.edu Tue Jul 15 19:48:56 2003 From: anoah at pfeiffer.edu (m. allan noah) Date: Tue, 15 Jul 2003 14:48:56 -0400 (EDT) Subject: [sane-devel] libusb vs linux kernel scanner driver In-Reply-To: <20030711205938.GA15762@meier-geinitz.de> Message-ID: ok, this seems highly intermittent. various combinations of: a. scanner driver already loaded at plugin time, b. scanner driver loaded by hotplug c. manually rmmod and insmod scanner driver, d. allowing the scanner to go in and out of power saving mode are causing many errors in the syslog, and pauses for many seconds either when initially attaching to the scanner, or after the adf loads the first sheet from the hopper, but before it returns image data. i am having some trouble being able to repeat the errors on demand, but it may have something to do with sanei_usb scanning the /dev/usb/scanner0 files, and then immediately scanning the same device via libusb, but i cannot say for certain. i will continue to look. allan On Fri, 11 Jul 2003, Henning Meier-Geinitz wrote: > Hi, > > On Fri, Jul 11, 2003 at 02:57:43PM -0400, m. allan noah wrote: > > no, the kernel driver starts the scan the second you ask, with no errors in the > > log, the libusb connection has a couple timeouts, and the scan starts after the > > timeouts are over, maybe 30 seconds. i am thinking that the logic in the kernel > > scanner driver and the libusb portions of sanei_usb must be sending different > > packets to the scanner, even though the backend does not distinguish between the > > two. > > The scanner driver limits the maximum size of the packets to 32k I > think. Maybe that's the difference? > > Can you show me a some lines of the log with SANE_DEBUG_SANEI_USB=255 > and libusb? e.g. the part where the timeout occurs plus 20 lines > before that happens? > > Bye, > Henning > _______________________________________________ > Sane-devel mailing list > Sane-devel at www.mostang.com > http://www.mostang.com/mailman/listinfo/sane-devel > -- "so don't tell us it can't be done, putting down what you don't know. money isn't our god, integrity will free our souls" - Max Cavalera From oliver.rauch at rauch-domain.de Wed Jul 16 18:37:30 2003 From: oliver.rauch at rauch-domain.de (Oliver Rauch) Date: Wed, 16 Jul 2003 19:37:30 +0200 Subject: [sane-devel] Re: Bug on xsane 0.90 and help In-Reply-To: <200307161856.28860.blaisorblade_work@yahoo.it> References: <200307161856.28860.blaisorblade_work@yahoo.it> Message-ID: <200307161937.30965.oliver.rauch@rauch-domain.de> Hello. 1) The problem with the inherited filedscriptor to the html viewer is a backend related problem. My prefered way is that the backend can be opened by several frontends at the same time and it only does block when a frontend starts the scan. If the backend can only be opened by one frontend it may help to add your suggested fcntl() function, but this must be done in the backend. 2) xsane can reduce the color depth from 48/16 bit to 24/8 bit. Take a look at preferences->setup->image Oliver On Wednesday 16 July 2003 18:56, you wrote: > Hi, I'm a user of Xsane and I've had some problem with it. > First, when it starts the browser to view the help, Xsane passes to it the > file descriptor of scanner device file(or better, the browser inherits it > from exec() ). When you open it, you should set the 'close-on-exec' flag > with fcntl(see its man page). > > This created some problem when I closed xsane and left the browser opened: > - I couldn't "rmmod scanner" to reinsert it with correct parameters like > vendor and product ID, the module didn't autodetect my scanner even if > those ID are present in the sources. > - I wasn't able to restart xsane because the scanner was open, so busy, > until I closed the browser. And finding that was not that easy(I used lsof, > a luser wouldn't be able to). > > I'm not sure the second part is right, because I had various problems, > however it is sensible that only one program at a time can open a scanner, > right? I've even given a look to kernel sources that seem to agree with me: > if (scn->isopen) { > dbg("open_scanner(%d): Scanner device is already open", > scn_minor); > err = -EBUSY; > goto out_error; > } > > > Second, on my system, with a HP 3400C USB scanner, the "niash" backend is > used(I didn't find a word in the docs about it). This backend doesn't > support acquiring data with reduced color depth, so I wasn't able to set > it. Shouldn't xsane emulate in a general way the reduction of color-depth, > with the ability to delegate it to the backend if it supports this? -- http://www.xsane.org http://www.mostang.com/sane http://www.rauch-domain.de mailto:Oliver.Rauch at Rauch-Domain.DE From henning at meier-geinitz.de Wed Jul 16 19:10:58 2003 From: henning at meier-geinitz.de (Henning Meier-Geinitz) Date: Wed, 16 Jul 2003 20:10:58 +0200 Subject: [sane-devel] Re: Bug on xsane 0.90 and help In-Reply-To: <200307161937.30965.oliver.rauch@rauch-domain.de> References: <200307161856.28860.blaisorblade_work@yahoo.it> <200307161937.30965.oliver.rauch@rauch-domain.de> Message-ID: <20030716181058.GB7333@meier-geinitz.de> Hi, On Wed, Jul 16, 2003 at 07:37:30PM +0200, Oliver Rauch wrote: > 1) The problem with the inherited filedscriptor to the > html viewer is a backend related problem. Oh, so my assumption that I'm the only one who noticed that "problem" was wrong :-) > My prefered way is that the backend can be opened by > several frontends at the same time and it only does block > when a frontend starts the scan. If the backend can only be > opened by one frontend it may help to add your suggested > fcntl() function, but this must be done in the backend. That's a good idea. I'll try that in my backends. I hope fcntl() is portable? Bye, Henning From guettli at thomas-guettler.de Mon Jul 14 20:54:04 2003 From: guettli at thomas-guettler.de (Thomas Guettler) Date: Mon, 14 Jul 2003 21:54:04 +0200 Subject: [sane-devel] Colorcorection of scanned negatives In-Reply-To: <644FDB74-B401-11D7-B23B-000A957E40E8@khk.net> References: <20030711220840.GC3041@thomas-guettler.de> <644FDB74-B401-11D7-B23B-000A957E40E8@khk.net> Message-ID: <20030714195404.GD772@thomas-guettler.de> On Fri, Jul 11, 2003 at 08:40:10PM -0400, Karl Heinz Kremer wrote: > >Scanned negatives look faded. The colors are too white. After color > >equalize in gimp it looks quite good. Except that human skin is a bit > >to blue. > > > >Any hints? > > Correcting negatives is something you either have to do manually, or > you have to use a frontend that automates this. Hi Karl and Sane-Users/Developers, I looked at you documentation of how to get rid of the orange of scanned negatives. Since I am very new to gimp and scanning it would be nice to be more verbose. Which frontend could automate this? thomas -- Thomas Guettler http://www.thomas-guettler.de From crapsite at gmx.net Thu Jul 17 06:17:43 2003 From: crapsite at gmx.net (Michael Herder) Date: Thu, 17 Jul 2003 07:17:43 +0200 Subject: [sane-devel] Small xscanimage bug Message-ID: <20030717051751.C8F04F8C@panda.mostang.com> Hi, Gerard Klaver reported a small bug in xscanimage (and quiteinsane). I don't know, whether he also informed the xscanimage maintainer, therefore I report it on sane-devel. Problem: The size of huge images gets displayed incorrectly. For instance, the size of a 27192 x 37439 image in 8bit RGB mode is reported as 1185,07 Mbyte. Fix: Cast ints to double before multiplication. In xscanimage.c around line 464 change double size = params.bytes_per_line * params.lines; to double size = (double)params.bytes_per_line * (double)params.lines; otherwise multiplying two ints might exceed INT_MAX. bb Michael From henning at meier-geinitz.de Thu Jul 17 15:06:17 2003 From: henning at meier-geinitz.de (Henning Meier-Geinitz) Date: Thu, 17 Jul 2003 16:06:17 +0200 Subject: [sane-devel] Small xscanimage bug In-Reply-To: <20030717051751.C8F04F8C@panda.mostang.com> References: <20030717051751.C8F04F8C@panda.mostang.com> Message-ID: <20030717140617.GB1197@meier-geinitz.de> Hi, On Thu, Jul 17, 2003 at 07:17:43AM +0200, Michael Herder wrote: > The size of huge images gets displayed incorrectly. For instance, the size > of a 27192 x 37439 image in 8bit RGB mode is reported as 1185,07 Mbyte. Thanks. It's now fixed in CVS. Bye, Henning From gerard at gkall.hobby.nl Thu Jul 17 17:23:05 2003 From: gerard at gkall.hobby.nl (gerard klaver) Date: 17 Jul 2003 16:23:05 +0000 Subject: [sane-devel] Small xscanimage bug In-Reply-To: <20030717051751.C8F04F8C@panda.mostang.com> References: <20030717051751.C8F04F8C@panda.mostang.com> Message-ID: <1058458984.1799.13.camel@gkall-lex> On Thu, 2003-07-17 at 05:17, Michael Herder wrote: > Hi, > Gerard Klaver reported a small bug in xscanimage (and quiteinsane). I don't > know, whether he also informed the xscanimage maintainer, therefore I report > it on sane-devel. Not yet, but thanks :-) > > Problem: > The size of huge images gets displayed incorrectly. For instance, the size > of a 27192 x 37439 image in 8bit RGB mode is reported as 1185,07 Mbyte. > > Fix: > Cast ints to double before multiplication. > In xscanimage.c around line 464 change > double size = params.bytes_per_line * params.lines; > > to > > double size = (double)params.bytes_per_line * (double)params.lines; > > otherwise multiplying two ints might exceed INT_MAX. > > bb > Michael I've changed the following lines in the test backend so you don't need a connected scanner to test this: test.conf line 27 change 1200 to 4800 test.c line 88 change 1200 to 4800 -- ---------- m.vr.gr. Gerard Klaver From henning at meier-geinitz.de Thu Jul 17 15:58:22 2003 From: henning at meier-geinitz.de (Henning Meier-Geinitz) Date: Thu, 17 Jul 2003 16:58:22 +0200 Subject: [sane-devel] Small xscanimage bug In-Reply-To: <1058458984.1799.13.camel@gkall-lex> References: <20030717051751.C8F04F8C@panda.mostang.com> <1058458984.1799.13.camel@gkall-lex> Message-ID: <20030717145822.GA8073@meier-geinitz.de> Hi, On Thu, Jul 17, 2003 at 04:23:05PM +0000, gerard klaver wrote: > I've changed the following lines in the test backend so you don't need a > connected scanner to test this: That's how I tested that also :-) > test.conf line 27 change 1200 to 4800 > test.c line 88 change 1200 to 4800 Changing in test.conf is enough. Bye, Henning From henning at meier-geinitz.de Thu Jul 17 16:03:45 2003 From: henning at meier-geinitz.de (Henning Meier-Geinitz) Date: Thu, 17 Jul 2003 17:03:45 +0200 Subject: [sane-devel] Re: Bug on xsane 0.90 and help In-Reply-To: <200307161937.30965.oliver.rauch@rauch-domain.de> References: <200307161856.28860.blaisorblade_work@yahoo.it> <200307161937.30965.oliver.rauch@rauch-domain.de> Message-ID: <20030717150345.GB8073@meier-geinitz.de> Hi, On Wed, Jul 16, 2003 at 07:37:30PM +0200, Oliver Rauch wrote: > If the backend can only be opened by one frontend it may help to add > your suggested fcntl() function, but this must be done in the > backend. I've changed this in sanei_usb instead, so it should work for all USB backends now. I haven't touched sanei_scsi, so anyone with more expereince with that code may add the appropriate fcntl there if there are any SCSI backends that open the scanner on sane_start, not sane_open. Bye, Henning From henning at meier-geinitz.de Fri Jul 18 13:23:45 2003 From: henning at meier-geinitz.de (Henning Meier-Geinitz) Date: Fri, 18 Jul 2003 14:23:45 +0200 Subject: [sane-devel] sane-find-scanner can detect the type of USB chipset now Message-ID: <20030718122345.GA3449@meier-geinitz.de> Hi, I've just added support for detecting USB chipsets in sane-find-scanner in CVS. If you don't have access to CVS, a snapshot of sane-backends is here: http://www.meier-geinitz.de/sane/snapshots/ If the chipset is detected, the output looks like this: found USB scanner (vendor=0x05d8, product=0x4002, chip=GT-6801) at libusb:001:011 or this (if the kernel scanner driver is loaded): found USB scanner (vendor=0x05d8, product=0x4002, chip=GT-6801?) at libusb:001:011 The idea is to be able to find out, which new devices use the same chip and may be supported by an already existing backend. Keep in mind that just detecting the chipsets doesn't mean that the scanner is supported by SANE. Please test with your scanners. I want to make sure that I haven't broken anything. Also please add tests for more chipsets. First check the characteristics of your chip in the USB descriptor, e.g. number and type of endpoints. If you are sure that you've found "your" chip, you can send a typical message to the scanner like a control message to get the firmware version or similar. The code is in tools/check-usb-chip.c. Just copy one of the existing tests and change as it fits. If you have a scanner whose chip is not detected but can't write the code yourself, please send the output of "sane-find-scanner -v -v" and tell me, which chip it uses. I'll try to write a test myself in this case. The following chipsets are currently detected: Grandtech GT-6801 (e.g. Mustek BearPaw 1200 CU) Grandtech GT-6816 (e.g. Mustek BearPaw 2400 CU Plus) Mustek MA-1015 (Mustek ScanExpress 1200 USB) Mustek MA-1017 (e.g. Mustek ScanExpress 1200 UB) Mustek MA-1509 (Mustek BearPaw 1200F, SCSI-over-USB) National Semiconductor LM983x "Merlin" (e.g. HP ScanJet 2200c) The code for these tests was taken from the "check-usb-scanner" program which is obsolete now. Bye, Henning From iainjunk at freeuk.com Fri Jul 18 22:29:37 2003 From: iainjunk at freeuk.com (Iain Mac Donald) Date: 18 Jul 2003 22:29:37 +0100 Subject: [sane-devel] scanimage & epson with gamma correction Message-ID: <1058563777.3435.10.camel@bill> Hello I have been trying to use scanimage to batch scan some colour slides on an Epson 2450 Photo. My purpose is to have a digital reference file for every slide without having to interactively edit each image. Scans using the standard settings usually appear too dark. I decided to use the --red-gamma-table option as the --brightness option did not produce the desired results. The command I used is shown below When doing this I get the error message attempted to set inactive option red-gamma-table As an alternative I tried to use the --gamma-table option (not listed for epson) I received this error unrecognized option '--gamma-table' The scanimage -h man page specifically mentions the red-gamma-table option (and green, blue). I have also used the --gamma-correction 'User defined' option at the same time which is accepted but I still get the same error message. Otherwise everything works perfectly. Anyone have a working version of this or know what is wrong? Is gamma correction unsupported? Any help much appreciated. Iain. ============================================= scanimage -d epson:/dev/usb/scanner0 --format=pnm --focus-position 'Focus 2.5mm above glass' --sharpness 2 --resolution 600 --red-gamma-table '/home/iain/.sane/gammatable.epson ' --source 'Transparency Unit' --film-type 'Positive Film' -x 28mm -y 40mm -l 38.5mm -t 7.8mm --mode Color > $fn.1.pnm debian scanimage 1.0.12 -- Iain Mac Donald Glenfintaig Lodge, Spean Bridge, Lochaber, PH34 4DX, Scotland Phone +44 (1397) 712 407 email iainjunk at freeuk.com From henning at meier-geinitz.de Sat Jul 19 07:22:51 2003 From: henning at meier-geinitz.de (Henning Meier-Geinitz) Date: Sat, 19 Jul 2003 08:22:51 +0200 Subject: [sane-devel] scanimage & epson with gamma correction In-Reply-To: <1058563777.3435.10.camel@bill> References: <1058563777.3435.10.camel@bill> Message-ID: <20030719062251.GA7130@meier-geinitz.de> Hi, On Fri, Jul 18, 2003 at 10:29:37PM +0100, Iain Mac Donald wrote: > I have been trying to use scanimage to batch scan some colour slides on > an Epson 2450 Photo. My purpose is to have a digital reference file for > every slide without having to interactively edit each image. Scans using > the standard settings usually appear too dark. I decided to use the > --red-gamma-table option as the --brightness option did not produce the > desired results. The command I used is shown below > > When doing this I get the error message > > attempted to set inactive option red-gamma-table Well, the option is not active :-) When you run "scanimage -h", you should get an "inactive" marker after the option. > As an alternative I tried to use the --gamma-table option (not listed > for epson) I received this error That one is disabled in the source code. > The scanimage -h man page specifically mentions the red-gamma-table > option (and green, blue). I have also used the --gamma-correction 'User > defined' option at the same time which is accepted but I still get the > same error message. I think "--gamma-correction" must be used before --red-gamma-table in the command line. Does "scanimage --help" list "User Defined" as a possible value for --gama-correction? > Otherwise everything works perfectly. Anyone have a working version of > this or know what is wrong? Is gamma correction unsupported? Any help > much appreciated. I don't have an Epson scanner. But from the source code it looks like that not all scanners support that feature. > scanimage -d epson:/dev/usb/scanner0 --format=pnm --focus-position > 'Focus 2.5mm above glass' --sharpness 2 --resolution 600 > --red-gamma-table '/home/iain/.sane/gammatable.epson ' --source The argument for the --red-gamma-table is the gamma table itself, not a filename. You can generate gamma tables with gamma4scanimage. Bye, Henning From iainjunk at freeuk.com Sat Jul 19 10:03:52 2003 From: iainjunk at freeuk.com (Iain Mac Donald) Date: 19 Jul 2003 10:03:52 +0100 Subject: [sane-devel] scanimage & epson with gamma correction In-Reply-To: <20030719062251.GA7130@meier-geinitz.de> References: <1058563777.3435.10.camel@bill> <20030719062251.GA7130@meier-geinitz.de> Message-ID: <1058605432.414.47.camel@bill> Hello Henning Thanks for the info. On Sat, 2003-07-19 at 07:22, Henning Meier-Geinitz wrote: > > > > When doing this I get the error message > > > > attempted to set inactive option red-gamma-table > > Well, the option is not active :-) When you run "scanimage -h", you > should get an "inactive" marker after the option. > The option as listed in the man page is "--red-gamma-table 0..255,... Gamma-correction table for the red band." Colour correction options do have inactive flags. > > I think "--gamma-correction" must be used before --red-gamma-table in > the command line. Does "scanimage --help" list "User Defined" as a > possible value for --gama-correction? I had tried the option in lots of positions ;-) The man page (scanimage --help...) states "--gamma-correction Default|User defined|High density printing|Low density printing|High contrast printing [Default] Selectes the gamma correction value from a list of pre-defined devices or the user defined table, which can be downloaded to the scanner" > > The argument for the --red-gamma-table is the gamma table itself, not > a filename. You can generate gamma tables with gamma4scanimage. > I have used gamma4scanimage and a very handy tool it is too. So rather than referencing a file I have placed the table on the command line didn't work though. Maybe I need to try a few more combinations. What confuses me though is it appears that xsane does correct the gamma. Or is xsane changing the value before showing the picture in the viewer? Thanks and regards, Iain. From henning at meier-geinitz.de Sat Jul 19 10:24:07 2003 From: henning at meier-geinitz.de (Henning Meier-Geinitz) Date: Sat, 19 Jul 2003 11:24:07 +0200 Subject: [sane-devel] scanimage & epson with gamma correction In-Reply-To: <1058605432.414.47.camel@bill> References: <1058563777.3435.10.camel@bill> <20030719062251.GA7130@meier-geinitz.de> <1058605432.414.47.camel@bill> Message-ID: <20030719092407.GA7419@meier-geinitz.de> Hi, On Sat, Jul 19, 2003 at 10:03:52AM +0100, Iain Mac Donald wrote: > Thanks for the info. As I said I don't have an Epson scanner for testing. So the epson backend maintainer may have the authorative answer :-) > The option as listed in the man page is > > "--red-gamma-table 0..255,... > Gamma-correction table for the red band." > > Colour correction options do have inactive flags. Ooops, it looks like scanimage doesn't print "inactive" dor array-like functions. That needs to be fixed, I think. By the way: Be careful with the scanimage manpage. It only lists examples. The options are "generated" by the backends, not scanimage. So your backend may have different options than those mentioned in the manpage. scanimage --help is authorative. > > I think "--gamma-correction" must be used before --red-gamma-table in > > the command line. Does "scanimage --help" list "User Defined" as a > > possible value for --gama-correction? > > I had tried the option in lots of positions ;-) > The man page (scanimage --help...) states > > "--gamma-correction Default|User defined|High density printing|Low > density printing|High contrast printing [Default] > Selectes the gamma correction value from a list of pre-defined > devices > or the user defined table, which can be downloaded to the > scanner" --gamma-correction "User defined" --red-gamma-table 0,1,2,3,... should work in this case. But maybe I missed some other option? > > The argument for the --red-gamma-table is the gamma table itself, not > > a filename. You can generate gamma tables with gamma4scanimage. > > > > I have used gamma4scanimage and a very handy tool it is too. So rather > than referencing a file I have placed the table on the command line > didn't work though. Maybe I need to try a few more combinations. I think the "setting inactive option" is a different error, it's not connected to the kind of the argument. > What confuses me though is it appears that xsane does correct the gamma. > Or is xsane changing the value before showing the picture in the viewer? XSane can do both: Use its own gamma tables applied after scanning the image and use the gamma table options of the backend. If the backend provides gamma table options, they will be used by scanimage. Maybe setting the environment variable SANE_DEBUG_EPSON=255 and calling scanimage after that shows a hint what's wrong? Bye, Henning From henning at meier-geinitz.de Sat Jul 19 11:10:15 2003 From: henning at meier-geinitz.de (Henning Meier-Geinitz) Date: Sat, 19 Jul 2003 12:10:15 +0200 Subject: [sane-devel] Does anyone need help writing a backend? Message-ID: <20030719101015.GA7579@meier-geinitz.de> Hi, Usually people ask for help here. In this case it's the other way round: I may have some spare time during the next few weeks so if anyone needs help writing a backend I may able to spend some time on it. The list of unsupported scanners gets longer and longer so I thought something should be done :-) I prefer working on fairly recent not too expensive USB scanners so I can get one of these devices for coding. Bye, Henning From henning at meier-geinitz.de Sat Jul 19 12:36:07 2003 From: henning at meier-geinitz.de (Henning Meier-Geinitz) Date: Sat, 19 Jul 2003 13:36:07 +0200 Subject: [sane-devel] Please update description files Message-ID: <20030719113607.GA8628@meier-geinitz.de> Hi, Please update your description files (doc/descriptions/*.desc) to use the new :status values and remove the :backend status. So the users get a better idea how good the support for their scanners are. Quote from doc/descriptions.txt: The keyword `:status' is an indication of the level of support for the model. It's followed by one of the following keyword arguments: `:unsupported', `:untested', `:minimal', `:basic', `:good', or `:complete'. The `:status' keyword refers to the previous `:model', is optional and should be used only once per model. `:unsupported' means the device is not supported at least by this backend. The keyword should only be used in the file `unsupported.desc', or to make clear that a specific scanner is not supported by a backend. `:untested' means the device may be supported but couldn't be tested. `:minimal' means that the device is detected and scans at least in one mode. But the quality is bad or important features won't work. `:basic' means it works at least in the most important modes but quality is not perfect. `:good' means the device is usable for day-to-day work. Some rather exotic features may be missing. `:complete' means the backends supports everything the device can do. Example: `:status :untested' Running "make" in doc/ will give you warnings for your backend if there are still old :status values in your description file. The following backend description files haven't been updated yet: avision canon canon_pp canon630u coolscan2 fujitsu gphoto2 (just remove the :status line, check spelling of comment :-) hp hp5400 hpsj5s leo matsushita microtek microtek2 mustek_pp plustek sceptre sharp snapscan st400 teco1 teco2 teco3 umax umax1220u umax_pp If you don't have enough time in the next few weeks please contact me. I'll try to change your file to the new systax in this case. Before the next release I'll update all remaining description files. However it's better if the backend maintainer does it because he knows how well his scanners are supported so I don't have to guess. If you own a scanner that is supported by SANE please tell us if the status mentioned on our pages is correct. E.g. search for your scanner in the scanner search engine: http://sane.informatik.uni-freiburg.de/cgi-bin/driver.pl Currently the old status codes are translated to the new ones, but this translation isn't very intelligent. A stable backend can still provide only minimal support or vice versa. Bye, Henning From henning at meier-geinitz.de Sat Jul 19 13:06:41 2003 From: henning at meier-geinitz.de (Henning Meier-Geinitz) Date: Sat, 19 Jul 2003 14:06:41 +0200 Subject: [sane-devel] Does anyone need help writing a backend? In-Reply-To: <20030719.062848.1836.0.jollyprince@juno.com> References: <20030719.062848.1836.0.jollyprince@juno.com> Message-ID: <20030719120641.GB7579@meier-geinitz.de> Hi, (cc'ing to sane-devel) On Sat, Jul 19, 2003 at 06:28:48AM -0500, Roger O Wales wrote: > I do, but I don't think I'm going to be able to get the info from either > the Visioneer people or the Realtek people. I've called Mr. Brandon > Green the Technical Director of Visioneer at ((25) 251-6300 but keep > getting his voice mail service and no replies. Realtek is worse. I'm > not very good at reverse engineering stuff even though I've been chief > engineer several times in my life. I have no idea how complicated that realtek protocol is. Sometimes it's quite easy, sometimes it's pretty hard. > I will say that the Visioneer 5800 satisfies the low end of the price > spectrum. Micro Center, a national mail order, and retailer is featuring > a $10 rebate on this scanner for $29.99 USD. I'd like to help but the problem is that Visioneer scanners don't seem to be sold in Germany. At least I have checked about 10 online stores and nobody sells any Visioneer scanners. Even Ebay Germany has only a few of them and only older models. So I don't think I'm able to get one of these and help. Support for these scanners would be good because this Realtek chipset seems to be used by quite a variety of scanners. Bye, Henning From iainjunk at freeuk.com Sat Jul 19 13:27:24 2003 From: iainjunk at freeuk.com (Iain Mac Donald) Date: 19 Jul 2003 13:27:24 +0100 Subject: [sane-devel] scanimage & epson with gamma correction In-Reply-To: <20030719062251.GA7130@meier-geinitz.de> References: <1058563777.3435.10.camel@bill> <20030719062251.GA7130@meier-geinitz.de> Message-ID: <1058617645.414.98.camel@bill> Whoopee! It works Thanks Karl Heinz and Henning. Here are my findings. scanimage -d epson:/dev/usb/scanner0 --gamma-correction 'User defined' THEN --red-gamma-table 'gamma table NOT referenced file' The --gamma-correction option must come before --red-gamma-table (or green or blue). Otherwise the response is unrecognized option '--gamma-table' It doesn't even need to be immediately before just somewhere before. The option --focus-position 'Focus 2.5mm above glass' doesn't report as a problem maybe it just gets ignored. My scans do appear a little "soft" compared to the original. This might depend on how thick my slide mounts are and whether the default is to focus on the glass or 2.5mm above it. For 35mm I don't use film strips. Now back to gamma4scanimage... -- Iain From gerhard at gjaeger.de Sat Jul 19 13:38:36 2003 From: gerhard at gjaeger.de (Jaeger, Gerhard) Date: Sat, 19 Jul 2003 14:38:36 +0200 Subject: [sane-devel] Does anyone need help writing a backend? In-Reply-To: <20030719101015.GA7579@meier-geinitz.de> References: <20030719101015.GA7579@meier-geinitz.de> Message-ID: <200307191438.36375.gerhard@gjaeger.de> On Samstag, 19. Juli 2003 12:10, Henning Meier-Geinitz wrote: > Hi, > > Usually people ask for help here. In this case it's the other way > round: I may have some spare time during the next few weeks so if > anyone needs help writing a backend I may able to spend some time on > it. "Oh, what a lucky man he is...." >The list of unsupported scanners gets longer and longer so I > thought something should be done :-) > > I prefer working on fairly recent not too expensive USB scanners so I > can get one of these devices for coding. Well, I think that by supporting the GeneSys Logic stuff we can cover a lot of currently available devices. I know that Oliver Rauch is working on that but I don't know the status. The only thing I know is, that he's short of time... --> Just a proposal! Are there any other chipsets around that may have the same spreading? Ciao Gerhard From jollyprince at juno.com Sat Jul 19 15:48:10 2003 From: jollyprince at juno.com (Roger O Wales) Date: Sat, 19 Jul 2003 09:48:10 -0500 Subject: [sane-devel] Does anyone need help writing a backend? Message-ID: <20030719.094810.1772.0.jollyprince@juno.com> All roads seem to lead me to a new solution. I ordered an Epson 1260 yesterday. On Sat, 19 Jul 2003 14:06:41 +0200 Henning Meier-Geinitz writes: > Hi, > > (cc'ing to sane-devel) > > On Sat, Jul 19, 2003 at 06:28:48AM -0500, Roger O Wales wrote: > > I do, but I don't think I'm going to be able to get the info from > either > > the Visioneer people or the Realtek people. I've called Mr. > Brandon > > Green the Technical Director of Visioneer at ((25) 251-6300 but > keep > > getting his voice mail service and no replies. Realtek is worse. > I'm > > not very good at reverse engineering stuff even though I've been > chief > > engineer several times in my life. > > I have no idea how complicated that realtek protocol is. Sometimes > it's quite easy, sometimes it's pretty hard. > > > I will say that the Visioneer 5800 satisfies the low end of the > price > > spectrum. Micro Center, a national mail order, and retailer is > featuring > > a $10 rebate on this scanner for $29.99 USD. > > I'd like to help but the problem is that Visioneer scanners don't > seem > to be sold in Germany. At least I have checked about 10 online > stores > and nobody sells any Visioneer scanners. Even Ebay Germany has only > a > few of them and only older models. So I don't think I'm able to get > one of these and help. > > Support for these scanners would be good because this Realtek > chipset > seems to be used by quite a variety of scanners. > > Bye, > Henning > _______________________________________________ > Sane-devel mailing list > Sane-devel at www.mostang.com > http://www.mostang.com/mailman/listinfo/sane-devel > > ________________________________________________________________ The best thing to hit the internet in years - Juno SpeedBand! Surf the web up to FIVE TIMES FASTER! Only $14.95/ month - visit www.juno.com to sign up today! From hshane at austin.rr.com Sat Jul 19 22:45:12 2003 From: hshane at austin.rr.com (Howard Shane) Date: Sat, 19 Jul 2003 16:45:12 -0500 Subject: [sane-devel] Third revision of Scanner HOWTO available Message-ID: <3F19BBE8.6030409@austin.rr.com> ...at http://66.25.191.66/docs/HOWTOS/Scanner/index.html This is your last chance to point out any remaining technical errata prior to grammatical review and (hopefully) publication by TLDP. Thanks for any input, hs From henning at meier-geinitz.de Sun Jul 20 10:55:13 2003 From: henning at meier-geinitz.de (Henning Meier-Geinitz) Date: Sun, 20 Jul 2003 11:55:13 +0200 Subject: [sane-devel] Third revision of Scanner HOWTO available In-Reply-To: <3F19BBE8.6030409@austin.rr.com> References: <3F19BBE8.6030409@austin.rr.com> Message-ID: <20030720095513.GA27016@meier-geinitz.de> Hi, On Sat, Jul 19, 2003 at 04:45:12PM -0500, Howard Shane wrote: > ...at http://66.25.191.66/docs/HOWTOS/Scanner/index.html > > This is your last chance to point out any remaining technical errata > prior to grammatical review and (hopefully) publication by TLDP. Ok, lets see if I can nitpick a bit :-) I'm not a native english speaker, so grammar/spelling corrections may be wrong. | 1. Introduction | | within X-windows ->"The X Consortium requests that the following names be used when referring to this software: X, X Window System, X Version 11, X Window System, Version 11, X11" (from man X) | It does not address how use the available software --> how to use (?) | 2.1. SCSI Devices | While most SCSI-cards that linux supports allow scanning, you should | be aware that if your SCSI card came come bundled with your scanner | you may run into problems, as these may not be complete SCSI cards | (much like a winmodem). I don't think that's a very good comparison. While a winmodem is not a modem at all (it's more a sound chip), the bundled SCSI adapter are real SCSI cards. They may not be of good qquality, i.e. don't have IRQ/DMA support. But at least the ones I know of can be used for e.g. CDROMS, too. Well, I wouldn't do that but anyway. | 3.1. USB Scanners and Libusb | $ grep -e USB_DEVICEFS /boot/config-X.XX --> I think it's easier to do grep "\(usbfs\)\|\(usbdevfs\)" /proc/filesystems This way you are checking the currently running kernel. | If you have USB device filesystem running, and you have usb devices | loaded already you can confirm this with cat /proc/bus/usb, which | should give you a list of active devices the kernel is aware of. --> It's "cat /proc/bus/usb/devices". | IMPORTANT: You cannot have both kernel scanner support enabled (i.e., | compiled in statically or the module loaded if a module) and libusb | installed and access the hardware at the same time, or nothing will | work. Well, I know what you mean but it's not completely true the way you have written it. If the scanner driver is loaded and has detected the scanner it will "lock" it. So libusb can't use it. But the scanner driver can still use it. After unloading the scanner driver, libusb can use it again. So there is no real conflict. The scanner driver just has the higher priority. | (A hint for newbies: [...] | where 'file.txt' will contain the info that can then be accessed with | cat.) --> with "less", otherwse it will scroll again too fast. | 3.2.2. Kernel USB Support | USB-ohci, USB-ehci, --> lower case (usb-ohci) | 3.3.2. Directio | | Some parallel port scanners can be accessed with directio (a.k.a. | direct_IO) instead; you will likely need to compile your own SANE | binaries and have libieee1484 installed. You will need generic scsi | device support in your kernel. At compile time use the | --enable-parport-directio --enable-scsi-directio with the ./configure | script. I'm not an expert in these things but I think you are mixing different topics here. --enable-parport-directio means, that direct hardware access to the ports (inb/outb assembler commands) is used. So you don't need libieee1284 (not 1448) here. This is only used in the mustek_pp and umax_pp backends. --enable-scsi-directio From adeuring at gmx.net Sun Jul 20 12:42:58 2003 From: adeuring at gmx.net (abel deuring) Date: Sun, 20 Jul 2003 13:42:58 +0200 Subject: [sane-devel] Third revision of Scanner HOWTO available In-Reply-To: <3F19BBE8.6030409@austin.rr.com> References: <3F19BBE8.6030409@austin.rr.com> Message-ID: <3F1A8042.6040307@gmx.net> Howard Shane schrieb: > ...at http://66.25.191.66/docs/HOWTOS/Scanner/index.html > > This is your last chance to point out any remaining technical errata > prior to grammatical review and (hopefully) publication by TLDP. Perhaps I'm jumping a bit too late into the discussion of your Howto, but anyway, here are my 2 cents: > 2.1. SCSI Devices > > These scanners connect to an SCSI adapter. In general just about > any scanner using an SCSI interface should work, though some with > difficulty. While most SCSI-cards that linux supports allow scanning, > you should be aware that if your SCSI card came come bundled with > your scanner you may run into problems, as these may not be complete > SCSI cards (much like a winmodem). I don't think that "just about any scanner using a SCSI interface" works with Sane -- users should first check on the Sane web site, if a scanner is indeed supported. > 3.2.1. Kernel SCSI Support > > If you have an SCSI-type interface, when invoking make config, make > menuconfig or make xconfig etc., be aware that in addition to the > option to support your particular SCSI adapter, generic SCSI device > support is also required. Such generic devices are usually named > /dev/sg0, /dev/sg1... Since you probably already know if your card is > supported from the supported devices and backends list, all that is ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > required after confirming that your kernel supports your hardware and > generic SCSI devices is to load the appropriate module(s): The text "supported devices and backends list" links to the page http://www.mostang.com/sane/sane-mfgs.html (SANE: supported devices), which does not list any SCSI adapters, but "only" scanners, while you are writing here about kernel SCSI support. I think it would be good to point out (either in 3.2.1 or perhaps in section 2.1) that one must have support for a SCSI adapter card in the kernel, regardless of the SCSI scanner model. And it would perhaps help to mention that any combination of SCSI adapter and SCSI scanner will work, provided that the SCSI adapter is suported by the kernel and that the scanner is supported by Sane. (there are some nasty combinations though, like HP scanners / 2.4 kernels / Bus Logic adapters.) In "7. Sane Frontends", you write only about xsane and xscanimage. While I agree that xsane is probably the most advanced frontend, I think it would be fair to mention at least shortly that other frontends exist, like Quiteinsane and Kooka. Even Openoffice has builtin support for Sane (though not with a very comfortable user interface...). Abel From peter at pscomp.com Sun Jul 20 13:48:54 2003 From: peter at pscomp.com (Peter Santoro) Date: Sun, 20 Jul 2003 08:48:54 -0400 Subject: [sane-devel] Sane API Suggestion Message-ID: <3F1A8FB6.60505@pscomp.com> The initial version of my based application (written in scheme) does not use the sane api directly, but utilizes scanimage and scanadf to perform scanning. In a future release, I would like to use the sane api directly for better control. Although I have a number of years of experience programming C/C++/Java, I now prefer to use scheme for most of my programming. After briefly looking at the sane api, I noticed that callbacks are sometimes used. I am aware of a number of ways and various ffi libraries to handle callbacks from non-C to C, but it sure would be nice if the sane API was a little more non-C friendly. Specifically, when a callback pointer is required, why not also require a "user data" void pointer (or perhaps an integer id) that would be returned untouched to the callback as a parameter? This would allow non-C languages to interface more easily to the sane api. A thin C interface layer could then use one callback dispatcher to handle all C callbacks. The callback dispatcher could use stdarg.h to process the other args or perhaps they could be passed to the callback using a count and array. In the future, I would be happy to contribute a scheme->sane interface library to the sane project, but it sure would be nice if the sane api was more non-C friendly. Peter From peter at pscomp.com Sun Jul 20 14:00:41 2003 From: peter at pscomp.com (Peter Santoro) Date: Sun, 20 Jul 2003 09:00:41 -0400 Subject: [sane-devel] re: Sane API Suggestion Message-ID: <3F1A9279.1060006@pscomp.com> Oops, sorry for the typo in my first paragraph. Here's my previous post with a corrected first paragraph: The initial version of my application (written in scheme) does not use the sane api directly, but utilizes scanimage and scanadf to perform scanning. In a future release, I would like to use the sane api directly for better control. Although I have a number of years of experience programming C/C++/Java, I now prefer to use scheme for most of my programming. After briefly looking at the sane api, I noticed that callbacks are sometimes used. I am aware of a number of ways and various ffi libraries to handle callbacks from non-C to C, but it sure would be nice if the sane API was a little more non-C friendly. Specifically, when a callback pointer is required, why not also require a "user data" void pointer (or perhaps an integer id) that would be returned untouched to the callback as a parameter? This would allow non-C languages to interface more easily to the sane api. A thin C interface layer could then use one callback dispatcher to handle all C callbacks. The callback dispatcher could use stdarg.h to process the other args or perhaps they could be passed to the callback using a count and array. In the future, I would be happy to contribute a scheme->sane interface library to the sane project, but it sure would be nice if the sane api was more non-C friendly. Peter From henning at meier-geinitz.de Sun Jul 20 13:54:31 2003 From: henning at meier-geinitz.de (Henning Meier-Geinitz) Date: Sun, 20 Jul 2003 14:54:31 +0200 Subject: [sane-devel] Does anyone need help writing a backend? In-Reply-To: <200307191438.36375.gerhard@gjaeger.de> References: <20030719101015.GA7579@meier-geinitz.de> <200307191438.36375.gerhard@gjaeger.de> Message-ID: <20030720125431.GA4833@meier-geinitz.de> Hi, On Sat, Jul 19, 2003 at 02:38:36PM +0200, Jaeger, Gerhard wrote: > On Samstag, 19. Juli 2003 12:10, Henning Meier-Geinitz wrote: > > Hi, > > > > Usually people ask for help here. In this case it's the other way > > round: I may have some spare time during the next few weeks so if > > anyone needs help writing a backend I may able to spend some time on > > it. > > "Oh, what a lucky man he is...." Ha, I just finished my PhD examination so I think it's fair to have some free time now :-) > >The list of unsupported scanners gets longer and longer so I > > thought something should be done :-) > > > > I prefer working on fairly recent not too expensive USB scanners so I > > can get one of these devices for coding. > > Well, I think that by supporting the GeneSys Logic stuff we can cover a lot of > currently available devices. I know that Oliver Rauch is working on that but I > don't know the status. The only thing I know is, that he's short of time... > --> Just a proposal! Ok, I'll get a UMAX 4500 and will see what I can do. From my quick scan of our lists it looks like these scanners use a GL646 chip: Avision iVina FB1600 http://www.meier-geinitz.de/sane/misc/umax-astra-4500.txt Genius ColorPage HR7X http://www.meier-geinitz.de/sane/misc/genius-colorpage-hr7x.txt Lexmark X83 http://www.meier-geinitz.de/sane/misc/lexmark-x83.txt Medion/Tevion MD 5345 http://www.meier-geinitz.de/sane/misc/medion-MD5345.txt Medion MD6228 Medion MD5345 http://www.meier-geinitz.de/sane/misc/medion-md6228.txt Plustek OpticPro S12 Plustek OpticPro S24 UMAX Astra 4500 http://www.meier-geinitz.de/sane/misc/umax-astra-4500.txt And maybe the: Canon CanoScan D2400UF (maybe) http://www.meier-geinitz.de/sane/misc/canon-d2400uf.txt But the interval for the interrupt endpoint is different here: Ivl=10ms. I'm not sure if that matters. Any more scanners that use the GL646 chipset? > Are there any other chipsets around that may have the same spreading? There are some more Genesys chipsets (e.g. the gl841). I have no idea how common they are and how different they are from the gl646. The Realtek RTS8801B and C chips are also fairly common. E.g. some HP and Visioneer scanners use these chips. Ok, so I'd like to know everything about the gl646. I know the data sheet from http://www.genesyslogic.com/GL646.htm but nothing more. Are there already any logs or code (Oliver?)? Bye, Henning From henning at meier-geinitz.de Sun Jul 20 14:49:58 2003 From: henning at meier-geinitz.de (Henning Meier-Geinitz) Date: Sun, 20 Jul 2003 15:49:58 +0200 Subject: [sane-devel] Sane API Suggestion In-Reply-To: <3F1A8FB6.60505@pscomp.com> References: <3F1A8FB6.60505@pscomp.com> Message-ID: <20030720134958.GB4833@meier-geinitz.de> Hi, On Sun, Jul 20, 2003 at 08:48:54AM -0400, Peter Santoro wrote: > Although I have a number of years of experience programming C/C++/Java, I > now prefer to use scheme for most of my programming. After briefly looking > at the sane api, I noticed that callbacks are sometimes used. From henning at meier-geinitz.de Sun Jul 20 14:52:20 2003 From: henning at meier-geinitz.de (Henning Meier-Geinitz) Date: Sun, 20 Jul 2003 15:52:20 +0200 Subject: [sane-devel] Sane API Suggestion In-Reply-To: <3F1A8FB6.60505@pscomp.com> References: <3F1A8FB6.60505@pscomp.com> Message-ID: <20030720135220.GC4833@meier-geinitz.de> Hi, I forgot to add: On Sun, Jul 20, 2003 at 08:48:54AM -0400, Peter Santoro wrote: > In the future, I would be happy to contribute a scheme->sane interface > library to the sane project, but it sure would be nice if the sane api was > more non-C friendly. I don't want to discourage you: A scheme->sane interface and interfaces to other languages are higly appreciated. I rememebr someone writing a C++ interface and there is a (extremely outdated) java interface. Bye, Henning From andras at users.sourceforge.net Sun Jul 20 15:55:17 2003 From: andras at users.sourceforge.net (Major A) Date: Sun, 20 Jul 2003 15:55:17 +0100 Subject: [sane-devel] Third revision of Scanner HOWTO available In-Reply-To: <3F19BBE8.6030409@austin.rr.com> References: <3F19BBE8.6030409@austin.rr.com> Message-ID: <20030720145517.GE12005@ventus.lan> Howard, > Thanks for any input, Sorry for joining the discussion so late, and sorry for possibly duplicating what others have said (I didn't have time to read their responses). chapter 2.: There is no mention of IEEE 1394 devices. There should be, since several of those are supported by SANE, and setup might not be trivial. (See problems with LS-8000 with certain kernel versions.) (Oh, I've just spotted "Firewire" in there -- please refer to it as IEEE 1394, because that's the standard name, Firewire and i.Link are proprietary names for the same thing by Apple and Sony.) "Most USB devices are supported ... with the SANE application programming interface." This is very confusing, I think you should split that into two sentences. One thing is that they are supported by SANE, the other is that SANE uses a homogeneous API throughout, regardless of the hardware. chapter 3.: "IMPORTANT: You cannot have both kernel scanner support enabled (i.e., compiled in statically or the module loaded if a module) and libusb installed and access the hardware at the same time, or nothing will work." Why not? The only thing that won't work is sane-backends with a USB scanner if it was built with libusb support. "nothing will work" is a bit of an exaggeration. Also, libusb can safely be installed when the kernel USB scanner module is loaded, even SANE will work as long as sane-backend was built without libusb support. I'd write "Directio" as "DirectIO" in the title, or even "Direct I/O", to avoid confusion (directio can be mistaken as a typo, or a latin word!). chapter 4.: There is no mention of libusb here -- you don't need any device files outside /proc/bus/usb/ if you use libusb. Somewhere on the line, you should also include instructions on how to use hotplug to modify permissions to devices in /proc/bus/usb/ so that a regular user can access the scanner. "WARNING: If you enable 'devfs' without devfsd you will be left with an unbootable system!" -- not true: this only applies if CONFIG_DEVFS_MOUNT is also set. chapter 5.: saned section: there's no mention at all of the changes required to net.conf. Also, what's the warning all about? I'd say it's advisable to run saned as a dedicated user (I usually call it saned), but it's not a group. Also, once saned is set up properly, _everyone_ has access to the scanner without requiring root privileges, as long as their computer is listed in saned.conf. chapter 6.: It would be very important to note here that sane-find-scanner isn't related to any backends, therefore cannot tell whether the scanner is supported or not. It only looks for devices which claim to be scanners. BTW, it also works for IEEE 1394 devices (which essentially behave as SCSI once SBP2 is set up). chapter 7.: "X-windows" is misleading and even wrong. Please use "X11" or "The X Window System". "X-windows" sounds like a sci-fi version of M$ Windows. "gtk+-1.2": version unnecessary, write "GTK+" (in capitals please) It would be nice to elaborate on the GIMP-xsane relationship, i.e. that xsane can be used as a GIMP plugin, and maybe even how. Most people I know only ever scan with the GIMP plugin because they're used to TWAIN scanners under Windows that only support scanning from within an application. "A more spartan solution (though technically a meta-backend) is xscanimage, which is bundled with SANE": 1. it's not really spartan, given the gamma adjustment capabilities which surpass those of xsane, 2. it's NOT a meta-backend but a frontend, 3. it's bundled with sane-frontends, SANE is too general. This was just a quick run through the document, hope it all makes sense. I like the overall structure of the document. Andras =========================================================================== Major Andras e-mail: andras at users.sourceforge.net www: http://andras.webhop.org/ =========================================================================== From andras at users.sourceforge.net Sun Jul 20 16:18:30 2003 From: andras at users.sourceforge.net (Major A) Date: Sun, 20 Jul 2003 16:18:30 +0100 Subject: [sane-devel] Sane API Suggestion In-Reply-To: <20030720134958.GB4833@meier-geinitz.de> References: <3F1A8FB6.60505@pscomp.com> <20030720134958.GB4833@meier-geinitz.de> Message-ID: <20030720151830.GA8908@ventus.lan> > > A thin C interface layer could then use one callback dispatcher to > > handle all C callbacks. The callback dispatcher could use stdarg.h > > to process the other args or perhaps they could be passed to the > > callback using a count and array. > > Well, maybe the other developers have more experience with other > languages. My first impression however, is that this makes the > interface more complicated and complex. However, I'm no expert in > interface design so if the other developers say it's better that way, > I'll accept that. Scheme is a full-blown functional language, and thus very different from a pure procedural language. You can see from GObject (loosely part of GTK+) how difficult it is to approach object-oriented programming with C, and emulating functional programming in C would certainly be totally impractical. No C API will ever approach the full closure capabilities of Scheme, so some sacrifices on the Scheme side must always be made when interfacing C code. > > In the future, I would be happy to contribute a scheme->sane interface > > library to the sane project, but it sure would be nice if the sane api was > > more non-C friendly. > > Well, it's a C interface so beeing C-friendly is a feature :-) The SANE API is designed to be simple and portable, and any change towards object orientation or functional programming would only bloat it unnecessarily. Sorry, if you want to interface Scheme to SANE, you'll have to adapt to the way things are. Adding a callback data argument to both sane_init() and SANE_Authorization_Callback would cause a number of problems, in particular that of network transparency. Scheme or C++ programmers would certainly like to use that parameter as a pointer to a structure, but that only works if the size of the argument is at least that of void*. Since the latter varies across platforms, this would be ugly and non-portable. Since the only callback in SANE is the one responsible for authentication, I'd say it wouldn't be worth changing anything. A Scheme frontend would either have to relay the authentication request to the user, in which case the callback data is not used, or look up username and password in a database, in which case the resource string supplied is sufficient. Andras =========================================================================== Major Andras e-mail: andras at users.sourceforge.net www: http://andras.webhop.org/ =========================================================================== From henning at meier-geinitz.de Sun Jul 20 16:39:26 2003 From: henning at meier-geinitz.de (Henning Meier-Geinitz) Date: Sun, 20 Jul 2003 17:39:26 +0200 Subject: [sane-devel] Third revision of Scanner HOWTO available In-Reply-To: <20030720145517.GE12005@ventus.lan> References: <3F19BBE8.6030409@austin.rr.com> <20030720145517.GE12005@ventus.lan> Message-ID: <20030720153926.GE4833@meier-geinitz.de> Hi, On Sun, Jul 20, 2003 at 03:55:17PM +0100, Major A wrote: > "IMPORTANT: You cannot have both kernel scanner support enabled (i.e., > compiled in statically or the module loaded if a module) and libusb > installed and access the hardware at the same time, or nothing will > work." Why not? The only thing that won't work is sane-backends with a > USB scanner if it was built with libusb support. "nothing will work" > is a bit of an exaggeration. Also, libusb can safely be installed when > the kernel USB scanner module is loaded, even SANE will work as long > as sane-backend was built without libusb support. Even if SANE was built with libusb support there is no problem. If the backend asks sanei_usb for a vendor/product id combination, sanei_usb will try both the kernel scanner driver and libusb. If the kernel scanner driver is loaded, it has priority over libusb and is used. Otherwise libusb is used. I can't think of any problem here at all. bye, Henning From till.kamppeter at gmx.net Sun Jul 20 17:52:56 2003 From: till.kamppeter at gmx.net (Till Kamppeter) Date: Sun, 20 Jul 2003 18:52:56 +0200 Subject: [sane-devel] Third revision of Scanner HOWTO available In-Reply-To: <20030720145517.GE12005@ventus.lan> References: <3F19BBE8.6030409@austin.rr.com> <20030720145517.GE12005@ventus.lan> Message-ID: <3F1AC8E8.9010503@gmx.net> Major A wrote: > > chapter 5.: > > saned section: there's no mention at all of the changes required to > net.conf. Also, what's the warning all about? I'd say it's advisable > to run saned as a dedicated user (I usually call it saned), but it's > not a group. Also, once saned is set up properly, _everyone_ has > access to the scanner without requiring root privileges, as long as > their computer is listed in saned.conf. > I didn?t look into the document, but it should be mentioned that with saned and the net backend acting on one and the same machine as both client and server parallel scanners which are normally only accessible by root (e. g. Canon) can be accessed by normal users. Here a Mini-HOWTO: The problem is that the SANE driver for your scanner accesses the parallel port directly, without use of the kernel. Such way of device access is only possible for root. Due to the kernel not being used there is no special file in /dev or /proc which represents the scanner and whose permissions can be opened for normal users. Scanning-as-Normal-User-on-Wierd-Scanner-Mini-HOWTO --------------------------------------------------- Original version I presented on MandrakeClub: http://www.mandrakeclub.com/modules.php?op=modload&name=Splatt_Forum&file=viewtopic&topic=5895&forum=13 This version can also be used with non-Mandrake distros. 1. Make sure that saned is installed as in some distros it can be in an extra package (for example in Mandrake, type "urpmi saned" as root or use rpmdrake there). 2. Get root and stay root for the next steps. Create or edit /etc/xinetd.d/saned (we assume xinetd is used as in most modern distros): # default: off # description: The sane server accepts requests \ # for network access to a local scanner via the \ # network. service sane { disable = no port = 6566 socket_type = stream wait = no groups = yes user = root group = root server = /usr/sbin/saned } It can be already provided by your distro, but probably with user = saned group = saned Make sure that you have user = root group = root Add the line sane 6566/tcp # SANE Control Port to /etc/services if your distro didn?t put it there already. 3. Restart xinetd with service xinetd restart 4. Add a line only containing "localhost" in both /etc/sane.d/saned.conf and /etc/sane.d/net.conf. Make sure that in /etc/sane.d/dll.conf is a line containing only "net" and a line containing only the name of the driver for your scanner, both without comment sign ("#") in the beginning. Make also sure that the configuration file for your scanner driver /etc/sane.d/.conf is correctly set up (see "man sane-"). Mandrake Linux users can also proceed as follows: Start Scannerdrake scannerdrake and click on "Scanner sharing". Mark "The scanners on this machine are available to other computers" and "Use scanners on remote computers". Click on "Scanner sharing to hosts" and in the next window on "Add host". Then choose "Name/IP address of host:" and type "localhost" in the input line. Click "OK" and "Done". Now click "Use scanners on hosts: ..." and in the dialog appearing "Add host". In the next window choose "This machine" and click "OK". Click "Done" to get back into the "Scanner sharing" and "OK" to get back into the main window of Scannerdrake. Now you can close Scannerdrake. 5. Run X-Sane (or your preferred frontend) as normal user and you should be able to scan. Please report here whether it really works. 6. You can still share your scanner on a network, simply add the addresses of the clients to your /etc/sane.d/saned.conf file. How does this work? We use the network scanning facility of SANE, but our "network" consists of only one machine, the machine where your parallel scanner is connected to. You do not need a network card for it. Linux has a virtual network consisting of only the local machine which is used when your machine is called with the name "localhost" or the IP address 127.0.0.1. So the server and the client are on the same machine. The server is the "saned" which you have installed in step (1). It calls the scanner driver and communicates with the scanner. To make this possible you let it run with root privileges. This you have configured in step (2) and (3). In step (4) you have told that the local machine and no other machine can access to your scanner (/etc/sane.d/saned.conf or scannerdrake's "Scanner sharing to hosts:" button) and that locally started scanning software should search for scanner servers on the local machine (/etc/sane.d/net.conf or scannerdrake's "Use the scanners on hosts:" button). The client is the X-Sane running as a normal user, started in step (5). It searches for local scanners where a normal user has access to and for remote scanners. In your case it searches only on the local machine and finds the saned providing your scanner. This way the scanner driver runs as root, but the scanning frontend, X-Sane, as normal user. Troubleshooting: Does your scanner work if you scan as root? If so, please check whether running the command "ifconfig" lists the "lo" device and whether your /etc/hosts file contains a line like 127.0.0.1 localhost If not, do "ifup lo" and then try to scan as user with my method described above again. If you have a personal firewall installed, go to the firewall config tool of your distro (Mandrake: in the MCC ("Security" section), click on "Advanced" and in the appearing input line enter/add the port) and open the port 6566 (TCP if TCP/UDP has to be supplied). Check whether /etc/services contains the line sane 6566/tcp # SANE Control Port and add it if it is missing. Then enter the command service xinetd restart and try to scan as user again. If it does not work, post the output of the command shown on the SANE mailing list and also the config files mentioned in this posting. Till From till.kamppeter at gmx.net Sun Jul 20 18:11:08 2003 From: till.kamppeter at gmx.net (Till Kamppeter) Date: Sun, 20 Jul 2003 19:11:08 +0200 Subject: [sane-devel] Third revision of Scanner HOWTO available In-Reply-To: <3F1AC8E8.9010503@gmx.net> References: <3F19BBE8.6030409@austin.rr.com> <20030720145517.GE12005@ventus.lan> <3F1AC8E8.9010503@gmx.net> Message-ID: <3F1ACD2C.907@gmx.net> I have put up my Mini-HOWTO also here http://www.linuxprinting.org/download/digitalimage/Scanning-as-Normal-User-on-Wierd-Scanner-Mini-HOWTO.txt but all the way it should be the best to have this also described in your HOWTO. Till Till Kamppeter wrote: [...] > > Scanning-as-Normal-User-on-Wierd-Scanner-Mini-HOWTO > --------------------------------------------------- > [...] From hshane at austin.rr.com Sun Jul 20 18:30:11 2003 From: hshane at austin.rr.com (Howard Shane) Date: Sun, 20 Jul 2003 12:30:11 -0500 Subject: [sane-devel] Third revision of Scanner HOWTO available In-Reply-To: <20030720095513.GA27016@meier-geinitz.de> References: <3F19BBE8.6030409@austin.rr.com> <20030720095513.GA27016@meier-geinitz.de> Message-ID: <3F1AD1A3.8050709@austin.rr.com> Thanks to everyone for all the suggestions. I though I had addressed most of the concerns up to now, but it looks like there will need to be one more revision prior to publication. A few of the comments I've received are contradictory; I'm going out of town for a week and upon return I'll negotiate/incorporate everyone's ideas and corrections, so definitely keep the comments coming. Also, its not nitpicking if it makes the document more accurate and effective. :^) Henning Meier-Geinitz wrote: > Hi, > > On Sat, Jul 19, 2003 at 04:45:12PM -0500, Howard Shane wrote: > >> ...at http://66.25.191.66/docs/HOWTOS/Scanner/index.html >> >> This is your last chance to point out any remaining technical >> errata prior to grammatical review and (hopefully) publication by >> TLDP. > > > Ok, lets see if I can nitpick a bit :-) I'm not a native english > speaker, so grammar/spelling corrections may be wrong. > > | 1. Introduction | | within X-windows > > ->"The X Consortium requests that the following names be used when > referring to this software: X, X Window System, X Version 11, X > Window System, Version 11, X11" (from man X) > > | It does not address how use the available software > > --> how to use (?) > > | 2.1. SCSI Devices | While most SCSI-cards that linux supports allow > scanning, you should | be aware that if your SCSI card came come > bundled with your scanner | you may run into problems, as these may > not be complete SCSI cards | (much like a winmodem). > > I don't think that's a very good comparison. While a winmodem is not > a modem at all (it's more a sound chip), the bundled SCSI adapter are > real SCSI cards. They may not be of good qquality, i.e. don't have > IRQ/DMA support. But at least the ones I know of can be used for e.g. > CDROMS, too. Well, I wouldn't do that but anyway. > > | 3.1. USB Scanners and Libusb > > | $ grep -e USB_DEVICEFS /boot/config-X.XX > > --> I think it's easier to do grep "\(usbfs\)\|\(usbdevfs\)" > /proc/filesystems > > This way you are checking the currently running kernel. > > | If you have USB device filesystem running, and you have usb devices > | loaded already you can confirm this with cat /proc/bus/usb, which > | should give you a list of active devices the kernel is aware of. > > --> It's "cat /proc/bus/usb/devices". > > | IMPORTANT: You cannot have both kernel scanner support enabled > (i.e., | compiled in statically or the module loaded if a module) and > libusb | installed and access the hardware at the same time, or > nothing will | work. > > Well, I know what you mean but it's not completely true the way you > have written it. > > If the scanner driver is loaded and has detected the scanner it will > "lock" it. So libusb can't use it. But the scanner driver can still > use it. After unloading the scanner driver, libusb can use it again. > > So there is no real conflict. The scanner driver just has the higher > priority. > > | (A hint for newbies: [...] | where 'file.txt' will contain the info > that can then be accessed with | cat.) > > --> with "less", otherwse it will scroll again too fast. > > | 3.2.2. Kernel USB Support > > | USB-ohci, USB-ehci, > > --> lower case (usb-ohci) > > | 3.3.2. Directio | | Some parallel port scanners can be accessed > with directio (a.k.a. | direct_IO) instead; you will likely need to > compile your own SANE | binaries and have libieee1484 installed. You > will need generic scsi | device support in your kernel. At compile > time use the | --enable-parport-directio --enable-scsi-directio with > the ./configure | script. > > I'm not an expert in these things but I think you are mixing > different topics here. > > --enable-parport-directio means, that direct hardware access to the > ports (inb/outb assembler commands) is used. So you don't need > libieee1284 (not 1448) here. This is only used in the mustek_pp and > umax_pp backends. > > --enable-scsi-directio > >> From README.linux: > > SCSI Direct IO: Recent versions of the Linux SG driver for the 2.4 > kernels support direct IO, i.e., the SCSI adapter's DMA chip copies > data directly to/from user memory. Direct IO reduces memory usage, > but it can lead to access conflicts, if a backend uses shared memory. > SANE does not use direct IO by default. If you want to use it, run > > configure --enable-scsi-directio=yes > > I don't think you should mention --enable-scsi-directio in a HOWTO > document. it's seldomly (if at all?) used. | 5.1. Getting SANE > > | that of the Software Building HOWTO. > > --> the link to the HOWTO seems to be wrong. > > | For Debian users there is a sane package in stable (Woody), testing > | (Sarge) and unstable (Sid) package repositories, so a simple > apt-get | install sane is all that is required whatever version you > are using. > > The package in Woody is quite old but there are backports from > Aurelien Jarno: http://people.debian.org/~aurel32/sane.html > > | There is an excellent write-up of how to compile SANE from source > and | get an SCSI scanner working at Laurent-jan's HOWTO page > originally | written by Steve Sheriff (the graphics are interesting, > too). > > While his HOWTO is written very detailed, with fairly current > distributions it's not necessary to compile all the graphic libraries > yourself. You'll find some discussions about this howto on the > sane-devel list if I remeber correctly. I'd mention the fact that > compiling the glib/gtk/gimp stuff is not necessary otherwise it's > quite misleading for newbies.Even the newest versions of xsane and > xscanimage can be compiled with old gtk and gimp libraries. > > | 5.2. Configuring SANE | 5.2.1. Selecting the SANE Backend > > --> Before doing anything else, I'd run "scanimage -L". Most scanners > will just run out-of-the-box so it's not necessary to go through all > your trouble-shooting steps. If it's not found, the user can still > check the files you mention. > > | There are two important entries in the file named after the backend > | your scanner will use: > > --> give an example (e.g. "epson.conf") > > | interface type (scsi vs. usb), and the device | name. If you have a > usb scanner, you will usually need to comment out | (make a # mark in > front of) the 'scsi' line, > > Usually that's not needed. If there is no scsi device, it just won't > be detected. > > | and uncomment the line containing 'usb.' > > If it's commented. Is there any backend but "epson", where this is > the case? Maybe it'd be possible to do automatic detection in the > epson backend, too? (without manipulating the config file). Well, > I'll ask the epson maintainer. > > | In addition the device name may need to be changed, depending on > your | distribution (e.g., /dev/scanner0 may become > /dev/usb/scanner0) > > That's unlikely. Maybe you mean /dev/usbscanner0 --> > /dev/usb/scanner0? > > | though if you made the symlink I suggested in the section on making > | devices this probably isn't necessary. > > You mean the /dev/scanner symlink? This is ONLY used for SCSI > devices. Don't use it for USB scanners. And even for SCSI, it's not > necessary for most backends on Linux and FreeBSD. > > | For a full list try apropos sane. The exact protocols and | > manufacturers available may depend on your version of SANE. > > A pointer to "man sane" may be useful, too, as it lists all the > backends and gives some hints which one may be the right one. > > | 5.2.2. Across a Network > > I still think you should make more clear that the saned server runs > on the machine that has the scanner and the frontend/net backend runs > on the client that want access to the server with the scanner. At > least I wouldn't have understaood that you mean the client when you > talk about the "target". > > | In addition port 6566 will need to be open, accomplished by adding > the | following line to /etc/services: | | sane 6566/tcp # SANE > network scanner daemon > > I think I already mentioned that he last time you asked for > corrections (?): /etc/services is just a list of name/number > combinations. It's not responsible for "opening the port". That#s > done by inetd/xinetd. > > | Finally, be sure that the word "net" isn't commented out in the | > dll.conf file referenced in the previous section. > > On the client machine. And you need to edit net.conf on the client to > add the hostname of the server. > > | 6. Testing Your Scanner > > | sane-find-scanner -v > > First I would do it without the "-v" as you may miss the important > information. If the scanner is not found, "sane-find-scanner -v -v" > may be useful. > > | If your scanner is a type not looked for by sane-find-scanner, you > can | try scanimage --test -v which may yield more information about > | attached devices (you may need to do this twice). > > Well, "scanimage --test -v" jsut starts a test scan. It won't give > you any information. Try "scanimage -L" instead. > > | If your scanner isn't identified by any of the above, but you're | > pretty sure you've done everything right up to now, you can try | > scanning as outlined in the next paragraph. > > It's highly unlikely that the scanner is dnot detected but scanning > works. That only happens when the backend is commented out in > dll.conf but the user selects the backend explicitely (with -d). > > | $ scanimage -d backend:/dev/scanner0 --format pnm > outfile.pnm > > If the user did everything right until now, the following should just > work: > > scanimage >image.pnm > > | 7. Sane Frontends | X-windows > > see above > > | A more spartan solution (though technically a meta-backend) is | > xscanimage, which is bundled with SANE and can be evoked from within > | an xterm. See man xscanimage for more info. > > xscanimage is not a meta backend, it's just a normal frontend. Meta > backends are backends that call other backends (e.g. dll, net). > > xscanimage is in the sane-frontends package so calling it "bundled > with SANE" may be a bit confusing. > > xscanimage can not only be invoked "from an xterm" but can be started > like any other software from an icon or menu. It just depens on the > window manage you are using. > > I'd add a link to the SANE frontends page so the user can have a look > at all the other frontends: > http://www.mostang.com/sane/sane-frontends.html > > | 8. Troubleshooting | 8.1. If your device cannot be found... > > | If this isn't the problem, go to /etc/sane.d/ (or | > /usr/local/etc/sane.d) and edit the file sane.dll, commenting out any > | backend or other (e.g. v4l) protocol that you don't need. > > It's "dll.conf", not "sane.dll". > > | If you have a usb scanner, you will usually need to comment out > (make | a # mark in front of) the 'scsi' line, > > As I said, I don't remeber a case where that would be necessary. > > The same comments as above apply. > > | 8.2. What if SANE can't identify (or correctly identify) my USB > scanner? | | Often when you first set up your scanner equipment it > becomes | necessary to help the kernel along in identifying the > device you wish | to access. If you've done everything by the book > and it still doesn't | work, and you don't see any obvious error > messages in the steps | leading up to this point, it may be necessary > to give the kernel more | parameters when loading modules, > particularly if you have a USB device. > > That's true. But you should mention that in this case the scanner is > not even detected by sane-find-scanner. If it's found by > sane-find-scanner that usually means that the kernel has detected the > scanner correctly. > > | Within the kernel source is the cryptic data required. If you don't > | have the source code for your kernel installed you can obtain it > from | your linux distribution vendor. For a USB device, go to | > /usr/src/linux/drivers/usb and find the file scanner.h. then use grep > | for your particular model, in this example Epson: > > I don't think that looking at the kernel source code helps in this > case. If the scanner is not detected by the kernel, it is not listed > in scanner.h. So looking at scanner.h for the ids does not help. > > Better check /proc/bus/usb/devices or /var/log/messages for the > vendor and product ids of the scanner. > > An if you have libusb, you don't need to do anything like this. > > Mabye I have missed it, but you should also point out that having > more than one version of SANE installed at the same time calls for > trouble. > > Thanks for your work! > > Bye, Henning > > > > > > From peter at pscomp.com Mon Jul 21 13:22:00 2003 From: peter at pscomp.com (Peter Santoro) Date: Mon, 21 Jul 2003 08:22:00 -0400 Subject: [sane-devel] Re: Sane API Suggestion Message-ID: <3F1BDAE8.5080107@pscomp.com> Thank you all for your input. I do understand (and expected) the responses I got. I probably should have included some sample source code to support and clarify my suggestion. For those who are interested, a summary of some cross language issues can be found at http://xarch.tu-graz.ac.at/autocad/lisp/ffis.html. In any event, having to live with the sane C-API "as is" will not discourage me from writing a scheme->sane interface layer in the future. :-) Peter From adeuring at gmx.net Mon Jul 21 22:07:37 2003 From: adeuring at gmx.net (abel deuring) Date: Mon, 21 Jul 2003 23:07:37 +0200 Subject: [sane-devel] Sane API Suggestion In-Reply-To: <20030720151830.GA8908@ventus.lan> References: <3F1A8FB6.60505@pscomp.com> <20030720134958.GB4833@meier-geinitz.de> <20030720151830.GA8908@ventus.lan> Message-ID: <3F1C5619.9020904@gmx.net> Major A schrieb: > The SANE API is designed to be simple and portable, and any change > towards object orientation or functional programming would only bloat > it unnecessarily. Sorry, if you want to interface Scheme to SANE, > you'll have to adapt to the way things are. Well, changing the current API is indeed not a good idea. For newer versions, we should be a bit more open, IMHO. > > Adding a callback data argument to both sane_init() and > SANE_Authorization_Callback would cause a number of problems, in > particular that of network transparency. Scheme or C++ programmers > would certainly like to use that parameter as a pointer to a > structure, but that only works if the size of the argument is at least > that of void*. Since the latter varies across platforms, this would be > ugly and non-portable. I don't think that network transparency introduces a problem for "user data" pointer sizes. Since Sane itself does not deal with this pointer, the net backend does not need to send and receive the correct value of this pointer to/from the Sane server. Instead, the net backend can use the pointer value as passed by the application in the callback. > > Since the only callback in SANE is the one responsible for > authentication, I'd say it wouldn't be worth changing anything. A > Scheme frontend would either have to relay the authentication request > to the user, in which case the callback data is not used, or look up > username and password in a database, in which case the resource string > supplied is sufficient. Well, some time has passed sine my last look into the Sane 2 API docs, but IIRC it has at least one more callback. Abel From stuart at beandog.freeserve.co.uk Mon Jul 21 22:21:11 2003 From: stuart at beandog.freeserve.co.uk (Stuart Hirons) Date: 21 Jul 2003 22:21:11 +0100 Subject: [sane-devel] Does anyone need help writing a backend? In-Reply-To: <20030720125431.GA4833@meier-geinitz.de> References: <20030719101015.GA7579@meier-geinitz.de> <200307191438.36375.gerhard@gjaeger.de> <20030720125431.GA4833@meier-geinitz.de> Message-ID: <1058822470.1583.3.camel@localhost.localdomain> Henning, I have a UMAX 4500 sitting on my desk lying unused since I moved to Red Hat 4 months ago, can I be of any help here in obtaining any logs or anything ? Regards, Stu Hirons On Sun, 2003-07-20 at 13:54, Henning Meier-Geinitz wrote: > Hi, > > On Sat, Jul 19, 2003 at 02:38:36PM +0200, Jaeger, Gerhard wrote: > > On Samstag, 19. Juli 2003 12:10, Henning Meier-Geinitz wrote: > > > Hi, > > > > > > Usually people ask for help here. In this case it's the other way > > > round: I may have some spare time during the next few weeks so if > > > anyone needs help writing a backend I may able to spend some time on > > > it. > > > > "Oh, what a lucky man he is...." > > Ha, I just finished my PhD examination so I think it's fair to have > some free time now :-) > > > >The list of unsupported scanners gets longer and longer so I > > > thought something should be done :-) > > > > > > I prefer working on fairly recent not too expensive USB scanners so I > > > can get one of these devices for coding. > > > > Well, I think that by supporting the GeneSys Logic stuff we can cover a lot of > > currently available devices. I know that Oliver Rauch is working on that but I > > don't know the status. The only thing I know is, that he's short of time... > > --> Just a proposal! > > Ok, I'll get a UMAX 4500 and will see what I can do. From my quick > scan of our lists it looks like these scanners use a GL646 chip: > > Avision iVina FB1600 http://www.meier-geinitz.de/sane/misc/umax-astra-4500.txt > Genius ColorPage HR7X http://www.meier-geinitz.de/sane/misc/genius-colorpage-hr7x.txt > Lexmark X83 http://www.meier-geinitz.de/sane/misc/lexmark-x83.txt > Medion/Tevion MD 5345 http://www.meier-geinitz.de/sane/misc/medion-MD5345.txt > Medion MD6228 > Medion MD5345 http://www.meier-geinitz.de/sane/misc/medion-md6228.txt > Plustek OpticPro S12 > Plustek OpticPro S24 > UMAX Astra 4500 http://www.meier-geinitz.de/sane/misc/umax-astra-4500.txt > > And maybe the: > Canon CanoScan D2400UF (maybe) http://www.meier-geinitz.de/sane/misc/canon-d2400uf.txt > > But the interval for the interrupt endpoint is different here: > Ivl=10ms. I'm not sure if that matters. > > Any more scanners that use the GL646 chipset? > > > Are there any other chipsets around that may have the same spreading? > > There are some more Genesys chipsets (e.g. the gl841). I have no idea > how common they are and how different they are from the gl646. > > The Realtek RTS8801B and C chips are also fairly common. E.g. some HP > and Visioneer scanners use these chips. > > > Ok, so I'd like to know everything about the gl646. I know the data > sheet from http://www.genesyslogic.com/GL646.htm but nothing more. > Are there already any logs or code (Oliver?)? > > Bye, > Henning > _______________________________________________ > Sane-devel mailing list > Sane-devel at www.mostang.com > http://www.mostang.com/mailman/listinfo/sane-devel -- Stuart Hirons From andras at users.sourceforge.net Mon Jul 21 22:53:32 2003 From: andras at users.sourceforge.net (Major A) Date: Mon, 21 Jul 2003 22:53:32 +0100 Subject: [sane-devel] Sane API Suggestion In-Reply-To: <3F1C5619.9020904@gmx.net> References: <3F1A8FB6.60505@pscomp.com> <20030720134958.GB4833@meier-geinitz.de> <20030720151830.GA8908@ventus.lan> <3F1C5619.9020904@gmx.net> Message-ID: <20030721215332.GH22030@ventus.lan> > I don't think that network transparency introduces a problem for "user > data" pointer sizes. Since Sane itself does not deal with this pointer, > the net backend does not need to send and receive the correct value of > this pointer to/from the Sane server. Instead, the net backend can use > the pointer value as passed by the application in the callback. OK, you're right. Back to the original question: I just realized that the callback function is set when you call sane_init(), thus it must be the same for all scanner instances. Therefore I can see little point in having any kind of user_data since even a Scheme interface to SANE would only use sane_init() once so it could store the user_data itself just the same. (Unless, of course, the Scheme interface would allow for more than one backend to be used at the same time, but with dynamic loading etc. this would soon become a mess anyway.) > Well, some time has passed sine my last look into the Sane 2 API docs, > but IIRC it has at least one more callback. I can't remember any. The only thing that is similar in a way is the file descriptor returned by sane_get_select_fd(), but it's not a callback. Andras =========================================================================== Major Andras e-mail: andras at users.sourceforge.net www: http://andras.webhop.org/ =========================================================================== From henning at meier-geinitz.de Tue Jul 22 18:19:13 2003 From: henning at meier-geinitz.de (Henning Meier-Geinitz) Date: Tue, 22 Jul 2003 19:19:13 +0200 Subject: [sane-devel] Does anyone need help writing a backend? In-Reply-To: <1058822470.1583.3.camel@localhost.localdomain> References: <20030719101015.GA7579@meier-geinitz.de> <200307191438.36375.gerhard@gjaeger.de> <20030720125431.GA4833@meier-geinitz.de> <1058822470.1583.3.camel@localhost.localdomain> Message-ID: <20030722171913.GD7740@meier-geinitz.de> Hi, On Mon, Jul 21, 2003 at 10:21:11PM +0100, Stuart Hirons wrote: > I have a UMAX 4500 sitting on my desk lying unused since I moved to Red > Hat 4 months ago, can I be of any help here in obtaining any logs or > anything ? If you have MS Windows installed, you could install usbsnoopy and get a log of a simple scan if that's possible. E.g. 1 cm x 1 cm in 100 dpi grayscale. I'll do that anyway once I have that scanner but if you do it now we may understand the protocoll a bit earlier :-) Bye, Henning From foffy_69 at yahoo.es Tue Jul 22 20:54:45 2003 From: foffy_69 at yahoo.es (=?iso-8859-1?q?Foffy?=) Date: Tue, 22 Jul 2003 21:54:45 +0200 (CEST) Subject: [sane-devel] detect the correct scanner Message-ID: <20030722195445.19196.qmail@web41001.mail.yahoo.com> i have a genius color page vivid-III but when mandrake detect it as a plustek, that has the same chip. Is this important or not? and how i can get it detected as genius color page vivid-III. ___________________________________________________ Yahoo! Messenger - Nueva versi?n GRATIS Super Webcam, voz, caritas animadas, y m?s... http://messenger.yahoo.es From henning at meier-geinitz.de Tue Jul 22 21:22:23 2003 From: henning at meier-geinitz.de (Henning Meier-Geinitz) Date: Tue, 22 Jul 2003 22:22:23 +0200 Subject: [sane-devel] detect the correct scanner In-Reply-To: <20030722195445.19196.qmail@web41001.mail.yahoo.com> References: <20030722195445.19196.qmail@web41001.mail.yahoo.com> Message-ID: <20030722202223.GE7740@meier-geinitz.de> Hi, On Tue, Jul 22, 2003 at 09:54:45PM +0200, Foffy wrote: > i have a genius color page vivid-III but when mandrake > detect it as a plustek, that has the same chip. Is > this important or not? and how i can get it detected > as genius color page vivid-III. It would have been important if the Plustek 1212U had been supported. But as far as I know this is not the case. The scanner search engine says: "All devices using product ID 0x0001 are not supported, for others see Plustek backend. The older models seem to use a P98003 parallel port ASIC and a GenesysLogic parport-over USB brigde. The P98003 is also used by the P12 and PT12 models." So basically you need someone who writes a backend for that combination of chips. If you want to start coding yourself, have a look at http://www.meier-geinitz.de/sane/misc/unsupported.html. Bye, Henning From stuart at beandog.freeserve.co.uk Tue Jul 22 22:11:51 2003 From: stuart at beandog.freeserve.co.uk (Stuart Hirons) Date: 22 Jul 2003 22:11:51 +0100 Subject: [sane-devel] Does anyone need help writing a backend? In-Reply-To: <20030722171913.GD7740@meier-geinitz.de> References: <20030719101015.GA7579@meier-geinitz.de> <200307191438.36375.gerhard@gjaeger.de> <20030720125431.GA4833@meier-geinitz.de> <1058822470.1583.3.camel@localhost.localdomain> <20030722171913.GD7740@meier-geinitz.de> Message-ID: <1058908311.1343.9.camel@localhost.localdomain> Ah sorry Henning but i haven't got MS Windows. The main reason I moved to Linux was because I was fed up with dodgy windows installations, crashes, etc and did not want to give Mr Gates any money in order to rectify it. Red hat has been fine ever since I installed it, I just didn't realise that the 4500 wasn't supported. Regards, Stu On Tue, 2003-07-22 at 18:19, Henning Meier-Geinitz wrote: > Hi, > > On Mon, Jul 21, 2003 at 10:21:11PM +0100, Stuart Hirons wrote: > > I have a UMAX 4500 sitting on my desk lying unused since I moved to Red > > Hat 4 months ago, can I be of any help here in obtaining any logs or > > anything ? > > If you have MS Windows installed, you could install usbsnoopy and get > a log of a simple scan if that's possible. E.g. 1 cm x 1 cm in 100 dpi > grayscale. I'll do that anyway once I have that scanner but if you do > it now we may understand the protocoll a bit earlier :-) > > Bye, > Henning > _______________________________________________ > Sane-devel mailing list > Sane-devel at www.mostang.com > http://www.mostang.com/mailman/listinfo/sane-devel -- Stuart Hirons From foffy_69 at yahoo.es Tue Jul 22 23:03:18 2003 From: foffy_69 at yahoo.es (=?iso-8859-1?q?Albero=20Miguel?=) Date: Wed, 23 Jul 2003 00:03:18 +0200 (CEST) Subject: [sane-devel] detect the correct scanner In-Reply-To: <20030722202223.GE7740@meier-geinitz.de> Message-ID: <20030722220318.48713.qmail@web41001.mail.yahoo.com> Hi, > > On Tue, Jul 22, 2003 at 09:54:45PM +0200, Foffy > wrote: > > i have a genius color page vivid-III but when > mandrake > > detect it as a plustek, that has the same chip. Is > > this important or not? and how i can get it > detected > > as genius color page vivid-III. > > It would have been important if the Plustek 1212U > had been supported. > But as far as I know this is not the case. The > scanner search engine > says: "All devices using product ID 0x0001 are not > supported, for > others see Plustek backend. The older models seem to > use a P98003 > parallel port ASIC and a GenesysLogic parport-over > USB brigde. The > P98003 is also used by the P12 and PT12 models." > > So basically you need someone who writes a backend > for that > combination of chips. If you want to start coding > yourself, have a > look at > http://www.meier-geinitz.de/sane/misc/unsupported.html. > > Bye, > Henning I will try to write a backend this summer. I downloaded the sniffusb and the SANE CVS snapshot. I will read it and try to understand how the scanner works but i think i will need some help thanks ___________________________________________________ Yahoo! Messenger - Nueva versi?n GRATIS Super Webcam, voz, caritas animadas, y m?s... http://messenger.yahoo.es From olaf at epkowa.co.jp Wed Jul 23 03:36:57 2003 From: olaf at epkowa.co.jp (Olaf Meeuwissen) Date: Wed, 23 Jul 2003 11:36:57 +0900 Subject: [sane-devel] sane-backends effectively GPL'd in disguise? Message-ID: <20030723023657.GA21544@zen.epkowa.co.jp> Dear all, I have been upgrading "Image Scan! for Linux" to use SANE internals from sane-backends-1.0.12. Ever since the FSF slapped us on the wrist for an unintentional violation of the GPL, we have a little allergic to license issues so I combed through the include/, lib/ and sanei/ directories for license problems. The following files in include/ and sanei/ are GPL'd *without* the SANE exception: include/lalloca.h include/lassert.h include/sane/sanei.h include/sane/sanei_codec_ascii.h include/sane/sanei_codec_bin.h include/sane/sanei_scsi.h include/sane/sanei_thread.h include/sane/sanei_usb.h include/sane/sanei_wire.h include/sane/saneopts.h sanei/linux_sg3_err.h Even though I have read the GPL twenty+ times over, I am still not sure whether this means that files including any of these would effectively void their SANE exception (assuming they have one). After all the SANE exception explicitly states: This exception does not, however, invalidate any other reasons why the executable file might be covered by the GNU General Public License. Ergo, files like sanei/sanei_scsi.c and sanei/sanei_usb.c, which include their counterpart header files, might in effect be released under the GPL and the GPL only without any SANE exception. The same logic applies to backends including files from the above list. The TODO notes that the getopt*.c and md5.c files have been checked for (and replaced by LGPL'd versions) precisely the reasons cited above. Could anyone shed any light on this? -- Olaf Meeuwissen EPSON KOWA Corporation, ECS GnuPG key: 6BE37D90/AB6B 0D1F 99E7 1BF5 EB97 976A 16C7 F27D 6BE3 7D90 Penguin's lib! -- I hack, therefore I am -- LPIC-2 From fzago at austin.rr.com Tue Jul 22 23:43:19 2003 From: fzago at austin.rr.com (Frank Zago) Date: Tue, 22 Jul 2003 17:43:19 -0500 Subject: [sane-devel] detect the correct scanner In-Reply-To: <20030722195445.19196.qmail@web41001.mail.yahoo.com> References: <20030722195445.19196.qmail@web41001.mail.yahoo.com> Message-ID: <3F1DBE07.9020102@austin.rr.com> Hi Foffy_69, Assuming your scanner works, why do you care? Another solution to your problem would be to print a Plustek sticker and put it on top of the Genius logo. :) Frank. Foffy wrote: > i have a genius color page vivid-III but when mandrake > detect it as a plustek, that has the same chip. Is > this important or not? and how i can get it detected > as genius color page vivid-III. > > From fzago at austin.rr.com Tue Jul 22 23:53:58 2003 From: fzago at austin.rr.com (Frank Zago) Date: Tue, 22 Jul 2003 17:53:58 -0500 Subject: [sane-devel] sane-backends effectively GPL'd in disguise? In-Reply-To: <20030723023657.GA21544@zen.epkowa.co.jp> References: <20030723023657.GA21544@zen.epkowa.co.jp> Message-ID: <3F1DC086.3090609@austin.rr.com> Hi Olaf, IANAL but I'll try to answer anyway. None of these contain code. Just prototype and APIs. I don't think that the omission of the SANE exception would propagate to the rest of the code. Besides the README states that the backends are under GPL+exception. It is also quite clear that the authors of these files didn't intend to put these files under GPL only since they were written specifically for SANE. The files should be fixed though. Frank. Olaf Meeuwissen wrote: > Dear all, > > I have been upgrading "Image Scan! for Linux" to use SANE internals from > sane-backends-1.0.12. Ever since the FSF slapped us on the wrist for an > unintentional violation of the GPL, we have a little allergic to license > issues so I combed through the include/, lib/ and sanei/ directories for > license problems. > > The following files in include/ and sanei/ are GPL'd *without* the SANE > exception: > > include/lalloca.h > include/lassert.h > include/sane/sanei.h > include/sane/sanei_codec_ascii.h > include/sane/sanei_codec_bin.h > include/sane/sanei_scsi.h > include/sane/sanei_thread.h > include/sane/sanei_usb.h > include/sane/sanei_wire.h > include/sane/saneopts.h > sanei/linux_sg3_err.h > > Even though I have read the GPL twenty+ times over, I am still not sure > whether this means that files including any of these would effectively > void their SANE exception (assuming they have one). After all the SANE > exception explicitly states: > > This exception does not, however, invalidate any other reasons why > the executable file might be covered by the GNU General Public > License. > > Ergo, files like sanei/sanei_scsi.c and sanei/sanei_usb.c, which include > their counterpart header files, might in effect be released under the > GPL and the GPL only without any SANE exception. The same logic applies > to backends including files from the above list. > > The TODO notes that the getopt*.c and md5.c files have been checked for > (and replaced by LGPL'd versions) precisely the reasons cited above. > > Could anyone shed any light on this? From olaf at zen.epkowa.co.jp Wed Jul 23 05:47:48 2003 From: olaf at zen.epkowa.co.jp (Olaf Meeuwissen) Date: Wed, 23 Jul 2003 13:47:48 +0900 Subject: [sane-devel] sane-backends effectively GPL'd in disguise? In-Reply-To: <3F1DC086.3090609@austin.rr.com> References: <20030723023657.GA21544@zen.epkowa.co.jp> <3F1DC086.3090609@austin.rr.com> Message-ID: <20030723044748.GB21544@zen.epkowa.co.jp> Hi Frank, Thanks for your prompt feedback. I would like to point out though that include/lalloca.h, include/lassert.h and sanei/linux_sg3_err.h were NOT written specifically for SANE. Furthermore, one could argue that some of the #define's count as code because the preprocessor substitutes the definition. I guess, looking at the amount of "code" involved, that you could make a case for "fair use" though. The README (huh? I assume you mean the LICENSE file) can state whatever it wants, if a backend links against GPL'd code the exception is void. BTW, the LICENSE file explicitly says that copyright information in each file overrides whatever it says. I would certainly appreciate it if sane-backends-1.0.13 includes a SANE exception in the files I listed, if only to avoid confusing people like myself ;-) For include/lalloca.h, include/lassert.h and sanei/linux_sg3_err.h this is probably not feasible though. Permission to add the exception from the copyright holder is required or appropriate replacements need to be provided. In the case of lalloca.h you could probably use the example from the autoconf info pages (citing "fair use" of the manual). On Tue, Jul 22, 2003 at 05:53:58PM -0500, Frank Zago wrote: > Hi Olaf, > > IANAL but I'll try to answer anyway. > None of these contain code. Just prototype and APIs. I don't think that the > omission of the SANE exception would propagate to the rest of the code. > Besides the README states that the backends are under GPL+exception. It is > also quite clear that the authors of these files didn't intend to put these > files under GPL only since they were written specifically for SANE. > The files should be fixed though. > > Frank. > > Olaf Meeuwissen wrote: > >Dear all, > > > >I have been upgrading "Image Scan! for Linux" to use SANE internals from > >sane-backends-1.0.12. Ever since the FSF slapped us on the wrist for an > >unintentional violation of the GPL, we have a little allergic to license > >issues so I combed through the include/, lib/ and sanei/ directories for > >license problems. > > > >The following files in include/ and sanei/ are GPL'd *without* the SANE > >exception: > > > > include/lalloca.h > > include/lassert.h > > include/sane/sanei.h > > include/sane/sanei_codec_ascii.h > > include/sane/sanei_codec_bin.h > > include/sane/sanei_scsi.h > > include/sane/sanei_thread.h > > include/sane/sanei_usb.h > > include/sane/sanei_wire.h > > include/sane/saneopts.h > > sanei/linux_sg3_err.h > > > >Even though I have read the GPL twenty+ times over, I am still not sure > >whether this means that files including any of these would effectively > >void their SANE exception (assuming they have one). After all the SANE > >exception explicitly states: > > > > This exception does not, however, invalidate any other reasons why > > the executable file might be covered by the GNU General Public > > License. > > > >Ergo, files like sanei/sanei_scsi.c and sanei/sanei_usb.c, which include > >their counterpart header files, might in effect be released under the > >GPL and the GPL only without any SANE exception. The same logic applies > >to backends including files from the above list. > > > >The TODO notes that the getopt*.c and md5.c files have been checked for > >(and replaced by LGPL'd versions) precisely the reasons cited above. > > > >Could anyone shed any light on this? > -- Olaf Meeuwissen EPSON KOWA Corporation, ECS GnuPG key: 6BE37D90/AB6B 0D1F 99E7 1BF5 EB97 976A 16C7 F27D 6BE3 7D90 Penguin's lib! -- I hack, therefore I am -- LPIC-2 From gerhard at gjaeger.de Wed Jul 23 07:20:27 2003 From: gerhard at gjaeger.de (Gerhard Jaeger) Date: Wed, 23 Jul 2003 08:20:27 +0200 Subject: [sane-devel] detect the correct scanner In-Reply-To: <20030722220318.48713.qmail@web41001.mail.yahoo.com> References: <20030722220318.48713.qmail@web41001.mail.yahoo.com> Message-ID: <200307230820.27261.gerhard@gjaeger.de> Hi, I think I could be possible to detect it as Genius, BUT this is not that trivial. The difference between the Plustek devices and Genius devices can be found out by accessing a specific register within the P98003 and reading back the PCB (printed circuit board) identification and the CCD-ID. That way the Plustek-drivers are able to find out what hardware is attached to the P98003 ASIC. Simply by reading the USB vendor and device ID is not enough as Plustek uses one device ID for various models (U1212 and some U12). I already started to make those "brigded" devices work, using the available P98003 driver code and replacing the I/O access to the parport by the access to the GeneSys Logic chip. The only results I have so far are some register accesses and light switching stuff. Not that much, but a starting point... If somebody is interested in that code snippets, I can put them to gjaeger.de Ciao Gerhard On Mittwoch, 23. Juli 2003 00:03, Albero Miguel wrote: [SNIPSNAP] > Hi, > > > On Tue, Jul 22, 2003 at 09:54:45PM +0200, Foffy > > > > wrote: > > > i have a genius color page vivid-III but when > > mandrake > > > detect it as a plustek, that has the same chip. Is > > > this important or not? and how i can get it > > detected > > > as genius color page vivid-III. > > > > It would have been important if the Plustek 1212U > > had been supported. > > But as far as I know this is not the case. The > > scanner search engine > > says: "All devices using product ID 0x0001 are not > > supported, for > > others see Plustek backend. The older models seem to > > use a P98003 > > parallel port ASIC and a GenesysLogic parport-over > > USB brigde. The > > P98003 is also used by the P12 and PT12 models." > > > > So basically you need someone who writes a backend > > for that > > combination of chips. If you want to start coding > > yourself, have a > > look at > > http://www.meier-geinitz.de/sane/misc/unsupported.html. > > > Bye, > > Henning > > I will try to write a backend this summer. I > downloaded the sniffusb and the SANE CVS snapshot. I > will read it and try to understand how the scanner > works but i think i will need some help > > thanks > > ___________________________________________________ > Yahoo! Messenger - Nueva versi?n GRATIS > Super Webcam, voz, caritas animadas, y m?s... > http://messenger.yahoo.es > _______________________________________________ > Sane-devel mailing list > Sane-devel at www.mostang.com > http://www.mostang.com/mailman/listinfo/sane-devel From henning at meier-geinitz.de Wed Jul 23 09:25:15 2003 From: henning at meier-geinitz.de (Henning Meier-Geinitz) Date: Wed, 23 Jul 2003 10:25:15 +0200 Subject: [sane-devel] sane-backends effectively GPL'd in disguise? In-Reply-To: <20030723023657.GA21544@zen.epkowa.co.jp> References: <20030723023657.GA21544@zen.epkowa.co.jp> Message-ID: <20030723082515.GD11768@meier-geinitz.de> Hi, On Wed, Jul 23, 2003 at 11:36:57AM +0900, Olaf Meeuwissen wrote: > I have been upgrading "Image Scan! for Linux" to use SANE internals from > sane-backends-1.0.12. Ever since the FSF slapped us on the wrist for an > unintentional violation of the GPL, we have a little allergic to license > issues so I combed through the include/, lib/ and sanei/ directories for > license problems. > > The following files in include/ and sanei/ are GPL'd *without* the SANE > exception: (reordered:) > include/sane/sanei.h > include/sane/sanei_codec_ascii.h > include/sane/sanei_codec_bin.h > include/sane/sanei_scsi.h > include/sane/sanei_thread.h > include/sane/sanei_usb.h > include/sane/sanei_wire.h > include/sane/saneopts.h I guess that's a simple omission from the days when GPL was changed to GPL+SANE exception (Jun 14 1997). Most of them don't seem to contain copyrightable code but I'll ask the authors anyway. > include/lalloca.h > include/lassert.h Well, have I already said that I hate AIX for forcing us to do that ugly stuff? Is anyone using AIX for scanning at all? Anyway, I'll put it on the TODO list to either remove this files (if possible), check if we can find another solution. > sanei/linux_sg3_err.h Well, I'm not sure how to understan this line in the file: /* Feel free to copy and modify this GPL-ed code into your applications. */ If it says "it's GPLed", I could copy and modify it anyway if the resulting file is GPLed. So maybe this was inetnded to mean "you can use this code even in non GPL programs?" Anyway, if that's not the case, rewriting this file only using the values we need doesn't seem to be too complicated. > Even though I have read the GPL twenty+ times over, I am still not sure > whether this means that files including any of these would effectively > void their SANE exception (assuming they have one). If the code in these files are copyrightable, the SANE exception would be void. Otherwise I could get e.g. the XSane code, write add a few lines of my own GPL+SANE code and the complete code would be GPL+SANE. > Ergo, files like sanei/sanei_scsi.c and sanei/sanei_usb.c, which include > their counterpart header files, might in effect be released under the > GPL and the GPL only without any SANE exception. The same logic applies > to backends including files from the above list. Basically yes. But only if the "code" in the headers is copyrightable. > The TODO notes that the getopt*.c and md5.c files have been checked for > (and replaced by LGPL'd versions) precisely the reasons cited above. Yes, but these files do contain quite some code and not only definitions and simple macros. Bye, Henning From Oliver.Schwartz at gmx.de Wed Jul 23 18:15:51 2003 From: Oliver.Schwartz at gmx.de (Oliver Schwartz) Date: Wed, 23 Jul 2003 19:15:51 +0200 Subject: [sane-devel] Virus warning: Abuse of sane-devel email addresses Message-ID: <200307231915.54277.Oliver.Schwartz@gmx.de> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, in the last two days I received two emails with faked addresses that claimed to be sent via sane-devel (but in fact were not). Both emails contained a .pif file which, I assume, contains a virus. DO NOT OPEN THIS FILE. The sender names were taken from SANE-Devel (Martin Kho, Henning Meyer-Geinitz). The email address of the sender, however, was faked (see attached mail below). To make the mail look more authentic it also gives a small quote from an previous email to sane-devel. I don't think such mails can be prevented, but, as always, you should take extra care when opening attachements, even from people you recognize from the mailing list. - -Oliver - -------------forwarded mail ------------------------------------------ Return-Path: Received: (qmail 31579 invoked by alias); 23 Jul 2003 14:56:00 -0000 Delivered-To: GMX delivery to oliver.schwartz at gmx.de Received: (qmail 31513 invoked by uid 65534); 23 Jul 2003 14:55:59 - -0000 Received: from vsmtp1.tin.it (EHLO vsmtp1.tin.it) (212.216.176.221) by mx0.gmx.net (mx005-rz3) with SMTP; 23 Jul 2003 16:55:59 +0200 Received: from server--amd (62.211.178.22) by vsmtp1.tin.it (7.0.019) id 3F17CBF9001C28AE; Wed, 23 Jul 2003 16:54:29 +0200 Date: Wed, 23 Jul 2003 16:54:29 +0200 (added by postmaster at virgilio.it) Message-ID: <3F17CBF9001C28AE at vsmtp1.tin.it> (added by postmaster at virgilio.it) From: Henning Meier-Geinitz Subject: Re: [sane-devel] Problem in setting up Xsane MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----------VF3U8XRG18M7N2" To: Oliver.Schwartz at gmx.de X-GMX-Antispam: 0 (Mail was not recognized as spam) X-Resent-By: Forwarder X-Resent-For: oliver.schwartz at gmx.de X-Resent-To: oliver.schwartz at swissonline.ch, Oliver.Schwartz at gmx.net X-Spam-Status: No, hits=-6.4 required=5.0 tests=EMAIL_ATTRIBUTION,MICROSOFT_EXECUTABLE autolearn=ham version=2.53 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53 (1.174.2.15-2003-03-30-exp) Status: R X-Status: N X-KMail-EncryptionState: X-KMail-SignatureState: Hi, On Thu, Feb 27, 2003 at 05:07:30PM +0800, Stephen Liu wrote: > Henning Meier-Geinitz wrote: > >You have the same card as mentioned in this article? > > Attached: BuonNatale.zip.pif -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE/HsLH/V6sbrmfIuMRAnOwAJ4w/aVaJmAFwdn4qaUHZmLaZ/UcmwCfXCN2 vDjYQxYiwj/XVBbaA/jYVQI= =Pf3j -----END PGP SIGNATURE----- From henning at meier-geinitz.de Wed Jul 23 18:55:53 2003 From: henning at meier-geinitz.de (Henning Meier-Geinitz) Date: Wed, 23 Jul 2003 19:55:53 +0200 Subject: [sane-devel] Virus warning: Abuse of sane-devel email addresses In-Reply-To: <200307231915.54277.Oliver.Schwartz@gmx.de> References: <200307231915.54277.Oliver.Schwartz@gmx.de> Message-ID: <20030723175552.GC25935@meier-geinitz.de> Hi, On Wed, Jul 23, 2003 at 07:15:51PM +0200, Oliver Schwartz wrote: > in the last two days I received two emails with faked addresses that > claimed to be sent via sane-devel (but in fact were not). Both emails > contained a .pif file which, I assume, contains a virus. DO NOT OPEN > THIS FILE. I have received emails claiming to be sent by SANE developers for about 18 months now. > The sender names were taken from SANE-Devel (Martin Kho, Henning > Meyer-Geinitz). The email address of the sender, however, was faked > (see attached mail below). To make the mail look more authentic it > also gives a small quote from an previous email to sane-devel. That one looks like a new sort of worm/virus. I have received about 10 of those during the last two weeks. Mostly "from" SANE developers, but also from other entities. One claims to be sent by "Henning Meier-Geinitz" . I thought about suing the real author because of this defamation :-) > I don't think such mails can be prevented, but, as always, you should > take extra care when opening attachements, even from people you > recognize from the mailing list. I'd be interested on how the mails are created. Is the person who is infected by this worm subscribed to sane-devel? Or are the messages scanned from the web archive? All mails of this type were sent over vsmtp1.tin.it. IIRC, that's a big Italien provider. > From: Henning Meier-Geinitz Hah, that's the same mail I also got today. > X-Spam-Status: No, hits=-6.4 required=5.0 > tests=EMAIL_ATTRIBUTION,MICROSOFT_EXECUTABLE > autolearn=ham version=2.53 -6.4 point for an obvious worm. Looks like GMX has to do more homework. Bye, Henning From technomage-hawke at cox.net Wed Jul 23 19:11:50 2003 From: technomage-hawke at cox.net (technomage) Date: Wed, 23 Jul 2003 11:11:50 -0700 Subject: [sane-devel] Virus warning: Abuse of sane-devel email addresses In-Reply-To: <200307231915.54277.Oliver.Schwartz@gmx.de> References: <200307231915.54277.Oliver.Schwartz@gmx.de> Message-ID: <200307231112.03664.technomage-hawke@cox.net> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 hmm,. I've seen that bug before. its a known windows trojan that scans for e-mail addresses and clips of e-mails and hijacks your box to send out via its own smtp engine. guess I'll be expecting a copy to land here as well. fortunately, these e-mails have virtually no effect on a linux box. Technomage On Wednesday 23 July 2003 10:15 am, Oliver Schwartz wrote: > Hi, > > in the last two days I received two emails with faked addresses that > claimed to be sent via sane-devel (but in fact were not). Both emails > contained a .pif file which, I assume, contains a virus. DO NOT OPEN > THIS FILE. > > The sender names were taken from SANE-Devel (Martin Kho, Henning > Meyer-Geinitz). The email address of the sender, however, was faked > (see attached mail below). To make the mail look more authentic it > also gives a small quote from an previous email to sane-devel. > > I don't think such mails can be prevented, but, as always, you should > take extra care when opening attachements, even from people you > recognize from the mailing list. > > -Oliver > - -- I will not be pushed, filed, stamped, indexed, briefed, debriefed, or numbered! My life is my own - No. 6 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE/Hs/xn/usgigAaLcRAjMBAJ9iCZzQdurepLSEJI6VWdjlTYNoqgCeLJWi aJZt7NztTdUpztnb86ZxLno= =+7mg -----END PGP SIGNATURE----- From mouse at Rodents.Montreal.QC.CA Wed Jul 23 19:09:07 2003 From: mouse at Rodents.Montreal.QC.CA (der Mouse) Date: Wed, 23 Jul 2003 14:09:07 -0400 (EDT) Subject: [sane-devel] Virus warning: Abuse of sane-devel email addresses In-Reply-To: <200307231915.54277.Oliver.Schwartz@gmx.de> References: <200307231915.54277.Oliver.Schwartz@gmx.de> Message-ID: <200307231814.OAA29047@Sparkle.Rodents.Montreal.QC.CA> > [...ordinary address-forging virus infection attempts...] > I don't think such mails can be prevented, Actually, they can be, very simply. Just don't run Windows. (This not only prevents you from originating them, it also prevents you from falling victim to those others, less careful, send out.) It's just that people aren't willing to do that. Actually, it's probably enough to not run Microsoft email software, though it's possible there are other user agents stupid enough to execute `executable' attachments. /~\ The ASCII der Mouse \ / Ribbon Campaign X Against HTML mouse at rodents.montreal.qc.ca / \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B From stefan at schloerholz.de Wed Jul 23 20:42:37 2003 From: stefan at schloerholz.de (Stefan =?iso-8859-15?q?Schl=F6rholz?=) Date: Wed, 23 Jul 2003 21:42:37 +0200 Subject: [sane-devel] rference palette for Sane Message-ID: <200307232142.37456.stefan@schloerholz.de> Hello, when operating my scanner (Microtek ScanMaker 35t plus (slide scanner)) under Windows it was possible to scan a Kodak reference slide. Ther was a special reference aquiring mode (including selecting the type of reference slide). Somehow this reference was saved and new scans are were corrected against this reference slide. The results where much better than using Linux Sane. I could not find any hint how to calibrate Sane using such a reference scan. Is it possible to have the same feature as under the Windows application (BTW: it was not Sane under Windows)? Can I realize it or does someone with more know how needs to do that? cu Stefan From henning at meier-geinitz.de Wed Jul 23 22:06:57 2003 From: henning at meier-geinitz.de (Henning Meier-Geinitz) Date: Wed, 23 Jul 2003 23:06:57 +0200 Subject: [sane-devel] rference palette for Sane In-Reply-To: <200307232142.37456.stefan@schloerholz.de> References: <200307232142.37456.stefan@schloerholz.de> Message-ID: <20030723210657.GD25935@meier-geinitz.de> Hi, On Wed, Jul 23, 2003 at 09:42:37PM +0200, Stefan Schl?rholz wrote: > when operating my scanner (Microtek ScanMaker 35t plus (slide scanner)) > under Windows it was possible to scan a Kodak reference slide. Ther was > a special reference aquiring mode (including selecting the type of > reference slide). I don't know if there is an automatic way to do that. I've a printed Agfa reference card. When I want to calibrate a scanner whose gamma setting doesn't look correct, I just scan that reference print. Most of the time it's enough to select white, gray and dark point in Xsane and let XSane change the gamma setting from those parameters. Sometimes I scan a preview from that card, compare it on the scarren with the original card and sett the gamma settings so they are identical. I don't know if that's useful for slide scanners, however. Bye, Henning From frares at netscape.net Wed Jul 23 22:29:39 2003 From: frares at netscape.net (frares at netscape.net) Date: Wed, 23 Jul 2003 17:29:39 -0400 Subject: [sane-devel] Re: Does anyone need help writing a backend? Message-ID: <3210EBB1.275F3D7E.0006305B@netscape.net> I have a Genius HR7X scanner that I'd love to use in Linux, but I have no experience on programing in Linux, so I can't help (i hope this will change in near future ;-) . Would you consider this one? Thanks Francisco Ares __________________________________________________________________ McAfee VirusScan Online from the Netscape Network. Comprehensive protection for your entire computer. Get your free trial today! http://channels.netscape.com/ns/computing/mcafee/index.jsp?promo=393397 Get AOL Instant Messenger 5.1 free of charge. Download Now! http://aim.aol.com/aimnew/Aim/register.adp?promo=380455 From a.deuring at satzbau-gmbh.de Thu Jul 24 10:58:43 2003 From: a.deuring at satzbau-gmbh.de (abel deuring) Date: Thu, 24 Jul 2003 11:58:43 +0200 Subject: [sane-devel] rference palette for Sane References: <200307232142.37456.stefan@schloerholz.de> Message-ID: <3F1FADD3.8EE70152@satzbau-gmbh.de> Stefan Schl?rholz wrote: > > Hello, > > when operating my scanner (Microtek ScanMaker 35t plus (slide scanner)) > under Windows it was possible to scan a Kodak reference slide. Ther was > a special reference aquiring mode (including selecting the type of > reference slide). > > Somehow this reference was saved and new scans are were corrected > against this reference slide. The results where much better than using > Linux Sane. I could not find any hint how to calibrate Sane using such > a reference scan. > > Is it possible to have the same feature as under the Windows application > (BTW: it was not Sane under Windows)? Can I realize it or does someone > with more know how needs to do that? I don't know about any fully integrated color correction solution for Sane frontends -- but you may have a look at free software for color management and color corretion. A few links for a start: Karl-Heinz Kremer's link collection: http://www.khk.net/color/links.html color aid: http://www.coloraid.de/ Especially LCMS and GCMS, mentioned on both sites, may provide what you need. Abel From henning at meier-geinitz.de Thu Jul 24 15:47:51 2003 From: henning at meier-geinitz.de (Henning Meier-Geinitz) Date: Thu, 24 Jul 2003 16:47:51 +0200 Subject: [sane-devel] Re: Does anyone need help writing a backend? In-Reply-To: <3210EBB1.275F3D7E.0006305B@netscape.net> References: <3210EBB1.275F3D7E.0006305B@netscape.net> Message-ID: <20030724144751.GA837@meier-geinitz.de> Hi, On Wed, Jul 23, 2003 at 05:29:39PM -0400, frares at netscape.net wrote: > I have a Genius HR7X scanner that I'd love to use in Linux, but I > have no experience on programing in Linux, so I can't help (i hope > this will change in near future ;-) . I have now a Umax Astra 4500 and will try to get it working. The chipset used by this scanner is labelled "Avision B2" so I'm not sure if that's really a gl646 based scanner. However, the output of cat proc/bus/usb/devices of your scanner is very similar to the one of my scanner. If you don't fear losing your warranty, could you open the scanner and have a look at the names printed on the chips? Bye, Henning From henning at meier-geinitz.de Thu Jul 24 18:14:30 2003 From: henning at meier-geinitz.de (Henning Meier-Geinitz) Date: Thu, 24 Jul 2003 19:14:30 +0200 Subject: [sane-devel] sane-backends effectively GPL'd in disguise? In-Reply-To: <20030723023657.GA21544@zen.epkowa.co.jp> References: <20030723023657.GA21544@zen.epkowa.co.jp> Message-ID: <20030724171430.GC1262@meier-geinitz.de> Hi, a quick status update: On Wed, Jul 23, 2003 at 11:36:57AM +0900, Olaf Meeuwissen wrote: [GPL instead of GPL + SANE exception] > include/sane/sanei_thread.h > include/sane/sanei_usb.h Fixed in CVS with consent of the authors. > include/sane/sanei.h > include/sane/sanei_codec_ascii.h > include/sane/sanei_codec_bin.h > include/sane/sanei_scsi.h > include/sane/sanei_wire.h > include/sane/saneopts.h I'm waiting for responses from the authors. > include/lalloca.h > include/lassert.h > sanei/linux_sg3_err.h Put on the TODO list. Bye, Henning From henning at meier-geinitz.de Thu Jul 24 18:29:32 2003 From: henning at meier-geinitz.de (Henning Meier-Geinitz) Date: Thu, 24 Jul 2003 19:29:32 +0200 Subject: [sane-devel] Development of backend for Genesys GL646 based scanners (e.g. UMAX Astra 4500) Message-ID: <20030724172932.GD1262@meier-geinitz.de> Hi, As already mentioned earlier, I've just started working on a backend for scanners based on the Genesys Logic GL646 chip. There is no code yet and it will take some time to write it. The homepage of the backend is: http://www.meier-geinitz.de/sane/genesys-backend/ I'm using a UMAX Astra 4500 scanner so that one is the one that will be supported at first (hopefully). These scanners are reported to have the same chip: Avision iVina FB1600 Genius ColorPage HR7X Lexmark X83 Medion/Tevion MD6228 + MD5345 Plustek OpticPro S12 Plustek OpticPro S24 As a first step, sane-find-scanner is now able to detect the GL646 chip. If you have one of these scanners, please run the latest sane-find-scanner tool as described on the genesys backend homepage. And/or open the scanner and check the names printed on the chips inside. This may void your warranty. If you have a scanner that is not mentioned here and you think it also uses the GL646 chip, please do the same and contact me. Bye, Henning From peter at kirchgessner.net Thu Jul 24 19:36:27 2003 From: peter at kirchgessner.net (Peter Kirchgessner) Date: Thu, 24 Jul 2003 20:36:27 +0200 Subject: [sane-devel] SANE_I18N for hp-backend Message-ID: <3F20272B.8020203@kirchgessner.net> Hi, the hp-backend has been prepared for i18n in CVS. Bye Peter -- Peter Kirchgessner http://www.kirchgessner.net mailto:peter at kirchgessner.net From olaf at zen.epkowa.co.jp Fri Jul 25 02:59:08 2003 From: olaf at zen.epkowa.co.jp (Olaf Meeuwissen) Date: Fri, 25 Jul 2003 10:59:08 +0900 Subject: [sane-devel] sane-backends effectively GPL'd in disguise? In-Reply-To: <20030724171430.GC1262@meier-geinitz.de> References: <20030723023657.GA21544@zen.epkowa.co.jp> <20030724171430.GC1262@meier-geinitz.de> Message-ID: <20030725015908.GA1501@zen.epkowa.co.jp> On Thu, Jul 24, 2003 at 07:14:30PM +0200, Henning Meier-Geinitz wrote: > Hi, > > a quick status update: > > On Wed, Jul 23, 2003 at 11:36:57AM +0900, Olaf Meeuwissen wrote: > [GPL instead of GPL + SANE exception] > > include/sane/sanei_thread.h > > include/sane/sanei_usb.h > > Fixed in CVS with consent of the authors. > > > include/sane/sanei.h > > include/sane/sanei_codec_ascii.h > > include/sane/sanei_codec_bin.h > > include/sane/sanei_scsi.h > > include/sane/sanei_wire.h > > include/sane/saneopts.h > > I'm waiting for responses from the authors. > > > include/lalloca.h > > include/lassert.h > > sanei/linux_sg3_err.h > > Put on the TODO list. Hi Henning, Thanks for the quick action. As for the lalloca.h file, you may be able to use the following (taken from the autoconf info pages which are under the FDL) /* AIX requires this to be the first thing in the file. */ #ifndef __GNUC__ # if HAVE_ALLOCA_H # include # else # ifdef _AIX #pragma alloca # else # ifndef alloca /* predefined by HP cc +Olibcalls */ char *alloca (); # endif # endif # endif #endif I *think* you can cite "fair use" and put this in the public domain. Double checking with the authors, of course, won't hurt :-) Thanks again, -- Olaf Meeuwissen EPSON KOWA Corporation, ECS GnuPG key: 6BE37D90/AB6B 0D1F 99E7 1BF5 EB97 976A 16C7 F27D 6BE3 7D90 Penguin's lib! -- I hack, therefore I am -- LPIC-2 From henning at meier-geinitz.de Fri Jul 25 09:32:35 2003 From: henning at meier-geinitz.de (Henning Meier-Geinitz) Date: Fri, 25 Jul 2003 10:32:35 +0200 Subject: [sane-devel] Current TODO list Message-ID: <20030725083235.GI1262@meier-geinitz.de> Hi, I'll append the current TODO list from CVS. If your backend or other code you care about is mentioned there, please try to fix the issues. If something is wrong or missing on this list, please change it in CVS or tell me :-) Bye, Henning TODO (2003-07-25) ******** todo ******** backends -------- * Add new backends (+ means scheduled for SANE 1.0.13) - Hewlett-Packard ScanJet 3300C / 3400C and 4300C (wip) http://sourceforge.net/projects/hp3300backend - Hewlett-Packard 4200c http://hp4200-backend.sourceforge.net/ http://fz.eryx.net/sane/#hp4200 * qcam: - implement auto mode for brightness and black-level (don't just advertise it!) Actually, implement an auto "backend" instead that can be plugged in front of any backend with brightness/contrast etc controls - figure out how/if to support bulb mode - convert to use sanei_pio functions instead of direct port access. - The result of locking isn't checked --> does it make sense at all? * dc210, dc240, gphoto2, and jpeg stuff: move sanei_* functions to sanei/ (if they are necessary). That's probably for SANE2. * v4l: - Geometry support is missing - Frequency setting is missing - check if v4lctl distributed with xawtv can be used - Use #define _LINUX_TIME_H 1 just before including videodev.h or videodev2.h to avoid trouble if /usr/include/linux is a link. - Add v4l updates from Martin Palm, see http://www.meier-geinitz.de/sane/misc/sane-v4l-update.tar.gz - compilation seems to break when video4linux version 2 is installed? * memory leaks: - sane_exit() does not release memory allocated by sane_get_devices(): abaton, agfafocus, apple, as6e, bh, canon, coolscan, dmc, qcam, ricoh, s9036, sp15c, tamarack - as6e: attach: memory (dev + dev-sane.name) isn't freed if driver isn't found. * suspicious warnings or type mismatchs: - bh: backend/bh.c, line 1923: warning: end-of-loop code not reached see sane-devel. Also don't use mktemp. - coolscan: Lots of compilation warnings (e.g. "backend/coolscan-scsidef.h", line 160: warning: initialization type mismatch; empty declarations), see sane-devel. * Check if sp15c backend (Fujitsu ScanPartner 15C) can be included in the avision backend. * artec - Fix email address of Chris Pinkham. cpinkham at infi.net bounces. * All backends: Check that global variables are initialized propperly. sane_init can be called more than once (if sane_exit was called before)! Global variables must be either initialized in sane_init or reset in sane_exit. At least these backends segfault: - microtek - hp5400 * fujitsu: option names shouldn't contain "_" * fujitsu: Add patch from m. allan noah: http://www.mostang.com/pipermail/sane-devel/2003-June/019332.html * mustek_pp: Re-enable support for CCD scanners. * avision: Add patch for using the --source option from priya (?) * Don't mark option names with SANE_I18N (see po/README for details): - canon630u.c ("cal") doc --- * Add doxygen documentation for the remaining sanei files: - sanei_pio.h - sanei_pv8630.h - sanei_wire.h * desc files: - Add keywords "vendor-id" and "product-id" for SCSI and USB ids. - umax: genius.kye.de times out? - umax, artec_eplus48u: http://www.umax.com.tw/ times out? - plustek: add Genius ColorPage HR6X EPP as supported - Change all description files to use the new status keyword: avision, canon, canon630u, coolscan2, fujitsu, hp, hp5400, hpsj5s, microtek, microtek2, plustek, sharp, st400, umax1220u. * manpages: - html manpages have broken links to other man pages if link is wrapped at the end of the line (e.g. sane-pint points to pint.5.html). Escaping the "-" with a backslash seems to work. frontends --------- * saned: - saned times out after 60 minutes. Check if the watchdog timer is really necessary (e.g. to avoid blocking scanners by one user). Maybe add a command line option to saned to set the timeout. Otherwise turn on TCP keep alive (where available) and (maybe) check the connection from server side. - Check for wire errors everywhere. Maybe create a macro? - Can the amount of memory that's used for strings be limited? Otherwise remote computers can allocate huge amounts of memories on the server. - Think about a complete rewrite with security in mind. * scanimage: Check range of width and height. scanimage just uses the ranges from br-x and br-y but this is wrong for tl-x and tl-y != 0 and for SANE_UNIT_PIXEL. sanei ----- * sanei_scsi: Think about a completely new interface. Details are in http://www.mostang.com/pipermail/sane-devel/2002-January/001995.html and http://www.mostang.com/pipermail/sane-devel/2002-December/016773.html. * create sanei_parport_* and remove all inb, outb,... from all backends; use libieee1284 if available (see http://people.redhat.com/twaugh/libieee1284/). Or just include this library into sane. * Check if the device file has the right type before accessing it. E.g. check for major/minor numbers to avoid accessing a USB file as SCSI device. This is finished for sanei_scsi.c/Linux and sane-find-scanner. Patches for other platforms are welcome. * sanei_scsi (Linux): Make sure that the SCSI driver is loaded when checking for scanners. Ideas: Open/close all the /dev/sg* files in sanei_scsi.c, dll.c or in a new backend. * sanei_scsi: Print all data send to and received from devices. Use high debug level. Already implemented for sanei_usb. * sanei_scsi: enable close_on_exec flag with fcntl on open filedescriptors to avoid blocking if the main application is already closed. * sanei_usb: - some scanners seem to provide more than one bulk-in endpoint(?) platform-specific ----------------- * Fix MacOS X issues: - More docu in README.darwin. * OS/2 issues: - Add support for semaphores also for OS/2 (currently used in snapscan). * icc on ia32 + ia64: - fix sys/io.h problems (see README.linux) misc ---- * sane-config: add options "--exec-prefix=...." and "--prefix=..." compareable to gtk-config * Make output of sane-find-scanner more flexible. See scanimage -f for details. * Can we link external libraries only to backends that need them? See http://fz.eryx.net/sane/#configure. * Fix japi to run on current jdks. Swing is now included, and there is a segfault in Sane.c. Silvio Vogt is working on this topic. * There is a mysterious problem with string list options that occurs with (at least) the epson backend, saned and xsane. See http://www.mostang.com/pipermail/sane-devel/2003-May/018755.html. * configure/libtool: find a simple way to avoid all the unneccessary tests for c++ and fortran. * Check the license of these files, they don't contain the SANE exception: include/sane/sanei.h David Mosberger-Tang and Andreas Beck include/sane/sanei_codec_ascii.h David Mosberger-Tang and Andreas Beck include/sane/sanei_codec_bin.h David Mosberger-Tang and Andreas Beck include/sane/saneopts.h David Mosberger-Tang and Andreas Beck Probably just forgotten to move from GPL to GPL+SANE. include/lalloca.h The Free Software Foundation include/lassert.h Henning Meier-Geinitz, FSF(?) sanei/linux_sg3_err.h ? (somewhere from the linux kernel or sg tools?) External files. Check for replacements. Are they necessary at all? From stefan at schloerholz.de Fri Jul 25 12:54:57 2003 From: stefan at schloerholz.de (Stefan =?iso-8859-1?q?Schl=F6rholz?=) Date: Fri, 25 Jul 2003 13:54:57 +0200 Subject: [sane-devel] Current TODO list In-Reply-To: <20030725083235.GI1262@meier-geinitz.de> References: <20030725083235.GI1262@meier-geinitz.de> Message-ID: <200307251354.57632.stefan@schloerholz.de> Henning Meier-Geinitz schrieb am Freitag, 25. Juli 2003 10:32: > Hi, Hi, what about general support for .icm profile generation and usgae? An aquire module for these .icm files using a reference target (Kodak Q-60E3 or IT8.7) would be nice so that you can calibrate yout scanner Maybe together with monitor profile you can aquire an image from the scanner and directly get the proper result for your scanner/monitor combintion. Since I have no clue about programming and CVS I have to go through email cu Stefan From khk at khk.net Fri Jul 25 13:16:29 2003 From: khk at khk.net (Karl Heinz Kremer) Date: Fri, 25 Jul 2003 08:16:29 -0400 Subject: [sane-devel] rference palette for Sane In-Reply-To: <3F1FADD3.8EE70152@satzbau-gmbh.de> Message-ID: LCMS does come with a scanner profiler (creates an ICC profile that can then be used to color correct the scan). It's a two step process, because no Sane frontend does support an automatic color correction (yet?). Karl Heinz On Thursday, July 24, 2003, at 05:58 AM, abel deuring wrote: > Stefan Schl?rholz wrote: >> >> Hello, >> >> when operating my scanner (Microtek ScanMaker 35t plus (slide >> scanner)) >> under Windows it was possible to scan a Kodak reference slide. Ther >> was >> a special reference aquiring mode (including selecting the type of >> reference slide). >> >> Somehow this reference was saved and new scans are were corrected >> against this reference slide. The results where much better than using >> Linux Sane. I could not find any hint how to calibrate Sane using such >> a reference scan. >> >> Is it possible to have the same feature as under the Windows >> application >> (BTW: it was not Sane under Windows)? Can I realize it or does someone >> with more know how needs to do that? > > I don't know about any fully integrated color correction solution for > Sane frontends -- but you may have a look at free software for color > management and color corretion. A few links for a start: > > Karl-Heinz Kremer's link collection: > http://www.khk.net/color/links.html > > color aid: > http://www.coloraid.de/ > > Especially LCMS and GCMS, mentioned on both sites, may provide what you > need. > > Abel > _______________________________________________ > Sane-devel mailing list > Sane-devel at www.mostang.com > http://www.mostang.com/mailman/listinfo/sane-devel From psfales at lucent.com Fri Jul 25 13:46:00 2003 From: psfales at lucent.com (Peter Fales) Date: Fri, 25 Jul 2003 07:46:00 -0500 Subject: [sane-devel] Current TODO list In-Reply-To: <20030725083235.GI1262@meier-geinitz.de> References: <20030725083235.GI1262@meier-geinitz.de> Message-ID: <20030725124600.GA8784@lucent.com> On Fri, Jul 25, 2003 at 10:32:35AM +0200, Henning Meier-Geinitz wrote: > * dc210, dc240, gphoto2, and jpeg stuff: move sanei_* functions to sanei/ > (if they are necessary). That's probably for SANE2. Henning, I think we've discussed this briefly before, but now that I've got more experience with SANE, I might be more willing to tackle it. However, I'm not really sure what is being asked here. Can you provide more details? Is it just moving cdjpeg.h and djpeg.c into the sanei directory? Thanks, Peter Fales From henning at meier-geinitz.de Fri Jul 25 15:10:39 2003 From: henning at meier-geinitz.de (Henning Meier-Geinitz) Date: Fri, 25 Jul 2003 16:10:39 +0200 Subject: [sane-devel] Current TODO list In-Reply-To: <200307251354.57632.stefan@schloerholz.de> References: <20030725083235.GI1262@meier-geinitz.de> <200307251354.57632.stefan@schloerholz.de> Message-ID: <20030725141039.GK1262@meier-geinitz.de> Hi, On Fri, Jul 25, 2003 at 01:54:57PM +0200, Stefan Schl?rholz wrote: > what about general support for .icm profile generation and usgae? There was some discussion on this list about color management, e.g.: http://www.mostang.com/pipermail/sane-devel/2002-August/015083.html > An aquire module for these .icm files using a reference target (Kodak > Q-60E3 or IT8.7) would be nice so that you can calibrate yout scanner > > Maybe together with monitor profile you can aquire an image from the > scanner and directly get the proper result for your scanner/monitor > combintion. > > Since I have no clue about programming and CVS I have to go through > email Well, it looks like it's not important enough for the developers as nothing has been implemented yet :-) I personally don't know much about color management and this kind of calibration. Do we need support for that in the backends and or the API at all? I thought it's necessary to create the .icm files with each individual scanner. So e.g. if you have two scanners (exactly same model) they may vary, because e.g. gain/offset is different because of slightly different sensitivity of the CCD/CIS. I'll add an entry in the TODO list but more input would be appreciated. Bye, Henning From henning at meier-geinitz.de Fri Jul 25 15:43:47 2003 From: henning at meier-geinitz.de (Henning Meier-Geinitz) Date: Fri, 25 Jul 2003 16:43:47 +0200 Subject: [sane-devel] Current TODO list In-Reply-To: <20030725124600.GA8784@lucent.com> References: <20030725083235.GI1262@meier-geinitz.de> <20030725124600.GA8784@lucent.com> Message-ID: <20030725144347.GL1262@meier-geinitz.de> Hi, On Fri, Jul 25, 2003 at 07:46:00AM -0500, Peter Fales wrote: > On Fri, Jul 25, 2003 at 10:32:35AM +0200, Henning Meier-Geinitz wrote: > > * dc210, dc240, gphoto2, and jpeg stuff: move sanei_* functions to sanei/ > > (if they are necessary). That's probably for SANE2. > > Henning, > > I think we've discussed this briefly before, but now that I've got more > experience with SANE, I might be more willing to tackle it. However, > I'm not really sure what is being asked here. Can you provide more > details? Is it just moving cdjpeg.h and djpeg.c into the sanei directory? The idea is to have all code that's shared between backends in sanei/ and its header files in include/sane. I haven't looked too hard and haven't tried but if possible, I'd move all the jpeg source code to e.g. sanei/sanei_jpeg.c and the header file(s) to include/sane/sanei_jpeg.h. Move the djpeg.README to the root directory (README.djpeg sound nicer). Add some comments on the top of that file which backends use it and what was changed in the code. The names were changed to sanei_* and the license requires to write down what was changed IIRC. You may need some Makefile changes to make sure the jpeg files are only compiled when libjpeg is available (?). Better check the details. This topic is not that important so if you can use the time to write a new backend that would be better. But cleaning up the jpeg code is nice, too. Bye, Henning From stefan at schloerholz.de Fri Jul 25 22:23:37 2003 From: stefan at schloerholz.de (Stefan =?iso-8859-1?q?Schl=F6rholz?=) Date: Fri, 25 Jul 2003 23:23:37 +0200 Subject: [sane-devel] Current TODO list In-Reply-To: <20030725124600.GA8784@lucent.com> References: <20030725083235.GI1262@meier-geinitz.de> <20030725124600.GA8784@lucent.com> Message-ID: <200307252323.37987.stefan@schloerholz.de> Peter Fales schrieb am Freitag, 25. Juli 2003 14:46: > On Fri, Jul 25, 2003 at 10:32:35AM +0200, Henning Meier-Geinitz wrote: > Henning, Hello Henning, > However, I'm not really sure what is being asked here. Can you > provide more details? Is it just moving cdjpeg.h and djpeg.c into Since I do not know much about programming, header files, object files and the works I do not know what you are talking here. Let me explain my suggestion: The software for my scanner under windows offers a dialog where you scan a reference target, tell the programm which target standard you used and mark the positions of the reference marks. The program then knows at which position to expect what color, say pure red. It also knows which color it actually got from the scan. It then calculates a profile file (suffix .icm) with information how to correct colors. Any scan is then corrected using this scheme automatically. The quality of a scan under linux differs extremely from a scan under windows. The windows scan is by far closer to what you expect. The histogram, gamma correction and the works can not compensate for it. There are some projects for this color management under linux but they end up applying the profile after scanning and reworking it in a third application applying histogram or other funktions. This could be done in one go if sane could handle the color management. It may be splitted in frontend and backend part. Each scanner has its own profile. The aquire and processing the .icm file should always be the same. I believe that this correction procedure is very important to scanners. Having such a color management would greatly improve acceptance at the professional users. An additional possibility to import and use other .icm profiles, e. g. for the monitor or printer would improve the output even more. cu Stefan From crapsite at gmx.net Sat Jul 26 04:56:26 2003 From: crapsite at gmx.net (Michael Herder) Date: Sat, 26 Jul 2003 05:56:26 +0200 Subject: [sane-devel] Current TODO list In-Reply-To: <20030725083235.GI1262@meier-geinitz.de> References: <20030725083235.GI1262@meier-geinitz.de> Message-ID: <20030726040647.679B33B@panda.mostang.com> Henning Meier-Geinitz, Freitag, 25. Juli 2003 10:32: ... > * desc files: > - umax, artec_eplus48u: http://www.umax.com.tw/ times out? The link works for me, not sure what you mean. Perhaps this was just a temporary proplem. bb Michael From tomf at sjpc.org Sat Jul 26 05:49:30 2003 From: tomf at sjpc.org (Thomas Frayne) Date: 25 Jul 2003 21:49:30 -0700 Subject: [sane-devel] HP 7450C ... Need new patch In-Reply-To: <20030714.153143.846936143.rene.rebe@gmx.net> References: <1057435429.15799.40.camel@localhost.localdomain> <20030706.162130.730557932.rene.rebe@gmx.net> <1058064729.3167.147.camel@localhost.localdomain> <20030714.153143.846936143.rene.rebe@gmx.net> Message-ID: <1059194970.3238.2.camel@localhost.localdomain> On Mon, 2003-07-14 at 06:31, Rene Rebe wrote: > Hi, > > I was away to LinuxTag - a Linux fair here in germy - over the > weekend. I'll work on the backend this night, finish the endian issues > ..., and release a new backend (hopefully around midnight. I'll send a > seperate mail when finished. > Any progress on the new backend? Tom Frayne From henning at meier-geinitz.de Sat Jul 26 08:34:07 2003 From: henning at meier-geinitz.de (Henning Meier-Geinitz) Date: Sat, 26 Jul 2003 09:34:07 +0200 Subject: [sane-devel] Current TODO list In-Reply-To: <20030726040647.679B33B@panda.mostang.com> References: <20030725083235.GI1262@meier-geinitz.de> <20030726040647.679B33B@panda.mostang.com> Message-ID: <20030726073407.GA29840@meier-geinitz.de> Hi, On Sat, Jul 26, 2003 at 05:56:26AM +0200, Michael Herder wrote: > Henning Meier-Geinitz, Freitag, 25. Juli 2003 10:32: > ... > > * desc files: > > - umax, artec_eplus48u: http://www.umax.com.tw/ times out? > > The link works for me, not sure what you mean. Perhaps this was just a > temporary proplem. You are right, I can load the page when I'm using a host in the DFN (German university network). Well, it's sloow and in chinese but it loads :-) With my t-online TDSL connection I can't even get a response to ping. Either they don't like t-online users or t-online blocks them. I'll remove that entry. Bye, Henning From henning at meier-geinitz.de Sat Jul 26 12:49:57 2003 From: henning at meier-geinitz.de (Henning Meier-Geinitz) Date: Sat, 26 Jul 2003 13:49:57 +0200 Subject: [sane-devel] sane-backends effectively GPL'd in disguise? In-Reply-To: <20030725015908.GA1501@zen.epkowa.co.jp> References: <20030723023657.GA21544@zen.epkowa.co.jp> <20030724171430.GC1262@meier-geinitz.de> <20030725015908.GA1501@zen.epkowa.co.jp> Message-ID: <20030726114957.GC29840@meier-geinitz.de> Hi, On Fri, Jul 25, 2003 at 10:59:08AM +0900, Olaf Meeuwissen wrote: > Thanks for the quick action. As for the lalloca.h file, you may be > able to use the following (taken from the autoconf info pages which > are under the FDL) > > /* AIX requires this to be the first thing in the file. */ > #ifndef __GNUC__ > # if HAVE_ALLOCA_H > # include > # else > # ifdef _AIX > #pragma alloca > # else > # ifndef alloca /* predefined by HP cc +Olibcalls */ > char *alloca (); > # endif > # endif > # endif > #endif > > I *think* you can cite "fair use" and put this in the public domain. > Double checking with the authors, of course, won't hurt :-) The code that's currently used is based on the autoconf manual (from 1997). I've found a comment in the Changelog. As this is a very small piece of code and the autoconf authors state it should be used in the program I don't see any problem to use GPL + SANE exceptions for it. Meanwhile all files but sanei/linux_sg3_err.h have been changed to GPL+ SANE exception. I'm waiting for the response of the sg_utils author before I decide what to do with that file. We only need the #defines anyway. I've found some backends that don't use the SANE exception, some of them maybe unintentional. I'll write a sepearate email about this topic. Bye, Henning From henning at meier-geinitz.de Sat Jul 26 13:01:47 2003 From: henning at meier-geinitz.de (Henning Meier-Geinitz) Date: Sat, 26 Jul 2003 14:01:47 +0200 Subject: [sane-devel] Licenses of the backends Message-ID: <20030726120147.GD29840@meier-geinitz.de> Hi, The following backend files use pure GPL without the SANE exception: ./backend/agfafocus.c ./backend/agfafocus.h ./backend/s9036.c ./backend/s9036.h ./backend/tamarack.c ./backend/tamarack.h ./backend/snapscan-usb.c ./backend/snapscan-usb.h While the omission of the exception note is intentional for tamarack, I'm not that sure about the other files. Especially the missing note in the snapscan-usb files voids the exception in the snapscan backend. I propose to either use or not use the exception, just to be consistant. Bye, Henning From henning at meier-geinitz.de Sat Jul 26 13:19:13 2003 From: henning at meier-geinitz.de (Henning Meier-Geinitz) Date: Sat, 26 Jul 2003 14:19:13 +0200 Subject: [sane-devel] Current TODO list In-Reply-To: <200307252323.37987.stefan@schloerholz.de> References: <20030725083235.GI1262@meier-geinitz.de> <20030725124600.GA8784@lucent.com> <200307252323.37987.stefan@schloerholz.de> Message-ID: <20030726121913.GE29840@meier-geinitz.de> Hi, On Fri, Jul 25, 2003 at 11:23:37PM +0200, Stefan Schl?rholz wrote: > > However, I'm not really sure what is being asked here. Can you > > provide more details? Is it just moving cdjpeg.h and djpeg.c into > > Since I do not know much about programming, header files, object files > and the works I do not know what you are talking here. Well, we are talking about the TODO list and one of its entries was to move some internal files. I'm not sure why you don't respond to the email that covers the icm topic but to this one. > Let me explain my suggestion: > The software for my scanner under windows offers a dialog where you scan > a reference target, tell the programm which target standard you used > and mark the positions of the reference marks. So it does a preview scan and you must select where the target is positioned on the glass? Or does the software find out the position automatically ? > The program then knows at which position to expect what color, say pure > red. It also knows which color it actually got from the scan. It then > calculates a profile file (suffix .icm) with information how to correct > colors. Any scan is then corrected using this scheme automatically. Ok. From your description I don't see any need to add support for icm files to backends or the SANE API. For me it looks like it can be included in the frontends without the help of the backends. Or a special "frontend" could be created that just does the calibration and other frontends could just use the .icm files. If I understand the method correctly, the frontends then use the .icm files to adjust the gamma tables. What I don't really understand is how that corresponds to the other scanner settings like exposure, gain and offset which have influence on the brightness/gamma of the image, too. So the .icm profile is only valid for one scanner with one setting of these values? > The quality of a scan under linux differs extremely from a scan under > windows. The windows scan is by far closer to what you expect. The > histogram, gamma correction and the works can not compensate for it. If you can't correct the color by using a gamma table, calibrating with the standard target won't help. Maybe in your case the widnows driver uses other settings (e.g. exposure, gain etc)? Generally speaking, the images scanned by SANE are NOT always worse than with Windows, so this may be a backend/scanner-specific problem. > There are some projects for this color management under linux but they > end up applying the profile after scanning and reworking it in a third > application applying histogram or other funktions. > > This could be done in one go if sane could handle the color management. > It may be splitted in frontend and backend part. Each scanner has its > own profile. The aquire and processing the .icm file should always be > the same. But the profile muste be created with the help of the frontend anyway. So I don't see what role the backend plays here. Keep in mind that quite a lot of scanners don't have gamma support at all, that's all been done in software. > I believe that this correction procedure is very important to scanners. > Having such a color management would greatly improve acceptance at the > professional users. Ok, then these users should propose the details on how to do it and send patches :-) I'll add a pointer to thie discussion to the TODO list. Bye, Henning From Oliver.Schwartz at gmx.de Sat Jul 26 15:37:47 2003 From: Oliver.Schwartz at gmx.de (Oliver Schwartz) Date: Sat, 26 Jul 2003 16:37:47 +0200 Subject: [sane-devel] Licenses of the backends In-Reply-To: <20030726120147.GD29840@meier-geinitz.de> References: <20030726120147.GD29840@meier-geinitz.de> Message-ID: <200307261637.55577.Oliver.Schwartz@gmx.de> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, > ./backend/snapscan-usb.c > ./backend/snapscan-usb.h > > Especially the missing note in the snapscan-usb files voids the > exception in the snapscan backend. I propose to either use or not > use the exception, just to be consistant. I'll contact the original author, but I'm quite sure it was just forgotten. - -Oliver -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE/IpJA/V6sbrmfIuMRAk2EAKCIJ3gb7dB3ValsvOGUkRn0CqqsBgCcD5U1 qgL329CuFA43+Fy8/bprYa4= =tpAN -----END PGP SIGNATURE----- From henning at meier-geinitz.de Sun Jul 27 10:00:11 2003 From: henning at meier-geinitz.de (Henning Meier-Geinitz) Date: Sun, 27 Jul 2003 11:00:11 +0200 Subject: [sane-devel] Current TODO list In-Reply-To: <200307262218.23102.stefan@schloerholz.de> References: <20030725083235.GI1262@meier-geinitz.de> <200307252323.37987.stefan@schloerholz.de> <20030726121913.GE29840@meier-geinitz.de> <200307262218.23102.stefan@schloerholz.de> Message-ID: <20030727090011.GB5496@meier-geinitz.de> Hi, I think the discussion is of general interest so I Cc: sane-devel. On Sat, Jul 26, 2003 at 10:18:23PM +0200, Stefan Schl?rholz wrote: > > > Let me explain my suggestion: > > > The software for my scanner under windows offers a dialog where you > > > scan a reference target, tell the programm which target standard > > > you used and mark the positions of the reference marks. > > > > So it does a preview scan and you must select where the target is > > positioned on the glass? Or does the software find out the position > > automatically ? > > You make a preview scan of the target and then mark the calibration > marks. This is necessary since you may end up with diffrent visible > areas or tilted targets. I think an automatism could be possible but > then you need some image processing. Ok. > > files to backends or the SANE API. For me it looks like it can be > > included in the frontends without the help of the backends. Or a > > special "frontend" could be created that just does the calibration > > and other frontends could just use the .icm files. > > agree > > > If I understand the method correctly, the frontends then use the .icm > > files to adjust the gamma tables. What I don't really understand is > > could be. I do not know what gamma correction really does. But does the > gamma correction compensate for when only a single color is affected > (say if the scanner bulp is missing some red)? The .icm would do that. > I thought gamma applies a transfer function whereas the .icm file is > more or less a look-up table for color transformation. In SANE terms, gamma tables are look-up tables. For color mode, there could be one table (total), three tables (RGB) or four tables (RGB + total). If the scanner provides a mean to set gamma tables in hardware, the backends usually provide these tables and send them to the scanner. Otherwise the correction is done in the frontend. > > how that corresponds to the other scanner settings like exposure, > > gain and offset which have influence on the brightness/gamma of the > > image, too. So the .icm profile is only valid for one scanner with > > one setting of these values? > > correct, the .icm file compensates for the color in raw (no other > correction) mode. Other methods like histogram and gamma should be > applied afterwards. Ok. > > driver uses other settings (e.g. exposure, gain etc)? Generally > > speaking, the images scanned by SANE are NOT always worse than with > > Windows, so this may be a backend/scanner-specific problem. > > I do not doubt that. When having said Windows I meant including the use > of the .icm File. Scans in raw (no correction applied) modes do not > differ from Linux to Windows. > > > But the profile muste be created with the help of the frontend > > anyway. So I don't see what role the backend plays here. Keep in mind > > Is this a mailing list for the backends anly then? Sorry I did nor know > that. Where can I bring up this isuue correctly? It's the correct list here. This comment was directed to the previous discussion on this list. > On the other side I see that the functionality should be available for > any scanner. Why not bringing it in the backend (again, due to lack of > programming know how i do not know if possible at all) making it easier > for frontend developers to take advantage of it? The backens should support all the functions the hardware provides. As that type of calibration is not a harware feature, I don't think they can do anything to help it. Especially if a feature is needed for all devices, it's better to put it in the frontend because that means to change one (or some) frontends instead of > 50 backends. The only thing I could think about is that the backend could provide the .icm file over the SANE API once that file was generated and written to the hard disc. > > Ok, then these users should propose the details on how to do it and > > send patches :-) > > Maybe it would be best to involve some developers of the existing > projects like "lcms" projects. They know all the details of gamma, > histogram and the difference to color management using .icm files. Well, go ahead :-) Bye, Henning From henning at meier-geinitz.de Sun Jul 27 10:25:06 2003 From: henning at meier-geinitz.de (Henning Meier-Geinitz) Date: Sun, 27 Jul 2003 11:25:06 +0200 Subject: [sane-devel] sane-backends effectively GPL'd in disguise? In-Reply-To: <20030726114957.GC29840@meier-geinitz.de> References: <20030723023657.GA21544@zen.epkowa.co.jp> <20030724171430.GC1262@meier-geinitz.de> <20030725015908.GA1501@zen.epkowa.co.jp> <20030726114957.GC29840@meier-geinitz.de> Message-ID: <20030727092506.GD5496@meier-geinitz.de> Hi, On Sat, Jul 26, 2003 at 01:49:57PM +0200, Henning Meier-Geinitz wrote: > Meanwhile all files but sanei/linux_sg3_err.h have been changed to > GPL+ SANE exception. I'm waiting for the response of the sg_utils > author before I decide what to do with that file. We only need the > #defines anyway. I've changed that file to GPL + SANE exception, too. I hope that was the last one :-) Bye, Henning From khk at khk.net Sun Jul 27 12:43:40 2003 From: khk at khk.net (Karl Heinz Kremer) Date: Sun, 27 Jul 2003 07:43:40 -0400 Subject: [sane-devel] Current TODO list In-Reply-To: <20030727090011.GB5496@meier-geinitz.de> Message-ID: <916DF70C-C027-11D7-9E97-000A957E40E8@khk.net> On Sunday, July 27, 2003, at 05:00 AM, Henning Meier-Geinitz wrote: [ ... ] > >> On the other side I see that the functionality should be available for >> any scanner. Why not bringing it in the backend (again, due to lack of >> programming know how i do not know if possible at all) making it >> easier >> for frontend developers to take advantage of it? > > The backens should support all the functions the hardware provides. As > that type of calibration is not a harware feature, I don't think they > can do anything to help it. Especially if a feature is needed for all > devices, it's better to put it in the frontend because that means to > change one (or some) frontends instead of > 50 backends. > > The only thing I could think about is that the backend could provide > the .icm file over the SANE API once that file was generated and > written to the hard disc. There are a couple of ways this can be handled. But regardless of this, there are two general areas that need to be addressed: - preview in the frontend - storing the image data For the preview, the color correction has to be done in the frontend, based on two ICC profiles: One for the scanner, and one for the display. LCMS does also provide a mechanism to profile monitors. And of course, LCMS also provides the functions to actually apply the profiles. Once we store the image data, there are (at least) two options: For image formats that support embedded ICC profiles (TIFF and PNG) it is not necessary to do any color correction: The image gets stored as it was read from the scanner. In addition to the raw image data, the ICC profile gets also stored in the image file. This way, there is no loss in image quality, and an application that is ICC aware can then apply the source profile (scanner profile) and e.g. another display profile or an output profile (printer) to perform the necessary color correction. Every time a profile is applied, the image quality suffers a bit, so it's a good idea to limit the number of profile transformations. For all other image formats (which are not ICC aware), the transformation would be applied by the frontend, and the modified image data would be stored. Karl Heinz From henning at meier-geinitz.de Sun Jul 27 12:54:16 2003 From: henning at meier-geinitz.de (Henning Meier-Geinitz) Date: Sun, 27 Jul 2003 13:54:16 +0200 Subject: [sane-devel] Current TODO list In-Reply-To: <916DF70C-C027-11D7-9E97-000A957E40E8@khk.net> References: <20030727090011.GB5496@meier-geinitz.de> <916DF70C-C027-11D7-9E97-000A957E40E8@khk.net> Message-ID: <20030727115416.GE5496@meier-geinitz.de> Hi, On Sun, Jul 27, 2003 at 07:43:40AM -0400, Karl Heinz Kremer wrote: > Once we store the image data, there are (at least) two options: For > image formats that support embedded ICC profiles (TIFF and PNG) it is > not necessary to do any color correction: The image gets stored as it > was read from the scanner. In addition to the raw image data, the ICC > profile gets also stored in the image file. This way, there is no > loss in image quality, and an application that is ICC aware can then > apply the source profile (scanner profile) and e.g. another display > profile or an output profile (printer) to perform the necessary > color correction. Every time a profile is applied, the image quality > suffers a bit, so it's a good idea to limit the number of profile > transformations. Ok, but e.g. with Xsane viewer mode the program doesn't know which file type is used before the user actually saves the file. And I think the color correction should be done in hardware if the backend/scanner supports that. So the user has to decide if he wants to apply the color correction immediately (instead of saving the ICC data with the image data) before actually doing the scan. That's because the frontend must set the gamma tables before the scan. Bye, Henning From gerard at gkall.hobby.nl Sun Jul 27 16:11:14 2003 From: gerard at gkall.hobby.nl (gerard klaver) Date: 27 Jul 2003 15:11:14 +0000 Subject: [sane-devel] Current TODO list In-Reply-To: <916DF70C-C027-11D7-9E97-000A957E40E8@khk.net> References: <916DF70C-C027-11D7-9E97-000A957E40E8@khk.net> Message-ID: <1059318673.988.22.camel@gkall-lex> On Sun, 2003-07-27 at 11:43, Karl Heinz Kremer wrote: > On Sunday, July 27, 2003, at 05:00 AM, Henning Meier-Geinitz wrote: > [ ... ] > > > >> On the other side I see that the functionality should be available for > >> any scanner. Why not bringing it in the backend (again, due to lack of > >> programming know how i do not know if possible at all) making it > >> easier > >> for frontend developers to take advantage of it? > > > > The backens should support all the functions the hardware provides. As > > that type of calibration is not a harware feature, I don't think they > > can do anything to help it. Especially if a feature is needed for all > > devices, it's better to put it in the frontend because that means to > > change one (or some) frontends instead of > 50 backends. > > > > The only thing I could think about is that the backend could provide > > the .icm file over the SANE API once that file was generated and > > written to the hard disc. > > There are a couple of ways this can be handled. But regardless of this, > there are two general areas that need to be addressed: > - preview in the frontend > - storing the image data > > For the preview, the color correction has to be done in the frontend, > based > on two ICC profiles: One for the scanner, and one for the display. LCMS > does > also provide a mechanism to profile monitors. And of course, LCMS also > provides the functions to actually apply the profiles. > > > Karl Heinz > With LCMS profile package you mean the lprof package from littlecms? On http://www.littlecms.com/profilers.htm there are some screen shots of this package. I think it should be nice if this package could be used as a short of plugin package in the sane frontends. But maybe i am wrong? -- ---------- m.vr.gr. Gerard Klaver From rene.rebe at gmx.net Sun Jul 27 21:01:51 2003 From: rene.rebe at gmx.net (Rene Rebe) Date: Sun, 27 Jul 2003 22:01:51 +0200 (CEST) Subject: [sane-devel] Re: code modified for avision In-Reply-To: <01c601c34ac7$adf04d60$5505a8c0@priya> References: <004601c349cf$f8cb0b20$5505a8c0@priya> <20030714.153620.607960897.rene.rebe@gmx.net> <01c601c34ac7$adf04d60$5505a8c0@priya> Message-ID: <20030727.220151.304121048.rene.rebe@gmx.net> Hi, On: Tue, 15 Jul 2003 17:23:14 +0530, "priya" wrote: > i m mailing u the code itself. The changes i made are with respect to below > mentioned description. ... > I have modified the avision.c and avision.h file and am attaching that. > > How can i make sure that the code i have changed will be merged in the next > release or not? will there be any notification for the same.. or i will have > to maintain my code and will have to merge it everytime with the latest > version? Sorry (again) for the long delay. It is merged now. But I did modifications because: a) the new OPT_SOURCE is redudant with OPT_ADF and OPT_TRANS. So I did some cleanups and restructurings to get rid of those. b) in the code you send you did not take care of the size change of the scan-area for the various different sources. If you do further modificatoins it would be nice if you could send changes as "diff -u" against the current SANE/Avision code at: http://schillernet.dyndns.org/svn/sane-avision/ To get a tiny how-to use this Subversion repository see: http://schillernet.dyndns.org/svn/ > regards > Priya Gupta > Newgen Software Pvt Ltd > India Sincerely yours, Ren? Rebe - ROCK Linux stable release maintainer -- Ren? Rebe - Europe/Germany/Berlin rene at rocklinux.org rene.rebe at gmx.net http://www.rocklinux.org http://www.rocklinux.org/people/rene http://gsmp.tfh-berlin.de/gsmp http://gsmp.tfh-berlin.de/rene From rene.rebe at gmx.net Sun Jul 27 21:05:13 2003 From: rene.rebe at gmx.net (Rene Rebe) Date: Sun, 27 Jul 2003 22:05:13 +0200 (CEST) Subject: [sane-devel] HP 7450C ... Need new patch In-Reply-To: <1059194970.3238.2.camel@localhost.localdomain> References: <1058064729.3167.147.camel@localhost.localdomain> <20030714.153143.846936143.rene.rebe@gmx.net> <1059194970.3238.2.camel@localhost.localdomain> Message-ID: <20030727.220513.229750962.rene.rebe@gmx.net> Hi, On: 25 Jul 2003 21:49:30 -0700, Thomas Frayne wrote: > On Mon, 2003-07-14 at 06:31, Rene Rebe wrote: > > Hi, > > > > I was away to LinuxTag - a Linux fair here in germy - over the > > weekend. I'll work on the backend this night, finish the endian issues > > ..., and release a new backend (hopefully around midnight. I'll send a > > seperate mail when finished. > > > > > Any progress on the new backend? Yes - today I foud the first free minutes ... I merged the ADF handling posted here two weeks ago, too. Coud you try the current version at: http://schillernet.dyndns.org/svn/sane-avision/ To get a tiny how-to use this Subversion repository see: http://schillernet.dyndns.org/svn/ but you could also just download the two files you see in the backend dir with any browser ... Btw: the ROCK Linux homage sites are in a flux - and my new person dir at: http://www.rocklinux.net/people/rene ^^^- was org before ... but there a no new files yet > Tom Frayne Sincerely yours, Ren? Rebe - ROCK Linux stable release maintainer -- Ren? Rebe - Europe/Germany/Berlin rene at rocklinux.org rene.rebe at gmx.net http://www.rocklinux.org http://www.rocklinux.net/people/rene http://gsmp.tfh-berlin.de/gsmp http://gsmp.tfh-berlin.de/rene From rene.rebe at gmx.net Sun Jul 27 21:10:03 2003 From: rene.rebe at gmx.net (Rene Rebe) Date: Sun, 27 Jul 2003 22:10:03 +0200 (CEST) Subject: [sane-devel] Current TODO list In-Reply-To: <20030725083235.GI1262@meier-geinitz.de> References: <20030725083235.GI1262@meier-geinitz.de> Message-ID: <20030727.221003.35041182.rene.rebe@gmx.net> Hi, On: Fri, 25 Jul 2003 10:32:35 +0200, Henning Meier-Geinitz wrote: > Hi, > > I'll append the current TODO list from CVS. If your backend or other > code you care about is mentioned there, please try to fix the issues. > If something is wrong or missing on this list, please change it in CVS > or tell me :-) > > Bye, > Henning > > TODO (2003-07-25) > * Check if sp15c backend (Fujitsu ScanPartner 15C) can be included in > the avision backend. This should be possible and I already started some initial changes (infrastructure work) half a year ago. I'll add it to my TODO for the next weeks. > * avision: Add patch for using the --source option from priya > (?) Done locally - not yet in the CVS, since I only commit widely tested modifications (and tht patch needed some cleanups and still has two tiny open issues I'll resolve in the next days. Sincerely yours, Ren? Rebe - ROCK Linux stable release maintainer -- Ren? Rebe - Europe/Germany/Berlin rene at rocklinux.org rene.rebe at gmx.net http://www.rocklinux.org http://www.rocklinux.net/people/rene http://gsmp.tfh-berlin.de/gsmp http://gsmp.tfh-berlin.de/rene From khk at khk.net Sun Jul 27 22:59:09 2003 From: khk at khk.net (Karl Heinz Kremer) Date: Sun, 27 Jul 2003 17:59:09 -0400 Subject: [sane-devel] Current TODO list In-Reply-To: <20030727115416.GE5496@meier-geinitz.de> Message-ID: <8CD75FCA-C07D-11D7-9E97-000A957E40E8@khk.net> On Sunday, July 27, 2003, at 07:54 AM, Henning Meier-Geinitz wrote: > Hi, > > On Sun, Jul 27, 2003 at 07:43:40AM -0400, Karl Heinz Kremer wrote: >> Once we store the image data, there are (at least) two options: For >> image formats that support embedded ICC profiles (TIFF and PNG) it is >> not necessary to do any color correction: The image gets stored as it >> was read from the scanner. In addition to the raw image data, the ICC >> profile gets also stored in the image file. This way, there is no >> loss in image quality, and an application that is ICC aware can then >> apply the source profile (scanner profile) and e.g. another display >> profile or an output profile (printer) to perform the necessary >> color correction. Every time a profile is applied, the image quality >> suffers a bit, so it's a good idea to limit the number of profile >> transformations. > > Ok, but e.g. with Xsane viewer mode the program doesn't know which file > type is used before the user actually saves the file. For this mode you would also use the two profiles (scanner and monitor) to convert the raw data to color corrected data for the viewer. > > And I think the color correction should be done in hardware if the > backend/scanner supports that. So the user has to decide if he wants > to apply the color correction immediately (instead of saving the ICC > data with the image data) before actually doing the scan. That's > because the frontend must set the gamma tables before the scan. > In order to profile scanner, you would pick one gamma setting, create the profile and then restore the same setting everytime you are going to use this profile. A scanner profile is only valid for one set of scanner options. Scanning based on a profile is probably not something the average user would do, it's a very advanced concept. Therefore it does not have to be fool proof. Using the gamma table to perform color corrections is not always a good idea: Some scanners use only 8-bit gamma tables, even though they scan with 12, 14 or 16 bit per channel. ICC profiles can deal with 16 bit data, and therefore will create less error. Karl Heinz From soumarmt at nerim.net Mon Jul 28 08:27:31 2003 From: soumarmt at nerim.net (Thomas Soumarmon) Date: Mon, 28 Jul 2003 09:27:31 +0200 Subject: [sane-devel] Current TODO list In-Reply-To: <20030725083235.GI1262@meier-geinitz.de> References: <20030725083235.GI1262@meier-geinitz.de> Message-ID: <200307280927.31538.soumarmt@nerim.net> Hi, > TODO (2003-07-25) > > ******** todo ******** [snip] > backends > -------- > > * All backends: > Check that global variables are initialized propperly. sane_init can be > called more than once (if sane_exit was called before)! Global > variables must be either initialized in sane_init or reset in sane_exit. At > least these backends segfault: > - microtek > - hp5400 Some work has been done for hp5400. Just a few questions : * may the backend be called after a sane_exit() ? * is this needed for "const" global variables ? * could you explain me what the problem is with global initialization ? > doc > --- > > * desc files: > - Change all description files to use the new status keyword: > avision, canon, canon630u, coolscan2, fujitsu, > hp, hp5400, hpsj5s, microtek, microtek2, > plustek, sharp, st400, umax1220u. done for hp5400. From gerard at gkall.hobby.nl Mon Jul 28 14:44:10 2003 From: gerard at gkall.hobby.nl (gerard klaver) Date: 28 Jul 2003 13:44:10 +0000 Subject: [sane-devel] Which viewer to use with raw .png file and a .icc profile file Message-ID: <1059399850.1916.93.camel@gkall-lex> Hello, I have scanned a raw .png file and made a .icc profile with a reference target (wine, lprof program). The question is what can i do to or which viewer to use to correct the png file with the .icc file? No luck yet with gimp1.3 or imagemagic (display) -- ---------- m.vr.gr. Gerard Klaver From gerard at gkall.hobby.nl Mon Jul 28 16:54:32 2003 From: gerard at gkall.hobby.nl (gerard klaver) Date: 28 Jul 2003 15:54:32 +0000 Subject: [sane-devel] Current TODO list In-Reply-To: <8CD75FCA-C07D-11D7-9E97-000A957E40E8@khk.net> References: <8CD75FCA-C07D-11D7-9E97-000A957E40E8@khk.net> Message-ID: <1059407671.1918.129.camel@gkall-lex> On Sun, 2003-07-27 at 21:59, Karl Heinz Kremer wrote: > In order to profile scanner, you would pick one gamma setting, create > the > profile and then restore the same setting everytime you are going to use > this profile. A scanner profile is only valid for one set of scanner > options. > > Scanning based on a profile is probably not something the average user > would do, it's a very advanced concept. Therefore it does not have to > be fool proof. > > Using the gamma table to perform color corrections is not always a good > idea: Some scanners use only 8-bit gamma tables, even though they > scan with 12, 14 or 16 bit per channel. ICC profiles can deal with 16 > bit data, and therefore will create less error. > > Karl Heinz > Some idees about different user needs: The average user only wants a button to select enable/disable use of the default profile and the default settings belonging to the profile. After that the user can use for example Gimp to check/change the scan. Default profile generated by the manufacturer or backend maintainer(or any body else who supplied a profile file with a settings file). The more demanding user wants to select between different profiles depending on his scanning object. The advanced user wants to add his own profiles to the backend and use them when he wants and takes the effort to get a reference target and use it. -- ---------- m.vr.gr. Gerard Klaver From henning at meier-geinitz.de Mon Jul 28 15:29:46 2003 From: henning at meier-geinitz.de (Henning Meier-Geinitz) Date: Mon, 28 Jul 2003 16:29:46 +0200 Subject: [sane-devel] Which viewer to use with raw .png file and a .icc profile file In-Reply-To: <1059399850.1916.93.camel@gkall-lex> References: <1059399850.1916.93.camel@gkall-lex> Message-ID: <20030728142945.GA11798@meier-geinitz.de> Hi, On Mon, Jul 28, 2003 at 01:44:10PM +0000, gerard klaver wrote: > I have scanned a raw .png file and made a .icc profile with a reference > target (wine, lprof program). > > The question is what can i do to or which viewer to use to correct the > png file with the .icc file? > > No luck yet with gimp1.3 or imagemagic (display) I haven't tested that but "man covert" says: -profile add ICM, IPTC, or generic profile to image Is .icc == ICM? But maybe it only adds the profile to e.g. a TIFF image. Bye, Henning From oliver.rauch at rauch-domain.de Mon Jul 28 16:12:17 2003 From: oliver.rauch at rauch-domain.de (Oliver Rauch) Date: Mon, 28 Jul 2003 17:12:17 +0200 Subject: [sane-devel] Which viewer to use with raw .png file and a .icc profile file In-Reply-To: <20030728142945.GA11798@meier-geinitz.de> References: <1059399850.1916.93.camel@gkall-lex> <20030728142945.GA11798@meier-geinitz.de> Message-ID: <200307281712.17860.oliver.rauch@rauch-domain.de> BTW: scanimage also can include an ICC profile into a tiff image: -i, --icc-profile=PROFILE include this ICC profile into TIFF file But I do not know any viewers that make use of the profile in a TIFF image. Oliver Oliver On Monday 28 July 2003 16:29, Henning Meier-Geinitz wrote: > Hi, > > On Mon, Jul 28, 2003 at 01:44:10PM +0000, gerard klaver wrote: > > I have scanned a raw .png file and made a .icc profile with a reference > > target (wine, lprof program). > > > > The question is what can i do to or which viewer to use to correct the > > png file with the .icc file? > > > > No luck yet with gimp1.3 or imagemagic (display) > > I haven't tested that but "man covert" says: > > -profile > add ICM, IPTC, or generic profile to image > > Is .icc == ICM? But maybe it only adds the profile to e.g. a TIFF image. > > Bye, > Henning > > _______________________________________________ > Sane-devel mailing list > Sane-devel at www.mostang.com > http://www.mostang.com/mailman/listinfo/sane-devel -- http://www.xsane.org http://www.mostang.com/sane http://www.rauch-domain.de mailto:Oliver.Rauch at Rauch-Domain.DE From henning at meier-geinitz.de Mon Jul 28 16:05:26 2003 From: henning at meier-geinitz.de (Henning Meier-Geinitz) Date: Mon, 28 Jul 2003 17:05:26 +0200 Subject: [sane-devel] Current TODO list In-Reply-To: <200307280927.31538.soumarmt@nerim.net> References: <20030725083235.GI1262@meier-geinitz.de> <200307280927.31538.soumarmt@nerim.net> Message-ID: <20030728150526.GC11798@meier-geinitz.de> Hi, On Mon, Jul 28, 2003 at 09:27:31AM +0200, Thomas Soumarmon wrote: > Just a few questions : > * may the backend be called after a sane_exit() ? Yes, but only sane_init () again. After that, normal operation can start again. > * is this needed for "const" global variables ? I don't think so. If they are not changed, there is no problem. > * could you explain me what the problem is with global initialization ? e.g. int * some_buffer = 0; sane_init () { attach (); } attach () { if (!some_buffer) some_buffer = malloc (...); } sane_exit () { if (some_buffer) free (some_buffer); } This works once but the second time malloc won't be called. --> crash. Freeing already freed buffers also can happen if you don't explicitely set them to 0 in sane_init or sane_exit. Another example: SANE_Bool first_scan = SANE_TRUE; sane_start () { if (first_scan) { first_scan = SANE_FALSE; turn_lamp_on(); wait_for_30_seconds_for_lamp_warmup (); } } sane_exit () { turn_lamp_off (); } -> after the first sane_exit/sane_init the lamp is not warmed up. > > * desc files: > > - Change all description files to use the new status keyword: > > avision, canon, canon630u, coolscan2, fujitsu, > > hp, hp5400, hpsj5s, microtek, microtek2, > > plustek, sharp, st400, umax1220u. > > > done for hp5400. There are still some ":status :alpha" lines in your .desc file :-) Run "make" ind doc/ and grep the warnings for "hp5400". Bye, Henning From stefan at schloerholz.de Mon Jul 28 17:53:51 2003 From: stefan at schloerholz.de (Stefan =?iso-8859-15?q?Schl=F6rholz?=) Date: Mon, 28 Jul 2003 18:53:51 +0200 Subject: [sane-devel] Current TODO list In-Reply-To: <1059407671.1918.129.camel@gkall-lex> References: <8CD75FCA-C07D-11D7-9E97-000A957E40E8@khk.net> <1059407671.1918.129.camel@gkall-lex> Message-ID: <200307281853.51547.stefan@schloerholz.de> gerard klaver schrieb am Montag, 28. Juli 2003 17:54: Hi Gerald, > Some idees about different user needs: > > The average user only wants a button to select enable/disable use of > the default profile and the default settings belonging to the > profile. After that the user can use for example Gimp to check/change > the scan. > > Default profile generated by the manufacturer or backend > maintainer(or any body else who supplied a profile file with a > settings file). > > The more demanding user wants to select between different profiles > depending on his scanning object. > > The advanced user wants to add his own profiles to the backend and > use them when he wants and takes the effort to get a reference target > and use it. In general I agree, but also the average user should have the possibility to aquire a profile siince the lamp could age and it is more convenient to aquire a profile yourself. Also some scanner manufactureres do not deliver references to save costs. Additionally each scanner differs from the other, even within one model batch. cu Stefan From soumarmt at nerim.net Mon Jul 28 18:16:14 2003 From: soumarmt at nerim.net (Thomas Soumarmon) Date: Mon, 28 Jul 2003 19:16:14 +0200 Subject: backend status: (was Re:[sane-devel] Current TODO list) In-Reply-To: <20030728150526.GC11798@meier-geinitz.de> References: <20030725083235.GI1262@meier-geinitz.de> <200307280927.31538.soumarmt@nerim.net> <20030728150526.GC11798@meier-geinitz.de> Message-ID: <200307281916.14624.soumarmt@nerim.net> Hi, Thank you Henning for your explanation. I thought it could be due to a platform specific weird initialization. in the hp5400.desc file, when I set the backend status to beta, the make gives me the following warning : [sane-desc] Warning: DEPRECATED backend status `beta': setting status of backend `hp5400' to `good' So i set it to good and then it says to me : [sane-desc] ERROR: unknown status of backend `hp5400': `:good' Bye, Thomas. From matthew at mattshouse.com Mon Jul 28 19:16:05 2003 From: matthew at mattshouse.com (Matthew) Date: Mon, 28 Jul 2003 13:16:05 -0500 Subject: [sane-devel] UMAX Astra 2200 USB weirdness (Repost) Message-ID: <3F256865.3030100@mattshouse.com> This is an extension of the thread from 17 Jun 2003 regarding the problems with the UMAX Astra 2200 series scanner connected via USB. This is a repost due to my inability to send from the correct e-mail address. :-) http://www.mostang.com/pipermail/sane-devel/2003-June/019106.html I'm having the same problem, as described below: From xsane I can "Preview" an image, but when I try to "Scan" an image the interface locks up and I start to see the following in the syslog: Jul 28 10:39:45 scan4 kernel: usb_control/bulk_msg: timeout Jul 28 10:40:25 scan4 last message repeated 2 times Jul 28 10:41:25 scan4 last message repeated 3 times Followed later by: Jul 28 10:48:43 scan4 kernel: scanner.c: read_scanner(0): excessive NAK's received I then have to unload usb-ohci.o and scanner.o before trying again. incidently, xscanimage locks up immediately. I've tried several combinations of kernel/sane. Redhat kernel 2.4.20 Stock Linus kernel 2.4.21 Stock Linus 2.4.21 + 2.4.22-pre6 Stock Redhat sane 1.0.9-5 Rawhide sane 1.0.12-4 sane cvs snapshot from Jul 27th (after thouroughly removing the prev vers). All of the combos above yield the same result. The scanner that I'm using is described as such from `lsusb`: idVendor 0x1606 Umax [hex] idProduct 0x0230 Astra 2200/2200SU Like I said, the "Preview" works but the "Scan" does not. It doesn't matter whether or not I've already done a "Preview". If you need further information, or need access to the machine just let me know. In any case it seems that others are having the same problem so the Supported Scanner matrix should probably be updated to show something other than "stable" since I used that to guide my purchase. Let me know if I can be of further assistance. Matthew From henning at meier-geinitz.de Mon Jul 28 19:33:28 2003 From: henning at meier-geinitz.de (Henning Meier-Geinitz) Date: Mon, 28 Jul 2003 20:33:28 +0200 Subject: backend status: (was Re:[sane-devel] Current TODO list) In-Reply-To: <200307281916.14624.soumarmt@nerim.net> References: <20030725083235.GI1262@meier-geinitz.de> <200307280927.31538.soumarmt@nerim.net> <20030728150526.GC11798@meier-geinitz.de> <200307281916.14624.soumarmt@nerim.net> Message-ID: <20030728183328.GI11798@meier-geinitz.de> Hi, On Mon, Jul 28, 2003 at 07:16:14PM +0200, Thomas Soumarmon wrote: > in the hp5400.desc file, when I set the backend status to beta, the make gives > me the following warning : > [sane-desc] Warning: DEPRECATED backend status `beta': setting status of > backend `hp5400' to `good' > > So i set it to good and then it says to me : > [sane-desc] ERROR: unknown status of backend `hp5400': `:good' That's simple: there is no backend status anymore, only per-scanner statuses (stati? statii? whatever). So just remove that one. If you really want to mention that your backend is beta, you can use tha backend's comment header. Bye, Henning From oliver.rauch at rauch-domain.de Mon Jul 28 19:56:09 2003 From: oliver.rauch at rauch-domain.de (Oliver Rauch) Date: Mon, 28 Jul 2003 20:56:09 +0200 Subject: [sane-devel] UMAX Astra 2200 USB weirdness (Repost) In-Reply-To: <3F256865.3030100@mattshouse.com> References: <3F256865.3030100@mattshouse.com> Message-ID: <200307282056.09611.oliver.rauch@rauch-domain.de> Disable qualtiy calibration Oliver On Monday 28 July 2003 20:16, Matthew wrote: > This is an extension of the thread from 17 Jun 2003 regarding the > problems with the UMAX Astra 2200 series scanner connected via USB. > This is a repost due to my inability to send from the correct e-mail > address. :-) > > http://www.mostang.com/pipermail/sane-devel/2003-June/019106.html > > I'm having the same problem, as described below: > > From xsane I can "Preview" an image, but when I try to "Scan" an image > the interface locks up and I start to see the following in the syslog: > > Jul 28 10:39:45 scan4 kernel: usb_control/bulk_msg: timeout > Jul 28 10:40:25 scan4 last message repeated 2 times > Jul 28 10:41:25 scan4 last message repeated 3 times > > Followed later by: > > Jul 28 10:48:43 scan4 kernel: scanner.c: read_scanner(0): excessive > NAK's received > > I then have to unload usb-ohci.o and scanner.o before trying again. > incidently, xscanimage locks up immediately. > > I've tried several combinations of kernel/sane. > > Redhat kernel 2.4.20 > Stock Linus kernel 2.4.21 > Stock Linus 2.4.21 + 2.4.22-pre6 > > Stock Redhat sane 1.0.9-5 > Rawhide sane 1.0.12-4 > sane cvs snapshot from Jul 27th (after thouroughly removing the prev vers). > > All of the combos above yield the same result. > > The scanner that I'm using is described as such from `lsusb`: > idVendor 0x1606 Umax [hex] > idProduct 0x0230 Astra 2200/2200SU > > Like I said, the "Preview" works but the "Scan" does not. It doesn't > matter whether or not I've already done a "Preview". > > If you need further information, or need access to the machine just let > me know. In any case it seems that others are having the same problem > so the Supported Scanner matrix should probably be updated to show > something other than "stable" since I used that to guide my purchase. > > Let me know if I can be of further assistance. > > Matthew > > > _______________________________________________ > Sane-devel mailing list > Sane-devel at www.mostang.com > http://www.mostang.com/mailman/listinfo/sane-devel -- http://www.xsane.org http://www.mostang.com/sane http://www.rauch-domain.de mailto:Oliver.Rauch at Rauch-Domain.DE From henning at meier-geinitz.de Mon Jul 28 19:51:15 2003 From: henning at meier-geinitz.de (Henning Meier-Geinitz) Date: Mon, 28 Jul 2003 20:51:15 +0200 Subject: [sane-devel] UMAX Astra 2200 USB weirdness (Repost) In-Reply-To: <3F256865.3030100@mattshouse.com> References: <3F256865.3030100@mattshouse.com> Message-ID: <20030728185115.GJ11798@meier-geinitz.de> Hi, I've no idea about your specific problem but maybe some generic comments help: On Mon, Jul 28, 2003 at 01:16:05PM -0500, Matthew wrote: > From xsane I can "Preview" an image, but when I try to "Scan" an image > the interface locks up and I start to see the following in the syslog: > > Jul 28 10:39:45 scan4 kernel: usb_control/bulk_msg: timeout > Jul 28 10:40:25 scan4 last message repeated 2 times > Jul 28 10:41:25 scan4 last message repeated 3 times Do you have a VIA mainboard chipset? Is local APIC enabled? Is ACPI enabled? If yes, try disabling both in your kernel. > I've tried several combinations of kernel/sane. Try using libusb instead of the kernel scanner driver (see man sane-usb). If the problem still occurs I guess it's either a SANE or a hardware problem. Bye, Henning From matthew at mattshouse.com Mon Jul 28 21:01:01 2003 From: matthew at mattshouse.com (Matthew) Date: Mon, 28 Jul 2003 15:01:01 -0500 Subject: [sane-devel] UMAX Astra 2200 USB weirdness (Repost) In-Reply-To: <200307282056.09611.oliver.rauch@rauch-domain.de> References: <3F256865.3030100@mattshouse.com> <200307282056.09611.oliver.rauch@rauch-domain.de> Message-ID: <3F2580FD.5050607@mattshouse.com> For the record, this suggestion worked. I can now scan with the UMAX 2200SU Thanks a lot, Matthew Oliver Rauch wrote: >Disable qualtiy calibration > >Oliver > >On Monday 28 July 2003 20:16, Matthew wrote: > > >>This is an extension of the thread from 17 Jun 2003 regarding the >>problems with the UMAX Astra 2200 series scanner connected via USB. >>This is a repost due to my inability to send from the correct e-mail >>address. :-) >> >>http://www.mostang.com/pipermail/sane-devel/2003-June/019106.html >> >>I'm having the same problem, as described below: >> >> From xsane I can "Preview" an image, but when I try to "Scan" an image >>the interface locks up and I start to see the following in the syslog: >> >>Jul 28 10:39:45 scan4 kernel: usb_control/bulk_msg: timeout >>Jul 28 10:40:25 scan4 last message repeated 2 times >>Jul 28 10:41:25 scan4 last message repeated 3 times >> >>Followed later by: >> >>Jul 28 10:48:43 scan4 kernel: scanner.c: read_scanner(0): excessive >>NAK's received >> >>I then have to unload usb-ohci.o and scanner.o before trying again. >>incidently, xscanimage locks up immediately. >> >>I've tried several combinations of kernel/sane. >> >>Redhat kernel 2.4.20 >>Stock Linus kernel 2.4.21 >>Stock Linus 2.4.21 + 2.4.22-pre6 >> >>Stock Redhat sane 1.0.9-5 >>Rawhide sane 1.0.12-4 >>sane cvs snapshot from Jul 27th (after thouroughly removing the prev vers). >> >>All of the combos above yield the same result. >> >>The scanner that I'm using is described as such from `lsusb`: >>idVendor 0x1606 Umax [hex] >>idProduct 0x0230 Astra 2200/2200SU >> >>Like I said, the "Preview" works but the "Scan" does not. It doesn't >>matter whether or not I've already done a "Preview". >> >>If you need further information, or need access to the machine just let >>me know. In any case it seems that others are having the same problem >>so the Supported Scanner matrix should probably be updated to show >>something other than "stable" since I used that to guide my purchase. >> >>Let me know if I can be of further assistance. >> >>Matthew >> >> >>_______________________________________________ >>Sane-devel mailing list >>Sane-devel at www.mostang.com >>http://www.mostang.com/mailman/listinfo/sane-devel >> >> > > > From fzago at austin.rr.com Mon Jul 28 18:48:49 2003 From: fzago at austin.rr.com (Frank Zago) Date: Mon, 28 Jul 2003 12:48:49 -0500 Subject: [sane-devel] UMAX Astra 2200 USB weirdness (Repost) In-Reply-To: <200307282056.09611.oliver.rauch@rauch-domain.de> References: <3F256865.3030100@mattshouse.com> <200307282056.09611.oliver.rauch@rauch-domain.de> Message-ID: <3F256201.5090906@austin.rr.com> Oliver Rauch wrote: > Disable qualtiy calibration > > Oliver > Olivier, could the backend avoid using this command for the umax 2200, since the scanner does not support it (even in scsi)? I don't have access to that scanner anymore, so I cannot test. Frank. From davidm at mostang.com Tue Jul 29 03:41:59 2003 From: davidm at mostang.com (David Mosberger-Tang) Date: Mon, 28 Jul 2003 19:41:59 -0700 (PDT) Subject: [sane-devel] upcoming machine upgrade Message-ID: <20030729024159.EFA97F89@panda.mostang.com> A quick heads up: I plan on upgrading the SANE server from an Itanium (hp i2000) to an Itanium 2 (hp zx2000) machine. Depending on how things go, the switch-over may happen some time tonight. In theory, this should all be transparent apart from a couple of reboots. The reboots will cause brief downtimes for the SANE mailing list and web server, but hopefully nothing that lasts longer than a few minutes. Thanks for your understanding & patience, --david From soumarmt at nerim.net Tue Jul 29 06:36:33 2003 From: soumarmt at nerim.net (Thomas Soumarmon) Date: Tue, 29 Jul 2003 07:36:33 +0200 Subject: backend status: (was Re:[sane-devel] Current TODO list) In-Reply-To: <20030728183328.GI11798@meier-geinitz.de> References: <20030725083235.GI1262@meier-geinitz.de> <200307281916.14624.soumarmt@nerim.net> <20030728183328.GI11798@meier-geinitz.de> Message-ID: <200307290736.33865.soumarmt@nerim.net> Thank you Henning. The hp5400.desc should be compliant now. Have a nice day. Le Lundi 28 Juillet 2003 20:33, Henning Meier-Geinitz a ?crit : > Hi, > > On Mon, Jul 28, 2003 at 07:16:14PM +0200, Thomas Soumarmon wrote: > > in the hp5400.desc file, when I set the backend status to beta, the make > > gives me the following warning : > > [sane-desc] Warning: DEPRECATED backend status `beta': setting status of > > backend `hp5400' to `good' > > > > So i set it to good and then it says to me : > > [sane-desc] ERROR: unknown status of backend `hp5400': `:good' > > That's simple: there is no backend status anymore, only per-scanner > statuses (stati? statii? whatever). So just remove that one. > > If you really want to mention that your backend is beta, you can use > tha backend's comment header. > > Bye, > Henning > _______________________________________________ > Sane-devel mailing list > Sane-devel at www.mostang.com > http://www.mostang.com/mailman/listinfo/sane-devel From gerard at gkall.hobby.nl Tue Jul 29 13:44:59 2003 From: gerard at gkall.hobby.nl (gerard klaver) Date: 29 Jul 2003 12:44:59 +0000 Subject: [sane-devel] Which viewer to use with raw .png file and a .icc profile file In-Reply-To: <20030728142945.GA11798@meier-geinitz.de> References: <1059399850.1916.93.camel@gkall-lex> <20030728142945.GA11798@meier-geinitz.de> Message-ID: <1059482699.879.15.camel@gkall-lex> On Mon, 2003-07-28 at 14:29, Henning Meier-Geinitz wrote: > Hi, > > On Mon, Jul 28, 2003 at 01:44:10PM +0000, gerard klaver wrote: > > I have scanned a raw .png file and made a .icc profile with a reference > > target (wine, lprof program). > > > > The question is what can i do to or which viewer to use to correct the > > png file with the .icc file? > > > > No luck yet with gimp1.3 or imagemagic (display) > > I haven't tested that but "man covert" says: > > -profile > add ICM, IPTC, or generic profile to image > > Is .icc == ICM? But maybe it only adds the profile to e.g. a TIFF image. > > Bye, > Henning The following line did the trick (program imagemagick): convert -profile scanner.icc -profile monitor.icc display The view is much better, thanks :-) -- ---------- m.vr.gr. Gerard Klaver From khk at khk.net Tue Jul 29 12:35:24 2003 From: khk at khk.net (khk at khk.net) Date: Tue, 29 Jul 2003 07:35:24 -0400 (EDT) Subject: [Fwd: Re: [sane-devel] Which viewer to use with raw .png file and a .iccprofile file] Message-ID: <12636.198.176.225.6.1059478524.squirrel@home.khk.net> Hit the wrong button... This message should have been CC'ed to sane-devel: ---------------------------- Original Message ---------------------------- Subject: Re: [sane-devel] Which viewer to use with raw .png file and a .iccprofile file From: khk at khk.net Date: Tue, July 29, 2003 7:34 am To: gerard at gkall.hobby.nl -------------------------------------------------------------------------- You always need two profiles when you want to convert from one color space to a different color space: A transformation based on an ICC profile (BTW: ICM is the extension that Microsoft uses for ICC profiles) always transforms from a real color space to the so called connection space (either CIELAB or XYZ) or vice versa. So with just the scanner profile, you can only get from RGB to e.g. Lab, but not to the RGB values your monitor needs. So you need a second profile to get from Lab to your monitor color space - this is what you've done by providing two profiles on the convert command line. Once you used convert with the two profile, you should be able to use any image viewer, and not just display. > On Mon, 2003-07-28 at 14:29, Henning Meier-Geinitz wrote: >> Hi, >> >> On Mon, Jul 28, 2003 at 01:44:10PM +0000, gerard klaver wrote: >> > I have scanned a raw .png file and made a .icc profile with a >> reference >> > target (wine, lprof program). >> > >> > The question is what can i do to or which viewer to use to correct the png file with the .icc file? >> > >> > No luck yet with gimp1.3 or imagemagic (display) >> >> I haven't tested that but "man covert" says: >> >> -profile >> add ICM, IPTC, or generic profile to image >> >> Is .icc == ICM? But maybe it only adds the profile to e.g. a TIFF image. >> >> Bye, >> Henning > > The following line did the trick (program imagemagick): > > convert -profile scanner.icc -profile monitor.icc > > display > > The view is much better, thanks :-) > > > -- > ---------- > m.vr.gr. > Gerard Klaver > > _______________________________________________ > Sane-devel mailing list > Sane-devel at www.mostang.com > http://www.mostang.com/mailman/listinfo/sane-devel > From matthew at mattshouse.com Tue Jul 29 15:44:15 2003 From: matthew at mattshouse.com (Matthew) Date: Tue, 29 Jul 2003 09:44:15 -0500 Subject: [sane-devel] Scanner panel buttons In-Reply-To: <3F256201.5090906@austin.rr.com> References: <3F256865.3030100@mattshouse.com> <200307282056.09611.oliver.rauch@rauch-domain.de> <3F256201.5090906@austin.rr.com> Message-ID: <3F26883F.70402@mattshouse.com> Is there some documentation regarding the use of the "Scan" and other buttons on the various scanners? I assume that a standard is not in place so it would be a scanner-specific hack but I'm interested in getting the buttons to work. I took a long look at the scanner kernel module and I see that there is basically no interface built. There's a front panel buffer allocated but it's never used except as a placeholder. So maybe a little info about what the scanner does when a button is pressed before I start sniffing the USB communication? Matthew From gerard at gkall.hobby.nl Tue Jul 29 18:36:02 2003 From: gerard at gkall.hobby.nl (gerard klaver) Date: 29 Jul 2003 17:36:02 +0000 Subject: [sane-devel] Scanner panel buttons In-Reply-To: <3F26883F.70402@mattshouse.com> References: <3F256865.3030100@mattshouse.com> <200307282056.09611.oliver.rauch@rauch-domain.de> <3F256201.5090906@austin.rr.com> <3F26883F.70402@mattshouse.com> Message-ID: <1059500161.877.31.camel@gkall-lex> On Tue, 2003-07-29 at 14:44, Matthew wrote: > Is there some documentation regarding the use of the "Scan" and other > buttons on the various scanners? I assume that a standard is not in > place so it would be a scanner-specific hack but I'm interested in > getting the buttons to work. I took a long look at the scanner kernel > module and I see that there is basically no interface built. There's a > front panel buffer allocated but it's never used except as a > placeholder. So maybe a little info about what the scanner does when a > button is pressed before I start sniffing the USB communication? > > Matthew > No expert, but user of the epson backend, if you check the epson backend source a button function is present. When using xsane -> view -> advanced options there is a "wait for button" when enabled you have to press a button on the scanner. For me (epson 1660 photo has four buttons) i push on the "start" button or the "scan to email" the scanner starts. -- ---------- m.vr.gr. Gerard Klaver From henning at meier-geinitz.de Tue Jul 29 16:28:52 2003 From: henning at meier-geinitz.de (Henning Meier-Geinitz) Date: Tue, 29 Jul 2003 17:28:52 +0200 Subject: [sane-devel] Scanner panel buttons In-Reply-To: <3F26883F.70402@mattshouse.com> References: <3F256865.3030100@mattshouse.com> <200307282056.09611.oliver.rauch@rauch-domain.de> <3F256201.5090906@austin.rr.com> <3F26883F.70402@mattshouse.com> Message-ID: <20030729152852.GH488@meier-geinitz.de> Hi, On Tue, Jul 29, 2003 at 09:44:15AM -0500, Matthew wrote: > Is there some documentation regarding the use of the "Scan" and other > buttons on the various scanners? There was some discussion on how to implement that in version 2 of the SANE standard. But I think that's not the information you need. > I assume that a standard is not in > place so it would be a scanner-specific hack but I'm interested in > getting the buttons to work. I took a long look at the scanner kernel > module and I see that there is basically no interface built. There's a > front panel buffer allocated but it's never used except as a > placeholder. So maybe a little info about what the scanner does when a > button is pressed before I start sniffing the USB communication? Well, there are two issues: How to get that information from the scanner and what to do with that information. The scanner kernel module is not involved here. I think the original maintainer thought about the possible usage of interrupt URBs and therefore button events came to mind. The way how to get the information about a button event is completely scanner-dependent. So you need to do that in the backend or a special stand-alone program. Which scanner are you talking about? For some scanners you must just read one register of the scanner's chip. Others really seem to use interrupt URBs. In the latter case, that may or may not work with libusb. When you do some sniffing, check what happens when you don't scan but the "wait for button" program is running. If there is steady traffic (bulk or control messages), that's probably the reading of the button-related registers. If the messages only flow when you press a button, I guess interrupt URBs are used. Bye, Henning From anoah at pfeiffer.edu Tue Jul 29 17:03:15 2003 From: anoah at pfeiffer.edu (m. allan noah) Date: Tue, 29 Jul 2003 12:03:15 -0400 (EDT) Subject: [sane-devel] Scanner panel buttons In-Reply-To: <3F26883F.70402@mattshouse.com> Message-ID: depends heavily on the scanner model and backend software design. some scanners use a usb interrupt pipe to have the host check for button presses periodically, sending a proprietary data packet at each request, which would need to be reverse engineered. other scanners use scsi commands over bulk usb pipe, so you have to determine the appropriate scsi command and send this to the scanner periodically, and interpret the return data in the backend. this would require adding a new sane_* function call to the sane spec, so that the frontend could ask the backend periodically, or the backend could set an option descriptor to run the button check, and the frontend could flip that option back and forth every couple seconds. the backend could set its results from looking at the buttons in some other option. this is how i am patching the fujitsu backend to work. allan On Tue, 29 Jul 2003, Matthew wrote: > > Is there some documentation regarding the use of the "Scan" and other > buttons on the various scanners? I assume that a standard is not in > place so it would be a scanner-specific hack but I'm interested in > getting the buttons to work. I took a long look at the scanner kernel > module and I see that there is basically no interface built. There's a > front panel buffer allocated but it's never used except as a > placeholder. So maybe a little info about what the scanner does when a > button is pressed before I start sniffing the USB communication? > > Matthew > > > _______________________________________________ > Sane-devel mailing list > Sane-devel at www.mostang.com > http://www.mostang.com/mailman/listinfo/sane-devel > -- "so don't tell us it can't be done, putting down what you don't know. money isn't our god, integrity will free our souls" - Max Cavalera From oliver.rauch at rauch-domain.de Tue Jul 29 18:02:08 2003 From: oliver.rauch at rauch-domain.de (Oliver Rauch) Date: Tue, 29 Jul 2003 19:02:08 +0200 Subject: [sane-devel] UMAX Astra 2200 USB weirdness (Repost) In-Reply-To: <3F256201.5090906@austin.rr.com> References: <3F256865.3030100@mattshouse.com> <200307282056.09611.oliver.rauch@rauch-domain.de> <3F256201.5090906@austin.rr.com> Message-ID: <200307291902.08699.oliver.rauch@rauch-domain.de> Hello Frank, the scanner does support it when connected via scsi. At least when the setup is correct. I am not sure if it really does not work on USB. May be it is a problem of buffer sizes. I don`t want to disable it by default for the scanner when there is an other way. Oliver On Monday 28 July 2003 19:48, Frank Zago wrote: > Oliver Rauch wrote: > > Disable qualtiy calibration > > > > Oliver > > Olivier, could the backend avoid using this command for the umax 2200, > since the scanner does not support it (even in scsi)? I don't have access > to that scanner anymore, so I cannot test. > > Frank. -- http://www.xsane.org http://www.mostang.com/sane http://www.rauch-domain.de mailto:Oliver.Rauch at Rauch-Domain.DE From klaus.dahlke at gmx.de Tue Jul 29 21:32:06 2003 From: klaus.dahlke at gmx.de (Klaus Dahlke) Date: Tue, 29 Jul 2003 22:32:06 +0200 Subject: [sane-devel] UMAX Astra 2200 USB weirdness (Repost) In-Reply-To: <20030728185115.GJ11798@meier-geinitz.de> References: <3F256865.3030100@mattshouse.com> <20030728185115.GJ11798@meier-geinitz.de> Message-ID: <20030729223206.0a020156.klaus.dahlke@gmx.de> On Mon, 28 Jul 2003 20:51:15 +0200 Henning Meier-Geinitz wrote: > Hi, > > I've no idea about your specific problem but maybe some generic > comments help: > > On Mon, Jul 28, 2003 at 01:16:05PM -0500, Matthew wrote: > > From xsane I can "Preview" an image, but when I try to "Scan" an image > > the interface locks up and I start to see the following in the syslog: > > > > Jul 28 10:39:45 scan4 kernel: usb_control/bulk_msg: timeout > > Jul 28 10:40:25 scan4 last message repeated 2 times > > Jul 28 10:41:25 scan4 last message repeated 3 times > > Do you have a VIA mainboard chipset? > > Is local APIC enabled? Is ACPI enabled? If yes, try disabling both in > your kernel. > > > I've tried several combinations of kernel/sane. > > Try using libusb instead of the kernel scanner driver (see man > sane-usb). If the problem still occurs I guess it's either a SANE or a > hardware problem. > > Bye, > Henning > _______________________________________________ Hi all, I have reported problems with Umax Astra 2200SU connected by USB before: when doing resizing after preview, scanning stops after about 95% of the scan. Today, I compiled sane-backends-1.0.12 with libusb-0.1.7. After starting the scanner, I did a 'rmmod scanner' to delete the kernel driver, started xsane and did about 12 scans with resizing/rearranging the scanning area: no stop, no freeze, works perfect. So, in addition to switch-off 'quality calibration' for usb connection, it is also important to use libusb instead of the kernel driver (kernel 2-4-19). Cheers, Klaus From psfales at lucent.com Wed Jul 30 02:36:37 2003 From: psfales at lucent.com (Peter Fales) Date: Tue, 29 Jul 2003 20:36:37 -0500 Subject: [sane-devel] Scanner panel buttons In-Reply-To: <3F26883F.70402@mattshouse.com> References: <3F256865.3030100@mattshouse.com> <200307282056.09611.oliver.rauch@rauch-domain.de> <3F256201.5090906@austin.rr.com> <3F26883F.70402@mattshouse.com> Message-ID: <20030730013637.GA21544@lucent.com> On Tue, Jul 29, 2003 at 09:44:15AM -0500, Matthew wrote: > Is there some documentation regarding the use of the "Scan" and other > buttons on the various scanners? I assume that a standard is not in > place so it would be a scanner-specific hack but I'm interested in > getting the buttons to work. Take a look at http://www.remote.org/frederik/projects/software/sane/ It's a program that "watches" for the scanner buttons to be pressed and launches a user defined program (e.g. scanimage or scanadf) when that happens. This particular program is specific to Fujitsu scanners and uses the SCSI "sense" command to poll the scanner and detect when the button is pressed. I wanted to do something similar with my Microtek PageWiz which can detect when a sheet of paper is in the feeder. I wanted it watch for that and automatically start scanning, so I used sensed as a starting point for my own utility which periodically polls the scanner using the SCSI "inquiry" command. -- Peter Fales From tomf at sjpc.org Wed Jul 30 07:04:38 2003 From: tomf at sjpc.org (Thomas Frayne) Date: 29 Jul 2003 23:04:38 -0700 Subject: [sane-devel] HP 7450C ... Need new patch In-Reply-To: <20030727.220513.229750962.rene.rebe@gmx.net> References: <1058064729.3167.147.camel@localhost.localdomain> <20030714.153143.846936143.rene.rebe@gmx.net> <1059194970.3238.2.camel@localhost.localdomain> <20030727.220513.229750962.rene.rebe@gmx.net> Message-ID: <1059545077.4055.77.camel@localhost.localdomain> On Sun, 2003-07-27 at 13:05, Rene Rebe wrote: > On: 25 Jul 2003 21:49:30 -0700, > Thomas Frayne wrote: > > > Any progress on the new backend? > > Yes - today I foud the first free minutes ... I merged the ADF > handling posted here two weeks ago, too. > > Coud you try the current version at: > > http://schillernet.dyndns.org/svn/sane-avision/ > > To get a tiny how-to use this Subversion repository see: > > http://schillernet.dyndns.org/svn/ > > but you could also just download the two files you see in the backend > dir with any browser ... > > Btw: the ROCK Linux homage sites are in a flux - and my new person dir > at: > > http://www.rocklinux.net/people/rene > ^^^- was org before ... but there a no new files > yet > I downloaded the two files, did configure and make, ran xsane with ADF setting, and clicked SCAN. The scanner hung initializing as it did before I changed configuration files to get it to produce a black page. After several minutes xsane produced an error message, and Jul 29 22:31:27 localhost modprobe: modprobe: Can't locate module char-major-81 Jul 29 22:31:27 localhost last message repeated 3 times Jul 29 22:35:41 localhost kernel: scsi: device set offline - command error recover failed: host 1 channel 0 id 0 lun 0 appeared in /var/log/messages. I did a Redhat kernel upgrade since I last had the scanner (sort of) working, so I might have destroyed some configuration data. I am appending more of the log in case it might help. If you can't spot what might be wrong from this much info, please let me know what other data is needed. Thanks. Tom Frayne --------------------------------------------------------------- Jul 29 16:53:52 localhost kernel: usb.c: USB device 2 (vend/prod 0x3f0/0x801) is not claimed by any active driver. Jul 29 16:53:52 localhost kernel: hpusbscsi.c: [hpusbscsi_init:250] driver loaded, DebugLvel=0 Jul 29 16:53:52 localhost kernel: usb.c: registered new driver hpusbscsi Jul 29 16:53:52 localhost kernel: scsi1 : hpusbscsi Jul 29 16:53:52 localhost kernel: hub.c: new USB device 00:0b.2-1.2, assigned address 3 Jul 29 16:53:52 localhost kernel: usb.c: USB device 3 (vend/prod 0x2821/0x5001) is not claimed by any active driver. Jul 29 16:53:52 localhost kernel: EXT2-fs warning: maximal mount count reached, running e2fsck is recommended Jul 29 16:53:52 localhost kernel: hub.c: new USB device 00:0b.2-1.4, assigned address 4 Jul 29 16:53:52 localhost kernel: usb.c: USB device 4 (vend/prod 0x3f0/0x3404) is not claimed by any active driver. Jul 29 16:53:52 localhost kernel: hdc: attached ide-scsi driver. Jul 29 16:53:52 localhost kernel: scsi2 : SCSI host adapter emulation for IDE ATAPI devices Jul 29 16:53:52 localhost kernel: Vendor: HP Model: CD-Writer+ 8100 Rev: 1.0g Jul 29 16:53:52 localhost kernel: Type: CD-ROM ANSI SCSI revision: 02 Jul 29 16:53:52 localhost kernel: resize_dma_pool: unknown device type -1 Jul 29 16:53:52 localhost kernel: Vendor: hp Model: scanjet 7400c Rev: 0.8M Jul 29 16:53:52 localhost kernel: Type: Scanner ANSI SCSI revision: 02 Jul 29 16:53:52 localhost kernel: Initializing USB Mass Storage driver... Jul 29 16:53:52 localhost kernel: usb.c: registered new driver usb-storage Jul 29 16:53:52 localhost kernel: scsi3 : SCSI emulation for USB Mass Storage devices Jul 29 16:53:52 localhost kernel: Vendor: ASUS Model: CRW-5224A Rev: 1.00 Jul 29 16:53:52 localhost kernel: Type: CD-ROM ANSI SCSI revision: 02 Jul 29 16:53:52 localhost kernel: USB Mass Storage support registered. Jul 29 16:53:53 localhost kernel: Attached scsi CD-ROM sr0 at scsi0, channel 0, id 4, lun 0 Jul 29 16:53:53 localhost kernel: Attached scsi CD-ROM sr1 at scsi2, channel 0, id 0, lun 0 Jul 29 16:53:53 localhost kernel: Attached scsi CD-ROM sr2 at scsi3, channel 0, id 0, lun 0 Jul 29 16:53:53 localhost kernel: (scsi0:A:4): 10.000MB/s transfers (10.000MHz, offset 32) Jul 29 16:53:53 localhost kernel: sr0: scsi3-mmc drive: 0x/0x dvd-ram cd/rw xa/form2 cdda tray Jul 29 16:53:53 localhost kernel: Uniform CD-ROM driver Revision: 3.12 Jul 29 16:53:53 localhost kernel: sr1: scsi3-mmc drive: 24x/24x writer cd/rw xa/form2 cdda tray Jul 29 16:53:53 localhost kernel: usb.c: registered new driver usblp Jul 29 16:53:53 localhost kernel: printer.c: usblp0: USB Bidirectional printer dev 4 if 0 alt 0 proto 2 vid 0x03F0 pid 0x3404 Jul 29 16:53:53 localhost kernel: printer.c: v0.11: USB Printer Device Class driver Jul 29 16:53:53 localhost kernel: sr2: scsi-1 drive Jul 29 16:53:53 localhost kernel: Attached scsi generic sg5 at scsi1, channel 0, id 0, lun 0, type 6 Jul 29 16:53:53 localhost kernel: parport0: PC-style at 0x378 [PCSPP,TRISTATE] Jul 29 16:53:53 localhost kernel: ip_tables: (C) 2000-2002 Netfilter core team Jul 29 16:53:53 localhost kernel: ip_conntrack version 2.1 (6143 buckets, 49144 max) - 292 bytes per conntrack Jul 29 16:53:53 localhost kernel: Linux Tulip driver version 0.9.15-pre12 (Aug 9, 2002) Jul 29 16:53:53 localhost kernel: PCI: Found IRQ 11 for device 00:0c.0 Jul 29 16:53:53 localhost kernel: eth0: ADMtek Comet rev 17 at 0xf09a3000, 00:C0:49:B4:25:D7, IRQ 11. Jul 29 16:53:53 localhost sshd: succeeded Jul 29 16:53:55 localhost xinetd[2719]: xinetd Version 2.3.11 started with libwrap loadavg options compiled in. Jul 29 16:53:55 localhost xinetd[2719]: Started working: 1 available service Jul 29 16:53:57 localhost xinetd: xinetd startup succeeded Jul 29 16:53:59 localhost ntpd: succeeded Jul 29 16:53:59 localhost ntpd: succeeded Jul 29 16:54:05 localhost ntpdate[2734]: step time server 66.187.233.4 offset -0.495394 sec Jul 29 16:54:05 localhost ntpd: succeeded Jul 29 16:54:05 localhost ntpd: ntpd startup succeeded Jul 29 16:54:05 localhost ntpd[2738]: ntpd 4.1.1c-rc1 at 1.836 Thu Feb 13 12:17:19 EST 2003 (1) Jul 29 16:54:05 localhost exportfs[2747]: No 'sync' or 'async' option specified for export "FrayneLaptop:/usr/local". Assuming default behaviour ('sync'). NOTE: this default has changed from previous versions Jul 29 16:54:05 localhost exportfs: exportfs: No 'sync' or 'async' option specified for export "FrayneLaptop:/usr/local". Jul 29 16:54:05 localhost exportfs: Assuming default behaviour ('sync'). Jul 29 16:54:05 localhost exportfs: NOTE: this default has changed from previous versions Jul 29 16:54:05 localhost exportfs[2747]: No 'sync' or 'async' option specified for export "FrayneLaptop:/usr/local/tom/mydata". Assuming default behaviour ('sync'). NOTE: this default has changed from previous versions Jul 29 16:54:05 localhost exportfs: exportfs: No 'sync' or 'async' option specified for export "FrayneLaptop:/usr/local/tom/mydata". Jul 29 16:54:05 localhost exportfs: Assuming default behaviour ('sync'). Jul 29 16:54:05 localhost exportfs: NOTE: this default has changed from previous versions Jul 29 16:54:05 localhost ntpd[2738]: precision = 15 usec Jul 29 16:54:05 localhost ntpd[2738]: kernel time discipline status 0040 Jul 29 16:54:05 localhost ntpd[2738]: frequency initialized -50.198 from /etc/ntp/drift Jul 29 16:54:05 localhost kernel: Installing knfsd (copyright (C) 1996 okir at monad.swb.de). Jul 29 16:54:05 localhost nfs: Starting NFS services: succeeded Jul 29 16:54:05 localhost nfs: rpc.rquotad startup succeeded Jul 29 16:54:05 localhost nfs: rpc.nfsd startup succeeded Jul 29 16:54:05 localhost nfs: rpc.mountd startup succeeded Jul 29 16:54:06 localhost Win4Lin: Starting Win4Lin: Jul 29 16:54:10 localhost kernel: win4lin: mki_version 5, num_cpus 1, pae 0 Jul 29 16:54:10 localhost kernel: win4Lin: preempt_enable 0x00000000 Jul 29 16:54:10 localhost Win4Lin: succeeded Jul 29 16:54:10 localhost Win4Lin: ^[[60G Jul 29 16:54:11 localhost Win4Lin: Jul 29 16:54:11 localhost rc: Starting Win4Lin: succeeded Jul 29 16:54:11 localhost sendmail: sendmail startup succeeded Jul 29 16:54:11 localhost sendmail: sm-client startup succeeded Jul 29 16:54:12 localhost gpm: gpm startup succeeded Jul 29 16:54:12 localhost rc: Starting edge: succeeded Jul 29 16:54:13 localhost canna: succeeded Jul 29 16:54:13 localhost crond: crond startup succeeded Jul 29 16:54:15 localhost kernel: parport0: PC-style at 0x378 [PCSPP,TRISTATE] Jul 29 16:54:15 localhost kernel: lp0: using parport0 (polling). Jul 29 16:54:15 localhost kernel: lp0: console ready Jul 29 16:54:15 localhost modprobe: modprobe: Can't locate module char-major-188 Jul 29 16:54:15 localhost last message repeated 15 times Jul 29 16:54:16 localhost cups: cupsd startup succeeded Jul 29 16:54:16 localhost xfs: xfs startup succeeded Jul 29 16:54:16 localhost anacron: anacron startup succeeded Jul 29 16:54:16 localhost atd: atd startup succeeded Jul 29 16:54:17 localhost rhnsd: rhnsd startup succeeded Jul 29 16:54:17 localhost rhnsd[3612]: Red Hat Network Services Daemon starting up. Jul 29 16:54:17 localhost xfs: ignoring font path element /usr/X11R6/lib/X11/fonts/cyrillic (unreadable) Jul 29 16:57:26 localhost ntpd[2738]: kernel time discipline status change 41 Jul 29 16:59:34 localhost ntpd[2738]: kernel time discipline status change 1 Jul 29 17:35:53 localhost gdm(pam_unix)[3667]: session opened for user tom by (uid=0) Jul 29 17:35:54 localhost gdm[3667]: gdm_auth_user_add: /home/tom is writable by group. Jul 29 17:35:55 localhost gconfd (tom-3992): starting (version 2.2.0), pid 3992 user 'tom' Jul 29 17:35:55 localhost gconfd (tom-3992): Resolved address "xml:readonly:/etc/gconf/gconf.xml.mandatory" to a read-only config source at position 0 Jul 29 17:35:55 localhost gconfd (tom-3992): Resolved address "xml:readwrite:/home/tom/.gconf" to a writable config source at position 1 Jul 29 17:35:55 localhost gconfd (tom-3992): Resolved address "xml:readonly:/etc/gconf/gconf.xml.defaults" to a read-only config source at position 2 Jul 29 17:36:15 localhost kernel: Creative EMU10K1 PCI Audio Driver, version 0.20, 17:28:21 Jul 15 2003 Jul 29 17:36:15 localhost kernel: PCI: Found IRQ 10 for device 00:0d.0 Jul 29 17:36:15 localhost kernel: PCI: Sharing IRQ 10 with 00:07.2 Jul 29 17:36:15 localhost kernel: PCI: Sharing IRQ 10 with 00:0b.2 Jul 29 17:36:15 localhost kernel: emu10k1: EMU10K1 rev 8 model 0x8027 found, IO at 0x9c00-0x9c1f, IRQ 10 Jul 29 17:36:15 localhost kernel: ac97_codec: AC97 codec, id: TRA35 (TriTech TR A5) Jul 29 17:36:15 localhost modprobe: modprobe: Can't locate module sound-service-0-3 Jul 29 17:37:31 localhost su(pam_unix)[4133]: session opened for user root by tom(uid=500) Jul 29 17:37:38 localhost gconfd (root-4179): starting (version 2.2.0), pid 4179 user 'root' Jul 29 17:37:38 localhost gconfd (root-4179): Resolved address "xml:readonly:/etc/gconf/gconf.xml.mandatory" to a read-only config source at position 0 Jul 29 17:37:38 localhost gconfd (root-4179): Resolved address "xml:readwrite:/root/.gconf" to a writable config source at position 1 Jul 29 17:37:38 localhost gconfd (root-4179): Resolved address "xml:readonly:/etc/gconf/gconf.xml.defaults" to a read-only config source at position 2 Jul 29 22:31:27 localhost modprobe: modprobe: Can't locate module char-major-81 Jul 29 22:31:27 localhost last message repeated 3 times Jul 29 22:35:41 localhost kernel: scsi: device set offline - command error recover failed: host 1 channel 0 id 0 lun 0 From gerard at gkall.hobby.nl Wed Jul 30 15:24:05 2003 From: gerard at gkall.hobby.nl (gerard klaver) Date: 30 Jul 2003 14:24:05 +0000 Subject: [sane-devel] xscanimage, no file extention check? Message-ID: <1059575044.877.29.camel@gkall-lex> To make it more "foolproof" it would be nice/good to have in the menu of xscanimage a check if the file extension which can be saved exists or a choice which file extension can be used (like xsane) At this moment you can save each file extension you want or make a type error. -- ---------- m.vr.gr. Gerard Klaver From jollyprince at juno.com Thu Jul 31 05:41:47 2003 From: jollyprince at juno.com (Roger O Wales) Date: Wed, 30 Jul 2003 23:41:47 -0500 Subject: [sane-devel] Page size on Xsane Message-ID: <20030730.234147.1756.2.jollyprince@juno.com> I have retired my Visioneer 5800 to the scrap heap. Question: Now that I have an Epson 1260 with a recognizable backend, how can I set the scanner size to 8" x 10"? Right now, I have a 4" x 2" and I saw no size configuration options in the front ends that I saw. HELP! ________________________________________________________________ The best thing to hit the internet in years - Juno SpeedBand! Surf the web up to FIVE TIMES FASTER! Only $14.95/ month - visit www.juno.com to sign up today! From peter at dimtech.com.au Thu Jul 31 07:36:21 2003 From: peter at dimtech.com.au (Peter Hartshorn) Date: Thu, 31 Jul 2003 16:36:21 +1000 Subject: [sane-devel] Fujitsu fi-4220C problems Message-ID: <20030731063621.GA26402@helios.microsux.com> Hello all, I have revieved a Fujitsu fi-4220C scanner and I am having problems scanning. I can sucessfully scan several pages with scanimage but sometimes (quite often) I receive the following error usb_control/bulk_msg: timeout after about a minute the scan will continue as normal. I have tried with standard RedHat 8.1 and 9 using sane-backends 1.0.12 I have also tried using libusb which gives me the error: usb_control/bulk_msg: timeout usbdevfs: USBDEVFS_BULK failed dev 2 ep 0x81 len 13 ret -110 ^^ || (some times 13 is 96) Any help would be greatly appreciated. I have also tried scanning with a gt68xx scanner (Mustek 1200 UB plus) with no errors. So this leads me to think that it is in fact a bug in the fujitsu driver for sane. From olaf at zen.epkowa.co.jp Thu Jul 31 09:02:22 2003 From: olaf at zen.epkowa.co.jp (Olaf Meeuwissen) Date: Thu, 31 Jul 2003 17:02:22 +0900 Subject: [sane-devel] Page size on Xsane In-Reply-To: <20030730.234147.1756.2.jollyprince@juno.com> References: <20030730.234147.1756.2.jollyprince@juno.com> Message-ID: <20030731080222.GA11421@zen.epkowa.co.jp> On Wed, Jul 30, 2003 at 11:41:47PM -0500, Roger O Wales wrote: > I have retired my Visioneer 5800 to the scrap heap. > > Question: Now that I have an Epson 1260 with a recognizable backend, how > can I set the scanner size to 8" x 10"? Right now, I have a 4" x 2" and > I saw no size configuration options in the front ends that I saw. HELP! You could try "Image Scan! for Linux!" available from http://www.epkowa.co.jp/english/linux/_e/lsd_e.html It comes with its own backend and supports the EPSON Perfection 1260 and Perfection 1260 Photo. -- Olaf Meeuwissen EPSON KOWA Corporation, ECS GnuPG key: 6BE37D90/AB6B 0D1F 99E7 1BF5 EB97 976A 16C7 F27D 6BE3 7D90 Penguin's lib! -- I hack, therefore I am -- LPIC-2 From henning at meier-geinitz.de Thu Jul 31 09:36:40 2003 From: henning at meier-geinitz.de (Henning Meier-Geinitz) Date: Thu, 31 Jul 2003 10:36:40 +0200 Subject: [sane-devel] Page size on Xsane In-Reply-To: <20030730.234147.1756.2.jollyprince@juno.com> References: <20030730.234147.1756.2.jollyprince@juno.com> Message-ID: <20030731083640.GA2531@meier-geinitz.de> Hi, On Wed, Jul 30, 2003 at 11:41:47PM -0500, Roger O Wales wrote: > Question: Now that I have an Epson 1260 with a recognizable backend, how > can I set the scanner size to 8" x 10"? Right now, I have a 4" x 2" and > I saw no size configuration options in the front ends that I saw. HELP! You mean that the maximun size of the scan area is only 4" x 2"? I'd be very surprised if that was true, because the 1260 seems to be used very often with the Epson backend. Which version of SANE do you use (scanimage --version)? Do you use the epson backend that came with the SANE distribution or the Epson-Kowa backend? If it's just a problem of not finding the geometry options: With XSane, you can select the size of the image in the preview window. Either by selecting the scan area with the mouse cursor or by selecting one of the predefined sizes. Or you can use the geometry sliders (Top left and so on). With scanimage, the options should look similar to these: Geometry: -l 0..217mm [0] Top-left x position of scan area. -t 0..299mm [0] Top-left y position of scan area. -x 0..217mm [217] Width of scan-area. -y 0..299mm [299] Height of scan-area. If it's not just a problem of not finding the geometry options, can you please show us the output of: scanimage --help and SANE_DEBUG_EPSON=255 scanimage -L Bye, Henning From henning at meier-geinitz.de Thu Jul 31 09:45:31 2003 From: henning at meier-geinitz.de (Henning Meier-Geinitz) Date: Thu, 31 Jul 2003 10:45:31 +0200 Subject: [sane-devel] xscanimage, no file extention check? In-Reply-To: <1059575044.877.29.camel@gkall-lex> References: <1059575044.877.29.camel@gkall-lex> Message-ID: <20030731084531.GB2531@meier-geinitz.de> Hi, On Wed, Jul 30, 2003 at 02:24:05PM +0000, gerard klaver wrote: > To make it more "foolproof" it would be nice/good to have in the menu > of xscanimage a check if the file extension which can be saved exists or > a choice which file extension can be used (like xsane) > > At this moment you can save each file extension you want or make a type > error. Well, if you want a new feature for xscanimage, write a patch :-) Currently nobody actively maintains xscanimage. I'll fix grave bugs when someone notices them and add patches, if they look useful. But otherwise, not much work to improve the features of xscanimage is done by the SANE developers themselves. Concerning your idea: If you make it optional (e.g. a preferences menu option) and test for all the pnm types (e.g. pgm) and better in upper and lower case a patch would be accepted, I guess. Thanks, Henning From jb at jblache.org Thu Jul 31 10:52:47 2003 From: jb at jblache.org (Julien BLACHE) Date: Thu, 31 Jul 2003 11:52:47 +0200 Subject: [sane-devel] xscanimage, no file extention check? In-Reply-To: <20030731084531.GB2531@meier-geinitz.de> (Henning Meier-Geinitz's message of "Thu, 31 Jul 2003 10:45:31 +0200") References: <1059575044.877.29.camel@gkall-lex> <20030731084531.GB2531@meier-geinitz.de> Message-ID: <87adav10r4.fsf@frigate.technologeek.org> Henning Meier-Geinitz wrote: Hi, > Concerning your idea: If you make it optional (e.g. a preferences menu > option) and test for all the pnm types (e.g. pgm) and better in > upper and lower case a patch would be accepted, I guess. That's just a matter of using g_strcasecmp() (from glib). HTH, JB. -- Julien BLACHE From anoah at pfeiffer.edu Thu Jul 31 14:10:48 2003 From: anoah at pfeiffer.edu (m. allan noah) Date: Thu, 31 Jul 2003 09:10:48 -0400 (EDT) Subject: [sane-devel] Fujitsu fi-4220C problems In-Reply-To: <20030731063621.GA26402@helios.microsux.com> Message-ID: peter, i am actively looking at this. it may be a bug in the fujitsu backend, as we dont currently send exactly the same data as a windows machine does. i should have an updated version of the backend in a couple days. would you (or anyone else) mind testing the patch for me? allan On Thu, 31 Jul 2003, Peter Hartshorn wrote: > Hello all, > > I have revieved a Fujitsu fi-4220C scanner and I am having problems scanning. > > I can sucessfully scan several pages with scanimage but sometimes (quite often) > I receive the following error > > usb_control/bulk_msg: timeout > > after about a minute the scan will continue as normal. > > I have tried with standard RedHat 8.1 and 9 using sane-backends 1.0.12 > > I have also tried using libusb which gives me the error: > > usb_control/bulk_msg: timeout > usbdevfs: USBDEVFS_BULK failed dev 2 ep 0x81 len 13 ret -110 > ^^ > || > (some times 13 is 96) > > Any help would be greatly appreciated. > > I have also tried scanning with a gt68xx scanner (Mustek 1200 UB plus) with no > errors. So this leads me to think that it is in fact a bug in the fujitsu > driver for sane. > > >From Peter Hartshorn > peter at dimtech.com.au > _______________________________________________ > Sane-devel mailing list > Sane-devel at www.mostang.com > http://www.mostang.com/mailman/listinfo/sane-devel > -- "so don't tell us it can't be done, putting down what you don't know. money isn't our god, integrity will free our souls" - Max Cavalera From gene.heskett at verizon.net Thu Jul 31 15:13:37 2003 From: gene.heskett at verizon.net (Gene Heskett) Date: Thu, 31 Jul 2003 10:13:37 -0400 Subject: [sane-devel] Page size on Xsane In-Reply-To: <20030731080222.GA11421@zen.epkowa.co.jp> References: <20030730.234147.1756.2.jollyprince@juno.com> <20030731080222.GA11421@zen.epkowa.co.jp> Message-ID: <200307311013.37561.gene.heskett@verizon.net> On Thursday 31 July 2003 04:02, Olaf Meeuwissen wrote: >On Wed, Jul 30, 2003 at 11:41:47PM -0500, Roger O Wales wrote: >> I have retired my Visioneer 5800 to the scrap heap. >> >> Question: Now that I have an Epson 1260 with a recognizable >> backend, how can I set the scanner size to 8" x 10"? Right now, I >> have a 4" x 2" and I saw no size configuration options in the >> front ends that I saw. HELP! > >You could try "Image Scan! for Linux!" available from > > http://www.epkowa.co.jp/english/linux/_e/lsd_e.html > >It comes with its own backend and supports the EPSON Perfection 1260 > and Perfection 1260 Photo. And an error 404 when clicking on the link :) -- Cheers, Gene AMD K6-III at 500mhz 320M Athlon1600XP at 1400mhz 512M 99.27% setiathome rank, not too shabby for a WV hillbilly Yahoo.com attornies please note, additions to this message by Gene Heskett are: Copyright 2003 by Maurice Eugene Heskett, all rights reserved. From peter at dimtech.com.au Thu Jul 31 15:58:30 2003 From: peter at dimtech.com.au (Peter Hartshorn) Date: Fri, 1 Aug 2003 00:58:30 +1000 Subject: [sane-devel] Fujitsu fi-4220C problems In-Reply-To: References: <20030731063621.GA26402@helios.microsux.com> Message-ID: <20030731145829.GA26813@helios.microsux.com> Yeah, sure I'll test it. As soon as you are ready for testing, send a tarball or a patch against 1.0.12 (or your preferred version) and I'll give as much feedback as possible. On Thu, Jul 31, 2003 at 09:10:48AM -0400, m. allan noah wrote: > peter, i am actively looking at this. it may be a bug in the fujitsu > backend, as we dont currently send exactly the same data as a windows > machine does. i should have an updated version of the backend in a > couple days. would you (or anyone else) mind testing the patch for me? > > allan > > On Thu, 31 Jul 2003, Peter Hartshorn wrote: > > > Hello all, > > > > I have revieved a Fujitsu fi-4220C scanner and I am having problems scanning. > > > > I can sucessfully scan several pages with scanimage but sometimes (quite often) > > I receive the following error > > > > usb_control/bulk_msg: timeout > > > > after about a minute the scan will continue as normal. > > > > I have tried with standard RedHat 8.1 and 9 using sane-backends 1.0.12 > > > > I have also tried using libusb which gives me the error: > > > > usb_control/bulk_msg: timeout > > usbdevfs: USBDEVFS_BULK failed dev 2 ep 0x81 len 13 ret -110 > > ^^ > > || > > (some times 13 is 96) > > > > Any help would be greatly appreciated. > > > > I have also tried scanning with a gt68xx scanner (Mustek 1200 UB plus) with no > > errors. So this leads me to think that it is in fact a bug in the fujitsu > > driver for sane. > > > > >From Peter Hartshorn > > peter at dimtech.com.au > > _______________________________________________ > > Sane-devel mailing list > > Sane-devel at www.mostang.com > > http://www.mostang.com/mailman/listinfo/sane-devel > > > > -- > "so don't tell us it can't be done, putting down what you don't know. > money isn't our god, integrity will free our souls" - Max Cavalera > From henning at meier-geinitz.de Thu Jul 31 19:08:16 2003 From: henning at meier-geinitz.de (Henning Meier-Geinitz) Date: Thu, 31 Jul 2003 20:08:16 +0200 Subject: [sane-devel] Page size on Xsane In-Reply-To: <20030731.125450.1756.0.jollyprince@juno.com> References: <20030731.125450.1756.0.jollyprince@juno.com> Message-ID: <20030731180816.GH2531@meier-geinitz.de> Hi, Please don't send answers to me personally, I can't help with ImageScan or Epson Kowa problems. Send your questions to the list. I'm cc'ing sane-devel now. On Thu, Jul 31, 2003 at 12:54:50PM -0500, Roger O Wales wrote: > I decided to check out the Epson-Kowa driver But that was after the problem you had with the maximum size of the scan area? So that problem was with the Epson backend that came with SANE? Could you find out what the source of that problem was? > and downloaded it and > installed it. Everything to be going fine until I reached the step 3 > "Overview on Scanning" of the User Guide for Image Scan! The result of > my starting iscan in terminal mode was "Segmentation Fault". What do I > do with that? HELP! Maybe someone else can help with that one. Bye, Henning