On 10/29/2013 12:23 AM, Yves-Alexis Perez wrote:
Actually, that's not a good test. Thunar only supports/shows USB Mass
Storage devices, which Canon cameras are not (they use some proprietary
canon protocol on USB mode, or PTP on PTP mode). You need to interface
with it using gphoto2, which is what Shotwell is actually doing.

I assume the explanation also applies to the Xfce desktop (?).


It would be nice if Xfce and Thunar supported Canon cameras. We have several, and I'm migrating our SOHO desktops to debian-7.2-i386-xfce.


Can you check:
- if the USB drive is correctly seen by the kernel (shows in dmesg, can
be mounted manually)
- if the USB drive is correctly seen by udisks (I think it's someting
like udisks --dump, and udisks --monitor can help too).

I tested the Seagate FreeAgent XTreme external hard drive against a few Debian 7 installations:

1. Intel D945GNT motherboard with fairly recent and lightly used install of Debian 7 amd64 (system used for initial bug report) -- hotplug works correctly via both USB and Firewire. (Machine does not have eSATA port.) This doesn't match my earlier findings. I don't know why.

2. Intel D945GNT motherboard with fresh install (yesterday and today) of Debian 7 i386 -- hotplug works correctly via both USB and Firewire.

3. Intel DQ67SWB3 motherboard with older (December 2012, possibly pre-Stable?) and heavily used install of Debian 7 amd64 -- hotplug works correctly for USB, but fails for eSATA.

a.  Here are the diffs after the USB hotplug:

2013-10-29 21:04:32 dpchrist@p43200 ~/Data/dpchrist/bugs/debian/728065
$ diff 10-after-cold-boot-drive-disconnected/dmesg.out 11-after-hotplug-usb/dmesg.out
854a855,872
> [ 142.177800] usb 1-1.2: new high-speed USB device number 4 using ehci_hcd > [ 142.283381] usb 1-1.2: New USB device found, idVendor=0bc2, idProduct=3101 > [ 142.283386] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
> [  142.283389] usb 1-1.2: Product: FreeAgent Xtreme
> [  142.283391] usb 1-1.2: Manufacturer: Seagate
> [  142.283393] usb 1-1.2: SerialNumber: 2GER4Z7N
> [  142.307367] Initializing USB Mass Storage driver...
> [  142.307520] scsi10 : usb-storage 1-1.2:1.0
> [  142.307621] usbcore: registered new interface driver usb-storage
> [  142.307623] USB Mass Storage support registered.
> [ 143.306652] scsi 10:0:0:0: Direct-Access Seagate FreeAgent XTreme 4115 PQ: 0 ANSI: 4
> [  143.307594] sd 10:0:0:0: Attached scsi generic sg4 type 0
> [ 143.309489] sd 10:0:0:0: [sdd] 2930277168 512-byte logical blocks: (1.50 TB/1.36 TiB)
> [  143.310549] sd 10:0:0:0: [sdd] Write Protect is off
> [  143.310553] sd 10:0:0:0: [sdd] Mode Sense: 1c 00 00 00
> [ 143.311799] sd 10:0:0:0: [sdd] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
> [  143.321346]  sdd: sdd1
> [  143.332451] sd 10:0:0:0: [sdd] Attached SCSI disk

2013-10-29 21:04:34 dpchrist@p43200 ~/Data/dpchrist/bugs/debian/728065
$ diff 10-after-cold-boot-drive-disconnected/udisks--dump.out 11-after-hotplug-usb/udisks--dump.out
582a583,688
> Showing information for /org/freedesktop/UDisks/devices/sdd
> native-path: /sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2:1.0/host10/target10:0:0/10:0:0:0/block/sdd
>   device:                      8:48
>   device-file:                 /dev/sdd
>     presentation:              /dev/sdd
>     by-id:                     /dev/disk/by-id/ata-ST31500341AS_6VS07GYW
> by-id: /dev/disk/by-id/scsi-SSeagate_FreeAgent_XTrem_2GER4Z7N
>     by-id:                     /dev/disk/by-id/wwn-0x5000c50011f4dc31
> by-path: /dev/disk/by-path/pci-0000:00:1a.0-usb-0:1.2:1.0-scsi-0:0:0:0
>   detected at:                 Tue Oct 29 20:06:23 2013
>   system internal:             0
>   removable:                   0
>   has media:                   1 (detected at Tue Oct 29 20:06:23 2013)
>     detects change:            0
>     detection by polling:      0
>     detection inhibitable:     0
>     detection inhibited:       0
>   is read only:                0
>   is mounted:                  0
>   mount paths:
>   mounted by uid:              0
>   presentation hide:           0
>   presentation nopolicy:       0
>   presentation name:
>   presentation icon:
>   automount hint:
>   size:                        1500301910016
>   block size:                  512
>   job underway:                no
>   usage:
>   type:
>   version:
>   uuid:
>   label:
>   partition table:
>     scheme:                    mbr
>     count:                     1
>   drive:
>     vendor:                    Seagate
>     model:                     ST31500341AS
>     revision:                  CC3H
>     serial:                    6VS07GYW
>     WWN:                       5000c50011f4dc31
>     detachable:                1
>     can spindown:              1
>     rotational media:          Yes, at 7200 RPM
>     write-cache:               enabled
>     ejectable:                 0
>     adapter:                   Unknown
>     ports:
>     similar devices:
>     media:
>       compat:
>     interface:                 usb
>     if speed:                  480000000 bits/s
>     ATA SMART:                 Data not collected
>
> ========================================================================
> Showing information for /org/freedesktop/UDisks/devices/sdd1
> native-path: /sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2:1.0/host10/target10:0:0/10:0:0:0/block/sdd/sdd1
>   device:                      8:49
>   device-file:                 /dev/sdd1
>     presentation:              /dev/sdd1
> by-id: /dev/disk/by-id/ata-ST31500341AS_6VS07GYW-part1 > by-id: /dev/disk/by-id/scsi-SSeagate_FreeAgent_XTrem_2GER4Z7N-part1 > by-id: /dev/disk/by-id/wwn-0x5000c50011f4dc31-part1 > by-id: /dev/disk/by-uuid/0e27bd82-0515-41d3-81cd-d14eeee30072 > by-path: /dev/disk/by-path/pci-0000:00:1a.0-usb-0:1.2:1.0-scsi-0:0:0:0-part1
>   detected at:                 Tue Oct 29 20:06:23 2013
>   system internal:             0
>   removable:                   0
>   has media:                   1 (detected at Tue Oct 29 20:06:23 2013)
>     detects change:            0
>     detection by polling:      0
>     detection inhibitable:     0
>     detection inhibited:       0
>   is read only:                0
>   is mounted:                  0
>   mount paths:
>   mounted by uid:              0
>   presentation hide:           0
>   presentation nopolicy:       0
>   presentation name:
>   presentation icon:
>   automount hint:
>   size:                        1500301909504
>   block size:                  512
>   job underway:                no
>   usage:                       crypto
>   type:                        crypto_LUKS
>   version:                     1
>   uuid:                        0e27bd82-0515-41d3-81cd-d14eeee30072
>   label:
>   partition:
>     part of:                   /org/freedesktop/UDisks/devices/sdd
>     scheme:                    mbr
>     number:                    1
>     type:                      0x83
>     flags:
>     offset:                    512
>     alignment offset:          0
>     size:                      1500301909504
>     label:
>     uuid:
>
> ========================================================================

b.  Here are the diffs after disconnecting USB:

2013-10-29 21:06:16 dpchrist@p43200 ~/Data/dpchrist/bugs/debian/728065
$ diff 11-after-hotplug-usb/dmesg.out 12-after-disconnecting-usb/dmesg.out
872a873,875
> [  197.193601] usb 1-1.2: USB disconnect, device number 4
> [  197.194698] sd 10:0:0:0: [sdd] Synchronizing SCSI cache
> [ 197.194738] sd 10:0:0:0: [sdd] Result: hostbyte=DID_NO_CONNECT driverbyte=DRIVER_OK

2013-10-29 21:06:16 dpchrist@p43200 ~/Data/dpchrist/bugs/debian/728065
$ diff 11-after-hotplug-usb/udisks--dump.out 12-after-disconnecting-usb/udisks--dump.out
583,688d582
< Showing information for /org/freedesktop/UDisks/devices/sdd
< native-path: /sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2:1.0/host10/target10:0:0/10:0:0:0/block/sdd
<   device:                      8:48
<   device-file:                 /dev/sdd
<     presentation:              /dev/sdd
<     by-id:                     /dev/disk/by-id/ata-ST31500341AS_6VS07GYW
< by-id: /dev/disk/by-id/scsi-SSeagate_FreeAgent_XTrem_2GER4Z7N
<     by-id:                     /dev/disk/by-id/wwn-0x5000c50011f4dc31
< by-path: /dev/disk/by-path/pci-0000:00:1a.0-usb-0:1.2:1.0-scsi-0:0:0:0
<   detected at:                 Tue Oct 29 20:06:23 2013
<   system internal:             0
<   removable:                   0
<   has media:                   1 (detected at Tue Oct 29 20:06:23 2013)
<     detects change:            0
<     detection by polling:      0
<     detection inhibitable:     0
<     detection inhibited:       0
<   is read only:                0
<   is mounted:                  0
<   mount paths:
<   mounted by uid:              0
<   presentation hide:           0
<   presentation nopolicy:       0
<   presentation name:
<   presentation icon:
<   automount hint:
<   size:                        1500301910016
<   block size:                  512
<   job underway:                no
<   usage:
<   type:
<   version:
<   uuid:
<   label:
<   partition table:
<     scheme:                    mbr
<     count:                     1
<   drive:
<     vendor:                    Seagate
<     model:                     ST31500341AS
<     revision:                  CC3H
<     serial:                    6VS07GYW
<     WWN:                       5000c50011f4dc31
<     detachable:                1
<     can spindown:              1
<     rotational media:          Yes, at 7200 RPM
<     write-cache:               enabled
<     ejectable:                 0
<     adapter:                   Unknown
<     ports:
<     similar devices:
<     media:
<       compat:
<     interface:                 usb
<     if speed:                  480000000 bits/s
<     ATA SMART:                 Data not collected
<
< ========================================================================
< Showing information for /org/freedesktop/UDisks/devices/sdd1
< native-path: /sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2:1.0/host10/target10:0:0/10:0:0:0/block/sdd/sdd1
<   device:                      8:49
<   device-file:                 /dev/sdd1
<     presentation:              /dev/sdd1
< by-id: /dev/disk/by-id/ata-ST31500341AS_6VS07GYW-part1 < by-id: /dev/disk/by-id/scsi-SSeagate_FreeAgent_XTrem_2GER4Z7N-part1 < by-id: /dev/disk/by-id/wwn-0x5000c50011f4dc31-part1 < by-id: /dev/disk/by-uuid/0e27bd82-0515-41d3-81cd-d14eeee30072 < by-path: /dev/disk/by-path/pci-0000:00:1a.0-usb-0:1.2:1.0-scsi-0:0:0:0-part1
<   detected at:                 Tue Oct 29 20:06:23 2013
<   system internal:             0
<   removable:                   0
<   has media:                   1 (detected at Tue Oct 29 20:06:23 2013)
<     detects change:            0
<     detection by polling:      0
<     detection inhibitable:     0
<     detection inhibited:       0
<   is read only:                0
<   is mounted:                  0
<   mount paths:
<   mounted by uid:              0
<   presentation hide:           0
<   presentation nopolicy:       0
<   presentation name:
<   presentation icon:
<   automount hint:
<   size:                        1500301909504
<   block size:                  512
<   job underway:                no
<   usage:                       crypto
<   type:                        crypto_LUKS
<   version:                     1
<   uuid:                        0e27bd82-0515-41d3-81cd-d14eeee30072
<   label:
<   partition:
<     part of:                   /org/freedesktop/UDisks/devices/sdd
<     scheme:                    mbr
<     number:                    1
<     type:                      0x83
<     flags:
<     offset:                    512
<     alignment offset:          0
<     size:                      1500301909504
<     label:
<     uuid:
<
< ========================================================================

c.  Here are the diffs after eSATA hotplug:

2013-10-29 21:07:45 dpchrist@p43200 ~/Data/dpchrist/bugs/debian/728065
$ diff 12-after-disconnecting-usb/dmesg.out 13-after-hotplug-esata/dmesg.out

2013-10-29 21:07:51 dpchrist@p43200 ~/Data/dpchrist/bugs/debian/728065
$ diff 12-after-disconnecting-usb/udisks--dump.out 13-after-hotplug-esata/udisks--dump.out


So, it appears that the kernel is not seeing eSATA hotplug events (?).


I am in the process of preparing to wipe and rebuild the machine having the eSATA problems. I'll report when I have more information.


David


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to