May 4, 2009

New Sane version 1.0.20 released

Today, great news for all Pixma MFP owners and Linux users !


After more than now 14 months, since the last Sane version released (1.0.19), the Sane team is proud to announce the new 1.0.20 version of the Sane library, available since Monday, 3 May 2009.

This new version includes as usual, many backend updates and fixes, and especially all the latest pixma backend stuff for driving Canon Pixma scanners, formerly available only in the CVS tree.

As soon as Linux distros will have incorporated this new Sane release into new distribution releases or updates, you will not need getting and building anymore by your own, the Sane CVS code, as you probably used to do for several months.

I would like to take the opportunity of this event, to congratulate all people, contributors, testers, developers, authors, bloggers, ... who participated into this important and complex project, leading today to a very successful and satisfying result.

Thanks.

Nicolas Martin

42 comments:

Anonymous said...

Thank god. Cannot wait for this to be incorporated into the Ubuntu repositories. I have had to compile sane by hand for why workstations at home that try to connect to the Pixma MP620 I ahve.

Nicolas Martin said...

Hope this will be integrated into Karmic. For now, Karmic still proposes libsane 1.0.19-23

Sonia said...

Hi, I would like to go to site for download new sane 1.20 becouse I cant use my pixma 600 now,but it is impossible from your url. Are you sure that it work?
tks Sonia

Nicolas said...

Just tried the url, and it works perfectly for me:
https://alioth.debian.org/frs/?group_id=30186

Downloaded without issue package sane-backends-1.0.20.tar.gz

Anonymous said...
This comment has been removed by a blog administrator.
Nicolas said...

Hi,

Thanks for your indications, I'll now add this scanner to the pixma backend as a new model in pixma_imageclass.c, and git push the update.

Anonymous said...

Hi Nick,
Wow, that was fast!
Thank you for your great work in Sane. D480 recently went on Staples so I am sure a lot of (future) linux users would appreciate your work.

I will try to install the latest from git without any patch, and post my results here.

BTW, is it possible to expose/add the duplex scanning function of the ADF?

Thanks,
Thana

Nicolas said...

Hi Thana,

Adding duplex ADF scan is possible, but will require a Windows snoop trace to see how it goes.

Can you contact me directly by email, I'll explain you how to proceed to get this snoop.

Rgds,
Nicolas

Anonymous said...

for me, doesn't work.... I obtain this error:

[pixma] Found scanner at ip address: 192.168.0.40
[pixma] bjnp_allocate_device(bjnp://192.168.0.40:8612)[pixma] udp_command: Sending UDP command to 192.168.0.40:8612
[pixma] Scanner identity string = MFG:Canon;CMD:MultiPASS 2.1;MDL:MP620 series;CLS:IMAGE;DES:Canon MP620 series;
[pixma] Scanner model = Canon MP620 series
[pixma] Found scanner at ip address: 192.168.0.40
[pixma] bjnp_allocate_device(bjnp://192.168.0.40:8612)[pixma] Scanner at bjnp://192.168.0.40:8612 detected, but it was added before, good!
[pixma] Found scanner at ip address: 192.168.0.40
[pixma] bjnp_allocate_device(bjnp://192.168.0.40:8612)[pixma] Scanner at bjnp://192.168.0.40:8612 detected, but it was added before, good!
[pixma] scanner discovery finished...
[pixma] pixma_collect_devices() found Canon PIXMA MP620 at bjnp://192.168.0.40:8612
[pixma] pixma_open(): Canon PIXMA MP620
[pixma] sanei_bjnp_open(bjnp://192.168.0.40:8612, 16843009):
[pixma] bjnp_allocate_device(bjnp://192.168.0.40:8612)[pixma] udp_command: Sending UDP command to 192.168.0.40:8612
[pixma] bjnp_open_tcp: Can not connect to scanner: Connection refused
[pixma] pixma_connect() failed EINVAL
[pixma] pixma_open() failed EINVAL
[pixma] pixma_close(): Canon PIXMA MP620
scanimage: open of device pixma:MP620_192.168.0.40 failed: Invalid argument

Nicolas said...

Probably looks like you are blocked by your firewall.

Either test without your firewall, or open the bjnp ports for udp and tcp traffic.
bjnp ports are: 8611, 8612, 8613 and 8614

Nicolas

Volker Kugler said...

I tried the new version of sane, but my MP970 scanner was not found from ubuntu.

Can anybody give me some detailled steps for activating my scanner over the ethernet?

Thanks

Volker kugler

Nicolas Martin said...

Did you try first your MP970 with a USB cable ?

Is your MP970 able to print using the network cable ? If not, did you configure an IP address + subnet on the MP970 ? Are the BJNP ports on your firewall (if any) opened for TCP and UDP ?

Anonymous said...

Hello Nicolas,

I have a MP640 and cannot get sane to find the device.

using the ubuntu karmic libsane (1.0.20-4), I compiled libsane-backends from git of today (15th october) which includes the usb-ids of the mp640 and copied libsane-pixma* to the right location.

now i get (i increased the pixma-version by myself):
> SANE_DEBUG_PIXMA=5 scanimage -L -d pixma

[sanei_debug] Setting debug level of pixma to 5.
[pixma] pixma version 0.16.1
[pixma] sanei_bjnp_find_devices:
[pixma] eth0 is IPv4 capable, sending broadcast..
[pixma] virbr0 is IPv4 capable, sending broadcast..
[pixma] eth0 is IPv4 capable, sending broadcast..
[pixma] virbr0 is IPv4 capable, sending broadcast..
[pixma] eth0 is IPv4 capable, sending broadcast..
[pixma] virbr0 is IPv4 capable, sending broadcast..
[pixma] eth0 is IPv4 capable, sending broadcast..
[pixma] virbr0 is IPv4 capable, sending broadcast..
[pixma] eth0 is IPv4 capable, sending broadcast..
[pixma] virbr0 is IPv4 capable, sending broadcast..
[pixma] pixma_find_scanners() found 0 devices

No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).

how can I debug this further?

Tobias Florek, me@ibotty.net

Anonymous said...

I forgot:

The scanner is not found by ethernet, but connected by usb I get:

> sane-find-scanner
[...]
found USB scanner (vendor=0x04a9 [Canon], product=0x173f [MP640 series]) at libusb:001:009
[...]

And it does not work as any user (including root).

Tobias Florek

Nicolas said...

MP640 looks to use some additional XML messages above the classic Pixma protocol, so an adaptation of the pixma backend is currently ongoing.

Please check regularly the git repository, I will upload an update when this will be fixed.

Nicolas

Christian said...

MP640 scanning now working.
This morning I received a replacement file for the backends directory from Nicolas, and now scanning using USB or WLAN works without issues.
Many thanks!
Christian

Nicolas said...

An update to the pixma backend has been uploaded to the Sane git repository, to handle the new generation of PIXMA devices, MP640, MP270, ...

Some XML encapsulation of the former Pixma protocol has been added by Canon in their Pixma protocol, at least for the scanner part, it is now operational in the pixma backend too, to support this new specification.

Any trouble with that ? Feel free to report your own experience and issues if any.

Anonymous said...

Thanks for your work. it does work (after resetting the scanner) perfectly!

Tobias Florek

Nicolas said...

Hi Tobias,

Which Pixma are you using ?

Christian said...

MP640 scanning works perfectly using the latest sane backends. I have used it extensively, without any kind of hick-up. Many thanks to Nicolas for help and guidance.

Printing with MP640 is still a problem, Canon makes no promises for new drivers, they just refer to the compatibility page.

Commercial Turboprint is expected to release a driver during last week of October 2009.

Jungehexe said...

Hi Nicolas,

i wanted to ask what about the pixma MX850? it refuses to work properly with libsane 1.0.20-4ubuntu3. it hangs on if scanning from ADF and every second time refuses to scan normally from flatbed. It is also the case if the scanner is connected dirctly as USB.

Jungehexe said...
This comment has been removed by the author.
Nicolas said...

Yes, the 1.0.20 in latest Ubuntu is in fact compiled with a pthread option, and unfortunately the 1.0.20 pixma backend was buggy when compiled like this.

A fix has been brought for that in latest git version, so hopefully, the backend supports now both threading and forked compilation options.

To solve your issue, the best to do is to download latest Sane git version, recompile and install it as exposed in this blog.

Jungehexe said...

thx, the 1.0.21th version really works :)

Anonymous said...

The sane version in ubuntu 9.10 is 1.0.20 so pixma mp630 should work - as also noted by the corresponding package info.

Does anyone know how to fix this, or do I really need to install sane 1.0.21 manually ?

If it does not work is anyone aware of a present bug report in ubuntu ?

Anonymous said...

Forgot the actual problem:

With ubuntu 9.10 the mp630 is not recognized. Could this also be related to the pthread problem ?

creativesumant said...

Hi Nicolas
I tried the new version of sane, but my scanner was not found from ubuntu.

Can u help me?

Recently I just came across a good article on "100 Linux Tips and Tricks"
Here is its link.

Nicolas said...

Which scanner are you using ?
Which Ubuntu ?

I just browsed through the book you pointed out, looks to me it was probably written in the last century, but some information can still be used for administration.
Today's Linux (like Ubuntu) is now much more "click and play" than what is depicted ;-)

Elizabeth said...

Great post.Thank you for informative.

LLM said...

Hi Nicholas,

I'm trying to get a Canon PIXMA MX860 and Ubuntu 10.04 to scan with Xsane following your directions. Everything was quite smooth throughout ./configure, make, make install until I hit the last bit about non-root user permissions for scanning. Under the various permissions for Users and Groups, there's no option to enable permissions for scanning, root or otherwise. I tried looking at this:

However, if you experience permissions problems for non root users (ressource not available) on these latest Ubuntu releases, you should try Lee's suggestion, for tweaking the /etc/udev/rules.d/40-basic-permissions.rules.

But the link seems broken. Any chance that you could post Lee's suggestion for the /etc/udev/rules?

I'm stuck at this point, as Xsane reports no devices found, despite my installation of the sane backends.

Any thoughts or ideas?

Thanks much.
Best,
Lisa

Anonymous said...

Great post about the Canon PIXMA!

Thanks for the information!

Rishi said...

This stuff rocks. Just installed the latest sane-backends from http://software.opensuse.org/ and it works perfectly for Canon PIXMA 250. Just to let folks know, you have to make sure to:
# sudo vi /etc/sane.d/dll.conf
..and uncomment (remove the # from the front) of the line that says pixma.

Restart your printer (scanner) and do:
# scanimage -L
..and then run: xsane (press Alt+F2 and type xsane [ENTER}). Enjoy.

This probably applies to every other scanner out there - though these instructions are specific to OpenSUSE 11.2 and Canon Pixma MP250.
_
Rishi

Fitzcarraldo said...

Is this blog still active?

I am trying to use the scanner of a Canon PIXMA MP560 MFP with sane-backends 1.0.21-r1 on Linux amd64 arch and, although, the scanner works, there are parallel white lines throughout the image. The lines are parallel to the direction of scanning, which seems to me to indicate a buffering problem of some kind. The unit works fine under Windows 7 on the same dual booting laptop, so it is not a hardware problem. I have a feeling it is a problem with the sane-backends driver or its configuration. Can anyone tell me whether there is a parameter I can adjust?

asheenlevrai said...

Hello,

I'm desperately trying to scan from OSX 10.6.7 with twain-sane interface (scanimage 1.0.21cvs) installed but I can't connect to my remote Canon Pixma MP500 (local network). I do not know what setting to make and I do not know where to ask for help (forum? mailing list?).
Any advice is greatly welcome.
Thank you very much in advance.
-a-

asheenlevrai said...

hello,

I'm desperately trying to scan using a remote Canon Pixma MP500 (usb-linked to an Ubuntu 10.04 server on a local network) from an iMac running OSX 10.6.7 and with twain-sane interface (scanimage 1.0.21cvs) installed. I do not know how to configure correctly (noobs) and I do not know where to get help (forum? mailing list?).
Any advice would be greatly appreciated.
Thanx a lot in advance for your help.
-a-
asheenlevrai@hotmail.com

Nicolas said...

You need to have the saned daemon running on your Ubuntu server first. Did you install and configure saned for that ?
Look in the man pages for saned for information about saned, and post also into the sane-devel mailing list if you do not succeed to get saned running

asheenlevrai said...

thanx for your reply.

Yes I think everything is OK on the server side.
I can print and scan directly from the server (attached to the MP500).
I can print and scan from an ubuntu client.
I can print and scan from a windows client.
I can print only from an OSX client.

asheenlevrai said...

thanx for your reply.

Yes I think everything is OK on the server side.
I can print and scan directly from the server (attached to the MP500).
I can print and scan from an ubuntu client.
I can print and scan from a windows client.
I can print only from an OSX client.

asheenlevrai said...

everyhing is ok now... nevermind...
Thanx

Anonymous said...

Nicolas, Thank you. MX870 wireless scanner now working with Xsane. Pity it took several days to find your blog. Is there a 'Latest Info Site' for Linux anywhere; somewhere to go/upload so we don't wade through outdated posts?
Thanks again, Paul.

Christian said...

It seems that my MP640 scanner does not get detected any more on my 64-bit system (Oneiric), after some updates. On my 32-bit system everything is fine. What could I do to get the functionality back on 64-bit?
Christian

Suncat2000 said...

Thank you for all your effort. I am using ubuntu 12.04 Precise Pangolin and performed apt-get dist-upgrade of my libsane package to 1.0.23 via the sane-backends PPA http://ppa.launchpad.net/nathan-renniewaldock/sane/ubuntu.

I am happy to report that my brand new Canon PIXMA MG6220 All-in-one printer/scanner is recognized as a PIXMA MG6100 device. The printer works using the Gutenprint 5.2.8 package. The scanner works with xsane 0.998 over my wireless network connection.

I added my device's network URI, a static IPv4 address, into pixma.conf for it to be recognized the first time. After that, it doesn't seem to need it, as my printer is on my local LAN segment.

I'm very pleased you guys were able to make this work. Thank you!

If you need a tester for future development, I would be happy to lend a hand.