Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

Can't read PTP camera

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
11 posts • Page 1 of 1
Author
Message
stdPikachu
Apprentice
Apprentice
User avatar
Posts: 254
Joined: Wed Mar 10, 2004 1:01 am
Location: UK
Contact:
Contact stdPikachu
Website

Can't read PTP camera

  • Quote

Post by stdPikachu » Mon Nov 27, 2006 9:58 pm

I've had this problem for a while now, but the gf is now getting annoyed...! What makes the problem even more perplexing is the fact that another computer with a near-identical config works perfectly.

The camera in question is a Canon Powershot A530 which only works in PTP mode (i.e no USB mass storage mode) with apps like gphoto2/digikam. When I try it on my main workstation, tybalt, every app fails to connect to and even detect the camera, even when run as root. On my mythtv box everything works as expected.

Both systems have the latest udev, libgphoto2 and digikam installed, all compiled against current libs. Plugging the camera in generates entries in dmesg;

Code: Select all

Nov 27 21:24:40 tybalt usb 2-1: new high speed USB device using ehci_hcd and address 12
Nov 27 21:24:40 tybalt usb 2-1: configuration #1 chosen from 1 choice
Nov 27 21:25:28 tybalt usb 2-1: USB disconnect, address 12
plus a KDE prompt on what I'd like to do with the hardware. Permissions aren't a problem - all device nodes are created with 664 permissions belonging to the usb group as per:

Code: Select all

SUBSYSTEM=="usb_device", PROGRAM="/bin/sh -c 'K=%k; K=$${K#usbdev}; printf bus/usb/%%03i/%%03i $${K%%%%.*} $${K#*.}'", NAME="%c", MODE="0664", GROUP="usb"
Yet even when I try with bare gphoto2 as root, nothing is returned:

Code: Select all

tybalt ~ # gphoto2 --auto-detect
Model                          Port
----------------------------------------------------------
Prospero, naturally, works fine even as a regular user:

Code: Select all

mythtv@prospero ~ $ gphoto2 --auto-detect
Model                          Port
----------------------------------------------------------
Canon PowerShot A530 (PTP mode) usb:
Canon PowerShot A530 (PTP mode) usb:001,005
In fact, tybalt returns a result so quickly that it's almost as if it's not even bothering to detect anything.

Does anyone have any idea what the problem is here? I've tried every possible option with tinkering with udev, hotplug and all the rest of them that I can think of, all to no avail. The most annoying thing of all is that, up until a few weeks ago, tybalt worked perfectly too, and all other USB devices (keyboard, mouse, bluetooth) work perfectly. Neither machine has any weird CFLAGS or anything like that. I've tried different versions of libusb, running gphoto2 through strace and couldn't find anything suspicious, but I'm no expert...

A hojillion thanks in advance to anyone who can give me the faintest idea of what's going on...!
Top
stdPikachu
Apprentice
Apprentice
User avatar
Posts: 254
Joined: Wed Mar 10, 2004 1:01 am
Location: UK
Contact:
Contact stdPikachu
Website

  • Quote

Post by stdPikachu » Tue Nov 28, 2006 2:39 pm

No takers?

In that case, does anyone have any pointers for debugging libgphoto/gphoto/digikam? I don't mind looking for bugs, as long as I have a reasonably good idea of what it is I'm meant to be looking for. Even if anyone has a good guide on getting a decent strace out of gphoto it'd come in very handy!
Top
wolfger
Apprentice
Apprentice
User avatar
Posts: 254
Joined: Mon Jun 09, 2003 1:13 am
Location: New Baltimore, MI
Contact:
Contact wolfger
Website

  • Quote

Post by wolfger » Fri Dec 01, 2006 9:38 am

I have a similar problem, but it's more annoying because the camera used to work and has stopped. Plugging in gives

Code: Select all

usb 1-6: new high speed USB device using ehci_hcd and address 10
usb 1-6: configuration #1 chosen from 1 choice
, and Digikam recognizes it as "Sony DSC-F707V (PTP mode)" (although it's really a DSC-S600), but when I try to get my picture, it pops up "failed to connect to camera". Again, this camera used to work with Digikam, but no longer does, so I'm tearing my hair out...
Nothing to see here. Move along.
Top
wolfger
Apprentice
Apprentice
User avatar
Posts: 254
Joined: Mon Jun 09, 2003 1:13 am
Location: New Baltimore, MI
Contact:
Contact wolfger
Website

  • Quote

Post by wolfger » Fri Dec 01, 2006 9:41 am

Ah, nevermind. A bit further down the search page, I found the thread from the last time I had this problem...
http://forums.gentoo.org/viewtopic-t-51 ... gikam.html
Nothing to see here. Move along.
Top
stdPikachu
Apprentice
Apprentice
User avatar
Posts: 254
Joined: Wed Mar 10, 2004 1:01 am
Location: UK
Contact:
Contact stdPikachu
Website

  • Quote

Post by stdPikachu » Sun Dec 03, 2006 3:12 pm

Aye, mine also used to work, but then suddenly stopped... my usb_devices udev rules is the same as yours it seems, and gphoto2 won't even connect as root...
Top
wolfger
Apprentice
Apprentice
User avatar
Posts: 254
Joined: Mon Jun 09, 2003 1:13 am
Location: New Baltimore, MI
Contact:
Contact wolfger
Website

  • Quote

Post by wolfger » Sun Dec 03, 2006 4:27 pm

Well, fixing my udev rules (again) fixed the problem for me (again). So you're saying something else is broke for you? Are you sure your usb cable is good (does it work on other computers)? Is your usb port good (does it work with other devices)?
Nothing to see here. Move along.
Top
stdPikachu
Apprentice
Apprentice
User avatar
Posts: 254
Joined: Wed Mar 10, 2004 1:01 am
Location: UK
Contact:
Contact stdPikachu
Website

  • Quote

Post by stdPikachu » Fri Dec 08, 2006 6:01 pm

Positive the hardware is good - as outlined, when running on prospero everything camera-related works fine (well, apart from KDE/Konqueror access), but on tybalt I get absolutely no response whatsoever. It's weird...!
Top
tom_bxl
n00b
n00b
User avatar
Posts: 47
Joined: Wed Sep 08, 2004 1:16 pm
Location: Brussels

  • Quote

Post by tom_bxl » Tue Dec 26, 2006 9:19 pm

Hi,

I had similar problems with my camera in PTP mode and with my scanner, both work OK on my laptop but both give errors on my desktop. I keep both PCs in sync using the same kernel and software versions as well as configuration.

I suspect it is related to libusb (see my previous post).

Lucky me, I can work it around by using my camera in mass storage mode on the desktop and it works perfectly, as other USB devices that do not use libusb but kernel modules (pda, webcam, usb drive, scanner without libusb). So I guess the hardware is OK.

No clue what's wrong :( so far, will keep my posts updated if I find anything.


You can use USB_DEBUG as follow to get more output when using gphoto2

Code: Select all

zorglub brol # USB_DEBUG=255 gphoto2 -P
Thomas
Top
tom_bxl
n00b
n00b
User avatar
Posts: 47
Joined: Wed Sep 08, 2004 1:16 pm
Location: Brussels

  • Quote

Post by tom_bxl » Sat Dec 30, 2006 8:15 am

Do you have the usb 2 module ehci_hcd loaded? Maybe give a try removing the module. This has "solved" all my usb problems. Both camera in PTP and scanner work just fine. The strange thing is that these errors occured even if these devices were pluged-in a usb 1 port ???!!!???
Top
stdPikachu
Apprentice
Apprentice
User avatar
Posts: 254
Joined: Wed Mar 10, 2004 1:01 am
Location: UK
Contact:
Contact stdPikachu
Website

  • Quote

Post by stdPikachu » Wed Jan 10, 2007 5:28 pm

Not tried that yet, will give it a whirl when I get back home.

Which USB controller is it you're using? Not that I have a great deal of USB devices, but I can see it being a PITA having to change modules all the time I want to get non-cruddy transfer speeds out of it... if this turns out to be the culprit, does that mean it's a bug in the kernel's USB stack...?
Top
tom_bxl
n00b
n00b
User avatar
Posts: 47
Joined: Wed Sep 08, 2004 1:16 pm
Location: Brussels

  • Quote

Post by tom_bxl » Wed Jan 10, 2007 7:41 pm

I have a VIA controller. I don't consider this as a solution, but I 'm trying to find out what could be the cause. The strande thing is that I only get this with the ehci module loaded with programs using libusb. When accessing the devices without libusb, everything runs smoothly. Libusb returns I/O errors with ehci loaded.
Top
Post Reply

11 posts • Page 1 of 1

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic