Hi, I did not find anything in the archives that could help. I have Canon N340P and Canon FB330P parallel port scanners. I am running * Ubuntu, kernel 2.6.15-27-386. * scanimage (sane-backends) 1.0.17; backend version 1.0.17 * libieee1284-3 0.2.10-1 * Parallel port is in EPP mode (BIOS setting)
It scans most often (not always) in black and white. For color mode the number of "reads" varies from two to four. I spent quite some time trying to make it work. Should I have known it takes so much time, I would toss the scanner in the garbage. At this point it is more of a challenge. I know that I am not the only person who has the problem and I want to post the solution to the Ubuntu web site along with a recommendation not to buy canon scanners. Scanning stops after producing the following output. Several minutes later the scanner returns the head to the initial position. Scanimage does not terminate. Please let me know if I can provide any additional information that could help. Thank you ubuntu@ubuntu:~/Desktop$ sudo scanimage --mode Color >image.png [sanei_debug] Setting debug level of canon_pp to 4. [canon_pp] >> sane_init(0xbf820398, 0x80491d0): sane-backends 1.0.17 [canon_pp] sane_init: >> ieee1284_find_ports [canon_pp] sane_init: 0 << ieee1284_find_ports [canon_pp] >> init_device [canon_pp] << init_device [canon_pp] detect_mode: Port supports ECP-H. [canon_pp] detect_mode: Port supports interrupts. [canon_pp] sane_init: >> initialise [canon_pp] sane_init: << 0 initialise [canon_pp] << sane_init [canon_pp] >> sane_get_devices (0xbf8203f8, 0) [canon_pp] << sane_get_devices [canon_pp] >> sane_open (h=0xbf8203f8, name="parport0") [canon_pp] sane_open: >> initialise [canon_pp] sane_open: << 0 initialise [canon_pp] sane_open: >> load_weights(/home/kostya/.sane/canon_pp-calibration-pp0, 0x8052634) [canon_pp] sane_open: << 0 load_weights [canon_pp] << sane_open [canon_pp] >> sane_control_option (h=0x8052490, opt=0, act=0) [canon_pp] << sane_control_option [canon_pp] >> sane_control_option (h=0x8052490, opt=0, act=0) [canon_pp] << sane_control_option [canon_pp] >> sane_control_option (h=0x8052490, opt=6, act=0) [canon_pp] << sane_control_option [canon_pp] >> sane_control_option (h=0x8052490, opt=7, act=0) [canon_pp] << sane_control_option [canon_pp] >> sane_control_option (h=0x8052490, opt=4, act=0) [canon_pp] << sane_control_option [canon_pp] >> sane_control_option (h=0x8052490, opt=5, act=0) [canon_pp] << sane_control_option [canon_pp] >> sane_control_option (h=0x8052490, opt=2, act=1) [canon_pp] << sane_control_option [canon_pp] >> sane_control_option (h=0x8052490, opt=4, act=0) [canon_pp] << sane_control_option [canon_pp] >> sane_control_option (h=0x8052490, opt=6, act=1) [canon_pp] << sane_control_option [canon_pp] >> sane_control_option (h=0x8052490, opt=5, act=0) [canon_pp] << sane_control_option [canon_pp] >> sane_control_option (h=0x8052490, opt=7, act=1) [canon_pp] << sane_control_option [canon_pp] >> sane_start (h=0x8052490) [canon_pp] << sane_start [canon_pp] >> sane_get_parameters (h=0x8052490, params=0xbf8214fc) [canon_pp] << sane_get_parameters [canon_pp] >> sane_read (h=0x8052490, buf=0x805ed90, maxlen=32768) [canon_pp] >> read_segment(x, x, x, 58, 1, 295) [canon_pp] << 0 read_segment [canon_pp] << sane_read [canon_pp] >> sane_read (h=0x8052490, buf=0x805ed90, maxlen=32768) [canon_pp] >> sane_read (h=0x8052490, buf=0x805ed90, maxlen=32768) [canon_pp] >> read_segment(x, x, x, 58, 1, 237) _________________________________________________________________ Be one of the first to try Windows Live Mail. http://ideas.live.com/programpage.aspx?versionId=5d21c51a-b161-4314-9b0e-4911fb2b2e6d From j...@pentastich.org Wed Nov 29 05:55:31 2006 From: j...@pentastich.org (Jim Mayer) Date: Wed Nov 29 05:55:48 2006 Subject: [sane-devel] XSane/Win32 0.991: Failed to set value of option mode: Invalid Argument Message-ID: <1164776131.1500.3.camel@perdita.danbury.local> Hi All, I'm seeing the following error in XSane/Win32 0.991. If I start the tool and then press the scan mode (Color, Gray, Binary) selector I get the error message: Failed to set value of option mode: Invalid Argument If I then select an item on the "Source medium type" selector (even the current value) the window refreshes and I can, afterwards, successfully change the scan mode. My PC has an AMD Athalon XP processor and is running Windows XP Home (SP2). My server machine is an older Pentium III machine running Fedora Core 6. The problem occurs with both the regular and "debug" versions of XSane. I'm including both the server side (saned -d177) and the client side (xsane-debug) output as an attached zip file (I'm not sure the list takes these, but it's worth a try). In this run I did the following actions: (1) Attempted to change the scan mode from Color to binary and got an error message. (2) Dismissed the error message. (3) Changed the source medium type to its current value (Full Color). (4) Successfully changed the scan mode from Color to binary. (5) Exited the application. -- Jim Mayer -------------- next part -------------- A non-text attachment was scrubbed... Name: error-report.zip Type: application/zip Size: 12270 bytes Desc: not available Url : http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20061128/7602fc76/error-report.zip From sta...@guarana.org Wed Nov 29 13:33:15 2006 From: sta...@guarana.org (Matthew Duggan) Date: Wed Nov 29 13:51:15 2006 Subject: [sane-devel] Canon_pp freezes halfway In-Reply-To: <bay123-w7809da971680113eb472fb9...@phx.gbl> References: <bay123-w7809da971680113eb472fb9...@phx.gbl> Message-ID: <bb5d03b6-7e1d-460f-95f3-c85aa3f59...@guarana.org> Hi there! On 29/11/2006, at 11:22 AM, selma kapetanovic wrote: ... > I am running > .. > * Parallel port is in EPP mode (BIOS setting) I'll get back to this... > It scans most often (not always) in black and white. For color mode > the number of "reads" varies from two to four. Hmm.. that's quite weird, but I'm guessing it's just the increased amount of data in colour mode. > I spent quite some time trying to make it work. Should I have known > it takes so much time, I would toss the scanner in the garbage. > At this point it is more of a challenge. I know that I am not the > only person who has the problem and I want to post the solution to > the Ubuntu web site along with a recommendation not to buy canon > scanners. Well, I'm probably not telling you anything you don't know, but it's not so much the scanner as the port. Parallel ports are flakey things - it's amazing they ever work really. They're just not really designed to push the large amounts of data scanners need to move. > ... > [canon_pp] detect_mode: Port supports ECP-H. > [canon_pp] detect_mode: Port supports interrupts ... So according to the probing done by libieee1284, the port supports ECP-H transfers and interrupts, but no mention of DMA. Generally speaking I've had the most success in the past using ECP and DMA mode or pure software mode, but pure software is very slow and nasty - DMA is much preferred if you can get it working. Anyway, I think the first thing to try is setting the BIOS setting to "ECP+EPP" if it has such an option, instead of "EPP". After that you should maybe allocate a fixed IRQ to the parallel port (yes, I know, plug&play - but it's just more reliable this way!). Once you've done that you can try playing with the parport_pc module settings to try and get DMA transfers working. I wish there was an easier way, but that's pretty much it. Hope that helps! Cheers, - Matthew