[sane-devel] Error during device I/O
# on Debian testing client sane version 1.0.14-9 scanadf --device-name net:192.168.24.11:fujitsu:ScanSnap S1500:14033 --scan-script /usr/lib/pct-scanner-scripts/pct-scanner-script-process --output-file /home/jelle/scanscript/input/image-%04d.pbm --source ADF Duplex --resolution 600 --mode Color -x 210 -y 295 --page-width 210 --page-height 297 --start-count 1 2/dev/null returns Error during device I/O during or after scanning # on Debian stable server sane-utils version 1.0.21-9 with /etc/xinetd.d/saned # default: off # description: The sane server accepts requests # for network access to a local scanner via the # network. service sane-port { port= 6566 socket_type = stream wait= no user= saned group = saned groups = yes server = /usr/sbin/saned } Duplex color scanning used to work with this scanner, I don't remember when... duplex lineart works without issues... Could somebody do some duplex color netscanning tests with there systems? Kind regards, Jelle de Jong -- next part -- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 316 bytes Desc: OpenPGP digital signature URL: http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20110406/77f91e7c/attachment.pgp
[sane-devel] Error during device I/O
On 06-04-11 21:34, m. allan noah wrote: Known bug in 1.0.21. Duplex is broken on smaller scanners if the scan is too large. Very low resolution color probably works. Upgrade to 1.0.22. # on the server side apt-get install sane-utils/testing # 1.0.22-2 Apr 6 21:40:31 finley saned[9632]: saned (AF-indep+IPv6) from sane-backends 1.0.22 starting up # on client scanadf: sane_read: Error during device I/O Error during device I/O I even rebootend the server... Issue is still there... Kind regards, Jelle de Jong -- next part -- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 316 bytes Desc: OpenPGP digital signature URL: http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20110406/457e4f82/attachment.pgp
[sane-devel] Error during device I/O
On 06-04-11 21:53, m. allan noah wrote: On the server: SANE_DEBUG_FUJITSU=15 scanimage -b --source=ADF Duplex --resolution 600 --mode Color -x 210 -y 295 --page-width 210 --page-height 297 2s1500.log hopefully there will be something useful in that log. Oh- and you might need to send the images to /dev/null if you don't have enough disk. See attachment with the log. Thanks in advance, Kind regards, Jelle de Jong -- next part -- A non-text attachment was scrubbed... Name: s1500.log.bz2 Type: application/octet-stream Size: 11707 bytes Desc: not available URL: http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20110406/be79c57b/attachment-0001.obj -- next part -- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 316 bytes Desc: OpenPGP digital signature URL: http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20110406/be79c57b/attachment-0001.pgp
[sane-devel] Error during device I/O
On 06-04-11 22:04, Jelle de Jong wrote: On 06-04-11 21:53, m. allan noah wrote: On the server: SANE_DEBUG_FUJITSU=15 scanimage -b --source=ADF Duplex --resolution 600 --mode Color -x 210 -y 295 --page-width 210 --page-height 297 2s1500.log hopefully there will be something useful in that log. Oh- and you might need to send the images to /dev/null if you don't have enough disk. See attachment with the log. /me is installing .../libsane-extras_1.0.22.1_amd64.deb :) !!! Kind regards, Jelle de Jong -- next part -- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 316 bytes Desc: OpenPGP digital signature URL: http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20110406/e0a96d24/attachment.pgp
[sane-devel] Error during device I/O
On 06-04-11 22:06, Jelle de Jong wrote: On 06-04-11 22:04, Jelle de Jong wrote: On 06-04-11 21:53, m. allan noah wrote: On the server: SANE_DEBUG_FUJITSU=15 scanimage -b --source=ADF Duplex --resolution 600 --mode Color -x 210 -y 295 --page-width 210 --page-height 297 2s1500.log hopefully there will be something useful in that log. Oh- and you might need to send the images to /dev/null if you don't have enough disk. See attachment with the log. /me is installing .../libsane-extras_1.0.22.1_amd64.deb :) !!! aptitude install sane-utils/testing libsane-extras/testing libsane/testing That did the trick! No more Error during device I/O Would love to see those packages in sqeeze-backports! There are some nasty dependencies... (mixed now with stable) Thank you allan! Kind regards, Jelle de Jong -- next part -- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 316 bytes Desc: OpenPGP digital signature URL: http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20110406/16bee385/attachment.pgp
[sane-devel] searching for business card scanner compatible with sane
m. allan noah wrote, on 28-12-09 22:24: I have the feeling the driver is doing it's job, but the scanner needs an complete additional layer to become productive usable. This layer should still be optional invisible for the end user. The few experiences I gathered the last days testing the scanner gives me the impression the following features should be added as some sort of filter that can be enable and lies between the driver and the scanadf (sane) output image. By default the scanner scans in duplex mode and scans all input available (no -x, -y or --page-width and --page-height) this should ensures no source data is missed. (this is currently not the case) This data is send to the filter and does the following: 1) recognizes document size 2) removes blank pages (backsides of input with nothing on it) 3) auto rotation and autodeskew extra like to have possibilities: 4) auto color detection 5) auto resolution selection depending on input sizes After this there will be a simple but good usable image that can be used for all other stuff. This output is what I expected when using scanadf without any options on an simple A4 of A8 or C5 input sized source. Yes- it would be nice to have a seamless 'middleware' layer which could clean the output of any sane driver. It need not be completely separate from the actual scanner driver, as they could all use a common external library to provide these features. That might simplify the user interface. Another option is to write a sane 'middle-end', but I'm not sure what form that code (and particularly its interface) might take. If there is anything I can do in the forms like sponsoring or spreading awareness please tell me. I would very much like to see these middle ware layer to become stable and available for all distributions? Is there a SANE developer doing some nice things at FOSDEM 2010 this year? I also would like to add colour balancing as one of the features making background really white, the ScanSnap seems to make backgrounds a bit blueish when doing colour scans. Would it be possible to share the technical datasheet of the chipsets and it's options/registers used to develop the device driver? I am interested in how primitive these chipets are because I for something that can do so little, the price is very high for a mass produced consumer product. The fujitsu chipsets are some of the most advanced available. They have jpeg output, full-speed duplex, USBSCSI, self-calibration, dynamic thresholding, noise removal, intermediate resolution interpolation, etc, etc. If you think this machine is bad, you should try to write a driver for a low-level chipset sometime. One that makes you calculate the motor slope tables and maintain all the per-cell shading info in an external file. That will teach you the true meaning of the word dumb. I am utterly grateful for the current fujitsu driver. I do have some experience with low-level chipset programming and it will indeed get you more humble. There are no publicly available docs for the S1500. It's protocol is very similar to that of old SCSI fujitsu machines, just wrapped in a USB packet, and some additional capabilities added. You can see the M3093 OEM Manual here: http://193.128.183.41/HOME/v3__product.asp?pid=51inf=docwg=0 Thanks, this OEM manual shows a lot of nice information to bad it is not public available for the S1500. There is especially a lot of nice information over what the ADF can handle. It does say it can do automatic page size detection. I still have to be honest that my 130 Euro HP scanner has a more stable ADF input feeder, causing more paper to go in and go out straighter. It is by far not as fast, and had no duplex, but the output quality is the same or even better because of better colour balancing. It can also not scan A8 buy the S1500 also need a lot of manual tweaking to scan different pager sizes without black banners. I added support for the S1500 to my scanadf post-processing systems and fixed some issues that came up when having a fast duplex scanner outputting multiple images at the same time :D http://www.powercraft.nl/pipermail/packages-commit/2009-December/000221.html https://secure.powercraft.nl/svn/packages/trunk/source/pct-scanner-scripts/pct-scanner-scripts-devel/ There will be a new Debian package in a few months after testing the current code for a while. It will eventually be available to all Debian based distributions. There is no OCR output yet because tesseract is not create enough quality yet. Thanks in advance, Kind regards, Jelle
[sane-devel] searching for business card scanner compatible with sane
Hi Allan, thank you for taking the time to response at my questions, m. allan noah wrote, on 22-12-09 21:18: # bug02: It seems ADF Back and ADF Front are outputing something that is not on the original paper, only ADF Duplex seem to work here... I would need a sample image. Are you sure you are running libsane 1.0.20? I tried to reproduce the results I encountered yesterday, but the scanner is now responding in a different way. (see the attachment) Did you connect the scanner to a windows machine in between these two tests? It is possible the windows driver updated the firmware... Nope there was no Windows near the machine, I try to live in a windows free zone. However I have not seem the behaviour again. So I am hoping on it just being an anomaly. # bug03: It seems around 15mm of text is missing from the bottom of all pages when trying to scan simple A4 pages. Page geometry: 5096x6600+0+0 please use the page width and page height options to set the actual size of the paper. if you are using a command line program, you should set those options before you set the x/y image size. The datasheet(1) is saying it can scan A4 paper and automatically recognizes document size, is this not supported in the device driver? the 'datasheet' does not describe the hardware, but rather the hardware+windows device driver. Some features, like auto cropping are software only features. This is common. You need a very smart ($1000+) machine to do this in hardware. That said- the git development branch of sane-backends does have a first attempt at a software implementation of these features. The device comes with a fujitsu scansnap carrier sheet to help guide documents through the scanning process. It seems the scanner is designed in a way to never have good scans but just scan the biggest area possible allowed by the size of the input and do all the processing later in the software. So the output of this device is especially messy because it seems intended for post-processing. Is it really that hard to scan A4 paper with a more then 500 Euro scanner? So far I only have been trying to get the basis functionality of the 100 Euro all in one HP scanner that I previous used, let alone get the functionality I really wanted like automatic different size business card scanning. Am I now just bitching and making no sense or is there something wrong? I know I am a perfectionist but I need it for the quality of the work I do. You are overreacting a bit, yes. It is not particularly hard to set an extra page-length option. I could have set the default to A4 length, but I'm in the US :) I can understand the settings being predefined for US Letter. I have no issues with that, but having to manually measure and set the --page-width and --page-height is something I did not expected to be necessary to get a good scan result. Having to predefine this for A4 is still a disappointment but expectable. Having to do the same for every business cards or special sized input papers would become something extreme annoying. # big black bars on the bottom of the pages, unusable for archiving and unprofessional for sending to other business partners big? wow, you are hard to please :) You could try the current development version of sane, and see if the software based cropping and length detection features help. If not, we accept patches... I know I can be demanding, sorry for this, I want to be able to set-up sane based scanner solutions on multiple locations and the usability and features should first reach my quality tress hold levels before I can deploying it. I have the feeling the driver is doing it's job, but the scanner needs an complete additional layer to become productive usable. This layer should still be optional invisible for the end user. The few experiences I gathered the last days testing the scanner gives me the impression the following features should be added as some sort of filter that can be enable and lies between the driver and the scanadf (sane) output image. By default the scanner scans in duplex mode and scans all input available (no -x, -y or --page-width and --page-height) this should ensures no source data is missed. (this is currently not the case) This data is send to the filter and does the following: 1) recognizes document size 2) removes blank pages (backsides of input with nothing on it) 3) auto rotation and autodeskew extra like to have possibilities: 4) auto color detection 5) auto resolution selection depending on input sizes After this there will be a simple but good usable image that can be used for all other stuff. This output is what I expected when using scanadf without any options on an simple A4 of A8 or C5 input sized source. I don't have time any more to do coding myself, but I would really want some advice from you and other sane developer on what it would take to make the above working and available under GNU compatible licensing and compliant
[sane-devel] searching for business card scanner compatible with sane
Thank you Allen for taking the time to answer my questions, m. allan noah wrote, on 21-12-09 17:56: I'll admit it is a bit odd, but a few other backends do this as well, so I followed the trend of 'readable' options. I believe there is also a scanner model that has a flat-end extension so, the ADF prefix could make sense then, however back, front, duplex would be my preferred choices. All fujitsu scanners internally consider the 'front' of the paper to be the side which touches the paper tray. Is this not the case for the s1500? Yes the front is the side which touches the paper tray and the beginning seems to be the point where scanning starts. This means you have to turn the paper on top and rotate the front to back before placing the paper in the tray. This is really counter intuitive. Is this hard coded in the firmware of the scanner or something of the device driver? # bug02: It seems ADF Back and ADF Front are outputing something that is not on the original paper, only ADF Duplex seem to work here... I would need a sample image. Are you sure you are running libsane 1.0.20? I tried to reproduce the results I encountered yesterday, but the scanner is now responding in a different way. (see the attachment) # bug03: It seems around 15mm of text is missing from the bottom of all pages when trying to scan simple A4 pages. Page geometry: 5096x6600+0+0 please use the page width and page height options to set the actual size of the paper. if you are using a command line program, you should set those options before you set the x/y image size. The datasheet(1) is saying it can scan A4 paper and automatically recognizes document size, is this not supported in the device driver? Please see the attachment and the links(2) for the images I tried scanning. Is it really that hard to scan A4 paper with a more then 500 Euro scanner? So far I only have been trying to get the basis functionality of the 100 Euro all in one HP scanner that I previous used, let alone get the functionality I really wanted like automatic different size business card scanning. Am I now just bitching and making no sense or is there something wrong? I know I am a perfectionist but I need it for the quality of the work I do. I want to be able to just input a bunch of different sized documents and execute the scan command and get a bunch of images returned that contain the data on the source documents and not more and not less. So I can process them to my other automatic systems for OCR, archiving, DjVu, meta tagging etcetera. Any help/advice would be appreciated, 1) http://tinyurl.com/yzebybz 2) http://filebin.ca/nexyyh/images-0001.tar.gz Kind regards, Jelle -- next part -- An embedded and charset-unspecified text was scrubbed... Name: fujitsu-scansnap-s1500-debugging03.txt URL: http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20091222/bcd17c9a/attachment.txt
[sane-devel] searching for business card scanner compatible with sane
Hi Allan, m. allan noah wrote, on 20-12-09 21:57: this 'bug' is caused by udev/hal being unaware of this usb id. Those rules are usually managed by the distro, using information we provide. The s1500 was listed as supported in sane 1.0.20, so your vendor's udev/hal rules should include it, if you are using 1.0.20. Thanks you for listing it. Seems I am using 1.0.14-7 for sane and 1.0.20-4ubuntu3 for sane-utils. I will check with the Debian servers or with the next dist-upgrade if this issue is still there. Meanwhile I encountered a list of other questions, issues and/or bugs: For full details please first look at the email attachment. # issu01: Somehow the scanner just became undetectable, I had to pull the power cord, redo the chgrp command, and then the devices became detectable again. # issu02: Is there really no poweron/poweroff button for the devices? # question02: Is it normal to have command options with spaces like ADF Duplex ADF Back ADF Front # question03: Can it be that ADF Back and ADF Front are reversed :) I have to use ADF Back when the text is on the Front side of the scanner # bug02: It seems ADF Back and ADF Front are outputing something that is not on the original paper, only ADF Duplex seem to work here... # bug03: It seems around 15mm of text is missing from the bottom of all pages when trying to scan simple A4 pages. Page geometry: 5096x6600+0+0 Any help would be welcome. Kind regards, Jelle de Jong -- next part -- An embedded and charset-unspecified text was scrubbed... Name: fujitsu-scansnap-s1500-debugging02.txt URL: http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20091221/bf333207/attachment.txt
[sane-devel] searching for business card scanner compatible with sane
Jelle de Jong wrote, on 21-12-09 00:39: # issue01: Somehow the scanner just became undetectable, I had to pull the power cord, redo the chgrp command, and then the devices became detectable again. I found the power button, is is pressed when the lid is going down, it does an usb eject that was causing the chgrp setting to disappear from the device node. # issue02: Is there really no poweron/poweroff button for the devices? See issue01. # question02: Is it normal to have command options with spaces like ADF Duplex ADF Back ADF Front # question03: Can it be that ADF Back and ADF Front are reversed :) I have to use ADF Back when the text is on the Front side of the scanner # bug02: It seems ADF Back and ADF Front are outputing something that is not on the original paper, only ADF Duplex seem to work here... # bug03: It seems around 15mm of text is missing from the bottom of all pages when trying to scan simple A4 pages. Page geometry: 5096x6600+0+0 Any help would be welcome. Kind regards, Jelle de Jong
[sane-devel] searching for business card scanner compatible with sane
m. allan noah wrote, on 06-11-09 19:51: On Fri, Nov 6, 2009 at 1:33 PM, Jelle de Jong jelledejong at powercraft.nl wrote: Hi Allan, m. allan noah wrote: I have not seen any business card scanners with a 50 card input tray. In fact, most card sized scanners are single sheet simplex. You might have to move up to something like an A6 or A4 sized scanner to get multi-page duplex. You are right. I think 50 page business card (250 g/m2) are a bit to much to ask, but but an ADF for 10 times A8 (74 ? 52 mm) (250 g/m2) business cards would be nice. I also did some searching, and found that even the most sick priced 3000 euro scanners that do scan A8 (business card) sized media do not indicate that they are capable of scanning 250 g/m2 paper... So this seems to be an useless parameter to select a new scanner on...? most desktop and larger scanners can handle the heavy paper. Last year I replaced my standalone HP ScanJet 6300c ADF scanner (support broke with a new sane version) with a new HP Officejet J5780 http://h10025.www1.hp.com/ewfrf/wc/product?product=3301296 This printer with ADF only cost 130 euro and scans very nice. I did have regression issues (HP messed up there code) with the network saned server systems. But support of Julien BLACHE has been really good so now I got a very usefull scanner setup togheter with my pct-scanner-scripts available in Debian. I manage a few hundred scans per week, duplex is not really needed, I got a nice software rearrange duplex feature. I looked a bit further and found the following two options: ScanSnap S300 (between 200 and 320 euro) http://www.fujitsu.com/us/services/computing/peripherals/scanners/scansnap/s300.html ^^^ that looks like an useful addition to my scanner setup. I want to buy this one but I am so afraid I will not get the sane driver features I need because of an under developed driver. Are my fears justified!? http://ubuntuforums.org/showpost.php?p=6619498postcount=11 http://www.sane-project.org/man/sane-epjitsu.5.html If somebody can convince me that missing features that are supported by the hardware will be added to the driver then I will buy this unit... ScanSnap S1500 (between 420 and 496 euro) http://www.fujitsu.com/us/services/computing/peripherals/scanners/scansnap/scansnap-s1500.html ^^^ this scanner is also an option but its lot of money. I got perfect results with a 130 euro all-in-one but no A8 scan support. Would 450 euro be worth it? It driver seems to be developed with the availiable featurs. http://www.sane-project.org/man/sane-fujitsu.5.html well- i wrote both of those drivers, so i guess i am in a unique position to respond :) the S300 is epson-based, and uses a rather dumb protocol. It also requires a firmware upload, is entirely reverse engineered. It has a smaller paper tray and is slower than other fujitsus. Most of the rest of the fujitsu machines (including the S1500) are much smarter, and I actually have documentation for them, and support a huge list of options. Unless you absolutely need the smaller footprint of the S300 (or the ability to run on USB power), I would definitely buy a 'normal' fujitsu. If money is an issue, see if you can still find an S500 or S510, or buy a used or refurbished fi-series machine (fi-5110C, fi-5120C, fi-6130). They show up on ebay quite often... So I got my self a brand new Fujitsun ScanSnap S1500, connected it to my networked saned Linux server, and tried to detect it with one of my sane capable scanadf clients.. but no joy. The other HP scanner was still detected. So debugging started.. :( See the email attachment. It seems the device node for the scanner does not have the correct group permissions set. I called this bug01, is this a known bug? Could it be fixed in the next version of sane? Thanks in advance, Best regards, Jelle de Jong -- next part -- An embedded and charset-unspecified text was scrubbed... Name: fujitsu-scansnap-s1500-debugging01.txt URL: http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20091220/47d4b549/attachment-0001.txt
[sane-devel] searching for business card scanner compatible with sane
Hi Allan, m. allan noah wrote: I have not seen any business card scanners with a 50 card input tray. In fact, most card sized scanners are single sheet simplex. You might have to move up to something like an A6 or A4 sized scanner to get multi-page duplex. You are right. I think 50 page business card (250 g/m2) are a bit to much to ask, but but an ADF for 10 times A8 (74 ? 52 mm) (250 g/m2) business cards would be nice. I also did some searching, and found that even the most sick priced 3000 euro scanners that do scan A8 (business card) sized media do not indicate that they are capable of scanning 250 g/m2 paper... So this seems to be an useless parameter to select a new scanner on...? Last year I replaced my standalone HP ScanJet 6300c ADF scanner (support broke with a new sane version) with a new HP Officejet J5780 http://h10025.www1.hp.com/ewfrf/wc/product?product=3301296 This printer with ADF only cost 130 euro and scans very nice. I did have regression issues (HP messed up there code) with the network saned server systems. But support of Julien BLACHE has been really good so now I got a very usefull scanner setup togheter with my pct-scanner-scripts available in Debian. I manage a few hundred scans per week, duplex is not really needed, I got a nice software rearrange duplex feature. I looked a bit further and found the following two options: ScanSnap S300 (between 200 and 320 euro) http://www.fujitsu.com/us/services/computing/peripherals/scanners/scansnap/s300.html ^^^ that looks like an useful addition to my scanner setup. I want to buy this one but I am so afraid I will not get the sane driver features I need because of an under developed driver. Are my fears justified!? http://ubuntuforums.org/showpost.php?p=6619498postcount=11 http://www.sane-project.org/man/sane-epjitsu.5.html If somebody can convince me that missing features that are supported by the hardware will be added to the driver then I will buy this unit... ScanSnap S1500 (between 420 and 496 euro) http://www.fujitsu.com/us/services/computing/peripherals/scanners/scansnap/scansnap-s1500.html ^^^ this scanner is also an option but its lot of money. I got perfect results with a 130 euro all-in-one but no A8 scan support. Would 450 euro be worth it? It driver seems to be developed with the availiable featurs. http://www.sane-project.org/man/sane-fujitsu.5.html Any advice is welcome. Thanks in advance, Best regards, Jelle
[sane-devel] searching for business card scanner compatible with sane
Hello everybody, I am looking for a USB Business Card Scanner that can do the following: Color, grayscale and lineart scans minimal 600 DPI with Automatic Document Feeder (ADF) and Duplex scans of at least 50 cards (60mmx90mm), that can output in PBM,PGM and PPM formats for further processing on the software side. I want to be able to use the upstream standaard supported utilities to use the device (like scanadf, scanimage, xsane, and so on) If the above is not yet possible, is there any hope for it? Thanks in advance, Best regards, Jelle de Jong PS. please keep me in the CC field during this thread.
[sane-devel] scanadf --help (setting of option --br-x failed)
m. allan noah wrote: Well, we don't produce the hpaio backend. perhaps you could ask the hplip folks? allan On Tue, Feb 24, 2009 at 5:42 PM, Jelle de Jong jelledejong at powercraft.nl wrote: Hi Allan, m. allan noah wrote: what scanner and backend? allan On Wed, Feb 18, 2009 at 10:25 AM, Jelle de Jong jelledejong at powercraft.nl wrote: Hello everybody, I got the below failure when running scanadf --help, I also tested scanimage --help and that command worked fine. Should I make a debian bug report for this? or somethings else? Best regards, Jelle scanadf --help Usage: scanadf [OPTION]... Start image acquisition on a scanner device and write image data to output files. ? ?[ -d | --device-name device ] ? use a given scanner device. ? ?[ -h | --help ] ? ? ? ? ? ? ? ? ? display this help message and exit. ? ?[ -L | --list-devices ] ? ? ? ? ? show available scanner devices. ? ?[ -v | --verbose ] ? ? ? ? ? ? ? ?give even more status messages. ? ?[ -V | --version ] ? ? ? ? ? ? ? ?print version information. ? ?[ -N | --no-overwrite ] ? ? ? ? ? don't overwrite existing files. ? ?[ -o | --output-file name ] ? ? name of file to write image data ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?(%d replacement in output file name). ? ?[ -S | --scan-script name ] ? ? name of script to run after every scan. ? ?[ --script-wait ] ? ? ? ? ? ? ? ? wait for scripts to finish before exit ? ?[ -s | --start-count num ] ? ? ?page count of first scanned image. ? ?[ -e | --end-count num ] ? ? ? ?last page number to scan. ? ?[ -r | --raw ] ? ? ? ? ? ? ? ? ? ?write raw image data to file. scanadf: setting of option --br-x failed (Invalid argument) scanadf --version scanadf (sane-frontends) 1.0.14 -- 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 hmm, i forgot to write down the scanner, when i made the report, sorry for this. I think its a: HP Photosmart C4280 AIO these scanners work btw with scanadf --help both tested hpaio:/usb/Officejet_J5700_series?serial=CN7BOCF3HP04TC hpaio:/usb/Officejet_7200_series?serial=MY71OK71S604HQ Best regards, Jelle de Jong Thank you allan for the information, I am curious, why is the hpaio backend separated from the sane development team, it very annoying i have a few outstanding bugs someway related to hpaio or hplip with cups. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=517083 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=516982 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=513493 As far as I know HP is the only vendor that tells to support linux printing, but the way that do it seems to be counter effective, do they work with upstream? How about QA? Why not merge with sane and cups? I would really like to see all hp scanner and printers be merged with sane and cups so there is one system that supports multiple backends. Any thoughts? Best regards, Jelle
[sane-devel] scanadf --help (setting of option --br-x failed)
Hi Allan, m. allan noah wrote: what scanner and backend? allan On Wed, Feb 18, 2009 at 10:25 AM, Jelle de Jong jelledejong at powercraft.nl wrote: Hello everybody, I got the below failure when running scanadf --help, I also tested scanimage --help and that command worked fine. Should I make a debian bug report for this? or somethings else? Best regards, Jelle scanadf --help Usage: scanadf [OPTION]... Start image acquisition on a scanner device and write image data to output files. [ -d | --device-name device ] use a given scanner device. [ -h | --help ] display this help message and exit. [ -L | --list-devices ] show available scanner devices. [ -v | --verbose ]give even more status messages. [ -V | --version ]print version information. [ -N | --no-overwrite ] don't overwrite existing files. [ -o | --output-file name ] name of file to write image data (%d replacement in output file name). [ -S | --scan-script name ] name of script to run after every scan. [ --script-wait ] wait for scripts to finish before exit [ -s | --start-count num ] page count of first scanned image. [ -e | --end-count num ]last page number to scan. [ -r | --raw ]write raw image data to file. scanadf: setting of option --br-x failed (Invalid argument) scanadf --version scanadf (sane-frontends) 1.0.14 -- 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 hmm, i forgot to write down the scanner, when i made the report, sorry for this. I think its a: HP Photosmart C4280 AIO these scanners work btw with scanadf --help both tested hpaio:/usb/Officejet_J5700_series?serial=CN7BOCF3HP04TC hpaio:/usb/Officejet_7200_series?serial=MY71OK71S604HQ Best regards, Jelle de Jong
[sane-devel] scanadf --help (setting of option --br-x failed)
Hello everybody, I got the below failure when running scanadf --help, I also tested scanimage --help and that command worked fine. Should I make a debian bug report for this? or somethings else? Best regards, Jelle scanadf --help Usage: scanadf [OPTION]... Start image acquisition on a scanner device and write image data to output files. [ -d | --device-name device ] use a given scanner device. [ -h | --help ] display this help message and exit. [ -L | --list-devices ] show available scanner devices. [ -v | --verbose ]give even more status messages. [ -V | --version ]print version information. [ -N | --no-overwrite ] don't overwrite existing files. [ -o | --output-file name ] name of file to write image data (%d replacement in output file name). [ -S | --scan-script name ] name of script to run after every scan. [ --script-wait ] wait for scripts to finish before exit [ -s | --start-count num ] page count of first scanned image. [ -e | --end-count num ]last page number to scan. [ -r | --raw ]write raw image data to file. scanadf: setting of option --br-x failed (Invalid argument) scanadf --version scanadf (sane-frontends) 1.0.14
[sane-devel] scanadf --scan-script giving me troubles when used in screen environment
Simon Matter wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jelle de Jong wrote: Hello everybody, I have developed this tool that uses scanadf: https://secure.powercraft.nl/svn/packages/trunk/deb/pct-scanner-scripts/pct-scanner-scripts-devel/ It is also waiting for sponsoring to be included into debian: http://mentors.debian.net/debian/pool/main/p/pct-scanner-scripts The tool works fine run from the command line but when trying to integrate it with keyboard shortcuts i run into serious trouble. I spent a hole day trying to debug it without luck. The script called from scanadf closes unexpected when executing a command like c44 of convert, i first thought it was a bug in convert so i made this bug report, see the attachment for info: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=513493 But then after further testing I had exactly the same issue with c44 command. It only happens when my tool is not directly executed form a terminal. If i run this from a normal xterm of xfce4-terminal it goes wrong: screen -S scanner /usr/bin/pct-scanner-script --config color2 --clean or /usr/bin/xfce4-terminal --hold --execute /usr/bin/pct-scanner-script --config color2 So its not only with screen i get this issue Both above command result in an unexpected exit of the child script used by scanadf. I also simplified the script that is called form scanadf but it just dies unexpected when called: see: http://debian.pastebin.com/d5f169270 I am complete lost here, I have been pulling out my remaining hairs for this hole day :-( I can both duplicate this issue on two different machines one lenny and one sid. Please help, Best regards, Jelle de Jong Hello everybody, After more debugging with strace I discovered that the running command received a SIGHUP [1] singal, I tried all kind of things like wait, nohup, disown to keep the script called by scanadf running, but no luck. [1] --- SIGHUP (Hangup) @ 0 (0) --- Am I correct that your script is called from scanadf and it then receives SIGHUP after some time of running? If yes, did you try disabling bash's standard SIGHUP handling (which is to send SIGHUP also to it's children) trap SIGHUP IIRC another problem can be vanishing filedescriptors, like STDIN going missing. I see that you run some programs in background with nohup. If you want them to run completely independant you could try runnning them with disconnected filedescriptors, like program - - 2- Of course that can be impossible if you need them but depending of how your program works it may be a solution. Regards, Simon Thanks for the hints, I did not try to use the trap or redirections since I think the default behavior is kind of broken. Would somebody be willing to take a look at it? I also have the following question: I created the below project: http://mentors.debian.net/debian/pool/main/p/pct-scanner-scripts/ It is a bash script that wraps all kind of extra functionality to the scanadf tool. Maybe it would be nice if somebody could make scanadf2 or scantool for it as evolution or enhancement of the original tool? Best regards, Jelle de Jong
[sane-devel] scanadf --scan-script giving me troubles when used in screen environment
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jelle de Jong wrote: Hello everybody, I have developed this tool that uses scanadf: https://secure.powercraft.nl/svn/packages/trunk/deb/pct-scanner-scripts/pct-scanner-scripts-devel/ It is also waiting for sponsoring to be included into debian: http://mentors.debian.net/debian/pool/main/p/pct-scanner-scripts The tool works fine run from the command line but when trying to integrate it with keyboard shortcuts i run into serious trouble. I spent a hole day trying to debug it without luck. The script called from scanadf closes unexpected when executing a command like c44 of convert, i first thought it was a bug in convert so i made this bug report, see the attachment for info: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=513493 But then after further testing I had exactly the same issue with c44 command. It only happens when my tool is not directly executed form a terminal. If i run this from a normal xterm of xfce4-terminal it goes wrong: screen -S scanner /usr/bin/pct-scanner-script --config color2 --clean or /usr/bin/xfce4-terminal --hold --execute /usr/bin/pct-scanner-script --config color2 So its not only with screen i get this issue Both above command result in an unexpected exit of the child script used by scanadf. I also simplified the script that is called form scanadf but it just dies unexpected when called: see: http://debian.pastebin.com/d5f169270 I am complete lost here, I have been pulling out my remaining hairs for this hole day :-( I can both duplicate this issue on two different machines one lenny and one sid. Please help, Best regards, Jelle de Jong Hello everybody, After more debugging with strace I discovered that the running command received a SIGHUP [1] singal, I tried all kind of things like wait, nohup, disown to keep the script called by scanadf running, but no luck. [1] --- SIGHUP (Hangup) @ 0 (0) --- So I created an evil workaround with file status flags, this seems to be working well and waits until the child is finished before closing itself, for the full commit diff see: http://www.powercraft.nl/pipermail/packages-commit/2009-January/91.html I think the scanadf code, that call the process script is kind of broken, it does not allow for extra arguments (only exported envs) and it does not allow nohup /path/of/script --argument $file as argument. Beside this the spawning process of scanadf used for the script is like evil black magic for me ... :-( It took way to much time to debug this issues, the workaround did not take so much time though. Would somebody be willing to take a look at the scanadf code and if possible enhance it. We can talk about some sort of bounty/reward for the possible work. Thanks in advance, Jelle de Jong -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) iJwEAQECAAYFAkmCTEMACgkQ1WclBW9j5HnuxQP9HniSp7MEmsKWh7tdI8EE/y5b rKbKXLTMGodMEEs9MQGCGs3MeUFlj7HANypziHK0m7TC5LrLQsEKyCRiT8oBzPKp 7HOXwxDJ3vpSJchQLstj5JlrW9WwyQTLJlvI1PdZ6/EFcEho5uG5V5oFt7h9PXku Gen6L39z82DyinGVFS8= =jqAG -END PGP SIGNATURE-
[sane-devel] scanadf --scan-script giving me troubles when used in screen environment
Hello everybody, I have developed this tool that uses scanadf: https://secure.powercraft.nl/svn/packages/trunk/deb/pct-scanner-scripts/pct-scanner-scripts-devel/ It is also waiting for sponsoring to be included into debian: http://mentors.debian.net/debian/pool/main/p/pct-scanner-scripts The tool works fine run from the command line but when trying to integrate it with keyboard shortcuts i run into serious trouble. I spent a hole day trying to debug it without luck. The script called from scanadf closes unexpected when executing a command like c44 of convert, i first thought it was a bug in convert so i made this bug report, see the attachment for info: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=513493 But then after further testing I had exactly the same issue with c44 command. It only happens when my tool is not directly executed form a terminal. If i run this from a normal xterm of xfce4-terminal it goes wrong: screen -S scanner /usr/bin/pct-scanner-script --config color2 --clean or /usr/bin/xfce4-terminal --hold --execute /usr/bin/pct-scanner-script --config color2 So its not only with screen i get this issue Both above command result in an unexpected exit of the child script used by scanadf. I also simplified the script that is called form scanadf but it just dies unexpected when called: see: http://debian.pastebin.com/d5f169270 I am complete lost here, I have been pulling out my remaining hairs for this hole day :-( I can both duplicate this issue on two different machines one lenny and one sid. Please help, Best regards, Jelle de Jong
[sane-devel] scanadf --scan-script giving me troubles when used in screen environment
Jeremy Johnson wrote: What is OUTDIR set to in your configuration? set -x; exec 2$HOME/scanscript/output/pct-scanner-script-process.log c44 -dpi $SCAN_RES $1 $OUTDIR/scanscript/processing/document-single-page-test.djvu grep OUTDIR 50configuration # OUTDIR=$HOME OUTDIR=HOME Shouldn't the commented out line be the correct one? OUTDIR=${HOME} Hello Jeremy, i have been searching trough all config file and i cant find HOME anywere all variables where set to OUTDIR=$HOME and that should not be any different then OUTDIR=${HOME}. I agree var0=${var1} is better code style. So i will change this but it is not the cause behind the problem I am having... Any ideas... I am really stuck here Best regards, Jelle
[sane-devel] iptables and saned network scanner
Julien BLACHE wrote: Jelle de Jong jelledejong at powercraft.nl wrote: Hi, I am trying to build a saned network scanner. I figured out a lot of things on my own, but got stuck on the required secure iptable rules. You need connection tracking for the SANE network protocol as provided by CONFIG_NF_CONNTRACK_SANE in recent 2.6 kernels. JB. Thank you Julien for you quick reply, I changed my kernel to a stock debian lenny kernel that support the conntrack sane modules. I updated my firewall configuration, but I still got the message the ports are being blocked. I included more information as the mail attachment. How can I get the saned network scanner securely working? All help is appreciated. Kind regards, Jelle -- next part -- A non-text attachment was scrubbed... Name: iptables.log Type: text/x-log Size: 7161 bytes Desc: not available Url : http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20080923/d12ef592/attachment-0001.bin
[sane-devel] iptables and saned network scanner
Jelle de Jong wrote: Julien BLACHE wrote: Jelle de Jong jelledejong at powercraft.nl wrote: Hi, I am trying to build a saned network scanner. I figured out a lot of things on my own, but got stuck on the required secure iptable rules. You need connection tracking for the SANE network protocol as provided by CONFIG_NF_CONNTRACK_SANE in recent 2.6 kernels. JB. Thank you Julien for you quick reply, I changed my kernel to a stock debian lenny kernel that support the conntrack sane modules. I updated my firewall configuration, but I still got the message the ports are being blocked. I included more information as the mail attachment. How can I get the saned network scanner securely working? All help is appreciated. Kind regards, Jelle Due to the great tip of Allan to check if saned was working if I brought down the firewall, I got a bit further in my debugging. So I took down the firewall and tried to access the scanner on my client. It still did not work while I could not find any alarming things in my logs. I started the debug command to check things and now everything was working. I have no idea what is wrong here... I guess it is something in xinetd and the saned connecting but how could one debug such thing? Please see my attachment for more information and specific command outputs. Any help is appreciated, ps. I am not trying to create a outside acceptable network scanner, it is for local lan usage. Best regards, Jelle -- next part -- An embedded and charset-unspecified text was scrubbed... Name: saned-network-scanner.txt Url: http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20080924/57b57151/attachment-0001.txt
[sane-devel] iptables and saned network scanner
Julien BLACHE wrote: Jelle de Jong jelledejong at powercraft.nl wrote: Hi, I started the debug command to check things and now everything was working. I have no idea what is wrong here... I guess it is something in xinetd and the saned connecting but how could one debug such thing? Disable all the backends you don't need in dll.conf and try again. Might be a backend bug biting you (epson2, fd 0, yada yada). Looks like you're using Ubuntu, and your packages may not have the fix for this particular issue. JB. Hi Julien, Ok, I flushed out the dll.conf file and only added the net and hpaio lines. cat /etc/sane.d/dll.conf net hpaio When running saned in debug mount everything works fine from the client side. But when i used the xinetd system the client can't find the scanner. All messages are the same as before (see the attachment) /etc/init.d/xinetd stop sudo -u saned SANE_DEBUG_HP=128 saned -d128 ^- this seems to work fine /etc/init.d/xinetd start ^- this does not work, but connects and accepts connections... Any help is appreciated, Best regards, Jelle -- next part -- An embedded and charset-unspecified text was scrubbed... Name: saned-network-scanner.txt Url: http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20080924/b8e8bb12/attachment.txt
[sane-devel] iptables and saned network scanner / xinetd saned groups
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jelle de Jong wrote: Dear list members, This is my first email to this specific list, so let me say hello to you all and thank you for your work on the sane-project. I am trying to build a saned network scanner. I figured out a lot of things on my own, but got stuck on the required secure iptable rules. Would somebody be willing to take a look at my iptable setup and add the required setup rules? The system is in production, so it needs to be as secure as possible. I also attached my setup documentation with debugging info and the reported iptable denyal. Any help would be appreciated, Best regards, Jelle de Jong I finally fixed the actual issue, and documented everything extensively (see attachment) I strongly advice the sane-project to update there documentation. The behind problem was that the 'groups = yes' option was not documentation in man saned or the web pages. If this option is not given xinetd will strip the scanner group and everything seems to be working but the scaned process started by xinetd cant access the device ... # IMPORTANT: add 'groups = yes' to the configuration, else xinetd strips the scanner group and is unable to access the device! # see - man xinetd.conf Thanks to everybody trying to help. Kind regards, Jelle de Jong -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iJwEAQECAAYFAkjaEOAACgkQ1WclBW9j5HkK/gP/Qb0SSVRvWN8uGqBCXyID5dTe bpOzZjRGtZzMDOGjgtlgsDqkrwVrWpxFFdrcMzNiieT92ec/ZC9TZYtMd5LmbHu6 hgjOHg6DGRFcqCaAZ6JOfSwDSJOJM7k4ClLoI1SPMCQLo4NMoJB8JxwkBTykvdvf paI0FW2FZfBps9jGNFI= =V3Gc -END PGP SIGNATURE- -- next part -- An embedded and charset-unspecified text was scrubbed... Name: saned-network-scanner.txt Url: http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20080924/e67a5e7f/attachment-0001.txt
[sane-devel] iptables and saned network scanner
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dear list members, This is my first email to this specific list, so let me say hello to you all and thank you for your work on the sane-project. I am trying to build a saned network scanner. I figured out a lot of things on my own, but got stuck on the required secure iptable rules. Would somebody be willing to take a look at my iptable setup and add the required setup rules? The system is in production, so it needs to be as secure as possible. I also attached my setup documentation with debugging info and the reported iptable denyal. Any help would be appreciated, Best regards, Jelle de Jong -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iJwEAQECAAYFAkjY9Z4ACgkQ1WclBW9j5Hk6VgQAlpwZ1xW5Vf19QUhUHR+7Smr4 tpFCUbLoA7WVYG3duknQejZt5RWuu23LR/rF9bEt0nsF4ZS4IGq1UXeVDvX0SYHH hsOy9JZzgwl/Gnva8xf8e/+mutzKV7gjdgXGdjmVkYYt3RKgNUm0HgObQ4A1eAoq WgKKLjUEMIF2NIM0nQQ= =LIyO -END PGP SIGNATURE- -- next part -- An embedded and charset-unspecified text was scrubbed... Name: network-scanner.txt Url: http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20080923/1136a9da/attachment.txt -- next part -- A non-text attachment was scrubbed... Name: iptable.log Type: text/x-log Size: 5363 bytes Desc: not available Url : http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20080923/1136a9da/attachment.bin -- next part -- A non-text attachment was scrubbed... Name: network-scanner.txt.sig Type: application/octet-stream Size: 158 bytes Desc: not available Url : http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20080923/1136a9da/attachment.obj -- next part -- A non-text attachment was scrubbed... Name: iptable.log.sig Type: application/octet-stream Size: 158 bytes Desc: not available Url : http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20080923/1136a9da/attachment-0001.obj