Package: scanbuttond
Version: 0.2.3.cvs20090713-13
Severity: wishlist
Tags: upstream

Please add support for Fujitsu fi-5220C. With the attached patch applied, the 
scanbuttons of the scanner seems to work flawlessly on my machine. 

The button "Function" cyles the seven-segment display through the numbers 1-9 
and "C". Pressing the button "Scan" causes scanbuttond to receive a "button X" 
where X is the number currently displayed in the display. Pressing the button 
"Send to" causes X to be the value of the display plus 10. 

More information on the scanner:

X60t:/home/berny# lsusb | grep 5220
Bus 001 Device 007: ID 04c5:10e1 Fujitsu, Ltd fi-5220C
X60t:/home/berny# scanimage -L | grep 5220
^[[Adevice `fujitsu:fi-5220Cdj:11607' is a FUJITSU fi-5220Cdj scanner
X60t:/home/berny# sane-find-scanner | grep 04c5
found USB scanner (vendor=0x04c5, product=0x10e1) at libusb:001:007

Please check whether it is right to decrease the numbers in the following two 
lines (as I did in the patch):

        
        -static int supported_usb_devices[NUM_SUPPORTED_USB_DEVICES][5] = {
        +static int supported_usb_devices[NUM_SUPPORTED_USB_DEVICES][3] = {

and

        -static int supported_usb_devices[NUM_SUPPORTED_USB_DEVICES][5] = {
        +static int supported_usb_devices[NUM_SUPPORTED_USB_DEVICES][3] = {

the numbers had been increased in 
http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=5;filename=fujitsu-fi-6130.patch;att=1;bug=696392
 but I believe that this was done erraneously. I checked other backends and 
there the numbers did not increase with the number of devices. So I guess the 
number refers to the number of parameters in the array or something. I 
decreased it and I cannot observe any negative effects on my machine so far. 
However as i am not a programmer, someone who is should check whether this is 
right.

Thanks for the work on scanbuttond. It has made recurring tasks like copying or 
scanning much more convenient.  

-- System Information:
Debian Release: 6.0.7
  APT prefers stable
  APT policy: (700, 'stable'), (500, 'proposed-updates'), (500, 'oldstable'), 
(1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages scanbuttond depends on:
ii  libc6                        2.11.3-4    Embedded GNU C Library: Shared lib
ii  libsane                      1.0.21-9    API library for scanners
ii  libusb-0.1-4                 2:0.1.12-16 userspace USB programming library

Versions of packages scanbuttond recommends:
ii  sane-utils                    1.0.21-9   API library for scanners -- utilit

Versions of packages scanbuttond suggests:
ii  lockfile-progs           0.1.15+squeeze1 Programs for locking and unlocking

-- Configuration Files:
/etc/default/scanbuttond changed:
RUN=yes
RUN_AS_USER=saned
QUIET_LOG=1


-- no debconf information
--- scanbuttond-0.2.3.cvs20090713-with-debian-patches/backends/fujitsu.c	2013-03-30 16:14:52.000000000 +0100
+++ scanbuttond-0.2.3.cvs20090713/backends/fujitsu.c	2013-03-30 18:45:54.000000000 +0100
@@ -29,19 +29,21 @@
 
 static char* backend_name = "Fujitsu USB";
 
-#define NUM_SUPPORTED_USB_DEVICES 4
+#define NUM_SUPPORTED_USB_DEVICES 5
 
-static int supported_usb_devices[NUM_SUPPORTED_USB_DEVICES][5] = {
+static int supported_usb_devices[NUM_SUPPORTED_USB_DEVICES][3] = {
 	{ 0x04c5, 0x11a2, 1 },  // Fujitsu ScanSnap S1500
 	{ 0x04c5, 0x1096, 1 },  // Fujitsu fi-5110EOX
+	{ 0x04c5, 0x10e1, 1 },  // Fujitsu fi-5220C
 	{ 0x04c5, 0x114f, 1 },  // Fujitsu fi-6130
 	{ 0x04c5, 0x11f3, 1 }   // Fujitsu fi-6130Z
 };
 
 // TODO: check if this backend really works on the Epson 2580 too...
-static char* usb_device_descriptions[NUM_SUPPORTED_USB_DEVICES][4] = {
+static char* usb_device_descriptions[NUM_SUPPORTED_USB_DEVICES][2] = {
 	   { "Fujitsu", "ScanSnap S1500" },
 	   { "Fujitsu", "fi-5110EOX" },
+	   { "Fujitsu", "fi-5220C" },
 	   { "Fujitsu", "fi-6130" },
 	   { "Fujitsu", "fi-6130Z" }
 };

Reply via email to