This method can be used to obtain the shutter actuation count on the following cameras:
- Canon 1D Mark II
- Canon 50D
- Canon 5D Mark II
- Canon 5D Mark III
- Canon 7D
- Canon T2i
There may be a few other compatible cameras too. Let me know if you have confirmed another model which works using this method.
Mac OS X
- Install XCode Developer Tools for your version of OS X from the Apple Developer web site. Skip this if you already have it installed.
- Visit the MacPorts web site and download the .pkg installer. Run the installer and follow the instructions and install it to your computer.
- Open the Terminal.
- Update macports if needed, by running the command
sudo port -v selfupdate
- Install the gphoto2 package by running the command
sudo port install gphoto2
- Test whether gphoto2 is properly installed by typing
- Connect your camera to the USB port, using a USB cable
- Wait a few seconds after connecting your camera, and type
killall PTPCamera– every time you replug your camera to the computer, you’ll need to type this before using gphoto2. This is needed, to kill any running processes connected to the USB device.
- To check the number of actuations, on the attached camera, type
gphoto2 --get-config /main/status/shuttercounter
- If your camera is compatible, the shutter actuation count will be displayed.
Install gPhoto2 using package manager of our distribution.
For Centos, RHEL and other distributions which use the yum package manager:
yum install gphoto2
For Debian, Ubuntu and other distributions which use the apt package manager:
apt-get install gphoto2
Some Linux distributions may not have gphoto2 as precompiled package in which case you’ll need to download and compile it from source.
Using a LiveCD
This is the simplest way for non tech heads. Download the live CD, I have created and write it to a CD or DVD. You can do this by right clicking on the ISO file in Windows Explorer and selecting “Burn disc image”.
Reboot your computer boot from the CD. To boot your computer from a CD, there is usually key you can press to change the boot device (e.g F12). This usually flashes up on the monitor when it boots up.
Alternatively, you can enter the BIOS settings and change the boot order, and set the CD/DVD drive as the first device.
Once you have rebooted, it should start up in Debian (on the live CD), and a command prompt will be shown along with a message.
To check shutter count, type
shuttercounter, to read camera information, you can type
camerainfo, this will display information such as the camera’s serial number. These commands shortcuts to the gphoto2 program. You can also run all other gphoto2 commands if needed. See the full features by typing
Using a Virtual Machine
If you have experience using virtualisation software such as Virtualbox or VMWare Workstation, then another way is to install or use an existing virtual Linux installation of your choice. Install gphoto2 from inside the virtual machine.