From: Jose Juan Iglesias Rebollo Date: Tue, 28 Feb 2006 07:44:05 +0000 Subject: Re: Is it possible for hotplug not to take control over a device? Message-Id: <200602280844.05759.jjiglesias@coit.es> List-Id: References: <4402B5E3.6020202@coit.es> In-Reply-To: <4402B5E3.6020202@coit.es> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: linux-hotplug@vger.kernel.org El Lunes, 27 de Febrero de 2006 18:26, Greg KH escribi=F3: > On Mon, Feb 27, 2006 at 09:18:43AM +0100, Jose Juan Iglesias Rebollo wrot= e: > > Hi all! > > > > Recently I purchased a Canon multifunction printer. Its scanner is not > > supported by linux yet, so I've got one idea: use it through VMware. But > > VMware cannot take control over it because hotplug already did. > > "hotplug" des not take over devices, usb drivers take over them. > > > So my question is: Is it possible to configure hotplug so that it > > ignores a specific device? If so, how can I do it, where should I look > > for information? > > I think the latest version of vmware can disconnect the device from the > Linux driver it is bound to, but if not, you can do it by hand by either > unloading the module, or by writing to a sysfs file called "disconnect" > in the driver's directory. > > Hope this helps, > > greg k-h Hi Greg, thanks for yor answer! You are right, at last it is the usb driver (kernel module) who controls th= e=20 device. But doesn't hotplug decide which driver controls a device? I say th= is=20 because there's no "usbcanon" module but usbstorage instead. My=20 multifunction's got three "If" under the same device id: Sub=00 - Driver =3D none (scanner, I supose) Sub=01 - Driver =3D usblp (I can unload this module: I've got no other prin= ter) Sub=06 - Driver =3D usbstorage (I use a flash usb memory) If there was a unique "usbcanon or so" module I'd have no problem in unload= ing=20 it, but, as you can see, the multifunction is taken over by modules that ca= n=20 control many other devices. I've red that hotplug makes use of several map files that tell hotplug abou= t=20 devices. Isn't there any file where you can configure vendor and device ids= =20 of this multifunction so that hotplug does nothing about it? Isn't there a more elegant way? Thanks in advance! Kind regards. __ Jose Juan Iglesias ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd________________________________________= _______ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel