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.
]]>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 : 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) ?
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
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.
]]>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.
]]>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 )
]]>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?
]]>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.