A minor problem w/ access to my flash drive

Pozsar Balazs pozsy at uhulinux.hu
Mon Jan 24 03:54:29 PST 2005


On Mon, Jan 24, 2005 at 05:36:40PM +0600, Alexey Morozov wrote:
> >That happened exactly because hal polled that device.
> >
> I'm affraid, you're wrong. Tomorrow I'll bring SD from home, and check 
> if appropriate device appeared w/ hald being stopped. I strongly believe 
> that hotplug/udev will handle events w/o hald _for my card reader_ , but 
> I can't check this right now because I have no card at the moment.

We'll see :)


> Do you know how this can be done? I mean stop polling on a [selected] 
> device.

Take a look at /usr/share/hal/fdi/20freedesktop/ide-drives.fdi and the 
other *.fdi files.

Somethine like this would do it:
<?xml version="1.0" encoding="ISO-8859-1"?> <!-- -*- SGML -*- -->
<deviceinfo version="0.2">
  <device>
    <match key="info.bus" string="usb">
      <match key="usb.vendor_id" int="0x054c">     <--- These are 
        <match key="usb.product_id" int="0x0010">  <--- examples!!!
          <merge key="storage.media_check_enabled" type="bool">false</merge>
        </match>
      </match>
    </match>
  </device>
</deviceinfo>


-- 
pozsy
_______________________________________________
hal mailing list
hal at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/hal



More information about the Hal mailing list