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

Re: appareil numérique sous gnome



Le Fri  3/09/2004, Laurent Meurillon disait
> Bonjour,
> 
> J'ai installé ceci :
> apt-get install gphoto
> apt-get install gtkam
> 
> Je lance gtkam. Il détecte bien mon appareil ( MEDION 9700 )
> mais quand je valide ce choix, il m'indique qu'il n'arrive pas à 
> accéder à la liste des photos ???...
> 
> Pourtant sur ma mandrake tout aller bien.... Alors je suis
> perdu ???...

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



Reply to: