gphoto / libgphoto2

The libgphoto2 camera access and control library.
GNU Lesser General Public License v2.1
1.02k stars 323 forks source link

Changing autopoweroff Setting on Canon 5DS Not Working #242

Open J0hannB opened 6 years ago

J0hannB commented 6 years ago

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

msmeissn commented 6 years ago

can confirm this with a EOS 750D.

saiiro commented 6 years ago

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

ryanstout commented 6 years ago

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

J0hannB commented 6 years ago

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

samidalati commented 4 years ago

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

msmeissn commented 4 years ago

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.

eitijupaenoithoowohd commented 3 years ago

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

msmeissn commented 3 years ago

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?

eitijupaenoithoowohd commented 3 years ago

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.

msmeissn commented 3 years ago

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

thx for feedback!

msmeissn commented 3 years ago

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

bwims commented 3 years ago

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.