On Sun, Apr 12, 2020 at 6:47 AM Marcus Meissner <mar...@jet.franken.de> wrote: > > On Thu, Apr 09, 2020 at 12:42:10AM -0400, Damon Lynch wrote: > > Hi, > > > > Whether through mistake or by design, I realized only today that GVFS > > blocks having more than one camera using the same ID_SERIAL value (I'm > > not sure what that value is; I assume it's the brand). > > > > In practice that seems to mean forget being able to plug in two Canon > > cameras under Gnome, because only one will be recognized. I hope > > that's not deliberate on Gnome's behalf! Some sample output from > > journalctl detailing the error is below. > > > > While I could just go ahead and file a bug report against GVFS, I fear > > it would be lost amidst a sea of other bug reports that the Gnome devs > > have to deal with. Is there someone in Gnome who can be shoulder > > tapped to take a look at it? > > > > Thanks, > > Damon > > > > kernel: usb 5-4: new high-speed USB device number 11 using xhci_hcd > > kernel: usb 5-4: New USB device found, idVendor=04a9, idProduct=3219, > > bcdDevice= 0.02 > > kernel: usb 5-4: New USB device strings: Mfr=1, Product=2, SerialNumber=0 > > kernel: usb 5-4: Product: Canon Digital Camera > > kernel: usb 5-4: Manufacturer: Canon Inc. > > mtp-probe[3587]: checking bus 5, device 11: > > "/sys/devices/pci0000:00/0000:00:01.2/0000:01:00.0/0000:02:08.0/0000:06:00.3/usb5/5-4" > > mtp-probe[3587]: bus: 5, device: 11 was not an MTP device > > gvfs-gphoto2-vo[1746]: device /dev/bus/usb/005/011 has an identical > > ID_SERIAL value to an existing device. Multiple devices are not > > supported. > > colord[2455]: CdMain: failed to emit DeviceAdded: failed to register > > object: An object is already exported for the interface > > org.freedesktop.ColorManager.Device at > > /org/freedesktop/ColorManager/devices/sysfs_Canon_Inc__Canon_Digital_Camera > > colord[2455]: CdMain: failed to emit DeviceAdded: failed to register > > object: An object is already exported for the interface > > org.freedesktop.ColorManager.Device at > > /org/freedesktop/ColorManager/devices/sysfs__null_ > > Cameras usually report their serial ids and udev should pick them up, > and they are unique. > > I am getting here for a powershot: > > ID_SERIAL=Canon_Inc._Canon_Digital_Camera_C1F97548F24F4006CB1541A312A50CB9 > ID_SERIAL_SHORT=C1F97548F24F4006CB1541A312A50CB9 > > Can you check with > > udevadm monitor -p > > and look for ID_SERIAL > > if it is generating unique ids or any ids at all? > > JUding from the ColorManager entry it might not emit this serial? > > Ciao, Marcus
Hi Marcus, I have attached the output. To be safe, the output was taken while running under KDE (in which GVFS is not active, obviously). As you can see, the ID_SERIAL for both cameras is identical: Canon_Inc._Canon_Digital_Camera libgphoto2 version is 2.5.16. As an aside, I noticed only recently that at some point ID_MTP_DEVICE was removed as a udev property when plugging in MTP devices like phones. I assume its direct replacement is ID_MEDIA_PLAYER? Best, Damon -- http://www.damonlynch.net
damon@w520:~$ udevadm monitor -p monitor will print the received events for: UDEV - the event which udev sends out after rule processing KERNEL - the kernel uevent KERNEL[612.729414] add /devices/pci0000:00/0000:00:1c.6/0000:0e:00.0/usb3/3-2 (usb) ACTION=add BUSNUM=003 DEVNAME=/dev/bus/usb/003/006 DEVNUM=006 DEVPATH=/devices/pci0000:00/0000:00:1c.6/0000:0e:00.0/usb3/3-2 DEVTYPE=usb_device MAJOR=189 MINOR=261 PRODUCT=4a9/32cc/2 SEQNUM=4002 SUBSYSTEM=usb TYPE=0/0/0 KERNEL[612.732260] add /devices/pci0000:00/0000:00:1c.6/0000:0e:00.0/usb3/3-2/3-2:1.0 (usb) ACTION=add DEVPATH=/devices/pci0000:00/0000:00:1c.6/0000:0e:00.0/usb3/3-2/3-2:1.0 DEVTYPE=usb_interface INTERFACE=6/1/1 MODALIAS=usb:v04A9p32CCd0002dc00dsc00dp00ic06isc01ip01in00 PRODUCT=4a9/32cc/2 SEQNUM=4003 SUBSYSTEM=usb TYPE=0/0/0 KERNEL[612.732634] bind /devices/pci0000:00/0000:00:1c.6/0000:0e:00.0/usb3/3-2 (usb) ACTION=bind BUSNUM=003 DEVNAME=/dev/bus/usb/003/006 DEVNUM=006 DEVPATH=/devices/pci0000:00/0000:00:1c.6/0000:0e:00.0/usb3/3-2 DEVTYPE=usb_device DRIVER=usb MAJOR=189 MINOR=261 PRODUCT=4a9/32cc/2 SEQNUM=4004 SUBSYSTEM=usb TYPE=0/0/0 UDEV [612.749727] add /devices/pci0000:00/0000:00:1c.6/0000:0e:00.0/usb3/3-2 (usb) ACTION=add BUSNUM=003 COLORD_DEVICE=1 COLORD_KIND=camera DEVNAME=/dev/bus/usb/003/006 DEVNUM=006 DEVPATH=/devices/pci0000:00/0000:00:1c.6/0000:0e:00.0/usb3/3-2 DEVTYPE=usb_device DRIVER=usb GPHOTO2_DRIVER=PTP ID_BUS=usb ID_FOR_SEAT=usb-pci-0000_0e_00_0-usb-0_2 ID_GPHOTO2=1 ID_MODEL=Canon_Digital_Camera ID_MODEL_ENC=Canon\x20Digital\x20Camera ID_MODEL_ID=32cc ID_PATH=pci-0000:0e:00.0-usb-0:2 ID_PATH_TAG=pci-0000_0e_00_0-usb-0_2 ID_REVISION=0002 ID_SERIAL=Canon_Inc._Canon_Digital_Camera ID_USB_INTERFACES=:060101: ID_VENDOR=Canon_Inc. ID_VENDOR_ENC=Canon\x20Inc. ID_VENDOR_FROM_DATABASE=Canon, Inc. ID_VENDOR_ID=04a9 MAJOR=189 MINOR=261 PRODUCT=4a9/32cc/2 SEQNUM=4002 SUBSYSTEM=usb TAGS=:seat:uaccess: TYPE=0/0/0 USEC_INITIALIZED=612749291 UDEV [612.751864] add /devices/pci0000:00/0000:00:1c.6/0000:0e:00.0/usb3/3-2/3-2:1.0 (usb) ACTION=add COLORD_DEVICE=1 COLORD_KIND=camera DEVPATH=/devices/pci0000:00/0000:00:1c.6/0000:0e:00.0/usb3/3-2/3-2:1.0 DEVTYPE=usb_interface GPHOTO2_DRIVER=PTP ID_GPHOTO2=1 ID_VENDOR_FROM_DATABASE=Canon, Inc. INTERFACE=6/1/1 MODALIAS=usb:v04A9p32CCd0002dc00dsc00dp00ic06isc01ip01in00 PRODUCT=4a9/32cc/2 SEQNUM=4003 SUBSYSTEM=usb TYPE=0/0/0 USEC_INITIALIZED=612751596 UDEV [612.754297] bind /devices/pci0000:00/0000:00:1c.6/0000:0e:00.0/usb3/3-2 (usb) ACTION=bind BUSNUM=003 COLORD_DEVICE=1 COLORD_KIND=camera DEVNAME=/dev/bus/usb/003/006 DEVNUM=006 DEVPATH=/devices/pci0000:00/0000:00:1c.6/0000:0e:00.0/usb3/3-2 DEVTYPE=usb_device DRIVER=usb GPHOTO2_DRIVER=PTP ID_BUS=usb ID_FOR_SEAT=usb-pci-0000_0e_00_0-usb-0_2 ID_GPHOTO2=1 ID_MODEL=Canon_Digital_Camera ID_MODEL_ENC=Canon\x20Digital\x20Camera ID_MODEL_ID=32cc ID_PATH=pci-0000:0e:00.0-usb-0:2 ID_PATH_TAG=pci-0000_0e_00_0-usb-0_2 ID_REVISION=0002 ID_SERIAL=Canon_Inc._Canon_Digital_Camera ID_USB_INTERFACES=:060101: ID_VENDOR=Canon_Inc. ID_VENDOR_ENC=Canon\x20Inc. ID_VENDOR_FROM_DATABASE=Canon, Inc. ID_VENDOR_ID=04a9 MAJOR=189 MINOR=261 PRODUCT=4a9/32cc/2 SEQNUM=4004 SUBSYSTEM=usb TAGS=:seat:uaccess: TYPE=0/0/0 USEC_INITIALIZED=612749291 KERNEL[624.420663] add /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2 (usb) ACTION=add BUSNUM=002 DEVNAME=/dev/bus/usb/002/005 DEVNUM=005 DEVPATH=/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2 DEVTYPE=usb_device MAJOR=189 MINOR=132 PRODUCT=4a9/3219/2 SEQNUM=4005 SUBSYSTEM=usb TYPE=0/0/0 KERNEL[624.421037] add /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2:1.0 (usb) ACTION=add DEVPATH=/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2:1.0 DEVTYPE=usb_interface INTERFACE=6/1/1 MODALIAS=usb:v04A9p3219d0002dc00dsc00dp00ic06isc01ip01in00 PRODUCT=4a9/3219/2 SEQNUM=4006 SUBSYSTEM=usb TYPE=0/0/0 KERNEL[624.421296] bind /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2 (usb) ACTION=bind BUSNUM=002 DEVNAME=/dev/bus/usb/002/005 DEVNUM=005 DEVPATH=/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2 DEVTYPE=usb_device DRIVER=usb MAJOR=189 MINOR=132 PRODUCT=4a9/3219/2 SEQNUM=4007 SUBSYSTEM=usb TYPE=0/0/0 UDEV [624.441755] add /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2 (usb) ACTION=add BUSNUM=002 COLORD_DEVICE=1 COLORD_KIND=camera DEVNAME=/dev/bus/usb/002/005 DEVNUM=005 DEVPATH=/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2 DEVTYPE=usb_device DRIVER=usb GPHOTO2_DRIVER=PTP ID_BUS=usb ID_FOR_SEAT=usb-pci-0000_00_1d_0-usb-0_1_2 ID_GPHOTO2=1 ID_MODEL=Canon_Digital_Camera ID_MODEL_ENC=Canon\x20Digital\x20Camera ID_MODEL_FROM_DATABASE=EOS 1D X ID_MODEL_ID=3219 ID_PATH=pci-0000:00:1d.0-usb-0:1.2 ID_PATH_TAG=pci-0000_00_1d_0-usb-0_1_2 ID_REVISION=0002 ID_SERIAL=Canon_Inc._Canon_Digital_Camera ID_USB_INTERFACES=:060101: ID_VENDOR=Canon_Inc. ID_VENDOR_ENC=Canon\x20Inc. ID_VENDOR_FROM_DATABASE=Canon, Inc. ID_VENDOR_ID=04a9 MAJOR=189 MINOR=132 PRODUCT=4a9/3219/2 SEQNUM=4005 SUBSYSTEM=usb TAGS=:seat:uaccess: TYPE=0/0/0 USEC_INITIALIZED=624441039 UDEV [624.443434] add /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2:1.0 (usb) ACTION=add COLORD_DEVICE=1 COLORD_KIND=camera DEVPATH=/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2:1.0 DEVTYPE=usb_interface GPHOTO2_DRIVER=PTP ID_GPHOTO2=1 ID_MODEL_FROM_DATABASE=EOS 1D X ID_VENDOR_FROM_DATABASE=Canon, Inc. INTERFACE=6/1/1 MODALIAS=usb:v04A9p3219d0002dc00dsc00dp00ic06isc01ip01in00 PRODUCT=4a9/3219/2 SEQNUM=4006 SUBSYSTEM=usb TYPE=0/0/0 USEC_INITIALIZED=624443246 UDEV [624.444811] bind /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2 (usb) ACTION=bind BUSNUM=002 COLORD_DEVICE=1 COLORD_KIND=camera DEVNAME=/dev/bus/usb/002/005 DEVNUM=005 DEVPATH=/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2 DEVTYPE=usb_device DRIVER=usb GPHOTO2_DRIVER=PTP ID_BUS=usb ID_FOR_SEAT=usb-pci-0000_00_1d_0-usb-0_1_2 ID_GPHOTO2=1 ID_MODEL=Canon_Digital_Camera ID_MODEL_ENC=Canon\x20Digital\x20Camera ID_MODEL_FROM_DATABASE=EOS 1D X ID_MODEL_ID=3219 ID_PATH=pci-0000:00:1d.0-usb-0:1.2 ID_PATH_TAG=pci-0000_00_1d_0-usb-0_1_2 ID_REVISION=0002 ID_SERIAL=Canon_Inc._Canon_Digital_Camera ID_USB_INTERFACES=:060101: ID_VENDOR=Canon_Inc. ID_VENDOR_ENC=Canon\x20Inc. ID_VENDOR_FROM_DATABASE=Canon, Inc. ID_VENDOR_ID=04a9 MAJOR=189 MINOR=132 PRODUCT=4a9/3219/2 SEQNUM=4007 SUBSYSTEM=usb TAGS=:seat:uaccess: TYPE=0/0/0 USEC_INITIALIZED=624441039 KERNEL[624.941089] remove /devices/pci0000:00/0000:00:1c.6/0000:0e:00.0/usb3/3-2/3-2:1.0 (usb) ACTION=remove DEVPATH=/devices/pci0000:00/0000:00:1c.6/0000:0e:00.0/usb3/3-2/3-2:1.0 DEVTYPE=usb_interface INTERFACE=6/1/1 MODALIAS=usb:v04A9p32CCd0002dc00dsc00dp00ic06isc01ip01in00 PRODUCT=4a9/32cc/2 SEQNUM=4008 SUBSYSTEM=usb TYPE=0/0/0 KERNEL[624.942075] unbind /devices/pci0000:00/0000:00:1c.6/0000:0e:00.0/usb3/3-2 (usb) ACTION=unbind BUSNUM=003 DEVNAME=/dev/bus/usb/003/006 DEVNUM=006 DEVPATH=/devices/pci0000:00/0000:00:1c.6/0000:0e:00.0/usb3/3-2 DEVTYPE=usb_device MAJOR=189 MINOR=261 PRODUCT=4a9/32cc/2 SEQNUM=4009 SUBSYSTEM=usb TYPE=0/0/0 KERNEL[624.942379] remove /devices/pci0000:00/0000:00:1c.6/0000:0e:00.0/usb3/3-2 (usb) ACTION=remove BUSNUM=003 DEVNAME=/dev/bus/usb/003/006 DEVNUM=006 DEVPATH=/devices/pci0000:00/0000:00:1c.6/0000:0e:00.0/usb3/3-2 DEVTYPE=usb_device MAJOR=189 MINOR=261 PRODUCT=4a9/32cc/2 SEQNUM=4010 SUBSYSTEM=usb TYPE=0/0/0 UDEV [624.945428] remove /devices/pci0000:00/0000:00:1c.6/0000:0e:00.0/usb3/3-2/3-2:1.0 (usb) ACTION=remove COLORD_DEVICE=1 COLORD_KIND=camera DEVPATH=/devices/pci0000:00/0000:00:1c.6/0000:0e:00.0/usb3/3-2/3-2:1.0 DEVTYPE=usb_interface GPHOTO2_DRIVER=PTP ID_GPHOTO2=1 ID_VENDOR_FROM_DATABASE=Canon, Inc. INTERFACE=6/1/1 MODALIAS=usb:v04A9p32CCd0002dc00dsc00dp00ic06isc01ip01in00 PRODUCT=4a9/32cc/2 SEQNUM=4008 SUBSYSTEM=usb TYPE=0/0/0 USEC_INITIALIZED=612751596 UDEV [624.949259] unbind /devices/pci0000:00/0000:00:1c.6/0000:0e:00.0/usb3/3-2 (usb) ACTION=unbind BUSNUM=003 DEVNAME=/dev/bus/usb/003/006 DEVNUM=006 DEVPATH=/devices/pci0000:00/0000:00:1c.6/0000:0e:00.0/usb3/3-2 DEVTYPE=usb_device MAJOR=189 MINOR=261 PRODUCT=4a9/32cc/2 SEQNUM=4009 SUBSYSTEM=usb TYPE=0/0/0 USEC_INITIALIZED=612749291 UDEV [624.951918] remove /devices/pci0000:00/0000:00:1c.6/0000:0e:00.0/usb3/3-2 (usb) ACTION=remove BUSNUM=003 DEVNAME=/dev/bus/usb/003/006 DEVNUM=006 DEVPATH=/devices/pci0000:00/0000:00:1c.6/0000:0e:00.0/usb3/3-2 DEVTYPE=usb_device MAJOR=189 MINOR=261 PRODUCT=4a9/32cc/2 SEQNUM=4010 SUBSYSTEM=usb TYPE=0/0/0 USEC_INITIALIZED=624942856 KERNEL[645.966501] remove /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2:1.0 (usb) ACTION=remove DEVPATH=/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2:1.0 DEVTYPE=usb_interface INTERFACE=6/1/1 MODALIAS=usb:v04A9p3219d0002dc00dsc00dp00ic06isc01ip01in00 PRODUCT=4a9/3219/2 SEQNUM=4011 SUBSYSTEM=usb TYPE=0/0/0 KERNEL[645.967118] unbind /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2 (usb) ACTION=unbind BUSNUM=002 DEVNAME=/dev/bus/usb/002/005 DEVNUM=005 DEVPATH=/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2 DEVTYPE=usb_device MAJOR=189 MINOR=132 PRODUCT=4a9/3219/2 SEQNUM=4012 SUBSYSTEM=usb TYPE=0/0/0 KERNEL[645.967324] remove /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2 (usb) ACTION=remove BUSNUM=002 DEVNAME=/dev/bus/usb/002/005 DEVNUM=005 DEVPATH=/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2 DEVTYPE=usb_device MAJOR=189 MINOR=132 PRODUCT=4a9/3219/2 SEQNUM=4013 SUBSYSTEM=usb TYPE=0/0/0 UDEV [645.971416] remove /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2:1.0 (usb) ACTION=remove COLORD_DEVICE=1 COLORD_KIND=camera DEVPATH=/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2:1.0 DEVTYPE=usb_interface GPHOTO2_DRIVER=PTP ID_GPHOTO2=1 ID_MODEL_FROM_DATABASE=EOS 1D X ID_VENDOR_FROM_DATABASE=Canon, Inc. INTERFACE=6/1/1 MODALIAS=usb:v04A9p3219d0002dc00dsc00dp00ic06isc01ip01in00 PRODUCT=4a9/3219/2 SEQNUM=4011 SUBSYSTEM=usb TYPE=0/0/0 USEC_INITIALIZED=624443246 UDEV [645.975365] unbind /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2 (usb) ACTION=unbind BUSNUM=002 DEVNAME=/dev/bus/usb/002/005 DEVNUM=005 DEVPATH=/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2 DEVTYPE=usb_device MAJOR=189 MINOR=132 PRODUCT=4a9/3219/2 SEQNUM=4012 SUBSYSTEM=usb TYPE=0/0/0 USEC_INITIALIZED=624441039 UDEV [645.978036] remove /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2 (usb) ACTION=remove BUSNUM=002 DEVNAME=/dev/bus/usb/002/005 DEVNUM=005 DEVPATH=/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2 DEVTYPE=usb_device MAJOR=189 MINOR=132 PRODUCT=4a9/3219/2 SEQNUM=4013 SUBSYSTEM=usb TYPE=0/0/0 USEC_INITIALIZED=645968485
_______________________________________________ Gphoto-devel mailing list Gphoto-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gphoto-devel