<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Jay's Technical Talk &#187; mythwelcome</title>
	<atom:link href="http://www.summet.com/blog/tag/mythwelcome/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.summet.com/blog</link>
	<description>My external memory</description>
	<lastBuildDate>Mon, 23 Jan 2012 01:54:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>MythWelcome Menu / GUI slowness</title>
		<link>http://www.summet.com/blog/2009/02/14/mythwelcome-menu-gui-slowness/</link>
		<comments>http://www.summet.com/blog/2009/02/14/mythwelcome-menu-gui-slowness/#comments</comments>
		<pubDate>Sat, 14 Feb 2009 18:27:59 +0000</pubDate>
		<dc:creator>Jay</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[mythtv]]></category>
		<category><![CDATA[mythwelcome]]></category>

		<guid isPermaLink="false">http://www.summet.com/blog/?p=504</guid>
		<description><![CDATA[On my 0.21-release-fixes codebase, MythWelcome would pause for a long time (2-3 seconds) after I pressed the &#8220;MENU&#8221; key before making the menu pop up. This was because a call to &#8220;mythshutdown &#8211;status&#8221; was taking several seconds to return, and MythWelcome waited for the return value of that message before drawing the menu (It wanted [...]
Related posts:<ol>
<li><a href='http://www.summet.com/blog/2008/04/13/dpms-monitor-control-via-remote-control-on-myth-tv/' rel='bookmark' title='DPMS monitor control via remote control on Myth TV'>DPMS monitor control via remote control on Myth TV</a></li>
<li><a href='http://www.summet.com/blog/2007/03/16/how-to-pair-a-motorola-hs850-bluetooth-headset/' rel='bookmark' title='How to pair a Motorola HS850 bluetooth headset'>How to pair a Motorola HS850 bluetooth headset</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>On my 0.21-release-fixes codebase, MythWelcome would pause for a long time (2-3 seconds) after I pressed the &#8220;MENU&#8221; key before making the menu pop up.   This was because a call to &#8220;mythshutdown &#8211;status&#8221; was taking several seconds to return, and MythWelcome waited for the return value of that message before drawing the menu (It wanted to know if it should draw a &#8220;unlock&#8221; or a &#8220;lock&#8221; button.)<br />
<span id="more-504"></span></p>
<p>I suspect that mythshutdown &#8211;status isn&#8217;t supposed to take this long, but I&#8217;ve coded up a quick hack in mythWelcome that fixes the UI pause problem.  </p>
<p>Because MythWelcome periodically checks the status of the system (in the updateStatusMessage function), I just cached this status in a global variable. When the &#8220;Menu&#8221; event is processed, it checks the cached status variable and draws the menu immediately, (only calling &#8220;mythshutdown &#8211;status&#8221; if the status has not already been cached.)</p>
<p>Obviously, if somebody changes the lock status of the machine between the last call to updateStatusMessage and the &#8220;Menu&#8221; button being pressed, the menu will have the wrong button on it. (I am willing to live with this.)</p>
<p>I am not suggesting that the attached patch be integrated with the MythTv codebase (my understanding is that the code in Trunk does not suffer from the problem I am trying to solve), but if you are running 0.21 and want to solve the problem I&#8217;ve described, the following patch (to programs/mythwelcome/welcomedialog.cpp) will do it.</p>
<p><a href='http://www.summet.com/blog/wp-content/uploads/2009/02/mythwelcome_patch.diff'>mythwelcome_patch</a></p>
<p><map name='google_ad_map_504_faa54e7073bca4ae'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/504?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_504_faa54e7073bca4ae' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=504&amp;url= http%3A%2F%2Fwww.summet.com%2Fblog%2F2009%2F02%2F14%2Fmythwelcome-menu-gui-slowness%2F' /></p><p>Related posts:<ol>
<li><a href='http://www.summet.com/blog/2008/04/13/dpms-monitor-control-via-remote-control-on-myth-tv/' rel='bookmark' title='DPMS monitor control via remote control on Myth TV'>DPMS monitor control via remote control on Myth TV</a></li>
<li><a href='http://www.summet.com/blog/2007/03/16/how-to-pair-a-motorola-hs850-bluetooth-headset/' rel='bookmark' title='How to pair a Motorola HS850 bluetooth headset'>How to pair a Motorola HS850 bluetooth headset</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.summet.com/blog/2009/02/14/mythwelcome-menu-gui-slowness/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

