[PATCH v2 0/3] xfree86: Configure input devices by attributes
Dan Nicholson
dbn.lists at gmail.com
Sun Nov 29 09:14:15 PST 2009
On Sat, Nov 28, 2009 at 10:46 PM, Daniel Stone <daniel at fooishbar.org> wrote:
> On Sat, Nov 28, 2009 at 09:23:51PM -0800, Keith Packard wrote:
>> On Fri, 27 Nov 2009 14:00:58 -0800, Dan Nicholson <dbn.lists at gmail.com> wrote:
>> > These patches add support in xorg.conf to apply input configuration to a
>> > class of devices by attribute. 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.
>>
>> One advantage that HAL provided was that you could create per-device
>> files. This makes shipping device support a lot easier for
>> distributions. How can we map that useful idea into the xorg.conf world?
>> Should xorg.conf be loading input device options from an external file
>> somewhere? What syntax would we use?
>
> xorg.conf.d? :)
Right. The idea would be to ship something like this.
/etc/X11/xorg.conf.d/wacom.conf:
Section "InputClass"
Identifier "Wacom Devices"
MatchName "Wacom"
Driver "wacom"
Option "Type" "stylus"
EndSection
The drawback is that the hal fdi system has much more powerful
matching syntax. We could add more of that here (e.g., multiple
MatchName entries means any of them can match) if people want to go
this way.
--
Dan
More information about the xorg-devel
mailing list