Hi Erik, I retired using your recommendation and it doesn't help much. Looks like the SANEI_DEBUG_SANEI_SCSI doesn't produces much output, but I do see some low level in /var/log/message ( I did a tail -f /var/log/message before I start sane):
Apr 5 13:23:49 localhost kernel: __alloc_pages: 3-order allocation failed. Apr 5 13:23:49 localhost kernel: __alloc_pages: 2-order allocation failed. Last message repeat many times I don't know if this have anything to do with sane. Here is the environment: SANEI_DEBUG_SANEI_SCSI=255 SANE_DEBUG_MICROTEK2=255 SANE_DEFAULT_DEVICE=/dev/sg5 SANE_SG_BUFFERSIZE=32768 Here is the debug output again: ==================================================================== [sanei_debug] Setting debug level of microtek2 to 255. [microtek2] sane_init: Microtek2 (v0.9 build 20010517) says hello... [microtek2] parse_config_file: fp=0x8054c88 [microtek2] parse_config_file: read line: # See sane-microtek2(5) for a description of the options [microtek2] parse_config_file: read line: [microtek2] parse_config_file: read line: option dump 2 [microtek2] parse_config_file: found global option option dump 2 [microtek2] parse_config_file: read line: # option lightlid-35 on [microtek2] parse_config_file: read line: # option no-backtrack-option on [microtek2] parse_config_file: read line: # scsi * * Scanner [microtek2] parse_config_file: read line: /dev/sg5 [microtek2] parse_config_file: found device /dev/sg5 [microtek2] attach_one: name='/dev/sg5' [microtek2] add_device_list: device='/dev/sg5' [microtek2] add_device_list: md=0x8054df8, malloc'd 5164 bytes [microtek2] free hdev at 0x8054958 [microtek2] attach: device='/dev/sg5' [microtek2] scsi_inquiry: mi=0x8054dfc, device='/dev/sg5' [microtek2] [inquiry] [microtek2] 12,00,00,00,60,00, [microtek2] [inquiryresult] [microtek2] 06,00,02,02,5b,00,00,00,20,20,20,20,20,20,20,20, [microtek2] 53,63,61,6e,6e,65,72,20,56,36,55,53,4c,20,20,20, [microtek2] 31,2e,30,36,a3,00,00,00,00,00,00,00,00,00,00,00, [microtek2] 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00, [microtek2] 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00, [microtek2] 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00, [microtek2] dump_area: inquiryresult [microtek2] 0: 060002025b000000 2020202020202020 ....[... [microtek2] 16: 5363616e6e657220 563655534c202020 Scanner V6USL [microtek2] 32: 312e3036a3000000 0000000000000000 1.06.... ........ [microtek2] 48: 0000000000000000 0000000000000000 ........ ........ [microtek2] 64: 0000000000000000 0000000000000000 ........ ........ [microtek2] 80: 0000000000000000 0000000000000000 ........ ........ [microtek2] check_inquiry: md=0x8054df8 [microtek2] scsi_read_attributes: mi=0x8054dfc, device='/dev/sg5', source=0 [microtek2] scsi_read_attributes: open 'Out of memory' [microtek2] attach: 'Out of memory' [microtek2] sane_get_devices: local_only=0 [microtek2] sane_get_devices: sd_list=0x8056228, malloc'd 8 bytes [microtek2] attach: device='/dev/sg5' [microtek2] scsi_inquiry: mi=0x8054dfc, device='/dev/sg5' [microtek2] scsi_inquiry: 'Out of memory' [microtek2] attach: 'Out of memory' [microtek2] sane_get_devices: attach status 'Out of memory' scanimage: no SANE devices found [microtek2] sane_exit: [microtek2] free md_first_dev at 0x8054df8 [microtek2] sane_get_devices: local_only=0 [microtek2] free sd_list at 0x8056228 [microtek2] sane_get_devices: sd_list_freed [microtek2] sane_exit: MICROTEK2 says goodbye. scsi out again, this time without the usb harddisk: Attached devices: Host: scsi0 Channel: 00 Id: 02 Lun: 00 Vendor: SEAGATE Model: ST34555W Rev: 0930 Type: Direct-Access ANSI SCSI revision: 02 Host: scsi0 Channel: 00 Id: 03 Lun: 00 Vendor: SEAGATE Model: ST34555W Rev: 0930 Type: Direct-Access ANSI SCSI revision: 02 Host: scsi0 Channel: 00 Id: 05 Lun: 00 Vendor: IBM Model: DNES-318350W Rev: SA30 Type: Direct-Access ANSI SCSI revision: 03 Host: scsi1 Channel: 00 Id: 05 Lun: 00 Vendor: PLEXTOR Model: CD-ROM PX-32TS Rev: 1.03 Type: CD-ROM ANSI SCSI revision: 02 Host: scsi1 Channel: 00 Id: 06 Lun: 00 Vendor: PLEXTOR Model: CD-R PX-R412C Rev: 1.04 Type: CD-ROM ANSI SCSI revision: 02 Host: scsi2 Channel: 00 Id: 00 Lun: 00 Vendor: Model: Scanner V6USL Rev: 1.06 Type: Scanner ANSI SCSI revision: 02 Erik Inge Bolsø wrote: >On Thu, 4 Apr 2002, Patrick S. Leung wrote: > >Uhm... > >>Host: scsi2 Channel: 00 Id: 00 Lun: 00 >> Vendor: FUJITSU Model: MHF2043AT Rev: >> Type: Direct-Access ANSI SCSI revision: 02 >>Host: scsi2 Channel: 00 Id: 00 Lun: 00 >> Vendor: Model: Scanner V6USL Rev: 1.06 >> Type: Scanner ANSI SCSI revision: 02 >> > >This looks very suspicious ... two devices on the same host & channel with >the same id and lun - shouldn't be sanely possible, and can probably >confuse quite a few things. Smells like an usb scsi emulation bug to me. > >-- >Erik I. Bolsø | email: <knan at mo.himolde.no> >The UNIX philosophy basically involves giving you enough rope to >hang yourself. And then a couple of feet more, just to be sure. > > >. >
