[sane-devel] Scanner Basics

Karl Heinz Kremer khk@khk.net
Sun, 17 Nov 2002 16:31:44 -0500


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

It does not matter that all the entries are zeros. Just change the
vendor and product IDs (second and third numeric column after the
driver name), leave the rest alone. But as a different thread
reported, you may have to add this new entry to usb.handmap and
not the distmap file.

Karl Heinz

On Sun, Nov 17, 2002 at 11:41:18AM -0700, Karl F. Larsen wrote:
>=20
> Hi Karl, I looked at the usb.distmap and it has over a hundred entries=20
> most of which are all zeros. In Red Hat 8 there are 18 scanner entries.=
=20
> They are also all zeros. So I have no way to know how to start. I will=20
> stay with rc.local which is easy to do. I will use the entry in=20
> /etc/modules.conf that works fine after you use depmod -a. Without that=
=20
> it doesn't work.=20
>=20
> Time for Football. My Cowboys are not good this year.
>=20
>=20
>=20
> On Sat, 16 Nov 2002, Karl Heinz Kremer wrote:
>=20
> > The man page will probably not help. It does not talk about the
> > format of the entry. Just open the file /etc/hotplug/usb.distmap.
> > You will see lots of entries, every record starts with the=20
> > driver name (e.g. scanner), followed a number of numeric values.
> > I only know what the vendor and product ID are, the others I
> > just copy from other entries. When you start with a scanner
> > entry and just replace the vendor and product ID with the data
> > for your scanner, it will work. That's all you need to know. That's
> > all I know.=20
> >=20
> > Karl Heinz
> >=20
> > On Sat, Nov 16, 2002 at 07:22:01PM -0700, Karl F. Larsen wrote:
> > >=20
> > > Hi Karl, I will need to read a man page for hotplug. I really don't=
=20
> > > understand your example.
> > >=20
> > >=20
> > > On Sat, 16 Nov 2002, Karl Heinz Kremer wrote:
> > >=20
> > > > On Sat, Nov 16, 2002 at 01:55:41PM -0700, Karl F. Larsen wrote:
> > > > [ ... ]
> > > > > Hi Karl, I find to get scanner into the kernel I must have someth=
ing in=20
> > > > > /etc/rc.d/rc.local file, and that something can include the vendo=
r and=20
> > > > > product. If you can tell me how to load the scanner module alone =
some=20
> > > > > other way I'm listening. I could read=20
> > > > > /usr/src/linux/documentation/modules again but I'm tired of all t=
hat=20
> > > > > today...:-)
> > > >=20
> > > > Put a line like this into the file /etc/hotplug/usb.distmap. The se=
cond numeric
> > > > argument is the vendor ID, the third is the product ID. The whole t=
hing is
> > > > one line. It's probably easier to just copy one line that starts wi=
th the
> > > > driver name "scanner" and duplicate it, and then modify the vendor =
and
> > > > product IDs.=20
> > > > scanner              0x0003 0x04b8   0x010f    0x0000       0x0000 =
      0x00         0x00            0x00            0x00            0x00    =
        0x00            0x00000000
> > > >=20
> > > > Red Hat 8.0 does have hotplug support, as does SuSE 8.x. I would as=
sume
> > > > that pretty much all modern Linux distributions also come with hotp=
lug
> > > > enabled.
> > > >=20
> > > > Karl Heinz
> > > >=20
> > >=20
> > > --=20
> > >                      =20
> > >                - Karl Larsen k5di Las Cruces,NM Az ScQRPions -
> > >=20
> >=20
> >=20
>=20
> --=20
>                      =20
>                - Karl Larsen k5di Las Cruces,NM Az ScQRPions -
>=20

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

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

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE92ArAxejv3RfKrhsRAszHAJkBbySINpt4us0SN+leqkVPPhqA+gCZAc2F
NZju4EhQcIN0NU+QZnTTmXU=
=XUfV
-----END PGP SIGNATURE-----

--yEPQxsgoJgBvi8ip--