Which config file for timestamp to wake up at a certain time ?
malvinas2 opened this issue · 1 comments
Does the script use the config file within /etc/autosuspend.d/activities
to set a timestamps for preparing the next wake up or does it still use /etc/autosuspend_resumeplan
as the original AutoSuspend from /wiki.ubuntuusers.de does ?
The documentation just mentions the 'activities'-file, but within the source code the only reference I can find is /etc/autosuspend_resumeplan (line 105 and 110).
The script prefers the activities files under /etc/autosuspend.d/activities
.
First, autosuspend checks if the machine is busy (e.g. running applications, connected users, Tvheadend activity). If so, the wakeup time is set considering Tvheadend schedules and the files within /etc/autosuspend/activities.d
.
The original resumeplan mechanism is used as fallback if
- there are no recordings planned
- and there is no user activity in
/etc/autosuspend/activities.d
- and
/etc/autosuspend_resumeplan
exists