[sane-devel] GL646 genesys, 2300c head problem
Stéphane VOLTZ
stefdev at modulonet.fr
Fri May 5 15:47:50 UTC 2006
Le Vendredi 5 Mai 2006 12:06, Mark Hatton a écrit :
>
> The latest version in CVS fixes another issue with the 2300c for me. The
> stable version only lets you scan once and then the scanner can't be
> accessed again unless it is powered off and on again. The version in the
> CVS HEAD seems to solve that.
>
> When accessing the scanner using XSane, the default settings make the
> scanner head crash in to the end of the scan bed (giving the horrible
> noise). However, if I lower the length of the scan area by as little as
> 2mm, the problem goes away and the scan head stops and returns properly.
>
> I have looked for a way to change the value of the available scanning
> area but I can't find it. If someone can tell me which file it is
> defined in, I am happy to change it myself and give it a try.
>
> Thanks,
>
> Mark
Hello,
look at genesys_devices.c in the backends sub-directory. Line 529 there a
struct that describes the geometry for the 2300. You'll have to adjust
the "Start of scan area in mm (x_offset)" value, or the "Size of scan area
in mm (y) ". From your mail, I guess that a value of SANE_FIX (295.0) would
do the job:
static Genesys_Model hp2300c_model = {
"hewlett-packard-scanjet-2300c", /* Name */
"Hewlett Packard", /* Device vendor string */
"ScanJet 2300c", /* Device model name */
GENESYS_GL646,
NULL,
{600, 300, 150, 75, 0}, /* possible x-resolutions */
{1200, 600, 300, 150, 75, 0}, /* possible y-resolutions, motor can go up to
1200 dpi */
{16, 8, 0}, /* possible depths in gray mode */
{16, 8, 0}, /* possible depths in color mode */
SANE_FIX (-2.0), /* Start of scan area in mm (x_offset) */
SANE_FIX (-2.0), /* Start of scan area in mm (y_offset) */
SANE_FIX (215.9), /* Size of scan area in mm (x) */
SANE_FIX (297.1), /* Size of scan area in mm (y) */
SANE_FIX (0.0), /* Start of white strip in mm (y) */
SANE_FIX (1.0), /* Start of black mark in mm (x) */
SANE_FIX (0.0), /* Start of scan area in TA mode in mm (x) */
SANE_FIX (0.0), /* Start of scan area in TA mode in mm (y) */
SANE_FIX (100.0), /* Size of scan area in TA mode in mm (x) */
SANE_FIX (100.0), /* Size of scan area in TA mode in mm (y) */
SANE_FIX (0.0), /* Start of white strip in TA mode in mm (y)
*/
16, 8, 0, /* RGB CCD Line-distance correction in pixel
*/
COLOR_ORDER_RGB, /* Order of the CCD/CIS colors */
SANE_FALSE, /* Is this a CIS scanner? */
CCD_HP2300,
DAC_WOLFSON_HP2300,
GPO_HP2300,
MOTOR_HP2300,
GENESYS_FLAG_REPARK
| GENESYS_FLAG_14BIT_GAMMA
| GENESYS_FLAG_SEARCH_START
| GENESYS_FLAG_MUST_WAIT
| GENESYS_FLAG_DARK_CALIBRATION | GENESYS_FLAG_OFFSET_CALIBRATION,
9,
132
};
Let me know the values that work best, I'll put them in CVS.
Regards,
Stef
More information about the sane-devel
mailing list