On Wed, 2010-04-21 at 09:40 -0400, Colin Walters wrote:
This looks like a good start. I think the way this kind of thing
should work in general is that the system detects if you have the
hardware, and dynamically installs support for it. We'd need some
database mapping things like USB ids to packages.
When doing this, please do the obvious thing and store the match
information in modalias format:
atropine:~% modinfo appledisplay | grep alias
alias: usb:v05ACp921Dd*dc*dsc*dp*ic03isc*ip00*
alias: usb:v05ACp9219d*dc*dsc*dp*ic03isc*ip00*
alias: usb:v05ACp9218d*dc*dsc*dp*ic03isc*ip00*
system-config-display uses .xinf files in basically this format (tuple
of (alias, driver) one per line) to match video devices to drivers. It
works well, which is probably the only thing in s-c-d you can say that
about. Sample python code to do the match (please steal):
http://git.fedorahosted.org/git/?p=system-config-display.git;a=blob;f=src...
Ideally we work out a way to jam this into rpm Provides.
- ajax