[sane-devel] Big problem with fi-5650c under linux

guus guus at mailme.ath.cx
Sat Apr 14 08:42:41 UTC 2007


Hi Allan,

Thank you and Juan Pablo Mendoza for your work. I have obtained the 
latest cvs snapshot and the scanner works fine on scsi now: color, 
double sided, everything that I tried is ok.

The erroneous pixel shift is also gone. Kudos!

I would like to confirm the USB operation, but I am not familiar with 
USB. You can find some of my futile attempts below. SCSI is removed from 
fujitsu.conf, some USB settings added. Did I miss anything?

The machine will be with me for a few more days, so let me know if there 
is anything I can do to help test.

Greets,
Guus.



doo:/tmp# lsusb
Bus 002 Device 001: ID 0000:0000 
Bus 001 Device 005: ID 04c5:10ad Fujitsu, Ltd
Bus 001 Device 001: ID 0000:0000 

doo:/tmp# tail -3 /etc/sane.d/fujitsu.conf

#fi-5650C
usb 0x4c5 0x10ad

doo:/tmp# 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=0x04c5, product=0x10ad) at libusb:001:005
  # 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.

doo:/tmp# scanadf
[sanei_debug] Setting debug level of fujitsu to 10.
[fujitsu] sane_init: start
[fujitsu] sane_init: fujitsu backend 1.0.47, from sane-backends 1.0.18-cvs
[fujitsu] sane_init: finish
[fujitsu] sane_get_devices: start
[fujitsu] find_scanners: start
[fujitsu] find_scanners: finish
[fujitsu] sane_get_devices: finish
scanadf: no SANE devices found
[fujitsu] sane_exit: start
[fujitsu] sane_exit: finish

doo:/tmp#

m. allan noah wrote:

> the sane 1.0.18-X comes from your linux distro, which i assume to be
> suse? you cannot get the -X part from us. you could attempt to extract
> it from their source package, but i dont think you need to, because:
>
> you have spectacular liming. thanks to some help from Juan Pablo
> Mendoza, i have just committed some code to sane cvs that should make
> your scanner work on both scsi and usb, in all color modes. can you
> please do a cvs checkout, verify that it contains fujitsu backend v
> 1.0.47, and make some tests with it?
>
> i am especially interested in the line-shifting problem, and would
> like to see a small sample, as well as a noisier debug log if the
> problem continues with latest backend.
>
> allan
>
> On 4/13/07, guus <guus at mailme.ath.cx> wrote:
>
>> Hello All,
>>
>> I have bought a fi-5650c scanner to replace a fi-4120c.
>> In addition, I have a new linux server.
>>
>> The new scanner is fine, it works ok when I connect it instead to my 
>> old server.
>> The new server is also fine: the old fi-4120c scanner works ok on the 
>> new server.
>>
>> The problem is that the new fi-5650c scanner does not operate when I 
>> connect it to the new server:
>> scanner is recognized ok and the adf starts feeding but stops 
>> halfway, before any real scanning:
>>
>> Here is an excerpt from the debug output (full text below):
>>
>> [fujitsu] sense_handler: start
>> [fujitsu] Sense=0x5, ASC=0x26, ASCQ=00, EOM=1, ILI=0, info=00000000
>> [fujitsu] Illegal request: invalid field in parm list
>> [fujitsu] Offending byte is 00
>> [fujitsu] do_scsi_cmd: return 'Invalid argument'
>>
>> This looks like a software bug, because the scanner functions ok.
>> I would report it as a bug, if I knew more about the cause.
>>
>> My old server:
>> - kernel:  2.6.8-2-686
>> - cpu:     Intel Celeron
>> - scsi:    LSI Logic / Symbios Logic 53c810 (rev 23)
>> - libsane: 1.0.18-3
>>
>> My new server
>> - kernel:  2.6.18-4-amd64
>> - cpu:     Dual Core AMD Opteron
>> - scsi:    Adaptec AHA-7850 (rev 03)
>> - libsane: 1.0.18-6
>>
>> I am not sure where to look; my choices seem limited and/or futile:
>> - I have a k7 server that I could try, but what would be the point?
>> - I could try swopping scsi cards, but that is probably futile
>> - USB is not an option for this scanner, according to libusb.
>>
>> Unfortunately, the reported scanner dialogues have really changed 
>> from sane 1.0.18-3 to 1.0.18-6
>>
>> The most likely cause is some change in the sanei area, because the 
>> fujitsu backend is not changed,
>> according to a brief inspection of cvs.
>>
>> Most likely short term solution: fall back to 1.0.18-3
>> But how can I retrieve the 1.0.18-3 sources from cvs???
>>
>> Another minor problem of the fi-5650 under sane is that each pixel 
>> row is shifted by one pixel
>> relative to the previous row, making the output image look slanted. 
>> My own software can compensate
>> for this, so it is not a big problem. However, it may be related (who 
>> knows).
>>
>> Thanks for any help.
>> Guus.
>>
>>
>> [sanei_debug] Setting debug level of fujitsu to 10.
>> [fujitsu] sane_init: start
>> [fujitsu] sane_init: fujitsu backend 1.0.33, from sane-backends 1.0.18
>> [fujitsu] sane_init: finish
>> [fujitsu] sane_get_devices: start
>> [fujitsu] find_scanners: start
>> [fujitsu] attach_one: start
>> [fujitsu] connect_fd: start
>> [fujitsu] wait_scanner: start
>> [fujitsu] do_scsi_cmd: start
>> [fujitsu] do_scsi_cmd: finish
>> [fujitsu] wait_scanner: finish
>> [fujitsu] connect_fd: finish
>> [fujitsu] init_inquire: start
>> [fujitsu] do_scsi_cmd: start
>> [fujitsu] do_scsi_cmd: finish
>> [fujitsu] init_inquire: finish
>> [fujitsu] init_vpd: start
>> [fujitsu] do_scsi_cmd: start
>> [fujitsu] do_scsi_cmd: finish
>> [fujitsu] init_vpd: finish
>> [fujitsu] init_model: start
>> [fujitsu] init_model: finish
>> [fujitsu] init_options: start
>> [fujitsu] init_options: finish
>> [fujitsu] disconnect_fd: start
>> [fujitsu] disconnect_fd: finish
>> [fujitsu] attach_one: finish
>> [fujitsu] find_scanners: finish
>> [fujitsu] sane_get_devices: finish
>> [fujitsu] sane_open: start
>> [fujitsu] connect_fd: start
>> [fujitsu] wait_scanner: start
>> [fujitsu] do_scsi_cmd: start
>> [fujitsu] do_scsi_cmd: finish
>> [fujitsu] wait_scanner: finish
>> [fujitsu] connect_fd: finish
>> [fujitsu] sane_open: finish
>> scanadf: rounded value of br-x from 215.872 to 215.872
>> scanadf: rounded value of br-y from 279.364 to 279.364
>> [fujitsu] sane_start: start
>> [fujitsu] scanner_control: start
>> [fujitsu] do_scsi_cmd: start
>> [fujitsu] do_scsi_cmd: finish
>> [fujitsu] scanner_control: finish
>> [fujitsu] calculateDerivedValues: start
>> [fujitsu] xres=600, tlx=0, brx=10200, pw=10200, maxx=14592
>> [fujitsu] yres=600, tly=0, bry=13200, ph=13200, maxy=40800
>> [fujitsu] xres=600, tlx=0, brx=10208, pw=10200, maxx=14592
>> [fujitsu] yres=600, tly=0, bry=13200, ph=13200, maxy=40800
>> [fujitsu] calculateDerivedValues: finish
>> [fujitsu] setup_buffers: start
>> [fujitsu] setup_buffers: finish
>> [fujitsu] set_window: start
>> [fujitsu] do_scsi_cmd: start
>> [fujitsu] do_scsi_cmd: finish
>> [fujitsu] set_window: finish
>> [fujitsu] object_position: start
>> [fujitsu] do_scsi_cmd: start
>> [fujitsu] do_scsi_cmd: finish
>> [fujitsu] wait_scanner: start
>> [fujitsu] do_scsi_cmd: start
>> [fujitsu] do_scsi_cmd: finish
>> [fujitsu] wait_scanner: finish
>> [fujitsu] object_position: finish
>> [fujitsu] start_scan: start
>> [fujitsu] do_scsi_cmd: start
>> [fujitsu] do_scsi_cmd: finish
>> [fujitsu] start_scan: finish
>> [fujitsu] sane_start: finish
>> [fujitsu] sane_get_parameters: start
>> [fujitsu] calculateDerivedValues: start
>> [fujitsu] xres=600, tlx=0, brx=10208, pw=10200, maxx=14592
>> [fujitsu] yres=600, tly=0, bry=13200, ph=13200, maxy=40800
>> [fujitsu] xres=600, tlx=0, brx=10208, pw=10200, maxx=14592
>> [fujitsu] yres=600, tly=0, bry=13200, ph=13200, maxy=40800
>> [fujitsu] calculateDerivedValues: finish
>> [fujitsu] sane_get_parameters: finish
>> [fujitsu] sane_read: start
>> [fujitsu] read_from_scanner: start
>> [fujitsu] do_scsi_cmd: start
>> [fujitsu] sense_handler: start
>> [fujitsu] Sense=0x5, ASC=0x26, ASCQ=00, EOM=1, ILI=0, info=00000000
>> [fujitsu] Illegal request: invalid field in parm list
>> [fujitsu] Offending byte is 00
>> [fujitsu] do_scsi_cmd: return 'Invalid argument'
>> [fujitsu] read_from_scanner: error reading data block status = 4
>> [fujitsu] read_from_scanner: finish
>> [fujitsu] sane_read: front returning 4
>> scanadf: sane_read: Invalid argument
>> Invalid argument
>> Scanned 0 pages
>> [fujitsu] sane_cancel: start
>> [fujitsu] do_cancel: start
>> [fujitsu] do_cancel: finish
>> [fujitsu] sane_cancel: finish
>> [fujitsu] sane_close: start
>> [fujitsu] do_cancel: start
>> [fujitsu] do_cancel: finish
>> [fujitsu] disconnect_fd: start
>> [fujitsu] disconnect_fd: finish
>> [fujitsu] sane_close: finish
>> [fujitsu] sane_exit: start
>> [fujitsu] disconnect_fd: start
>> [fujitsu] disconnect_fd: finish
>> [fujitsu] sane_exit: finish
>>
>>
>> -- 
>> sane-devel mailing list: sane-devel at lists.alioth.debian.org
>> http://lists.alioth.debian.org/mailman/listinfo/sane-devel
>> Unsubscribe: Send mail with subject "unsubscribe your_password"
>>              to sane-devel-request at lists.alioth.debian.org
>>
>
>




More information about the sane-devel mailing list