8

I have a Canon 40D that worked well with 32-bit Ubuntu all the way from 10.04 through 12.04. However, I switched to 64-bit 12.04 a while back, and since then, connecting the camera just brings up a simple dialog:

Unable to mount Canon Digital Camera
Error initializing camera: -1: Unspecified error

This problem persists in 12.10 and the latest 13.04 build.

syslog doesn't say much other than

kernel: [12089.871412] usb 3-1: new high-speed USB device number 3 using xhci_hcd
mtp-probe: checking bus 3, device 3: "/sys/devices/pci0000:00/0000:00:14.0/usb3/3-1"
mtp-probe: bus: 3, device: 3 was not an MTP device
kernel: [12453.142322] usb 3-1: USB disconnect, device number 3

I've seen some random bugs on launchpad about this, but nothing that directly pertains to it. This seems like such a glaring problem that I figure I'm doing something wrong on my end. What's the proper way to get a camera to work on 64-bit Ubuntu?

EboMike
  • 478

3 Answers3

6

I have the same issue on Ubuntu 12.10 (64-bit) with a Canon EOS 400D. I found reports about this only happening when connecting the camera through a USB3.0 port, but not when plugging in the cable to a USB2.0 port; however, this workaround is not working for me with an Asus N76VM laptop. Maybe it works for you.

Stefan
  • 141
4

A workaround that worked for me was killing both gvfs-gphoto2-volume-monitor and gvfs-mtp-volume-monitor. I killed the gphoto2-one first, so I don't know if it was necessary or if just killing the mtp-one would have worked.

Aditya
  • 13,616
avo
  • 41
2

Blizzara's answer led me to a proper solution - gvfs-gphoto2-volume-monitor is interfering. I tried killing it, but it's keeps coming back.

So I took the sledgehammer and whacked it right upside the head like this:

sudo chmod 644 /usr/lib/gvfs/gvfs-gphoto2-volume-monitor 

And that did it! (Of course, I did have to do a ps ax | grep gvfs-gphoto once and kill the already-running process.) Shotwell now downloads my pictures like a charm! I'm sure there's a better solution to this problem, not to mention that we shouldn't be having this problem in the first place, but I'll take this for now.

Btw, since Blizzara led me to this, B's answer deserves an upvote.

EboMike
  • 478