[sane-devel] Canon MG7150
Rolf Bensch
rolf at bensch-online.de
Thu May 15 16:45:37 UTC 2014
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://7DCF69000000.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 <rolf at bensch-online.de
> <mailto:rolf at 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] 00000000:00 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> [pixma] 00000010: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
>
>
>
-------------- next part --------------
--- ./pixma_mp150.c 2014-05-15 18:06:39.000000000 +0200
+++ ../sane-backends/backend/pixma_mp150.c 2014-05-15 18:15:43.000000000 +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 (mp->linebuf, sptr, c, n, m, s->param->wx, line_size);
/* Crop line to selected borders */
More information about the sane-devel
mailing list