root@darkstar:~# export SANE_SG_BUFFERSIZE=32768 root@darkstar:~# export SANE_DEBUG_MICROTEK2=128 root@darkstar:~# scanimage -L [sanei_debug] Setting debug level of microtek2 to 128. [microtek2] sane_init: Microtek2 (v0.8) says hello... [microtek2] parse_config_file: fp=0x804e850 [microtek2] attach_one: name='/dev/sga' [microtek2] add_device_list: device='/dev/sga' [microtek2] attach: device='/dev/sga' [microtek2] scsi_inquiry: mi=0x804edac, device='/dev/sga' [microtek2] check_inquiry: md=0x804eda8 [microtek2] scsi_read_attributes: mi=0x804edac, device='/dev/sga', source=0 [microtek2] scsi_read_attributes: mi=0x804eeac, device='/dev/sga', source=2 [microtek2] scsi_read_attributes: mi=0x804ee2c, device='/dev/sga', source=1 [microtek2] scsi_read_system_status: md=0x804eda8, fd=-1 [microtek2] attach_one: name='/dev/sga' [microtek2] add_device_list: device='/dev/sga' [microtek2] add_device_list: device '/dev/sga' already in list [microtek2] attach_one: name='/dev/scanner' [microtek2] add_device_list: device='/dev/scanner' [microtek2] attach: device='/dev/scanner' [microtek2] scsi_inquiry: mi=0x804f78c, device='/dev/scanner' [microtek2] check_inquiry: md=0x804f788 [microtek2] scsi_read_attributes: mi=0x804f78c, device='/dev/scanner', source=0 [microtek2] scsi_read_attributes: mi=0x804f88c, device='/dev/scanner', source=2 [microtek2] scsi_read_attributes: mi=0x804f80c, device='/dev/scanner', source=1 [microtek2] scsi_read_system_status: md=0x804f788, fd=-1 [microtek2] sane_get_devices: local_only=0 [microtek2] attach: device='/dev/scanner' [microtek2] scsi_inquiry: mi=0x804f78c, device='/dev/scanner' [microtek2] check_inquiry: md=0x804f788 [microtek2] scsi_read_attributes: mi=0x804f78c, device='/dev/scanner', source=0 [microtek2] scsi_read_attributes: mi=0x804f88c, device='/dev/scanner', source=2 [microtek2] scsi_read_attributes: mi=0x804f80c, device='/dev/scanner', source=1 [microtek2] scsi_read_system_status: md=0x804f788, fd=-1 [microtek2] scsi_test_unit_ready: md=/dev/scanner [microtek2] attach: device='/dev/sga' [microtek2] scsi_inquiry: mi=0x804edac, device='/dev/sga' [microtek2] check_inquiry: md=0x804eda8 [microtek2] scsi_read_attributes: mi=0x804edac, device='/dev/sga', source=0 [microtek2] scsi_read_attributes: mi=0x804eeac, device='/dev/sga', source=2 [microtek2] scsi_read_attributes: mi=0x804ee2c, device='/dev/sga', source=1 [microtek2] scsi_read_system_status: md=0x804eda8, fd=-1 [microtek2] scsi_test_unit_ready: md=/dev/sga device `microtek2:/dev/scanner' is a Microtek ScanMaker X6USB flatbed scanner device `microtek2:/dev/sga' is a Microtek ScanMaker X6USB flatbed scanner [microtek2] sane_exit: [microtek2] sane_get_devices: local_only=0 [microtek2] sane_get_devices: sd_list_freed [microtek2] sane_exit: MICROTEK2 says goodbye. root@darkstar:~# scanimage -d microtek2:/dev/sga -T [sanei_debug] Setting debug level of microtek2 to 128. [microtek2] sane_init: Microtek2 (v0.8) says hello... [microtek2] parse_config_file: fp=0x804e850 [microtek2] attach_one: name='/dev/sga' [microtek2] add_device_list: device='/dev/sga' [microtek2] attach: device='/dev/sga' [microtek2] scsi_inquiry: mi=0x804edac, device='/dev/sga' [microtek2] check_inquiry: md=0x804eda8 [microtek2] check_inquiry: Device is not a scanner, but 0x11 [microtek2] attach_one: name='/dev/sga' [microtek2] add_device_list: device='/dev/sga' [microtek2] add_device_list: device '/dev/sga' already in list [microtek2] attach_one: name='/dev/scanner' [microtek2] add_device_list: device='/dev/scanner' [microtek2] attach: device='/dev/scanner' [microtek2] scsi_inquiry: mi=0x804f78c, device='/dev/scanner' [microtek2] check_inquiry: md=0x804f788 [microtek2] check_inquiry: Device is not a scanner, but 0x11 [microtek2] sane_open: device='/dev/sga' [microtek2] add_device_list: device='/dev/sga' [microtek2] add_device_list: device '/dev/sga' already in list [microtek2] attach: device='/dev/sga' [microtek2] scsi_inquiry: mi=0x804edac, device='/dev/sga' [microtek2] check_inquiry: md=0x804eda8 [microtek2] scsi_read_attributes: mi=0x804edac, device='/dev/sga', source=0 [microtek2] scsi_read_attributes: mi=0x804eeac, device='/dev/sga', source=2 [microtek2] scsi_read_attributes: mi=0x804ee2c, device='/dev/sga', source=1 [microtek2] scsi_read_system_status: md=0x804eda8, fd=-1 [microtek2] init_options: handle=0x804ffb8, source=0 [microtek2] get_lut_size: mi=0x804edac [microtek2] get_lut_size: mi=0x804edac, lut_size=4096, lut_word=2 [microtek2] set_option_dependencies: val=0x804ffc0, sod=0x80500b8, mode=Color [microtek2] restore_gamma_options: val=0x804ffc0, sod=0x80500b8 [microtek2] sane_get_option_descriptor: handle=0x804ffb8, opt=0 [microtek2] sane_get_option_descriptor: handle=0x804ffb8, opt=1 [microtek2] sane_get_option_descriptor: handle=0x804ffb8, opt=2 [microtek2] sane_get_option_descriptor: handle=0x804ffb8, opt=3 [microtek2] sane_get_option_descriptor: handle=0x804ffb8, opt=4 [microtek2] sane_get_option_descriptor: handle=0x804ffb8, opt=5 [microtek2] sane_get_option_descriptor: handle=0x804ffb8, opt=6 [microtek2] sane_get_option_descriptor: handle=0x804ffb8, opt=7 [microtek2] sane_get_option_descriptor: handle=0x804ffb8, opt=8 [microtek2] sane_get_option_descriptor: handle=0x804ffb8, opt=9 [microtek2] sane_get_option_descriptor: handle=0x804ffb8, opt=10 [microtek2] sane_get_option_descriptor: handle=0x804ffb8, opt=11 [microtek2] sane_get_option_descriptor: handle=0x804ffb8, opt=12 [microtek2] sane_control_option: opt=12, act=0, val=215.899994 [microtek2] sane_get_option_descriptor: handle=0x804ffb8, opt=13 [microtek2] sane_control_option: opt=13, act=0, val=297.179993 [microtek2] sane_get_option_descriptor: handle=0x804ffb8, opt=14 [microtek2] sane_get_option_descriptor: handle=0x804ffb8, opt=15 [microtek2] sane_get_option_descriptor: handle=0x804ffb8, opt=16 [microtek2] sane_get_option_descriptor: handle=0x804ffb8, opt=17 [microtek2] sane_get_option_descriptor: handle=0x804ffb8, opt=18 [microtek2] sane_get_option_descriptor: handle=0x804ffb8, opt=19 [microtek2] sane_get_option_descriptor: handle=0x804ffb8, opt=20 [microtek2] sane_get_option_descriptor: handle=0x804ffb8, opt=21 [microtek2] sane_get_option_descriptor: handle=0x804ffb8, opt=22 [microtek2] sane_get_option_descriptor: handle=0x804ffb8, opt=23 [microtek2] sane_get_option_descriptor: handle=0x804ffb8, opt=24 [microtek2] sane_get_option_descriptor: handle=0x804ffb8, opt=25 [microtek2] sane_get_option_descriptor: handle=0x804ffb8, opt=26 [microtek2] sane_get_option_descriptor: handle=0x804ffb8, opt=27 [microtek2] sane_get_option_descriptor: handle=0x804ffb8, opt=28 [microtek2] sane_get_option_descriptor: handle=0x804ffb8, opt=29 [microtek2] sane_get_option_descriptor: handle=0x804ffb8, opt=30 [microtek2] sane_get_option_descriptor: handle=0x804ffb8, opt=31 [microtek2] sane_get_option_descriptor: handle=0x804ffb8, opt=32 [microtek2] sane_get_option_descriptor: handle=0x804ffb8, opt=33 [microtek2] sane_get_option_descriptor: handle=0x804ffb8, opt=34 [microtek2] sane_get_option_descriptor: handle=0x804ffb8, opt=35 [microtek2] sane_get_option_descriptor: handle=0x804ffb8, opt=36 [microtek2] sane_get_option_descriptor: handle=0x804ffb8, opt=37 [microtek2] sane_get_option_descriptor: handle=0x804ffb8, opt=38 [microtek2] sane_get_option_descriptor: handle=0x804ffb8, opt=39 [microtek2] sane_get_option_descriptor: handle=0x804ffb8, opt=40 [microtek2] sane_get_option_descriptor: handle=0x804ffb8, opt=41 [microtek2] sane_get_option_descriptor: handle=0x804ffb8, opt=42 [microtek2] sane_get_option_descriptor: handle=0x804ffb8, opt=43 [microtek2] sane_get_option_descriptor: handle=0x804ffb8, opt=44 [microtek2] sane_get_option_descriptor: handle=0x804ffb8, opt=45 [microtek2] sane_get_option_descriptor: handle=0x804ffb8, opt=46 [microtek2] sane_get_option_descriptor: handle=0x804ffb8, opt=47 [microtek2] sane_get_option_descriptor: handle=0x804ffb8, opt=48 [microtek2] sane_get_option_descriptor: handle=0x804ffb8, opt=49 [microtek2] sane_get_option_descriptor: handle=0x804ffb8, opt=50 [microtek2] sane_get_option_descriptor: handle=0x804ffb8, opt=51 [microtek2] sane_get_option_descriptor: handle=0x804ffb8, opt=52 [microtek2] sane_get_option_descriptor: handle=0x804ffb8, opt=53 [microtek2] sane_get_option_descriptor: handle=0x804ffb8, opt=54 [microtek2] sane_control_option: opt=10, act=0, val=0.000000 [microtek2] sane_control_option: opt=11, act=0, val=0.000000 [microtek2] sane_control_option: opt=10, act=0, val=0.000000 [microtek2] sane_get_option_descriptor: handle=0x804ffb8, opt=12 [microtek2] sane_control_option: option=12, action=1, value=215.899994 [microtek2] sane_control_option: opt=11, act=0, val=0.000000 [microtek2] sane_get_option_descriptor: handle=0x804ffb8, opt=13 [microtek2] sane_control_option: option=13, action=1, value=297.179993 [microtek2] sane_start: handle=0x0x804ffb8 [microtek2] scsi_read_system_status: md=0x804eda8, fd=4 [microtek2] get_scan_parameters: handle=0x804ffb8 [microtek2] get_scan_mode_and_depth: handle=0x804ffb8 [microtek2] get_scan_mode_and_depth: mode=5, depth=8, bits_pp_in=8, bits_pp_out=8, preview=0 [microtek2] get_scan_parameters: mode=5, depth=8, bpp_in=8, bpp_out=8 [microtek2] get_scan_parameters: yres=72, x1=0, width=5100, y1=0, height=7020 [microtek2] scsi_read_system_status: md=0x804eda8, fd=4 [microtek2] scsi_send_system_status: md=0x804eda8, fd=4 [microtek2] get_lut_size: mi=0x804edac [microtek2] get_lut_size: mi=0x804edac, lut_size=4096, lut_word=2 [microtek2] calculate_gamma: ms=0x804ffb8, pos=0x8060de8, color=0, mode=None [microtek2] calculate_gamma: factor=1, mult =4095.000000, steps=4095.000000, mode=None [microtek2] calculate_gamma: ms=0x804ffb8, pos=0x8062de8, color=1, mode=None [microtek2] calculate_gamma: factor=1, mult =4095.000000, steps=4095.000000, mode=None [microtek2] calculate_gamma: ms=0x804ffb8, pos=0x8064de8, color=2, mode=None [microtek2] calculate_gamma: factor=1, mult =4095.000000, steps=4095.000000, mode=None [microtek2] set_exposure: ms=0x804ffb8 [microtek2] scsi_send_gamma: pos=0x8060de8, size=8192, word=1, color=3 [microtek2] scsi_set_window: ms=0x804ffb8, wnd=1 [microtek2] scsi_read_image_info: ms=0x804ffb8 [microtek2] scsi_read_image_info: ppl=0, bpl=61, lines=72, remain=4718592 [microtek2] scsi_wait_for_image: ms=0x804ffb8 [microtek2] scsi_read_image_status: ms=0x804ffb8 [microtek2] calculate_sane_params: ms=0x804ffb8 [microtek2] sane_get_parameters: handle=0x804ffb8, params=0xbffff57c [microtek2] reader_process: ms=0x804ffb8 [microtek2] reader_process: transferlength=4392, lines=72, linelength=61, real_bpl=0, srcbuf=0x8066df0 [microtek2] scsi_read_image: ms=0x804ffb8, buffer=0x8066df0 [microtek2] scsi_read_image: transferlength=4392 [microtek2] sane_get_parameters: format=1, last_frame=1, lines=72 [microtek2] sane_get_parameters: depth=8, ppl=0, bpl=0 Floating point exception [microtek2] chunky_proc_data: ms=0x804ffb8 [microtek2] chunky_proc_data: lines=72, bpl=61, ppl=0, bpp=1, depth=8 junk=0 [microtek2] chunky_copy_pixels: from=0x8066df0, pixels=0, fp=0x8067f20, depth=8 [microtek2] chunky_copy_pixels: from=0x8066e2d, pixels=0, fp=0x8067f20, depth=8 [microtek2] chunky_copy_pixels: from=0x8066e6a, pixels=0, fp=0x8067f20, depth=8 [microtek2] chunky_copy_pixels: from=0x8066ea7, pixels=0, fp=0x8067f20, depth=8 [microtek2] chunky_copy_pixels: from=0x8066ee4, pixels=0, fp=0x8067f20, depth=8 [microtek2] chunky_copy_pixels: from=0x8066f21, pixels=0, fp=0x8067f20, depth=8 [microtek2] chunky_copy_pixels: from=0x8066f5e, pixels=0, fp=0x8067f20, depth=8 [microtek2] chunky_copy_pixels: from=0x8066f9b, pixels=0, fp=0x8067f20, depth=8 [microtek2] chunky_copy_pixels: from=0x8066fd8, pixels=0, fp=0x8067f20, depth=8 [microtek2] chunky_copy_pixels: from=0x8067015, pixels=0, fp=0x8067f20, depth=8 [microtek2] chunky_copy_pixels: from=0x8067052, pixels=0, fp=0x8067f20, depth=8 [microtek2] chunky_copy_pixels: from=0x806708f, pixels=0, fp=0x8067f20, depth=8 [microtek2] chunky_copy_pixels: from=0x80670cc, pixels=0, fp=0x8067f20, depth=8 [microtek2] chunky_copy_pixels: from=0x8067109, pixels=0, fp=0x8067f20, depth=8 [microtek2] chunky_copy_pixels: from=0x8067146, pixels=0, fp=0x8067f20, depth=8 [microtek2] chunky_copy_pixels: from=0x8067183, pixels=0, fp=0x8067f20, depth=8 [microtek2] chunky_copy_pixels: from=0x80671c0, pixels=0, fp=0x8067f20, depth=8 [microtek2] chunky_copy_pixels: from=0x80671fd, pixels=0, fp=0x8067f20, depth=8 [microtek2] chunky_copy_pixels: from=0x806723a, pixels=0, fp=0x8067f20, depth=8 [microtek2] chunky_copy_pixels: from=0x8067277, pixels=0, fp=0x8067f20, depth=8 [microtek2] chunky_copy_pixels: from=0x80672b4, pixels=0, fp=0x8067f20, depth=8 [microtek2] chunky_copy_pixels: from=0x80672f1, pixels=0, fp=0x8067f20, depth=8 [microtek2] chunky_copy_pixels: from=0x806732e, pixels=0, fp=0x8067f20, depth=8 [microtek2] chunky_copy_pixels: from=0x806736b, pixels=0, fp=0x8067f20, depth=8 [microtek2] chunky_copy_pixels: from=0x80673a8, pixels=0, fp=0x8067f20, depth=8 [microtek2] chunky_copy_pixels: from=0x80673e5, pixels=0, fp=0x8067f20, depth=8 [microtek2] chunky_copy_pixels: from=0x8067422, pixels=0, fp=0x8067f20, depth=8 [microtek2] chunky_copy_pixels: from=0x806745f, pixels=0, fp=0x8067f20, depth=8 [microtek2] chunky_copy_pixels: from=0x806749c, pixels=0, fp=0x8067f20, depth=8 [microtek2] chunky_copy_pixels: from=0x80674d9, pixels=0, fp=0x8067f20, depth=8 [microtek2] chunky_copy_pixels: from=0x8067516, pixels=0, fp=0x8067f20, depth=8 [microtek2] chunky_copy_pixels: from=0x8067553, pixels=0, fp=0x8067f20, depth=8 [microtek2] chunky_copy_pixels: from=0x8067590, pixels=0, fp=0x8067f20, depth=8 [microtek2] chunky_copy_pixels: from=0x80675cd, pixels=0, fp=0x8067f20, depth=8 [microtek2] chunky_copy_pixels: from=0x806760a, pixels=0, fp=0x8067f20, depth=8 [microtek2] chunky_copy_pixels: from=0x8067647, pixels=0, fp=0x8067f20, depth=8 [microtek2] chunky_copy_pixels: from=0x8067684, pixels=0, fp=0x8067f20, depth=8 [microtek2] chunky_copy_pixels: from=0x80676c1, pixels=0, fp=0x8067f20, depth=8 [microtek2] chunky_copy_pixels: from=0x80676fe, pixels=0, fp=0x8067f20, depth=8 [microtek2] chunky_copy_pixels: from=0x806773b, pixels=0, fp=0x8067f20, depth=8 [microtek2] chunky_copy_pixels: from=0x8067778, pixels=0, fp=0x8067f20, depth=8 [microtek2] chunky_copy_pixels: from=0x80677b5, pixels=0, fp=0x8067f20, depth=8 [microtek2] chunky_copy_pixels: from=0x80677f2, pixels=0, fp=0x8067f20, depth=8 [microtek2] chunky_copy_pixels: from=0x806782f, pixels=0, fp=0x8067f20, depth=8 [microtek2] chunky_copy_pixels: from=0x806786c, pixels=0, fp=0x8067f20, depth=8 [microtek2] chunky_copy_pixels: from=0x80678a9, pixels=0, fp=0x8067f20, depth=8 [microtek2] chunky_copy_pixels: from=0x80678e6, pixels=0, fp=0x8067f20, depth=8 [microtek2] chunky_copy_pixels: from=0x8067923, pixels=0, fp=0x8067f20, depth=8 [microtek2] chunky_copy_pixels: from=0x8067960, pixels=0, fp=0x8067f20, depth=8 [microtek2] chunky_copy_pixels: from=0x806799d, pixels=0, fp=0x8067f20, depth=8 [microtek2] chunky_copy_pixels: from=0x80679da, pixels=0, fp=0x8067f20, depth=8 [microtek2] chunky_copy_pixels: from=0x8067a17, pixels=0, fp=0x8067f20, depth=8 [microtek2] chunky_copy_pixels: from=0x8067a54, pixels=0, fp=0x8067f20, depth=8 [microtek2] chunky_copy_pixels: from=0x8067a91, pixels=0, fp=0x8067f20, depth=8 [microtek2] chunky_copy_pixels: from=0x8067ace, pixels=0, fp=0x8067f20, depth=8 [microtek2] chunky_copy_pixels: from=0x8067b0b, pixels=0, fp=0x8067f20, depth=8 [microtek2] chunky_copy_pixels: from=0x8067b48, pixels=0, fp=0x8067f20, depth=8 [microtek2] chunky_copy_pixels: from=0x8067b85, pixels=