Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: MythTV: Users

nvram wakeup and myth 0.21

 

 

MythTV users RSS feed   Index | Next | Previous | View Threaded


moonkuh at gmail

Mar 16, 2008, 6:37 AM

Post #1 of 3 (342 views)
Permalink
nvram wakeup and myth 0.21

Hi

I can't get nvram-wakeup to work with mythwelcome.
If i set the time manually with nvram-wakeup it works.

The wiki (http://www.mythtv.org/wiki/index.php/Mythwelcome) says that i
must add something like this:

mythwelcome --setup --> nvram-wakeup command --> date -d "`echo $time |
sed "s/T/ /"`" +%s | xargs nvram-wakeup -s

I have to change the nvram-wakeup command to this and i hope that this
is right:


date -d "`echo $time | sed "s/T/ /"`" +%s | xargs
sudo-H /usr/sbin/nvram-wakeup -A -C /etc/nvram-wakeup.conf --directisa

in mythwelcome --setup my "Wakeup Format" is time_t

Now when the Mythbackend shutdown, i get an error that the time is wrong
and nvram-wakeup doesn't write the time in the bios.

Please can someone show me where the error is?


2008-03-16 14:22:22.228 Running the command to set the next scheduled
wakeup time :-mythshutdown --setwakeup 2008-03-16T18:08
2008-03-16 14:22:22.531 Running the command to shutdown this computer :-
sudo -H mythshutdown --shutdown
date: invalid date `1205687280'
All values are displayed as they are stored in the nvram/rtc.
(and do not correspond necessarily to the system date/time)
WakeUp : Enabled (0x1B)
Day : 13 (0x1B)
Hour : 18 (0x12)
Minute : 34 (0x22)
Second : 58 (0x3A)
rtcDay : 13 (0x13)
Checksum: 0x7CE3

Here it should put the time in the bios but it doesn't :(
Searching for GRUB installation directory ... found: /boot/grub




_______________________________________________
mythtv-users mailing list
mythtv-users[at]mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


watkinshome at gmail

Mar 17, 2008, 5:32 AM

Post #2 of 3 (308 views)
Permalink
Re: nvram wakeup and myth 0.21 [In reply to]

> Now when the Mythbackend shutdown, i get an error that the time is wrong
> and nvram-wakeup doesn't write the time in the bios.
>
> Please can someone show me where the error is?

>> date: invalid date `1205687280'


Well that's a funny looking date, so I guess the error is in here somewhere

>> date -d "`echo $time | sed "s/T/ /"`" +%s | xargs

Can you modify your script to show the value of %s that's getting passed in?
_______________________________________________
mythtv-users mailing list
mythtv-users[at]mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


moonkuh at gmail

Mar 17, 2008, 7:12 AM

Post #3 of 3 (298 views)
Permalink
Re: nvram wakeup and myth 0.21 [In reply to]

Funny is how i get it to work :)

Here is what i had send to the mailing list.
Maybe the mail is lost in hundreds of other mails :p

<snip>
There seems to be an error in the wiki and under mytwelcome --setup ->
Format for Waketime (or in the Translation to German)

Thats what i put in nvram-wakeup command:

date -d "`echo $time | sed "s/T/ /"`" +%s | xargs /usr/sbin/nvram-wakeup
-A -C /etc/nvram-wakeup.conf -s

It's strange that i need -s at the end, because the wiki says something
like this:

Note that Mythwelcome will append "--settime xxxxxxxxxx" to this command
where xxxxxxxxxx is the next wakeup time in UTC format.

so that we don't need -s at the end, --settime and -s are the same.

Second strange thing, the description (the translation in german) for
waketime format says that i have to use time_t with nvram-wakeup but
only
with the second option "yyyy:mm:........" nvram-wakeup works

</snip>

Took me a long time to find the answer why nvram-wakeup didn't work :(

Am Montag, den 17.03.2008, 12:32 +0000 schrieb David Watkins:
> > Now when the Mythbackend shutdown, i get an error that the time is wrong
> > and nvram-wakeup doesn't write the time in the bios.
> >
> > Please can someone show me where the error is?
>
> >> date: invalid date `1205687280'
>
>
> Well that's a funny looking date, so I guess the error is in here somewhere
>
> >> date -d "`echo $time | sed "s/T/ /"`" +%s | xargs
>
> Can you modify your script to show the value of %s that's getting passed in?
> _______________________________________________
> 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

MythTV users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.