You are not logged in.

#1 2014-04-21 14:33:04

Strider
Member
From: Belgium
Registered: 2009-08-04
Posts: 104

Camera does not show in gThumb or Shotwell

When I hook up my camera via the usb port, lsusb gives me :

Bus 004 Device 014: ID 04a9:3212 Canon, Inc. Powershot S95

To test I have taken 1 picture with this camera and I am able to read it via gphoto 2 :

chris ~ $ gphoto2 --list-files
There is no file in folder '/'.                                                
There is no file in folder '/store_00010001'.
There is no file in folder '/store_00010001/DCIM'.
There is 1 file in folder '/store_00010001/DCIM/115___04'.
#1     IMG_2768.JPG               rd   410 KB 1600x1200 image/jpeg

However I can't import this photo neither with gThumb or Shotwell ...The camera just does not show up.
I used to be able to import photo's from this camera in the past using Shotwell.
Since gphoto2 and libgphoto2 got upgraded recently, I tried downgrading them but this did not help either.


Win XP -> Ubuntu -> Fedora -> Arch -> Arch -> Arch -> Ar...

Offline

#2 2014-04-23 06:47:49

Rexilion
Member
Registered: 2013-12-23
Posts: 784

Re: Camera does not show in gThumb or Shotwell

Strider wrote:

Since gphoto2 and libgphoto2 got upgraded recently, I tried downgrading them but this did not help either.

Maybe (I'm not sure) that also modified the udev rules. Did you try a fresh reboot after downgrading?


fs/super.c : "Self-destruct in 5 seconds.  Have a nice day...\n",

Offline

#3 2014-04-23 21:12:00

Strider
Member
From: Belgium
Registered: 2009-08-04
Posts: 104

Re: Camera does not show in gThumb or Shotwell

Rexilion,

Thanks for the tip.
I checked the previous and the current version of libgphoto2 and both provide a file /usr/lib/udev/hwdb.d/20-gphoto.hwdb. In neither I could find my camera back. So I used the most recent version of libgphoto2 and added my camera to the file but still nothing happens after reboot ...

Then I checked for other files in /usr/lib/udev/hwdb.d and found '20-usb-vendor-model.hwdb' which also mentions digital cameras (bot again not mine). The file is owned by the systemd package so I'm gonna check how to I can tweak the almighty systemd (I'll start with the wiki wink)


Win XP -> Ubuntu -> Fedora -> Arch -> Arch -> Arch -> Ar...

Offline

#4 2014-04-24 05:35:22

Rexilion
Member
Registered: 2013-12-23
Posts: 784

Re: Camera does not show in gThumb or Shotwell

Then maybe it's not an udev issue.

You could check this. If gphoto2 applies some command to newly plugged devices (libmtp does), you could quickly apply that command to yours and see if that helps.


fs/super.c : "Self-destruct in 5 seconds.  Have a nice day...\n",

Offline

#5 2014-04-24 20:34:06

Strider
Member
From: Belgium
Registered: 2009-08-04
Posts: 104

Re: Camera does not show in gThumb or Shotwell

To be honest, I wouldn't know how to check if gphoto applies a command or not.
If I use udevadm monitor and plug in my camera, I can see udev recognizes a usb device has been plugged in, but that's it.


Win XP -> Ubuntu -> Fedora -> Arch -> Arch -> Arch -> Ar...

Offline

#6 2014-04-25 00:34:23

emeres
Member
Registered: 2013-10-08
Posts: 1,570

Re: Camera does not show in gThumb or Shotwell

Strider wrote:

To be honest, I wouldn't know how to check if gphoto applies a command or not.

Would this be sufficient?

gphoto ARGUMENTS && echo ok > /tmp/gphoto-run

I do not know if udev accepts control operators within RUN command directly, but this surely will work within a called script.

Offline

#7 2014-04-25 08:57:26

Rexilion
Member
Registered: 2013-12-23
Posts: 784

Re: Camera does not show in gThumb or Shotwell

@emeres: I was wrong, no command is executed for each device that is plugged.

Strider wrote:

To be honest, I wouldn't know how to check if gphoto applies a command or not.
If I use udevadm monitor and plug in my camera, I can see udev recognizes a usb device has been plugged in, but that's it.

I looked at the hwdb, and you can verify if it's detected as a camera.

Start udev in monitor mode and look for  ID_GPHOTO2=1 if you plug in the device. I think you can find these by doing:

udevadm monitor -p -u

The strings in the hwdb database that are apparently unique, are a wildcard matching for MODALIAS.

usb:v0979p0227*

My keyboard + mouse USB stick says this:

MODALIAS=usb:v04FCp05D8d0110dc00dsc00dp00ic03isc01ip02in01

fs/super.c : "Self-destruct in 5 seconds.  Have a nice day...\n",

Offline

#8 2014-04-25 19:40:59

Strider
Member
From: Belgium
Registered: 2009-08-04
Posts: 104

Re: Camera does not show in gThumb or Shotwell

Rexilion,
I executed the udev command and indeed udev does recognize my camera  (vendor name, model name,  ID_GPHOTO2 are all ok) :

sudo udevadm monitor -p -u
monitor will print the received events for:
UDEV - the event which udev sends out after rule processing

UDEV  [1108.360679] add      /devices/pci0000:00/0000:00:12.2/usb1/1-5 (usb)
ACTION=add
BUSNUM=001
DEVNAME=/dev/bus/usb/001/004
DEVNUM=004
DEVPATH=/devices/pci0000:00/0000:00:12.2/usb1/1-5
DEVTYPE=usb_device
ID_BUS=usb
ID_FOR_SEAT=usb-pci-0000_00_12_2-usb-0_5
ID_MODEL=Canon_Digital_Camera
ID_MODEL_ENC=Canon\x20Digital\x20Camera
ID_MODEL_FROM_DATABASE=Powershot S95
ID_MODEL_ID=3212
ID_PATH=pci-0000:00:12.2-usb-0:5
ID_PATH_TAG=pci-0000_00_12_2-usb-0_5
ID_REVISION=0002
ID_SERIAL=Canon_Inc._Canon_Digital_Camera_03202329DF924387B51770AEB8E685D0
ID_SERIAL_SHORT=03202329DF924387B51770AEB8E685D0
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=3
PRODUCT=4a9/3212/2
SEQNUM=1890
SUBSYSTEM=usb
TAGS=:seat:uaccess:
TYPE=0/0/0
USEC_INITIALIZED=8323596

UDEV  [1108.365174] add      /devices/pci0000:00/0000:00:12.2/usb1/1-5/1-5:1.0 (usb)
ACTION=add
COLORD_DEVICE=1
COLORD_KIND=camera
DEVPATH=/devices/pci0000:00/0000:00:12.2/usb1/1-5/1-5:1.0
DEVTYPE=usb_interface
GPHOTO2_DRIVER=PTP
ID_FOR_SEAT=usb-pci-0000_00_12_2-usb-0_5_1_0
ID_GPHOTO2=1
ID_MODEL_FROM_DATABASE=Powershot S95
ID_PATH=pci-0000:00:12.2-usb-0:5:1.0
ID_PATH_TAG=pci-0000_00_12_2-usb-0_5_1_0
ID_VENDOR_FROM_DATABASE=Canon, Inc.
INTERFACE=6/1/1
MODALIAS=usb:v04A9p3212d0002dc00dsc00dp00ic06isc01ip01in00
PRODUCT=4a9/3212/2
SEQNUM=1891
SUBSYSTEM=usb
TAGS=:seat:uaccess:
TYPE=0/0/0
USEC_INITIALIZED=24073

So back to square 1 sad : how come I cannot see my camera in my photo management applications ...
Might this be a permission problem (I now the user had to be part of the camera group, but this is no longer needed) ?


Win XP -> Ubuntu -> Fedora -> Arch -> Arch -> Arch -> Ar...

Offline

#9 2014-04-25 23:06:35

emeres
Member
Registered: 2013-10-08
Posts: 1,570

Re: Camera does not show in gThumb or Shotwell

Where is that picture stored? In internal memory or on a memory card? Do you use any auto-mount service/application? What happens when you put some images into root-media/DCIM? I cannot see images above DCIM in shotwell.

Offline

#10 2014-04-26 12:20:46

Strider
Member
From: Belgium
Registered: 2009-08-04
Posts: 104

Re: Camera does not show in gThumb or Shotwell

Picture is stored in internal memory. As you can see from my first post it is in a subdirectory of DCIM : /store_00010001/DCIM/115___04

I do not use any auto-mount service/application. The camera works in ptp mode. I also have another canon powershot camera (an old S1, I rarely use it anymore) which uses the other mode than ptp (I can't recall the exact name).

But as I said my current camera used to show up in shotwell. It didn't in my file manager but I thought that was becauce of the ptp mode.

Last edited by Strider (2014-04-26 12:21:02)


Win XP -> Ubuntu -> Fedora -> Arch -> Arch -> Arch -> Ar...

Offline

#11 2014-04-30 10:01:15

emeres
Member
Registered: 2013-10-08
Posts: 1,570

Re: Camera does not show in gThumb or Shotwell

Did any privileges change lately? The old camera group would have probably worked here before, now deprecated. There is however talk about libgphoto2 and storage group. Since in your case it did work before, I doubt this will bring any results. Last thing that I can think of is running shotwell or gthumb as root (as always be careful).

Offline

Board footer

Powered by FluxBB