darktable icon indicating copy to clipboard operation
darktable copied to clipboard

Sigma FPL Tethered Shooting

Open Damani2 opened this issue 2 years ago • 23 comments

Describe the bug

image

I’m having a hard time getting darktable to connect to my sigma FPL. I looked at the gphotolib compatibility and it said I should be able to connect. I used Zadig to change the USB driver and that lets me see the camera and mount it in darktable. But when I tried to adjust controls nothing works. Is there a way to update gphotolib separately or should I have the latest with darktable 4.4.2?

Steps to reproduce

  1. Connect Sigma FPL camera to computer using a USB cable.
  2. Launch Darktable and wait for it to detect and mount your camera.
  3. Once the camera is mounted, attempt to adjust camera controls or perform any other camera-related operations within Darktable.
  4. Fail

Expected behavior

let me control the camera and take a picture

Logfile | Screenshot | Screencast

No response

Commit

No response

Where did you install darktable from?

darktable.org

darktable version

4.4.2

What OS are you using?

Windows

What is the version of your OS?

windows 11 pro

Describe your system?

No response

Are you using OpenCL GPU in darktable?

I dont know

If yes, what is the GPU card and driver?

No response

Please provide additional context if applicable. You can attach files too, but might need to rename to .txt or .zip

No response

Damani2 avatar Oct 25 '23 22:10 Damani2

Under windows, you might need to follow this instructions. I've never tried this, so I can't help.

https://www.darktable.org/about/faq/#faq-tethering

gi-man avatar Oct 25 '23 22:10 gi-man

Please contribute a raw sample to https://raw.pixls.us/ nonetheless.

kmilos avatar Oct 26 '23 07:10 kmilos

Also, it looks like this was added to libgphoto2 only in the latest 2.5.31 version that was released a month ago. dt 4.4.2 was built before that, and ships 2.5.30.

kmilos avatar Oct 26 '23 08:10 kmilos

Is there a way for me to update libgphoto2 independent of Darktable?

On Thu, Oct 26, 2023 at 4:01 AM Miloš Komarčević @.***> wrote:

Also, it looks like this was added to libgphoto2 only in the latest 2.5.31 version that was released a month ago https://github.com/gphoto/libgphoto2/blob/master/NEWS.

— Reply to this email directly, view it on GitHub https://github.com/darktable-org/darktable/issues/15490#issuecomment-1780608879, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATF74NURDISMTTDWRMZXGFTYBIKFNAVCNFSM6AAAAAA6QDBHEWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOBQGYYDQOBXHE . You are receiving this because you authored the thread.Message ID: @.***>

Damani2 avatar Oct 26 '23 10:10 Damani2

libgphoto2 is not part of darktable. you would have to determine what windows package includes libgphoto2 and upgrade that.

ptilopteri avatar Oct 26 '23 13:10 ptilopteri

perhaps: http://www.gphoto.org/

according to google

ptilopteri avatar Oct 26 '23 13:10 ptilopteri

@ptilopteri There is a known (i.e. more suitable) source for a newer libgphoto2 package for Windows...

But I would prefer a contribution of that sample first.

kmilos avatar Oct 26 '23 13:10 kmilos

@ptilopteri There is a known (i.e. more suitable) source for a newer libgphoto2 package for Windows...

But I would prefer a contribution of that sample first.

I've uploaded a sample image today. Hopefully it's satisfactory. The Sigma FPL writes .DNG raw files. I truthfully still don't quite understand the utility of reviewing this sample data. I found information about updating libgphoto2 via MSYS2 which I'm attempting now.

Damani2 avatar Oct 27 '23 20:10 Damani2

Thank you very much for the sample @LebedevRI

One thing to keep in mind - it might not be enough to just update the package through MSYS2 pacman. If you installed darktable in C:\Program Files\darktable, you'll need to manually replace libgphoto2-6.dll and libgphoto2_port-12.dll in C:\Program Files\darktable\bin, and also replace (or add under new version subdirectories) all the libghoto2 and libgphoto2_port related *.dll in C:\Program Files\darktable\lib. Then also double check the CAMLIBS and IOLIBS environment variables once you do that to make sure they're pointing to the desired directories.

kmilos avatar Oct 27 '23 21:10 kmilos

Thank you for this. I tried this but for some reason I can't get it to work unfortunately. I can run gphoto from msys2 but I can't get the updated libraries to work in Darktable. I supposed I have to just wait for the proper updated Darktable release.

Thank you very much for the sample @LebedevRI

One thing to keep in mind - it might not be enough to just update the package through MSYS2 pacman. If you installed darktable in C:\Program Files\darktable, you'll need to manually replace libgphoto2-6.dll and libgphoto2_port-12.dll in C:\Program Files\darktable\bin, and also replace (or add under new version subdirectories) all the libghoto2 and libgphoto2_port related *.dll in C:\Program Files\darktable\lib. Then also double check the CAMLIBS and IOLIBS environment variables once you do that to make sure they're pointing to the desired directories.

Damani2 avatar Oct 27 '23 23:10 Damani2

Ok apologies as I'm new to github but I have another discovery of note. The Sigma FPL comes with it's own SDK and that works specifically with the MTP USB driver. I'd used Zadig to switch to a more generic driver that Darktable liked before I messed with the libraries and .DLL files. Now it doesn't recognize the camera at all. Looking forward to seeing the FPL support added to Darktable.

Damani2 avatar Oct 28 '23 00:10 Damani2

Which msys2 package did you actually try to use, as there are multiple flavours? Darktable builds w/ ucrt64...

@wpferguson Can we test and bump libgphoto2 for the next release please?

kmilos avatar Oct 28 '23 08:10 kmilos

Can we test and bump libgphoto2 for the next release please?

I was just about to ask if we needed to. I'll bump starting with this weekly

wpferguson avatar Oct 28 '23 17:10 wpferguson

Which msys2 package did you actually try to use, as there are multiple flavours? Darktable builds w/ ucrt64...

@wpferguson Can we test and bump libgphoto2 for the next release please?

I think I used Ming? Sorry not very experienced with the coding/compiling. With this being tested in a nightly build could it make it into the upcoming December release?

Damani2 avatar Oct 29 '23 15:10 Damani2

With this being tested in a nightly build could it make it into the upcoming December release?

That's the plan indeed.

kmilos avatar Oct 29 '23 17:10 kmilos

@kmilos libgphoto2 is already 2.5.31-2

wpferguson avatar Oct 29 '23 17:10 wpferguson

libgphoto2 is already 2.5.31-2

For your weekly builds? Great.

It wasn't the case for 4.4.2, and the nightly build environment is still 3 months old AFAIK...

kmilos avatar Oct 29 '23 18:10 kmilos

libgphoto2 is already 2.5.31-2

For your weekly builds? Great.

It wasn't the case for 4.4.2,

Sure, because libgphoto2 2.5.31 was released on September 2nd.

and the nightly build environment is still 3 months old AFAIK...

No, in the nightly build environment, the libgphoto2 package is also version 2.5.31-2.

victoryforce avatar Oct 29 '23 19:10 victoryforce

in the nightly build environment, the libgphoto2 package is also version 2.5.31-2

Ok, the msys2 installer got updated on Oct 26th (and took some hours/days to propagate to GitHub Actions), just after the issue was opened and I last checked the package in the nightly build.

So both the nightly and weekly builds now provide a way to test this.

kmilos avatar Oct 29 '23 20:10 kmilos

I still haven't been able to get this to work tethered. I don't think gphoto is the issue. What should I try next?

Damani2 avatar Dec 12 '23 21:12 Damani2

ok I have an update. I actually got this to work on the latest nightly build. The issue I have now is that I can't manually control settings.

Damani2 avatar Dec 15 '23 13:12 Damani2

Sorry I also don't have all settings. I can trigger a capture, but the camera doesn't respect shutter and aperture settings I set. And iso didn't appear at all. Does this sound like a permissions issue?

Damani2 avatar Dec 15 '23 13:12 Damani2

I actually got this to work on the latest nightly build.

Glad to hear.

This is now the time to take this discussion back over to https://discuss.pixls.us/tag/darktable (or gphoto2 support channels). This place is for actual bugs and development, not end user support. AFAICT, there is still no sure sign of a bug w/ dt...

kmilos avatar Dec 15 '23 14:12 kmilos

This issue has been marked as stale due to inactivity for the last 60 days. It will be automatically closed in 300 days if no update occurs. Please check if the master branch has fixed it and report again or close the issue.

github-actions[bot] avatar Feb 14 '24 00:02 github-actions[bot]