[mythtv-users] MythWelcome/MythShutdown configuration question

Bryan Bennetts bbennetts at blueyonder.co.uk
Tue Mar 27 15:31:11 UTC 2007

On Monday 26 March 2007 20:46, Craig Huff wrote:
> This weekend I tried setting the following setup:
> mythtv-setup parameters and values:
>     wakeup time format:            yyyy-MM-ddThh:mm:ss
>     set wakeup time command: mythshutdown --setwakeup $time  
> mythwelcome --setup parameters and values:
>     nvram-wakeup command:   `echo ${time}:00 | sed "s/T/ /"` | tee
> /var/log/alarm.log > /proc/acpi/alarm

FWIW I have these settings :

MythShutdownNvramCmd | sudo /usr/bin/mythsettime
SetWakeuptimeCommand | sudo /usr/bin/mythshutdown --setwakeup $time
WakeupTimeFormat      | yyyy-MM-ddThh:mm

and the script :

mythtv at stella ~ $ cat /usr/bin/mythsettime
# $1 is the redundant --settime switch

# Set the hardware clock to system time here, cause it knackers the alarm
# functionality.
hwclock --systohc

# Write the time to myth.time (why - I dunno)
sudo date -d "1970-01-01 $2 sec" +"%F %H:%M:%S" -u > /home/mythtv/myth.time

# Now convert that to UTC time (cause I want UTC on the mobo and BST/GMT 
sudo date -d "1970-01-01 $2 sec" +"%F %H:%M:%S" -u > /proc/acpi/alarm

The script may well be overkill - I was trying to handle the hardware clock 
not changing underneath british summer/winter time - YMMV.

HTH, Bry.

More information about the mythtv-users mailing list