<?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>Digitivity &#187; X.org</title>
	<atom:link href="http://digitivity.org/tag/x-org/feed" rel="self" type="application/rss+xml" />
	<link>http://digitivity.org</link>
	<description>The Digital Productivity Blog</description>
	<lastBuildDate>Sat, 24 Dec 2011 17:34:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Enabling Ctrl+Alt+Backspace to Kill X in Linux and Ubuntu GNOME</title>
		<link>http://digitivity.org/602/enabling-ctrlaltbackspace-to-kill-x-in-linux-and-ubuntu-gnome</link>
		<comments>http://digitivity.org/602/enabling-ctrlaltbackspace-to-kill-x-in-linux-and-ubuntu-gnome#comments</comments>
		<pubDate>Sat, 16 Jan 2010 13:11:07 +0000</pubDate>
		<dc:creator>Digitivity</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Alt+SysRq+R]]></category>
		<category><![CDATA[Ctrl+Alt+Backspace]]></category>
		<category><![CDATA[Ctrl+Alt+F1]]></category>
		<category><![CDATA[GNOME]]></category>
		<category><![CDATA[kill]]></category>
		<category><![CDATA[killall]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[X]]></category>
		<category><![CDATA[X server]]></category>
		<category><![CDATA[X.org]]></category>

		<guid isPermaLink="false">http://digitivity.org/?p=602</guid>
		<description><![CDATA[<p>Posted in <a href="http://digitivity.org/category/how-to" title="HowTo">HowTo</a></p>Earlier this year, X.org made a boneheaded move to drop the Ctrl+Alt+Backspace key combination as a default for killing the X Server. Huh? The X Server is the part of a Linux operating environment that provides graphics. Once in a while it may lock up, usually due to bad drivers. Other times programs just happen [...]


Related posts:<ol><li><a href='http://digitivity.org/848/ubuntu-gnome-panel-doesnt-autohide-solution' rel='bookmark' title='Permanent Link: Ubuntu GNOME Panel Doesn&#8217;t AutoHide [SOLUTION]'>Ubuntu GNOME Panel Doesn&#8217;t AutoHide [SOLUTION]</a></li>
<li><a href='http://digitivity.org/546/ubuntu-release-schedule-explained' rel='bookmark' title='Permanent Link: Ubuntu Release Schedule Explained'>Ubuntu Release Schedule Explained</a></li>
<li><a href='http://digitivity.org/976/gnome-3-no-minimize-maximize-buttons' rel='bookmark' title='Permanent Link: GNOME 3: No Minimize, Maximize Buttons'>GNOME 3: No Minimize, Maximize Buttons</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Earlier this year, X.org made a boneheaded move to drop the <strong>Ctrl+Alt+Backspace</strong> key combination as a default for killing the X Server.</p>
<h2>Huh?</h2>
<p>The <strong>X Server</strong> is the part of a Linux operating environment that provides graphics. Once in a while it may lock up, usually due to bad drivers. Other times programs just happen to be taking up all memory, or other problems that you don&#8217;t want to wait for ever to resolve by themselves. A quick fix is to just <strong>kill X</strong> (which also kills graphical applications), and restart it. (You don&#8217;t have to restart it, even, in distributions that are set up that way. In Ubuntu, X starts up again automatically.)</p>
<p><a href="http://digitivity.org/blog/wp-content/uploads/2010/01/another-explosion-in-space.jpg"><img src="http://digitivity.org/blog/wp-content/uploads/2010/01/another-explosion-in-space.jpg" alt="" title="Beginning of time" width="300" height="212" class="alignnone size-full wp-image-605" style="float: left; margin-right: 7px; margin-bottom: 7px; margin-top: 0px; " /></a>OK, ever since the beginning the time or of Linux, or something like that, <strong>Ctrl+Alt+Backspace</strong> has been the key combination to kill X. Earlier, this year, though, somebody (who shall remain nameless to prevent the ire of countless old Linux hands) changed X.org (the X server most often used with Linux) to not respond to Ctrl+Alt+Backspace.</p>
<p>I thought that the reasoning behind the move was ridiculous. It had something to do with Windows users accidentally hitting Ctrl+Alt+Backspace (does anybody do that?) and with a conflict with some Emacs key combinations.</p>
<p>Here&#8217;s what one upset user <a href="http://lists.x.org/archives/xorg-devel/2009-March/000522.html">said</a>:</p>
<blockquote><p>I will tell you that this argument about<br />
confusion is totally bogus from an entire Linux community standpoint. The Emacs community is miniscule in size comparison to the overall Linux community.  In over thirty years of working with *nix systems and thousands of users and machines not once has a user ever complained about confusion or problems involving the Ctrl-Alt-Backspace key combination.  I am concerned because it appears that a tiny minority of Emac users have managed to lobby for a very significant change in default behavior for X server control to the detriment of the majority of users and administrators in the Linux  community.</p></blockquote>
<h2>Disabling X&#8217;s DontZap to reenable Ctrl+Alt+Backspace</h2>
<p>The response was that you can reenable <strong>Ctrl+Alt+Backspace</strong> by making an entry in <strong>/etc/xorg.conf</strong>, the X configuration file:</p>

<div class="wp_syntax"><div class="code"><pre class="xorg_conf" style="font-family:monospace;"><span style="color: #b1b100;">Section</span> <span style="color: #0000ff;">&quot;ServerFlags&quot;</span>
<span style="color: #990000;">Option</span> <span style="color: #0000ff;">&quot;DontZap&quot;</span> <span style="color: #0000ff;">&quot;false&quot;</span>
<span style="color: #b1b100;">EndSection</span></pre></div></div>

<p>Well, OK, but the point was about the defaults. By default it would be handy to have Ctrl+Alt+Backspace already enabled so you can use it when you have a crash. Or when someone else does so you can tell them what to do about it.</p>
<p>Anyway, there&#8217;s one small problem: there&#8217;s no DontZap option anymore! They took that one away too!</p>
<p>Actually, they put the option into XKB (keyboard manager).</p>
<h2>Reenable Ctrl+Alt+Backspace in GNOME/Ubuntu</h2>
<p>In Ubuntu Karmic 9.10 (and probably other distributions running the GNOME desktop environment), it&#8217;s very easy to reenable <strong>Ctrl+Alt+Backspace</strong>. Just open the keyboard preferences dialog from the System: Preferences menu:</p>
<div id="attachment_606" class="wp-caption alignnone" style="width: 438px"><a href="http://digitivity.org/blog/wp-content/uploads/2010/01/ubuntu-karmic-opening-keyboard-preferences.jpg"><img src="http://digitivity.org/blog/wp-content/uploads/2010/01/ubuntu-karmic-opening-keyboard-preferences.jpg" alt="Ubuntu Karmic: Opening Keyboard Preferences" title="Ubuntu Karmic: Opening Keyboard Preferences" width="428" height="388" class="size-full wp-image-606" /></a><p class="wp-caption-text">Ubuntu Karmic: Opening Keyboard Preferences</p></div>
<p>On the Layouts tab, hit Layout Options:</p>
<div id="attachment_610" class="wp-caption alignnone" style="width: 491px"><a href="http://digitivity.org/blog/wp-content/uploads/2010/01/ubuntu-karmic-keyboard-preferences.png"><img src="http://digitivity.org/blog/wp-content/uploads/2010/01/ubuntu-karmic-keyboard-preferences.png" alt="Ubuntu Karmic: Keyboard Preferences" title="Ubuntu Karmic: Keyboard Preferences" width="481" height="521" class="size-full wp-image-610" /></a><p class="wp-caption-text">Ubuntu Karmic: Keyboard Preferences</p></div>
<p>This brings up the Keyboard Layout Options dialog.</p>
<div id="attachment_608" class="wp-caption alignnone" style="width: 522px"><a href="http://digitivity.org/blog/wp-content/uploads/2010/01/keyboard-layout-options-ctrl-alt-backspace-x-server.png"><img src="http://digitivity.org/blog/wp-content/uploads/2010/01/keyboard-layout-options-ctrl-alt-backspace-x-server-512x392.png" alt="Ubuntu Karmic: Keyboard Layout Options: Ctrl-Alt-Backspace" title="Ubuntu Karmic: Keyboard Layout Options: Ctrl-Alt-Backspace" width="512" height="392" class="size-medium wp-image-608" /></a><p class="wp-caption-text">Ubuntu Karmic: Keyboard Layout Options: Ctrl-Alt-Backspace</p></div>
<p>Open up the option for &#8220;Key sequence to <strong>kill the X server</strong>&#8220;. Check the box next to &#8220;Ctrl+Alt+Backspace&#8221;.</p>
<p>That&#8217;s it.</p>
<h3>Reenable Ctrl+Alt+Backspace in KDE and the command line</h3>
<p>You can do the same thing in KDE and the command line. See here for details:<br />
<a href="https://wiki.ubuntu.com/X/Config/DontZap"> https://wiki.ubuntu.com/X/Config/DontZap</a></p>
<h2>Other ways to regain control without killing the X server</h2>
<p>It&#8217;s much handier to have enabled this before a hang. But, if you haven&#8217;t, there are still a few options other than turning the computer on and off.</p>
<p>The first thing I often do if there&#8217;s a problem with X is to switch into a <strong>virtual console</strong>. That&#8217;s a text-based console where you can run a Bash shell. To do this press <strong>Ctrl+Alt+F1</strong> (hold down Control, then also Alt, then also F1). Then you can log in with username and password.</p>
<p>From there, you can run top to find out the offending program. I usually run htop, which is a nicer and easier program list than top and kill the program from there or exit and run kill -9 or <strong>killall</strong> from the command line. For example, let&#8217;s say VLC is hogging memory. I&#8217;ll do:</p>

<div class="wp_syntax"><div class="code"><pre class="sh" style="font-family:monospace;">killall vlc</pre></div></div>

<p><a href="http://digitivity.org/blog/wp-content/uploads/2010/01/cannon.jpg"><img src="http://digitivity.org/blog/wp-content/uploads/2010/01/cannon.jpg" alt="" title="cannon" width="75" height="100" class="alignnone size-full wp-image-604" style="float: left; margin-right: 7px; margin-bottom: 7px; margin-top: 0px; " /></a>This kills all vlc instances. This is often all that is required to return X back to normal, and so I don&#8217;t have kill X as well. After all, why use a cannon when a fly swatter will do?</p>
<p>Note: another key combination to be aware of is <strong>Alt+SysRq+R</strong>. This puts the keyboard into raw mode, meaning the hung X server won&#8217;t be processing key input. Then do <strong>Ctrl+Alt+F1</strong>. You&#8217;ll probably want to hold down the <strong>right Alt</strong> because the left one in combination with SysRq gives you a screenshot.</p>


<p>Related posts:<ol><li><a href='http://digitivity.org/848/ubuntu-gnome-panel-doesnt-autohide-solution' rel='bookmark' title='Permanent Link: Ubuntu GNOME Panel Doesn&#8217;t AutoHide [SOLUTION]'>Ubuntu GNOME Panel Doesn&#8217;t AutoHide [SOLUTION]</a></li>
<li><a href='http://digitivity.org/546/ubuntu-release-schedule-explained' rel='bookmark' title='Permanent Link: Ubuntu Release Schedule Explained'>Ubuntu Release Schedule Explained</a></li>
<li><a href='http://digitivity.org/976/gnome-3-no-minimize-maximize-buttons' rel='bookmark' title='Permanent Link: GNOME 3: No Minimize, Maximize Buttons'>GNOME 3: No Minimize, Maximize Buttons</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://digitivity.org/602/enabling-ctrlaltbackspace-to-kill-x-in-linux-and-ubuntu-gnome/feed</wfw:commentRss>
		<slash:comments>38</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Served from: digitivity.org @ 2012-05-24 00:34:21 -->
