From mboxrd@z Thu Jan 1 00:00:00 1970 From: Erik Rull Subject: Re: USB Scanner Date: Mon, 03 Jan 2011 16:43:06 +0100 Message-ID: <4D21EE8A.7060108@rdsoftware.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org To: "Matthias Henze (L)" Return-path: Received: from moutng.kundenserver.de ([212.227.17.8]:54081 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932069Ab1ACPnL (ORCPT ); Mon, 3 Jan 2011 10:43:11 -0500 In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: Matthias Henze (L) wrote: > Hi, > > finally I've tried to connect a USB scanner to a KVM VM. I've done so by > adding > > hostusb: 04a9:1606 > > to the VMs conf. The scanner is detected by Windows XP and at first it > seemed to work. It scanns but then "CapturePerfect" hangs for ever. > > lsusb reports: > > Bus 002 Device 005: ID 04a9:1606 Canon, Inc. > > and "info usb": > > Device 0.1, Speed 12 Mb/s, Product QEMU USB Tablet > Device 0.3, Speed 12 Mb/s, Product QEMU USB Hub > Device 0.2, Speed 480 Mb/s, Product CANON DR-5010C > > and "info usbhost": > > Device 1.1, speed 480 Mb/s > Hub: USB device 1d6b:0002, EHCI Host Controller > Device 2.1, speed 480 Mb/s > Hub: USB device 1d6b:0002, EHCI Host Controller > Device 3.1, speed 12 Mb/s > Hub: USB device 1d6b:0001, UHCI Host Controller > Device 4.1, speed 12 Mb/s > Hub: USB device 1d6b:0001, UHCI Host Controller > Device 5.1, speed 12 Mb/s > Hub: USB device 1d6b:0001, UHCI Host Controller > Device 6.1, speed 12 Mb/s > Hub: USB device 1d6b:0001, UHCI Host Controller > Device 7.1, speed 12 Mb/s > Hub: USB device 1d6b:0001, UHCI Host Controller > Device 8.1, speed 12 Mb/s > Hub: USB device 1d6b:0001, UHCI Host Controller > Device 1.2, speed 480 Mb/s > Hub: USB device 04b4:6560 > Device 6.2, speed 12 Mb/s > Class 00: USB device 0000:0000, SE USB Device > Device 8.2, speed 1.5 Mb/s > Class 00: USB device 046a:0101, Wireless Desktop > Device 1.3, speed 480 Mb/s > Class 00: USB device 0bc2:2101, FreeAgent Go > Device 1.4, speed 480 Mb/s > Class 00: USB device 0bc2:2101, FreeAgent Go > Device 2.5, speed 480 Mb/s > Class 00: USB device 04a9:1606, CANON DR-5010C > Auto filters: > Device *.* ID 04a9:1606 > > Can some one pelase help ? This ist a show stopper for this project ... > > TIA > Matthias > Hi Matthias, I experienced a similar behaviour with Epson and Canon USB Printers. there the ink fill status readout causes a complete hang of the software (Windows still operational). It seems to be related with USB 2.0 devices. An older USB 1.1 HP Printer works slow but fine. Please check dmesg of the host system, there you should see a lot of USB info messages after plugging in the device. If you get a BSOD in XP when shutting down Windows or when removing the USB Scanner then it is exactly the same issue that I have. It seems (from my point of view) to be related with the KVM-USB virtualization. I could reduce some of the BSOD's by forcing the host USB system to fall back to USB 1.x (switch in BIOS), but printing with the 2.0 devices was still not possible! I have currently no real idea how to solve the issue - additionally the transfer rates of USB are horribly - I do not get more than ~ 64K/sec. If there are improvements on that somewhere "uncomitted" I would like to try them out. Best regards, Erik