LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 04-14-2009, 10:20 AM   #1
justwantin
Member
 
Registered: Aug 2003
Location: Melbourne, Australia
Distribution: Slackware, Slackwarearm
Posts: 878

Rep: Reputation: 120Reputation: 120
ptp camera at /system/media/camera


In 12.2 my Canon powershot A400 was automatically mounted at /system/media/camera when it was plugged into a usb slot.

This is not the case in /current. Hal does not pick up the camera when it is plugged in, however, group memberships are the same, usb recognition is the same and the udev rules for libgphoto have not changed.

What else should I check?
 
Old 04-14-2009, 12:34 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
If your camera is a ptp camera, then is doesn't get mounted. A protocol followed to communicate with the camera over the usb cable. There isn't an actual filesystem.

The Canon A400 is listed in my /usr/share/hal/fdi/information/20thirdparty/10-camera-libgphoto2.fdi file. This file is (for my distro) supplied by the libgphoto2-2.4.1.2-21.1. Do you have an earlier version of libgphoto2?
 
Old 04-14-2009, 03:02 PM   #3
justwantin
Member
 
Registered: Aug 2003
Location: Melbourne, Australia
Distribution: Slackware, Slackwarearm
Posts: 878

Original Poster
Rep: Reputation: 120Reputation: 120
I'm not quite sure what you are getting at. The camera has a mem card in it which has a vfat file system on it. I can put the mem card in a card reader and access it and could do the same with the camera on Slack-12.2

On Slack-12.2, when the camera was turned on and connected by cable the kde thingo popped up and asked if I wanted to open it, open in digikam or do nothing. If I just opened it konqueror came up, with the card/camera mounted as system/media/camera. I could navigate the contents as in any other storage media, i.e. mem stick, data cd or dvd.

On an earlier /current this did not work but I was just visiting, I now have /current set up as main workstation and would like to have this same functionality instead of using digikam.

Slackware-current at this time comes with libgphoto2-2.4.4.
 
Old 04-15-2009, 02:26 AM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Your post said that the camera was ptp. PTP is a protocol that is used to communicate with it. If you insert a memstick, it may or not be connected similarily to a usb memcard reader. You may need to access it indirectly through the ptp protocol, which is what gphoto or digikam can use if you configure it for your camera.

Sometimes the ptp interface will enable accessing the onboard flash but the memstick can be accessed like a normal usb flash drive. I have an mtp player that is like this.

Run "sudo tail -f /var/log/messages" and see which messages are printed out as you insert the camera usb cable.
 
Old 04-15-2009, 03:50 AM   #5
justwantin
Member
 
Registered: Aug 2003
Location: Melbourne, Australia
Distribution: Slackware, Slackwarearm
Posts: 878

Original Poster
Rep: Reputation: 120Reputation: 120
OK when I insert usb connection cord from camera running slackware-12.2 I get this:
Quote:
Apr 15 18:21:35 rick kernel: usb 2-10: new full speed USB device using ohci_hcd and address 2
Apr 15 18:21:35 rick kernel: usb 2-10: configuration #1 chosen from 1 choice
Apr 15 18:21:35 rick kernel: usb 2-10: New USB device found, idVendor=04a9, idProduct=30b7
Apr 15 18:21:35 rick kernel: usb 2-10: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Apr 15 18:21:35 rick kernel: usb 2-10: Product: Canon Digital Camera
Apr 15 18:21:35 rick kernel: usb 2-10: Manufacturer: Canon Inc.
A window named KDE Daemon then pops up saying "USB Imaging Interface" and I am given three choices: 1) Open in new window, 2) Digikam detect and download and 3) Do nothing. If I open in a new window I can access the vfat files system's directories and files.


When I do the same thing with the same camera on an install of slackware-current as of 07/04/09 I get:
Quote:
Apr 15 18:30:11 rick kernel: usb 2-10: new full speed USB device using ohci_hcd and address 2
Apr 15 18:30:11 rick kernel: usb 2-10: New USB device found, idVendor=04a9, idProduct=30b7
Apr 15 18:30:11 rick kernel: usb 2-10: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Apr 15 18:30:11 rick kernel: usb 2-10: Product: Canon Digital Camera
Apr 15 18:30:11 rick kernel: usb 2-10: Manufacturer: Canon Inc.
Apr 15 18:30:11 rick kernel: usb 2-10: configuration #1 chosen from 1 choice
There is no recognition of the device in the kde4 device thingo that replaced the kde3.5 kde daemon pop up.

The only thing to do to see if libgphoto is behaving badly now is to d'load and compile digikam which I was hoping to avoid having to use.

Last edited by justwantin; 04-15-2009 at 03:51 AM.
 
Old 04-16-2009, 03:41 PM   #6
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
If you don't see a kernel message indicating a /dev/sd## partition discovered, then there is no device to mount.

In kde3.5 was there a fuse filesystem installed and did konqueror have a kio slave for it, similar to the fish:/ protocol in konqueror? Maybe what you were seeing was a pseudo filesystem, similar to mtpfs or sshfs.

In the background, kde & hal communicate via the dbus daemon. Do normal pendrives automount?
If so, then the kde daemon that listens to messages is running. There are differences between kde3.5 & kde4. I use amarok 1.4 from kde3.5 instead of amarok 2.0 because the new version just doesn't work well for podcasts. A protocol may not be installed.

If you can't automount a pendrive, then check if the hald, udevd & dbusd daemons are running. If you needed to boot with the noacpi option, then these services can't run.
 
Old 04-16-2009, 04:06 PM   #7
justwantin
Member
 
Registered: Aug 2003
Location: Melbourne, Australia
Distribution: Slackware, Slackwarearm
Posts: 878

Original Poster
Rep: Reputation: 120Reputation: 120
Thanks very much for the info. I'm off to work now but will check with a pendrive and a card reader first chance I get.
 
Old 04-16-2009, 04:12 PM   #8
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,166

Rep: Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338
Justwantin,

Can the USB mode on your camera be changed between PC and PTP (PictBridge)?

I've found that KDE 3.5.10, in Slackware 12.2, can see my camera either as PC ("mass storage device") or PTP.

I've not used current, but have used KDE 4.2.x in Kubuntu and if the camera was in the PTP mode, digikam had to be installed to download the images to the computer.
If the camera was in PC mode it was seen as a "mass storage device" and you could use Dolphin to download, as you described, the photos to any directory on the hard drive.
Just FYI.

Last edited by cwizardone; 04-16-2009 at 04:15 PM. Reason: Typo.
 
Old 04-16-2009, 06:36 PM   #9
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Also check if you have the camera:/ protocol in konqueror. If you do, and the pictures show up, then you can simply split the pane and drag & drop pictures.
 
  


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
PTP camera + UDEV = hell ninja master Linux - Software 2 01-25-2009 07:44 PM
controlling ptp camera graphically saf4 Linux - Software 2 12-27-2007 01:59 PM
Sony PTP Camera permission problems araldit Linux - Hardware 0 05-05-2005 01:10 PM
How do I safely disconnect USB camera operating in PTP mode? TakeAwayDave Linux - Hardware 4 07-22-2004 10:28 AM
Digital camera - PTP or USB (or both) kabads Linux - Hardware 2 03-01-2004 05:55 AM

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

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