PDA

View Full Version : USB permissions problem - gphoto


jgribbin
2007-11-24, 06:03 PM CST
I had originally installed Fedora 7 on this laptop and gPhoto worked fine.

I was forced to re-install about 1 1/2 weeks ago when I accidentally fdisked the wrong drive. Now when I connect my camera, gPhoto complains about permission to access the USB. Same laptop, install DVD, and camera.

An error occurred in the io-library ('Could not claim the USB device'): Could not claim interface 0 (Operation not permitted). 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.

Both installs were just basic installs w/ the Gnome Desktop. gPhoto was installed by default. The first time around, it just worked.

I do have all updates. The previous install had all updates too at the time I broke it. Is it possible an update changed something?

Anybody got any tips I can try?

tmick
2007-11-24, 06:29 PM CST
can you post the output of dmesg?

Wayne
2007-11-24, 06:35 PM CST
This is old news (since Fedora Core 5) and a quick search of the forum would have turned up several threads, including this one that was started not too long ago:

http://www.fedoraforum.org/forum/showthread.php?t=170607

Wayne

bradchaus
2007-11-24, 07:45 PM CST
http://www.fedoraforum.org/forum/showthread.php?t=170607&highlight=ptp

jgribbin
2007-11-25, 03:11 AM CST
Here's that dmesg output

usb 2-1: new full speed USB device using uhci_hcd and address 2
usb 2-1: configuration #1 chosen from 1 choice
usb 2-1: USB disconnect, address 2
usb 2-1: new full speed USB device using uhci_hcd and address 3
usb 2-1: configuration #1 chosen from 1 choice
[jimg@74-61-123-22 ~]$

BTW - I did do a search of the forum before asking. I saw that thread about modifying 50-udev. I also found the same information other places doing a Google search on the problem. That, and other stuff I've found mostly seems to be for FC 5 & 6. Fedora 7 already has that in 50-udev..

I did find something on changing the permitions part of that mentioned udev addition from 0644 to 0666 to give access to all users. Didn't help. Obviously, it all works when I launch gPhoto as root.

That said, none of this would explain why it worked in my original install without jumping through those hoops and on a basic re-install, it doesn't work. Something has changed, I don't know what.

My first assuption is that I changed something I shouldn't have, but what I don't know. I've tried to keep this box pretty conservative as it is my intention to use it for work. Can't have stuff dying every time I turn around. :)

Wayne
2007-11-25, 03:26 AM CST
No, it's not something you have done, it happened after an update. The same thing happened in FC5, FC6 and F7 and now F8 :( Changing the rules seems to fix it for most people. The file the rules are in has changed in F8 as I noted in one post in the link I gave.

Wayne

jgribbin
2007-11-25, 10:12 AM CST
Thanks, I'll take another look at that thread you guys posted the link to. What I have looks basically the same, but I didn't do a close examination to see if it's identical.

I'll report back the results.

jgribbin
2007-11-25, 04:54 PM CST
I took a closer look at the code. I missed changing one of the mode=0644 to 0666 when I tried this before.

I had found essentially the same fix posted elsewhere before I found the one you had. That one didn't have the 0644s nicely highlighted in red and I only spotted and changed the second instance.

When I originally found the one you posted on the other thread, I didn't look closely enough and discounted it as having already been tried.

Oops.

Thanks again :D

BTW - If everyone knows about this, why hasn't Fedora put out a fix for this yet?

tmick
2007-11-25, 09:02 PM CST
If it acts up again try runningmodprobe -r uhci_hcd and post those results, it appears as though it's the same issue I am having with a USB thumbdrive.