Bug 69389 - Incorrectly labels external hard drive as media player
Summary: Incorrectly labels external hard drive as media player
Status: RESOLVED FIXED
Alias: None
Product: media-player-info
Classification: Unclassified
Component: General (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Martin Pitt
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-15 19:20 UTC by Michael Biebl
Modified: 2013-09-16 12:12 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
lsusb dump (89.21 KB, text/plain)
2013-09-15 19:20 UTC, Michael Biebl
Details

Description Michael Biebl 2013-09-15 19:20:25 UTC
Created attachment 85878 [details]
lsusb dump

When I have the media-player-info package installed, attaching an external
hard drive results in rhythmbox popping up instead of nautilus being
opened.

As an example:
# udevadm info --path=/devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.2
P: /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.2
N: bus/usb/004/009
E: BUSNUM=004
E: DEVNAME=/dev/bus/usb/004/009
E: DEVNUM=009
E: DEVPATH=/devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.2
E: DEVTYPE=usb_device
E: DRIVER=usb
E: ID_BUS=usb
E: ID_FOR_SEAT=usb-pci-0000_00_1d_0-usb-0_1_2
E: ID_MEDIA_PLAYER=zte_score
E: ID_MODEL=Ext_HDD_1021
E: ID_MODEL_ENC=Ext\x20HDD\x201021
E: ID_MODEL_ID=1021
E: ID_PATH=pci-0000:00:1d.0-usb-0:1.2
E: ID_PATH_TAG=pci-0000_00_1d_0-usb-0_1_2
E: ID_REVISION=2002
E: ID_SERIAL=Western_Digital_Ext_HDD_1021_574D41555230333135333736
E: ID_SERIAL_SHORT=574D41555230333135333736
E: ID_USB_INTERFACES=:080650:
E: ID_VENDOR=Western_Digital
E: ID_VENDOR_ENC=Western\x20Digital
E: ID_VENDOR_ID=1058
E: MAJOR=189
E: MINOR=392
E: PRODUCT=1058/1021/2002
E: SUBSYSTEM=usb
E: TAGS=:seat:uaccess:
E: TYPE=0/0/0
E: USEC_INITIALIZED=11560562022

This is my externel Western Digital hard drive when attached to my
Thinkpad X220.

Removing media-player-info reliable fixes this problem.

Attached is a lsusb dump.
Comment 1 Michael Biebl 2013-09-15 19:26:33 UTC
from the lsusb dump:
Bus 003 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub

Removing the following line from 40-usb-media-players.rules fixes the problem

# Score
ATTRS{idVendor}=="8087", ATTRS{idProduct}=="0024", ENV{ID_MEDIA_PLAYER}="zte_score"
Comment 2 Martin Pitt 2013-09-15 20:43:11 UTC
That was introduced in bug 52328. Seems the vendor/product ID is indeed exactly the same, but we could use the ID_SERIAL or ID_MODEL to tell them apart.

Should be fixed with http://cgit.freedesktop.org/media-player-info/commit/?id=b34b650ef2
Comment 3 Michael Biebl 2013-09-15 22:08:42 UTC
Hm, I've added that line to zte_score.mpi, but I still get the buggy behaviour. So re-opening.
Comment 4 Martin Pitt 2013-09-16 02:45:11 UTC
Merely changing the line in the mpi isn't sufficient, you actually need to rebuild m-p-i and install the updated hwdb.d file and udev rule. Did you do that?
Comment 5 Michael Biebl 2013-09-16 02:50:17 UTC
(In reply to comment #4)
> Merely changing the line in the mpi isn't sufficient, you actually need to
> rebuild m-p-i and install the updated hwdb.d file and udev rule. Did you do
> that?

Hm, no... I didn't. Will try again. I guess I was confused by the installed .mpi files.

Btw, why does the Debian package install the .mpi files if there is no tool converting an updated .rules / .hwdb file out of them?
Comment 6 Michael Biebl 2013-09-16 11:53:14 UTC
(In reply to comment #5)
> (In reply to comment #4)
> > Merely changing the line in the mpi isn't sufficient, you actually need to
> > rebuild m-p-i and install the updated hwdb.d file and udev rule. Did you do
> > that?
> 
> Hm, no... I didn't. Will try again. I guess I was confused by the installed
> .mpi files.

Applying the patch + rebuilding the package did help.
Thanks
Comment 7 Martin Pitt 2013-09-16 12:12:38 UTC
(In reply to comment #5)
> Btw, why does the Debian package install the .mpi files if there is no tool
> converting an updated .rules / .hwdb file out of them?

Music players like Rhythmbox or Banshee read these .mpi files; we just take the vendor/product IDs out of them to build udev rules/hwdb, but these don't contain all the other information.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.