If lspci supported an output format suitable to use XFree86Config/xorg.conf it would make it a lot easier for users. The following link suggests what could be done in a debian bug. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=251828 I modified lspci.c to use those changes. I am attaching it as a patch along with this. This should work, I havent tested it though. Reproducible: Always Steps to Reproduce: 1. 2. 3.
Created attachment 41466 [details, diff] patch to add support to lspci to show output compatible with Xfree86Config/xorg.conf
I think this is a good idea if you guys are willing to support it. If the reporter could also add a patch to the man page, that would be helpful.
Created attachment 41493 [details, diff] Patch to update man page for lspci Attached patch to update the man page of lspci to show new option -X to show output in a format suitable for XFree86Config or xorg.conf
has anyone sent this upstream ?
e-mailed info upstream
To be honest, I do not see much sense in adding yet another fixed output format to lspci. I would prefer adding output controlled by user-supplied format string instead. Also, the Debian bug mentions dexconf having been broken by the addition of domain numbers. Actually, this breakage was for good, because devices outside domain 0 (and we don't show the domain if it's 0) cannot be described by the PCI:x:y:z syntax.
well you heard the man :) make the patch flexible and we'll roll with it
Nothing we really care about anymore, removing CC. Thanks