getting device path or sysfs name of input device

Dan Nicholson dbn.lists at gmail.com
Wed May 12 11:00:15 PDT 2010


On Mon, May 10, 2010 at 03:07:04PM +1000, Peter Hutterer wrote:
> On Sun, May 09, 2010 at 09:50:47PM -0700, Alan Coopersmith wrote:
> > On 5/9/2010 9:00 AM, John R. wrote:
> > >On 05/09/10 08:41, Tias wrote:
> > >
> > >[snip]
> > >
> > >>I want to make the calibration permanent, and not just applied when the
> > >>program is run.
> > >
> > >I am not an xorg developer so cannot assist with your technical questions.
> > >
> > >One of the other options you mention is adding calibration info to a
> > >xorg.conf.d file.  It share a common disadvantage with udev method in
> > >that it requires write access to files generally written to by root.
> > 
> > xorg.conf.d will be far more portable than udev though, if you care
> > about users of non-Linux kernels such as the BSD's or OpenSolaris.
> 
> And we really don't recommend configuring X through udev. If udev rules are
> necessary, use them to "tag" devices only. The specific configuration then
> goes into the xorg.conf.
> 
> Example I'm working on atm:
> Some touchpads have a less-than-ideal button positioning. This affects some
> specific models so you can use udev (or another config backend) to assign a
> "touchpad_overlapping_buttons" tag to those devices.
> 
> Then in the xorg.conf, you can match this to whatever specific configuration
> you require for this kind of touchpads.

FWIW, I have a patchset to add PnP and USB ID matching in InputClass.
Basically, I want to be able to convert the existing synaptics and wacom
fdi files to InputClass, and they rely on PnP at least.

--
Dan



More information about the xorg mailing list