Laptop freezes, if suspending while rsync is running

Dear Framework Community,
I recently got my Framework 13 and took the plunge into Linux (so consider me a newbie) Things have been mostly working fine, but I am annoyed by a really particular issue. When the laptop goes into sleep mode while a rsync task is running, it freezes and no longer resumes.

Exact steps:
I am running a Wireguard VPN Tunnel to access my NAS via SMB. From there I am using Nautilus to log into and mount the NAS share. I then run an rsync task to copy files to my Laptop. (slow internet means the transfer takes a while).
If the laptop is not plugged in it goes into sleep after a few minutes. From that point on, if rsync was currently running, I have found no way to resume the laptop besides a hard reset. No key combinations are working and the capslock LED cannot be toggled. fn + space to change LED brightness does work (though I guess thats just a hardware thing unrelated to the OS).
If I copy the files using nautilus it works just fine. I am not sure if this is just limited to rsync or to running console jobs in general, while the laptop goes into sleep.

I’m also not sure if this is a Framework or Fedora issue, but wagered I’d start here.

Technical Details
Distro: Fedora 42 with Gnome (Kernel 6.14.6-300.fc42.x86_64)
Hardware: Framework 13 w/ AMD Ryzen 7640U
Firmware Version: 03.09

All of the current updates are installed. I also did no tinkering in Linux, so just running stock Fedora

Hi, not pertaining to your laptop not resuming, however:

I then run an rsync task to copy files to my Laptop

I suggest you run rsync while inhibiting sleep:

systemd-inhibit --what="sleep:shutdown" rsync $RSYNC_OPTIONS

2 Likes