Hi, All of the generation 2: CIS Canon Pixma printers seem to suffer from the same issue which seems to be a problem with the parameters passed to the printer. aligning the pixels for the raw width to 16 for both gray and color seems to fix part of the problem, but I still cannot pass an arbirtrary offset x,y value. This site has a patch for an MP600, which you need to use before anything will work:
http://pixma-mp600.sourceforge.jp/ From the patch: /* Generation 2: CIS */ DEVICE("Canon PIXMA MP160", MP160_PID, 600, PIXMA_CAP_EXPERIMENT), DEVICE("Canon PIXMA MP180", UNKNOWN_PID, 1200, PIXMA_CAP_EXPERIMENT), DEVICE("Canon PIXMA MP460", MP460_PID, 1200, 0), DEVICE("Canon PIXMA MP510", UNKNOWN_PID, 1200, PIXMA_CAP_EXPERIMENT), DEVICE("Canon PIXMA MP600", MP600_PID, 2400, 0), DEVICE("Canon PIXMA MP600R", UNKNOWN_PID, 2400, PIXMA_CAP_EXPERIMENT), Any of these printers are probably affected..... Marcus K?ll wrote: > Hi! > > I have a Canon pixma MP160 which is not supported by sane. MP150 and > MP170 are supported. > > I have no idea how the MP160 interface works, but I guess it is quite > similar to MP150 and MP170, so I modified the driver for MP150 and MP170 > from SANE-backends-1.0.18. > > So, I added the line: > DEVICE ("Canon PIXMA MP160", 0x1714, 1200, 0), > to the file pixma_mp150.c. This line is almost the same as the lines for > MP150 and MP170, but I changed the name and vendor id. I found the > vendor id from sane-find-scanner utility. > > After that I compiled it for ubuntu 6.06. The default SANE-backend > version for ubuntu 6.06 is 1.0.17 but the compiling process did not > complain. > > With those modifications xsane finds my scanner, but when I try to scan > xsane tells me that there was an error and aborts the scan. > > The following lines contains the output from the pixma driver with > highest debugging enabled. > > [sanei_debug] Setting debug level of pixma to 10. > [pixma] pixma version 0.11.3 > [pixma] pixma_open(): Canon PIXMA MP160 > [pixma] Reader task started > [pixma] > [pixma] pixma_scan(): start > [pixma] line_size=1920 image_size=1683840 channels=3 depth=8 > [pixma] dpi=75x75 offset=(0,0) dimension=638x877 > [pixma] gamma_table=0x8262270 source=0 > [pixma] Reader task id=6387 (forked) > [pixma] Setting non-blocking mode > [pixma] OUT T=52.746 len=16 > [pixma] 00000000:db 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 > [pixma] > [pixma] IN T=52.753 len=8 > [pixma] 00000000:06 06 00 00 00 00 00 00 > [pixma] > [pixma] OUT T=52.797 len=28 > [pixma] 00000000:dd 20 00 00 00 00 00 00 00 00 00 00 00 00 00 0c > [pixma] 00000010:01 01 00 00 00 00 00 00 00 00 00 fe > [pixma] > [pixma] IN T=52.831 len=8 > [pixma] 00000000:15 15 00 00 00 00 00 00 > [pixma] > [pixma] OUT T=52.832 len=16 > [pixma] 00000000:ef 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 > [pixma] > [pixma] IN T=52.833 len=8 > [pixma] 00000000:06 06 00 00 00 00 00 00 > [pixma] > [pixma] pixma_scan() failed:Operationen avbruten > [pixma] Reader task terminated: Operationen avbruten > [pixma] read_image():reader task closed the pipe:0 bytes received, > 1683840 bytes expected > [pixma] pixma_close(): Canon PIXMA MP160 > > Can anyone help me with this driver? > > Best Regards Marcus > > > -- David Nicklay O- Location: CNN Center - SE0811A Office: 404-827-2698 Cell: 404-545-6218