libgphoto2 icon indicating copy to clipboard operation
libgphoto2 copied to clipboard

Changing autopoweroff Setting on Canon 5DS Not Working

Open J0hannB opened this issue 7 years ago • 12 comments

I noticed that /main/settings/autopoweroff is returned when I call --list-config on my Canon 5DS, but whenever I call --set-config autopoweroff=0 I get

*** Error ***
The property 'Auto Power Off" / 0xd114 was not set (0x2019: PTP Device Busy)

I am able to set other properties, like reviewtime and exposure settings, just not autopoweroff

J0hannB avatar Feb 25 '18 00:02 J0hannB

can confirm this with a EOS 750D.

msmeissn avatar Feb 25 '18 09:02 msmeissn

same problem with EOS 1300D, 1200D, 100D, 200D ... 200D, however, return a slightly different error (PTP I/O instead of Device Busy): The property 'Auto Power Off' / 0xd114 was not set (0x02ff: PTP I/O Error).

We have always had this issue (since v 2.5.11 at least) and we were assuming that autopoweroff was a readonly parameter

saiiro avatar Apr 06 '18 21:04 saiiro

@J0hannB @saiiro I'm assuming this is a limitation of the Canon API? Or has anyone gotten it to work?

ryanstout avatar Jun 17 '18 22:06 ryanstout

I have not gotten it to work yet. It may be an api limitation

J0hannB avatar Jun 18 '18 14:06 J0hannB

I can confirm that this does not work on T7i, 80D, RP. So far I had to set auto power to off on the camera menu

samidalati avatar Feb 04 '20 00:02 samidalati

SDK documentation is also not very helpful, does not seem to mention it.

From libgphoto2 side, we are sending keepdeviceon commands to avoid powering it down.

msmeissn avatar Feb 09 '20 07:02 msmeissn

Can confirm that issue with a EOS 600D.

How to use "keepdeviceon" with cli when I use gphoto2 --stdout --capture-movie ? I can't find similar option for gphoto2 --help

eitijupaenoithoowohd avatar Dec 28 '20 09:12 eitijupaenoithoowohd

we actually call it in the libgphoto2 preview capture, which is used during --capture-movie

                    if (ptp_operation_issupported(params, PTP_OC_CANON_EOS_KeepDeviceOn)) C_PTP (ptp_canon_eos_keepdeviceon (params));

so there is no need to do anything there. Is the camera powering off during --capture-movie?

which libgphoto2 version is in use?

msmeissn avatar Dec 28 '20 16:12 msmeissn

which libgphoto2 version is in use?

libgphoto2 2.5.16 (default in Ubuntu 18.04)

Is the camera powering off during --capture-movie?

Yes it is. Within a range from one minute till three. In my case the issue has been fixed with the last firmware update. I had have 1.0.2 before update and 1.0.3 now. Now it works like a charm.

eitijupaenoithoowohd avatar Jan 07 '21 15:01 eitijupaenoithoowohd

I would say this was a camera side issue then -> closing.

thx for feedback!

msmeissn avatar Jan 07 '21 15:01 msmeissn

i can still reproduce autopoweroff not being able to set .. might not be possible from the pc

msmeissn avatar Jan 07 '21 16:01 msmeissn

I have the latest-1 version of the firmware for my 1100d. Nothing in the release notes persuades me that the behaviour of the camera would change if I updated it.

My main need for autopoweroff is ensure that the camera stays on for a Gphoto2 session, but I forget to reset it, causing my battery to drain...

Possible workaround: I have been looking at the EOS Utility manual for the 1100d.

Under Preferences, there is a check box labelled "Auto power off (except when using an ac power supply)"

and the text says

If you checkmark [Auto power off], the camera's auto power off function is enabled. If you remove the check mark, the auto power off function remains disabled, even if you set the auto power off function on the camera (only when the camera is connected to a computer.).

This sounds to me like the EOS utility is doing the equivalent of PTP_OC_CANON_EOS_KeepDeviceOn

Question: Is PTP_OC_CANON_EOS_KeepDeviceOn something that can only last for the duration of an executable image, or can it be made persistent until turned off?

If it can only last for the duration of an image, would it be possible to create a utility that calls it, then prompts for CLI commands that it executes, waiting for a command to terminate the image?

Thanks!

B.

bwims avatar Aug 18 '21 12:08 bwims