Bug 88776 - Sansa Clip+ no longer detected
Summary: Sansa Clip+ no longer detected
Status: RESOLVED MOVED
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: 2015-01-24 14:27 UTC by Christoph Reiter
Modified: 2018-08-20 21:23 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Christoph Reiter 2015-01-24 14:27:23 UTC
I have an old and a new Clip+ and both don't get detected as media players any longer in MSC mode (this is on debian sid). Not sure how this all works, but in Quod Libet we use udisks2 and while the main device path gets a proper ID_MEDIA_PLAYER, the device path we get through udisks2 doesn't have ID_MEDIA_PLAYER set.

Rhythmbox also doesn't detect the player.
Here are outputs of "udevadm info" for both paths, the first has ID_MEDIA_PLAYER set, the second doesn't.

I can provide more info if needed.

udevadm info --query=all --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/013
E: BUSNUM=004
E: DEVNAME=/dev/bus/usb/004/013
E: DEVNUM=013
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=sandisk_sansa-clip-plus
E: ID_MODEL=SanDisk_Sansa_Clip+
E: ID_MODEL_ENC=SanDisk\x20Sansa\x20Clip+
E: ID_MODEL_FROM_DATABASE=Sansa Clip+ (msc)
E: ID_MODEL_ID=74d1
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=aa8c
E: ID_SERIAL=SanDisk_SanDisk_Sansa_Clip+_0B0F07147541C5A80000000000000000
E: ID_SERIAL_SHORT=0B0F07147541C5A80000000000000000
E: ID_USB_INTERFACES=:080650:
E: ID_VENDOR=SanDisk
E: ID_VENDOR_ENC=SanDisk
E: ID_VENDOR_FROM_DATABASE=SanDisk Corp.
E: ID_VENDOR_ID=0781
E: MAJOR=189
E: MINOR=396
E: PRODUCT=781/74d1/aa8c
E: SUBSYSTEM=usb
E: TAGS=:seat:uaccess:
E: TYPE=0/0/0
E: USEC_INITIALIZED=231270590970

udevadm info --query=all --path=/sys/devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.2/4-1.2:1.0/host17/target17:0:0/17:0:0:0/block/sdc
P: /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.2/4-1.2:1.0/host17/target17:0:0/17:0:0:0/block/sdc
N: sdc
S: disk/by-id/usb-SanDisk_Sansa_Clip+_8GB_0B0F07147541C5A80000000000000000-0:0
S: disk/by-label/SANSA\x20CLIPP
S: disk/by-path/pci-0000:00:1d.0-usb-0:1.2:1.0-scsi-0:0:0:0
S: disk/by-uuid/50DE-B225
E: DEVLINKS=/dev/disk/by-id/usb-SanDisk_Sansa_Clip+_8GB_0B0F07147541C5A80000000000000000-0:0 /dev/disk/by-label/SANSA\x20CLIPP /dev/disk/by-path/pci-0000:00:1d.0-usb-0:1.2:1.0-scsi-0:0:0:0 /dev/disk/by-uuid/50DE-B225
E: DEVNAME=/dev/sdc
E: DEVPATH=/devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.2/4-1.2:1.0/host17/target17:0:0/17:0:0:0/block/sdc
E: DEVTYPE=disk
E: ID_BUS=usb
E: ID_FS_LABEL=SANSA_CLIPP
E: ID_FS_LABEL_ENC=SANSA\x20CLIPP
E: ID_FS_TYPE=vfat
E: ID_FS_USAGE=filesystem
E: ID_FS_UUID=50DE-B225
E: ID_FS_UUID_ENC=50DE-B225
E: ID_FS_VERSION=FAT32
E: ID_INSTANCE=0:0
E: ID_MODEL=Sansa_Clip+_8GB
E: ID_MODEL_ENC=Sansa\x20Clip+\x208GB\x20
E: ID_MODEL_ID=74d1
E: ID_PATH=pci-0000:00:1d.0-usb-0:1.2:1.0-scsi-0:0:0:0
E: ID_PATH_TAG=pci-0000_00_1d_0-usb-0_1_2_1_0-scsi-0_0_0_0
E: ID_REVISION=v01.
E: ID_SERIAL=SanDisk_Sansa_Clip+_8GB_0B0F07147541C5A80000000000000000-0:0
E: ID_SERIAL_SHORT=0B0F07147541C5A80000000000000000
E: ID_TYPE=disk
E: ID_USB_DRIVER=usb-storage
E: ID_USB_INTERFACES=:080650:
E: ID_USB_INTERFACE_NUM=00
E: ID_VENDOR=SanDisk
E: ID_VENDOR_ENC=SanDisk\x20
E: ID_VENDOR_ID=0781
E: MAJOR=8
E: MINOR=32
E: SUBSYSTEM=block
E: TAGS=:systemd:
E: UDISKS_PRESENTATION_NOPOLICY=0
E: USEC_INITIALIZED=2154490628
Comment 1 Christoph Reiter 2015-01-24 15:40:15 UTC
Small correction: We use udisks2 to get the device path "/dev/sdX" and use udev to get the syspath.

I've worked this around in Quod Libet for now 0] by looking in all parent udev devices for ID_MEDIA_PLAYER.

[0] https://code.google.com/p/quodlibet/source/detail?r=f47e7b5ff70d21fae9df2e
Comment 2 Christoph Reiter 2017-07-05 15:51:13 UTC
Just tried again on Debian sid and everything worked :)
Comment 3 Paulo Marcel Coelho Aragão 2017-10-27 16:35:41 UTC
I also have an old Sansa Clip+ and I'm hitting the same error as Christoph's had in 2015, but now on Xubuntu 17.10.

ID_MEDIA_PLAYER not set for the device:

udevadm info --query=all /sys/devices/pci0000:00/0000:00:1c.4/0000:0b:00.0/usb3/3-2/3-2:1.0/host6/target6:0:0/6:0:0:0/block/sdb

P: /devices/pci0000:00/0000:00:1c.4/0000:0b:00.0/usb3/3-2/3-2:1.0/host6/target6:0:0/6:0:0:0/block/sdb
N: sdb
S: disk/by-id/usb-SanDisk_Sansa_Clip+_8GB_591FE5134392C5A80000000000000000-0:0
S: disk/by-path/pci-0000:0b:00.0-usb-0:2:1.0-scsi-0:0:0:0
S: disk/by-uuid/0123-4567
E: DEVLINKS=/dev/disk/by-id/usb-SanDisk_Sansa_Clip+_8GB_591FE5134392C5A80000000000000000-0:0 /dev/disk/by-uuid/0123-4567 /dev/disk/by-path/pci-0000:0b:00.0-usb-0:2:1.0-scsi-0:0:0:0
E: DEVNAME=/dev/sdb
E: DEVPATH=/devices/pci0000:00/0000:00:1c.4/0000:0b:00.0/usb3/3-2/3-2:1.0/host6/target6:0:0/6:0:0:0/block/sdb
E: DEVTYPE=disk
E: ID_BUS=usb
E: ID_FS_TYPE=vfat
E: ID_FS_USAGE=filesystem
E: ID_FS_UUID=0123-4567
E: ID_FS_UUID_ENC=0123-4567
E: ID_FS_VERSION=FAT32
E: ID_INSTANCE=0:0
E: ID_MODEL=Sansa_Clip+_8GB
E: ID_MODEL_ENC=Sansa\x20Clip+\x208GB\x20
E: ID_MODEL_ID=74d1
E: ID_PATH=pci-0000:0b:00.0-usb-0:2:1.0-scsi-0:0:0:0
E: ID_PATH_TAG=pci-0000_0b_00_0-usb-0_2_1_0-scsi-0_0_0_0
E: ID_REVISION=v01.
E: ID_SERIAL=SanDisk_Sansa_Clip+_8GB_591FE5134392C5A80000000000000000-0:0
E: ID_SERIAL_SHORT=591FE5134392C5A80000000000000000
E: ID_TYPE=disk
E: ID_USB_DRIVER=usb-storage
E: ID_USB_INTERFACES=:080650:
E: ID_USB_INTERFACE_NUM=00
E: ID_VENDOR=SanDisk
E: ID_VENDOR_ENC=SanDisk\x20
E: ID_VENDOR_ID=0781
E: MAJOR=8
E: MINOR=16
E: SUBSYSTEM=block
E: TAGS=:systemd:
E: USEC_INITIALIZED=253901380791

ID_MEDIA_PLAYER set further up the device tree:

udevadm info --query=all /sys/devices/pci0000:00/0000:00:1c.4/0000:0b:00.0/usb3/3-2

P: /devices/pci0000:00/0000:00:1c.4/0000:0b:00.0/usb3/3-2
N: bus/usb/003/030
E: BUSNUM=003
E: DEVNAME=/dev/bus/usb/003/030
E: DEVNUM=030
E: DEVPATH=/devices/pci0000:00/0000:00:1c.4/0000:0b:00.0/usb3/3-2
E: DEVTYPE=usb_device
E: DRIVER=usb
E: ID_BUS=usb
E: ID_FOR_SEAT=usb-pci-0000_0b_00_0-usb-0_2
E: ID_MEDIA_PLAYER=sandisk_sansa-clip-plus
E: ID_MODEL=SanDisk_Sansa_Clip+
E: ID_MODEL_ENC=SanDisk\x20Sansa\x20Clip+
E: ID_MODEL_FROM_DATABASE=Sansa Clip+ (msc)
E: ID_MODEL_ID=74d1
E: ID_PATH=pci-0000:0b:00.0-usb-0:2
E: ID_PATH_TAG=pci-0000_0b_00_0-usb-0_2
E: ID_REVISION=aa8c
E: ID_SERIAL=SanDisk_SanDisk_Sansa_Clip+_591FE5134392C5A80000000000000000
E: ID_SERIAL_SHORT=591FE5134392C5A80000000000000000
E: ID_USB_INTERFACES=:080650:
E: ID_VENDOR=SanDisk
E: ID_VENDOR_ENC=SanDisk
E: ID_VENDOR_FROM_DATABASE=SanDisk Corp.
E: ID_VENDOR_ID=0781
E: MAJOR=189
E: MINOR=285
E: PRODUCT=781/74d1/aa8c
E: SUBSYSTEM=usb
E: TAGS=:seat:uaccess:
E: TYPE=0/0/0
E: USEC_INITIALIZED=253900146085

Working around it with a udev rule. Let me know if you need further info.
Comment 4 GitLab Migration User 2018-08-20 21:23:25 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/media-player-info/media-player-info/issues/5.


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.