This post is part question and part bug report. The bug is that the PureOS store on my Librem 5 doesn’t provide an obvious way to change what time it checks for updates. The question is: how can I change what time it checks for updates?
Due the hours I now work, the default of checking at about 06:30 is completely useless. It is guaranteed that the phone will not be on WiFi and probably not even powered up at 06:30. It’s also more than likely that the next time I switch it on, it will be away from WiFi. This effectively means the automatic check for updates is broken, unless I can cause it to check at a more appropriate time.
I would like the phone to check for updates earlier in the morning.
(I’m not going to use 4G to check for updates: I pay £0.01 per MB for 4G data.)
I suppose the “proper” fix for the bug would be to adjust the timing of the update check automatically, according to when the phone is most likely to be switched on and connected to WiFi, based on usage patterns over time and weighted towards the more recent history.
I tried editing the systemd timers apt-daily.timer and apt-daily-upgrade.timer, as described in this Unix & Linux StackExchange answer. However, this seems to have made no difference. The phone is still checking for updates at about 06:30.
I assume that PureOS Store’s update checks are based on some other mechanism. Does anyone know the name of that mechanism (for teh web searchery), or how to configure it?
I’ve just this moment tried changing what time my cron.daily, cron.weekly and cron.monthly scripts run, based on this advice for Ubuntu, combined with the wild assumption that the same mechanism might be at play in PureOS. However, I will have to wait to find out whether it has the desired effect.