[sane-devel] HP scanjet 2300c

Stéphane VOLTZ stefdev at modulonet.fr
Thu May 11 04:58:54 UTC 2006


	Hello,

	after searching the debug data, I think there is no problem in start position 
detection (which is correclty reported to be 'top = 65'). In fact it seems 
that it is the value added to the detected y position is bogus. Currently, we 
add -2.0 mm which may lead in a negative y movement if the inital y offset is 
low.
	So I think you should try to tune this value to exactly match your scanner. 
In the geometry settings, chage 'Start of scan area in mm (y_offset)' to a 
value like SANE_FIX (1.0), and decrease it until the scanned picture doesn't 
miss the very top of the scanning area. Since scanning succeeded with an 
offset (-t 2), a value of SANE_FIX(0.0) should work.
	In this cas we could keep the y size of area at 297 mm.

in genesys_devices:

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) */

Regards,
	Stef



More information about the sane-devel mailing list