Digital Cameras (Italiano)
From ArchWiki
Article summary |
---|
Informazioni sul supporto alle fotocamere digitali. |
Linguaggi Disponibili |
English |
Italiano |
Contents |
Introduzione
Questa pagina mira a configurare correttamente libgphoto2 così che gli appartenenti al gruppo camera possano accedere a una fotocamera digitale connessa tramite USB. L'obiettivo è stato nel mantenere ciò che è scritto qui, il più semplice possibile, per questo motivo non sono considerati i casi particolari che si possono incontrare.
Non tutte le fotocamere digitali sono rilevate con l'opzione --auto-detect (in gphoto2). Alcune fotocamere potrebbero essere riconosciute con un nome generico, o altre avere un nome di un modello differente. Se la fotocamera funziona, non è consigliabile intervenire per sistemare questi dettagli.
Libgphoto2
Informazioni
Libgphoto2 è la principale libreria progettata per fornire accesso ad una fotocamera digitale da programmi esterni, come Digikam o gphoto2. Le fotocamere supportate ufficialmente sono elencate qui anche se è possibile che ne funzionino delle altre.
Installazione e Configurazione
Da root, eseguite:
# pacman -S libgphoto2
E poi:
# gpasswd -a $nomeutente camera
Permission issues
If you receive permission issues type this in as well, still as root:
# /usr/lib/libgphoto2/print-camera-list udev-rules mode 0660 version 0.98 group camera > /etc/udev/rules.d/90-libgphoto2.rules
If after following all of these steps you still have access issues, try editing /etc/udev/rules.d/90-libgphoto2.rules and change the PROGRAM= line near the bottom to the following:
PROGRAM="/lib/udev/check-ptp-camera", MODE="0660", GROUP="camera"
If your camera is not present in any udev rule, you can check vendor and product id and add it. To check it just run:
# lsusb ... Bus 001 Device 005: ID 04a9:318e Canon, Inc. ...
I prefer to put any local udev rules to /etc/udev/rule.d/90-local.rules to make sure it wouldn't be overwritten by new packages. My 90-local.rules looks:
PROGRAM="/lib/udev/check-ptp-camera", MODE="0660", GROUP="camera" ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="318e", MODE="0660", GROUP="camera"
To changes take effect you need to restart udevd
# killall udevd && udevd -d
Now after plugin your camera you can check if permission looks okay by running:
# ls -lR /dev/bus/usb
GPhoto2
About
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.
Installation and Configuration
To get Gphoto2, type this in as root:
# pacman -S gphoto2
Quick Commands
- gphoto2 --list-ports
- gphoto2 --auto-detect
- gphoto2 --summary
- gphoto2 --list-files
- gphoto2 --get-all-files