Re: Live view on Canon EOS M50

Antonio Cuni <[email protected]> Tue, 19 May 2020 15:53:13 +0200
Newsgroups gmane.comp.multimedia.gphoto.user
Message-ID <CAHPg78x29iTfuG5eh9KJezDhBz8RGmini+HtRUf-3mmhf1DQyg@mail.gmail.com>
On Tue, May 19, 2020 at 8:22 AM Marcus Meissner <[email protected]> wrote:

> It seems to have massive delays during USB device access of some USB
> devices
> on the system.
>
> Is something like USBguard running or are there hardware troubles?
>
> Are Hubs or other devices involved that auto-powerdown?
>
> Can you go through your plugged in USB devices / hubs, unplug them
> temporary,
> test gphoto2, and pinpoint the ones causing delays?


So, I solved the issue!
The problem was that the first time I built libgphoto2, it compiled without
libusb-1.0 support. The when I ran "make install", it copied "usb.so" and "
usb.la" into /usr/loca/lib/libgphoto2_port/0.12.0/.
Later, I installed libusb1-dev and recompiled libgphoto2, but usd.so and
usb.la were still present in /usr/local/lib.
I don't know the exact details of what happened then, but looking at strace
I could see that it was trying to load BOTH usb.so and usb1.so, with
noticeable delays in the strace calls. Anyway, removing usb.so and usb.la
solved the issue, and now my gphoto is as fast as before :)

ciao,
Antonio

_______________________________________________
Gphoto-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gphoto-user