Specifying the port and camera you use

Abstract

libgphoto2 identifies a camera by two values:

  1. the port it is connected to
  2. the name of the camera

How these may be specified is discussed in this chapter.

Port names

Serial ports

are named like serial:/dev/ttyS2 if you want to use the serial device /dev/ttyS2.

USB ports

As USB works with auto detection, you do not have to specify a device file. Therefore you just use the gphoto2 port usb:.

Camera name

The model name of the camera does not have to be specified when using the usb: port. Otherwise you can specify a camera model like Canon PowerShot G2. You will be better off choosing the model from the list of supported models rather than just trying to type your camera model.

          [me@home ~]$ gphoto2 --camera "Canon PowerShot G2" --list-files