[mythtv-users] How wakeup detects manual/auto poweron

Michelle Dupuis support at ocg.ca
Fri Aug 10 00:46:47 UTC 2007

I agree...

The problem I'm having is the script which puts the PC to sleep sets the
next wakeup time based on the next scheduled recording, OR the next
mythfilldatabase, whichever comes first.  If the system wakes up to
mythfilldatabase, then the PC stays on indefinitely...

Does anyone know if the wake time detection code (scheduled/manual) is in a
bash file (and if so which one)?


> -----Original Message-----
> From: mythtv-users-bounces at mythtv.org 
> [mailto:mythtv-users-bounces at mythtv.org] On Behalf Of John Veness
> Sent: Thursday, August 09, 2007 4:49 PM
> To: Discussion about mythtv
> Subject: Re: [mythtv-users] How wakeup detects manual/auto poweron
> Brian Steele wrote:
> > On 8/8/07, Michelle Dupuis <support at ocg.ca> wrote:
> >>
> >> Can someone explain how on powerup, myth can detect whether it was 
> >> started by ACPI wakeup, or by manual powerup?
> >>
> >> The manual powerup starts myth in the FE, while acpi wakeup starts 
> >> myth in the Welcome screen.
> >
> >
> > I believe Myth looks at the upcoming recordings to decide 
> how it was 
> > started.  If you have the "stay on x minutes before 
> recording" setting 
> > set to 20 minutes, then any upcoming recording scheduled within the 
> > next 20 minutes will cause myth to think it was started 
> automatically.
> >  If there are no upcoming recordings in that window, myth thinks it 
> > was started manually.
> I wonder if there could be a more elegant way of doing this, 
> maybe by comparing the current time with the wakeup time 
> stored in the BIOS?
> Cheers,
> John
> --
> John Veness, MythTV user, UK, DVB-T
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users

More information about the mythtv-users mailing list