From: Marcus M. <ma...@je...> - 2008-08-27 19:18:49
|
On Wed, Aug 27, 2008 at 08:29:13AM -0500, Chris Bagwell wrote: > Marcus Meissner wrote: > > How is it detected by gphoto2 --auto-detect ? > > > > > I've never traced --auto-detect yet. I've been using --summary mostly. > > Model Port > ---------------------------------------------------------- > MTP Device usb: > MTP Device usb:001,033 > > The second line is the correct busname,devname. Is the first line > printed from detect_by_class? No, these are the result of the autodetection in libgphoto2_port/usb/libusb.c. > >> My devices abilities are being set based on detecting it as generic MTP > >> Device which is bad because there are better more specific entries that > >> should be used. > >> > > > > A second probe is run for some reason. Might be the way you called gphoto2. > > > I ran with --summary. I noticed even more probes when it starts to do > real work but I ignored those. I could tell it was from a second call > to a probe function. But I can't explain right now why I get two "MTP > Device" probes before it tries to probe my exact USB ID. > > So what USB id does your device have? > > > Bus 001 Device 033: ID 18f6:0110 > > Above is from lsusb. Notice no device description. Is that an issue? > Also, I've installed under /usr/local/gphoto2 and so probably bypassing > any udev type stuff. > > > Is your device listed in "gphoto2 --list-cameras"? > > > "MTP Device" (TESTING) > "Sirius Stiletto 2" > > ptp2/music-players.h also lists 18f6:0110 as well. > > Does libgphoto2 probe in the order of this output? That would explain > the issue if so. MTP Device probing is very different from the USB id probing, and I actually thought it would find Sirius Stiletto 2 first then. At least it does this for my Creative Zen Microphoto and iRiver, but both are alphabetically before MTP Device. :) Anyway, in the end it should find the device just fine. Now, for the problem itself: libgphoto2-2_4/libgphoto2//camlibs/ptp2/music-players.h has: { "Sirius", 0x18f6, "Stiletto 2", 0x0110, DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST }, You should replace this flag by 0 to get the proplist call I think. Ciao, Marcus |