View previous topic :: View next topic |
Author |
Message |
jesso Guru
Joined: 27 Oct 2004 Posts: 397 Location: Canada
|
Posted: Tue Jul 12, 2005 11:51 am Post subject: gphoto2, permissions for usb |
|
|
I have been using gphoto2 to get pictures from my digital camera ever since I got it 6 months ago. As of yesterday, I cannot access it.
gphoto2 can detect what camera it is, but I cannot connect to download the pictures. I can do it as root but not my user id.
Don'tknow what happened. It worked all along.
What should I check for? |
|
Back to top |
|
|
Vitaliy Guru
Joined: 06 Apr 2004 Posts: 451 Location: Brooklyn, NY
|
Posted: Tue Jul 12, 2005 11:59 am Post subject: |
|
|
Is your user still in usb group? Also what is the exact message it gives you. |
|
Back to top |
|
|
jesso Guru
Joined: 27 Oct 2004 Posts: 397 Location: Canada
|
Posted: Tue Jul 12, 2005 12:24 pm Post subject: |
|
|
I wasn't in the usb group before, but I did add that yesterday when I was trying to get it to work.
groups=5(tty),10(wheel),11(floppy),16(cron),18(audio),19(cdrom),80(cdrw),85(usb),100(users),250(portage),500(burning),501(tomcat)
Code: |
gphoto2 --get-all-files > _foo 2>&1
*** Error ***
An error occurred in the io-library ('Could not claim the USB device'): Could not claim interface 0 (Operation not perm
itted). Make sure no other program or kernel module (such as sdc2xx, stv680, spca50x) is using the device and you have
read/write access to the device.
*** Error (-53: 'Could not claim the USB device') ***
For debugging messages, please use the --debug option.
Debugging messages may help finding a solution to your problem.
If you intend to send any error or debug messages to the gphoto
developer mailing list <gphoto-devel@lists.sourceforge.net>, please run
gphoto2 as follows:
env LANG=C gphoto2 --debug --get-all-files
Please make sure there is sufficient quoting around the arguments.
|
|
|
Back to top |
|
|
jesso Guru
Joined: 27 Oct 2004 Posts: 397 Location: Canada
|
Posted: Tue Jul 12, 2005 1:12 pm Post subject: |
|
|
I'll try the "camera" group in /usr/share/doc/libgphoto2-2.1.5/linux-hotplug/usbcam.group |
|
Back to top |
|
|
Vitaliy Guru
Joined: 06 Apr 2004 Posts: 451 Location: Brooklyn, NY
|
Posted: Tue Jul 12, 2005 2:36 pm Post subject: |
|
|
Ah, I believe this might be it.
https://bugs.gentoo.org/show_bug.cgi?id=84628
evoweiss wrote: | Hi all,
Well, I finally got around to trying the solution that I thought would work and, lo and behold, it did work.
So, here is the quick and easy way to do it:
First, copy the version of the usbcam script that is based on a camera group into the /etc/hotplug/usb directory. Gphoto should provide this:
Code: |
cp /usr/share/doc/libgphoto2-2.1.5/linux-hotplug/usbcam.group /etc/hotplug/usb/usbcam
|
Next, create the camera group:
Finally, use whatever text editor you like to add your user to the camera group in /etc/group.
After that log out and log back in. The camera should be up and working again for the users in the camera group.
If anybody wants me to post the actual script, just let me know, but, as I said, you should have it if you emerged gphoto2.
Best,
Alex |
|
|
Back to top |
|
|
xsl n00b
Joined: 22 Nov 2002 Posts: 21 Location: Lisbon, Portugal
|
Posted: Fri Dec 02, 2005 9:39 am Post subject: |
|
|
add yourself to plugdev group _________________ .-
NunoSeita (x l e p dot o r g) <n u n o @ x l e p dot o r g>
A28F 4034 A970 1E60 365C B3D6 1067 043F D693 E7D0 |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|