<?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>Scott James Remnant &#187; plymouth</title>
	<atom:link href="http://netsplit.com/tag/plymouth/feed/" rel="self" type="application/rss+xml" />
	<link>http://netsplit.com</link>
	<description></description>
	<lastBuildDate>Fri, 18 May 2012 22:02:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Making a splash</title>
		<link>http://netsplit.com/2009/09/02/making-a-splash/</link>
		<comments>http://netsplit.com/2009/09/02/making-a-splash/#comments</comments>
		<pubDate>Wed, 02 Sep 2009 11:51:19 +0000</pubDate>
		<dc:creator>scott</dc:creator>
				<category><![CDATA[Canonical]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[boot]]></category>
		<category><![CDATA[plymouth]]></category>
		<category><![CDATA[Upstart]]></category>
		<category><![CDATA[usplash]]></category>
		<category><![CDATA[xsplash]]></category>

		<guid isPermaLink="false">http://www.netsplit.com/?p=204</guid>
		<description><![CDATA[As you probably know by now, even if you&#8217;re not following the karmic development closely, Ubuntu has gained new splash screen software called xsplash.  This is the hard work of Cody Russell and Ken VanDine of the Ubuntu Desktop Experience &#8230; <a href="http://netsplit.com/2009/09/02/making-a-splash/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>As you probably know by now, even if you&#8217;re not following the karmic development closely, Ubuntu has gained new splash screen software called <a href="https://launchpad.net/xsplash">xsplash</a>.  This is the hard work of Cody Russell and Ken VanDine of the Ubuntu Desktop Experience team.</p>
<p>There&#8217;s been some press coverage of this already, and various comments from different people raising some questions about why Ubuntu is going down this route.  Since this was largely my idea, I felt I should try and answer a few of the common ones.</p>
<h3>Isn&#8217;t this just rhgb?</h3>
<p>rhgb was the &#8220;RedHat Graphical Boot&#8221; system they used in RedHat and Fedora until the most recent Fedora releases.  It worked by starting an X Window System server and running the splash screen inside that.</p>
<p>This sounds very similar to xsplash, but with one key difference: the X server used by rhgb was shut down when boot finished, and a new X server started for the user to login with.</p>
<p>Instead, xsplash uses the same X server as the login window, and the same X server as your desktop.  In fact, it&#8217;s started by the GNOME Display Manager while it starts the greeter or auto-logins your desktop alongside.</p>
<h3>Why don&#8217;t you use Plymouth?</h3>
<p>Plymouth is RedHat&#8217;s replacement for rhgb, instead of using an X server it relies on Kernel Mode Setting to provide a framebuffer in the panel&#8217;s native resolution and colour depth and draws directly to that.  When the X server starts, the X server takes over the framebuffer without requiring a mode switch or a screen clear.</p>
<p>In many ways, Plymouth is simply a reimplementation of our original usplash.  Indeed, I found it quite ironic that some people have accused us of &#8220;NIH&#8221;ing xsplash instead of adopting Plymouth, when technically Plymouth is an &#8220;NIH&#8221;d usplash.</p>
<p>So really the question as to why we don&#8217;t use Plymouth is the same as to why we don&#8217;t use usplash.  We did actually consider replacing usplash with Plymouth since the implementation is rather cleaner, but Plymouth only supports Kernel Mode Setting drivers whereas usplash has a fall-back SVGA mode (it always had framebuffer support, thus KMS support, due to the Ubuntu PowerPC port).</p>
<h3>Why not continue using usplash?</h3>
<p>(or Plymouth, see above)</p>
<p>One of our main goals for Ubuntu is boot performance.  For Ubuntu 10.04 (that&#8217;s karmic+1) we&#8217;re targetting a 10s boot from the boot loader to a fully logged in desktop with idle disks.  To boot this fast requires some prioritisation.</p>
<p>We need the X Window System server for just about everything.  Until we&#8217;ve started the X server, we don&#8217;t have a display so can&#8217;t even start basic things like the underlying services and agents that run for a user&#8217;s login session.</p>
<p>Or, put another way, anything we do during boot that isn&#8217;t directly required to start the X server is delaying the boot.</p>
<p>The boot sequence must be setup in such a way that starting the X server is prioritised; once the X server is up, we can begin starting the user&#8217;s session (or the login screen session).  We can also start all those other system services that weren&#8217;t dependencies of the X server.</p>
<p>This pretty much turns the current sequence on its head, where the X server is one of the last things started rather than one of the first.</p>
<p>If we started a splash screen such as usplash before the X server was up, we&#8217;d still have to wait for the Kernel Mode Setting driver to be loaded (or hardware to be sufficiently probed to know that we don&#8217;t have a Kernel Mode Setting driver for it).  This is one of the primary dependencies of the X server too (the other is a mounted, writable filesystem), so in many cases we can start the X server at the same time!</p>
<p>Now, you could suggest that we do start the X server but also start the splash screen as well; and that the splash screen animates while the X server is running and the X server doesn&#8217;t paint to the screen until the desktop is logged in or the login screen is ready.  Unfortunately this simply doesn&#8217;t appear to be possible, the X server &#8220;takes over&#8221; the framebuffer in such a way that the splash screen simply freezes at that point (we can prevent it clearing the screen).  With an early X server start, it would spend more time frozen then it would animating.</p>
<p>This also wouldn&#8217;t work for the non-KMS case.</p>
<p>You could also argue that we could load the KMS drivers earlier, in the initramfs for example.  While possible, this adds a significant time to the boot time for the extra loading and probing required.  If we load the KMS driver in the initramfs, it takes about 8-10s to load the X server; if we load the KMS driver in the full system, it only takes about 6-8s to load the X server.  Easy win.</p>
<p>But what if we have to check the filesystem, or enter a decryption passphrase to mount it?  That&#8217;s why we still have usplash.  In those cases we will start usplash to display the progress or request the key.  The usplash theme will be themed such that when it finishes, and X starts up, it looks ok frozen for the short time until xsplash replaces it with an identical theme.</p>
<h3>But karmic doesn&#8217;t boot any faster</h3>
<p>Patience, my friend.  The 10s target is for Ubuntu 10.04 (karmic+1), not karmic (9.10).</p>
<p>That being said there are a number of updates planned for karmic that will boost the performance quite a bit, especially in terms of starting the X Window System server earlier.  These have always been targetted to land between Feature Freeze and Beta, simply because it&#8217;s delicate work that needed a lot of testing first and that everyone else&#8217;s uploads prior to Feature Freeze kept throwing it off.</p>
<p>Look for a call for testing RSN.</p>
]]></content:encoded>
			<wfw:commentRss>http://netsplit.com/2009/09/02/making-a-splash/feed/</wfw:commentRss>
		<slash:comments>82</slash:comments>
		</item>
	</channel>
</rss>

