[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: appareil numérique sous gnome



> Il faut aller bidouiller dans hotplug pour qu'il te donne les droits
> de lecture sur le device quand tu branche ton appareil photo.
> 
> Voilà ce que j'utilise (merci à J. Blache qui m'a aidé à afaire le truc).
> 
> /etc/hotplug/apn.usermap:
> 
> # Fichier de E. David
> #
> # Sample entry (replace 0xVVVV and 0xPPPP with vendor ID and product ID respectively) :
> apn-mode      0x0003      0x04a9   0x3055    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x00000000
> #
> # usb module         match_flags idVendor idProduct bcdDevice_lo bcdDevice_hi bDeviceClass bDeviceSubClass bDeviceProtocol bInterfaceClass bInterfaceSubClass bInterfaceProtocol driver_info
> #
> 
> et
> /etc/hotplug/usb/apn-mode
> 
> #!/bin/sh
> 
> #
> # This script changes the permissions and ownership of a USB device under
> # /proc/bus/usb to grant access to this device to users in the video group.
> #
> # Ownership is set to root:video, permissions are set to 0660.
> #
> # Arguments :
> # -----------
> # ACTION=[add|remove]
> # DEVICE=/proc/bus/usb/BBB/DDD
> # TYPE=usb
> 
> if [ "$ACTION" = "add" -a "$TYPE" = "usb" ]; then
>   chown root:video "$DEVICE"
>   chmod 0660 "$DEVICE"
> fi
> 
> 
> Ça donne accès à l'appareil photo pour tous les utilisateurs du groupe
> video.
> 
> le vendor IP/Product Id correspond à un canon powershot G2.
> un lsusb te donnera les valeurs pour ton appareil photo.
> 
> 
> -- 
> Erwan

Merci pour votre aide mais ce fichier n'apparaît pas dans ce répertoire ?
je suis sur une debian Sarge. J'ai testé GTKam sous root et là il
fonctionne mais Il ne télécharge pas les photos. ( Il commence,
s'arrête et ferme l'application )



Reply to: