<?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>SysAdmin Adventures &#187; hal</title>
	<atom:link href="http://blog.tpa.me.uk/tag/hal/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.tpa.me.uk</link>
	<description>Tech notes from a Systems Administrator</description>
	<lastBuildDate>Mon, 31 Oct 2011 11:09:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Slackware 13.37 &#8211; Xorg + Hal</title>
		<link>http://blog.tpa.me.uk/2011/03/29/slackware-13-37-xorg-hal/</link>
		<comments>http://blog.tpa.me.uk/2011/03/29/slackware-13-37-xorg-hal/#comments</comments>
		<pubDate>Tue, 29 Mar 2011 12:17:11 +0000</pubDate>
		<dc:creator>Zordrak</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Slackware]]></category>
		<category><![CDATA[13.37]]></category>
		<category><![CDATA[hal]]></category>
		<category><![CDATA[keyboard]]></category>
		<category><![CDATA[layout]]></category>
		<category><![CDATA[udev]]></category>
		<category><![CDATA[Xorg]]></category>

		<guid isPermaLink="false">http://blog.tpa.me.uk/?p=418</guid>
		<description><![CDATA[The divorce was a long time coming. The papers are finally signed. Xorg has dumped hal and eloped with udev. Keyboard layout modifications are back to (almost) normal &#8211; but instead of using /etc/X11/xorg.conf, we&#8217;re now using /etc/X11/xorg.conf.d/90-keyboard-layout.conf. To change your keyboard layout from US to GB (for example): # cp /{usr/share,etc}/X11/xorg.conf.d/90-keyboard-layout.conf # vi /etc/X11/xorg.conf.d/90-keyboard-layout.conf [...]]]></description>
			<content:encoded><![CDATA[<p>The divorce was a long time coming. The papers are finally signed. Xorg has dumped hal and eloped with udev.</p>
<p>Keyboard layout modifications are back to (almost) normal &#8211; but instead of using /etc/X11/xorg.conf, we&#8217;re now using /etc/X11/xorg.conf.d/90-keyboard-layout.conf.</p>
<p>To change your keyboard layout from US to GB (for example):</p>
<div class="codecolorer-container bash geshi" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;"># cp /{usr/share,etc}/X11/xorg.conf.d/90-keyboard-layout.conf</span><br />
<span style="color: #666666; font-style: italic;"># vi /etc/X11/xorg.conf.d/90-keyboard-layout.conf</span></div></div>
<p>Modify the file to replace:</p>
<blockquote><p>
        Option &#8220;XkbLayout&#8221; &#8220;us&#8221;
</p></blockquote>
<p>With:</p>
<blockquote><p>
        Option &#8220;XkbLayout&#8221; &#8220;gb&#8221;
</p></blockquote>
<p>.. just as you would have done a few years ago with xorg.conf.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.tpa.me.uk/2011/03/29/slackware-13-37-xorg-hal/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>If your keyboard and mouse are not working in X in Slackware 13&#8230;</title>
		<link>http://blog.tpa.me.uk/2009/09/22/if-your-keyboard-and-mouse-are-not-working-in-x-in-slackware-13/</link>
		<comments>http://blog.tpa.me.uk/2009/09/22/if-your-keyboard-and-mouse-are-not-working-in-x-in-slackware-13/#comments</comments>
		<pubDate>Tue, 22 Sep 2009 12:27:25 +0000</pubDate>
		<dc:creator>Zordrak</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Slackware]]></category>
		<category><![CDATA[hal]]></category>
		<category><![CDATA[hald]]></category>
		<category><![CDATA[keyboard]]></category>
		<category><![CDATA[mouse]]></category>
		<category><![CDATA[X]]></category>
		<category><![CDATA[Xorg]]></category>

		<guid isPermaLink="false">http://blog.tpa.me.uk/?p=160</guid>
		<description><![CDATA[At least once a week I see someone with this issue. With reference to my earlier post about Xorg + Hal, by default, Xorg in Slackware 13 gets its hardware information from hald instead of an xorg.conf file. If you have no xorg.conf file and hald is not running, your keyboard and mouse will not [...]]]></description>
			<content:encoded><![CDATA[<p>At least once a week I see someone with this issue.</p>
<p>With reference to my earlier post about <a href="http://blog.tpa.me.uk/2009/08/30/slackware-13-0-xorg-hal/">Xorg + Hal</a>, by default, Xorg in Slackware 13 gets its hardware information from hald instead of an xorg.conf file. If you have no xorg.conf file and hald is not running, your keyboard and mouse will not work when you start X.</p>
<ul>
<li>The Cause: You disabled or broke hal.</li>
<li>The Solution: Darwinist Determinism.</li>
</ul>
<p>Failing the first solution:</p>
<div class="codecolorer-container bash geshi" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">chmod</span> a+x <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>rc.d<span style="color: #000000; font-weight: bold;">/</span>rc.hald<br />
<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>rc.d<span style="color: #000000; font-weight: bold;">/</span>rc.hald start</div></div>
<p>Then restart X or reboot (probably easier to just reboot and it clears any anomalies).</p>
<p>If it still doesn&#8217;t work, check that your /etc/rc.d/rc.hald script is not empty (I don&#8217;t know how he did it, but I did see someone who&#8217;d zeroed his script during an upgrade).</p>
<p>If it <em>still</em> doesn&#8217;t work, then you probably actually have a problem rather than just a failure on your part and it&#8217;s time to go searching for likely causes. Best place to start would be to google your specific hardware in relation to hal.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.tpa.me.uk/2009/09/22/if-your-keyboard-and-mouse-are-not-working-in-x-in-slackware-13/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Slackware 13.0 &#8211; Xorg + Hal</title>
		<link>http://blog.tpa.me.uk/2009/08/30/slackware-13-0-xorg-hal/</link>
		<comments>http://blog.tpa.me.uk/2009/08/30/slackware-13-0-xorg-hal/#comments</comments>
		<pubDate>Sun, 30 Aug 2009 15:04:30 +0000</pubDate>
		<dc:creator>Zordrak</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Slackware]]></category>
		<category><![CDATA[driver]]></category>
		<category><![CDATA[graphics]]></category>
		<category><![CDATA[hal]]></category>
		<category><![CDATA[i18n]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[Xorg]]></category>

		<guid isPermaLink="false">https://blog.tpa.me.uk/?p=13</guid>
		<description><![CDATA[A lot of people have been coming a cropper on the new Xorg in Slackware 13.0. Because Xorg now loads hardware information automatically via hal  by default, people are confused about how to set things up that they&#8217;re used to setting up in the xorg.conf. Now, a lot of people have been choosing to shy [...]]]></description>
			<content:encoded><![CDATA[<p>A lot of people have been coming a cropper on the new Xorg in Slackware 13.0. Because Xorg now loads hardware information automatically via hal  by default, people are confused about how to set things up that they&#8217;re used to setting up in the xorg.conf.</p>
<p>Now, a lot of people have been choosing to shy away from the hal-based auto-detection and simply turn it off. That was my initial reaction too, but the bottom line is that this was brought in as an improvement and if you can get your head around it it may prove to save you effort in the long run.</p>
<p>The two things that affect me in a normal set-up are graphics and keyboard layout.<br />
<br clear="none" /><br />
<strong>Graphics</strong></p>
<p>If you&#8217;re going to use the open source driver shipped with the kernel for your graphics card you almost certainly don&#8217;t have to do a thing. Hal will pick up your card, and your driver will be loaded into Xorg. If you need a different driver like the proprietary nVidia driver, then it&#8217;s business as usual: run the installer, let it create an xorg.conf for you and that information will be used by Xorg.</p>
<p>You might want to check the xorg.conf that gets created as the installer may not be ready for hal yet and may try to insert useless keyboard/mouse information because the installer thinks it&#8217;s required.<br />
<br clear="none" /><br />
<strong>Keyboard Layout</strong></p>
<p>Being in the UK, I use UK keyboards. They are different ot US keyboards in that they have £ above 3 instead of # and &#8221; above 2 instead of @ as well as couple of other subtle differences. I also use the GB Dvorak layout for my IRC box and again, this needs a modification.</p>
<p>You&#8217;re probably used to loading up your xorg.conf and modifying:</p>
<pre>Option     "XkbLayout"     "us"</pre>
<p>to:</p>
<pre>Option     "XkbLayout"     "gb"</pre>
<p>or whatever is relevant to your locale. Well, it&#8217;s different now, but practically just as simple. Instead of telling Xorg about your layout, you now tell hal instead. To do this, you need to change the hal config, but you don&#8217;t modify the configuration &#8216;in-place&#8217;, you copy the config to a secondary location, and then make the changes you need. In Slackware 13.0:</p>
<div class="codecolorer-container bash geshi" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">cp</span> <span style="color: #660033;">-av</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>hal<span style="color: #000000; font-weight: bold;">/</span>fdi<span style="color: #000000; font-weight: bold;">/</span>policy<span style="color: #000000; font-weight: bold;">/</span>10osvendor<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">10</span>-keymap.fdi <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>hal<span style="color: #000000; font-weight: bold;">/</span>fdi<span style="color: #000000; font-weight: bold;">/</span>policy<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">10</span>-keymap.fdi<br />
<span style="color: #c20cb9; font-weight: bold;">vi</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>hal<span style="color: #000000; font-weight: bold;">/</span>fdi<span style="color: #000000; font-weight: bold;">/</span>policy<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">10</span>-keymap.fdi</div></div>
<p><br clear="none" /><br />
Modify:</p>
<div class="codecolorer-container xml geshi" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="xml codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;merge</span> <span style="color: #000066;">key</span>=<span style="color: #ff0000;">&quot;input.xkb.layout&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;string&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>us<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/merge<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;merge</span> <span style="color: #000066;">key</span>=<span style="color: #ff0000;">&quot;input.xkb.variant&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;string&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span></div></div>
<p>To:</p>
<div class="codecolorer-container xml geshi" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="xml codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;merge</span> <span style="color: #000066;">key</span>=<span style="color: #ff0000;">&quot;input.xkb.layout&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;string&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>gb<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/merge<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;merge</span> <span style="color: #000066;">key</span>=<span style="color: #ff0000;">&quot;input.xkb.variant&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;string&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span></div></div>
<p>Or for uk-dvorak:</p>
<div class="codecolorer-container xml geshi" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="xml codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;merge</span> <span style="color: #000066;">key</span>=<span style="color: #ff0000;">&quot;input.xkb.layout&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;string&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>gb<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/merge<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;merge</span> <span style="color: #000066;">key</span>=<span style="color: #ff0000;">&quot;input.xkb.variant&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;string&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>dvorak<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/merge<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></div>
<p><br clear="none" /><br />
Restart hal. Restart X.<br />
<br clear="none" /><br />
Job done.<br />
<br clear="none" /><br />
<br clear="none" /></p>
<p><em>Post followed-up by:<br />
<a href="http://blog.tpa.me.uk/2011/03/29/slackware-13-37-xorg-hal/">Slackware 13.37 &#8211; Xorg + Hal</a></em></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.tpa.me.uk/2009/08/30/slackware-13-0-xorg-hal/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
	</channel>
</rss>

