linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* ignore_device
@ 2009-12-26 23:22 Edward Siefker
  2009-12-26 23:33 ` ignore_device Jim Paris
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Edward Siefker @ 2009-12-26 23:22 UTC (permalink / raw)
  To: linux-hotplug

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
-- 
  
  hatta00@fastmail.fm

-- 
http://www.fastmail.fm - Access your email from home and the web


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ignore_device
  2009-12-26 23:22 ignore_device Edward Siefker
@ 2009-12-26 23:33 ` Jim Paris
  2009-12-26 23:57 ` ignore_device Edward Siefker
  2009-12-27 10:28 ` ignore_device Martin Pitt
  2 siblings, 0 replies; 4+ messages in thread
From: Jim Paris @ 2009-12-26 23:33 UTC (permalink / raw)
  To: linux-hotplug

Edward Siefker wrote:
> 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ignore_device
  2009-12-26 23:22 ignore_device Edward Siefker
  2009-12-26 23:33 ` ignore_device Jim Paris
@ 2009-12-26 23:57 ` Edward Siefker
  2009-12-27 10:28 ` ignore_device Martin Pitt
  2 siblings, 0 replies; 4+ messages in thread
From: Edward Siefker @ 2009-12-26 23:57 UTC (permalink / raw)
  To: linux-hotplug

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

On Sat, 26 Dec 2009 18:33:32 -0500, "Jim Paris" <jim@jtan.com> said:
> Edward Siefker wrote:
> > 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
-- 
  
  hatta00@fastmail.fm

-- 
http://www.fastmail.fm - Email service worth paying for. Try it for free


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ignore_device
  2009-12-26 23:22 ignore_device Edward Siefker
  2009-12-26 23:33 ` ignore_device Jim Paris
  2009-12-26 23:57 ` ignore_device Edward Siefker
@ 2009-12-27 10:28 ` Martin Pitt
  2 siblings, 0 replies; 4+ messages in thread
From: Martin Pitt @ 2009-12-27 10:28 UTC (permalink / raw)
  To: linux-hotplug

Hello Edward,

Edward Siefker [2009-12-26 15:22 -0800]:
> 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."

> 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

-- 
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-12-27 10:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-26 23:22 ignore_device Edward Siefker
2009-12-26 23:33 ` ignore_device Jim Paris
2009-12-26 23:57 ` ignore_device Edward Siefker
2009-12-27 10:28 ` ignore_device Martin Pitt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).