Le jeudi 7 janvier 2010 18:38:03 Albrecht Beck, vous avez ?crit :
> Hi Allan,
>
> unfotunately this doesn't seem to a permissions issue. If I try it as
> root, the problem persists.
>
> Albrecht
>
> Am Donnerstag, den 07.01.2010, 10:02 -0500 schrieb m. allan noah:
> > did you try it as root, just in case it is a permissions issue?
> >
> > allan
> >
> > On Thu, Jan 7, 2010 at 4:17 AM, Albrecht Beck <albrecht.beck at arcor.de>
wrote:
> > > Hi,
> > >
> > > I'm trying to get the Umax 2000U running with Ubuntu 9.10.
> > > Unfortunately it doesn't work:
> > >
> > > albrecht at calculus:~$ lsusb
> > > Bus 005 Device 002: ID 1606:0030 Umax [hex] Astra 2000U
> > > Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
> > > Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
> > > Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
> > > Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
> > > Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
> > > Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
> > > Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
> > >
> > > albrecht at calculus:~$ sane-find-scanner
> > >
> > > # sane-find-scanner will now attempt to detect your scanner. If the
> > > # result is different from what you expected, first make sure your
> > > # scanner is powered up and properly connected to your computer.
> > >
> > > # No SCSI scanners found. If you expected something different, make
> > > sure that
> > > # you have loaded a kernel SCSI driver for your SCSI adapter.
> > >
> > > found USB scanner (vendor=0x1606, product=0x0030, chip=PV8630/LM9830)
> > > at libusb:005:002
> > > # Your USB scanner was (probably) detected. It may or may not be
> > > supported by
> > > # SANE. Try scanimage -L and read the backend's manpage.
> > >
> > > # Not checking for parallel port scanners.
> > >
> > > # Most Scanners connected to the parallel port or other proprietary
> > > ports
> > > # can't be detected by this program.
> > >
> > > # You may want to run this program as root to find all devices. Once
> > > you
> > > # found the scanner devices, be sure to adjust access permissions as
> > > # necessary.
> > >
> > > albrecht at calculus:~$ SANE_DEBUG_UMAX1220U=128 scanimage -L
> > >
> > > [sanei_debug] Setting debug level of umax1220u to 128.
> > > [umax1220u] sane_init: version_code != 0, authorize != 0
> > > [umax1220u] sane_init: SANE umax1220u backend version 1.0.2 from
> > > sane-backends 1.0.20
> > > [umax1220u] reading configure file umax1220u.conf
> > > [umax1220u] attach_matching_devices(usb 0x1606 0x0010)
> > > [umax1220u] attach_matching_devices(usb 0x1606 0x0030)
> > > [umax1220u] attach_scanner: libusb:005:002
> > > [umax1220u] attach_scanner: opening libusb:005:002
> > > [umax1220u] UMAX_open_device: `libusb:005:002'
> > > [umax1220u] UMAX_open_device: Scanner is a 2000U. Expect color
> > > problems :)
> > > [umax1220u] csend: cmd = 0
> > > [umax1220u] usync: len = 0, cmd = 0
> > > [umax1220u] Failure on line of umax1220u-common.c: 394
> > > [umax1220u] UMAX_close_device:
> > > [umax1220u] Failure on line of umax1220u-common.c: 2359
> > > [umax1220u] ERROR: attach_scanner: opening libusb:005:002 failed
> > > [umax1220u] attach_matching_devices(usb 0x1606 0x0130)
> > > [umax1220u] attach_matching_devices(/dev/scanner)
> > > [umax1220u] attach_scanner: /dev/scanner
> > > [umax1220u] attach_scanner: opening /dev/scanner
> > > [umax1220u] UMAX_open_device: `/dev/scanner'
> > > [umax1220u] UMAX_open_device: couldn't open device `/dev/scanner':
> > > Invalid argument
> > > [umax1220u] ERROR: attach_scanner: opening /dev/scanner failed
> > > [umax1220u] attach_matching_devices(/dev/usb/scanner0)
> > > [umax1220u] attach_scanner: /dev/usb/scanner0
> > > [umax1220u] attach_scanner: opening /dev/usb/scanner0
> > > [umax1220u] UMAX_open_device: `/dev/usb/scanner0'
> > > [umax1220u] UMAX_open_device: couldn't open device `/dev/usb/scanner0':
> > > Invalid argument
> > > [umax1220u] ERROR: attach_scanner: opening /dev/usb/scanner0 failed
> > > [umax1220u] finished reading configure file
> > > [umax1220u] sane_get_devices(local_only = 0)
> > > [umax1220u] sane_exit
> > >
Hello,
by looking at the code, the backend fails at the first USB read from
the
pv8630 chip. I think it should interesting to check for kernel log messages
regarding USB error messages (with the dmesg command for instance). When
testing, could you enable debugging messages for sanei_pv8630_* functions by
with:
export SANE_DEBUG_SANEI_PV8630=5
While we're at it, you could also turn on USB debugging messages with:
export SANE_DEBUG_SANEI_USB=11
Another thing would be to test that if this scanner works with another
computer or another OS.
If these checks don't show anything, the only thing I can think of
would be
to log the init sequence of the scanner by the windows driver and compare with
what the backend is doing.
Regards,
Stef