Comment 5 for bug 647564

Revision history for this message
Xandru (xandruarmesto) wrote : Re: [Bug 647564] Re: Sweex MP4 player found with USB ID 177f:0460

It doesn't work neither, I think that file is only for mtp devices.
The syntax is:

<?xml version="1.0" encoding="ISO-8859-1"?> <!-- -*- SGML -*- -->
<!-- This file was generated by
/build/buildd/libmtp-1.1.0/util/.libs/lt-mtp-hotplug - - fdi -->
<deviceinfo version="0.2">
  <device>
    <match key="info.subsystem" string="usb">
      <!-- Creative ZEN Vision -->
      <match key="usb.vendor_id" int="0x041e">
        <match key="usb.product_id" int="0x411f">
          <match key="info.capabilities" contains_not="portable_audio_player">
            <append key="info.capabilities"
type="strlist">portable_audio_player</append>
          </match>
          <merge key="info.vendor" type="string">Creative</merge>
          <merge key="info.product" type="string">ZEN Vision</merge>
          <merge key="info.category" type="string">portable_audio_player</merge>
          <merge key="portable_audio_player.access_method"
type="string">user</merge>
          <match key="portable_audio_player.access_method.protocols"
contains_not="mtp">
            <append
key="portable_audio_player.access_method.protocols"
type="strlist">mtp</append>
          </match>
          <append key="portable_audio_player.access_method.drivers"
type="strlist">libmtp</append>
          <match key="portable_audio_player.output_formats"
contains_not="audio/mpeg">
            <append key="portable_audio_player.output_formats"
type="strlist">audio/mpeg</append>
          </match>
          <match key="portable_audio_player.output_formats"
contains_not="audio/x-ms-wma">
            <append key="portable_audio_player.output_formats"
type="strlist">audio/x-ms-wma</append>
          </match>
          <merge key="portable_audio_player.libmtp.protocol"
type="string">mtp</merge>
        </match>
      </match>
  </device>
</deviceinfo>

There is another file on the same folder for apple devices
(31-apple-mobile-device). The syntax is:

<?xml version="1.0"?>
<deviceinfo version="0.2">
  <device>
    <match key="info.subsystem" string="usb">
      <match key="usb.vendor_id" int="0x05ac">
        <match key="usb.product_id" compare_ge="0x1290">
          <match key="usb.product_id" compare_le="0x12af">
            <match key="usb.interface.number" int="0x1">
              <append key="info.capabilities" type="strlist">afc</append>
            </match>
          </match>
        </match>
      </match>
    </match>
  </device>
</deviceinfo>