[PATCH 0/3] xfree86: Configure input devices by properties

Dan Nicholson dbn.lists at gmail.com
Fri Oct 16 06:08:30 PDT 2009


On Thu, Oct 15, 2009 at 10:42 PM, Peter Hutterer
<peter.hutterer at who-t.net> wrote:
> On Sun, Oct 04, 2009 at 09:01:48AM -0700, Dan Nicholson wrote:
>> These patches add support in xorg.conf to apply input configuration to a
>> class of devices by property. The idea is to offer similar property
>> matching capabilities to the hal fdi system. Moving the configuration
>> back into the ddx means that some day we can stop doing it from the
>> config backend and asking users to adjust to it.
>>
>> The mechanism used here is an InputClass section. Here is a contrived
>> example section showing all the current property matchers:
>>
>> Section "InputClass"
>>       Identifier    "My Mice"
>>
>>       DevicePattern "/dev/input/event*"
>>       NameContains  "Mouse"
>>       IsPointer     "yes"
>>       IsKeyboard    "no"
>
> Please namespace any matching rules, the above examples could e.g. be:
>    MatchDevicePath
>    MatchName
>    MatchIsPointerDevice
>    MatchIsPointerDevice
>
> This way we can easier differentiate between match rules and driver options.

Seems reasonable.

> Aside from that, I think we really need the ability to have a split up
> configuration file first (the xorg.conf.d you mentioned) before we can merge
> this. Stacking multiple match rules into a single file and expecting distro
> maintainers to somehow now screw up when editing a user's config file
> requires more optimisim than we should expect to encounter.

Yeah, I'd agree there. I don't want scripts attempting to edit the
user's configuration file any more than the next guy. I'll give a
holler when I have that worked out.

--
Dan


More information about the xorg-devel mailing list