Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 09-25-2006, 11:05 PM   #1
Registered: Mar 2003
Location: USA
Distribution: Slackware-current
Posts: 155

Rep: Reputation: 30
Digital Camera Problems on Slackware-current

After a recent update to current where hotplug is not run when using a 2.6.x kernel in conjuntion with udev my digital camera stopped working in digikam. I've figured out so far that I can access the camera when logged in as root so the hardware is fine. Previously I had configured hotplug to take care of permissions so that any one in the "camera" group could access the camera. I know how to write udev rules but the problem with this is that my camera is not a USB mass storage device. It's a Canon Powershot A75 that is supported fully in libgphoto.

It seems that I can't fix this through udev. Has anyone else run into this and come up with a solution? I've checked gphoto documentation on their website and they talk extensively about getting regular users to access a camera with hotplug, but not how to deal with it with udev.

From the Aug 12 Section of the -current changelog:

a/hotplug-2004_09_23-noarch-9.tgz: Skip rc.hotplug if a new enough udev
is running on a 2.6 kernel. No wonder the boot time didn't seem faster! :-)

Currently running udev-097-i486-10 and kernel

Any input is greatly appreciated.


Old 09-26-2006, 11:32 AM   #2
Senior Member
Registered: Mar 2003
Location: Following the white rabbit
Distribution: Slackware64 14.2 Solus
Posts: 2,264

Rep: Reputation: 51
You'll have to write a udev rule for the camera and then it'll work fine. That's what I had to do. I'm not on my Linux box at the moment but a bit of googling should turn up the correct way to write the rule.
Old 09-26-2006, 04:11 PM   #3
Registered: Mar 2003
Location: USA
Distribution: Slackware-current
Posts: 155

Original Poster
Rep: Reputation: 30
That would work great if the camera was a usb mass storage type, however, it isn't. The access to it is provided by libgphoto2. No device ever gets created at all. This is where my hang up is. Does your camera show up as /dev/sdxx when you connect it?

I must be missing something simple.


Old 09-27-2006, 08:20 PM   #4
Registered: Dec 2005
Location: "The South Coast of Texas"
Distribution: Slackware64-current
Posts: 507
Blog Entries: 1

Rep: Reputation: Disabled
Here is how I got my Epson PhotoPC 850Z, which needs libgphoto2 & digikam, to work:
1) Connected my camera to a USB port & turned it on. Checked 'dmesg' to ensure it was detected, then ran 'lsusb' & noted the ID number.
2) Installed libgphoto2, ver 2.2.0. I used the Freerock Gnome package, because I happened to have it.
3) Checked all of the files in /usr/doc/libgphoto2-2.2.0. In the CHANGES file there is the line:
You should generate HAL FDI, linux-hotplug usb.usermap, and udev rules now via our program:
${libdir}/print-camera-list (hal-fdi|usb-usermap|udev-rules)
I did this as root, using the command:
/usr/lib/libgphoto2/print-camera-list udev-rules > camera.rules
This gave me a huge camera.rules file. I deleted all lines except the one that applied to my camera.
4) I moved the camera.rules file to the /etc/udev/rules.d directory & tried it with digikam, but it did not work for my user. However, it did work for root. Figuring that the problem was only permissions & knowing that the udev rule was running the "/etc/hotplug/usb/usbcam" script in an attempt to set permissions, I decided to modify the rule to do it all.
5) I modified my camera.rules from:
SYSFS{idVendor}=="XXXX", SYSFS{idProduct}=="YYYY", RUN+="/etc/hotplug/usb/usbcam"
SYSFS{idVendor}=="XXXX", SYSFS{idProduct}=="YYYY", MODE="660", GROUP="video", SYMLINK+="camera"
6) I'm not using the SYMLINK. I put it in so I could use it to determine what device was actually being created. There are also only two users on this machine, so I could probably get by with 'GROUP="users"', but the above rule is working with digikam, so I am not inclined to change it.
Old 09-27-2006, 09:04 PM   #5
Registered: Mar 2003
Location: USA
Distribution: Slackware-current
Posts: 155

Original Poster
Rep: Reputation: 30
This worked perfectly! Thanks.
Old 10-10-2006, 08:54 PM   #6
Registered: Aug 2004
Location: Australia
Distribution: Slackware 12.1
Posts: 235

Rep: Reputation: 30
Thanks, I found this searching for a solution to the same problem. Digikam can now see my camera, but does not start when hotplugging the camera.
Old 11-13-2006, 01:43 AM   #7
LQ Newbie
Registered: Nov 2002
Posts: 22

Rep: Reputation: 15
I finally got this working on Slackware 11.0 with my Kodak LS743 using the above except that I apparently had to use MODE="0660" instead of MODE="660". Digikam now seems to work fairly reliably.
Old 02-26-2007, 01:42 AM   #8
Registered: Feb 2003
Location: Texas
Distribution: slackware 11
Posts: 90

Rep: Reputation: 15
Thanks TSquaredF, that worked for me too.


camera, digital, udev

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 issue in Slackware 10.1 using the kernel avheretic Linux - Hardware 1 07-20-2006 12:34 AM
digital camera problems with 2.6.12 kernel zuessh Debian 5 09-27-2005 01:12 AM
Problems mounting Digital Camera jariep Linux - Hardware 2 12-08-2004 01:32 AM
Digital camera in Slackware 9.1 avoidmoney Linux - Hardware 15 11-14-2003 04:33 PM
connect digital camera to laptop with SlackWare 8 al_m Slackware 2 05-13-2002 09:30 AM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:43 AM.

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