Difference between revisions of "Digital Cameras"

From ArchWiki
Jump to: navigation, search
m (Permission issues: code was not formatted correctly)
m (Permission issues: fix spelling and flag out of date for consolekit usage)
Line 24: Line 24:
  
 
===Permission issues===
 
===Permission issues===
 
+
{{out of date|ConsoleKit is no longer used}}
 
Camera devices should be granted permission using ACLs. For this to work, users need to have consolekit or systemd running and the user session must be registered with them accordingly.  
 
Camera devices should be granted permission using ACLs. For this to work, users need to have consolekit or systemd running and the user session must be registered with them accordingly.  
  
Line 33: Line 33:
 
  is-local = TRUE
 
  is-local = TRUE
  
Users not wishing to use ACL's but rather wishing to use the old 'camera' group, should add the requisite users to the depreciated camera group and create a new udev rules file as follows:
+
Users not wishing to use ACL's but rather wishing to use the old 'camera' group, should add the requisite users to the deprecated camera group and create a new udev rules file as follows:
  
 
  # /usr/lib/libgphoto2/print-camera-list udev-rules version 175 group camera > /etc/udev/rules.d/40-gphoto.rules
 
  # /usr/lib/libgphoto2/print-camera-list udev-rules version 175 group camera > /etc/udev/rules.d/40-gphoto.rules

Revision as of 21:37, 30 October 2012

Summary help replacing me
Infos on digital cameras support.

This article documents the configuration of libgphoto2 to access digital cameras. Some digital cameras will mount as normal USB Storage Devices and may not require the use of libgphoto2.

Note: As of libgphoto2 version 2.14.13, users do not need to be part of the camera group.

Libgphoto2

Libgphoto2 is the core library designed to allow access to digital cameras by external (front end) programs, such as Digikam and gphoto2. The current 'officially' supported cameras are here (though more may work).

Installation and Configuration

Core library:

# pacman -S libgphoto2

(Optional) gvfs (for Nautilus integration):

# pacman -S gvfs-gphoto2

(Optional) Command line interface:

# pacman -S gphoto2

Permission issues

Tango-view-refresh-red.pngThis article or section is out of date.Tango-view-refresh-red.png

Reason: ConsoleKit is no longer used (Discuss in Talk:Digital Cameras#)

Camera devices should be granted permission using ACLs. For this to work, users need to have consolekit or systemd running and the user session must be registered with them accordingly.

Check this using /usr/bin/ck-list-sessions to verify a value of "TRUE" should be returned for both the "active" and "is-local" fields:

$ ck-list-sessions | grep TRUE
active = TRUE
is-local = TRUE

Users not wishing to use ACL's but rather wishing to use the old 'camera' group, should add the requisite users to the deprecated camera group and create a new udev rules file as follows:

# /usr/lib/libgphoto2/print-camera-list udev-rules version 175 group camera > /etc/udev/rules.d/40-gphoto.rules

If the camera is not present in any udev rule, can check vendor and product id and add it. To check it just run:

# lsusb
...
Bus 001 Device 005: ID 04a9:318e Canon, Inc.
...
Tip: It may be easier to reboot.

GPhoto2 Usage

GPhoto2 is a command line client for libgphoto2. GPhoto2 allows access to the libgpohoto2 library from a terminal or from a script shell to perform any camera operation that can be done. This is the main user interface.

GPhoto2 also provides convenient debugging features for camera driver developers.

Quick Commands

  • gphoto2 --list-ports
  • gphoto2 --auto-detect
  • gphoto2 --summary
  • gphoto2 --list-files
  • gphoto2 --get-all-files

For advanced file manipulation, use

  • gphoto2 --shell

Frontend (external) Applications for GPhoto2

Miscellaneous Troubleshooting

Groups

Make sure that the user to which access should be granted is part of the storage group.

Wiki Articles Relating to Photo/Cameras

  • Jalbum - Freeware for creating professional albums/galleries.
  • HCL/Digital Cameras - Partial list of supported cameras for gphoto2