Sign up ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

I have a Canon LIDE 100 scanner that doesn't properly initialize on first scan attempt. When I trigger a scan, it seems to start (you hear the scanner beginning to engage), but then my scanning application (gscan2pdf) echoes back: "Error during device I/O." If I close the application, and restart another scan, there is no error and it scans properly.

I get the same behavior if I use Simple Scan or XSane.

There are many other reports of this behavior, and others have suggested that my system has put the USB port to sleep (at least partially) to save power. It seems to not properly wake up. I'm using 10.10 and it has been suggested that I may be able to tell my system to not autosuspend the USB port, but am not sure how to do that.

Any input on this is appreciated.

share|improve this question

2 Answers 2

Autosuspend of a USB port is possible through the laptop-mode-tools package.

The kernel could also play a part.


If you have this installed then there should be a file called /etc/laptop-mode/conf.d/usb-autosuspend.conf.

Assuming you have this file, examine the file.

Two possible settings you might want to consider:

  1. CONTROL_USB_AUTOSUSPEND="auto" - if you set this to 0 then auto-suspend is switched off for all USB devices.
  2. Perhaps better - you can blacklist certain devices such as your scanner by adding its USB-ID to AUTOSUSPEND_USBID_BLACKLIST. You can find your scanner id by running lsusb. For example - AUTOSUSPEND_USBID_BLACKLIST="046d:c025"

Kernel Boot option

You can force autosuspend to be switched off through the grub-boot option usbcore.autosuspend

Add usbcore.autosuspend=-1 to the value GRUB_CMDLINE_LINUX_DEFAULT in the file /etc/default/grub. Dont forget to run sudo update-grub afterwards.

share|improve this answer
I opted to go with laptop-mode tools, which were not installed on my Thinkpad X201. I installed via Synaptic; however, when I ran cat /proc/sys/vm/laptop_mode, the system came back with "0", indicating that laptop_mode was not eanbled. I then made modifications as described here:… After rebooting, I'm still getting a "0" when running cat /proc/sys/vm/laptop_mode How do I enable laptop_mode? – Kendor Jul 31 '11 at 13:10
Actually realize that this has nothing to do with getting laptop_mode started... I tried running sudo /usr/sbin/laptop_mode per this and get back this: Laptop mode enabled, not active [unchanged] – Kendor Jul 31 '11 at 13:55
OK, I think I figured out the laptop_mode state issue. Since I'm running under AC power, by default this is inactive. I had to change the config file regarding ENABLE_LAPTOP_MODE_ALWAYS per here… – Kendor Jul 31 '11 at 14:01

I was getting the same grief with a Canon MP260 for scanning on an HP Pavilion dm1 running Debian wheezy. Same error report in xsane and gscan2pdf. I had the scanner and some other devices connected via a small USB hub and thence to a USB port on the computer. All the grief disappeared when I moved the printer to connect directly to the computer. Hope that helps somebody.


share|improve this answer
For me it made the difference to try other USB ports of the laptop. Similar observations reported: – Peter and the wolf Aug 13 '14 at 20:10

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.