[sane-devel] Epson Perfection 1650 vs RedHat 7.2: not seen?

2002-01-24 Thread Pierre Sarrazin
I have just connected my new Epson Perfection 1650 scanner to my
RedHat 7.2 system (linux 2.4.7), but it does not seem like the
scanner is detected.

I have added these lines to /etc/modules.conf:

alias usb-controller usb-uhci

The "usbcore" and "usb-uhci" modules are loaded according to lsmod.
When I give the command "cat /proc/bus/usb/devices" (under root),
I only get this:

T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 2
B:  Alloc=  0/900 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 1.00 Cls=09(hub  ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor= ProdID= Rev= 0.00
S:  Product=USB UHCI Root Hub
S:  SerialNumber=d000
C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr=  0mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   8 Ivl=255ms


I picked up somewhere that the vendor ID for Epson is 0x04b8 and
that the product ID for the 1650 is 0x0110.  So I tried the command
"modprobe scanner vendor=0x04b8 product=0x0110", and the line

kernel: scanner.c: USB Scanner support registered.

appears in /var/log/messages, but /proc/bus/usb/devices still only
displays the above paragraph.  My understanding is that I should
be seeing another paragraph with the line "Product=EPSON Scanner".

Trying "modprobe scanner" without parameters gives the same result.

I am using the stock RedHat kernel and modules.  I have not
recompiled any of parts of those.

I have two USB connectors at the back of my machine.  I tried
both, without success (I removed the scanner module with rmmod,
then connected the scanner to the other USB port, then gave the
modprobe command again).  When I disconnected the scanner from a
USB port, the scanner made a high pitched "dzoot! dzoot!" sound,
which sounds normal, I guess...

The command "scanimage" from scan-backends 1.0.5 says "no SANE
devices found".  The only uncommented line in /etc/sane.d/epson.conf
is "usb /dev/usb/scanner0".  Moreover:

# ls -l /dev/usb/scanner0 /dev/*scanner*
/bin/ls: /dev/*scanner*: No such file or directory
crw---1 ps   root 180,  48 Aug 30 16:30 /dev/usb/scanner0

I tried "scanimage -d epson:/dev/usb/scanner0" (under root) and
got this:

scanimage: open of device epson:/dev/usb/scanner0 failed: Invalid argument

Smarter users have succeeded with the 1650, so I suppose I'm not
very far from the goal.  Thanks for any help...

-- 
Pierre Sarrazin 


[sane-devel] Epson Perfection 1650 vs RedHat 7.2: not seen?

2002-01-24 Thread Pierre Sarrazin
Dixit Karl Heinz Kremer  (2002-01-24 21:36):
> The scanner should show up in 'cat /proc/bus/usb/devices' even 
> when no scanner driver is loaded. I suspect that something is
> wrong with your cable. You write that you tried both ports, 
> can you also try a different cable? 

I am ashamed to say that I simply forgot that the USB function
was disabled in the BIOS settings...  After I enabled it, the
scanner showed up in 'cat /proc/bus/usb/devices' and the command

modprobe scanner vendor=0x04b8 product=0x0110

succeeded.  I was then able to scan an image by saying

scanimage > image.pnm

The resolution is low, but I suppose I'll find a way to increase it.

Sorry for wasting your time...

-- 
Pierre Sarrazin 


[sane-devel] Epson 1650: set_scan_area failed: Invalid argument

2002-10-16 Thread Pierre Sarrazin
In the last month or so, I stopped being able to use my Epson
Perfection 1650 scanner from xsane.  The 'scanimage' command
still works however.

I start xsane (0.86) from the command line and I can see the
largest button on the scanner flicker a bit.  When I click
Start (with parameters Viewer/Color/Full range/100/1.00/0.0/0.0),
I get a dialog box that says:

Failed to start scanner: Invalid argument

I did see the large button flicker again.  This seems to
be a frequently reported error message.  I tried again with
SANE_DEBUG_EPSON=3 and got this:


[sanei_debug] Setting debug level of epson to 3.
[epson] sane_init: sane-backends 1.0.8
[epson] SANE Epson Backend v0.2.21 - 2002-04-22
[epson] attach: opening usb /dev/usb/scanner0
[epson] send buf, size = 2
[epson] send buf, size = 2
[epson] typeB 0x42
[epson] level   8 0x38
[epson] no option equipment installed
[epson] resolution (dpi): 50
:
:
[epson] resolution (dpi): 3200
[epson] maximum scan area: x 27200 y 37440
[epson] send buf, size = 2
[epson] send buf, size = 1
[epson] Max. supported color depth = 16
[epson] send buf, size = 2
[epson] Focus position = 0x40
[epson] Enabling 'Set Focus' support
[epson] send buf, size = 2
[epson] Preview = 0
[epson] Resolution = 50
:
:
[epson] sane_start: set_gamma( s, 0x2 ).
[epson] send buf, size = 2
[epson] send buf, size = 1
[epson] sane_start: set_color_correction( s, 0x80 )
[epson] send buf, size = 2
[epson] send buf, size = 1
[epson] send buf, size = 2
[epson] send buf, size = 4
[epson] Preview = 0
[epson] Resolution = 100
[epson] get para 0x80f03b0 0x80f0a58 tlx 215.84 tly 43.794632 brx 
215.84 bry 297.179977 [mm]
[epson] set_scan_area: 0x80f03b0 850 172 0 997
[epson] sane_start: set_scan_area failed: Invalid argument
[epson] Preview = 0
[epson] Resolution = 100
[epson] get para 0x80f03b0 0x80f0a58 tlx 215.84 tly 43.794632 brx 
215.84 bry 297.179977 [mm]


Other information:

RedHat 7.2
gcc 2.96
glibc 2.2.4
Linux 2.4.18 i686

$ rpm -qa | grep -i sane | sort
sane-backends-1.0.8-1.ximian.1
sane-backends-devel-1.0.8-1.ximian.1
sane-frontends-1.0.8-1.ximian.1
xsane-0.86-1.ximian.1
xsane-gimp-0.86-1.ximian.1

(Obtained and installed by Ximian Red Carpet 1.3.)

$ grep -v '^#' /etc/sane.d/epson.conf 
usb /dev/usb/scanner0

$ ls -l /dev/usb/scanner0
crw---1 ps   users180,  48 avr 11  2002 /dev/usb/scanner0

$ sane-find-scanner | grep -v '^#' | grep -v '^$'
sane-find-scanner: found USB scanner (vendor = 0x04b8, product = 0x0110) at 
device /dev/usb/scanner0


I tried with xsane 0.88 (using an RPM I compiled myself from the
.spec file provided in the source tarball) and 0.83 but the result
was the same.

This scanner has worked very well until about a month ago.  I can
provide more details if needed.  Thanks.

-- 
Pierre Sarrazin