[sane-devel] Epson GT6000 parport scanner on RH Linux

Karl Heinz Kremer khk@khk.net
Mon, 26 May 2003 17:57:14 -0400


--PmA2V3Z32TCmWXqI
Content-Type: multipart/mixed; boundary="ZGiS0Q5IWpPtfppv"
Content-Disposition: inline


--ZGiS0Q5IWpPtfppv
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Eric,

please try the attached patch  and let me know if this helps to=20
not detect the ADF. It's agains the 1.0.12 version that was just
released. It should not be too difficult to manally apply the
changes to an older version.

Karl Heinz


On Mon, May 26, 2003 at 09:55:19AM +1000, Eric Mills wrote:
> Hi Harald
>=20
> Thanks for the hints - only had not commented out lines in=20
> dll.conf. Changing this does change symptoms slightly. The debug=20
> output now has:
>=20
> [epson] ADF detected
> [epson] ADF is enabled
> [epson] adf tlx 0.000000 tly 0.000000 brx 88.307327 bry 0.677322=20
> [mm]
>=20
> This scanner does not have an ADF! Don't think the GT6000 can=20
> support one... The bry entry now is not zero and so I don't get=20
> an invalid parameter error when requesting a scan, however 1mm=20
> max scan height is not very useful!
>=20
> Is it possibly to override the autodetect of the ADF as the main=20
>  size parameters seems to be being downloaded correctly?
>=20
> Scanner did show E-C but seems to be ready & 100 (normal) after=20
> a scan request now.
>=20
> Thanks & Best Regards,
> Eric
>=20
>=20
> harald wrote:
> >Hello Eric,
> >
> >i have the same scanner working on Suse Linux 7.3, 8.0, 8.2, Mandrake 8.=
2,=20
> >9.0, 9.1. [epson] ADF detected
> [epson] ADF is enabled
> [epson] adf tlx 0.000000 tly 0.000000 brx 88.307327 bry 0.677322=20
> [mm]
>=20
> >I should work with Red Hat, too. The only thing you have to do is "switc=
h=20
> >off" (comment with #) all other backends in dll.conf and enable parport =
in=20
> >epson.conf (pio 0x378). Comment all other settings in epson.conf. I trie=
d=20
> >it with several older sane Versions, all i tried worked. I get always a=
=20
> >E-C Message in Scanners panel. But after I am starting any frontend, the=
=20
> >"ready" light is on and the scanner works fine.=20
> >Maybe commenting out entrys in dll.conf will solve your error.
> >
> >Please let me know if it works.
> >
> >Best Regards to down under, Harald.=20
> >=20
> >Am Sonntag, 18. Mai 2003 12:54 schrieb Eric Mills:
> >
> >>Hi,
> >>
> >>For some time now I have been trying to get my GT6000 working locally on
> >>RH Linux (7.3, port 0x378). With both the standard 1.0.7 sane provided
> >>and the latest 1.0.11 backends with .10 frontends, I get the following
> >>problems:
> >>
> >>1. Without debugging turned on the scanner appears to be reset upon
> >>entering any front end and then the backend goes into an infinite loop.
> >>Scanner puts up E-1 in the window after 30 seconds.
> >>
> >>2. With DEBUG=3D128 initialisation passes, but the backend seems to dec=
ide
> >>the scanner has an ADF with looney size parameters (0 length) which
> >>cases an invalid parameter error on the first scan request.
> >>
> >>Does anyone have one of these old parport scanners working in the same
> >>configuration? Karl does not have access for any suggestions.
> >>
> >>Thanks,
> >>Eric Mills
> >>
> >>_______________________________________________
> >>Sane-devel mailing list
> >>Sane-devel@www.mostang.com
> >>http://www.mostang.com/mailman/listinfo/sane-devel
> >
> >
>=20
> _______________________________________________
> Sane-devel mailing list
> Sane-devel@www.mostang.com
> http://www.mostang.com/mailman/listinfo/sane-devel

--=20
Karl Heinz Kremer                                  khk@khk.net
PGP Key at                 http://www.khk.net/download/khk.asc
EPSON Sane Backend:                         http://www.khk.net

--ZGiS0Q5IWpPtfppv
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="epson_no_adf.patch"
Content-Transfer-Encoding: quoted-printable

--- epson.c	26 Mar 2003 23:18:58 -0000	1.39
+++ epson.c	26 May 2003 21:47:55 -0000
@@ -2038,7 +2038,8 @@
  *  ADF
  */
=20
-			if( buf[ 1] & EXT_STATUS_IST) {
+			if (dev->extension && (buf[1] & EXT_STATUS_IST))=20
+			{
 				DBG( 1, "ADF detected\n");
=20
 				if( buf[ 1] & EXT_STATUS_EN) {
@@ -2072,7 +2073,8 @@
  *  TPU
  */
=20
-			if( buf[ 6] & EXT_STATUS_IST) {
+			if (dev->extension && (buf[6] & EXT_STATUS_IST))
+			{
 				DBG( 1, "TPU detected\n");
 =09
 				if( buf[ 6] & EXT_STATUS_EN) {

--ZGiS0Q5IWpPtfppv--

--PmA2V3Z32TCmWXqI
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)

iD8DBQE+0o26xejv3RfKrhsRAipgAJ98vGbSbb6LOI/0IInMIbZCtmb1DwCfV7Bc
OLuWlCvcIrS7QDw8ZgHUuE0=
=CLKk
-----END PGP SIGNATURE-----

--PmA2V3Z32TCmWXqI--