×

INDI Library v2.0.7 is Released (01 Apr 2024)

Bi-monthly release with minor bug fixes and improvements

Sony Alpha 5100 viewfinder widget error

  • Posts: 2
  • Thank you received: 1
Hi,

I have a problem with my Sony Alpha 5100.

My setup:

Raspberry Pi 4B with indiserver 1.81 on debian.
Nikon D5300
ZWO ASI120MC
Astrometry
GPSD
Laptop to connect over wifi to the pi's AP.
Everything works fine with this setup, so I think I know what I do here ;).

Today I received a new Camera to play with.
It is the Sony Alpha 5100 in control usb mode.
Changed the driver from nikon to sony DSLR / gphoto ccd -> the 5100 connects correctly.
I can capture photos this is not the problem.
But I can not go into liveview with either Sony DSLR or gphoto driver.
I get the following error:


<code>[INFO] Starting the video stream with target exposure 0.100000 s (Max theoritical FPS 10)
[WARNING] View finder widget is not found. Cannot force camera mirror to go up!
[ERROR] Failed to start streaming.</code>

I think EKOS thinks that the 5100 has a viewfinder and a mirror but this camera does not has one.
I tried to find a setting in the INDI control widget like "disable viewfinder" but there is nothing.

The libgphoto2 library says the 5100 is compatible in control mode with liveview:
Sony Alpha-A5100 (Control) Image Capture, Trigger Capture, Liveview, Configuration

I found some variables on the gphoto code like "gphoto_set_view_finder" on:
github.com/indilib/indi-3rdparty/tree/master/indi-gphoto

Maybe the code needs to be customized for the 5100?
Or can I set "gphoto_set_view_finder" to false somewhere to get around that error?

Thanks in advance!
Last edit: 4 years 6 months ago by Daniel.
4 years 6 months ago #44818

Please Log in or Create an account to join the conversation.

  • Posts: 2
  • Thank you received: 1
I fixed it on my own, man I'm so happy :)
If anyone facing the same problem, here is the fix:

Go to the sourcecode of libindi, my path would be:

/home/pi/indi-3rdparty/indi-gphoto

Open the gphoto_driver.cpp
Modify the following lines:


to:


After that recompile the code:
cd /home/pi/indi-build/3rdparty-Drivers
sudo -H -u pi cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug -DWITH_FXLOAD=1 /home/pi/indi-3rdparty
sudo -H -u pi make -j $(expr $(nproc) + 2)
sudo make install

Reboot your PI and enjoy Lieview with the Sony Alpha.



Edit:

I think it also should be possible to leave the Olympus lines untouched and just add new code for Sony but this is untested:

The following user(s) said Thank You: Jasem Mutlaq
Last edit: 4 years 6 months ago by Daniel.
4 years 6 months ago #44834

Please Log in or Create an account to join the conversation.

  • Posts: 8
  • Thank you received: 0
Hello all

a late Discovery of this message.
actually this happened either for the sony but also for the oly mirrorless ( i have contributed to the small test code line on olympus brand you modified, , 8 monthes ago). This "repetition" of a flaw/bug is triggering a flag in my mind. Indeed can we assess that this is something missing/wrong in the gphoto lib? actually i think that this missing widget is also impacting other tools like entangle and even the concurrent of indi (indigo) either by preventing a correct function or behaving very slowly until timeout.
I wrote, 8 monthes ago an issue in the gphoto GitHub. i will had a comment that this occured also with the sony mirrorless..
github.com/gphoto/libgphoto2/issues/441


Regards
Joël
Last edit: 4 years 6 days ago by joel collet.
4 years 6 days ago #52237

Please Log in or Create an account to join the conversation.

  • Posts: 48
  • Thank you received: 0
Following. Same problem with my Sony a5000 and my a7 used in Stellarmate on Pi4b INDI. No preview nor video. Taking subs works fine.
3 years 5 months ago #63331

Please Log in or Create an account to join the conversation.

Time to create page: 0.497 seconds