LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 01-04-2007, 04:28 PM   #1
vasudevadas
Member
 
Registered: Jul 2003
Location: Bedford, UK
Distribution: Slackware 11.0, LFS 6.1
Posts: 519

Rep: Reputation: 30
Cannot access digital camera as a regular user


Hi all,

I have been struggling to get my Canon IXUS 40 to work with my machine after I upgraded to Slackware 11.

I eventually figured out that Hotplug didn't work in the 2.6.18 kernel, and that Udev was the way to do it.

I followed some instructions in this thread:
http://www.linuxquestions.org/questi...post2440669://

and now I am at the stage where gphoto2 sees my camera when I am root:

Code:
root@radhagovinda:/home/rich# gphoto2 --auto-detect
Model                          Port
----------------------------------------------------------
Canon Digital IXUS 40 (PTP mode) usb:
but not when I am a regular user:

Code:
rich@radhagovinda:~$ gphoto2 --auto-detect
Model                          Port
----------------------------------------------------------
rich@radhagovinda:~$
I have tried both the following in my /etc/udev/rules.d/camera.rules file:

Code:
SYSFS{idVendor}=="04a9", SYSFS{idProduct}=="30bf", MODE="0660", GROUP="users", R
UN+="/etc/hotplug/usb/usbcam"
and:

Code:
SYSFS{idVendor}=="04a9", SYSFS{idProduct}=="30bf", MODE="0660", GROUP="users",
SYMLINK+="camera"
but neither work. Can anyone suggest what might be wrong?
 
Old 01-04-2007, 06:34 PM   #2
TSquaredF
Member
 
Registered: Dec 2005
Location: "The South Coast of Texas"
Distribution: Slackware64-current
Posts: 490
Blog Entries: 1

Rep: Reputation: 55
I have a couple of questions. First, is user "rich" a member of group "users"? Probably that's not worth asking, but in my case, the problems wind up being obvious. Secondly, when you are "rich", does the device get created when you plug in your camera? Using the second rule, check the symlink, both as root & rich. That's the only reason I put the symlink in my rule, so I could find the device, as I had no idea what its name was.
Regards,
Bill
 
Old 01-05-2007, 04:13 PM   #3
vasudevadas
Member
 
Registered: Jul 2003
Location: Bedford, UK
Distribution: Slackware 11.0, LFS 6.1
Posts: 519

Original Poster
Rep: Reputation: 30
Okay. Now it works. The only thing I have done since I posted the thread is turned my computer off, gone to bed, been to work and back and turned the machine back on again.

I don't understand. Sorry about that.

BTW, I figured a way of finding out what the device names are. Do:

Code:
#ls -l /dev >dev1
Then plug in your device, and do:

Code:
#ls -l /dev >dev2
#diff dev1 dev2
 
Old 01-05-2007, 05:14 PM   #4
TSquaredF
Member
 
Registered: Dec 2005
Location: "The South Coast of Texas"
Distribution: Slackware64-current
Posts: 490
Blog Entries: 1

Rep: Reputation: 55
Good. I'm glad it works. I've been having trouble with my camera cable & have moved to a card reader for moving my pictures. Of course, you can delete the symlink from your rule, if you want to.
Regards,
Bill
 
  


Reply

Tags
camera, digital, hotplug, root, udev, usb, user


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
Access to digital camera only as root BobNutfield Linux - Software 1 04-19-2006 09:57 PM
Digital Camera Access acdc Linux - Hardware 3 01-15-2006 09:01 AM
digital camera - USB access of SD card??? pbhj Slackware 4 12-23-2003 02:43 AM
Digital camera access haobaba1 Linux - General 2 08-04-2003 09:07 PM
Digital camera access problem ojoj Linux - Hardware 2 07-13-2003 05:18 AM


All times are GMT -5. The time now is 09:28 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