[mythtv-users] Mythwelcome doesnt trigger setwakeup

Rajil Saraswat rajil.s at gmail.com
Fri Mar 9 22:37:50 UTC 2012


On 9 March 2012 10:55, Mike Perkins <mikep at randomtraveller.org.uk> wrote:
> Have you checked your system logs? A related problem happened to me while I was
> commissioning a new minimyth front end recently. It all worked with one
> exception: the shutdown command was ignored. This was using the exact same code
> as another front end, so I knew that the software was ok.
>
> Looked in syslog, and saw 'sudo: file not found'.
>
> Turns out that when the system was set up, with a new hostname therefore a fresh
> set of hosts settings, the shutdown command defaults to 'sudo /usr/bin/shutdown
> -h now'. There's no sudo in minimyth. Changed the command to '/bin/halt' (using
> front-end setup) and it all worked.
>
> Your problem may be something similar. Try removing the 'sudo' from the front of
> your command. Another possibility is that you need sudo, but the /etc/sudoers
> file isn't correctly set up. If it isn't either of those, check syslog in any
> case, you may find a clue.
>
> --
>
> Mike Perkins

Thanks for your response. There are two things which seem to have
partially solved the problem.

Firstly, i am now running 'mythwelcome' as the same user as
mythbackend. Previously, my gentoo box was running 'mythbackend'  with
a user 'mythtv' and i was running 'mythwelcome' under a different
username. Secondly, i have changed General->"EIT Scanner
Options"->"Backend Idle Before EIT Crawl" to 300 and
General->"Shutdown/Wakeup Options"->"Idle shutdown timeout" to 120.

I say 'partially solved' because sometimes it has trouble switching
off and mythbackend resets the counter

2012-03-09 22:21:05.196 CheckShutdownServer returned - OK to shutdown
2012-03-09 22:21:05.230 Running the command to set the next scheduled
wakeup time :-
                                                mythshutdown
--setwakeup 2012-03-09T22:35:00
2012-03-09 22:21:05.399 Running the command to shutdown this computer :-
                                                mythshutdown --shutdown
2012-03-09 22:21:11.990 Reschedule requested for id -1.
2012-03-09 22:21:12.130 Scheduled 9 items in 0.1 = 0.06 match + 0.07 place
2012-03-09 22:21:13.152 I'm idle now... shutdown will occur in 120 seconds.
2012-03-09 22:21:32.169 DVBSM(/dev/dvb/adapter0/frontend0), Warning:
Cannot count Uncorrected Blocks
                        eno: Function not implemented (38)
2012-03-09 22:22:07.741 AutoExpire: CalcParams(): Max required Free
Space: 1.0 GB w/freq: 15 min
2012-03-09 22:24:12.222 Waited more than 60 seconds for shutdown to
complete - resetting idle time
2012-03-09 22:24:14.250 I'm idle now... shutdown will occur in 120 seconds.

I need to do further tests to verify it is working properly.

Thanks
Rajil


More information about the mythtv-users mailing list