[sane-devel] SCX-4200 scanner, libusb_1.0 and sane (fwd)

Henry Jennison hjdk2958 at aei.ca
Thu Mar 22 22:55:13 UTC 2012



---------- Forwarded message ----------
Date: Thu, 22 Mar 2012 18:26:05 -0400 (EDT)
From: Henry Jennison <hjdk2958 at aei.ca>
To: Alex Belkin <abc at telekom.ru>
Subject: SCX-4200 scanner, libusb_1.0  and sane

I have fixed a problem with my usb scanner.
I attach the details.
I hope this information is useful.
Regards
-------------- next part --------------
Fix for SCX-4200 scanner, Slackware.13.37-SMP (Linux 2.6.37.6) x86_64,
libusb_1.0, Sane-1.0.22  ( source package ... sane-backends-1.0.22 )
Author HJ Mar 2012

Problem:
With sane-1.0.22 and libusb_1.0
sane-find-scanner, scanimage and xsane all fail to find the scanner unit of the
Samsung SCX-4200 mfp.  The printer unit is handled OK by splix/cups.  The Xerox_mfp
driver ought to work for the scanner.

Fix:
(Apologies for not using proper patch format)!

1. /usr/include/libv4l1.h
   Comment out reference to libv4l1-videodev.h on line 29 -  avoids make problem
/*
 * #include <libv4l1-videodev.h>
*/

2. sane-find-scanner.c
   Negate the test on line 1040 
   ... old 
   || config0->interface[intf].altsetting) 
   ... should be
   || !config0->interface[intf].altsetting) 

3. xerox_mfp.c
   Insert line 42 to accomodate libusb_1.0
   ... new
   { "libusb", usb_dev_request, usb_dev_open, usb_dev_close, usb_configure_device },

Apply:
 
 ./configure --enable-libusb_1.0 
 make
 move   tools/sane-find-scanner  to  /usr/bin
 move   backend/.libs/libsane-xerox_mfp.so.1.0.22  to  /usr/lib64/sane
 


More information about the sane-devel mailing list