Hi Oliver, I made the same changes like Alexis made and I can confirm that I also can now scan color and grayscale. LineArt I haven't tried yet, but because Alexis already reported that this is also working I won't try it now.
Thank you _very_ much ! best regards, Michael On Thu, 26 Aug 2004 08:31:43 +0200 (MEST) "Oliver Schwartz" <oliver.schwa...@gmx.de> wrote: > Hi, > > > > Moreover the perfection 2480 can scan in 2400 dpi, the 1670 only > > > in 1600. > > > > Maybe that's the problem ? > > Probably yes. > > The quick and dirty hack to fix it is to replace the following code in > snapscan-scsi.c: > > switch (pss->pdev->model) > { > case PRISA5000: > pos_factor = (pss->res > 600) ? 1200 : 600; > break; > case PERFECTION1670: > pos_factor = (pss->res > 800) ? 1600 : 800; > break; > default: > break; > } > > with this one: > > switch (pss->pdev->model) > { > case PRISA5000: > pos_factor = (pss->res > 600) ? 1200 : 600; > break; > case PERFECTION1670: > pos_factor = (pss->res > 1200) ? 2400 : 1200; > break; > default: > break; > } > > > If you want to use higher resolutions you should also replace the > following line in snapscan-options.c: > > static SANE_Word resolutions_1600[] = > {10, 50, 75, 100, 150, 200, 300, 400, 600, 800, 1600}; > > with > > static SANE_Word resolutions_1600[] = > {11, 50, 75, 100, 150, 200, 300, 400, 600, 800, 1200, 2400}; > > > After applying the changes, run "touch snapscan.c", "make" and "make > install" again. > This should allow scanning in all resolutions with the right scanning > areas. Please test it and let me know the results. Please also try > grayscale and lineart mode, there were some problems reported for the > 1670. > > The clean solutions is to add a new SnapScan_Model PERFECTION2480 in > snapscan.h and change the snapscan*.c files accordingly. I'll submit > the neccessary changes to CVS next week when I'm back at home. > > /Oliver > > > -- > sane-devel mailing list: sane-devel@lists.alioth.debian.org > http://lists.alioth.debian.org/mailman/listinfo/sane-devel > Unsubscribe: Send mail with subject "unsubscribe your_password" > to sane-devel-requ...@lists.alioth.debian.org > -- ================================================ Michael Polenske System Analyst NEC High Performance Computing Europe GmbH Prinzenallee 11 D-40549 Duesseldorf, Germany Tel: +49 211 5369 145 mpolen...@hpce.nec.com Fax: +49 211 5369 199 http://www.hpce.nec.com GPG / PGP-Key available AIM: polenskeHPCE ================================================