Mailing List Archive

A bit of a re-post. Mythwelcome does not shut down my system
A few weeks back i made a similar post, and Ihop I am not to pushy for re-posting.

About a month back (not sure of the exact revision) my system stopped shutting itself down. Mythwelcome states "The system is idle", but there is no countdown to shut down. I am at a loss as to why really. Mythshutdown seem to state "OK to shut down".

In my db I find the below (Current frontend is Mythbox)
value

data

hostname

AllowQuitShutdown

4

cookiemonster

AllowQuitShutdown

4

mythbox

MythShutdownLock

0

NULL

MythShutdownNextScheduled

2011-10-18T19:26:00

NULL

MythShutdownNvramCmd

sudo /usr/local/bin/setwakeup.sh $time

mythbox

MythShutdownNvramRestartCmd

mythbox

MythShutdownPowerOff

sudo shutdown -h now

mythbox

MythShutdownReboot

sudo reboot

mythbox

MythShutdownWakeupTime

2011-10-18T19:26:00

NULL

MythShutdownWakeupTimeFmt

time_t

mythbox

MythShutdownXTermCmd

xterm

mythbox

idleTimeoutSecs

360

NULL

idleWaitForRecordingTime

15

NULL




j2@MythBox:~$ mythbackend --version
Please attach all output as a file in bug reports.
MythTV Version : v0.25pre-3664-g990a68c
MythTV Branch : master
Network Protocol : 69
Library API : 0.25.20111031-1
QT Version : 4.6.2
Options compiled in:
linux release use_hidesyms using_alsa using_oss using_pulse using_backend using_bindings_perl using_bindings_python using_bindings_php using_dvb using_frontend using_hdhomerun using_hdpvr using_iptv using_ivtv using_joystick_menu using_lirc using_mheg using_opengl_video using_qtwebkit using_qtscript using_qtdbus using_v4l2 using_v4l1 using_x11 using_xv using_bindings_perl using_bindings_python using_bindings_php using_mythtranscode using_opengl using_vdpau using_ffmpeg_threads using_live using_mheg
j2@MythBox:~$

mythtv@MythBox:~$ mythshutdown -v -c
2011-11-05 12:07:26.124053 C mythshutdown version: master [v0.25pre-3664-g990a68c] www.mythtv.org
2011-11-05 12:07:26.124086 N Enabled verbose msgs: general
2011-11-05 12:07:26.124120 N Setting Log Level to LOG_INFO
2011-11-05 12:07:26.124175 I Added logging to the console
2011-11-05 12:07:26.124182 I Added database logging to table logging
2011-11-05 12:07:26.124253 N Setting up SIGHUP handler
2011-11-05 12:07:26.124316 N Using runtime prefix = /usr/local
2011-11-05 12:07:26.124326 N Using configuration directory = /home/mythtv/.mythtv
2011-11-05 12:07:26.125035 E Error parsing: /home/mythtv/.mythtv/config.xml at line: 1 column: 1
2011-11-05 12:07:26.125043 E Error Msg: unexpected end of file
2011-11-05 12:07:26.125245 N Empty LocalHostName.
2011-11-05 12:07:26.125254 I Using localhost value of MythBox
2011-11-05 12:07:26.125306 E Error parsing: /home/mythtv/.mythtv/config.xml at line: 1 column: 1
2011-11-05 12:07:26.125310 E Error Msg: unexpected end of file
2011-11-05 12:07:26.143203 I Database connection created: DBManager0
2011-11-05 12:07:26.143250 I New DB connection, total: 1
2011-11-05 12:07:26.152579 I Connected to database 'mythconverg' at host: localhost
2011-11-05 12:07:26.154075 I Database connection created: DBManager1
2011-11-05 12:07:26.154094 I New DB connection, total: 2
2011-11-05 12:07:26.154373 I Closing DB connection named 'DBManager0'
2011-11-05 12:07:26.154464 I Database connection created: DBManager2
2011-11-05 12:07:26.154480 I New DB connection, total: 2
2011-11-05 12:07:26.154703 I Connected to database 'mythconverg' at host: localhost
2011-11-05 12:07:26.154712 I Connected to database 'mythconverg' at host: localhost
2011-11-05 12:07:26.155441 I Current locale en_US
2011-11-05 12:07:26.155492 E Reading locale defaults from /usr/local/share/mythtv//locales/en_us.xml
2011-11-05 12:07:26.160940 I Mythshutdown: --check
2011-11-05 12:07:26.160947 I Mythshutdown: --status
2011-11-05 12:07:26.163980 I Starting IO manager (write)
2011-11-05 12:07:26.164037 I Starting process signal handler
2011-11-05 12:07:26.164402 I Starting IO manager (read)
2011-11-05 12:07:26.164661 I Starting process manager
2011-11-05 12:07:26.614715 I Mythshutdown: --status returned: 0
2011-11-05 12:07:26.614731 N OK to shutdown
2011-11-05 12:07:26.614735 I Mythshutdown: --check returned: 0
2011-11-05 12:07:26.615818 I Closing DB connection named 'DBManager1'
2011-11-05 12:07:26.665194 I Closing DB connection named 'DBManager2'
Re: A bit of a re-post. Mythwelcome does not shut down my system [ In reply to ]
*j2 at mupp </lists/engine?user=11692;list=mythtv>*

Have you checked the shutdown command that is set in the backend setup?
The setting is "Server halt command" and I have it set to "sudo shutdown
-P now" in my system.
If it uses sudo you also have to set up the sudoers file.
Perhaps you have some command in there that no longer works or your
sudoers has changed ...

Peter
Re: A bit of a re-post. Mythwelcome does not shut down my system [ In reply to ]
>Have you checked the shutdown command that is set in the backend setup?
>The setting is "Server halt command" and I have it set to "sudo shutdown -P now" in my system.
>If it uses sudo you also have to set up the sudoers file.
>Perhaps you have some command in there that no longer works or your sudoers has changed ...
>
>Peter

Hello!
As shown in my database dumps, the commands are set. (they are also shown in mythwelcome).
If a command "was not working" you would see the countdown reach 0 and then "nothing" (I have had that in the past)
But, as I stated, the countdown never starts at all.

Sudoers has not changes. No packages on the system has been updated. Only mythtv.
Re: A bit of a re-post. Mythwelcome does not shut down my system [ In reply to ]
On 5 November 2011 14:28, Jan Johansson <j2@mupp.net> wrote:

> >Have you checked the shutdown command that is set in the backend setup?
> >The setting is "Server halt command" and I have it set to "sudo shutdown
> -P now" in my system.
> >If it uses sudo you also have to set up the sudoers file.
> >Perhaps you have some command in there that no longer works or your
> sudoers has changed ...
> >
> >Peter****
>
> ** **
>
> Hello!****
>
> As shown in my database dumps, the commands are set. (they are also shown
> in mythwelcome).
> If a command “was not working” you would see the countdown reach 0 and
> then “nothing” (I have had that in the past)
> But, as I stated, the countdown never starts at all.
>
> Sudoers has not changes. No packages on the system has been updated. Only
> mythtv.****
>
> do you populated the EPG from EIT source(s)?
theres a setting in mythtv-setup that tells it how long to wait before it
does EIT scan.

the wiki tells you the exact parameters you need to set...
http://www.mythtv.org/wiki/ACPI_Wakeup#Backend_not_shutting_down_when_using_EIT
Re: A bit of a re-post. Mythwelcome does not shut down my system [ In reply to ]
>do you populated the EPG from EIT source(s)?
>theres a setting in mythtv-setup that tells it how long to wait before it does EIT scan.

>the wiki tells you the exact parameters you need to set...
>http://www.mythtv.org/wiki/ACPI_Wakeup#Backend_not_shutting_down_when_using_EIT

No, I am not using EIT. I changed the setting Backend Idle Before EIT Crawl to 2xmy Idle timeout. No change.
Re: A bit of a re-post. Mythwelcome does not shut down my system [ In reply to ]
Hi,

On 05/11/11 11:12, Jan Johansson wrote:
> About a month back (not sure of the exact revision) my system stopped
> shutting itself down. Mythwelcome states “The system is idle”, but there
> is no countdown to shut down. I am at a loss as to why really.
> Mythshutdown seem to state “OK to shut down”.
>
I've also recently updated and encountered exactly the same issue.
Today, after spending the week trying different settings with EIT etc.
to no avail, I sat down and worked my way through the issue.

Basically, and perhaps somewhat ironically, it is mythwelcome that is at
fault. At start-up one of its connections is announcing itself as
'Playback' which blocks the shutdown.

It doesn't appear to be anything in programs/mythwelcome/ itself (that
just connects as 'Monitor'; and will correcly do just that if the
backend is restarted underneath it).

So I can only assume it something in the shared routines it is using at
start-up (Haven't looked into that). I've worked around the issue with
just putting a very early call to ConnectToMasterServer in
programs/mythwelcome/main.cpp.

Attached are some diffs: the ConnectToMasterServer hack, and some
alterations to/additional logging from the idle checking routines that
made it easier for me to see part of what was going on.

It is early days, but from what I can now see in the logs - My box
should now start shutting itself down again...

Hope that's of use to someone..

Simon.,
Re: A bit of a re-post. Mythwelcome does not shut down my system [ In reply to ]
>Attached are some diffs: the ConnectToMasterServer hack, and some alterations to/additional logging from the idle checking routines that made >it easier for me to see part of what was going on.
>
>It is early days, but from what I can now see in the logs - My box should now start shutting itself down again...
>
>Hope that's of use to someone..

'scuse the non developer.. how would i merge this in my local git-copy?

Thanks!"
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://www.mythtv.org/mailman/listinfo/mythtv-users
Re: A bit of a re-post. Mythwelcome does not shut down my system [ In reply to ]
On 06/11/11 17:03, Jan Johansson wrote:
>> Attached are some diffs: the ConnectToMasterServer hack, and some alterations to/additional logging from the idle checking routines that made>it easier for me to see part of what was going on.
>>
>> It is early days, but from what I can now see in the logs - My box should now start shutting itself down again...
>>
>> Hope that's of use to someone..
>
> 'scuse the non developer.. how would i merge this in my local git-copy?
>

Sitting in your top-level directory (ie. the one containing mythtv &
mythplugins), do:

patch -p1 < myth-restart-diffs.txt

That should apply the changes - Just be aware that will stop you from
doing git pull or fetch unless you commit or stash them locally - I'm
really not a git expert so can't advise on the best way to handle that.

Simon.,
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://www.mythtv.org/mailman/listinfo/mythtv-users
Re: A bit of a re-post. Mythwelcome does not shut down my system [ In reply to ]
>patch -p1 < myth-restart-diffs.txt
>
>That should apply the changes - Just be aware that will stop you from doing git pull or fetch unless you commit or stash them locally - I'm really not >a git expert so can't advise on the best way to handle that.


I should have been more clear. Yeah, I know how to pathc, but it was the local stuff I wondered about. But then it occurred to me that I can just kill the tree and do a new clone if I should need.

Building now.
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://www.mythtv.org/mailman/listinfo/mythtv-users
Re: A bit of a re-post. Mythwelcome does not shut down my system [ In reply to ]
>It is early days, but from what I can now see in the logs - My box should now start shutting itself down again...

It worked for me. Thanks!
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://www.mythtv.org/mailman/listinfo/mythtv-users