This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Digital camera appears as non-removable device

Tags: None
(comma "," separated)
User avatar
SpeKtre
Registered Member
Posts
10
Karma
0
OS
Hello!

Could you please help me to understand why my digital camera (Canon Ixus 80 IS) appears in Device Notifier as non-removable device?

If in Device Notifier Settings the option 'Removable devices only' selected I haven't got camera in the list but if I select 'Non-removable devices only' camera appears in the list. I am pretty sure camera is more removable than non-removable.

Best regards.
User avatar
einar
Administrator
Posts
3402
Karma
7
OS
Is your camera accessed through USB Storage or a protocol like MTP? In the latter case, it works differently.


"Violence is the last refuge of the incompetent."
Image
Plasma FAQ maintainer - Plasma programming with Python
User avatar
SpeKtre
Registered Member
Posts
10
Karma
0
OS
einar wrote:USB Storage or a protocol like MTP?


I believe it accessed via protocol because then plugged in, dmesg displays only (with no information about partitions):

Code: Select all
[ 1945.616498] usb 1-1: new high-speed USB device number 4 using ehci_hcd


Also, libgphoto2 can access camera and Dolphin displays camera content with 'camera:/' prefix in the path.
User avatar
einar
Administrator
Posts
3402
Karma
7
OS
IF you access it through camera:/ it's likely not configured as USB Mass Storage. Many cameras use stuff like MTP protocol which doesn't enable them to be used as "disks" directly (and since a while - mine, bought in 2007, already works like that). You could check by using a program like Digikam.
Gphoto and camera:/ use an abstraction to be able to access the camera like a disk, or a browsable device.


"Violence is the last refuge of the incompetent."
Image
Plasma FAQ maintainer - Plasma programming with Python
User avatar
SpeKtre
Registered Member
Posts
10
Karma
0
OS
Thanks for reply! Is it possible to make camera appears in 'removable devices' in Device notifier (because it makes sense and it's useful to access camera via Device notifier). Setting Device notifier to 'all devices' seems uncomfortable because I don't need always see my hard drive partitions in the list.
User avatar
einar
Administrator
Posts
3402
Karma
7
OS
I think you can do that in the device actions KCM, but I'm not sure (I never used this feature).


"Violence is the last refuge of the incompetent."
Image
Plasma FAQ maintainer - Plasma programming with Python
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
The control over the "removable" status of a device rests with UDisks and it's decisions I believe. It may also be affected by UDev rules.

Try running "solid-hardware query 'IS StorageDrive'" and check that output for your camera, then run "solid-hardware details <udi>"

For example, I did the following (although I was checking my laptop hard disk instead as I have no camera around at the moment)

Code: Select all
ben@bianca:~/kdesvn/kde/kde-workspace> solid-hardware query 'IS StorageDrive'
udi = '/org/freedesktop/UDisks/devices/sda'
udi = '/org/freedesktop/UDisks/devices/sr0'
ben@bianca:~/kdesvn/kde/kde-workspace> solid-hardware details /org/freedesktop/UDisks/devices/sda


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]


Bookmarks



Who is online

Registered users: Baidu [Spider], Bing [Bot], Google [Bot]