gphoto2 icon indicating copy to clipboard operation
gphoto2 copied to clipboard

focus on Nikon Z7 not working

Open gosi-at opened this issue 3 years ago • 7 comments

Describe the bug

gphoto2 is able to capture a image from the Nikon Z 7 but the image is not in focus.

Name the camera gphoto2 --auto-detect Model Port

Nikon Z7 usb:002,003

libgphoto2 and gphoto2 version gphoto2 2.5.23 gcc, popt(m), exif, cdk, aa, jpeg, readline libgphoto2 2.5.25 standard camlibs (SKIPPING lumix), gcc, ltdl, EXIF libgphoto2_port 0.12.0 iolibs: disk ptpip serial usb1 usbdiskdirect usbscsi, gcc, ltdl, EXIF, USB, serial without locking

To Reproduce Steps to reproduce the behavior:

Autofocus seems enabled on camera: gphoto2 --get-config autofocus Label: Autofocus
Readonly: 0 Type: RADIO Current: On Choice: 0 On Choice: 1 Off END

but running "/usr/bin/gphoto2 --force-overwrite --capture-image-and-download" takes the picture without focus.

debug file is attached. debug.log.zip

Thanks for looking into it.

gosi-at avatar Jul 01 '21 11:07 gosi-at

Same issue here with a Nikon z6. Even when --set-config-value=autofocus=On is set

foosinn avatar Feb 09 '22 08:02 foosinn

can you check gphoto2 --get-config focusmode this is the one what determines if autofocus is executed

msmeissn avatar Feb 10 '22 15:02 msmeissn

Label: Focus Mode
Readonly: 1
Type: RADIO
Current: AF-C
Choice: 0 Manual
Choice: 1 AF-S
Choice: 2 AF-C
Choice: 3 Unknown value 8013
END

After switching the Z6 to video mode it seems to work. New output:

Label: Focus Mode
Readonly: 1
Type: RADIO
Current: Unknown value 8013
Choice: 0 Manual
Choice: 1 AF-S
Choice: 2 AF-C
Choice: 3 Unknown value 8013
END

Choice: 3 Unknown value 8013 should be AF-F

foosinn avatar Feb 22 '22 09:02 foosinn

Update: Switching to Video mode seems to work for me

foosinn avatar Apr 01 '22 07:04 foosinn

I am facing the same issue at the moment. I have to use AF-S. And it is not working. Was there any further investigation done on this issue?

gitphoex avatar Feb 21 '24 11:02 gitphoex

Double check that your in video mode and AFS-A (Auto) or Continues

foosinn avatar Feb 23 '24 13:02 foosinn

Unfortunately, I will have to use AF-S. I can't use video mode. So as a workaround, I tried using --set-config autofocusdrive=1 and gp_camera_set_single_config from the library. this appears to be working for me. Tested with Nicon Z6ii.

gitphoex avatar Feb 23 '24 14:02 gitphoex