Windows Sleep Stops Transfer

Advertisement

wsloand
Joined:
Posts:
5
Location:
USA

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?

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
37,865
Location:
Prague, Czechia

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?

Reply with quote

wsloand
Joined:
Posts:
5
Location:
USA

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.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
37,865
Location:
Prague, Czechia

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?

Reply with quote

wsloand
Joined:
Posts:
5
Location:
USA

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?

Reply with quote

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?

Reply with quote

Advertisement

martin
Site Admin
martin avatar

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.

Reply with quote

just-a-user
Guest

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.

Reply with quote

Advertisement

Bazza
Donor
Joined:
Posts:
5
Location:
Donny, UK

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.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
37,865
Location:
Prague, Czechia

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?

Reply with quote

Advertisement

fpoto
Donor
Joined:
Posts:
1
Location:
Pisa, IT

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.

Reply with quote E-mail

Advertisement

martin
Site Admin
martin avatar

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?

Reply with quote

Advertisement

You can post new topics in this forum