Skip to contentSkip to conversation

ignore_device

DISCUSSION Edward Siefker 3 participants 4 messages Dec 26, 2009 – Dec 27, 2009

lore
Share & tools
lore
#0 lore raw

I am trying to write a udev rule that will cause linux to completely ignore
a USB device. This is necessary because VirtualBox will not load USB devices
that have been grabbed by the host system.

Anyway, I created a file '/etc/udev/rules.d/11-blacklist.rules' with the line:

ATTR{idVendor}="03eb", OPTIONS+="ignore_device"

This seems to have had no effect whatsoever. What am I doing wrong? I would
just blacklist the module, but this device identifies (incorrectly) as an HID
device. I need those of course, so that's a problem.

Am I barking up the wrong tree here? Is there some other way to get linux to
not hand my USB device over to the HID driver so it will be available for VirtualBox?

BTW, I'm using Udev 149 with kernel 2.6.31-1-amd64 on Debian Sid. Thanks
for any help.
-Hatta

Signature · 4 lines
  [email protected]

-- 
http://www.fastmail.fm - Access your email from home and the web
#1 lore raw
Quoted 3 lines · Edward Siefker

Am I barking up the wrong tree here? Is there some other way to get linux to not hand my USB device over to the HID driver so it will be available for VirtualBox?

Use a program like this:
http://www.linuxha.com/USB/detach.html

(I can't vouch for that particular program, as it's just the result of a google search, but the libusb usb_detach_kernel_driver_np approach should be the right thing to do.)

-jim

#2 lore raw
In reply to Edward Siefker

Thanks for that, that did in fact make the device "available" to VirtualBox.
But VB is still unable to forward it, I guess I'll see what they think then. I appreciate the rapid reply :)
-Hatta

Quoted 13 lines · Jim Paris
Quoted 3 lines · Edward Siefker

Am I barking up the wrong tree here? Is there some other way to get linux to not hand my USB device over to the HID driver so it will be available for VirtualBox?

Use a program like this:
http://www.linuxha.com/USB/detach.html

(I can't vouch for that particular program, as it's just the result of a google search, but the libusb usb_detach_kernel_driver_np approach should be the right thing to do.)

-jim

Signature · 4 lines
  [email protected]

-- 
http://www.fastmail.fm - Email service worth paying for. Try it for free
#3 lore raw
In reply to Edward Siefker

Hello Edward,

Edward Siefker [2009-12-26 15:22 -0800]:

Quoted 3 lines

ATTR{idVendor}="03eb", OPTIONS+="ignore_device"

This seems to have had no effect whatsoever.

This was removed in 148, see NEWS:

"The option "ignore_device" does no longer exist. There is no way to ignore an event, as libudev events can not be suppressed by rules. It only prevented RUN keys from being executed, which results in an inconsistent behavior in current setups."

Quoted 2 lines

Is there some other way to get linux to not hand my USB device over to the HID driver so it will be available for VirtualBox?

You can find the driver (usbhid) in /sys and then write the device name to the "unbind" file to detach that particular device and make it available for virtualbox.

Martin

Signature · 2 lines
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)