Suspension not inhibited while transfering file over LAN
Sorry if the issue report is too long, is in the wrong place or something else. I tried to adhere to the guidelines. This is the first time I report an issue.
Description of issue:
- When left untouched for a while, a laptop running a linux distro with the GNOME Desktop will enter sleep/suspend mode.
- Sleep/suspend mode disconnects the laptop from the network (in this case wired)
- It is natural to leave a laptop untouched while transfering large files (via LAN or otherwise)
- This does not prevent sleep/suspend while transfer is ongoing.
- Sleep/suspend occurs.
- File transfer is cancelled due to sleep/suspend.
- User returns to laptop, finding an incomplete transfer. Transfer does not restart.
- User has to start over.
Setup
-
Lenovo laptop running Ubuntu 18.04 with GNOME Desktop connected to LAN Network via cable. No extensions or anything.
-
Desktop PC running Windows 10 connected to LAN via cable.
Steps to reproduce
-
On Windows: Share a "large" folder on the LAN Network and make sure you have read permissions enabled. (Right-click desired folder -> Properties -> 'Sharing' tab.) The folder should be large enough for the Linux PC to enter sleep/suspend before the file transfer is over.
-
On Linux: Enter the shared folder from Nautilus ('+ Other locations' -> connect to server -> smb:// )
-
Copy the desired folder to the local disk
-
Wait until the linux box sleeps/suspends.
-
Log in, transfer is failed.
Suggested behaviour:
- Don't enter sleep/suspend mode while transfering files over a network.
- Consider turning the screen off only, if left idle while transfering.