Is it possible for hotplug not to take control over a device?
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.
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?
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=lnk&kid0944&bid$1720&dat1642
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 5 lines · Jose Juan Iglesias Rebollo
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.
Quoted 3 lines
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
-------------------------------------------------------
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=lnk&kid0944&bid$1720&dat1642
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 13 lines · Greg KH
Quoted 5 lines · Jose Juan Iglesias Rebollo
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.
Quoted 3 lines
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?
Quoted 8 lines
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 the device. But doesn't hotplug decide which driver controls a device? I say this because there's no "usbcanon" module but usbstorage instead. My multifunction's got three "If" under the same device id:
Sub - Driver = none (scanner, I supose)
Sub - Driver = usblp (I can unload this module: I've got no other printer) Sub - Driver = usbstorage (I use a flash usb memory)
If there was a unique "usbcanon or so" module I'd have no problem in unloading it, but, as you can see, the multifunction is taken over by modules that can control many other devices.
I've red that hotplug makes use of several map files that tell hotplug about devices. Isn't there any file where you can configure vendor and device ids 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
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 30 lines · Jose Juan Iglesias Rebollo
El Lunes, 27 de Febrero de 2006 18:26, Greg KH escribi?:
Quoted 13 lines · Jose Juan Iglesias Rebollo
Quoted 5 lines
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.
Quoted 3 lines
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?
Quoted 8 lines
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 the device. But doesn't hotplug decide which driver controls a device? I say this because there's no "usbcanon" module but usbstorage instead. My multifunction's got three "If" under the same device id:
Quoted 7 lines
Sub - Driver = none (scanner, I supose)
Sub - Driver = usblp (I can unload this module: I've got no other printer) Sub - Driver = usbstorage (I use a flash usb memory)If there was a unique "usbcanon or so" module I'd have no problem in unloading it, but, as you can see, the multifunction is taken over by modules that can control many other devices.
No, you need to realize that you have 3 different USB "devices" here for your 1 "real" device. The Linux kernel wants to bind drivers to two of these individual devices, and doesn't care about the third (the scanner one.) If vmware can't handle this and disconnect just the parts you need, then you should take it up with vmware, as this isn't something that the core utilities can do anything about :)
Quoted 3 lines
I've red that hotplug makes use of several map files that tell hotplug about devices. Isn't there any file where you can configure vendor and device ids of this multifunction so that hotplug does nothing about it?
No, that information is deep within the drivers themselves now (the map files are generated by the information in the drivers.) As you don't want to delete your usb-storage driver, and these devices are "class" devices and not vendor-specific types, there isn't any "generic" way to do this.
Quoted 1 line
Isn't there a more elegant way?
Contact vmware and tell them to fix their code, as they can individually unbind devices from drivers quite easily if they wish to :)
good luck,
greg k-h
-------------------------------------------------------
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=lnk&kid0944&bid$1720&dat1642
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel