NetBSD Problem Report #19856
>Number: 19856
>Category: kern
>Synopsis: Add support for Epson Perfection 2400 USB scanner
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: kern-bug-people
>State: closed
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Wed Jan 15 13:09:00 +0000 2003
>Closed-Date: Thu Sep 08 07:01:34 +0000 2005
>Last-Modified: Thu Sep 08 07:01:34 +0000 2005
>Originator: Rob Quinn
>Release: current as of 15 Jan 2003
>Organization:
>Environment:
NetBSD strike.XXX 1.6L NetBSD 1.6L (STRIKE) #83: Wed Jan 15 07:27:07 EST 2003 rquinn@strike.XXX:/usr/obj/STRIKE i386
>Description:
Similar to kern/14170 and kern/19767, these changes (usually) let SANE use my Epson Perfection 2400 USB scanner:
%cd sys/dev/usb/
%cvs diff usbdevs
Index: usbdevs
===================================================================
RCS file: /cvsroot/src/sys/dev/usb/usbdevs,v
retrieving revision 1.291
diff -c -r1.291 usbdevs
*** usbdevs 2003/01/13 17:25:20 1.291
--- usbdevs 2003/01/15 12:57:13
***************
*** 660,665 ****
--- 660,666 ----
product EPSON GT9700F 0x0112 GT-9700F scanner
product EPSON 1260 0x011d Perfection 1260 scanner
product EPSON 1660 0x011e Perfection 1660 scanner
+ product EPSON 2400 0x011b Perfection 2400 scanner
/* e-TEK Labs products */
product ETEK 1COM 0x8007 Serial port
%cvs diff uscanner.c
Index: uscanner.c
===================================================================
RCS file: /cvsroot/src/sys/dev/usb/uscanner.c,v
retrieving revision 1.37
diff -c -r1.37 uscanner.c
*** uscanner.c 2003/01/13 21:51:30 1.37
--- uscanner.c 2003/01/15 12:57:25
***************
*** 185,190 ****
--- 185,191 ----
{{ USB_VENDOR_EPSON, USB_PRODUCT_EPSON_1660 }, 0 },
{{ USB_VENDOR_EPSON, USB_PRODUCT_EPSON_640U }, 0 },
{{ USB_VENDOR_EPSON, USB_PRODUCT_EPSON_1650 }, 0 },
+ {{ USB_VENDOR_EPSON, USB_PRODUCT_EPSON_2400 }, 0 },
{{ USB_VENDOR_EPSON, USB_PRODUCT_EPSON_GT9700F }, USC_KEEP_OPEN },
#dmesg | grep uscan
uscanner0 at uhub0 port 1
uscanner0: EPSON EPSON Scanner, rev 2.00/1.00, addr 2
>How-To-Repeat:
Without the changes:
ugen0 at uhub0 port 1
ugen0: EPSON EPSON Scanner, rev 2.00/1.00, addr 2
With the changes I still saw this several times when I connected the scanner:
uhub0: device problem, disabling port 1
Unplugging/replugging the USB cable a few times enabled it:
uscanner0 at uhub0 port 1
uscanner0: EPSON EPSON Scanner, rev 2.00/1.00, addr 2
SANE and xscanimage could use the device in 8 bit mode once I commented out the
current entries in /usr/pkg/etc/sane.d/epson.conf and put in "usb /dev/uscanner0".
16 bit mode just returns solid black images, but this is my first time using SANE so it
could be a problem on my end.
%scanimage -L
[epson] Requesting extended status
[epson] No error
[epson] Checking for ADF: (00)
[epson] Checking for TPU: (80)
[epson] Device name = GT-9300
device `epson:/dev/uscanner0' is a Epson GT-9300 flatbed scanner
>Fix:
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: augustss
State-Changed-When: Wed Jan 15 05:37:50 PST 2003
State-Changed-Why:
Patch applied.
Responsible-Changed-From-To: kern-bug-people->tron
Responsible-Changed-By: tron@netbsd.org
Responsible-Changed-When: Thu, 08 Sep 2005 06:58:27 +0000
Responsible-Changed-Why:
I'll investigate this.
State-Changed-From-To: closed->open
State-Changed-By: tron@netbsd.org
State-Changed-When: Thu, 08 Sep 2005 06:58:27 +0000
State-Changed-Why:
Making the suggested ioctl() change might make auto detection work.
Responsible-Changed-From-To: tron->kern-bug-people
Responsible-Changed-By: tron@netbsd.org
Responsible-Changed-When: Thu, 08 Sep 2005 07:01:34 +0000
Responsible-Changed-Why:
Opps, I reopened the wrong PR.
State-Changed-From-To: open->closed
State-Changed-By: tron@netbsd.org
State-Changed-When: Thu, 08 Sep 2005 07:01:34 +0000
State-Changed-Why:
Opps, I reopened the wrong PR.
>Unformatted:
>Received: (qmail 27163 invoked by uid 605); 15 Jan 2003 13:08:50 -0000
Message-Id: <20030115130844.3D89611124@narn.netbsd.org>
Date: Wed, 15 Jan 2003 05:08:44 -0800 (PST)
From: rquinn@sec.sprint.net
Sender: gnats-bugs-owner@netbsd.org
Reply-To: rquinn@sec.sprint.net
To: gnats-bugs@gnats.netbsd.org
Subject: Add support for Epson Perfection 2400 USB scanner
X-Send-Pr-Version: www-1.0
I don't think the ioctl() is necessary if you configure your scanner
like this:
[usb] 0x04b8 0x011b
device /dev/uscanner0
However having autoconfiguration would be nice. I'll see if the ioctl()
makes autoconfiguration work on my Epson Perfection 1200 and commit
it if it works.
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.