[mythtv-users] Backend would not wake up on time.

Jason But jbut at swin.edu.au
Sun Nov 16 21:41:39 UTC 2014


Perhaps you had a power outage while the system was off

When I used to have an auto-wake to record system, any black-out or removal 
of power from my PC would break the auto-wake function

Jason

> Hello,
>
> I have the backend (0.25 on Mythbuntu 12.04) set up to hibernate and
> wake up 2 mins before any scheduled recording to record my shows. It
> works most of the time but once in a while like last Thursday, it fails.
> I went through the logs and found the following snippet...
>
> Nov 13 21:04:44 HP-DVR mythbackend[2840]: I HouseKeeping
> housekeeper.cpp:225 (RunHouseKeeping) Running housekeeping thread
> Nov 13 21:05:51 HP-DVR mythbackend[2840]: I ProcessRequest
> mainserver.cpp:1360 (HandleAnnounce) MainServer::ANN Monitor
> Nov 13 21:05:51 HP-DVR mythbackend[2840]: I ProcessRequest
> mainserver.cpp:1362 (HandleAnnounce) adding: HP-DVR as a client (events: 2)
> Nov 13 21:05:51 HP-DVR mythbackend[2840]: I ProcessRequest
> mainserver.cpp:1360 (HandleAnnounce) MainServer::ANN Monitor
> Nov 13 21:05:51 HP-DVR mythbackend[2840]: I ProcessRequest
> mainserver.cpp:1362 (HandleAnnounce) adding: HP-DVR as a client (events: 2)
> Nov 13 21:06:08 HP-DVR mythbackend[2840]: I ProcessRequest
> mainserver.cpp:1360 (HandleAnnounce) MainServer::ANN Monitor
> Nov 13 21:06:08 HP-DVR mythbackend[2840]: I ProcessRequest
> mainserver.cpp:1362 (HandleAnnounce) adding: HP-DVR as a client (events: 2)
> Nov 13 21:09:30 HP-DVR mythbackend[2840]: I Scheduler scheduler.cpp:2729
> (CheckShutdownServer) CheckShutdownServer returned - OK to shutdown
> Nov 13 21:09:30 HP-DVR mythbackend[2840]: N Scheduler scheduler.cpp:2814
> (ShutdownServer) Running the command to set the next scheduled wakeup
> time :-#012#011#011#011#011#011#011sudo sh -c "/usr/sbin/SetWakeupTime
> 1415933820"
> Nov 13 21:09:30 HP-DVR mythbackend[2840]: N Scheduler scheduler.cpp:2841
> (ShutdownServer) Running the command to shutdown this computer
> :-#012#011#011#011#011#011#011sudo /usr/sbin/pm-hibernate
> Nov 14 07:40:06 HP-DVR mythbackend[2840]: I Expire mythdbcon.cpp:395
> (PurgeIdleConnections) New DB connection, total: 11
> Nov 14 07:40:06 HP-DVR mythbackend[2840]: I JobQueue mythdbcon.cpp:395
> (PurgeIdleConnections) New DB connection, total: 11
> Nov 14 07:40:06 HP-DVR mythbackend[2840]: I HouseKeeping
> housekeeper.cpp:225 (RunHouseKeeping) Running housekeeping thread
> Nov 14 07:40:06 HP-DVR mythbackend[2840]: I HouseKeeping
> mythdbcon.cpp:395 (PurgeIdleConnections) New DB connection, total: 11
> Nov 14 07:40:06 HP-DVR mythbackend[2840]: N Expire autoexpire.cpp:263
> (CalcParams) AutoExpire: CalcParams(): Max required Free Space: 1.0 GB
> w/freq: 15 min
> Nov 14 07:40:07 HP-DVR mythbackend[2840]: I Scheduler mythdbcon.cpp:395
> (PurgeIdleConnections) New DB connection, total: 11
> Nov 14 07:40:07 HP-DVR mythbackend[2840]: I TVRecEvent tv_rec.cpp:1030
> (HandleStateChange) TVRec(1): Changing from None to RecordingOnly
> Nov 14 07:40:07 HP-DVR mythbackend[2840]: I TVRecEvent mythdbcon.cpp:395
> (PurgeIdleConnections) New DB connection, total: 11
> Nov 14 07:40:07 HP-DVR mythbackend[2840]: I TVRecEvent tv_rec.cpp:3503
> (TuningCheckForHWChange) TVRec(1): HW Tuner: 1->1
> Nov 14 07:40:07 HP-DVR mythbackend[2840]: I TVRecEvent tv_rec.cpp:1030
> (HandleStateChange) TVRec(1): Changing from RecordingOnly to None
> Nov 14 07:40:07 HP-DVR mythbackend[2840]: I CoreContext
> mythdbcon.cpp:395 (PurgeIdleConnections) New DB connection, total: 11
> Nov 14 07:40:07 HP-DVR mythbackend[2840]: N Scheduler autoexpire.cpp:263
> (CalcParams) AutoExpire: CalcParams(): Max required Free Space: 1.0 GB
> w/freq: 15 min
> Nov 14 07:40:07 HP-DVR mythbackend[2840]: I Scheduler scheduler.cpp:2514
> (HandleRecordingStatusChange) Tuning recording: Parenthood:"Aaron
> Brownstein Must Be Stopped": channel 1041 on cardid 1, sourceid 1
> Nov 14 07:40:08 HP-DVR mythbackend[2840]: I TVRecEvent tv_rec.cpp:1544
> (HandlePendingRecordings) TVRec(2): ASK_RECORDING 2 0 0 0
> Nov 14 07:40:08 HP-DVR mythbackend[2840]: N Scheduler scheduler.cpp:2680
> (HandleIdleShutdown) I'm idle now... shutdown will occur in 300 seconds.
>
> Clearly before going into hibernate, it set the scheduled wake up time
> to 1415933820.  'date -d @1415933820' gives...
>
> Thu Nov 13 21:57:00 EST 2014
>
> But the very next line in the log is on Nov 14.  So it did not wake up
> or did not start the backend.
>
> Is there anything else I can look into to investigate this issue further?
>
> Thanks for any help
>
>
>
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://lists.mythtv.org/mailman/listinfo/mythtv-users
> http://wiki.mythtv.org/Mailing_List_etiquette
> MythTV Forums: https://forum.mythtv.org
>
>


-- 

----------
Dr. Jason But
Deputy Chair, Department of Telecommunications, Electrical and Robotics Engineering
Deputy Academic Director (Education Quality & Accreditation)
Course Co-Ordinator, Bachelor of ICT (Network Design and Security)

Department of Telecommunications, Electrical and Robotics Engineering
School of Software and Electrical Engineering
Faculty of Science, Engineering and Technology
Swinburne University of Technology
CRICOS Provider 00111D

Phone:  +61 3 9214 4839
Email:  jbut at swin.edu.au
www:    http://caia.swin.edu.au/cv/jbut
Office: EN606e



More information about the mythtv-users mailing list