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

Peter Bennett (cats22) cats22 at comcast.net
Sat Nov 15 17:45:36 UTC 2014


On 11/15/2014 09:16 AM, R Kannan wrote:
> 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
>
>
>
One time my wife put a cushion down on top of the keyboard. Next morning
there was a beeping noise as the keyboard was transmitting space
characters all night long and after waking up it was stuck on a boot
message and beeping for a few hours until I finally removed the pillow,
then it continued with the boot process.

Peter


More information about the mythtv-users mailing list