I have the same motherboard, M5A78L-M/USB3, BIOS 2101 12/02/2014 with Xubuntu 18.04
There is an issue with hpet in the bios in that it stops the machine from powering up.
In file /etc/default/grub I have the following
Code: Select all
GRUB_CMDLINE_LINUX_DEFAULT="hpet=disable tsc=unstable"
Try this GRUB_CMDLINE change before anything else, like changing /usr/bin/setwakeup.sh, mine is below
Remember to run after changing this file followed by a reboot.
The contents of my file /usr/bin/setwakeup.sh (slightly modified from wiki) are:
Code: Select all
#!/bin/bash
#$1 is the first argument to the script. It is the time in seconds since 1970
#this is defined in mythtv-setup with the time_t argument
#echo 0 > /sys/class/rtc/rtc0/wakealarm #this clears your alarm.
#echo $1 > /sys/class/rtc/rtc0/wakealarm #this writes your alarm
sudo rtcwake -m no -t $1
LOG_FILE='/var/log/mythtv/hwclock-rebootTime.log' #log file
# Now write the time the system is expected to come out of power save mode
# so there is at least a small record of when if it was supposed to recover
# Note:- Log file will just keep growing
# date in Epoch format
a="`date +%s`"
# Subtract Current time from Future time
let "b=$1-$a"
# echo $b
# echo "result of time subtraction `date -d @$b`"
# Get Date and Subtract 1,.. as date starts from 1st Jan 1970
dte=`date -d @$b +%d`
let "dte -= 1"
echo "Current Time ->`date`" >> $LOG_FILE
# Simple check to determine if to include days in output string
if (dte=0)
then
echo "Shutting down for ->`date -d @$b +%Hhrs:%MMins`" >> $LOG_FILE
else
echo "Shutting down for ->$[dte]Days `date -d @$b +%Hhrs:%MMins`" >> $LOG_FILE
fi
echo "Wake up at approx.->`date -d @$1`" >> $LOG_FILE
echo "------------------------------------------------------" >> $LOG_FILE