-
Notifications
You must be signed in to change notification settings - Fork 325
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v2.5.31 Sony (at least A7C aka ILCE-7C) not working anymore - cause: "has_sony_mode_300" #937
Comments
thanks for the report, merged your fix. |
Exactly the same issue is present with ILCE-7RM4 camera. Commenting out line 4689 in ptp.h fixes it. Logfile before commenting that line: |
I guess it will be the same with the other models. |
i had imported this from a forked tree, it seems either i missed pieces or did something else wrong. I will check and revert it probably when I find a bit time,. |
Same issue also with the ILCE-7RM5 (A7RV) Until now, and based on comments, it seems that A7C, A7RIV and A7RV are concerned and should be removed from that list. The list may still increase in the future |
Same issue with A7M4 (ILCE-7M4). EDIT: commenting the line 4694 fix the issue and the camera start working correctly, but I cannot use the manual focus |
Right, multiple reports about this. Any side effects besides the manual focus @Ryther ? |
Hi @knro, in gphoto2, not one I'm aware of; capturing and downloading, the preview and video capturing are all apparently working correctly. |
something seems off with this line. I disabled the 2 cameras more |
Has there been any update on this? Does libgphoto2 work with a7c & a7cii? |
Yes, they work fine as long as you deactivate "mode_300" for them. |
i have commented out 7C and 7CII was never listed there from mode 300. just probably not yet in a release. |
I found this thread while doing a Google search. I have got a Sony Alpha 7C II. On the user level, I see an "unknown error 150" when I try to import media from the camera via MTP. (Different programs: KDE dolphin, Gwenview, ...). Under the hood, all those programs use libgphoto2, version 2.5.31. There are other reports that Sony Alpha 7C II is supposed to work fine, however those reports refer to older versions of libgphoto2. I could not downgrade to test those versions, because 2.5.31 is the only version included in the package manager of my Linux distro. I am not sure if my problem is related to the issue at hand. If not, I can open another issue. |
Apologies for asking here: what’s the best approach to currenty get libgphoto2 working for an affected Sony alpha model?
Thank you for any input (and obviously for the fantastic work on gphoto/libgphoto)! |
@msmeissn |
Has this been fixed in 2.5.31.1? |
Latest GIT is still broken for many Sony users even with the commented lines. |
i would try commenting it out also for 7SM3. "many" ... can you specify the models? |
please check the fix i did |
Thanks, I have access to the camera again to test. But I wasn't sure what's the proper way to capture a 30 seconds bulb exposure from gphoto2? I tried to use this:
But I get
|
Hello @knro,
Where
When I've tried different values in |
Thank you, that worked and turns out sometimes the camera just take a very long time to download so I adjusted the timeout in the INDI driver. |
I noticed that with v2.5.31 the lib does not work with my Sony Alpha 7C (ILCE-7C) anymore.
The connection to the camera itself is okay (e.g. gets serial number), but that's it.
After looking through the changes from the previous release, v2.5.30, I noticed there was a new sub added to ptp.h, "has_sony_mode_300" (line 4686), which returns 1 for the camera model ILCE-7C.
In ptp.c line 4512 the return value of has_sony_mode_300 decides, if PTP_CNT_INIT (in usb.c) is called with parameter value 0x12c or 0x0c8.
Until v2.5.30 this was always 0x0c8 (commented in 2.5.31 with "older mode (200)")
So looks like some older camera models (at least ILCE-7C) were given a new init parameter that's invalid.
If I comment out line 4691, so that has_sony_mode_300 returns 0 and parameter value 0x0c8 is used with PTP_CNT_INIT like it did prior to v2.5.31, everything works again!
if (!strcmp(params->deviceinfo.Model, "ILCE-7C")) return 1;
gphoto2 --summary
compiled with NOT working libgphoto2 v2.5.31:
compiled with working libgphoto2 v2.5.30 or v2.5.31 with the change I mentioned above:
The text was updated successfully, but these errors were encountered: