Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: Same problem with Windows 11 and 5.21.2

@fpoto: I've just tested it using the latest versions of WinSCP and Windows 11. And the fix 2083 still seems to work for me. Can you reproduce the problem? Does any other application successfully prevent Windows from going to sleep when doing lengthy operation, in same situation WinSCP does not?
fpoto

Same problem with Windows 11 and 5.21.2

As the subject says. Just bought a new PC, installed few things, getting my files from the net with WinSCP and it went to sleep midway.
Bazza

Re: Windows Sleep Stops Transfer

Completed and I've sent you a reply mate.
martin

Re: Windows Sleep Stops Transfer

@Bazza: I have sent you an email with some test applications.
Bazza

Re: Windows Sleep Stops Transfer

@martin: Cheers. I'm sure you'll get to the bottom of it.
Bazza

Re: Windows Sleep Stops Transfer

I'm running Windows 11 Pro and you're running Windows 10? Not sure what else could be different.
martin

Re: Windows Sleep Stops Transfer

I cannot reproduce it.

WinSCP 5.19.6 (latest stable)
Windows 10 (Pro) 21H2/19044 (latest stable)

In Windows 10 Settings app I set the PC to go to sleep after 1 minute.

I run WinSCP. When I keep it idle, the PC goes to sleep after 1 minute+.

I start an upload of set of files, that take about 2–3 minutes. As long as the files are transferring the PC does not go to sleep. It does only about 30–40 seconds after the upload finishes. No difference between foreground and background uploads. Tested several times with the same results. SFTP session.

No difference between a regular installation and Windows Store installation.

Where do we differ?
Bazza

martin wrote:

@Bazza: Are you also using the Store installation?
No I downloaded from here.
martin

@Bazza: Are you also using the Store installation? + Your transfer was put to the background queue, is that correct?
Bazza

I've just experienced the same issue. I had a 5 hour queue so left it transferring overnight. Woke up this morning and Windows 11 had gone to sleep before the first file had completed downloading. I've had to turn sleep off in Windows to prevent it happening until a fix is found.
martin

@just-a-user: I'll look into it.
just-a-user

Yes, that is correct.
martin

@just-a-user: Do you mean that Windows automatically goes to sleep mode despite an ongoing transfer?
just-a-user

I have the same problem. Background transfer, Windows 11 with the app from the Microsoft store. Is there a setting to prevent this? I couldn't find one.
martin

I know that you are using "background" transfer. You have mentioned that in your first post already.
And I wrote that "A transfer prevents the sleep. Both foreground and background."
I cannot reproduce your problem unfortunately.
wsloand

As I started on my dad's computer, I realized what may be an important detail. I am using the WinSCP background queue for transfer. If transfers are happening in the queue (instead of the foreground), do the no-sleep features take effect?
martin

I do not think I have any unusual settings configured.
Windows 10 sleep settings are pretty simple.
wsloand

I don't have ready access to the computer with the issue (it is my mother's, and it's about 1000 miles away). But, it was happening in just a few minutes (about 10 minutes, I think), and it corresponded with screen blanking and apparent sleep mode from what I could see.

I'm about to have another test of an almost identical system (my dad's computer broke, too, and we got him the same model laptop as my mom). I anticipate that it will go to sleep while we are transferring his many GB of pictures back to his new computer. Do you have specific recommendations of what I should do to test it more effectively? Are there any Windows settings that I should look for or report for those transfers?
martin

Re: Windows Sleep Stops Transfer

For me it seems to work correctly.
A transfer prevents the sleep. Both foreground and background.
I didn't test it "overnight", just for few minutes. Windows goes to sleep only after the transfer completes and Sleep interval elapses after the transfer.
Are you able to reproduce the problem, when you set Windows Sleep interval to few minutes?
wsloand

@martin: Thanks! In case it helps, the computer is a new Windows 10 laptop with all current updates applied.
martin

WinSCP should prevent the sleep. I'll look into it.
wsloand

Yes, based on what I saw in Sleep during transfers, I expected WinSCP to prevent the computer from going to sleep. As I'm thinking about it more, I think that it should only be an option for a transfer (and not a requirement), so perhaps a checkbox like "prevent computer from suspending or going to sleep during transfer" would help.

If that's not in scope for WinSCP, that's OK.
martin

Re: Windows Sleep Stops Transfer

I'm not sure what is the question.
Did you expect WinSCP to prevent the computer from going to sleep?
wsloand

Windows Sleep Stops Transfer

Thank you for the great software!

I setup my mother's computer to download lots of kid pictures from me (about 30 GB in a single zip file). We set it up as a background transfer, and left it to go overnight. Her computer went to sleep, and the transfer paused. When she started using the computer again, the transfer restarted.

I think that this is similar to https://winscp.net/forum/viewtopic.php?t=5867, but I'm not sure if it's something different with Windows 10, background transfers, or something else. Is a pause during a background transfer expected?