Sleep mode can be configured for Resilio Connect Agent on Android devices starting with version 2.9.2.
Enabling automatic sleep for an Agent will save its battery and can be used when the Android Agent is not expected to sync files frequently. Configuration can be found in Resilio Connect Agent settings -> Advanced. It cannot be configured from the Management Console.
To enable automatic sleep, switch toggle "Sleep in background". The Agent's core will suspend (go to sleep) automatically if:
- there are no active file transfers;
- the Agent is not indexing the files;
- the Agent is not processing the files from remote Agents (getting ready to download or upload the files).
- there's no nay other activity with files.
While sleeping, the Agent will periodically at the configured intervals wake up to check for file updates (see below). Also, it will wake up if parameter "Wake up on new photo" is enabled and a new photo is taken by system camera.
At wakeup periods, the Agent needs to sync all the files it discovers. Enable option "Hold wakelock" so that the Agent can continue working in background and is not force-stopped by the system. For this purpose it's also advisable to add the Agent to battery whitelist (warning: battery consumption may be high!).
Don't mistake sleeping for malfunction
1. While the Agent is sleeping, it will appear as offline on the Management Console.2. Also, it will not be able to start a job run by schedule
3. The Agent does not report sleeping status to the MC.
Tapping on the "Sleep in background" parameter itself will open more flexible configuration of sleeping timeouts.
By default the Agent wakes up from sleep every 60 minutes. In practice this interval may fluctuate by around 10 minutes, which is caused by the specifics of applications working in background on the Android OS. Additional wakeups can be configured for periods while the Agent is being charged (connected to the power supply).