[sane-devel] suddenly problems opening /dev/usbscanner0

Christoph Bier christoph.bier@web.de
Thu, 29 May 2003 21:44:12 +0200


This is a multi-part message in MIME format.
--------------040106080501080002060402
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Henning Meier-Geinitz schrieb:
> Hi,
> 
> On Thu, May 29, 2003 at 08:37:49PM +0200, Christoph Bier wrote:

[. . .]

>>    But starting xsane I got the message:
>>Failed to open device `gt68xx:/dev/usbscanner0':
>>Error during device I/O.
> 
> 
> Usually that's a problem with the kernel or hardware. Before anything
> else, unplug and replug your scanner.

I did so before I sent my question. After that
the scanner wasn't found anymore, even usbview
didn't find a device . . . So I also rebooted my
system. The scanner was found again by scanimage
and usbview.
    The kernel didn't change.

> 
>>     'SANE_DEBUG_PLUSTEK=255 xsane' as
>>proposed by Henning some months ago doesn't
>>tell me that much :-/.
>>    xsane is Version 0.91-2
> 
> 
> If I really proposed that for your scanner, I must have been stoned.

Sorry, that was *my* mistake -- you wasn't
stoned :-). I copied and pasted the above line
from an answer by you to another guy. So
*I* must have been stoned.

> Try scanning with scanimage first:
> 
> SANE_DEBUG_GT68XX=255 scanimage >image.pnm 2>log
> 
> And show us the log (if it doesn't work).

Ok, thanks!

Greetings,

Christoph
-- 
Christoph Bier, Dipl.Oecotroph., Email: bier@wiz.uni-kassel.de
Universitaet Kassel, FG Oekologische Lebensmittelqualitaet und
Ernaehrungskultur \\ Postfach 12 52 \\ 37202 Witzenhausen
Tel.: +49 (0) 55 42 / 98 -17 21, Fax: -17 13


--------------040106080501080002060402
Content-Type: text/plain;
 name="log"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="log"

[sanei_debug] Setting debug level of gt68xx to 255.
[gt68xx] SANE GT68xx backend version 1.0 build 46 from sane-backends 1.0.12
[gt68xx] sane_init: authorize != null
[gt68xx] sane_init: little endian machine
[gt68xx] sane_init: reading config file `gt68xx.conf'
[gt68xx] sane_init: config file line 1: ignoring comment line
[gt68xx] sane_init: config file line 2: ignoring comment line
[gt68xx] sane_init: config file line 3: trying to attach `/dev/usbscanner0'
[gt68xx] attach: start: devp != NULL, may_wait = 0
[gt68xx] attach: trying to open device `/dev/usbscanner0'
[gt68xx] gt68xx_device_new: enter
[gt68xx] gt68xx_device_new:: leave: ok
[gt68xx] gt68xx_device_open: enter: dev=0x8065828
[gt68xx] gt68xx_device_open: leave: ok
[gt68xx] attach: device `/dev/usbscanner0' successfully opened
[gt68xx] attach: found Mustek flatbed scanner BearPaw 2400 CU Plus at /dev/usbscanner0
[gt68xx] gt68xx_device_close: enter: dev=0x8065828
[gt68xx] gt68xx_device_close: leave: ok
[gt68xx] attach: exit
[gt68xx] sane_init: config file line 4: ignoring empty line
[gt68xx] sane_init: config file line 5: ignoring comment line
[gt68xx] sane_init: config file line 6: ignoring comment line
[gt68xx] sane_init: config file line 7: ignoring comment line
[gt68xx] sane_init: config file line 8: trying to attach `usb 0x05d8 0x4002'
[gt68xx] sane_init: config file line 9: ignoring empty line
[gt68xx] sane_init: config file line 10: ignoring comment line
[gt68xx] sane_init: config file line 11: ignoring empty line
[gt68xx] sane_init: config file line 12: ignoring comment line
[gt68xx] sane_init: config file line 13: ignoring comment line
[gt68xx] sane_init: config file line 14: ignoring comment line
[gt68xx] sane_init: config file line 15: ignoring comment line
[gt68xx] sane_init: config file line 16: ignoring comment line
[gt68xx] sane_init: config file line 17: ignoring comment line
[gt68xx] sane_init: config file line 18: ignoring comment line
[gt68xx] sane_init: config file line 19: ignoring empty line
[gt68xx] sane_init: config file line 20: ignoring comment line
[gt68xx] sane_init: config file line 21: ignoring comment line
[gt68xx] sane_init: config file line 22: ignoring empty line
[gt68xx] sane_init: config file line 23: ignoring comment line
[gt68xx] sane_init: config file line 24: ignoring comment line
[gt68xx] sane_init: config file line 25: ignoring comment line
[gt68xx] sane_init: config file line 26: ignoring comment line
[gt68xx] sane_init: config file line 27: ignoring comment line
[gt68xx] sane_init: config file line 28: ignoring comment line
[gt68xx] sane_init: config file line 29: ignoring comment line
[gt68xx] sane_init: config file line 30: ignoring comment line
[gt68xx] sane_init: config file line 31: ignoring comment line
[gt68xx] sane_init: config file line 32: ignoring comment line
[gt68xx] sane_init: config file line 33: ignoring comment line
[gt68xx] sane_init: config file line 34: ignoring comment line
[gt68xx] sane_init: config file line 35: ignoring empty line
[gt68xx] sane_init: config file line 36: ignoring comment line
[gt68xx] sane_init: config file line 37: ignoring comment line
[gt68xx] sane_init: config file line 38: ignoring empty line
[gt68xx] sane_init: config file line 39: ignoring comment line
[gt68xx] sane_init: config file line 40: ignoring comment line
[gt68xx] sane_init: config file line 41: trying to attach `usb 0x055f 0x021e'
[gt68xx] sane_init: config file line 42: ignoring comment line
[gt68xx] sane_init: config file line 43: ignoring empty line
[gt68xx] sane_init: config file line 44: ignoring comment line
[gt68xx] sane_init: config file line 45: ignoring comment line
[gt68xx] sane_init: config file line 46: trying to attach `usb 0x055f 0x0218'
[gt68xx] sane_init: config file line 47: ignoring comment line
[gt68xx] sane_init: config file line 48: ignoring empty line
[gt68xx] sane_init: config file line 49: ignoring comment line
[gt68xx] sane_init: config file line 50: ignoring comment line
[gt68xx] sane_init: config file line 51: trying to attach `usb 0x055f 0x0219'
[gt68xx] sane_init: config file line 52: ignoring empty line
[gt68xx] sane_init: config file line 53: ignoring comment line
[gt68xx] sane_init: config file line 54: ignoring comment line
[gt68xx] sane_init: config file line 55: trying to attach `usb 0x055f 0x021d'
[gt68xx] attach: start: devp != NULL, may_wait = 0
[gt68xx] attach: device `/dev/usbscanner0' was already in device list
[gt68xx] attach: start: devp != NULL, may_wait = 0
[gt68xx] attach: trying to open device `libusb:002:002'
[gt68xx] gt68xx_device_new: enter
[gt68xx] gt68xx_device_new:: leave: ok
[gt68xx] gt68xx_device_open: enter: dev=0x80658a0
[gt68xx] gt68xx_device_open: sanei_usb_open failed: Access to resource has been denied
[gt68xx] attach: couldn't open device `libusb:002:002': Access to resource has been denied
[gt68xx] gt68xx_device_free: enter: dev=0x80658a0
[gt68xx] gt68xx_device_free: freeing dev
[gt68xx] gt68xx_device_free: leave: ok
[gt68xx] somewhere: attach (devname, &dev, 0): Access to resource has been denied
[gt68xx] sane_init: device mustek-bearpaw-2400-cu-plus: firmware will be loaded from /usr/local/share/sane/gt68xx/PS2Dfw.usb
[gt68xx] sane_init: config file line 57: ignoring comment line
[gt68xx] sane_init: config file line 58: ignoring comment line
[gt68xx] sane_init: config file line 59: trying to attach `usb 0x055f 0x021c'
[gt68xx] sane_init: config file line 60: ignoring comment line
[gt68xx] sane_init: config file line 61: ignoring comment line
[gt68xx] sane_init: config file line 62: ignoring empty line
[gt68xx] sane_init: config file line 63: ignoring comment line
[gt68xx] sane_init: config file line 64: ignoring comment line
[gt68xx] sane_init: config file line 65: trying to attach `usb 0x055f 0x0210'
[gt68xx] sane_init: config file line 66: ignoring empty line
[gt68xx] sane_init: config file line 67: ignoring comment line
[gt68xx] sane_init: config file line 68: ignoring comment line
[gt68xx] sane_init: config file line 69: trying to attach `usb 0x043d 0x002d'
[gt68xx] sane_init: config file line 70: ignoring empty line
[gt68xx] sane_init: config file line 71: ignoring comment line
[gt68xx] sane_init: config file line 72: ignoring comment line
[gt68xx] sane_init: config file line 73: trying to attach `usb 0x07b3 0x0401'
[gt68xx] sane_init: config file line 74: ignoring empty line
[gt68xx] sane_init: config file line 75: ignoring comment line
[gt68xx] sane_init: config file line 76: ignoring comment line
[gt68xx] sane_init: config file line 77: trying to attach `usb 0x0458 0x2011'
[gt68xx] sane_init: exit
[gt68xx] sane_get_devices: start: local_only = false
[gt68xx] sane_get_devices: exit
[gt68xx] sane_open: start (devicename = `/dev/usbscanner0')
[gt68xx] sane_open: found `mustek-bearpaw-2400-cu-plus' in devlist
[gt68xx] gt68xx_device_open: enter: dev=0x8065828
[gt68xx] gt68xx_device_open: leave: ok
[gt68xx] gt68xx_device_activate: model "mustek-bearpaw-2400-cu-plus"
[gt68xx] gt68xx_device_generic_req: command=0x70
[gt68xx] >> 70 01 00 00 00 00 00 00 70 01 00 00 00 00 00 00 70 01 00 00 00 00 00 00 70 01 00 00 00 00 00 00 70 01 00 00 00 00 00 00 70 01 00 00 00 00 00 00 70 01 00 00 00 00 00 00 70 01 00 00 00 00 00 00
[gt68xx] gt68xx_device_generic_req: reading response failed: Error during device I/O
[gt68xx] download_firmware: trying /usr/local/share/sane/gt68xx/PS2Dfw.usb
[gt68xx] firmware size: 7410
[gt68xx] gt68xx_device_memory_write: dev=0x8065828, addr=0x0, size=0x40, data=0x80748f0
[gt68xx] gt68xx_device_memory_write: sanei_usb_control_msg failed: Error during device I/O
[gt68xx] somewhere: gt68xx_device_memory_write (dev, addr, block_size, block): Error during device I/O
[gt68xx] download_firmware_file: firmware download failed: Error during device I/O
[gt68xx] somewhere: download_firmware_file (dev): Error during device I/O
scanimage: open of device gt68xx:/dev/usbscanner0 failed: Error during device I/O
[gt68xx] sane_exit: start
[gt68xx] gt68xx_device_free: enter: dev=0x8065828
[gt68xx] gt68xx_device_close: enter: dev=0x8065828
[gt68xx] gt68xx_device_close: leave: ok
[gt68xx] gt68xx_device_free: freeing dev
[gt68xx] gt68xx_device_free: leave: ok
[gt68xx] sane_exit: exit

--------------040106080501080002060402--