LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 10-15-2006, 04:41 PM   #1
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 15.0 (multilib)
Posts: 1,350

Rep: Reputation: 75
Hotplug, digikam, usbcam, Slackware 11.0 problem


I have had digikam working fine in slackware 10.2 using 2.4 and my compiled 2.6 kernel.

Now using 11.0 with the 2.6-smp kernel I can only see my digital camera with root.

With the usbcam script in /etc/hotplug/usb/ there is supposed to be a file created in /proc/bus/usb/001/ with the right permissions. The file appears as owner root, group wheel which is not wha I need.

I might be doing something wrong but is it possible that there is a hotplug error with this kernel?

Alan
 
Old 10-16-2006, 04:08 AM   #2
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
Look in /etc/rc.d/rc.udev where usbfs is mounted and change the devgid to something besides 10.

Code:
# Mount usbfs:
if ! grep -wq usbfs /proc/mounts ; then
   if [ -d /proc/bus/usb ]; then
       mount usbfs -t usbfs /proc/bus/usb -o devgid=10,devmode=0664
   fi
fi
This is what mine looks like. Also you could just add your user to the wheel group.

Last edited by /bin/bash; 10-16-2006 at 04:09 AM.
 
Old 10-16-2006, 04:18 AM   #3
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 15.0 (multilib)
Posts: 1,350

Original Poster
Rep: Reputation: 75
I'll give it a try

Searching the forum has thrown up this post

http://www.linuxquestions.org/questi...digikam+usbcam

rignes suggests that due to an update to current where hotplug is not run when using a 2.6.x kernel in conjuntion with udev his digital camera stopped working in digikam. This might make sense. Perhaps hotplug is not running so the usbcam script is not run and permissions are set. TAquaredF had a solution which I shall try tonight.
 
Old 10-16-2006, 05:55 AM   #4
raoul
LQ Newbie
 
Registered: Dec 2003
Location: France
Distribution: Slackware 11.0
Posts: 8

Rep: Reputation: 0
Udev sets the permissions. Create /etc/udev/rules.d/libgphoto2.rules file :

Code:
# Canon PowerShot A95 (normal mode)
SYSFS{idVendor}=="04a9", SYSFS{idProduct}=="30bb", MODE="0660", GROUP="users"
idVendor and idProduct for you cam can be found in usbcam.usermap.
 
Old 10-16-2006, 02:03 PM   #5
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 15.0 (multilib)
Posts: 1,350

Original Poster
Rep: Reputation: 75
Thanks all.
I tried /usr/lib/libgphoto2/print-camera-list udev-rules > camera.rules and put that in rc.udev
The file in /proc/bus/usb was created with the right group but it still did not work.
I tried Rauol's advise and added
SYSFS{idVendor}=="04a9", SYSFS{idProduct}=="3058", GROUP="users"
to 10-udev.rules and it's working!
 
Old 10-17-2006, 04:30 AM   #6
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 15.0 (multilib)
Posts: 1,350

Original Poster
Rep: Reputation: 75
Raoul,

What would the purpose of MODE="0660" be?

Thanks
 
Old 10-17-2006, 05:39 AM   #7
raoul
LQ Newbie
 
Registered: Dec 2003
Location: France
Distribution: Slackware 11.0
Posts: 8

Rep: Reputation: 0
Its like chmod : read and write for owner and group, nothing for others. So the cam will belong to root and be in the users group.
 
  


Reply



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
Digikam problem in 2006 apostate Mandriva 2 11-21-2005 12:57 PM
Problem running digikam adityavpratap Slackware 3 10-30-2005 06:24 AM
Digikam 0.7.2 problem EllieJ Linux - Software 4 08-19-2005 08:30 AM
X problem when installing Digikam SuperRunt Linux - Software 3 06-13-2005 12:43 AM
digikam problem dukeinlondon Linux - Software 2 10-15-2004 10:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:21 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration