Re: [sane-devel] Canon MG7150

2014-05-15 Thread Rolf Bensch
Hi Gert,

Attached patch should fix your problem.

Please report anyway, so that I can patch SANE sources.

Cheers,
Rolf


Am 15.05.2014 09:34, schrieb Gert Cauwenberg:
 Scanning with resolutions from 75 up to 600dpi works fine.
 At 1200dpi it does scan, it does produce an image with the expected size
 - but the image 'wraps around' - half of the original takes up the whole
 scanwidth, and then the second half is overlayed.
 At 600 dpi: http://imgur.com/69DqOt0
 At 1200 dpi: http://imgur.com/KanArkn
 
 At 2400 dpi the same effect occurs, but now 4 times. Seems like the
 software somewhere expects a 600 dpi image?
 
 On this device all settings are controlled via touch screen, so I'm not
 sure what 'buttons' I should press - or how I am to run scanimage -A at
 the exact moment the screen is touched. Anyway, whenever I run scanimage
 -A I get the same output:
 
 [sanei_debug] Setting debug level of pixma to
 11.   
  
 
 [pixma] pixma is compiled with pthread
 support.  
 
 
 [pixma] pixma version
 0.17.4
  
 
 [pixma] Scanner model found: Name MG7100(Canon PIXMA MG7100 Series)
 matches MG7100 series
 [pixma] pixma_collect_devices() found Canon PIXMA MG7100 Series at
 bjnp://7DCF6900.local:8612
 [pixma] pixma_open(): Canon PIXMA MG7100 Series
 
 (...)
 
   Buttons:
 --button-update
 Update button state
 --button-1 int [0] [read-only]
 Button 1
 --button-2 int [0] [read-only]
 Button 2
 --original int [0] [read-only]
 Type of original to scan
 --target int [0] [read-only]
 Target operation type
 --scan-resolution int [0] [read-only]
 Scan resolution
 
 
 
 2014-05-14 19:17 GMT+02:00 Rolf Bensch r...@bensch-online.de
 mailto:r...@bensch-online.de:
 
 Hi Gert,
 
 Am 14.05.2014 11:15, schrieb Gert Cauwenberg:
  Hello,
 
  Since yesterday I'm the owner of a Canon MG7150 all-in-one, and of
  course I wanted to get it working under linux.
  I'm running Ubuntu 14.04, which comes with sane backends 1.0.23. With
  that version the scanner doesn't get detected - quite understandably
  after looking at the source. I then installed sane backends 1.0.24,
  with the scanner connected via wifi.
 
  And ... good news!
 
  scanimage -L detects the scanner, and using the 'simple scan'
  application I was able to scan an image.
 
 
 Many thanks for your report.
 
 You can install xsane. It's an easy to use gui.
 
  If there is anything more that I should test, let me know.
 
 Please check and report all scan resolutions up to 2400 dpi.
 
 And please check and report button support.
 
 How to check button support:
 (1) Press any button.
 (2) Check output from 'scanimage -A'.
 (3) Repeat (1) and (2) with all other buttons.
 
 The response from scanimage should contain useful data like this:
 
   Buttons:
 --button-update
 Update button state
 --button-1 int [1] [read-only]
 Button 1
 --button-2 int [0] [read-only]
 Button 2
 --original int [0] [read-only]
 Type of original to scan
 --target int [2] [read-only]
 Target operation type
 --scan-resolution int [0] [read-only]
 Scan resolution
 
 If you don't get any data here, enable debug output with 'export
 SANE_DEBUG_PIXMA=11'. Then the response should look like this:
 
   Buttons:
 --button-update
 Update button state
 [pixma] INTR T=1.654 len=32
 [pixma]  :00 20 00 00 00 00 00 00  00 00 00 00 00 00 00 00
 [pixma]  0010:00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
 [pixma]
 --button-1 int [1] [read-only]
 Button 1
 --button-2 int [0] [read-only]
 Button 2
 --original int [0] [read-only]
 Type of original to scan
 --target int [2] [read-only]
 Target operation type
 --scan-resolution int [0] [read-only]
 Scan resolution
 
 Please provide the lines starting with [pixma] with the pressed button.
 
 Many thanks for your help.
 
 Cheers,
 Rolf
 
 
 
--- ./pixma_mp150.c 2014-05-15 18:06:39.0 +0200
+++ ../sane-backends/backend/pixma_mp150.c  2014-05-15 18:15:43.0 
+0200
@@ -1128,7 +1128,8 @@
s-cfg-pid != MG3100_PID
s-cfg-pid != MG2100_PID
s-cfg-pid != MG5300_PID
-   s-cfg-pid != MG6300_PID)
+   s-cfg-pid != MG6300_PID
+   s-cfg-pid != MG7100_PID)
   reorder_pixels 

Re: [sane-devel] scanimage / tesseract interoperability

2014-05-15 Thread Jeff Breidenbach
When I run scanimage on a Fujitsu S1500, the program is a little
unhappy even after normal operation, note the return code.  This
is not great for pipelines. Should I attempt a fix? This is version
1.0.23-3ubuntu3 on the latest Ubuntu release. Sorry, I haven't yet
figured out how to configure a vanilla build of SANE from git to
talk to hardware.

$ scanimage --batch
Scanning -1 pages, incrementing by 1, numbering from 1
Scanning page 1
Scanned page 1. (scanner status = 5)
Scanning page 2
Scanned page 2. (scanner status = 5)
Scanning page 3
scanimage: sane_start: Document feeder out of documents
$ echo $?
7

Second, I'm attaching a slightly newer version of the patch that
emits filenames to stdout. No functional changes, I just tried to
match the surrounding code style a little better. Hopefully I got
the tab situation more or less correct. Does it look good?

$ scanimage --batch
Scanning -1 pages, incrementing by 1, numbering from 1
Scanning page 1
Scanned page 1. (scanner status = 5)
out1.pnm
Scanning page 2
Scanned page 2. (scanner status = 5)
out2.pnm
Scanning page 3
scanimage: sane_start: Document feeder out of documents
scanimage: sane_read: Operation was cancelled
Scanned page 3. (scanner status = 2)


names-to-stdout-1.1.diff.gz
Description: GNU Zip compressed data
-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject unsubscribe your_password
 to sane-devel-requ...@lists.alioth.debian.org