4.3.2. USB ports on Linux using HAL
This section describes how to set up USB device permissions using HAL. Due to this article's author's cluelessness about HAL, it just describes the HAL setup provided by the Fedora Core 6 (FC6) gphoto2 RPM package.
The libgphoto2 specific part of the HAL configuration consists of two parts: The device list and a policy. Each is stored in its own file.
The device list file contains a list of all devices supported by libgphoto2 in any fashion and giving HAL information as to the device's capabilities. You can generate this file using the print-camera-list utility shipped with libgphoto2:
host:~# /usr/lib/libgphoto2/print-camera-list hal-fdi > libgphoto2.fdi
The FC6 gphoto2 package stores this file as /usr/share/hal/fdi/information/20thirdparty/10-camera-libgphoto2.fdi. Its content looks like:
[rolf@localhost ~]$ urpmf usr/share/hal/fdi/information/20thirdparty/10-camera-libgphoto2.fdi
libgphoto-common:/usr/share/hal/fdi/information/20thirdparty/10-camera-libgphoto2.fdi
libgphoto-common:/usr/share/hal/fdi/information/20thirdparty/10-camera-libgphoto2.fdi
[rolf@localhost ~]$ ll /usr/share/hal/fdi/information/20thirdparty/10-camera-libgphoto2.fdi
ls: cannot access /usr/share/hal/fdi/information/20thirdparty/10-camera-libgphoto2.fdi: No such file or directory
[rolf@localhost ~]$ rpm -qa |grep photo
gvfs-gphoto2-1.6.7-2.mga1
lib64gphoto2-2.4.10.1-1.mga1
gphoto2-2.4.10-2.mga1
libgphoto-common-2.4.11-1
[root@localhost rolf]# lsusb|grep -i canon
Bus 001 Device 014: ID 04a9:3176 Canon, Inc. PowerShot A590
rolf wrote:Does anyone else use gtkam? I don't see it in repos.
Users browsing this forum: No registered users and 1 guest