Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
05-22-2006, 11:33 AM
|
#1
|
Member
Registered: Jun 2004
Location: Leiden, The Netherlands
Distribution: Slackware 10.2, SmoothWall Express v3, Kubuntu 7.04, Mac OS X.4
Posts: 69
Rep:
|
USB permission problem / Gphoto2
Hi all,
I'm having some trouble trying to access my USB camera (as a regular user). My camera used to work fine in the past, but it doesn't anymore.
I upgraded Gphoto2 to the latest version. After some fiddling around I discovered the nature of the problem; namely USB permissions.
In /proc/bus/usb/xxx/ the permissions for the file that represents my camera are set to root.
I followed all the directions for setting USB permissions on the gphoto2 website, and tried multiple versions of the usbcam script, none worked for me. Now when I set the permissions manually (using chown) all works fine!!
I've read somewhere that there should be a /proc/bus/usb/drivers file present on your system. I don't have such a file, so perhaps this is the cause of the problem.
Does any of you know a way to overcome this problem, and to have hotplug set the permissions automatically when I plug in my camera?
|
|
|
05-22-2006, 01:44 PM
|
#2
|
Senior Member
Registered: Mar 2002
Location: Oklahoma
Posts: 1,154
Rep:
|
/proc/bus/usb/drivers has three directories named 001 002 003 and file named devices that is empty and a file named drivers that is empty, this is on a stock slackware-10.2 with hotplug enabled, i set up gphoto2 the same way you did, works for me...
instead of using gtkam i just use a terminal with the following command:
gphoto2 --get-all-files
i have made a text file with the same thing in it and made it exectuable so basically any user can click on a text file named camera and it will extract all my photos from my digital camera to my /home/*user directory
i am sure those empty files are probably written to when hotplug or any usb device is currently active (but i have not looked while using any USB perifrials)
|
|
|
05-22-2006, 05:34 PM
|
#3
|
Member
Registered: Jun 2004
Location: Leiden, The Netherlands
Distribution: Slackware 10.2, SmoothWall Express v3, Kubuntu 7.04, Mac OS X.4
Posts: 69
Original Poster
Rep:
|
Thanx for your answer Okie!
However this does not solve my problem. when I type
gphoto2 -P or gphoto2 --get-all-files
at the command-line as a mortal user I get an error message because gphoto can not connect to my camera. The only way to solve this is to either use gphoto2 only as root. This may not be such a save way of doing so. Or, as the second option, I have to manually adjust permissions every time I plug in my camera. Works fine, however this is not a convenient nor a elegant way.
|
|
|
06-01-2006, 11:47 AM
|
#4
|
Member
Registered: Jun 2004
Location: Leiden, The Netherlands
Distribution: Slackware 10.2, SmoothWall Express v3, Kubuntu 7.04, Mac OS X.4
Posts: 69
Original Poster
Rep:
|
Thanks to Patrick
It seems that my troubles are over now. Patrick Volkerding released an 'updated' version of hotplug. This caused the script provided by GPhoto2 to work again and set the permissions correctly.
|
|
|
All times are GMT -5. The time now is 04:02 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|