Le 05.01.2004 17:04, Sylvain LE GALL a �crit�:
On Mon, Jan 05, 2004 at 02:20:07PM +0100, Jean-Luc Coulon (f5ibh) wrote:Bonjour,J'ai un appareil photo num�rique que je connecte � l'ordinateur par un portUSB. J'utilise gphoto2 pour transf�rer les images de l'appareil vers l'ordinateur. Si j'utilise root, pas probl�me, tout se passe bien. Si j'utiliseun user "normal", alors, j'ai un probl�me de droits sur /proc/ bus/usb. J'ai fait diverses tentatives dont celle conseill�e dans le README de libgphoto262 : j'ai cr�� un goupe usb et je me suis fait membre de ce groupe et j'ai ajout� la ligne suivante � mon /etc/fstab : none /proc/bus/usb usbfs uid=0,devgid=1000,devmode=0660 0 0 1000 correspond � l'id du groupe usbMalgr� �a, je n'arrive toujours pas � charger mes fichiers en provenance del'appareil. J'utilise usbmgr pour le hotplug de l'usb.Si, � la main, je change les droits (chmod o+w) pour le device en question,je peux alors y acc�der normalement.Bonjour, Votre probl�me me rappelle le mien ;-> Donc dans un �lan de solidarit� j'ai fait les manip qui vont bien pour que ca marche... ;-) Bon j'arr�te, j'ai juste suivi les exemples donn�e dans /usr/share/doc/libgphoto2-2... Mais de la unstable ;-) Donc pour r�soudre tout ca : 1) su - 2) /usr/lib/libgphoto2-2/print-usb-usermap > /etc/hotplug/usb/usbcamera.usermap 3) copier le script en attachement dans /etc/hotplug/usb/usbcamera 4) chmod a+x /etc/hotplug/usb/usbcamera 5) addgroup camera 6) adduser moi-meme camera 7) ... plugger l'appareil photo 8) ls -alR /proc/bus/usb pour etre sure qu'il y a un noeud avec les droit camera 9) gphoto2 --port usb: -L Pour moi ca marche, mais il faut utiliser hotplug. Pour usbmngr je ne connais pas la manip a faire. Bonne chance Sylvain LE GALL ps : il ne faut absolument pas avoir dc2xx comme module, ca marche tr�s mal et ca va emp�cher le script pr�c�dent de tourner #!/bin/bash # $Id: usbcam.group,v 1.3 2003/09/16 16:42:44 hun Exp $ # # /etc/hotplug/usb/usbcam # # Sets up newly plugged in USB camera so that only members of the # group GROUP=camera # can access it from user space. (Replace camera with the name of the # group you want to have access to the cameras.) # # Note that for this script to work, you'll need all of the following: # a) a line in the file /etc/hotplug/usermap that corresponds to the # camera you are using. You can get the correct lines for all cameras # supported by libgphoto2 by running "print-usb-usermap". # b) a group "camera" where all users allowed access to the # camera are listed # c) a Linux kernel supporting hotplug and usbdevfs # d) the hotplug package (http://linux-hotplug.sourceforge.net/) # # In the usermap file, the first field "usb module" should be named # "usbcam" like this script. # if [ "${ACTION}" = "add" ] && [ -f "${DEVICE}" ] then chmod o-rwx "${DEVICE}" chgrp "${GROUP}" "${DEVICE}" chmod g+rw "${DEVICE}" fi
J'ai vir� usbmgr et j'ai install� hotplug avec la proc�dure ci-dessus (merci sylvain).
Apr�s lancement du bazar, j'obtiens, miracle : [EMAIL PROTECTED] ~ $ ls -lR /proc/bus/usb/ /proc/bus/usb/: total 0 dr-xr-xr-x 1 root root 0 2004-01-05 18:25 001 -r--r--r-- 1 root root 0 2004-01-05 18:25 devices -r--r--r-- 1 root root 0 2004-01-05 18:25 drivers /proc/bus/usb/001: total 0 -rw-rw---- 1 root usb 18 2004-01-05 18:25 001 -rw-rw---- 1 root usb 18 2004-01-05 18:25 002 [EMAIL PROTECTED] ~ $Et c'est juste � ce moment que l'appareil num�rique en question tombe en panne de batteries ... ;-)
Autre petit probl�me au lancement, j'ai les messages suivants : [EMAIL PROTECTED] /home/jean-luc # /etc/init.d/hotplug startStarting hotplug subsystem: input** can't synthesize input events - /proc/ bus/input/devices missing
pci** can't synthesize pci hotplug events
Je n'ai pas de /proc/bus/input ... Je n'en ai jamais eu ..
--
- Jean-Luc
pgpDR79bqTOAK.pgp
Description: PGP signature

