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

Dear maintainer,

The genesys backend do not support my Xerox Travel Scanner, so please consider 
applying this patch.

Regards

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.7.0-rc6 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages scanbuttond depends on:
ii  libc6         2.16-0experimental0
ii  libsane       1.0.22-7.4
ii  libusb-0.1-4  2:0.1.12-23+nmu1

Versions of packages scanbuttond recommends:
ii  sane-utils  1.0.22-7.4

scanbuttond suggests no packages.

-- Configuration Files:
/etc/default/scanbuttond changed [not included]

-- no debconf information
>From d78b5ff2d344b05f8ed7b9e606377f0e1053ec2e Mon Sep 17 00:00:00 2001
From: Rodolphe Pelloux-Prayer <rodol...@damsy.net>
Date: Sat, 24 Nov 2012 14:47:08 +0100
Subject: [PATCH] Xerox Travel Scanner 100 support.

---
 debian/patches/series                       |  1 +
 debian/patches/xerox-travelscanner100.patch | 42 +++++++++++++++++++++++++++++
 2 files changed, 43 insertions(+)
 create mode 100644 debian/patches/xerox-travelscanner100.patch

diff --git a/debian/patches/series b/debian/patches/series
index 0c740bc..d731127 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -4,3 +4,4 @@ path-segfault.patch
 buttonpressed-example.patch
 hp4500.patch
 fujitsu.patch
+xerox-travelscanner100.patch
diff --git a/debian/patches/xerox-travelscanner100.patch b/debian/patches/xerox-travelscanner100.patch
new file mode 100644
index 0000000..7e4ed78
--- /dev/null
+++ b/debian/patches/xerox-travelscanner100.patch
@@ -0,0 +1,42 @@
+--- a/backends/genesys.c
++++ b/backends/genesys.c
+@@ -29,28 +29,34 @@
+ 
+ static char* backend_name = "Genesys USB";
+ 
+-#define NUM_SUPPORTED_USB_DEVICES 2
++#define NUM_SUPPORTED_USB_DEVICES 3
+ 
+ static int supported_usb_devices[NUM_SUPPORTED_USB_DEVICES][3] = {
+ 	// vendor, product, num_buttons
+ 	{ 0x04a9, 0x221c, 15 },	// CanoScan LiDE 60 (15 includes combined buttons - only 4 real buttons)
+-	{ 0x04a9, 0x2213, 15 }	// CanoScan LiDE 35 (15 includes combined buttons - only 4 real buttons)
++	{ 0x04a9, 0x2213, 15 },	// CanoScan LiDE 35 (15 includes combined buttons - only 4 real buttons)
++	{ 0x04a7, 0x04ac, 15 },	// Xerox Travel Scanner 100 (2 real buttons)
+ };
+ 
+ static char* usb_device_descriptions[NUM_SUPPORTED_USB_DEVICES][2] = {
+ 	{ "Canon", "CanoScan LiDE 60" },
+-	{ "Canon", "CanoScan LiDE 35" }
++	{ "Canon", "CanoScan LiDE 35" },
++	{ "Xerox", "Travel Scanner 100"},
+ };
+ 
+ static libusb_handle_t* libusb_handle;
+ static scanner_t* genesys_scanners = NULL;
+ 
+ // Button Map for CanonScan LiDE 60
+-// button 1 = 0x08 copy  
++// button 1 = 0x08 copy
+ // button 2 = 0x01 scan
+-// button 3 = 0x02 pdf 
++// button 3 = 0x02 pdf
+ // button 4 = 0x04 mail
+ // all others are combinations of the above (if pressed together)
++
++// Button map for Xerox Travel Scanner 100
++// paper insertion = 0x02
++// button          = 0x03
+ static char button_map_lide60[256] = {  0,  2,  3,  5,
+ 				        4,  6,  7,  8,
+ 				        1,  9, 10, 11,
-- 
1.8.0

Reply via email to