On Sat, 2023-11-18 at 12:59 +0000, Patrick O'Callaghan wrote: > On Tue, 2023-11-14 at 13:52 +0000, Patrick O'Callaghan wrote: > > My system (both F38 and now F39) reboots itself every morning at > > 8am, > > yet nothing in the cron configuration is telling it to do that and > > I > > don't see anything obvious in the journal to cause it. > > > > How can I figure out what is triggering this? I know the > > description > > is > > vague, but there it is. > > Just to close this off: > > - The problem was being caused by a flaky smart plug > - Restoring factory settings to the plug fixed it > - I decided to follow some recommendations in the thread and use the > built-in motherboard RTC instead of the smart plug as a way to re- > activate the system at a set time. This is now working (touch wood). > > My hibernation script now includes this snippet, if anyone's > interested: Corrected version. It turns out that the wakeup alarm has to be reset before setting: set_wakeup() { # See https://www.linux.com/training-tutorials/wake-linux-rtc-alarm-clock/ if [[ $(date +"%H") -lt 8 ]]; then datestring=$(date '+%s' -d '08:00 today') else datestring=$(date '+%s' -d '08:00 tomorrow') fi echo 0 > /sys/class/rtc/rtc0/wakealarm echo "$datestring" > /sys/class/rtc/rtc0/wakealarm } -- _______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue