From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from <gentoo-user+bounces-95825-garchives=archives.gentoo.org@lists.gentoo.org>) id 1M8yzN-0008JY-OB for garchives@archives.gentoo.org; Tue, 26 May 2009 15:54:53 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0B834E039B; Tue, 26 May 2009 15:54:52 +0000 (UTC) Received: from cdptpa-omtalb.mail.rr.com (cdptpa-omtalb.mail.rr.com [75.180.132.123]) by pigeon.gentoo.org (Postfix) with ESMTP id E0560E039B for <gentoo-user@lists.gentoo.org>; Tue, 26 May 2009 15:54:51 +0000 (UTC) Received: from basement.kutulu.org ([70.121.200.185]) by cdptpa-omta02.mail.rr.com with ESMTP id <20090526155450843.PZHO15569@cdptpa-omta02.mail.rr.com> for <gentoo-user@lists.gentoo.org>; Tue, 26 May 2009 15:54:51 +0000 Received: by basement.kutulu.org (Postfix, from userid 58) id DA59C1147A; Tue, 26 May 2009 11:54:49 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on basement.kutulu.org X-Spam-Level: X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.2.5 Received: from [127.0.0.1] (localhost [127.0.0.1]) by basement.kutulu.org (Postfix) with ESMTPS id 2BF9C11476 for <gentoo-user@lists.gentoo.org>; Tue, 26 May 2009 11:54:34 -0400 (EDT) Message-ID: <4A1C10BA.7060600@kutulu.org> Date: Tue, 26 May 2009 11:54:34 -0400 From: Mike Edenfield <kutulu@kutulu.org> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1b3pre) Gecko/20090223 Thunderbird/3.0b2 Precedence: bulk List-Post: <mailto:gentoo-user@lists.gentoo.org> List-Help: <mailto:gentoo-user+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-user.gentoo.org> X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Synaptics and HAL Device Information Files References: <184110a70905050537n3e7cf8f0of22428d19f7f2f17@mail.gmail.com> <200905052142.09801.alan.mckinnon@gmail.com> <184110a70905060604q16574514o5f3db2da87189de6@mail.gmail.com> <20090526095842.GA6067@red.laas.fr> In-Reply-To: <20090526095842.GA6067@red.laas.fr> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Archives-Salt: 87f315ed-0147-4306-bc66-164ce4093daa X-Archives-Hash: 5574d365b34ea09af1bba76b569ffd56 On 5/26/2009 5:58 AM, Redouane Boumghar wrote: > First of all where can I find information about the file names of FDI ? > NUMBER-NAME-NAME.fdi > > Where are the specification of the nomenclature ? > I have found different names possible : > 11-x11-synaptics.fdi > 99-x11-synaptics.fdi > > Why the donkey would it be 99 or 11 ? Since (as I see below) you've added "hal" to your USE flags for the xf86-input-synaptics driver, you should already have the synaptics HAL data installed -- the post-ebuild messages would tell you where those are. Currently, the stock HAL rules are installed into /usr/share/hal/fdi/policy/10osvendor/11-x11-synaptics.fdi The reason it's number 11 is because the synaptics Xorg driver exposes itself to HAL in a way that also looks like a mouse, so it matches all on the HAL rules for standard pointer device behavior. The synaptics rules need to override the normal rules, which are in the file 10-x11-pointer.fdi, so the synaptics rules go into 11-x11-synaptics.fdi and get loaded second. The file named 99- is most likely a suggestion from someone for a local customization to the policy, since it will be loaded after everything else. Since the synaptics rules are included in the base HAL policy now, there's no need for the 99- file. > The thing is that I don't know how to match my touchpad with the > fdi policy or that I have another unknown problem. You should not have to do anything to get your touchpad recognized by HAL as a synaptics device, since you already have the HAL policy file locally. You can use lshal(1) to ask HAL what devices it found, for example: lshal | grep -9 input.x11_driver You should see a result which includes: input.x11_driver = 'synaptics' If you back up a few lines you will see the info.capabilities set, which should include items like "input", "input.mouse", and input.touchpad. The default settings are in the FDI file in /usr/share, which will also show you how to override any of those settings. Basically, anything that used to be an xorg.conf option can be set using an "input.x11_options.OPTIONNAME" key. For example, to turn on SHMConfig so you can use the synaptics utilities: <?xml version="1.0" encoding="ISO-8859-1"?> <deviceinfo version="0.2"> <device> <match key="info.capabilities" contains="input.touchpad"> <merge key="input.x11_options.SHMConfig" type="string">On</merge> </match> </device> </deviceinfo> Put this in an FDI file inside your /etc/hal/fdi/policy folder, such as /etc/hal/fdi/policy/10osvendor/11-x11-synaptics.fdi