<?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/"
	xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule">

<channel>
	<title>Nothing in particular &#187; hal</title>
	<atom:link href="http://blogs.gnome.org/juanje/tag/hal/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.gnome.org/juanje</link>
	<description>Juanje's thoughts about GNOME, FLOSS and more</description>
	<lastBuildDate>Tue, 24 Jan 2012 02:35:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<creativeCommons:license>http://creativecommons.org/licenses/by-sa/3.0/es/</creativeCommons:license>		<item>
		<title>Help with the Hal deprecation</title>
		<link>http://blogs.gnome.org/juanje/2009/06/16/help-with-the-hal-deprecation/</link>
		<comments>http://blogs.gnome.org/juanje/2009/06/16/help-with-the-hal-deprecation/#comments</comments>
		<pubDate>Tue, 16 Jun 2009 05:26:28 +0000</pubDate>
		<dc:creator>juanje</dc:creator>
				<category><![CDATA[distros]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[guadalinex]]></category>
		<category><![CDATA[devicekit]]></category>
		<category><![CDATA[freedesktop]]></category>
		<category><![CDATA[hal]]></category>
		<category><![CDATA[udev]]></category>

		<guid isPermaLink="false">http://blogs.gnome.org/juanje/?p=133</guid>
		<description><![CDATA[Hi, I need somebody tell me what is going on with Hal. Yesterday Carlos told me about Ubuntu&#8217;s plans for Karmic and the Hal deprecation. I don&#8217;t really know how could I miss this, but I didn&#8217;t know before&#8230; Lately I was working a bit with Hal and I kinda like it. As far as [...]]]></description>
			<content:encoded><![CDATA[<p>Hi, I need somebody tell me what is going on with <a href="http://www.freedesktop.org/wiki/Software/hal" target="_blank">Hal</a>.</p>
<p>Yesterday <a href="http://www.carlospc.org/" target="_blank">Carlos</a> told me about <a href="http://www.ubuntu.com/testing/karmic/alpha2" target="_blank">Ubuntu&#8217;s plans for Karmic</a> and the <a href="https://wiki.ubuntu.com/Halsectomy" target="_blank">Hal deprecation</a>. I don&#8217;t really know how could I miss this, but I didn&#8217;t know before&#8230;</p>
<p>Lately I was working a bit with Hal and I kinda like it. As far as I saw, there is a <a href="http://live.gnome.org/TwoPointTwentyseven" target="_blank">GNOME plan</a> for that deprecation and hal will be split into different pieces which will be integrated into other software. Such a <strong>udev-extras</strong>, <strong>libudev</strong>, <strong>DeviceKit-*</strong>, the <strong>kernel</strong> itself and so.</p>
<p>I&#8217;ve been reading quite a lot about all those changes and I don&#8217;t really get the reasons for this move. And I don&#8217;t really know how the things will work when the migration be completed.</p>
<p>No more hal at all? No hal-info either? just udev rules (which, btw,  I find really confusing and ugly&#8230;)?</p>
<p>I hope someone could help me to see how the things will be at the near future around the hardware layer on GNU/Linux.</p>
<p>Thanks</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.gnome.org/juanje/2009/06/16/help-with-the-hal-deprecation/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>Touchscreens on Linux</title>
		<link>http://blogs.gnome.org/juanje/2008/12/27/touchscreens-on-linux/</link>
		<comments>http://blogs.gnome.org/juanje/2008/12/27/touchscreens-on-linux/#comments</comments>
		<pubDate>Sat, 27 Dec 2008 20:55:08 +0000</pubDate>
		<dc:creator>juanje</dc:creator>
				<category><![CDATA[moblin]]></category>
		<category><![CDATA[eGalax]]></category>
		<category><![CDATA[hal]]></category>
		<category><![CDATA[touchscreen]]></category>
		<category><![CDATA[xorg]]></category>

		<guid isPermaLink="false">http://blogs.gnome.org/juanje/?p=51</guid>
		<description><![CDATA[As I posted before, I&#8217;ve been working with a EPIA Mini-ITX with a Touchscreen. But, actually, it wasn&#8217;t just one touchscreen. We did configure a few for the same machine and the same system. I&#8217;ll tell you how we did just for one (which is kind of tricky) and later what surprise me about those [...]]]></description>
			<content:encoded><![CDATA[<p>As I <a href="http://blogs.gnome.org/juanje/2008/12/17/hal-info-and-xorg/" target="_blank">posted</a> before, I&#8217;ve been working with a <em>EPIA Mini-ITX</em> with a Touchscreen. But, actually, it wasn&#8217;t just one touchscreen. We did configure a few for the same machine and the same system. I&#8217;ll tell you how we did just for one (which is kind of tricky) and later what surprise me about those touchscreens&#8230;<br />
I though this was a matter of repeat the same steps as I did for the first touchscreen and hook each configuration with each touchscreen depending of their hardware info (vendor and product id, or so), but I got one big surprise with that&#8230; I&#8217;ll tell you later <img src='http://blogs.gnome.org/juanje/wp-content/mu-plugins/tango-smilies/tango/face-raspberry.png' alt=':-P' class='wp-smiley' /> </p>
<p>Well, the main problem of touchscreens is the calibration. You need to tell to the Xorg the limit of the touchscreen so it can be mapped with the screen. This could be automatic task done by hal, but there isn&#8217;t still a automatic tool for that. At least for <em>evtouch</em> driver based touchscreens.</p>
<p>I was playing with the fdi file which came with the evtouch driver to fix the screen, but obviously isn&#8217;t a easy task, so I kept googling and I found there was a utility to get the X and Y points and limits. And I felt as a fool when realized that utility was already installed (by the <em>evtouch</em> driver) in my own system&#8230; <img src='http://blogs.gnome.org/juanje/wp-content/mu-plugins/tango-smilies/tango/face-sad.png' alt=':-(' class='wp-smiley' /><br />
Anyways, I ran the tool (<em>/usr/bin/calibrate_touchscreen</em>) and I got the max and min X and Y points. Which means the four corners of the touchscreen.<br />
I couldn&#8217;t have the utility working properly&#8230; It didn&#8217;t show me any message or dialog and it didn&#8217;t give me a <em>out.txt</em> file with the result, as the doc told me. But I got the X and Y points, so I put them in my fdi own file for &#8220;<em>eGalax</em>&#8221; touchscreens.<br />
The evtouch driver have one fdi for <em>eGalax</em>, but the properties doesn&#8217;t fit at all with my touchscreens, so I copied the file into <em>/etc/hal/fdi/policy/</em> and I did the changes there.<br />
The fdi files Hal find in that directory overwrites the ones who were installed by the package on <em>/usr/share/hal/fdi/</em> (or similar if your distribution is nos <em>Debian</em> alike).</p>
<p>You need to restart the Hal service to get the changes and to let the Xorg realize that.</p>
<pre>$ sudo /etc/init.d/hal restart</pre>
<p>(or similar)</p>
<p>You can test if the changes were made by running the following commands:</p>
<pre>
$ UDI=$(hal-find-by-capability --capability input.mouse)
$ lshal -u $UDI
</pre>
<p>Then you&#8217;ll probably get something like:</p>
<pre>
udi = '/org/freedesktop/Hal/devices/usb_device_eef_1_noserial_if0_logicaldev_input'
info.capabilities = {'input', 'input.mouse'} (string list)
info.category = 'input'  (string)
info.parent =
'/org/freedesktop/Hal/devices/usb_device_eef_1_noserial_if0'  (string)
info.product = 'eGalax Inc. Touch'  (string)
info.subsystem = 'input'  (string)
info.udi = '/org/freedesktop/Hal/devices/usb_device_eef_1_noserial_if0_logicaldev_input'
(string)
input.device = '/dev/input/event1'  (string)
input.originating_device =
'/org/freedesktop/Hal/devices/usb_device_eef_1_noserial_if0'  (string)
input.product = 'eGalax Inc. Touch'  (string)
input.x11_driver = 'evtouch'  (string)
input.x11_options.longtouched_action = 'click'  (string)
input.x11_options.longtouched_button = '3'  (string)
input.x11_options.longtouchtimer = '750'  (string)
input.x11_options.maxx = '1912'  (string)
input.x11_options.maxy = '1989'  (string)
input.x11_options.maybetapped_action = 'click'  (string)
input.x11_options.maybetapped_button = '1'  (string)
input.x11_options.minx = '112'  (string)
input.x11_options.miny = '76'  (string)
input.x11_options.movelimit = '10'  (string)
input.x11_options.oneandhalftap_button = '2'  (string)
input.x11_options.rotate = 'ccw'  (string)
input.x11_options.swapy = true  (bool)
input.x11_options.taptimer = '30'  (string)
input.x11_options.touched_drag = '1'  (string)
linux.device_file = '/dev/input/event1'  (string)
linux.hotplug_type = 2  (0x2)  (int)
linux.subsystem = 'input'  (string)
linux.sysfs_path = '/sys/class/input/input1/event1'  (string)
</pre>
<p>Now Hal know your touchscreen preferences and limits, so Xorg will set up the right values for the cursor and so. If you try to start the X server you&#8217;ll see.<br />
It&#8217;s possible you have to do the process a few times. The perfect calibration could need it.</p>
<p>But, at this point, I found a new problem: when I rebooted the machine, the cursor gone crazy again&#8230; <img src='http://blogs.gnome.org/juanje/wp-content/mu-plugins/tango-smilies/tango/face-sad.png' alt=':-(' class='wp-smiley' /><br />
Well, the thing is the package &#8216;<em>xserver-xorg-input-evtouch</em>&#8216; install you a init script for setting the hal parameters from his own conffile (<em>/etc/evtouch/config</em>). This file was generated for the calibration tool (I didn&#8217;t know and I haven&#8217;t seen still in the doc of the tool&#8230;).<br />
The file has something like:</p>
<pre>
MINX="140"
MINY="55"
MAXX="1888"
MAXY="1975"
X0="-9"
Y0="-588"
X1="391"
Y1="-588"
X2="795"
Y2="3"
X3="-398"
Y3="-298"
X4="-3"
Y4="4"
X5="390"
Y5="300"
X6="-788"
Y6="-2"
X7="-393"
Y7="299"
X8="-4"
Y8="593"
</pre>
<p>The init script got this values and set up the hal &#8216;<em>input.x11_options</em>&#8216; and the script is launched after the hal&#8217;s, so it will overwrite any fdi I put in there. But the problem for me is the only values were working for me were the MIN and MAX X and Y. The rest just makes the X server getting lost.</p>
<p>What I did to fix the situation was deleting from the <em>/etc/evtouch/config</em> file everything but the MAX and MIN values and also deleting the <em>input.x11_options</em> for those MAX and MIN values from the fdi file I wrote. The file (the fdi one) was still useful to set up the rotate and more X11 options.</p>
<p>So now I got all the values I need set up and I&#8217;m sure no other scripts or services will mess with my configuration.</p>
<p>Ok, now I have the configuration for ONE of the touchscreens, but there are more&#8230; What now? well, doing the same process (knowing the issues and taking the sorter way) and figure the way to put the right configuration depending of what touchscreen is plugged.</p>
<p>Ummmmm&#8230; I show directives on fdi files to match strings and search for hal properties. I just need to looking for the <em>usb.vendor_id</em> and <em>usb.product_id</em> hal properties to choose which configuration set up. But here was my surprise&#8230;.<br />
All the touchscreens I have (and more some friends checked out) have the same vendor and product id. All are different and have different calibration values, but all have the same vendor and product id, which let me with no way to know which touchscreen is plugged. At least, by now, I don&#8217;t know how to be sure about which one is plugged.<br />
Please, if anyone know how, tell me.</p>
<p>You can make the test if you have one or more touchscreen which work with <em>evtouch</em> driver. Run a &#8216;<em>lsusb</em>&#8216; and I almost sure you&#8217;ll get this line:</p>
<pre>Bus 002 Device 002: ID 0eef:0001 D-WAV Scientific Co., Ltd eGalax TouchScreen</pre>
<p>Well, that&#8217;s all for today folks. Soon more <img src='http://blogs.gnome.org/juanje/wp-content/mu-plugins/tango-smilies/tango/face-wink.png' alt=';-)' class='wp-smiley' /> </p>
<p>Happy hols for those of you who have Xtmas hols and happy hacking! <img src='http://blogs.gnome.org/juanje/wp-content/mu-plugins/tango-smilies/tango/face-smile.png' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.gnome.org/juanje/2008/12/27/touchscreens-on-linux/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Hal-info and Xorg</title>
		<link>http://blogs.gnome.org/juanje/2008/12/17/hal-info-and-xorg/</link>
		<comments>http://blogs.gnome.org/juanje/2008/12/17/hal-info-and-xorg/#comments</comments>
		<pubDate>Wed, 17 Dec 2008 23:00:09 +0000</pubDate>
		<dc:creator>juanje</dc:creator>
				<category><![CDATA[distros]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[moblin]]></category>
		<category><![CDATA[freedesktop]]></category>
		<category><![CDATA[hal]]></category>
		<category><![CDATA[hal-info]]></category>
		<category><![CDATA[hardware]]></category>
		<category><![CDATA[xorg]]></category>

		<guid isPermaLink="false">http://blogs.gnome.org/juanje/?p=40</guid>
		<description><![CDATA[Lately I&#8217;m working on a project at work about installing and setting up a custom Linux distro in a small box (VIA EPIA Mini-ITX) with different touchscreens. Differences because there are going to be several of those box and some will be with one touchscreen and some with other. The real goal is to run [...]]]></description>
			<content:encoded><![CDATA[<p>Lately I&#8217;m working on a project at work about installing and setting up a custom Linux distro in a small box (<em>VIA EPIA Mini-ITX</em>) with different touchscreens. Differences because there are going to be several of those box and some will be with one touchscreen and some with other.</p>
<p>The real goal is to run on those little boxes just a X with a java application other group have made. I can&#8217;t tell so much about the project because the contract say so&#8230; Anyway, that&#8217;s interesting stuff to do <img src='http://blogs.gnome.org/juanje/wp-content/mu-plugins/tango-smilies/tango/face-smile.png' alt=':-)' class='wp-smiley' /> </p>
<p>My first <span style="cursor: pointer;" onclick="dr4sdgryt(event,&quot;Ox&quot;)"><span class="q">thought was to use <a href="http://moblin.org/" target="_blank">Moblin</a>, a project <a href="http://blogs.gnome.org/juanje/2008/12/01/moblin-linux-on-mobile-devices/" target="_blank">I&#8217;ve already posted</a> about. This project is designed for those kind of products, have a few sets of funcionalities over small distro base and it has a GUI application for building the distro in different formats and even try out via kvm.</span></span></p>
<p>All this sounds really cool to me. I knew the project from time ago, but I didn&#8217;t pay enough attention to the project (I wanted, but I didn&#8217;t find the moment before), so this was good excuse to have a closer look to the project.</p>
<p>The project is nice, with a lot of cool features and a lot of potential, but, actually, it didn&#8217;t fit well with my needs. I got to much troubles to get working a very basic Ubuntu based distro where to run the Xorg and the Java application. But now I&#8217;m working on fixing some bug and improve the system a bit&#8230;</p>
<p>But I needed to finish my tasks, so I took a different approach. <a href="http://www.ubuntu.com/products/mobile" target="_blank">Ubuntu Mobile</a>, which was before with Moblin, now they go by their own (or kind of). They got some images already built so I download one and I started to clean things and installing what I needed.</p>
<p>Now we got the distro and the application running, but we&#8217;ve still some issues. The worst thing was to set up the Xorg with the Chrome C9 graphic card. We installed first a Ubuntu 8.04 (lpia) based distro and the graphic card didn&#8217;t work out the box. But on the Intrepid (Ubunu 8.10) version we got the last <a title="OpenChrome Project" href="http://www.openchrome.org" target="_blank">openchrome</a> driver, so it did work <img src='http://blogs.gnome.org/juanje/wp-content/mu-plugins/tango-smilies/tango/face-smile.png' alt=':-)' class='wp-smiley' /> </p>
<p>If some one is interesting on make it works on Hardy or another distro which has not the last version, we followed a easy good <a title="OpenChrome on Ubuntu from the sources" href="https://help.ubuntu.com/community/OpenChrome" target="_blank">recipe</a> from Ubuntu docs.</p>
<p>But on Intrepid we found some probles with this driver. The first one wasn&#8217;t actually this driver&#8217;s issue, it was Xorg&#8217;s. I mean, I realized on Intrepid Xorg use <a title="Hal on Freedesktop" href="http://www.freedesktop.org/wiki/Software/hal">Hal</a> and <a title="Post about Hal-info" href="http://hughsient.livejournal.com/6702.html" target="_blank">hal-info</a> to for setting up itself.</p>
<p>I tried as a fool to configure the Xorg config file on the old fashion way (<em>dpkg-reconfigure xserver-xorg</em>), but the file was still empty&#8230;</p>
<p>After googling for a while and read some <a title="Hal Specs" href="http://people.freedesktop.org/~david/hal-spec/hal-spec.html" target="_blank">hal specs</a>, docs and examples I learn a lot a bout <em>hal-info</em>. This is actually a really good stuff.<a title="Richard Hughes' new blog" href="http://blogs.gnome.org/hughsie/" target="_blank">Richard Hughes</a> with <a href="http://hughsient.livejournal.com/6702.html" target="_blank">his post</a> about it open my eyes about Hal, which I&#8217;ve already known but I didn&#8217;t know its potential. Which is huge, I think.</p>
<p>If you are interesting on, here you have the git repository:</p>
<p>[via web]</p>
<p><a href="http://cgit.freedesktop.org/hal-info/">http://cgit.freedesktop.org/hal-info</a></p>
<p>[cloning the branch]</p>
<p><tt>git clone git://anongit.freedesktop.org/git/hal-info</tt></p>
<p>I have to use this hal-info thing to let hal setting up the touchscreens properly, because, by default the cursor goes crazy. Don&#8217;t worry, I&#8217;ll post the <em>quirks</em> and the things I&#8217;ll learn when I finish the work <img src='http://blogs.gnome.org/juanje/wp-content/mu-plugins/tango-smilies/tango/face-smile.png' alt=':-)' class='wp-smiley' /> </p>
<p>BTW, more interesting stuff here, on <em>quirks</em> docs:</p>
<p><a href="http://people.freedesktop.org/~hughsient/quirk/index.html">http://people.freedesktop.org/~hughsient/quirk/index.html</a></p>
<p>Enjoy Hal and hal-info <img src='http://blogs.gnome.org/juanje/wp-content/mu-plugins/tango-smilies/tango/face-smile.png' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.gnome.org/juanje/2008/12/17/hal-info-and-xorg/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
<!-- This Quick Cache file was built for (  blogs.gnome.org/juanje/tag/hal/feed/ ) in 1.29165 seconds, on Feb 11th, 2012 at 7:38 pm UTC. -->
<!-- This Quick Cache file will automatically expire ( and be re-built automatically ) on Feb 11th, 2012 at 8:38 pm UTC -->
