[sane-devel] epson2 driver and epson perfection 4990

Claus Boje claus at egehuset.dk
Mon Feb 7 22:41:25 UTC 2011


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



More information about the sane-devel mailing list