Disable 'standby mode' during background copy

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
DarkRuleR
Member
Member
Posts: 190
Joined: 2003-02-20, 22:23 UTC
Location: Netherlands

Disable 'standby mode' during background copy

Post 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...
#106383 Windows 10 Pro 64-bit
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post 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.
Author of Total Commander
https://www.ghisler.com
User avatar
DarkRuleR
Member
Member
Posts: 190
Joined: 2003-02-20, 22:23 UTC
Location: Netherlands

Post 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...
#106383 Windows 10 Pro 64-bit
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Nice, thanks for sharing this information! I hope that the computer did go to sleep after the copying had finished...
Author of Total Commander
https://www.ghisler.com
User avatar
DarkRuleR
Member
Member
Posts: 190
Joined: 2003-02-20, 22:23 UTC
Location: Netherlands

Post 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...
#106383 Windows 10 Pro 64-bit
TotalCommander?
Junior Member
Junior Member
Posts: 7
Joined: 2018-12-27, 15:37 UTC

Re:

Post 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??
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Disable 'standby mode' during background copy

Post 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.
Author of Total Commander
https://www.ghisler.com
TotalCommander?
Junior Member
Junior Member
Posts: 7
Joined: 2018-12-27, 15:37 UTC

Re: Disable 'standby mode' during background copy

Post 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?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Disable 'standby mode' during background copy

Post 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.
Author of Total Commander
https://www.ghisler.com
Post Reply