[PATCH] config/udev: get driver suggestions from udev
Dave Airlie
airlied at gmail.com
Wed Oct 17 16:40:11 PDT 2012
On Thu, Oct 18, 2012 at 9:15 AM, Aaron Plattner <aplattner at nvidia.com> wrote:
> On 10/17/2012 04:12 PM, Peter Hutterer wrote:
>>
>> On Wed, Oct 17, 2012 at 03:02:53PM -0700, Aaron Plattner wrote:
>>>
>>> If the udev device corresponding to a platform drm device has an
>>> "xorg_drivers"
>>> property associated with it, treat that as a comma-separated list of
>>> driver
>>> suggestions to use. Otherwise, fall back to the existing PCI ID table.
>>>
>>> This lets people create a udev rule to associate an X driver with a given
>>> drm
>>> device using rules that look like this:
>>>
>>> SUBSYSTEM=="drm", DRIVERS=="i915", ENV{xorg_drivers}="intel"
>>>
>>> Signed-off-by: Aaron Plattner <aplattner at nvidia.com>
>>
>>
>> we had a similar suggestion for input drivers when we added udev support.
>> but to keep the xorg configuration in X, we then added InputClass and
>> xorg.conf.d snippets. With this patch, you'd have xorg configuration in
>> udev. Is this really what you want, or is it worth investigating
>> VideoClass
>> support?
>
>
> Hmm, maybe. That would be a lot more work, but might be more flexible in
> the long run. I'll see if I can find some time to work on that.
Though I'm not sure we really VideoClass type situations, we generally
have a real driver or fallback to modesetting per set of devices.
we don't really have the synaptics situation where one driver can
drive loads of non-synaptics.
Dave.
More information about the xorg-devel
mailing list