[mythtv-users] ACPI Wakeup and Mythwelcome(Solved)

Kevin Plew kevin at plewnet.com
Mon Jun 2 14:12:27 UTC 2008


Looks like I had a couple of issues:
1. My hardware clock was set to UTC- The system woke up 4 hrs early this
morning. Modified using "timeconfig" unchecked "UTC" and setup syncing
hwclock hourly to local time.
2. time wasn't being set properly with "mythshutdown -w "$time". I had to
use "sudo sh -c 'echo $time > /proc/acpi/alarm'" I also had to use the
time string "yyyy-MM-ddThh:mm:ss" The "T" is ignored, but without it
parsed the date and time as separate arguments.Could use quotes on the
$time as well.
3.In my case RTC wakeup is disabled on MB.

Couple of questions:
1. I can wake the system up using my wireless kb with ctrl+esc... Any way
I can use my remote connected thru a serial IR reciever?
2. Is there any advantage to using S3 suspend instead of shutdown/reboot.
I know S3 is much faster but it seems like there are module issues when
using it. My system often is idle 12 or more hours per day.

Thanks for the help

On Mon, June 2, 2008 06:43, Ian Clark wrote:
> Try setting your backend to call "sudo sh -c 'echo $time >
> /proc/acpi/alarm'" directly.
>
>
> ISTR having trouble with this.
>
>
> The important step is to have the backend call 'mythshutdown --shutdown'
> to do the actual shutdown, as this is the command that writes the expected
>  wakeup time to the database, without this step mythwelcome will always
> start the frontend, which negates the usefullness of the wakeup/shutdown
> functionality.
>
> It also might be worth adding the seconds to the time format in backend?
> I've just checked mine and it appears I am calling mythshutdown to set the
>  wakeup time.
>
> 2008-06-02 11:39:32.703 Running the command to set the next scheduled
> wakeup time :-
>
> /usr/local/mythtv/bin/mythshutdown --setwakeup "2008-06-02 14:48:00"
>
>
> What happens if you call mythshutdown --setwakeup direct, does catting
> the /proc/acpi thingy work then? What about if you add seconds?
>
>
> 2008/6/1 Kevin Plew <kevin at plewnet.com>:
>
>
>> Folks,
>>
>>
>> I'm having a problem getting my system to wakeup to do a recording
>> after it shuts down automatically.
>>
>> My Backend log shows:
>> 2008-06-01 17:27:44.486 CheckShutdownServer returned - OK to shutdown
>> 2008-06-01 17:27:44.495 Running the command to set the next scheduled
>> wakeup time :- mythshutdown -w "2008-06-01 17:56"
>> 2008-06-01 17:27:44.577 Running the command to shutdown this computer :-
>>  mythshutdown --shutdown
>>
>> but checking /proc/acpi/alarm shows:
>>
>> [mythtv at kojiki ~]$ sudo cat /proc/acpi/alarm
>> 2008-06-00 17:56:00
>>
>>
>>
>> The system never wakes up- I assuming due to the date being 2008-06-00
>>
>>
>> My setup is as follows:
>> FC8 Kernel 2.6.24.7-92.fc8
>> Myth .21-187
>> Asus P5B Deluxe MB
>> BIOS setting wakeup by RTC- Disabled
>>
>>
>>
>> Myth-setup settings:
>> wakeup time format: yyyy-MM-dd hh:mm Command to set Wakeup time:
>> mythshutdown -w "$time" Server halt command: mythshutdown --shutdown
>> Pre Shutdown check: mythshutdown --check
>>
>>
>>
>>
>>
>> Mythwelcome settings:
>> Command to set wakeup time: sudo sh -c 'echo $time > /proc/acpi/alarm'
>> Wakeup time format: yyyy-MM-dd hh:mm:ss
>> nvram-wake restart command: Blank
>>
>> Thanks for any help.
>>
>>
>>
>>
>> Kevin Plew
>> Dad & Webmaster
>>
>>
>> _______________________________________________
>> mythtv-users mailing list mythtv-users at mythtv.org
>> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>>
>>
> _______________________________________________
> mythtv-users mailing list mythtv-users at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>
>


Kevin Plew
Dad & Webmaster



More information about the mythtv-users mailing list