[sane-devel] Troubles with PIXMA MX870 and USB
Hi, I got some more info on the router issue and ADF Duplex. ADF Duplex works properly - I just had to set the page count properly or tell the client to scan all available pages (e.g. in gscan2pdf). I hadn't tried very hard at the time of writing and figured it out later this afternoon - sorry for that. Second info is on the router. Although it was supposed to handle the DNS lookup of local ip addresses, it seems it doesn't handle it at all. The wrong DNS entries seem to come from my ISP (Vodafone in Germany). I "solved" the issue by configuring an external DNS server in my router (i.e. the resolv.conf on my computer still is configured to use the router as nameserver, but the router acting as DNS proxy gets information from an independent DNS server - not the one provided by my ISP). So, for now the USB connection (not working at all) is the worst issue (would be faster then wireless networking, I hope ;-)). Stephan On 31.01.2011 20:31, Louis Lagendijk wrote: > On Mon, 2011-01-31 at 12:08 +0100, Stephan Ritscher wrote: >> Hi folks, >> >> I just got a new Canon Pixma MX870, but it doesn't work completely, >> yet. >> >> Let me start with my setup. I run Gentoo with kernel 2.6.36-gentoo-r5 >> on an Intel(R) Core(TM)2 Duo CPU T9300. I use the latest sane-backends >> from GIT and sane-frontends-1.0.14. >> >> I want to run the scanner in two different configurations - via >> wireless network and via usb. I'll start with the wireless setup. >> >> First of all, it recognizes my printer - kind of. My router (EasyBox >> 803) resolves all ip addresses in the local network as "localhost" and >> thereby confuses SANE. >> # /usr/libexec/cups/backend/bjnp >> network bjnp://localhost:8611 "Canon MX870 series" "Canon >> MX870 series localhost" >> >> "MFG:Canon;CMD:BJL,BJRaster3,BSCCe,NCCe,IVEC,IVECPLI;SOJ:TXT01,BJNP2;MDL:MX870 >> series;CLS:PRINTER;DES:Canon MX870 >> series;VER:1.030;STA:10;FSI:04;HRI:EU;MSI:DAT,E3,HFSF;PDR:4;" >> If I add the line "bjnp://192.168.2.101:8612" >> to /etc/sane.d/pixma.conf, scanimage and other applications recognize >> my scanner and work properly. I attached the log file corresponding to >> # export SANE_DEBUG_PIXMA=3 >> # scanimage -T 2> scan-net.log > This is the second router I have seen that messes up reverse lookup of > ip-adresses. I will put this on my to-do list to work around this. A > solution will take some time and will not be in 1.2.22 as the merge > window for new features has already closed. I will see if I can do the > change in both the sane backend and in cups-bjnp. I have seen a fritzbox > return "noname" when a reverse lookup is done, but this one is > definitely even more incorrect. Localhost is normally 127.0.0.1 > > your work-around is the correct solution for now. > I leave your other issue for Nicolas to answer, as he is the maintainer > of the backend > > kind regards, Louis > > > -- > sane-devel mailing list: sane-devel at lists.alioth.debian.org > http://lists.alioth.debian.org/mailman/listinfo/sane-devel > Unsubscribe: Send mail with subject "unsubscribe your_password" > to sane-devel-request at lists.alioth.debian.org
[sane-devel] Add function sanei_usb_get_endpoint
Am Montag, 31. Januar 2011, um 22:11:14 schrieb m. allan noah: > Good enough reasoning for me. Commit ASAP. > > Now, when you modify the magicolor backend to use it, that might be a > new feature :) No, the magicolor backend currently uses just one endpoint (0x85), so I set it once and leave it unchanged. Cheers, Reinhold -- -- Reinhold Kainhofer, reinhold at kainhofer.com, http://reinhold.kainhofer.com/ * Financial & Actuarial Math., Vienna Univ. of Technology, Austria * http://www.fam.tuwien.ac.at/, DVR: 0005886 * LilyPond, Music typesetting, http://www.lilypond.org
[sane-devel] Troubles with PIXMA MX870 and USB
To scan in Duplex ADF mode, you need to set 2 pages to scan in Xsane. Otherwise, it will stop at the first page. Did you try that ? Nicolas Le lundi 31 janvier 2011 ? 12:08 +0100, Stephan Ritscher a ?crit : > Hi folks, > > I just got a new Canon Pixma MX870, but it doesn't work completely, > yet. > > Let me start with my setup. I run Gentoo with kernel 2.6.36-gentoo-r5 > on an Intel(R) Core(TM)2 Duo CPU T9300. I use the latest sane-backends > from GIT and sane-frontends-1.0.14. > > I want to run the scanner in two different configurations - via > wireless network and via usb. I'll start with the wireless setup. > > First of all, it recognizes my printer - kind of. My router (EasyBox > 803) resolves all ip addresses in the local network as "localhost" and > thereby confuses SANE. > # /usr/libexec/cups/backend/bjnp > network bjnp://localhost:8611 "Canon MX870 series" "Canon > MX870 series localhost" > > "MFG:Canon;CMD:BJL,BJRaster3,BSCCe,NCCe,IVEC,IVECPLI;SOJ:TXT01,BJNP2;MDL:MX870 > series;CLS:PRINTER;DES:Canon MX870 > series;VER:1.030;STA:10;FSI:04;HRI:EU;MSI:DAT,E3,HFSF;PDR:4;" > If I add the line "bjnp://192.168.2.101:8612" > to /etc/sane.d/pixma.conf, scanimage and other applications recognize > my scanner and work properly. I attached the log file corresponding to > # export SANE_DEBUG_PIXMA=3 > # scanimage -T 2> scan-net.log > ADF is working, too, but I didn't get "ADF Duplex" running (Xsane > scans one page and then stops - is this supposed to work, anyways?). > Now trying USB cable, I removed the extra line > from /etc/sane.d/pixma.conf. After attaching the USB cable, I get > # dmesg -c > usb 2-2.1: new high speed USB device using ehci_hcd and > address 8 > usblp0: USB Bidirectional printer dev 8 if 1 alt 0 proto 2 vid > 0x04A9 pid 0x1743 > scsi7 : usb-storage 2-2.1:1.2 > usblp1: USB Bidirectional printer dev 8 if 3 alt 0 proto 2 vid > 0x04A9 pid 0x1743 > scsi 7:0:0:0: Direct-Access CanonMX870 series 0103 > PQ: 0 ANSI: 2 > sd 7:0:0:0: Attached scsi generic sg2 type 0 > sd 7:0:0:0: [sdb] Attached SCSI removable disk > I also attached the gzipped output of > # lsusb -v > lsusb.log > Now I ran > # scanimage -T 2> scan-usb.log > The scanner makes some noises, but the command returns immediately. > Xsane fails with "Error during read: Error during device I/O". > > In some forum I read that unloading ehci_hcd helps. Thus I tried > # sudo rmmod ehci_hcd > # scanimage -T 2> scan-usb2.log > The scanner shows "Processing... Please wait momentarily.", but makes > no noises of activity. Since scanimage gets stuck, I terminated it > with kill -9. The "Processing..." message only disappears on > unplugging the USB connection. > > Do you have any suggestions? > > Best regards > Stephan Ritscher > > -- > sane-devel mailing list: sane-devel at lists.alioth.debian.org > http://lists.alioth.debian.org/mailman/listinfo/sane-devel > Unsubscribe: Send mail with subject "unsubscribe your_password" > to sane-devel-request at lists.alioth.debian.org
[sane-devel] A couple issues with genesys HP G4010
Le Sunday 30 January 2011 19:46:00 Brian Shaver, vous avez ?crit : > Thanks Stef! > > Let me know if you'd like any additional information, or if I can be any > help with the fix. > > Thanks, > Brian .. > > On Sun, Jan 30, 2011 at 2:36 AM, stef wrote: > > Le Saturday 29 January 2011 21:26:03 Brian Shaver, vous avez ?crit : > > > allan, > > > If I comment out the function call which was causing the crash, then > > > I'm able to run with a high genesys debug level. This function call > > > was just for debug purposes to create the "unprocessed.pnm" file. The > > > following commands were executed with: > > > > > > SANE_DEBUG_GENESYS=255 > > > SANE_DEBUG_SANEI_MAGIC=255 > > > > > > ./scanimage --mode Lineart --resolution 100 -l 21.4 -t 79.7 -x 148.7 -y > > > 138.9 --swdespeck=yes > /tmp/despeck.pnm 2> /tmp/despeck.log > > > > > > ./scanimage --mode Lineart --resolution 100 -l 21.4 -t 79.7 -x 148.7 -y > > > 138.9 > /tmp/no_despeck.pnm 2> /tmp/no_despeck.log > > > > > > Attached are the images and log files. The black band at the bottom of > > > > the > > > > > despeck image does not change size based on the despeck value. > > > > > > Thanks, > > > Brian .. > > > > > > On Sat, Jan 29, 2011 at 11:30 AM, m. allan noah > > > > wrote: > > > > brian- I did not write the genesys backend, but I did write the > > > > sanei_magic library that it uses to provide the swdespeck option. It > > > > would be interesting to see a low resolution version of the two > > > > images, and a log with: > > > > > > > > SANE_DEBUG_SANEI_MAGIC=255 > > > > > > > > combined with whatever the highest debug level genesys will give > > > > without crashing. > > > > > > > > allan > > > > > > > > On Fri, Jan 28, 2011 at 8:19 AM, Brian Shaver > > > > > > > > wrote: > > > > > I'm using the Lineart mode and trying the --swdespeck option and > > > > > I've noticed its leaving a black band along the bottom of the > > > > > image. The 2nd issue, is that when I turn the debug up ( > > > > SANE_DEBUG_GENESYS=10 > > > > > > > ) and try the same scan, the process seg faults. The following is > > > > > the stack from the core: > > > > > (gdb) bt > > > > > #0 0x7fa3e4ce35c8 in sanei_genesys_write_pnm_file > > > > > (filename=0x7fa3e4cec479 "unprocessed.pnm", > > > > > > > > > > data=0x7fa3e2267000 , > > > > > depth=1, > > > > > > > > > > channels=1, pixels_per_line=2360, lines=3188) > > > > > > > > > > at genesys_low.c:144 > > > > > > > > > > #1 0x7fa3e4caa60f in genesys_buffer_image (s=0x99e340) at > > > > > genesys.c:6895 > > > > > #2 0x7fa3e4caccab in sane_genesys_start (handle=0x99e340) at > > > > > genesys.c:7864 > > > > > #3 0x7fa3eae33ae2 in sane_dll_start (handle=0x99b2a0) at > > > > > dll.c:1263 #4 0x7fa3eae20d38 in sane_start (h=0x99b2a0) at > > > > > dll-s.c:48 #5 0x00406d1c in main (argc=13, > > > > > argv=0x7fffe2b73a08) at scanimage.c:2283 > > > > > > > > > > The code is trying to write out a file ( unprocessed.pnm ) > > > > containing > > > > > > ... I > > > > > > > > > think the Lineart converted data before performing the despeck > > > > process. > > > > > > > I'd be happy to help with a fix for this, or provide further > > > > > information > > > > > > > > or > > > > > > > > > testing. > > > > > Thanks, > > > > > Brian .. > > > > > -- > > > > > sane-devel mailing list: sane-devel at lists.alioth.debian.org > > > > > http://lists.alioth.debian.org/mailman/listinfo/sane-devel > > > > > Unsubscribe: Send mail with subject "unsubscribe your_password" > > > > > > > > > > to sane-devel-request at lists.alioth.debian.org > > > > > > > > -- > > > > "The truth is an offense, but not a sin" > > > > > > Hello, > > > >thanks for providing these detailed information. For the crash, > >the > > > > image > > writing function doesn't handle line art bitmap format. I'm currently > > fixing > > that. For the black band, it is due to incorrect settings in registers in > > line > > art mode which makes the backend reading too much data from the scanner. > > This > > extra data is filled with 'noise'. I am currently looking into that. > > > > Regards, > > > > Stef Hello, I have committed the fix for this bug. Now image size will be correct. The logging issue is also fixed. You may try the latest git source code. Regards, Stef
[sane-devel] Add function sanei_usb_get_endpoint
Am Montag, 31. Januar 2011, um 21:42:04 schrieb m. allan noah: > I will not complain if you commit, but I don't understand the point. > You are not saving any cycles when you look up the value instead of > just setting it. It's the same switch(), touching the same variable. > Plus, if you DO decide you need to change it, you now have to call a > second function. Your code now does more operations, not less. Yes, the purpose is not so much about deciding whether one has to use a different endpoint in normal operation, but about debugging (so that you can see in your own backend if the correct endpoint is used, when things don't work). And also about being able to restore the previous value if an endpoint is used for use one USB operationr.. With that new function, you can store the old endpoint, change it, do your USB operation and restore the old endpoint. That might be useful if a scanner uses one endpoint for most operations, but another endpoint for some very particular operations. I can imagine that the code is clearer if one sets and immediately resets the endpoint for the operation(s) on the less-used endpoint. Cheers, Reinhold -- -- Reinhold Kainhofer, reinhold at kainhofer.com, http://reinhold.kainhofer.com/ * Financial & Actuarial Math., Vienna Univ. of Technology, Austria * http://www.fam.tuwien.ac.at/, DVR: 0005886 * LilyPond, Music typesetting, http://www.lilypond.org
[sane-devel] Add function sanei_usb_get_endpoint
Since we now have the possibility to change the endpoint used for a particular USB communication type, we also need a way to retrieve the current endpoint, so that one can e.g. decide whether a switch to a different endpoint is needed at all, or reset the endpoint to the old value after a single usb operation on a different endpoint. Attached is a simple patch that adds this function sanei_usb_get_endpoint to sanei/, plus a range check in sanei_usb_set_endpoint. Okay to push to master or does that already violate the feature freeze? Cheers, Reinhold -- -- Reinhold Kainhofer, reinhold at kainhofer.com, http://reinhold.kainhofer.com/ * Financial & Actuarial Math., Vienna Univ. of Technology, Austria * http://www.fam.tuwien.ac.at/, DVR: 0005886 * LilyPond, Music typesetting, http://www.lilypond.org -- next part -- A non-text attachment was scrubbed... Name: 0001-sanei_usb-Add-function-sanei_usb_get_endpoint-add-ra.patch Type: text/x-patch Size: 3366 bytes Desc: not available URL: <http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20110131/4aca1da8/attachment.bin>
[sane-devel] Sane backends in feature freeze
Am Montag, 31. Januar 2011, um 17:59:55 schrieb Martin Kho: > On Monday 31 January 2011 08:45:14 m. allan noah wrote: > > Sane-backends is now in feature freeze in preparation for release of > > 1.0.22. Please only commit bug fixes and documentation updates. > > > > Feb 06, 2011: Code freeze (only horrible bugs + documentation updates) > > Feb 13, 2011: Release > > > > allan > > Hi, > > Will the Magicolor backend be part of the next release? I hope so ;) > It's not called in the /po/POTFILES file. Because doc/backend-writing.txt didn't say so... Attached is a patch that updates doc/backend-writing.txt and po/README correspondingly. Okay to push to master? Cheers, Reinhold -- -- Reinhold Kainhofer, reinhold at kainhofer.com, http://reinhold.kainhofer.com/ * Financial & Actuarial Math., Vienna Univ. of Technology, Austria * http://www.fam.tuwien.ac.at/, DVR: 0005886 * LilyPond, Music typesetting, http://www.lilypond.org -- next part -- A non-text attachment was scrubbed... Name: 0001-Update-developer-docs-about-translations.patch Type: text/x-patch Size: 2020 bytes Desc: not available URL: <http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20110131/0519c7f6/attachment.bin>
[sane-devel] Troubles with PIXMA MX870 and USB
On Mon, 2011-01-31 at 12:08 +0100, Stephan Ritscher wrote: > Hi folks, > > I just got a new Canon Pixma MX870, but it doesn't work completely, > yet. > > Let me start with my setup. I run Gentoo with kernel 2.6.36-gentoo-r5 > on an Intel(R) Core(TM)2 Duo CPU T9300. I use the latest sane-backends > from GIT and sane-frontends-1.0.14. > > I want to run the scanner in two different configurations - via > wireless network and via usb. I'll start with the wireless setup. > > First of all, it recognizes my printer - kind of. My router (EasyBox > 803) resolves all ip addresses in the local network as "localhost" and > thereby confuses SANE. > # /usr/libexec/cups/backend/bjnp > network bjnp://localhost:8611 "Canon MX870 series" "Canon > MX870 series localhost" > > "MFG:Canon;CMD:BJL,BJRaster3,BSCCe,NCCe,IVEC,IVECPLI;SOJ:TXT01,BJNP2;MDL:MX870 > series;CLS:PRINTER;DES:Canon MX870 > series;VER:1.030;STA:10;FSI:04;HRI:EU;MSI:DAT,E3,HFSF;PDR:4;" > If I add the line "bjnp://192.168.2.101:8612" > to /etc/sane.d/pixma.conf, scanimage and other applications recognize > my scanner and work properly. I attached the log file corresponding to > # export SANE_DEBUG_PIXMA=3 > # scanimage -T 2> scan-net.log This is the second router I have seen that messes up reverse lookup of ip-adresses. I will put this on my to-do list to work around this. A solution will take some time and will not be in 1.2.22 as the merge window for new features has already closed. I will see if I can do the change in both the sane backend and in cups-bjnp. I have seen a fritzbox return "noname" when a reverse lookup is done, but this one is definitely even more incorrect. Localhost is normally 127.0.0.1 your work-around is the correct solution for now. I leave your other issue for Nicolas to answer, as he is the maintainer of the backend kind regards, Louis
[sane-devel] Sane backends in feature freeze
On Monday 31 January 2011 08:45:14 m. allan noah wrote: > Sane-backends is now in feature freeze in preparation for release of > 1.0.22. Please only commit bug fixes and documentation updates. > > Feb 06, 2011: Code freeze (only horrible bugs + documentation updates) > Feb 13, 2011: Release > > allan Hi, Will the Magicolor backend be part of the next release? It's not called in the /po/POTFILES file. Thanks, Martin Kho
[sane-devel] A couple issues with genesys HP G4010
> > > > > -- > > > > > > sane-devel mailing list: sane-devel at lists.alioth.debian.org > > > > > > http://lists.alioth.debian.org/mailman/listinfo/sane-devel > > > > > > Unsubscribe: Send mail with subject "unsubscribe your_password" > > > > > > > > > > > > to sane-devel-request at lists.alioth.debian.org > > > > > > > > > > -- > > > > > "The truth is an offense, but not a sin" > > > > > > > > Hello, > > > > > >thanks for providing these detailed information. For the crash, > > >the > > > > > > image > > > writing function doesn't handle line art bitmap format. I'm currently > > > fixing > > > that. For the black band, it is due to incorrect settings in registers > in > > > line > > > art mode which makes the backend reading too much data from the > scanner. > > > This > > > extra data is filled with 'noise'. I am currently looking into that. > > > > > > Regards, > > > > > > Stef > > Hello, > >I have committed the fix for this bug. Now image size will be > correct. > The logging issue is also fixed. You may try the latest git source code. > > Regards, > Stef > Stef, When I test with these latest changes, they do address the issues referenced in this thread; however, I'm seeing an increase in the noise in the image. Just to make sure I rolled back a couple days and re-scanned the same images again. The additional noise is present both with and without the swdespeck option. I'm attaching sample images. Any ideas? Thanks, Brian .. -- next part -- An HTML attachment was scrubbed... URL: <http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20110131/da5bbf8a/attachment-0001.htm> -- next part -- A non-text attachment was scrubbed... Name: despeck.pnm.gz Type: application/x-gzip Size: 8409 bytes Desc: not available URL: <http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20110131/da5bbf8a/attachment-0004.bin> -- next part -- A non-text attachment was scrubbed... Name: despeck_old.pnm.gz Type: application/x-gzip Size: 7035 bytes Desc: not available URL: <http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20110131/da5bbf8a/attachment-0005.bin> -- next part -- A non-text attachment was scrubbed... Name: no_despeck.pnm.gz Type: application/x-gzip Size: 11773 bytes Desc: not available URL: <http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20110131/da5bbf8a/attachment-0006.bin> -- next part -- A non-text attachment was scrubbed... Name: no_despeck_old.pnm.gz Type: application/x-gzip Size: 7313 bytes Desc: not available URL: <http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20110131/da5bbf8a/attachment-0007.bin>
[sane-devel] Sane backends in feature freeze
Mon, 31 Jan 2011 15:45:14 +0200, m. allan noah : > Sane-backends is now in feature freeze in preparation for release of > 1.0.22. Please only commit bug fixes and documentation updates. > > Feb 06, 2011: Code freeze (only horrible bugs + documentation updates) > Feb 13, 2011: Release > > allan Hi! What is the right time to send translation updates? Thanks in advance. Yuri
[sane-devel] Bug Report - Epson AL-CX21
Hi, here you are... it works for me. roberto at zorro:~/Scaricati$ ls -1d *git* sane-backends-git20110131 sane-backends-git20110131.tar.gz sane-frontends-git20110131 sane-frontends-git20110131.tar.gz sudo apt-get purge libsane sane; tar xzvf sane-backends-git20110131.tar.gz; cd sane-backends-git2011013; make; sudo make install; cd ../sane-frontends-git20110131; make; sudo make install; sudo vi /etc/ld.so.conf.d/lib-liblocal.conf; ldconfig roberto at zorro:/tmp$ which scanimage /usr/local/bin/scanimage roberto at zorro:/tmp$ scanimage -L device `epson2:net:10.0.0.215' is a Epson AL-CX21 flatbed scanner roberto at zorro:/tmp$ scanimage -d epson2 >pippo roberto at zorro:/tmp$ file pippo pippo: Netpbm PBM "rawbits" image data roberto at zorro:/tmp$ scanimage -d epson2 --mode color --resolution 300 >pippo roberto at zorro:/tmp$ file pippo pippo: Netpbm PPM "rawbits" image data 2011/1/31 m. allan noah : > Any chance you could try to compile a current sane-backends git > snapshot? we are preparing for release, and it would be nice to see if > the problem still exists... > > allan > > On Mon, Jan 31, 2011 at 10:11 AM, Roberto A. Foglietta > wrote: >> Hi to all, >> >> ?Epson AL-CX21 controlled by network works pretty well in ubuntu 8.04 >> LTS but not in 10.04 or 9.10 (libraries changes) >> >> roberto at zorro:~$ scanimage -L >> device `epson2:net:10.0.0.215' is a Epson AL-CX21 flatbed scanner >> >> roberto at zorro:~$ sudo scanimage -d epson2 > pippo >> [the scanner lamp move] >> scanimage: sane_read: Error during device I/O >> >> root at zorro:~# wget >> http://launchpadlibrarian.net/24388634/libsane_1.0.19-23ubuntu7_i386.deb >> root at zorro:~# dpkg -i ./Scaricati/libsane_1.0.19-23ubuntu7_i386.deb^C >> root at zorro:~# scanimage -d epson2 > pippo >> root at zorro:~# file pippo >> pippo: Netpbm PBM "rawbits" image data >> >> >> == ubuntu 10.04 == >> >> root at zorro:~# cat /etc/issue >> Ubuntu 10.04.2 LTS \n \l >> root at zorro:~# dpkg -l | grep sane >> ii ?libsane ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?1.0.20-13ubuntu2 >> ? ? ? ? ? ? ? ? ?API library for scanners >> ii ?sane-utils ? ? ? ? ? ? ? ? ? ? ? ? ? 1.0.20-13ubuntu2 >> ? ? ? ? ? ? ? ? ?API library for scanners -- utilities >> >> == ubuntu 8.04 == >> >> roberto at napoleone:~$ cat /etc/issue >> Ubuntu 8.04.4 LTS \n \l >> roberto at napoleone:/var/www/scanfax$ dpkg -l | grep scan >> ii ?libsane ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 1.0.19-23ubuntu7 >> ? ? ? ? API library for scanners >> ii ?mawk ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?1.3.3-11ubuntu2 >> ? ? ? ? a pattern scanning and text processing langu >> ii ?sane-utils ? ? ? ? ? ? ? ? ? ? ? ? ? ?1.0.19-1ubuntu3 >> ? ? ? ? API library for scanners -- utilities >> >> >> >> Best regards, >> -- >> RAF >> >> -- >> sane-devel mailing list: sane-devel at lists.alioth.debian.org >> http://lists.alioth.debian.org/mailman/listinfo/sane-devel >> Unsubscribe: Send mail with subject "unsubscribe your_password" >> ? ? ? ? ? ? to sane-devel-request at lists.alioth.debian.org >> > > > > -- > "The truth is an offense, but not a sin" > -- Dott. Roberto A. Foglietta, Soluzioni informatiche B2B mobile: (+39) 349.33.30.697 http://www.linuxteam.org skype: robang74
[sane-devel] Add function sanei_usb_get_endpoint
Good enough reasoning for me. Commit ASAP. Now, when you modify the magicolor backend to use it, that might be a new feature :) allan On Mon, Jan 31, 2011 at 4:02 PM, Reinhold Kainhofer wrote: > Am Montag, 31. Januar 2011, um 21:42:04 schrieb m. allan noah: >> I will not complain if you commit, but I don't understand the point. >> You are not saving any cycles when you look up the value instead of >> just setting it. It's the same switch(), touching the same variable. >> Plus, if you DO decide you need to change it, you now have to call a >> second function. Your code now does more operations, not less. > > Yes, the purpose is not so much about deciding whether one has to use a > different endpoint in normal operation, but about debugging (so that you can > see in your own backend if the correct endpoint is used, when things don't > work). And also about being able to restore the previous value if an endpoint > is used for use one USB operationr.. > > With that new function, you can store the old endpoint, change it, do your USB > operation and restore the old endpoint. > That might be useful if a scanner uses one endpoint for most operations, but > another endpoint for some very particular operations. I can imagine that the > code is clearer if one sets and immediately resets the endpoint for the > operation(s) on the less-used endpoint. > > Cheers, > Reinhold > > -- > -- > Reinhold Kainhofer, reinhold at kainhofer.com, http://reinhold.kainhofer.com/ > ?* Financial & Actuarial Math., Vienna Univ. of Technology, Austria > ?* http://www.fam.tuwien.ac.at/, DVR: 0005886 > ?* LilyPond, Music typesetting, http://www.lilypond.org > -- "The truth is an offense, but not a sin"
[sane-devel] Bug Report - Epson AL-CX21
Hi to all, Epson AL-CX21 controlled by network works pretty well in ubuntu 8.04 LTS but not in 10.04 or 9.10 (libraries changes) roberto at zorro:~$ scanimage -L device `epson2:net:10.0.0.215' is a Epson AL-CX21 flatbed scanner roberto at zorro:~$ sudo scanimage -d epson2 > pippo [the scanner lamp move] scanimage: sane_read: Error during device I/O root at zorro:~# wget http://launchpadlibrarian.net/24388634/libsane_1.0.19-23ubuntu7_i386.deb root at zorro:~# dpkg -i ./Scaricati/libsane_1.0.19-23ubuntu7_i386.deb^C root at zorro:~# scanimage -d epson2 > pippo root at zorro:~# file pippo pippo: Netpbm PBM "rawbits" image data == ubuntu 10.04 == root at zorro:~# cat /etc/issue Ubuntu 10.04.2 LTS \n \l root at zorro:~# dpkg -l | grep sane ii libsane 1.0.20-13ubuntu2 API library for scanners ii sane-utils 1.0.20-13ubuntu2 API library for scanners -- utilities == ubuntu 8.04 == roberto at napoleone:~$ cat /etc/issue Ubuntu 8.04.4 LTS \n \l roberto at napoleone:/var/www/scanfax$ dpkg -l | grep scan ii libsane 1.0.19-23ubuntu7 API library for scanners ii mawk 1.3.3-11ubuntu2 a pattern scanning and text processing langu ii sane-utils1.0.19-1ubuntu3 API library for scanners -- utilities Best regards, -- RAF
[sane-devel] Add function sanei_usb_get_endpoint
I will not complain if you commit, but I don't understand the point. You are not saving any cycles when you look up the value instead of just setting it. It's the same switch(), touching the same variable. Plus, if you DO decide you need to change it, you now have to call a second function. Your code now does more operations, not less. allan On Mon, Jan 31, 2011 at 3:31 PM, Reinhold Kainhofer wrote: > Since we now have the possibility to change the endpoint used for a particular > USB communication type, we also need a way to retrieve the current endpoint, > so that one can e.g. decide whether a switch to a different endpoint is needed > at all, or reset the endpoint to the old value after a single usb operation on > a different endpoint. > > Attached is a simple patch that adds this function sanei_usb_get_endpoint to > sanei/, plus a range check in sanei_usb_set_endpoint. Okay to push to master > or does that already violate the feature freeze? > > Cheers, > Reinhold > -- > -- > Reinhold Kainhofer, reinhold at kainhofer.com, http://reinhold.kainhofer.com/ > ?* Financial & Actuarial Math., Vienna Univ. of Technology, Austria > ?* http://www.fam.tuwien.ac.at/, DVR: 0005886 > ?* LilyPond, Music typesetting, http://www.lilypond.org > > -- > sane-devel mailing list: sane-devel at lists.alioth.debian.org > http://lists.alioth.debian.org/mailman/listinfo/sane-devel > Unsubscribe: Send mail with subject "unsubscribe your_password" > ? ? ? ? ? ? to sane-devel-request at lists.alioth.debian.org > -- "The truth is an offense, but not a sin"
[sane-devel] Sane backends in feature freeze
looks good to push, thanks! allan On Mon, Jan 31, 2011 at 2:45 PM, Reinhold Kainhofer wrote: > Am Montag, 31. Januar 2011, um 17:59:55 schrieb Martin Kho: >> On Monday 31 January 2011 08:45:14 m. allan noah wrote: >> > Sane-backends is now in feature freeze in preparation for release of >> > 1.0.22. Please only commit bug fixes and documentation updates. >> > >> > Feb 06, 2011: Code freeze (only horrible bugs + documentation updates) >> > Feb 13, 2011: Release >> > >> > allan >> >> Hi, >> >> Will the Magicolor backend be part of the next release? > > I hope so ;) > >> It's not called in the /po/POTFILES file. > > Because doc/backend-writing.txt didn't say so... Attached is a patch that > updates doc/backend-writing.txt and po/README correspondingly. Okay to push to > master? > > Cheers, > Reinhold > > -- > -- > Reinhold Kainhofer, reinhold at kainhofer.com, http://reinhold.kainhofer.com/ > ?* Financial & Actuarial Math., Vienna Univ. of Technology, Austria > ?* http://www.fam.tuwien.ac.at/, DVR: 0005886 > ?* LilyPond, Music typesetting, http://www.lilypond.org > > -- > sane-devel mailing list: sane-devel at lists.alioth.debian.org > http://lists.alioth.debian.org/mailman/listinfo/sane-devel > Unsubscribe: Send mail with subject "unsubscribe your_password" > ? ? ? ? ? ? to sane-devel-request at lists.alioth.debian.org > -- "The truth is an offense, but not a sin"
[sane-devel] New magicolor backend for inclusion in git
Am Sonntag, 30. Januar 2011, um 20:31:13 schrieb m. allan noah: > I'm trying to build this now on Fedora 14 with net-snmp enabled, and I > get the following error: > > magicolor.c: In function 'mc_network_discovery_handle': > magicolor.c:1800:2: error: 'netsnmp_indexed_addr_pair' undeclared > (first use in this function) [...] > make[2]: *** [libmagicolor_la-magicolor.lo] Error 1 > > And poking around in /usr/include/net-snmp reveals no definition for > netsnmp_indexed_addr_pair. This is using net-snmp 5.5, which seems > like it might still be a current release? Ah, sorry. It seems like the snmp auto-detection really needs net-snmp 5.6 :( In net-snmp 5.5 the UDP broadcast option was added, but apparently the devs missed to add a public-API method of extracting the responding IP address to the broadcast package. In 5.5 the netsnmp_udp_addr_pair struct was used in snmplib/snmpUDPDomain.cc, but that structure was never made public in any header file, so there was not way to get the IP address of the responding scanner. In net-snmp 5.6, the new netsnmp_indexed_addr_pair struct provides access to that information, so I now increased the required net-snmp version to 5.6, as 5.5 does not provide the required functionality... Cheers, Reinhold -- -- Reinhold Kainhofer, reinhold at kainhofer.com, http://reinhold.kainhofer.com/ * Financial & Actuarial Math., Vienna Univ. of Technology, Austria * http://www.fam.tuwien.ac.at/, DVR: 0005886 * LilyPond, Music typesetting, http://www.lilypond.org
[sane-devel] Sane backends in feature freeze
yes- you are correct. I've committed a fix. allan On Mon, Jan 31, 2011 at 11:59 AM, Martin Kho wrote: > On Monday 31 January 2011 08:45:14 m. allan noah wrote: >> Sane-backends is now in feature freeze in preparation for release of >> 1.0.22. Please only commit bug fixes and documentation updates. >> >> Feb 06, 2011: Code freeze (only horrible bugs + documentation updates) >> Feb 13, 2011: Release >> >> allan > > Hi, > > Will the Magicolor backend be part of the next release? It's not called in the > /po/POTFILES file. > > Thanks, > > Martin Kho > > -- > sane-devel mailing list: sane-devel at lists.alioth.debian.org > http://lists.alioth.debian.org/mailman/listinfo/sane-devel > Unsubscribe: Send mail with subject "unsubscribe your_password" > ? ? ? ? ? ? to sane-devel-request at lists.alioth.debian.org > -- "The truth is an offense, but not a sin"
[sane-devel] Troubles with PIXMA MX870 and USB
Hi folks, I just got a new Canon Pixma MX870, but it doesn't work completely, yet. Let me start with my setup. I run Gentoo with kernel 2.6.36-gentoo-r5 on an Intel(R) Core(TM)2 Duo CPU T9300. I use the latest sane-backends from GIT and sane-frontends-1.0.14. I want to run the scanner in two different configurations - via wireless network and via usb. I'll start with the wireless setup. First of all, it recognizes my printer - kind of. My router (EasyBox 803) resolves all ip addresses in the local network as "localhost" and thereby confuses SANE. # /usr/libexec/cups/backend/bjnp network bjnp://localhost:8611 "Canon MX870 series" "Canon MX870 series localhost" "MFG:Canon;CMD:BJL,BJRaster3,BSCCe,NCCe,IVEC,IVECPLI;SOJ:TXT01,BJNP2;MDL:MX870 series;CLS:PRINTER;DES:Canon MX870 series;VER:1.030;STA:10;FSI:04;HRI:EU;MSI:DAT,E3,HFSF;PDR:4;" If I add the line "bjnp://192.168.2.101:8612" to /etc/sane.d/pixma.conf, scanimage and other applications recognize my scanner and work properly. I attached the log file corresponding to # export SANE_DEBUG_PIXMA=3 # scanimage -T 2> scan-net.log ADF is working, too, but I didn't get "ADF Duplex" running (Xsane scans one page and then stops - is this supposed to work, anyways?). Now trying USB cable, I removed the extra line from /etc/sane.d/pixma.conf. After attaching the USB cable, I get # dmesg -c usb 2-2.1: new high speed USB device using ehci_hcd and address 8 usblp0: USB Bidirectional printer dev 8 if 1 alt 0 proto 2 vid 0x04A9 pid 0x1743 scsi7 : usb-storage 2-2.1:1.2 usblp1: USB Bidirectional printer dev 8 if 3 alt 0 proto 2 vid 0x04A9 pid 0x1743 scsi 7:0:0:0: Direct-Access CanonMX870 series 0103 PQ: 0 ANSI: 2 sd 7:0:0:0: Attached scsi generic sg2 type 0 sd 7:0:0:0: [sdb] Attached SCSI removable disk I also attached the gzipped output of # lsusb -v > lsusb.log Now I ran # scanimage -T 2> scan-usb.log The scanner makes some noises, but the command returns immediately. Xsane fails with "Error during read: Error during device I/O". In some forum I read that unloading ehci_hcd helps. Thus I tried # sudo rmmod ehci_hcd # scanimage -T 2> scan-usb2.log The scanner shows "Processing... Please wait momentarily.", but makes no noises of activity. Since scanimage gets stuck, I terminated it with kill -9. The "Processing..." message only disappears on unplugging the USB connection. Do you have any suggestions? Best regards Stephan Ritscher -- next part -- An HTML attachment was scrubbed... URL: <http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20110131/d3c09b34/attachment-0001.htm> -- next part -- A non-text attachment was scrubbed... Name: lsusb.log.gz Type: application/x-gzip Size: 5301 bytes Desc: not available URL: <http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20110131/d3c09b34/attachment-0002.bin> -- next part -- An embedded and charset-unspecified text was scrubbed... Name: scan-net.log URL: <http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20110131/d3c09b34/attachment-0001.asc> -- next part -- An embedded and charset-unspecified text was scrubbed... Name: scan-usb.log URL: <http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20110131/d3c09b34/attachment-0001.txt> -- next part -- A non-text attachment was scrubbed... Name: scan-usb2.log.gz Type: application/x-gzip Size: 1190 bytes Desc: not available URL: <http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20110131/d3c09b34/attachment-0003.bin>
[sane-devel] Sane backends in feature freeze
This week would be best. allan On Mon, Jan 31, 2011 at 10:42 AM, Yuri Chornoivan wrote: > Mon, 31 Jan 2011 15:45:14 +0200, m. allan noah > : > >> Sane-backends is now in feature freeze in preparation for release of >> 1.0.22. Please only commit bug fixes and documentation updates. >> >> Feb 06, 2011: Code freeze (only horrible bugs + documentation updates) >> Feb 13, 2011: Release >> >> allan > > Hi! > > What is the right time to send translation updates? > > Thanks in advance. > > Yuri > > -- > sane-devel mailing list: sane-devel at lists.alioth.debian.org > http://lists.alioth.debian.org/mailman/listinfo/sane-devel > Unsubscribe: Send mail with subject "unsubscribe your_password" > ? ? ? ? ? ?to sane-devel-request at lists.alioth.debian.org -- "The truth is an offense, but not a sin"
[sane-devel] Bug Report - Epson AL-CX21
Any chance you could try to compile a current sane-backends git snapshot? we are preparing for release, and it would be nice to see if the problem still exists... allan On Mon, Jan 31, 2011 at 10:11 AM, Roberto A. Foglietta wrote: > Hi to all, > > ?Epson AL-CX21 controlled by network works pretty well in ubuntu 8.04 > LTS but not in 10.04 or 9.10 (libraries changes) > > roberto at zorro:~$ scanimage -L > device `epson2:net:10.0.0.215' is a Epson AL-CX21 flatbed scanner > > roberto at zorro:~$ sudo scanimage -d epson2 > pippo > [the scanner lamp move] > scanimage: sane_read: Error during device I/O > > root at zorro:~# wget > http://launchpadlibrarian.net/24388634/libsane_1.0.19-23ubuntu7_i386.deb > root at zorro:~# dpkg -i ./Scaricati/libsane_1.0.19-23ubuntu7_i386.deb^C > root at zorro:~# scanimage -d epson2 > pippo > root at zorro:~# file pippo > pippo: Netpbm PBM "rawbits" image data > > > == ubuntu 10.04 == > > root at zorro:~# cat /etc/issue > Ubuntu 10.04.2 LTS \n \l > root at zorro:~# dpkg -l | grep sane > ii ?libsane ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?1.0.20-13ubuntu2 > ? ? ? ? ? ? ? ? ?API library for scanners > ii ?sane-utils ? ? ? ? ? ? ? ? ? ? ? ? ? 1.0.20-13ubuntu2 > ? ? ? ? ? ? ? ? ?API library for scanners -- utilities > > == ubuntu 8.04 == > > roberto at napoleone:~$ cat /etc/issue > Ubuntu 8.04.4 LTS \n \l > roberto at napoleone:/var/www/scanfax$ dpkg -l | grep scan > ii ?libsane ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 1.0.19-23ubuntu7 > ? ? ? ? API library for scanners > ii ?mawk ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?1.3.3-11ubuntu2 > ? ? ? ? a pattern scanning and text processing langu > ii ?sane-utils ? ? ? ? ? ? ? ? ? ? ? ? ? ?1.0.19-1ubuntu3 > ? ? ? ? API library for scanners -- utilities > > > > Best regards, > -- > RAF > > -- > sane-devel mailing list: sane-devel at lists.alioth.debian.org > http://lists.alioth.debian.org/mailman/listinfo/sane-devel > Unsubscribe: Send mail with subject "unsubscribe your_password" > ? ? ? ? ? ? to sane-devel-request at lists.alioth.debian.org > -- "The truth is an offense, but not a sin"
[sane-devel] How to get infrared image data with sane on an epson v700 scanner?
There is some code in sane to expose additional image types like jpeg and IR. It is disabled because it's not compatible with the sane specification. It does work with scanimage, however. So, you would need to get usb logs of either the windows driver or vuescan making an IR second pass, and figure out how to make those same calls from within the backend. allan On Mon, Jan 31, 2011 at 8:21 AM, Alain Culos wrote: > Hi all, > > I have unsuccessfully scanned the archives and the Internet at large for > relevant answers. So please point me in the right direction if this question > has already been answered. > > It seems that it is not possible to use sane to read infrared data (second > pass) with my Epson Perfection V700 scanner out of the box. However vuescan > can do this. It seems quite simple since this is a two-pass process, it > should be a matter of sending the right command to the scanner and getting a > plain B&W image back instead of 3-channel colour. > > So are there any options to get that working with SANE? Any known patch? Any > configuration behind the scenes? Any undocumented feature? > > I asked the question on Avasys' message board and they suggested this > mailing list, so if any of you guys out there had relevant information, I > would appreciate greatly. > > Of particular interest is the 6400dpi resolution in 16bits per channel to > scan slides, so I need the infrared option on the epkowa driver as the > epson2 driver seems limited to 3200dpi anyway. > > As far as I can tell neither epkowa nor epson2 offers the infrared scan, > though it seems that it should be a simple option (vuescan actually can do > the job, it does two scan passes, one for the RGB and one for the infrared, > but I would much prefer to be able to do my scans from the command-line > rather than using a GUI, no matter how good, such as vuescan). > > Note that I don't mind if the infrared scan comes out as a separate image, I > can manage to combine them as needed. > > Also of interest and not included in the current sane-epkowa driver are: > 1/ single pass scans with multiple samples (is this possible with SANE? - > vuescan does it). > 2/ information about the scanimage -brightness setting and what brightness > values mean in terms of photographic exposure. > > If no one has done this, I'd love to help, but I'll need a few pointers from > you guys to get started on hacking the epkowa or the epson2 back-end. > > Many thanks in advance, > Alain. > -- "The truth is an offense, but not a sin"
[sane-devel] Sane backends in feature freeze
Sane-backends is now in feature freeze in preparation for release of 1.0.22. Please only commit bug fixes and documentation updates. Feb 06, 2011: Code freeze (only horrible bugs + documentation updates) Feb 13, 2011: Release allan -- "The truth is an offense, but not a sin"