I had this same issue. I'm running a Windows VM and didn't want the host OS grabbing the device.
From what I can tell, there seem to be two devices for the iphone:
- piped to less because the output is rather long
- search for "Apple"
- I used the value of "info.udi"
- make sure to grab for both devices
Then create a file like /etc/hal/fdi/policy/10-noiphone.fdi ("noiphone" is arbitrary...you can name it whatever you like) with the following:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<deviceinfo version="0.2">
<device>
<match key="info.udi" string="$info.udi1">
<merge key="info.ignore" type="bool">true</merge>
</match>
</device>
<device>
<match key="info.udi" string="$info.udi2">
<merge key="info.ignore" type="bool">true</merge>
</match>
</device>
</deviceinfo>
- where $info.udi1 = first info.udi value from hal-device search
- where $info.udi2 = second info.udi value from hal-device search
You can really use a combination of match keys, but I used info.udi because it was the most specific (I think you could do it by using just usb_device.serial to set info.ignore on both devices).
Hope that helps.
Cheers,
Philip
Bookmarks