Bug 297734

Summary: no automatic detection of PTP usb camera when plugged
Product: [Unmaintained] solid Reporter: Daniel Moyne <daniel.moyne>
Component: libsolid-udevAssignee: Alex Fiestas <afiestas>
Status: RESOLVED WAITINGFORINFO    
Severity: normal CC: adrian, arnieswap, deano_ferrari, ereslibre, marcus, wstephenson
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: image of dolphin content

Description Daniel Moyne 2012-04-08 19:09:50 UTC
User-Agent:       Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/534.34 (KHTML, like Gecko) rekonq Safari/534.34
Build Identifier: 

I have a Powershot SD790IS whe I plug it a a USB port and switch it on the USB peripheral detection does not work though digikame detect the camera and "camera:/ works" as well ; is this fixable ?

Reproducible: Always

Steps to Reproduce:
1. plug calera on USB port 
2. switch it on

Actual Results:  
no USB peripheral detection

Expected Results:  
USB peripheral tray detection as before proposing many options such as dolphin, digikam, etc...
Comment 1 Marcus Meissner 2012-04-17 07:07:13 UTC
this is not kcm_kameras task ... not sure where this task is, I guess solid...
Comment 2 Will Stephenson 2012-04-26 20:33:20 UTC
Does the SD790IS connect to USB as mass storage or only using the PTP/MTP protocols?  If this means nothing to you, can you browse the camera as a drive in Dolphin without using the camera:/ url format (ioslave)?

I noticed recently (KDE 4.7/4.8) something broke hotplug detection of my PTP Nikon.
Comment 3 Marcus Meissner 2012-04-26 20:38:52 UTC
Canon are PTP Only..... not mass storage.
Comment 4 Daniel Moyne 2012-05-03 10:02:58 UTC
(1) camera "Powershot SD790IS" is not on the list of USB cameras but using "Digital IXUS 90 IS" from the list in KDE settings works : by using "info" I collect all information pertaining to my camera ; though it wouldbe good to add this acmera with the proper name in the list (Powershot  SD780IS does not work!).
(2) "Digital IXUS 90 IS" is not indicated as PTP in the list but how to test this?.
(3) so far only the camera protocol (camera:/) works in dolphin and I do not understand the meaning of browsing the camera as a drive : could you be more explicit?
Thanks.
Comment 5 Marcus Meissner 2012-05-06 19:37:18 UTC
can you run
lsusb
with the camera attached to the the correct USB ids please then I can add it to our database.

if you can access it with the camera:/ protocol and browse in the automatically detected camera there, it is fine.


Also again, there should be a popup, but this is not in the kio_kamera responsiblity.
Comment 6 Daniel Moyne 2012-05-08 06:31:07 UTC
Here is what I get :
dmoyne@ossau:~$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 009 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 003: ID 8564:1000  
Bus 006 Device 002: ID 05a9:4519 OmniVision Technologies, Inc. Webcam Classic
Bus 008 Device 002: ID 046d:c512 Logitech, Inc. LX-700 Cordless Desktop Receiver
Bus 002 Device 005: ID 04a9:3174 Canon, Inc. 

The last item is my camera Powershot SD790 IS

For the pop-up where tp report the bug?
Thanks.
Comment 7 Alex Fiestas 2012-05-08 08:25:25 UTC
Can you provide the following output?

-with the kamera NOT connected, execute "solid-hardware listen".
-plug your kamera and write somewhere the the output.
-execute solid-hardware details /.../../../../

the /../../ is a path (udi) you should get when plugin the device in the solid-listening command.

I think we have fix this though, I will ask to device-notifier maintainer but would be nice to have the debug info anyway.

Thanks !

Thanks !
Comment 8 Daniel Moyne 2012-05-09 23:55:40 UTC
dmoyne@ossau:~$ solid-hardware listen
Listening to add/remove events: 
Device Added:
udi = '/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:1d.7/usb2/2-1'

then :
dmoyne@ossau:~$ solid-hardware details /org/kde/solid/udev/sys/devices/pci0000:00/0000:00:1d.7/usb2/2-1
udi = '/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:1d.7/usb2/2-1'
  parent = '/org/kde/solid/udev'  (string)
  vendor = 'Canon Inc.'  (string)
  product = 'Canon Digital Camera'  (string)
  description = 'Camera'  (string)
  Block.major = 189  (0xbd)  (int)
  Block.minor = 132  (0x84)  (int)
  Block.device = '/dev/bus/usb/002/005'  (string)
  Camera.supportedProtocols = {'ptp'}  (string list)
  Camera.supportedDrivers = {'gphoto'}  (string list)

Hope this helps you.
Comment 9 Will Stephenson 2012-05-15 20:11:36 UTC
Seems to be fixed in 4.8.3.

FWIW here is the output from my (PTP) camera, which was not working from 4.7 until very recently.

udi = '/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:1c.6/0000:0e:00.0/usb3/3-1'
  parent = '/org/kde/solid/udev'  (string)
  vendor = 'NIKON'  (string)
  product = 'NIKON DSC D7000'  (string)
  description = 'Camera'  (string)
  Block.major = 189  (0xbd)  (int)
  Block.minor = 257  (0x101)  (int)
  Block.device = '/dev/bus/usb/003/002'  (string)
  Camera.supportedProtocols = {'ptp'}  (string list)
  Camera.supportedDrivers = {'gphoto'}  (string list)
Comment 10 Daniel Moyne 2012-06-01 10:14:46 UTC
Created attachment 71492 [details]
image of dolphin content
Comment 11 Daniel Moyne 2012-06-01 10:16:29 UTC
Now when I connect my camera Canon PowerShot SD790 IS (USB) I get a notification in the desktop panel as expected (this bug has been recently corrected) ; if I select dolphin then dolphin opens with the following content (see png image attached) ; as you can see there are 3 main camera folders corresponding to previous attemps to install a camera in the Kde setting application where I have now only Canon Digital IXUS 90 IS set (no othetr possible choice that works) ; in dolphin normally there is the possibility to remove (delete) the 2 extra folders that does no work ; this option does nothing with no error message ; how can I clean that as a fix until this bug is fixed.

Extra question : when Canon PowerShot SD790 IS will be added in the camera list.
Thanks.
Comment 12 Marcus Meissner 2012-06-04 08:19:06 UTC
just leave the extra cameras there ... I had hoped they would not show anymore these days, but well :/

I have added the SD790IS to the next libgphoto2 release.

But as it is basically the exact same camera except for the brand name the camera that is alphabetically first will be shown during autodetection, so likely still the IXUS.
Comment 13 Alex Fiestas 2013-03-03 14:37:42 UTC
This should be working now (listing PTP devices), is that working for you? if so, should we close this bug?

If you have other issues, could you please create new bugs for each of them?

Thanks !
Comment 14 Alex Fiestas 2013-03-14 02:10:38 UTC
*** Bug 302982 has been marked as a duplicate of this bug. ***
Comment 15 Alex Fiestas 2013-03-14 02:11:27 UTC
*** Bug 299343 has been marked as a duplicate of this bug. ***
Comment 16 Alex Fiestas 2013-07-28 21:27:03 UTC
Closing the thread for lack of activity.

Please, please! if you are still able to reproduce this with KDE 4.10 or 4.11 feel free to reopen the bug!

Thanks for reporting
Comment 17 Dean 2013-12-29 02:28:06 UTC
I am observing some kind of regression with PTP camera and knotify4 (using KDE 4.11 andKDE4.12). With a previous KDE versions including 4.10, knotify4 annunciated the PTP device correctly as expected. On connecting my Canon PowerShot A1000IS (and SX150 IS model) , I get dmesg and udevadm reporting as expected

dmesg|tail
[ 2416.565078] usb 2-6: new high-speed USB device number 3 using ehci-pci
[ 2416.681903] usb 2-6: New USB device found, idVendor=04a9, idProduct=318e
[ 2416.681911] usb 2-6: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 2416.681916] usb 2-6: Product: Canon Digital Camera
[ 2416.681920] usb 2-6: Manufacturer: Canon Inc.
[ 2416.681924] usb 2-6: SerialNumber: A5CA3EBD60C64724BEA85059B71F7A6B

udevadm monitor
monitor will print the received events for:
UDEV - the event which udev sends out after rule processing
KERNEL - the kernel uevent

KERNEL[2416.682411] add      /devices/pci0000:00/0000:00:1d.7/usb2/2-6 (usb)
KERNEL[2416.682983] add      /devices/pci0000:00/0000:00:1d.7/usb2/2-6/2-6:1.0 (usb)
UDEV  [2416.696585] add      /devices/pci0000:00/0000:00:1d.7/usb2/2-6 (usb)
UDEV  [2416.712454] add      /devices/pci0000:00/0000:00:1d.7/usb2/2-6/2-6:1.0 (usb)

but solid-hardware reports nothing

solid-hardware listen
Object::connect: No such signal org::freedesktop::UPower::DeviceAdded(QDBusObjectPath)
Object::connect: No such signal org::freedesktop::UPower::DeviceRemoved(QDBusObjectPath)
Listening to add/remove events: 

and the KDE notifier reports nothing.

There is an openSUSE thread open on this topic

http://forums.opensuse.org/english/get-technical-help-here/hardware/493692-canon-usb-camera-a810-not-detected.html

and another older one reporting the same

https://forums.opensuse.org/english/get-technical-help-here/hardware/492789-problem-mounting-camera-v13-1-a-2.html
Comment 18 Dean 2013-12-29 02:33:52 UTC
Just to clarify, this is a problem with auto-detection (via KDE notifier). If I use Dolphin with 'camera:/' kio slave, (or digiKam etc) then I can view the photos as usual.
Comment 19 Dean 2014-01-10 21:19:12 UTC
This has now been resolved as per the thread linked to above.