Skip to content

Commit 07a2176

Browse files
committed
keep canon eos remotemode=1 on exit, to keep the display on
gphoto/gphoto2#465
1 parent a829e50 commit 07a2176

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

camlibs/ptp2/config.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,8 @@ camera_unprepare_canon_eos_capture(Camera *camera, GPContext *context) {
582582

583583
/* Drain the rest set of the event data */
584584
C_PTP (ptp_check_eos_events (params));
585-
C_PTP (ptp_canon_eos_setremotemode(params, 0));
585+
/* remotemode 1 should stay, as it keeps the display on for some reason */
586+
/*C_PTP (ptp_canon_eos_setremotemode(params, 0));*/
586587
C_PTP (ptp_canon_eos_seteventmode(params, 0));
587588
params->eos_captureenabled = 0;
588589
return GP_OK;

camlibs/ptp2/library.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3100,6 +3100,8 @@ camera_exit (Camera *camera, GPContext *context)
31003100
if ((exit_gp_result = camera_unprepare_capture (camera, context)) < GP_OK) /* note: gets gphoto resultcodes, not ptp retcodes */
31013101
goto exitfailed;
31023102
}
3103+
/* this switches the display back on ... */
3104+
C_PTP (ptp_canon_eos_setremotemode(params, 1));
31033105
break;
31043106
case PTP_VENDOR_NIKON:
31053107
if (ptp_operation_issupported(params, PTP_OC_NIKON_EndLiveView))

0 commit comments

Comments
 (0)