Hi Lars, Am 12.01.2013 19:37, schrieb Lars Noschinski: > Hi everyone, > > I am trying to get an Canon Pixma MP280 to scan an image. I am using the > sane-backends-1.0.23, > (packaged for Ubuntu from > https://launchpad.net/~nathan-renniewaldock/+archive/sane) on Ubuntu 12.04. > The scanner is detected without a problem, but if I try to scan an > image, scanimage returns "Error during device I/O". Before this error > occurs, I can hear that the scanner is moving its head shortly. Despite > the error being "ETIMEDOUT", scanimage does not run for a long time; and > most of that time is spent in device discovery.
please check if your usb interface stays on status power/control=on. If it is on power/control=auto (usb autosuspend) some usb-scanners have problems. On ubuntu 12.04 there seems to be a problem with udev rules: make a test moving /lib/udev/rules.d/40-libsane.rules to ../99-libsane.rules. Don't forget udevadm control --reload-rules and replug the scanner. > > $ scanimage --version > scanimage (sane-backends) 1.0.23; backend version 1.0.23 > > $ scanimage -L > device `pixma:04A91746_501A39' is a CANON Canon PIXMA MP280 > multi-function peripheral > > $ SANE_DEBUG_PIXMA=3 time scanimage -d pixma:04A91746_501A39 > foo.pnm > [sanei_debug] Setting debug level of pixma to 3. > [pixma] pixma is compiled with pthread support. > [pixma] pixma version 0.17.0 > [pixma] pixma_collect_devices() found Canon PIXMA MP280 at libusb:006:004 > [pixma] sanei_bjnp_find_devices: > [pixma] wlan0 is IPv4 capable, sending broadcast.. > [pixma] wlan0 is IPv4 capable, sending broadcast.. > [pixma] wlan0 is IPv4 capable, sending broadcast.. > [pixma] wlan0 is IPv4 capable, sending broadcast.. > [pixma] wlan0 is IPv4 capable, sending broadcast.. > [pixma] pixma_open(): Canon PIXMA MP280 > [pixma] Reader task started > [pixma] Reader task id=139717645358848 (threaded) > [pixma] > [pixma] pixma_scan(): start > [pixma] line_size=1914 image_size=1678578 channels=3 depth=8 > [pixma] dpi=75x75 offset=(0,0) dimension=638x877 > [pixma] gamma_table=0xb89678 source=0 > [pixma] threshold=127 threshold_curve=0 > [pixma] WARNING:Timed out in wait_until_ready() > [pixma] Current status: paper=0 cal=0 lamp=0 busy=0 > [pixma] pixma_read_image() failed ETIMEDOUT > [pixma] Reader task terminated: ETIMEDOUT > [pixma] read_image():reader task closed the pipe:0 bytes received, > 1678578 bytes expected > scanimage: sane_read: Error during device I/O > [pixma] pixma_close(): Canon PIXMA MP280 > Command exited with non-zero status 9 > 0.00user 0.00system 0:01.56elapsed 1%CPU (0avgtext+0avgdata > 5744maxresident)k > 0inputs+8outputs (0major+486minor)pagefaults 0swaps > > > If I search for ETIMEDOUT in the bugtracker, I find a few bugs which > might be related (312918, 313894, 313952); > but none of them came to a conclusion. Please let me know whether you > need more information or whether I should attach this information to one > of the existing bugs. > > Best regards, > Lars > > -- Wilhelm