<?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>Fabio Falcinelli &#187; Xorg</title>
	<atom:link href="http://www.fabiofalcinelli.it/tag/xorg/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.fabiofalcinelli.it</link>
	<description>Interessi e appunti</description>
	<lastBuildDate>Fri, 03 Sep 2010 18:42:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Xorg 1.6 &#8211; Ctrl + alt + backspace</title>
		<link>http://www.fabiofalcinelli.it/2009/06/xorg-16-ctrl-alt-backspace/</link>
		<comments>http://www.fabiofalcinelli.it/2009/06/xorg-16-ctrl-alt-backspace/#comments</comments>
		<pubDate>Tue, 02 Jun 2009 10:23:07 +0000</pubDate>
		<dc:creator>Fabio</dc:creator>
				<category><![CDATA[Information Technology]]></category>
		<category><![CDATA[OpenSource]]></category>
		<category><![CDATA[Archlinux]]></category>
		<category><![CDATA[HAL]]></category>
		<category><![CDATA[Xorg]]></category>

		<guid isPermaLink="false">http://www.fabiofalcinelli.it/?p=234</guid>
		<description><![CDATA[Una delle feature introdotte nella versione 1.6 di Xorg è la disabilitazione di default della combinazione ctrl+alt+backspace. Sulle mailing list è possibile leggere molto a riguardo, sul fatto che &#8220;normalmente&#8221; un riavvio del server X non dovrebbe essere necessario e su quanto, per un nuovo utente, possa essere semplice digitare accidentalmente la combinazione e ritrovarsi [...]]]></description>
			<content:encoded><![CDATA[<p>Una delle<em> feature </em>introdotte nella versione 1.6 di Xorg è la disabilitazione di default della combinazione <em>ctrl+alt+backspace</em>.</p>
<p>Sulle mailing list è possibile leggere molto a riguardo, sul fatto che &#8220;normalmente&#8221; un riavvio del server X non dovrebbe essere necessario e su quanto, per un nuovo utente, possa essere semplice digitare accidentalmente la combinazione e ritrovarsi con il lavoro perso e una bella schermata di login senza sapere perché.</p>
<p>In effetti le ragioni sono plausibili, ma per alcuni il &#8220;normalmente&#8221;, significa aver necessità di riavviare X senza dover eseguire il kill del processo da un terminale: in passato mi sono capitate delle situazioni in cui X si è  completamente congelato e con un <em>ctrl+alt+backspace</em> si è ripristinato il tutto senza dover riavviare l&#8217;intero sistema. Avendo l&#8217;opzione disabilitata, se il terminale (<em>ctrl+alt+f1&#8230;f6</em>)<em> </em>non risponde ai comandi allora non resta che il reset. Nel mio caso, ho preferito riabilitare l&#8217;opzione, aggiungendo al file <em>xorg.conf </em>(solitamente in <em>/etc/X11</em>) l&#8217;opzione &#8220;<em>DontZap</em>&#8221; ed impostandola a &#8220;<em>false</em>&#8220;. In proposito, riporto la sezione del mio file di configurazione:</p>
<div class="codecolorer-container xorg_conf twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="xorg_conf codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #b1b100;">Section</span> <span style="color: #0000ff;">&quot;ServerFlags&quot;</span><br />
<span style="color: #adadad; font-style: italic;"># &nbsp; Option &quot;AllowMouseOpenFail&quot; &nbsp;&quot;true&quot;</span><br />
<span style="color: #adadad; font-style: italic;"># &nbsp; &nbsp; &nbsp;Option &quot;AutoAddDevices&quot; &quot;False&quot;</span><br />
&nbsp;<span style="color: #990000;">Option</span> &nbsp;<span style="color: #0000ff;">&quot;DontZap&quot;</span> <span style="color: #0000ff;">&quot;False&quot;</span><br />
<span style="color: #b1b100;">EndSection</span></div></div>
<p>In successivi aggiornamenti, è stata introdotta anche su HAL una disabilitazione della combinazione. Per riattivarla è sufficiente aggiungere questa entry</p>
<div class="codecolorer-container xml twitlight" 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.options&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><br />
terminate:ctrl_alt_bksp<br />
<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>all&#8217;interno del file <em>/etc/hal/fdi/policy/10-keymap.fdi</em></p>
<p>In caso il file non fosse presente, copiarlo da <em>/usr/share/hal/fdi/policy/10osvendor</em></p>
<div class="codecolorer-container bash twitlight" 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: #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 \<br />
&nbsp; &nbsp; <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></div></div>
<p>E modificarlo aggiungendo la entry di cui sopra.</p>
<p>Riporto di seguito il mio file keymap che funziona correttamente utilizzando <em>entrance</em> come login manager:</p>
<div class="codecolorer-container xml twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:300px;"><div class="xml codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp;<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;deviceinfo</span> <span style="color: #000066;">version</span>=<span style="color: #ff0000;">&quot;0.2&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><br />
&nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;device<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;match</span> <span style="color: #000066;">key</span>=<span style="color: #ff0000;">&quot;info.capabilities&quot;</span> <span style="color: #000066;">contains</span>=<span style="color: #ff0000;">&quot;input.keymap&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;append</span> <span style="color: #000066;">key</span>=<span style="color: #ff0000;">&quot;info.callouts.add&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;strlist&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>hal-setup-keymap<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/append<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/match<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
<br />
&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;match</span> <span style="color: #000066;">key</span>=<span style="color: #ff0000;">&quot;info.capabilities&quot;</span> <span style="color: #000066;">contains</span>=<span style="color: #ff0000;">&quot;input.keys&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; <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.rules&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>base<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 />
<br />
&nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">&lt;!-- If we're using Linux, we use evdev by default (falling back to</span><br />
<span style="color: #808080; font-style: italic;"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; keyboard otherwise). --&gt;</span><br />
&nbsp; &nbsp; &nbsp; <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.model&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>keyboard<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 />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/match<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;match</span> <span style="color: #000066;">key</span>=<span style="color: #ff0000;">&quot;/org/freedesktop/Hal/devices/computer:system.kernel.name&quot;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066;">string</span>=<span style="color: #ff0000;">&quot;Linux&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <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.model&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>evdev<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 />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/match<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
<br />
&nbsp; &nbsp; &nbsp; <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>it<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 />
&nbsp; &nbsp; &nbsp; <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><br />
&nbsp; &nbsp; &nbsp; <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.options&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>terminate:ctrl_alt_bksp<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 />
&nbsp; &nbsp; <br />
&nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/device<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/deviceinfo<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></div>
<p>Infine, se non si sta usando l&#8217;integrazione Xorg/HAL occorrerà aggiungere una opzione nel file <em>/etc/X11/xorg.conf</em> all&#8217;interno della sezione keyboard</p>
<div class="codecolorer-container xorg_conf twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="xorg_conf codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #990000;">Option</span> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;XkbOptions&quot;</span> <span style="color: #0000ff;">&quot;terminate:ctrl_alt_bksp&quot;</span></div></div>
<p>Al solito, spero che a qualcuno sia utile ;)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fabiofalcinelli.it/2009/06/xorg-16-ctrl-alt-backspace/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Xorg 1.6 e HAL</title>
		<link>http://www.fabiofalcinelli.it/2009/04/xorg-16-e-hal/</link>
		<comments>http://www.fabiofalcinelli.it/2009/04/xorg-16-e-hal/#comments</comments>
		<pubDate>Mon, 20 Apr 2009 20:54:44 +0000</pubDate>
		<dc:creator>Fabio</dc:creator>
				<category><![CDATA[Information Technology]]></category>
		<category><![CDATA[OpenSource]]></category>
		<category><![CDATA[Archlinux]]></category>
		<category><![CDATA[HAL]]></category>
		<category><![CDATA[XML]]></category>
		<category><![CDATA[Xorg]]></category>

		<guid isPermaLink="false">http://www.fabiofalcinelli.it/?p=167</guid>
		<description><![CDATA[Mi è stato chiesto perché tenessi commentata l&#8217;opzione AutoAddDevices nel file xorg.conf . Beh perché non ho avuto problemi con l&#8217;integrazione tra X e HAL (Hardware Abstraction Layer): è stato sufficiente traslare le opzioni che avevo all&#8217;interno di xorg.conf in un file XML di policy per HAL. È più facile a farsi che a dirsi [...]]]></description>
			<content:encoded><![CDATA[<p>Mi è stato chiesto perché tenessi commentata l&#8217;opzione <em>AutoAddDevices</em> nel file xorg.conf . Beh perché non ho avuto problemi con l&#8217;integrazione tra X e HAL (Hardware Abstraction Layer): è stato sufficiente traslare le opzioni che avevo all&#8217;interno di xorg.conf in un file XML di policy per HAL.</p>
<p>È più facile a farsi che a dirsi in questo caso! Vi mostro come esempio la mia configurazione del <em>touchpad</em>. In Xorg.conf avevo le seguenti opzioni:</p>
<div class="codecolorer-container xorg_conf twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:300px;"><div class="xorg_conf codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #b1b100;">Section</span> <span style="color: #0000ff;">&quot;InputDevice&quot;</span><br />
&nbsp;<span style="color: #990000;">Driver</span> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;synaptics&quot;</span><br />
&nbsp;<span style="color: #990000;">Identifier</span> &nbsp; &nbsp; <span style="color: #0000ff;">&quot;Touchpad&quot;</span><br />
&nbsp;<span style="color: #adadad; font-style: italic;">#Option&nbsp; &nbsp; &nbsp; &nbsp; &quot;CorePointer&quot;</span><br />
&nbsp;<span style="color: #990000;">Option</span> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;Device&quot;</span> &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">&quot;/dev/psaux&quot;</span><br />
&nbsp;<span style="color: #990000;">Option</span> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;Protocol&quot;</span> &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">&quot;auto-dev&quot;</span><br />
&nbsp;<span style="color: #adadad; font-style: italic;">#Option &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &quot;LeftEdge&quot; &nbsp; &nbsp; &nbsp;&quot;1700&quot;</span><br />
&nbsp;<span style="color: #990000;">Option</span> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;RightEdge&quot;</span> &nbsp; &nbsp; <span style="color: #0000ff;">&quot;5300&quot;</span><br />
&nbsp;<span style="color: #adadad; font-style: italic;">#Option &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &quot;TopEdge&quot; &nbsp; &nbsp; &nbsp; &quot;1700&quot;</span><br />
&nbsp;<span style="color: #adadad; font-style: italic;">#Option &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &quot;BottomEdge&quot; &nbsp; &nbsp;&quot;4200&quot;</span><br />
&nbsp;<span style="color: #990000;">Option</span> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;FingerLow&quot;</span> &nbsp; &nbsp; <span style="color: #0000ff;">&quot;25&quot;</span><br />
&nbsp;<span style="color: #990000;">Option</span> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;FingerHigh&quot;</span> &nbsp; &nbsp;<span style="color: #0000ff;">&quot;30&quot;</span><br />
&nbsp;<span style="color: #990000;">Option</span> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;MaxTapTime&quot;</span> &nbsp; &nbsp;<span style="color: #0000ff;">&quot;180&quot;</span><br />
&nbsp;<span style="color: #990000;">Option</span> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;MaxTapMove&quot;</span> &nbsp; &nbsp;<span style="color: #0000ff;">&quot;220&quot;</span><br />
&nbsp;<span style="color: #990000;">Option</span> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;VertScrollDelta&quot;</span> <span style="color: #0000ff;">&quot;100&quot;</span><br />
&nbsp;<span style="color: #990000;">Option</span> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;MinSpeed&quot;</span> &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">&quot;0.06&quot;</span><br />
&nbsp;<span style="color: #990000;">Option</span> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;MaxSpeed&quot;</span> &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">&quot;0.18&quot;</span><br />
<span style="color: #adadad; font-style: italic;">#Option &nbsp; &nbsp; &nbsp; &nbsp; &quot;AccelFactor&quot; &quot;0.0010&quot;</span><br />
&nbsp;<span style="color: #990000;">Option</span> &nbsp; &nbsp; <span style="color: #0000ff;">&quot;AccelFactor&quot;</span> &nbsp; <span style="color: #0000ff;">&quot;0.0050&quot;</span>&nbsp; &nbsp; <br />
&nbsp;<span style="color: #990000;">Option</span> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;SHMConfig&quot;</span> &nbsp; &nbsp; <span style="color: #0000ff;">&quot;on&quot;</span><br />
&nbsp;<span style="color: #990000;">Option</span> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;Repeater&quot;</span> &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">&quot;/dev/ps2mouse&quot;</span><br />
&nbsp;<span style="color: #990000;">Option</span> &nbsp; &nbsp; <span style="color: #0000ff;">&quot;HorizEdgeScroll&quot;</span> <span style="color: #0000ff;">&quot;false&quot;</span> &nbsp; <br />
&nbsp;<span style="color: #990000;">Option</span> &nbsp; &nbsp; <span style="color: #0000ff;">&quot;VertEdgeScroll&quot;</span> <span style="color: #0000ff;">&quot;true&quot;</span> <br />
&nbsp;<span style="color: #adadad; font-style: italic;">#Option &nbsp; &nbsp;&nbsp; &nbsp; &quot;GrabEventDevice&quot; &quot;true&quot;</span><br />
<span style="color: #b1b100;">EndSection</span></div></div>
<p>che sono diventate, né più né meno, il file <em>/etc/hal/fdi/policy/11-x11-synaptics.fdi</em> :</p>
<div class="codecolorer-container xml twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:300px;"><div class="xml codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;">&lt; ?xml <span style="color: #000066;">version</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span> <span style="color: #000066;">encoding</span>=<span style="color: #ff0000;">&quot;ISO-8859-1&quot;</span><span style="color: #000000; font-weight: bold;">?&gt;</span></span><br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;deviceinfo</span> <span style="color: #000066;">version</span>=<span style="color: #ff0000;">&quot;0.2&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><br />
&nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;device<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;match</span> <span style="color: #000066;">key</span>=<span style="color: #ff0000;">&quot;info.capabilities&quot;</span> <span style="color: #000066;">contains</span>=<span style="color: #ff0000;">&quot;input.touchpad&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><br />
&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/match<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;match</span> <span style="color: #000066;">key</span>=<span style="color: #ff0000;">&quot;info.product&quot;</span> <span style="color: #000066;">contains</span>=<span style="color: #ff0000;">&quot;Synaptics TouchPad&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp;<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.x11_driver&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>synaptics<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 />
&nbsp;<span style="color: #808080; font-style: italic;">&lt;!-- Arbitrary options can be passed to the driver using </span><br />
<span style="color: #808080; font-style: italic;"> &nbsp; &nbsp; &nbsp;the input.x11_options property since xorg-server-1.5. --&gt;</span><br />
&nbsp;<span style="color: #808080; font-style: italic;">&lt;!-- EXAMPLE:</span><br />
<span style="color: #808080; font-style: italic;"> &lt;merge key=&quot;input.x11_options.LeftEdge&quot; type=&quot;string&quot;&gt;120</span><br />
<span style="color: #808080; font-style: italic;"> --&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp;<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.x11_options.AlwaysCore&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>true<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 />
&nbsp; &nbsp; &nbsp; &nbsp;<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.x11_options.RightEdge&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>5300<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 />
&nbsp; &nbsp; &nbsp; &nbsp;<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.x11_options.SHMConfig&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>on<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 />
&nbsp; &nbsp; &nbsp; &nbsp;<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.x11_options.VertEdgeScroll&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>true<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 />
&nbsp; &nbsp; &nbsp; &nbsp;<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.x11_options.HorizEdgeScroll&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>false<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 />
&nbsp; &nbsp; &nbsp; &nbsp;<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.x11_options.TapButton1&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>1<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 />
&nbsp; &nbsp; &nbsp; &nbsp;<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.x11_options.TapButton2&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>2<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 />
&nbsp; &nbsp; &nbsp; &nbsp;<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.x11_options.TapButton3&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>3<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 />
&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/match<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;match</span> <span style="color: #000066;">key</span>=<span style="color: #ff0000;">&quot;info.product&quot;</span> <span style="color: #000066;">contains</span>=<span style="color: #ff0000;">&quot;AlpsPS/2 ALPS&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp;<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.x11_driver&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>synaptics<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 />
&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/match<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;match</span> <span style="color: #000066;">key</span>=<span style="color: #ff0000;">&quot;info.product&quot;</span> <span style="color: #000066;">contains</span>=<span style="color: #ff0000;">&quot;appletouch&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp;<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.x11_driver&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>synaptics<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 />
&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/match<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;match</span> <span style="color: #000066;">key</span>=<span style="color: #ff0000;">&quot;info.product&quot;</span> <span style="color: #000066;">contains</span>=<span style="color: #ff0000;">&quot;bcm5974&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp;<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.x11_driver&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>synaptics<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 />
&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/match<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/device<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/deviceinfo<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></div>
<p>In sostanza, a parte direttive specifiche, le opzioni che a suo tempo avevo abilitato nel file di configurazione del server X sono diventate nodi di tipo stringa del file XML. In questo modo ho, per esempio, lo scrolling orizzontale disabilitato, funzionalità che trovo scomoda alquanto. Per maggiore chiarezza, facendo riferimento proprio al caso di scrolling orizzontale, quella che era</p>
<div class="codecolorer-container xorg_conf twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="xorg_conf codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #990000;">Option</span>&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;HorizEdgeScroll&quot;</span> <span style="color: #0000ff;">&quot;false&quot;</span></div></div>
<p>è diventata</p>
<div class="codecolorer-container xml twitlight" 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.x11_options.HorizEdgeScroll&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>false<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>E di qui si può procedere con le altre personalizzazioni.</p>
<p>Qual è il vantaggio dell&#8217;integrazione con HAL? Qualcuno dice &#8220;Nessuno, semplicemente sono state spostate le configurazioni dei device di xorg in un file XML&#8221;&#8230;<br />
Penso invece che sia un grande passo in avanti per la modularità e l&#8217;integrazione tra le diverse componenti, inoltre, se la periferica viene riconosciuta correttamente (e accade per buona parte delle periferiche di input) non è necessario toccare neanche un singolo file di configurazione, a meno di non aver necessità di impostazioni particolari: infatti nella mia configurazione di HAL, molte delle opzioni non sono state necessarie perché riconosciute correttamente in automatico.</p>
<p>Ora vi saluto e spero di non aver scritto troppe cavolate :)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fabiofalcinelli.it/2009/04/xorg-16-e-hal/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
