LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 05-08-2005, 06:35 PM   #1
Creak
Member
 
Registered: Feb 2004
Distribution: debian
Posts: 187

Rep: Reputation: 30
gtkam - no camera detected


I've discovered gtkam on ubuntu, and i wanted to use it on debian, but it seems that the usb system has some problem with the camera... Here is the thread url:
http://www.linuxquestions.org/questi...hreadid=321362

--------------------------

And here is a copy of it if you don't want to follow the link

I'm under debian testing, and i've tried to plug my camera on the usb port... i works fine on ubuntu, but on debian i got some problem...

it recognizes the camera:
Quote:
creak@slibar:~$ lsusb
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 010: ID 040a:0568 Kodak Co. LS443
Bus 001 Device 008: ID 046d:c00b Logitech, Inc. MouseMan Wheel
Bus 001 Device 001: ID 0000:0000
creak@slibar:~$
But just for 1 second and then nothing:
Quote:
creak@slibar:~$ lsusb
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 008: ID 046d:c00b Logitech, Inc. MouseMan Wheel
Bus 001 Device 001: ID 0000:0000
creak@slibar:~$
So when i launch gtkam and try to auto-detect it, it just says "no camera detected."

Any idea ?
 
Old 05-09-2005, 03:29 AM   #2
damienduff
Member
 
Registered: Feb 2004
Distribution: Etch
Posts: 117

Rep: Reputation: 15
dude, i personally haf trouble getting gphoto2 to run as a normal account user in Sarge.
i did a search on google and i realised that i m not the only one.
if gphoto2 cant work, dun expect gtkam to work. In the end, i download my photos as Root.

login as root in konsole and see whether debian recognises ur camera.

gphoto2 --auto-detect

if it does, then you can get the photos by

gphoto2 -P

the disadvantage is you haf to chown, chgrp and chmod 755 your photos later.
 
Old 05-09-2005, 04:12 AM   #3
Creak
Member
 
Registered: Feb 2004
Distribution: debian
Posts: 187

Original Poster
Rep: Reputation: 30
Arf, you're right... even gtkam works when you're root (except for some segfault), which is normal because it uses the same library than gphoto...

It seems that the problem comes from the fact that debian says that the usb device should be used by the root only... It has it's advantages and inconvienients... it's safer, but damn not user-friendly!

Well, finally it works! That what's important!

Thanks damienduff!
 
Old 05-09-2005, 06:21 AM   #4
makuyl
Senior Member
 
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 53
"4.3.2. Setting up linux-hotplug" in http://gphoto.sourceforge.net/doc/ma...sions-usb.html covers setting up user permissions.

A shorter version is here: http://nift.freeshell.org/camedia.html

Even though it says to use this in fstab: usbdevfs /proc/bus/usb usbdevfs defaults 0 0
I use this line: usbfs /proc/bus/usb usbfs defaults,devuid=0,devgid=106,devmode=0666 0 0
106 is my group for usb.
 
Old 05-09-2005, 03:31 PM   #5
yotamk
Member
 
Registered: Nov 2004
Location: ~
Distribution: Debian
Posts: 145

Rep: Reputation: 15
Add yourself to the camera group:
"adduser username camera" (as root).
 
Old 05-10-2005, 12:59 AM   #6
Creak
Member
 
Registered: Feb 2004
Distribution: debian
Posts: 187

Original Poster
Rep: Reputation: 30
makuyl: it seems that usbfs is already mounted (try a mount -l). at least in the recent sarge release... but there is no /etc/hotplug/usb/usbcam.usermap file... i don't see why it is necessary...

yotamk: indeed, when you add yourself to the camera group, the cam devices doesn't disapear from the lsusb command

I just got one last problem... now i can use gphoto2 whithout any problem as a normal user, but when i plug the camera, i have the popup that ask me what to do after having plugged the camera... i push the button "get the images" (or something like that, it's in french here ), but gtkam doesn't launch... i don't understand why..

By the way, thanks for the tips
 
Old 05-10-2005, 01:49 AM   #7
makuyl
Senior Member
 
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 53
I suppose the usermap isn't necessary if the camera supports usb-storage. For canons it's needed and using it would allow to plug in several cameras without storage support. If you just use the one that works, you can probably skip the usermap.
BTW, the second howto said: # gphoto2 --print-usb-usermap >> /etc/hotplug/usb.usermap
So the /etc/hotplug/usb/usbcam.usermap isn't necessary either. You have some choises here and several ways work.

The devmode in fstab is to give userrights so you don't have to use it as root, but like I said, the howto also it isn't necessary.

BTW again, I changed the script to set group to users instead of camera.
 
Old 05-23-2005, 09:01 AM   #8
kadejo
LQ Newbie
 
Registered: May 2005
Posts: 3

Rep: Reputation: 0
Hi!

I've explained it at

http://www.linuxquestions.org/questi...79#post1653579

Best regards, k!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Digital camera connection crashes gtkam and digikam: ALSA error messages given MamaWombat Linux - Hardware 5 09-16-2005 08:08 PM
debian - gtkam - no camera detected Creak Linux - Software 2 05-10-2005 01:02 AM
gtKam - Failed to initialize camera jkw119 Linux - Hardware 3 02-11-2005 02:45 PM
gtkam/Gphoto2 and Kodak ESCX4300 camera acengleb Linux - Hardware 1 05-04-2004 08:06 PM
gtkam could not initialize camera krissly1 Linux - Hardware 2 02-29-2004 11:26 AM


All times are GMT -5. The time now is 05:44 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration