View Single Post
Old June 25th, 2007   #12
Jose Catre-Vandis
Chocolate Ubuntu Mocha Blend
 
Jose Catre-Vandis's Avatar
 
Join Date: Mar 2006
Location: Hampshire,UK
Beans: 1,783
Xubuntu 9.04 Jaunty Jackalope
Talking RESOLVED! Re: USB flash device mounted as a music player

This post could be related to an Ubuntu bug filed at: https://bugs.launchpad.net/ubuntu/+s...nfo/+bug/90286
----------------------------


Hey Guys, found a possible answer for this, works for me.

Picked up the solution from here:

https://bugs.launchpad.net/ubuntu/+s...nfo/+bug/90286

To handle this manually, insert your offending flash drive, and once loaded run
Code:
lsusb
my output is as follows:
Code:
tim@fiesty:~$ lsusb
Bus 005 Device 006: ID 090c:1000 Feiya Technology Corp. Memory Bar
Bus 005 Device 001: ID 0000:0000  
Bus 004 Device 001: ID 0000:0000  
Bus 003 Device 006: ID 046d:c03e Logitech, Inc. Premium Optical Wheel Mouse
Bus 003 Device 001: ID 0000:0000  
Bus 002 Device 001: ID 0000:0000  
Bus 001 Device 001: ID 0000:0000
Remove your flash drive

The "Feiya Technology Corp. Memory Bar" is what we are looking for, yours might be a different model but the fix should be the same. This device carries the same product ID as other products that are music players. We need to remove the entry from:

Code:
/usr/share/hal/fdi/information/10freedesktop/10-usb-music-players.fdi
First do a back up in case anything goes wrong:
Code:
sudo cp /usr/share/hal/fdi/information/10freedesktop/10-usb-music-players.fdi /usr/share/hal/fdi/information/10freedesktop/10-usb-music-players.fdi.bak
Then open up /usr/share/hal/fdi/information/10freedesktop/10-usb-music-players.fdi as root:
Code:
sudo gedit /usr/share/hal/fdi/information/10freedesktop/10-usb-music-players.fdi
Scroll down through the file until you find the entry for your disk:
Code:
<append key="portable_audio_player.input_formats" type="strlist">audio/x-ms-wma</append>
          </match>
	</match>

        <!-- Feiya Technology Corp Memory Bar -->
        <match key="@storage.originating_device:usb.vendor_id" int="0x090c">
          <match key="@storage.originating_device:usb.product_id" int="0x1000">
            <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.input_formats" type="strlist">audio/mpeg</append>
          </match>
        </match>

	<!-- Peak Digital Audio Player -->
        <match key="@storage.originating_device:usb.vendor_id" int="0xd7d">
Delete the bolded section, and save and close the file.

Reinsert your flash drive and it should now appear as a flash drive/disk and not invoke the music app!

This action may get broken again by hal backports or updates, until the devs sort it out.

If it doesn't work, restore your original .fdi file

Hope this helps (you do all this at your own risk, I can't take responsibility if this does damage to your system!)
__________________
Experience is the only genuine knowledge
Karmic kernel for my dvb card (Asustek Dual P7131) now fixed thanks to Vink's custom kernel from Alexey's patch
Bimmablog
Jose Catre-Vandis is offline