please file a bug report so this does not get dropped. allan
On Mon, Feb 7, 2011 at 5:41 PM, Claus Boje <claus at egehuset.dk> wrote: > There is a problem with the resolution setup for Epson perfection 4990 (and > 4870 I think). Because of buggy firmware it do not give the resolutions over > 3200, but it too have 4800, 6400,9600,12800. It is important to have especial > 4800 (and 9600) because the are not ?interpolated. > > Here is a patch with a solution in epson2-ops.c about line 230 > > if (dev->dpi_range.max > dev->res_list[dev->res_list_size - 1]) { > > ? ? ? ? ? ? ? ?/* > ? ? ? ? ? ? ? ? * Setup the right dpi for > ? ? ? ? ? ? ? ? * Image Scanner Perfection 4870/4990 (GT-X700/GT-X800) > ? ? ? ? ? ? ? ? * EPSON Programming guide for > ? ? ? ? ? ? ? ? * EPSON Color Image Scanner Perfection 4870/4990 > ? ? ? ? ? ? ? ? */ > ? ? ? ? ? ? ? ?if (e2_dev_model(dev, "GT-X800") > ? ? ? ? ? ? ? ? ? ?|| e2_dev_model(dev, "GT-X700")) { > ? ? ? ? ? ? ? ? ? ? ? ?DBG(1, "integrating resolution list > (4800,6400,9600,12800)\n"); > ? ? ? ? ? ? ? ? ? ? ? ?e2_add_resolution(dev, 4800); > ? ? ? ? ? ? ? ? ? ? ? ?e2_add_resolution(dev, 6400); > ? ? ? ? ? ? ? ? ? ? ? ?e2_add_resolution(dev, 9600); > ? ? ? ? ? ? ? ? ? ? ? ?e2_add_resolution(dev, 12800); > ? ? ? ? ? ? ? ?} > ? ? ? ? ? ? ? ?else { > > ? ? ? ? ? ? ? ? ? ? ? ?int val = dev->res_list[dev->res_list_size - 1] * 2; > > ? ? ? ? ? ? ? ? ? ? ? ?DBG(1, "integrating resolution list (%d-%d)\n", > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?val, dev->dpi_range.max); > > ? ? ? ? ? ? ? ? ? ? ? ?while (val <= dev->dpi_range.max) { > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?e2_add_resolution(dev, val); > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?val *= 2; > ? ? ? ? ? ? ? ? ? ? ? ?} > ? ? ? ? ? ? ? ?} > } > > Regards > Claus > > -- > sane-devel mailing list: sane-devel at lists.alioth.debian.org > http://lists.alioth.debian.org/mailman/listinfo/sane-devel > Unsubscribe: Send mail with subject "unsubscribe your_password" > ? ? ? ? ? ? to sane-devel-request at lists.alioth.debian.org > -- "The truth is an offense, but not a sin"