<?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>Marcus Dillavou &#187; linux</title>
	<atom:link href="http://www.work.line72.net/tag/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.work.line72.net</link>
	<description>Putting bits in their place since &#039;97</description>
	<lastBuildDate>Tue, 04 Oct 2011 13:39:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>ELO Touchscreen monitor under Linux</title>
		<link>http://www.work.line72.net/2011/08/03/elo-touchscreen-monitor-under-linux/</link>
		<comments>http://www.work.line72.net/2011/08/03/elo-touchscreen-monitor-under-linux/#comments</comments>
		<pubDate>Wed, 03 Aug 2011 19:52:51 +0000</pubDate>
		<dc:creator>line72</dc:creator>
				<category><![CDATA[work]]></category>
		<category><![CDATA[elo]]></category>
		<category><![CDATA[evtouch]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[touchscreen]]></category>

		<guid isPermaLink="false">http://www.work.line72.net/?p=56</guid>
		<description><![CDATA[*Edit* I have updated this to no longer require you to edit xorg.conf. This also fixes issues if the touchscreen&#8217;s usb cable is hotplugged while X is already running. I recently purchased an ELO 1537L 15-inch open-frame touchmonitor for a project I am doing at work.  I have successfully gotten the touchscreen monitor to work [...]]]></description>
			<content:encoded><![CDATA[<p>*Edit* I have updated this to no longer require you to edit xorg.conf.  This also fixes issues if the touchscreen&#8217;s usb cable is hotplugged while X is already running.</p>
<p>I recently purchased an ELO 1537L 15-inch open-frame touchmonitor for a project I am doing at work.  I have successfully gotten the touchscreen monitor to work under linux (specifically Scientific 6.x) using USB (I haven&#8217;t tried the serial interface).  Plugging in the monitor, it is recognized as a 5020 Surface Capacitive:</p>
<p><code><br />
19746:Aug 3 02:51:13 localhost kernel: usb 2-1: Product: Elo TouchSystems Surface Capacitive 5020<br />
19747:Aug 3 02:51:13 localhost kernel: usb 2-1: Manufacturer: Elo TouchSystems<br />
19750:Aug 3 02:51:13 localhost kernel: input: Elo TouchSystems Elo TouchSystems Surface Capacitive 5020 as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1:1.0/input/input7<br />
19751:Aug 3 02:51:13 localhost kernel: generic-usb 0003:04E7:0042.0003: input,hidraw2: USB HID v1.11 Pointer [Elo TouchSystems Elo TouchSystems Surface Capacitive 5020] on usb-0000:00:1d.0-1/input0<br />
</code></p>
<p>ELO provides some generic drivers for this device. I first attempted to directly use them and found them to be a complete disaster. The whole configuration was really silly (putting stuff into /etc/opt, are you kidding me?). The elo daemon constantly hung and had to be restarted. Restarting X caused the daemon to stop working, thus the touchscreen stopped working.</p>
<p>I quickly removed these drivers and tried it with the evtouch drivers which I have used for a USB displaylink touchscreen monitor in the past (MIMO). With a few changes to my xorg.conf, the evtouch driver immediately recognized it and I was able to capture touch events. Although the calibration was initially completely off.</p>
<p>Here&#8217;s the steps I took to get this working on Scientific Linux 6.0</p>
<h3>Install evtouch</h3>
<p>Unfortunately, Scientific Linux does not come with the evtouch driver. I have built a 64-bit rpm for Scientific Linux <a href="http://vipaar.com/downloads/xorg-x11-drv-evtouch-0.8.8-1.el6.x86_64.rpm">here</a> . If you need a 32-bit version or for another platform (Fedora), download the <a href="http://vipaar.com/downloads/xorg-x11-drv-evtouch-0.8.8-1.el6.src.rpm">src rpm</a> and rebuild it (rpmbuild &#8211;rebuild xorg-x11-drv-evtouch-0.8.8-1.el6.src.rpm).</p>
<h3>Setup Xorg</h3>
<p>It is not required to directly edit xorg.conf.  Instead, we will create a hal fdi file</p>
<p>We will create an fdi file in /etc/hal/fdi/policy called elo_touchscreen.fdi</p>
<p>/etc/hal/fdi/policy/elo_touchscreen.fdi<br />
<code><br />
&lt;?xml version="1.0" encoding="ISO-8859-1"?&gt;<br />
&lt;deviceinfo version="0.2"&gt;<br />
  &lt;device&gt;<br />
    &lt;match key="input.product" contains="Elo TouchSystems, Inc. Elo TouchSystems Surface Capacitive 5010"&gt;<br />
      &lt;merge key="input.x11_driver" type="string"&gt;evtouch&lt;/merge&gt;<br />
      &lt;merge key="input.x11_options.MinX" type="string"&gt;3724&lt;/merge&gt;<br />
      &lt;merge key="input.x11_options.MaxX" type="string"&gt;318&lt;/merge&gt;<br />
      &lt;merge key="input.x11_options.MinY" type="string"&gt;3724&lt;/merge&gt;<br />
      &lt;merge key="input.x11_options.MaxY" type="string"&gt;318&lt;/merge&gt;<br />
      &lt;merge key="input.x11_options.SwapX" type="string"&gt;true&lt;/merge&gt;<br />
      &lt;merge key="input.x11_options.SwapY" type="string"&gt;true&lt;/merge&gt;<br />
    &lt;/match&gt;<br />
  &lt;/device&gt;<br />
&lt;/deviceinfo&gt;<br />
</code></p>
<p>If your monitor is slightly different, you will need to get the product id, and replace the match key=&#8221;input.product&#8221; line in the above file.</p>
<p><code><br />
$ lshal | grep input.product<br />
  input.product = 'Sleep Button'  (string)<br />
  input.product = 'Power Button'  (string)<br />
  input.product = 'Macintosh mouse button emulation'  (string)<br />
  input.product = 'ImExPS/2 Generic Explorer Mouse'  (string)<br />
  input.product = 'AT Translated Set 2 keyboard'  (string)<br />
  input.product = 'Elo TouchSystems, Inc. Elo TouchSystems Surface Capacitive 5010' (string)<br />
</code></p>
<p>You should now be able to unplug and plug your touchscreen back in and have it work without restarting X</p>
<h3>Calibration</h3>
<p>The MinX,MinY,MaxX,MaxY values are used for calibrating the touchscreen. The evtouch source available on their <a href="http://www.conan.de/touchscreen/evtouch.html">site</a> comes with a calibration utility. However, I was unable to get this to run. For me I played with the MinX, MaxX, MinY, MaxY values in my xorg.conf until it was close enough. As you can see, I had to mirror both the X and Y values.</p>
<h3>Other Drivers</h3>
<p>I noticed that Scientific Linux also includes an elographics package: xorg-x11-drv-elographics. I have no idea if this works better or not although I have heard they only work with the serial interface. I have it working with evtouch, so I&#8217;m happy. If anyone has tried the elographics and had success, please comment!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.work.line72.net/2011/08/03/elo-touchscreen-monitor-under-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Gnome Shell Extension: Search Window</title>
		<link>http://www.work.line72.net/2011/08/02/gnome-shell-extension-search-window/</link>
		<comments>http://www.work.line72.net/2011/08/02/gnome-shell-extension-search-window/#comments</comments>
		<pubDate>Tue, 02 Aug 2011 13:44:54 +0000</pubDate>
		<dc:creator>line72</dc:creator>
				<category><![CDATA[work]]></category>
		<category><![CDATA[extensions]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[gnome-shell]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.work.line72.net/?p=38</guid>
		<description><![CDATA[The Gnome desktop recently release version 3 of their desktop, which includes their all new Gnome Shell. I have been using it for several months now, and I must say I really like the direction it is going. It is still early and is missing a lot of little things, but those will come soon. [...]]]></description>
			<content:encoded><![CDATA[<p>The Gnome desktop recently release version 3 of their desktop, which includes their all new Gnome Shell. I have been using it for several months now, and I must say I really like the direction it is going. It is still early and is missing a lot of little things, but those will come soon. We are starting to see new extensions being built for it to extend the functionality.</p>
<p>One feature I have found blatantly missing is the ability to search active windows in the overview. In overview mode, you first see a live preview of all your windows. But if you&#8217;re like me, you have 15 terminals and 10 web browser windows up (I despise tabs!). Typing starts a search, which by default searches: your installed applications to quickly start one, files, and places. Search is completely missing the ability to search through open windows based on their title!</p>
<p>I quickly wrote my first gnome-shell extension to do just that. It is still an early version, and I would like to update it to add more features such as showing a live window preview instead of just the application icon.</p>
<div id="attachment_49" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.work.line72.net/2011/08/02/gnome-shell-extension-search-window/gnome-shell-01/" rel="attachment wp-att-49"><img class="size-medium wp-image-49" title="gnome-shell-01" src="http://www.work.line72.net/wp-content/uploads/2011/08/gnome-shell-01-300x168.png" alt="" width="300" height="168" /></a><p class="wp-caption-text">Initial Overview Display</p></div>
<div id="attachment_49" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.work.line72.net/2011/08/02/gnome-shell-extension-search-window/gnome-shell-01/" rel="attachment wp-att-49"><img class="size-medium wp-image-49 " title="gnome-shell-02" src="http://www.work.line72.net/wp-content/uploads/2011/08/gnome-shell-02-300x168.png" alt="" width="300" height="168" /></a><p class="wp-caption-text">Initial Search for &quot;fed&quot; with results being narrowed down. Two open terminals and three open web browsers have titles that match</p></div>
<div id="attachment_49" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.work.line72.net/2011/08/02/gnome-shell-extension-search-window/gnome-shell-01/" rel="attachment wp-att-49"><img class="size-medium wp-image-49" title="gnome-shell-03" src="http://www.work.line72.net/wp-content/uploads/2011/08/gnome-shell-03-300x168.png" alt="" width="300" height="168" /></a><p class="wp-caption-text">Search for &quot;fed wiki&quot; showing an open browser on the Fedora Wiki</p></div>
<p>Try it out, and send me your thoughts:</p>
<p><a href="http://line72.net/downloads/gnome-shell/gnome-shell-extensions-window-search-0.0.1.zip">gnome-shell-extensions-window-search-0.0.1</a></p>
<p>You can use the gnome-tweak-tool to install it, or extract it into<br />
<code><br />
$HOME/.local/share/gnome-shell/extensions<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.work.line72.net/2011/08/02/gnome-shell-extension-search-window/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Shared Libraries Under Linux</title>
		<link>http://www.work.line72.net/2009/10/21/shared-libraries-under-linux/</link>
		<comments>http://www.work.line72.net/2009/10/21/shared-libraries-under-linux/#comments</comments>
		<pubDate>Wed, 21 Oct 2009 14:31:39 +0000</pubDate>
		<dc:creator>line72</dc:creator>
				<category><![CDATA[work]]></category>
		<category><![CDATA[abi]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[shared libraries]]></category>
		<category><![CDATA[so]]></category>

		<guid isPermaLink="false">http://www.work.line72.net/?p=15</guid>
		<description><![CDATA[I&#8217;m mainly posting this so I won&#8217;t lose the link (what are bookmarks?).  Excellent reference for shared libraries under linux.]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m mainly posting this so I won&#8217;t lose the link (what are bookmarks?). <a href="http://people.redhat.com/drepper/dsohowto.pdf"> Excellent reference for shared libraries under linux</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.work.line72.net/2009/10/21/shared-libraries-under-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

