Would it be possible to run specific software processes when your machine goes into suspend mode?
4 Answers
No, during suspend you won't be able to run any useful process: https://en.wikipedia.org/wiki/Sleep_mode
Your only solution would be to wake periodically to perform whatever task you're interested in and then enter suspend again when done. If you are interested in tasks like torrent clients that likely won't be feasible since they don't fall into that pattern of on-briefly-and-suspend-when-done.
This answer will be useful to figure out timed suspend and wake.
The short answer is No. When the device is suspended, all of the components are shut down except the RAM. Transmission needs things like your CPU and network card, which in turn need different things running. The best thing to do to keep processes running while the computer is not in use is to just Lock it.
Source: man pm-action

- 8,502
- 11
- 47
- 72
13.04 is old, and no longer supported. Consider upgrading.
You CAN run a process as your system enters hibernation (well, at each of Sleep/Wake/Suspend/Resume). read man pm-action
or https://manpages.ubuntu.com/manpages/trusty/en/man8/pm-action.8.html

- 36,399
-
the question is old so the op have probably upgraded multiple times over the last 6 years. – trond hansen Apr 04 '19 at 14:03
-
No, cause something like BitTorrent will use CPU, HDD and WiFi That means nothing can suspend. it's like downloading a file on your mobile phone, even if you turned off the screen the battery will drain and the phone gets hot cause he didnt even suspend

- 490
- 4
- 21