I've attached a patch to enable duplex printing for the PIXMA MP830. I added an enum to pixma_scan_param_t that indicates which side of the document is being scanned. It is set in sane_start, and used mp150_scan so that an out of paper error only happens on a front side scan.
- Dusty On 10/4/07, Dustin DeWeese <dustin.deweese at gmail.com> wrote: > > I got duplex scanning to work. It works for all pages except the last > page scanned. It looks like the answer is already in the comments in > mp150_scan() in pixma_mp150.c: > > /* FIXME: Duplex ADF: check paper status only before odd pages > (1,3,5,...). */ > > - Dusty > > > On 10/4/07, Dustin DeWeese <dustin.deweese at gmail.com> wrote: > > > > Wittawat Yamwong, > > > > I have a PIXMA MP-830, and I'd like to add ADF duplex support to your > > driver for this model. I enabled the ADF Duplex source by uncommenting the > > code in the init_option_descriptors function in pixma_sane.c in the latest > > version (0.13.1). This is what scanadf outputs: > > > > $ scanadf --source='ADF Duplex' > > [pixma-0.13.1] WARNING:image size mismatches > > [pixma-0.13.1] 1683840 expected (877 lines) but 952320 received (496 > > lines) > > Scanned document image-0001 > > scanadf: sane_read: Document feeder out of documents > > Scanned 1 pages > > > > The device scans the first side and holds the document waiting to scan > > the other side. The screen on the device displays: > > > > Document in ADF. > > Continue scan > > =Continue operation on > > PC > > Discharge document > > =[OK] > > > > OK => Discharge > > > > I have to press OK to make the device release the document. > > > > How can I help implement duplex scanning on the MP-830? I've used USB > > Snoopy before to write a driver for a USB device. Should I do a duplex scan > > on Windows and send you a link to the output from USB Snoopy? > > > > Thanks, > > Dusty DeWeese > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20071006/1436dbf8/attachment-0001.htm -------------- next part -------------- A non-text attachment was scrubbed... Name: mp150-0.13.1-duplex.patch Type: text/x-patch Size: 2941 bytes Desc: not available Url : http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20071006/1436dbf8/attachment-0001.bin
