Page 1 of 1

Disable 'standby mode' during background copy

Posted: 2010-05-28, 10:51 UTC
by DarkRuleR
Hi,

I was copying some large files last night (with TC 7.50a) using the background copy function.
(from usb hdd to internal hdd)
My computer running Windows 7 64 bit went into 'standby' aka 'sleep' mode during the copy.
With the negative effect that the background copy stopped.

I like it more if TC would prevents Windows 7 from entering 'standby"mode during the background copy???

Greetz,

DR...

Posted: 2010-05-28, 15:44 UTC
by ghisler(Author)
TC 7.55 already does that now when a copy dialog is up. Can you try it, please? Release candidate 2 is already very stable, more than 7.50a final.

Posted: 2010-05-30, 18:36 UTC
by DarkRuleR
During the weekend I have succesfully executed several large copy actions similar to the actions described in my original post.
During the copy actions my computer does not enter the 'standby mode'!
:)

The computer screen does go blank!
I think this is logical and I like that.

To be sure I did a 'Power Efficiency Diagnostics Report' during one of the copy actions.
It showed that TC prevents entering sleep mode.

Code: Select all

System Availability Requests:System Required Request
 The program has made a request to prevent the system from automatically entering sleep.
  Requesting Process \Device\HarddiskVolume2\Program Files (x86)\totalcmd.v755rc2\TOTALCMD.EXE
I created the 'Power Efficiency Diagnostics Report' using the following command.
(with an elevated command prompt)

Code: Select all

C:\powercfg -energy -output d:\energy-report.html
So I can confirm this new feature works like a charm on my system!
:)

Greetz,

DR...

Posted: 2010-05-31, 15:02 UTC
by ghisler(Author)
Nice, thanks for sharing this information! I hope that the computer did go to sleep after the copying had finished...

Posted: 2010-06-16, 08:34 UTC
by DarkRuleR
ghisler(Author) wrote:Nice, thanks for sharing this information! I hope that the computer did go to sleep after the copying had finished...
I did another test (this time with RC3).
And the computer does go to sleep mode after the copying has finished!

And a little side note:
If during the copy action you get a dialog screen (for example a confirm overwrite dialog) the computer enters sleep mode.
Perfect!

Greetz,

DR...

Re:

Posted: 2023-11-19, 04:55 UTC
by TotalCommander?
ghisler(Author) wrote: 2010-05-28, 15:44 UTC TC 7.55 already does that now when a copy dialog is up. Can you try it, please? Release candidate 2 is already very stable, more than 7.50a final.
Where is this option to disable sleep in copy dialog??
Image: https://i.postimg.cc/hPdhPVmH/Where-is-option-to-prevent-sleep-on-remote-PC.png
I must be blind if I can't see it.... :?: :?:

Casually transferring files to remote PC and remote PC decides to take a nap halting file transfer....and when that happens, I only have ignore or abort options when TC pops up a dialog on what to do when remote PC naps. No option to resume or retry or even tell remote PC to *not* sleep when transferring files and let it sleep once it's finished??

Re: Disable 'standby mode' during background copy

Posted: 2023-11-19, 09:46 UTC
by ghisler(Author)
There is nothing to configure - Total Commander calls SetThreadExecutionState with the parameters
ES_CONTINUOUS, ES_SYSTEM_REQUIRED when the copy dialog goes up, and set to zero when done or paused.
It also includes ES_DISPLAY_REQUIRED when the media player is playing.

Your system should not go to sleep while a file operation is active.

Re: Disable 'standby mode' during background copy

Posted: 2023-11-25, 07:11 UTC
by TotalCommander?
ghisler(Author) wrote: 2023-11-19, 09:46 UTC There is nothing to configure - Total Commander calls SetThreadExecutionState with the parameters
ES_CONTINUOUS, ES_SYSTEM_REQUIRED when the copy dialog goes up, and set to zero when done or paused.
It also includes ES_DISPLAY_REQUIRED when the media player is playing.

Your system should not go to sleep while a file operation is active.
Well it go to sleepp, so how do you explain that?

Re: Disable 'standby mode' during background copy

Posted: 2023-11-26, 10:05 UTC
by ghisler(Author)
Edit:

Sorry, I misunderstood your report. I thought that the PC with Total Commander on it goes to sleep. But re-reading your report it looks like the remote PC to which you connect goes to sleep. To my knowledge, there are no functions which can prevent the target PC from going to sleep.