LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-01-2005, 11:34 PM   #1
The_Outlander
Member
 
Registered: Aug 2004
Location: Australia
Distribution: Slackware 12.1
Posts: 235

Rep: Reputation: 30
Digikam does not start after connecting camera


Hi, I have been using digikam for some time and until now have had no problems setting it up to work as user.

KDE info centre, USB, shows canon S50. Camera is recognized by digikam under the "Settings menu, Configure Digikam, Cameras" and works correctly as root.

Recently, after upgrading to Slackware Current and KDE 3.4.1, digikam (0.72) will not start after hotplugging my camera. If I start digikam as user from the desktop and then select camera from the Camera menu - digikam error is as follows.

"Failed to connect to camera. Please make sure its connected properly and turned on. Would you like to try again"?

relevant dmesg output is as follows: after plugging and unplugging several times.

usb 4-2: new full speed USB device using uhci_hcd and address 2
usb 4-2: USB disconnect, address 2
usb 4-2: new full speed USB device using uhci_hcd and address 3
usb 4-2: USB disconnect, address 3
usb 4-2: new full speed USB device using uhci_hcd and address 4

/var/log/messages is as follows.

Jul 2 08:29:59 mx [3] usbcam (0.3.2): Creating lockfile /tmp/usbcam.lock.
Jul 2 08:29:59 mx [3] usbcam (0.3.2): USB device /proc/bus/usb/004/005 found trying to start /etc/hotplug/usb/digikam-hotplug.
Jul 2 08:29:59 mx [2] usbcam (0.3.2): There seems to be no desktop available, script will not be started!
Jul 2 08:29:59 mx [3] usbcam (0.3.2): ps -ef |grep kdeinit..kdesktop: !
Jul 2 08:29:59 mx [3] usbcam (0.3.2): Started, action: add
Jul 2 08:29:59 mx [2] usbcam (0.3.2): /tmp/usbcam.lock detected, checking age of file!
Jul 2 08:29:59 mx [2] usbcam (0.3.2): /tmp/usbcam.lock is 0 seconds old; exiting.

Any ideas as to the problem. Is it a desktop permissions problem. I am sure that the installation of digikam is correct i.e. /opt/kde and I am sure that the usbcam and digikam hotplug scripts are also correctly set up. As mentioned previously I have been using digikam without a problem for about 12 months and therefore am familiar with the setup requirements.

I have played around with all the hotplug and desktop settings without success and cannot find a solution to this problem.

Much appreciate any advice or assistance.

Chesh.

Last edited by The_Outlander; 07-02-2005 at 08:34 AM.
 
Old 07-02-2005, 04:44 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Quote:
Code:
Jul 2 08:29:59 mx [2] usbcam (0.3.2): /tmp/usbcam.lock detected, checking age of file!
Jul 2 08:29:59 mx [2] usbcam (0.3.2): /tmp/usbcam.lock is 0 seconds old; exiting.
Did you try to delete the lock?

Looks like your machine went down once, or you killed
X while the cam was active to me.


Cheers,
Tink
 
Old 07-03-2005, 12:51 AM   #3
The_Outlander
Member
 
Registered: Aug 2004
Location: Australia
Distribution: Slackware 12.1
Posts: 235

Original Poster
Rep: Reputation: 30
I deleted the lock file just now, but it is regenerated with each usbcam event.

No change to the machine that I observed.

Thanks for your reply.

I will keep looking for clues.

Chesh.
 
Old 07-05-2005, 02:33 AM   #4
The_Outlander
Member
 
Registered: Aug 2004
Location: Australia
Distribution: Slackware 12.1
Posts: 235

Original Poster
Rep: Reputation: 30
All fixed. Downgraded to Slack 10.1 KDE 3.3.2 and deleted old user account then set up new user.

Worked immediately.

Thanks.
 
Old 09-05-2005, 09:36 PM   #5
slightcrazed
Member
 
Registered: May 2003
Location: Lisbon Falls, Maine
Distribution: RH 8.0, 9.0, FC2 - 4, Slack 9.0 - 10.2, Knoppix 3.4 - 4.0, LFS,
Posts: 789

Rep: Reputation: 30
I realize that this is an old thread - I am posting here because I had the same exact problem, but managed to find a better solution. I did a google search for 'usbcam no desktop available' (no desktop available being one of the lines in /var/log/messages) and ran into this post. It was one of very few with the same problem.

My specs:

Slackware 10.1 w/ KDE 3.4.2 on kernel 2.6.12.1. Note that I did not have this problem with earlier versions of kde.

There is a line in the usbcam script (which I got from the digikam web site, it should be in /etc/hotplug/usb/) that looks like (or similar to) this:

USER=`ps -ef |grep "kdeinit: kdesktop" |grep -v grep |awk '{print $1}'`

This line is there to check which user is currently logged in and running KDE and the USER variable is used later throughout the script. This line fails with KDE 3.4.2 and needs to be changed in order to output correctly. Changing it to:

USER=`ps -ef | grep kdeinit | grep kdesktop | awk '{print $1}'`

works correctly for me.

I hope someone finds this useful. Again, sorry for resurecting an old thread.

slight
 
Old 09-23-2005, 07:58 AM   #6
The_Outlander
Member
 
Registered: Aug 2004
Location: Australia
Distribution: Slackware 12.1
Posts: 235

Original Poster
Rep: Reputation: 30
Thanks, sorry I didn't reply sooner. Just upgraded to slack 10.2. Digikam is working fine after following your instructions. Greatly appreciated and fewer headaches.

Chesh.
 
  


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 connecting as root/not connecting as regular user jayhel Slackware 5 09-29-2005 05:57 PM
Digital camera connection crashes gtkam and digikam: ALSA error messages given MamaWombat Linux - Hardware 5 09-16-2005 08:08 PM
Digikam won't connect to usb mass storage camera can564 Linux - Software 2 03-10-2005 10:31 AM
DigiKam doesnt recognize my camera stewill Linspire/Freespire 7 01-22-2005 02:02 PM
digikam problem [not camera related] chrisbkillian Linux - Software 1 09-28-2004 12:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:18 PM.

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