Hi, scanimage needs a redirection to the image output and a separate redirection to the debug outputs, e.g.
SANE_DEBUG_PIXMA=11 scanimage <...> 2> mx495_adf.log > image.pnm For gui frontends you can use the combined redirection, e.g. SANE_DEBUG_PIXMA=11 xsane &> mx495_adf.log SANE_DEBUG_PIXMA=11 gscan2pdf &> mx495_adf.log I suppose that you need to patch pixma_mp150.c with attached patch file for enabling adf scans. Please report your results. Hope this helps. Cheers, Rolf Am 01.11.19 um 12:51 schrieb Franz Felberer: > Hi, > > Ok, thanks: > > SANE_DEBUG_PIXMA=11 scanimage &> mx495_adf.log > > SANE_DEBUG_PIXMA=11 scanimage --source "Automatic Document Feeder" &> > mx495_adf_source.log > > > Let me know if you need additional logs/information… (I didn’t manage to > run SANE_DEBUG_PIXMA=11 scanimage <...> 2>&1 > mx495_adf.log => zsh: > parse error near `>&’, > With bash: bash: ...: No such file or directory) > > > > > > > >> Am 29.10.2019 um 19:16 schrieb Mikhail Novosyolov >> <m.novosyo...@rosalinux.ru <mailto:m.novosyo...@rosalinux.ru>>: >> >> You can make the log that Rolf asked for with any program which uses >> sane, including scanimage >> >> SANE_DEBUG_PIXMA=11 scanimage <...> 2>&1 > mx495_adf.log >> >> >> 26 октября 2019 г. 20:32:00 GMT+03:00, Franz Felberer >> <fr...@felberer.at <mailto:fr...@felberer.at>> пишет: >> >> Dear Rolf, >> >> Thanks for your help. I have a headless server (no gscan2pgf) and >> I would like to use the sane interface with mayan-edms. >> This works for scanning for the flatbed but not for adf. >> >> Same is true for the cli: >> >> scanimage --source "Flatbed" --format=png > test.png >> => scan is saved as image >> >> scanimage --source "Automatic Document Feeder" --format=tiff > >> test.tiff >> => scanimage: sane_read: Operation was canceled >> >> scanimage --source "Automatic Document Feeder" --format=png > >> test.png -v >> scanimage: scanning image of size 638x1050 pixels at 24 bits/pixel >> scanimage: acquiring RGB frame >> scanimage: min/max graylevel value = 255/0 >> scanimage: sane_read: Operation was canceled >> >> Best >> Franz >> >>> Am 26.10.2019 um 15:31 schrieb Rolf Bensch <r...@bensch-online.de >>> <mailto:r...@bensch-online.de>>: >>> >>> Hi, >>> >>> I just had a look at this ppa. The builds are ancient (from >>> 2013). Canon >>> released MX495 in 2015 (as documented in Sane sources). >>> >>> If you need to install recent Sane to Ubuntu or an Ubuntu clone, >>> you can >>> use my ppa: >>> https://launchpad.net/~rolfbensch/+archive/ubuntu/sane-git >>> >>> Hope this helps. >>> >>> Cheers, >>> Rolf >>> >>> >>> Am 23.10.19 um 13:39 schrieb Ulf Zibis: >>>> Hi Franz, >>>> >>>> you may try the PPA from Micael Gruz: >>>> >>>> https://forum.ubuntuusers.de/topic/schwarz-weiss-druck-auf-canon-mx885-geht-nicht >>>> >>>> https://forum.ubuntuusers.de/topic/problem-mit-dem-einrichten-von-repository-ppa-/#post-8056358 >>>> >>>> Hope that helps, >>>> >>>> Ulf >>>> >>>> Am 22.10.19 um 18:34 schrieb Franz Felberer: >>>>> Dear all, >>>>> >>>>> Thanks for your great work. I can verify that scan image works >>>>> with the Canon Pixma MX495 (it gets recognised as a 490, which >>>>> is often the case with all kind of software). >>>>> (Cubietruck wird ARMBIAN via wifi). I dient get the scanadf >>>>> correctly working yet. (It doesn’t pull-in the paper). >>>>> >>>>> Franz >>>>> >>>> >> >> >> -- >> Простите за краткость, создано в K-9 Mail. >
--- /home/public/workspace/sane-backends/.git/.gitk-tmp.G6KdTH/1/[ee3f9b47ece844262f4614ebedfd9f21bebc3f24] pixma_mp150.c +++ /home/public/workspace/sane-backends/.git/.gitk-tmp.G6KdTH/1/[ec7b84f5fce2fef84c4816306f0cfb55b8e66e05] pixma_mp150.c @@ -1721,7 +1721,7 @@ DEVICE ("Canon PIXMA E460 Series", "E460", E460_PID, 0, 600, 0, 0, 638, 877, PIXMA_CAP_CIS), /* Latest devices (2015) Generation 5 CIS */ - DEVICE ("Canon PIXMA MX490 Series", "MX490", MX490_PID, 0, 600, 0, 0, 638, 1050, PIXMA_CAP_CIS | PIXMA_CAP_ADF), + DEVICE ("Canon PIXMA MX490 Series", "MX490", MX490_PID, 0, 600, 0, 0, 638, 1050, PIXMA_CAP_CIS | PIXMA_CAP_ADF | PIXMA_CAP_ADF_JPEG), DEVICE ("Canon PIXMA E480 Series", "E480", E480_PID, 0, 600, 0, 0, 638, 1050, PIXMA_CAP_CIS | PIXMA_CAP_ADF), DEVICE ("Canon PIXMA MG3600 Series", "MG3600", MG3600_PID, 0, 1200, 0, 0, 638, 877, PIXMA_CAP_CIS), DEVICE ("Canon PIXMA MG7700 Series", "MG7700", MG7700_PID, 0, 2400, 0, 0, 638, 877, PIXMA_CAP_CIS),