Bug 206120

Summary: Camera devices should be visible in the Places panel
Product: [Frameworks and Libraries] frameworks-kio Reporter: Philippe ROUBACH <philippe.roubach>
Component: PlacesAssignee: David Faure <faure>
Status: CONFIRMED ---    
Severity: wishlist CC: afiestas, andresbajotierra, bugs.kde.org.shine600, bugseforuns, elvis.angelaccio, grahamperrin, kde, kdelibs-bugs, luigiwriter2, marcus, metzpinguin, nate, null, philippe.roubach, postix, prettyvanilla, tagwerk19
Priority: HI Keywords: usability
Version: 5.47.0   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: solid log
screenshot of the problem

Description Philippe ROUBACH 2009-09-03 15:38:22 UTC
Version:           1.3 (using 4.3.1 (KDE 4.3.1), Mandriva Linux release 2010.0 (Cooker) for i586)
Compiler:          gcc
OS:                Linux (i686) release 2.6.31-desktop-0.rc8.1mnb

 i plug my still camera
then
notification pops up and i can use it with digikam
but
in the left panel of dolphin there is no camera

i cannot access to my camera memory card
through dolphin

see
https://qa.mandriva.com/show_bug.cgi?id=52237
Comment 1 Dario Andres 2009-09-04 01:47:49 UTC
Some cameras have two operation modes:
"Ptp" for handling the device like a camera (the content of the device/memory can't be accessed directly, but by using a special interface to retrieve the pics, using libgphoto2)
"Massive storage" for accessing the memory like it was an ordinary usb stick.

- Can you check if your camera has some kind of setting regarding the operation mode ?
If it is set to Massive storage (or you see that plugin it in other Desktop Environments or Operating Systems it is recognized and its content can be accessed) please tell us. 

Thanks
Comment 2 Philippe ROUBACH 2009-09-04 08:50:56 UTC
All is in my Mandriva bug report.

an extract :

**************************************************************************
with Mandriva 2008.1 and kde 3.5.9 no pb
konqueror sees the DC; i can read a file, i can delete a file
 i don't need to use digikam

i have an access via protocol system:/media:/ or media:/ or via /media/usb
imaging
it is a ptp, mtp, umsc compliant DSC
**************************************************************************
Comment 3 Philippe ROUBACH 2009-09-04 08:59:04 UTC
with my kodak c913
i have not the choice

- with konqueror 3.5.9
i can read, delete
i can't copy

perhaps by default konqueror uses ptp and with this protocol you can't copy

- with dolphin 4.3.1
is ptp or mtp or umsc implemented ?
how dolphin knows the protocol to use ?
Comment 4 Philippe ROUBACH 2009-09-04 09:01:31 UTC
addendum to my comment #3

with my kodak c913
i have not the choice of the protocol
Comment 5 Dario Andres 2009-09-04 13:53:14 UTC
As far as I remember the PTP protocol could be implemented in the camera:/ protocol.  system:/ or media:/ just uses the Massive transfer protocol (as a USB stick).

So this could be related to KDE4 libraries not recognizing your camera.

- Can you run: "solid-hardware list details" in Konsole and see if you have a hardware entry for your camera?

Thanks
Comment 6 Philippe ROUBACH 2009-09-04 14:19:00 UTC
i have a hardware entry
***************************************************************************
udi = '/org/freedesktop/Hal/devices/usb_device_40a_5c6_C913_251891864_if0'
  parent = '/org/freedesktop/Hal/devices/usb_device_40a_5c6_C913_251891864'  (string)
  vendor = ''  (string)
  product = 'USB Imaging Interface'  (string)
  Camera.supportedProtocols = {'ptp'}  (string list)
  Camera.supportedDrivers = {'gphoto'}  (string list)

udi = '/org/freedesktop/Hal/devices/usb_device_40a_5c6_C913_251891864'
  parent = '/org/freedesktop/Hal/devices/usb_device_1d6b_2_0000_00_02_1'  (string)
  vendor = 'Kodak Co.'  (string)
  product = 'KODAK EASYSHARE C913 Digital Camera'  (string)
***************************************************************************
Comment 7 Dario Andres 2009-09-04 14:32:14 UTC
Mh, that will need using the camera:/ protocol or Digikam. 
- Is there any other entry representing the Storage device related to the camera memory stick ? (it should have some "StorageVolume.size" entry on it)

Thanks
Comment 8 Philippe ROUBACH 2009-09-04 14:46:32 UTC
Created attachment 36689 [details]
solid log

i did not find any memory stick
Comment 9 Philippe ROUBACH 2009-09-04 14:50:09 UTC
if i try in dolphin
camera:/
then
i have the error message : invalid protocol
Comment 10 Dario Andres 2009-09-04 14:53:26 UTC
- Do you have "kdegraphics" installed ? Thanks
Comment 11 Philippe ROUBACH 2009-09-04 15:01:54 UTC
installed :

kdegraphics4-core

not installed :

kdegraphics4
kdegraphics4-devel

in ../kde4/services there is no :

ptp.protocol
camera.protocol
mtp.protocol
ums.protocol
usbimaging.protocol

or something else
Comment 12 Dario Andres 2009-09-04 15:05:06 UTC
Install the "kdegraphics4" package too.
Comment 13 Philippe ROUBACH 2009-09-04 15:25:40 UTC
pb still there

- dc not in the left panel of dolphin
- camera:/ -> invalid protocol
Comment 14 Philippe ROUBACH 2009-09-04 15:32:29 UTC
at least i am sure ptp works with my camera
Comment 15 Dario Andres 2009-09-04 15:42:21 UTC
May be the Solid people can give you some other help
Comment 16 Marcus Meissner 2009-09-04 15:47:03 UTC
what rpm contains kio_kamera.so ?  It seems its not installed.

are there more kdegraphics4-* packages available?
Comment 17 Philippe ROUBACH 2009-09-04 16:13:02 UTC
there is no more kdegraphics4*

there is a "kamera - Protocole ioslave kamera​" packet which is not installed

it contains  ‎/usr/lib/kde4/kio_kamera.so

i installed it

- the camera  is not in the left panel of dolphin
- with camera:/ i can scan the memory card
i see the tree of directories and inside i see the photos

i cannot copy from or to or delete a photo in the memory card

if i try i have "unknown error 150, undefined error"
Comment 18 Philippe ROUBACH 2009-09-04 16:27:32 UTC
in .../kde4/services/

there are kamera.desktop and camera.protocol files
Comment 19 Kevin Ottens 2009-09-07 08:38:02 UTC
That'd be more something for the KFilePlaces system I think. I'll see what could be done, last time I tried to integrate with kio_kamera there I had some headaches though. We'll see. :-)
Comment 20 Philippe ROUBACH 2009-09-07 09:52:21 UTC
(In reply to comment #19)
> That'd be more something for the KFilePlaces system I think. I'll see what
> could be done, last time I tried to integrate with kio_kamera there I had some
> headaches though. We'll see. :-)

many thanks
Comment 21 Philippe ROUBACH 2009-09-07 12:00:50 UTC
does it exist a kde package witch implements mtp protocol because my still camera is also compliant with this protocol ?
Comment 22 Marcus Meissner 2009-09-07 13:19:02 UTC
kio_kamera will also handle MTP devices, as libgphoto2 supports mtp devices.
Comment 23 Philippe ROUBACH 2009-09-07 13:33:31 UTC
ok thanks

is there a way to ask for konqueror to use ptp or mtp to access ?
Comment 24 Philippe ROUBACH 2009-09-15 13:58:09 UTC
there is another pb, a random one :

when i access to camera folder

camera:/Kodak C913@usb:001,005/store_00020001

dolphin does not list contents

i have an error message

unabel to read file undefined error

or

error code 150 unknown
undefined error
please send a bug report


some time i can access to the memory card contents thus
i can briefly see the photos
Comment 25 Kevin Ottens 2009-09-15 14:00:44 UTC
For that (comment #24 content) please fill a separate bug report against Dolphin or the KIO kamera component. It's a completely different issue.
Comment 26 Philippe ROUBACH 2009-10-10 12:22:34 UTC
kamera 4.3.2

pb still there
Comment 27 Philippe ROUBACH 2009-11-07 08:17:13 UTC
there is an improvement

i can access reading, deleting

but still no camera icon in the left panel
Comment 28 Philippe ROUBACH 2009-12-26 21:53:03 UTC
another pb using camera:/

when accessing to my dc card tyhere is no preview for image (jpg for example) and no preview for movie (.mov for example)
Comment 29 Dario Andres 2009-12-26 21:59:33 UTC
@Philippe: could you describe that issue in a new bug report ? The policy is one report per issue (to not mixup different things). Thanks!
Comment 30 Philippe ROUBACH 2009-12-26 23:29:34 UTC
ok ignore my comment #28
i made a bug report about this
Comment 31 Philippe ROUBACH 2012-10-04 12:43:39 UTC
kde 4.8.4

pb still there : no camera place but i can access to my camera via usb ptp by typing camera:/ in dolphin
Comment 32 kavol 2013-10-04 14:35:50 UTC
Created attachment 82657 [details]
screenshot of the problem

I wanted to report issue with dolphin but I've found this prehistoric bug and after reading the comments, I believe this is exactly the same issue ...

one picture for thousand words, so please see the screenshot

you can see there is a SE Xperia device connected via the camera protocol

if you look to the left under "Zařízení" ("Devices"), you can see that the device is not listed there

so the only(*) way to access it is to manually edit the location field and put "camera:/" in there, instead of just clicking on the device in the list just like for any other device or place

(*) I mean only one from running Dolphin; otherwise, you can click the devices icon in the panel, choose the device and click "Open in file manager", then it opens in Dolphin ... so, if it can be shown here within this list of removable devices, why it cannot be shown in the list of devices in Dolphin?
Comment 33 Philippe ROUBACH 2014-01-12 17:28:11 UTC
opensuse 13.1 , kde 4.12 , digikam 3.5 
- ptp
no camera in dolphin places panel 
but 
in kde settings/kamera camera is there but all buttons are in grey whne i select camera

in digikam no pb to access to it 

- mtp 
dolphin : no pb 
digikam : no pb
Comment 34 Marcus Meissner 2014-01-12 18:36:40 UTC
what does "gphoto2 --auto-detect" show in both modes, and if it shows "USB PTP Class Camera", what are the USB ids and name of this camera?
Comment 35 Philippe ROUBACH 2014-01-13 11:49:59 UTC
i have no more my kodak c913 using ptp

i made test with a a Samsung SII P , android 4.2.2

with android 4.2.2 i can choose ptp or mtp

Bus 001 Device 009: ID 04e8:6865 Samsung Electronics Co., Ltd GT-I9300 Phone [Galaxy S III] (PTP mode)

opensuse yast software manager does not supply gphoto2
Comment 36 Marcus Meissner 2014-01-15 08:01:45 UTC
after installing the current updates, including "libgphoto2" published yesterday, is the behaviour better? it should detect the so far unknown PTP id of the Samsung 3
Comment 37 Philippe ROUBACH 2014-01-15 18:05:58 UTC
no more pb

i consider bug resolved
Comment 38 Philippe ROUBACH 2014-01-15 18:18:31 UTC
i reopen bug report

yes camera appears in the browse part of dolphin
but
not in the places panel

when i launch dolphin from kde menu i have no access to camera , even i click in device notifier
to mount camera

if i launch dolphin from device notifier
then
i have access to camera

in the 2 cases not camera in places panel
Comment 39 Philippe ROUBACH 2014-01-15 18:19:35 UTC
no pb with mtp
Comment 40 Nate Graham 2019-06-03 14:13:54 UTC
*** Bug 386060 has been marked as a duplicate of this bug. ***
Comment 41 L P Luigi Espenlaub 2020-12-20 08:26:34 UTC
Latest version of Dolphin 20. camera:/ returns "Invalid protocol" Gnome's Nautilus has no problem opening the camera and showing it as USB PTP in the side panel. No problem accessing or moving files. But no preview or thumbnails, have to open a separate window to do moving. Dolphin 17 worked but 20 does not. Konqueror uses Dolphin for its file manager function I am informed. Loaded the latest DigiKam and to no surprise, its ability to connect with any thing USB besides mass storage [not PTP] has been removed I conclude because the user guide still shows windows with PTP options but is out of date.
Comment 42 Nate Graham 2021-01-05 02:54:28 UTC
*** Bug 431054 has been marked as a duplicate of this bug. ***
Comment 43 Maik Qualmann 2021-01-05 07:43:21 UTC
(In reply to L P Luigi Espenlaub from comment #41)
> Loaded the latest DigiKam and to no surprise, its ability to
> connect with any thing USB besides mass storage [not PTP] has been removed I
> conclude because the user guide still shows windows with PTP options but is
> out of date.

Nothing was removed from digiKam. If you cannot establish a connection to a PTP (IP) / MTP device, your digiKam version was compiled without GPhoto2 support.

Maik
Comment 44 Petr N. 2021-01-31 09:36:11 UTC
Yes, happens for me too. In Thunar file manager it is visible in left panel as a new drive and working to access/delete the data, but in Dolphin it is not visible in Places left panel. 5.10.7-3-MANJARO

mtp-probe[1857133]: bus: 2, device: 12 was not an MTP device
mtp-probe[1857133]: checking bus 2, device 12: "/sys/devices/pci0000:00/0000:00:14.0/usb2/2-5"
Manufacturer: Canon Inc.
Product: Canon Digital Camera
New USB device strings: Mfr=1, Product=2, SerialNumber=0
New USB device found, idVendor=04a9, idProduct=3146, bcdDevice= 0.02
new high-speed USB device number 12 using xhci_hcd

Let me know if need more data to fix this 12 years old! bug
Comment 45 Patrick Silva 2021-11-30 12:49:06 UTC
Still an issue on neon unstable.

Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.23.80
KDE Frameworks Version: 5.89.0
Qt Version: 5.15.3
Graphics Platform: X11
Comment 46 Graham Perrin 2021-12-30 14:10:33 UTC
See also: bug 355024
Comment 47 tagwerk19 2023-10-06 06:09:09 UTC
(In reply to Patrick Silva from comment #45)
> Still an issue on neon unstable.
I think also/still on Fedora 38.

(In reply to kavol from comment #32)
> ... the only(*) way to access it is to manually edit the location field and
> put "camera:/" in there ...
This normally works for me...
Comment 48 L P Luigi Espenlaub 2023-10-08 08:42:24 UTC
(In reply to tagwerk19 from comment #47)
> (In reply to Patrick Silva from comment #45)
> > Still an issue on neon unstable.
> I think also/still on Fedora 38.
> 
> (In reply to kavol from comment #32)
> > ... the only(*) way to access it is to manually edit the location field and
> > put "camera:/" in there ...
> This normally works for me...

Just tried it with My FinePix S8600  
1. Plugged in the camera, Camera displaying "USB"
2. Opened Dolphin
3. Clicked the edit location  [|] bar.
4. Replaced the contents using [Ctrl]+[A], [Del], then, Pasted [camera:/] in the field.
5. Clicked the check mark.
    The following displayed in the location area "camera:"
    In the Name column below "+ [file folder] Fuji FinePix S8600"
6. Clicking the [+]s displayed the following tree
    + [file folder] Fuji FinePix S8600
          + [file folder] store_00010001  
                + [file folder] DCIM
                      + [file folder] 100_FUJI
                                DSCF0800.JPG
                                . . .
Success! Great Workaround!
Others should see something similar.

System Info
Operating System: Ubuntu Studio 23.04
KDE Plasma Version: 5.27.4
KDE Frameworks Version: 5.104.0
Qt Version: 5.15.8
Kernel Version: 6.2.0-1014-lowlatency (64-bit)
Graphics Platform: Wayland
Processors: 24 × AMD Ryzen 9 7900X 12-Core Processor
Memory: 31.0 GiB of RAM
Graphics Processor: NV172
Comment 49 tagwerk19 2023-10-08 20:52:57 UTC
Anecdotal ...

You can plug in (and turn on) a camera and get a notification that there's a new device. You click on the "mount" and not see anything appear in the Dolphin side panel . You can type "camera:" into the location bar and see the file folders. That's worked for me in most cases...

I've fallen into a couple of "Traps for the Unwary" though:

If you turn off the camera and immediately turn it back on again, dolphin shows:

    Unknown error code 150
    Bad parameters
    Please send a full bug report at https://bugs.kde.org

This is probably the result of Dolphin caching results and not seeing that the camera has "gone" and reappeared somewhere else. When I look with "dmesg" I see that originally it gave:

    usb 2-3: new high-speed USB device number 3 using ehci-pci

and turning the camera off and back on again gave:

    usb 2-3: new high-speed USB device number 4 using ehci-pci

I don't get a KDE notification and I don't see the camera in the Discs & Devices. If I close Dolphin and relaunch, the error goes but I get empty "camera:" folders. The solution was to reboot the VM. Note that my experiments are done in a KVM guest system, Fedora 38. Behaviour on a native install may differ.

Second trap was when the Camera battery was "low" (and I had not noticed).

This lead to the situation that I could plug the camera in and get the notification (and see dmsg reporting the New USB device found) but not being able to see the camera's file folders even when typing "camera:" in the location bar.

I will flag this as anecdotal and suspect, when I charged the camera battery all went well again. Therefore not really something I could go back and test but a hint perhaps for the similarly confused...
~
Comment 50 L P Luigi Espenlaub 2023-10-09 03:38:34 UTC
Suggestion.
Perhaps a temporary fix could be
1. Adding a button in the left pane titled "USB Camera:"
2. Clicking it would change the location field to "camera:/" and effect an Enter command.

This would help any new users and current users who are unaware of this bug. 
It would help users especially like me who find it confusing to have to remember which file manager to use to do what.

This would take someone far more knowledgeable in coding such a patch or adding code for the next release.
Comment 51 tagwerk19 2023-10-09 05:32:34 UTC
(In reply to tagwerk19 from comment #49)
>     Unknown error code 150
>     Bad parameters
>     Please send a full bug report at https://bugs.kde.org
Maybe a fellow traveller... Bug 336397