Control what happens to USB device

It seems like hotplug et al is getting cleverer and cleverer. But I don’t want it to be…

I have Win XP running in VirtualBox on openSUSE 21.1 and when I plug in my mobile phone it no longer appears in the ‘Devices’ menu in VirtualBox. Under 11.4 it did. I suspect the problem is that linux is capturing it and not allowing the passthrough to work (other USB devices are fine and I already have a filter set up in Virtualbox).

Dmesg now gives:

[64761.879249] usb 1-4.3: Product: N8-00
[64761.879255] usb 1-4.3: Manufacturer: Nokia
[64761.879259] usb 1-4.3: SerialNumber: 356237042436129
[64764.100096] cdc_acm 1-4.3:1.1: ttyACM0: USB ACM device
[64764.101656] cdc_acm 1-4.3:1.3: ttyACM1: USB ACM device
[64764.102198] usbcore: registered new interface driver cdc_acm
[64764.102202] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[64764.182022] usbcore: registered new interface driver cdc_ether
[64764.274508] NET: Registered protocol family 35
[64764.300292] usbcore: registered new interface driver rndis_host
[64764.302425] usbcore: registered new interface driver cdc_phonet
[64764.756065] cfg80211: Calling CRDA to update world regulatory domain
[64764.816499] usbcore: registered new interface driver rndis_wlan
[64765.014101] cfg80211: World regulatory domain updated:
[64765.014104] cfg80211:     (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[64765.014107] cfg80211:     (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[64765.014109] cfg80211:     (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[64765.014111] cfg80211:     (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[64765.014113] cfg80211:     (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[64765.014115] cfg80211:     (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)

So presumably the various drivers are not letting Vbox access the phone. I don’t know much about hutplug and usb, but I see two potential reasons, one that Virtualbox simply no longer has access rights to the devices (owner is changed) or two, that drivers prevent VirtualBox from accessing the devices.

Can I stop linux usb from doing this? Is there a simple rule I can write with the device ID to prevent drivers grabbing a device?

I do not know why you decided that this is more of a Hardware then a Virtualisation problem… But to me it seems that posting there might give you better people to help you.

On 2012-01-29 08:26, solanum wrote:
> Can I stop linux usb from doing this? Is there a simple rule I can
> write with the device ID to prevent drivers grabbing a device?

This seems to me to be a virtualization question, not a hardware question.

IMHO, it is the duty of VB to grab the device from the system. Vmware does
that with no problem: I just click on the device and it disappears from the
host, complains unheard.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

Happy to post it on another forum, but it is a driver ‘problem’, which I thought was for here? VirtualBox cannot see it to grab it. What I would like to be able to do is control what hotplug does when a specific device (phone) is plugged in. So that it doesn’t load the cdc_acm driver and block the device. To some extent why I want to do that (for VirtualBox to use it) is irrelevant.

BTW have added to the virtualisation forum now.