[Pkg-utopia-maintainers] Bug#456675: hal-info: Insufficient Match-Conditions for MPIO HD300 Player

David Spreen netzwurm at debian.org
Mon Dec 17 14:34:18 UTC 2007


Package: hal-info
Version: 20071212-1
Severity: minor
Tags: patch


Hello,
unfortunately my external harddisk matches the same usb-vendor ID and
product ID as the MPIO HD300 Music Player. Here is what lshal says:

With the current /usr/share/hal/fdi/information/10-usb-music-player.fdi
my harddisk gets recognized as a digital audio player which leads to
annoying handling in gnome.

The following patch adds a match condition to make sure that the player
does not have its own power supply. I am not sure about how useful that
condition is or if there's something better to look for but it works
for me.


regards,

David

--- 10-usb-music-players-old.fdi        2007-12-17 14:18:19.000000000 +0000
+++ 10-usb-music-players.fdi    2007-12-17 14:18:58.000000000 +0000
@@ -90,12 +90,14 @@
         <!-- MPIO HD300 Player -->
         <match key="@storage.originating_device:usb.vendor_id"
int="0x05e3">
           <match key="@storage.originating_device:usb.product_id"
int="0x0702">
-            <merge key="portable_audio_player.type"
type="string">generic</merge>
-            <merge key="portable_audio_player.access_method"
type="string">storage</merge>
-            <append key="portable_audio_player.output_formats"
type="strlist">application/ogg</append>
-            <append key="portable_audio_player.output_formats"
type="strlist">audio/x-ms-wma</append>
-            <append key="portable_audio_player.output_formats"
type="strlist">video/x-ms-asf</append>
-            <append key="portable_audio_player.input_formats"
type="strlist">audio/mpeg</append>
+            <match
key="@storage.originating_device:usb.is_self_powered" bool="false">
+              <merge key="portable_audio_player.type"
type="string">generic</merge>
+              <merge key="portable_audio_player.access_method"
type="string">storage</merge>
+              <append key="portable_audio_player.output_formats"
type="strlist">application/ogg</append>
+              <append key="portable_audio_player.output_formats"
type="strlist">audio/x-ms-wma</append>
+              <append key="portable_audio_player.output_formats"
type="strlist">video/x-ms-asf</append>
+              <append key="portable_audio_player.input_formats"
type="strlist">audio/mpeg</append>
+            </match>
           </match>
         </match>



lshal:
udi = '/org/freedesktop/Hal/devices/usb_device_5e3_702_001400005598'
  info.bus = 'usb_device'  (string)
  info.linux.driver = 'usb'  (string)
  info.parent =
'/org/freedesktop/Hal/devices/usb_device_424_2504_noserial'  (string)
  info.product = 'USB 2.0 IDE Adapter'  (string)
  info.subsystem = 'usb_device'  (string)
  info.udi =
'/org/freedesktop/Hal/devices/usb_device_5e3_702_001400005598'  (string)
  info.vendor = 'Genesys Logic, Inc.'  (string)
  linux.device_file = '/dev/bus/usb/005/017'  (string)
  linux.hotplug_type = 2  (0x2)  (int)
  linux.subsystem = 'usb'  (string)
  linux.sysfs_path =
'/sys/devices/pci0000:00/0000:00:1d.7/usb5/5-1/5-1.3'  (string)
  usb_device.bus_number = 5  (0x5)  (int)
  usb_device.can_wake_up = false  (bool)
  usb_device.configuration_value = 1  (0x1)  (int)
  usb_device.device_class = 0  (0x0)  (int)
  usb_device.device_protocol = 0  (0x0)  (int)
  usb_device.device_revision_bcd = 51  (0x33)  (int)
  usb_device.device_subclass = 0  (0x0)  (int)
  usb_device.is_self_powered = true  (bool)
  usb_device.linux.device_number = 17  (0x11)  (int)
  usb_device.linux.sysfs_path =
'/sys/devices/pci0000:00/0000:00:1d.7/usb5/5-1/5-1.3'  (string)
  usb_device.max_power = 96  (0x60)  (int)
  usb_device.num_configurations = 1  (0x1)  (int)
  usb_device.num_interfaces = 1  (0x1)  (int)
  usb_device.num_ports = 0  (0x0)  (int)
  usb_device.product = 'USB 2.0 IDE Adapter'  (string)
  usb_device.product_id = 1794  (0x702)  (int)
  usb_device.serial = '001400005598'  (string)
  usb_device.speed = 480.0 (480) (double)
  usb_device.speed_bcd = 294912  (0x48000)  (int)
  usb_device.vendor = 'Genesys Logic, Inc.'  (string)
  usb_device.vendor_id = 1507  (0x5e3)  (int)
  usb_device.version = 2.0 (2) (double)
  usb_device.version_bcd = 512  (0x200)  (int)





-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.23.9-mactel (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

-- no debconf information





More information about the Pkg-utopia-maintainers mailing list