[mythtv-users] Help with wakeup?

Greg Newton greg.newton at exemail.com.au
Wed Oct 14 01:50:55 UTC 2009


2009/10/14 Jan Johansson <j2 at mupp.net>
>
> Hello!
>
> I am aware this is just indirectly MythTV-related, but I figured that someone would know.
>
>
>
> I am running Myth Trunk on Ubuntu 9.10 on a Gigabyte GA-73PVM-S2H
>
>
>
> I have tried about a dozen various guides, and have tried a gazillion (well..) combinations of HPET/Wake/Power Management settings in BIOS.
>
>
>
> I see the right stuff in /sys/class… when I have written my wakeupdata according to http://www.mythtv.org/wiki/ACPI_Wakeup but i CANNOT make the board wake up.
>
>
>
> Have anyone got this card, and have some clues to what I am missing?
>
>
>
> Thanks!
>
> --


I don't have the card, mine is GA-MA69-S2H, and my notes show:

Add hpet=disable to kernel options in /boot/grub/menu.lst (REQUIRED at
kernel Linux melusine 2.6.28-11-generic #42-Ubuntu SMP Fri Apr 17
01:58:03 UTC 2009 x86_64 GNU/Linux)

Un-comment MYTHWELCOME line in /etc/mythtv/session-settings

Create /usr/bin/MythWakeSet

<code>
#!/bin/sh

# inspired from http://www.mythtv.org/wiki/index.php/ACPI_Wakeup
# and https://help.ubuntu.com/community/MythTV/Install/WhatNext/ACPIWake
#
# MythWakeSet
#
# set mythtv wake-up time with UTC-adjusted time
#
# use: MythWakeSet date time
# ex.: MythWakeSet 2008-11-02 20:15:00
# See also 'man date' for date/time-formats.

# TimeZone, use +0100 for GMT+1
#TZ="+0100"
TZ=$(date +%z)

LOG=/var/log/mythtv/mythbackend.log

DATE=$(date -d "$1 $2 $TZ" "+%F %H:%M:%S" -u)
SECS=$(date -d "$1 $2" "+%s")

echo Running $0 to set the wakeup time to $1 $2 >>$LOG

if [ -e /sys/class/rtc/rtc0/wakealarm ]; then
  echo 0 > /sys/class/rtc/rtc0/wakealarm
  echo $SECS > /sys/class/rtc/rtc0/wakealarm
  echo "echo 0 > /sys/class/rtc/rtc0/wakealarm" >>$LOG
  echo "echo $SECS > /sys/class/rtc/rtc0/wakealarm" >>$LOG
  cat /proc/driver/rtc  >>$LOG
else
  if [ -e /proc/acpi/alarm ]; then
    echo $DATE > /proc/acpi/alarm
    echo "echo $DATE > /proc/acpi/alarm" >>$LOG
  else
    echo "ERROR, Wakeup not set, no /sys/class/rtc/rtc0/wakealarm and
no /proc/acpi/alarm found" >>$LOG
  fi
fi
</code>

HTH
/Greg


More information about the mythtv-users mailing list