improving digital camera detection
Sjoerd Simons
sjoerd at luon.net
Mon Jan 17 04:09:27 PST 2005
On Mon, Jan 17, 2005 at 01:40:40AM -0500, Hubert Figuiere wrote:
> On Sat, 2005-01-15 at 17:24 +0100, Pozsar Balazs wrote:
> > On Sat, Jan 15, 2005 at 11:08:04AM -0500, Hubert Figuiere wrote:
> > > libgphoto2 could provide this list as part of the package. We'd just
> > > need some code to extract all the information, but I'm sure we can do it
> > > as we already provide the list for hotplug.
> > >
> > > That might include USB Mass Storage if I'm done with that patch I
> > > haven't touched for monthes.
> >
> > Sorry, I do not understand you. How do you mean to extract the info from
> > libgphoto?
>
> Writing a small program that will produce the file. We already have that
> for hotplug user-map.
>
> > I think hal should not depend on libgphoto.
>
> I never said it should. Just that we (libgphoto2) could provide an
> automatically generated file.
>
> > And anyway, what
> > all hal needs is a list of usb ids of digital cameras.
>
> That is exactly what I meant to do.
One problem with the recognition of ptp camera's is that some vendors ship both
PtP and Mass storage ones with the same usb ids (wonderfull isn't it).. In
debian hal-hotplug-map has a ugly hack to work around this (by checking if
there is a mass storage endpoint).. I don't know how we can work around that
problem when having a list, any good ideas ? :)
Also it would be nice to have the properties on the usb endpoint instead of the
usb device itself, but that's just a detail..
Sjoerd
--
We warn the reader in advance that the proof presented here depends on a
clever but highly unmotivated trick.
-- Howard Anton, "Elementary Linear Algebra"
_______________________________________________
hal mailing list
hal at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/hal
More information about the Hal
mailing list