Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 66993 - lspci: option to support output suitable for XFree86Config/xorg.conf
Summary: lspci: option to support output suitable for XFree86Config/xorg.conf
Status: RESOLVED LATER
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-10 10:10 UTC by Bharath Ramesh
Modified: 2009-08-20 14:35 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
patch to add support to lspci to show output compatible with Xfree86Config/xorg.conf (lspci_X_diff,1.88 KB, patch)
2004-10-10 10:11 UTC, Bharath Ramesh
Details | Diff
Patch to update man page for lspci (lspci_man.diff,374 bytes, patch)
2004-10-10 17:05 UTC, Bharath Ramesh
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Bharath Ramesh 2004-10-10 10:10:53 UTC
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.
Comment 1 Bharath Ramesh 2004-10-10 10:11:38 UTC
Created attachment 41466 [details, diff]
patch to add support to lspci to show output compatible with Xfree86Config/xorg.conf
Comment 2 Donnie Berkholz (RETIRED) gentoo-dev 2004-10-10 15:55:24 UTC
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.
Comment 3 Bharath Ramesh 2004-10-10 17:05:45 UTC
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
Comment 4 SpanKY gentoo-dev 2004-10-10 18:09:35 UTC
has anyone sent this upstream ?
Comment 5 SpanKY gentoo-dev 2004-10-16 14:34:11 UTC
e-mailed info upstream
Comment 6 Martin Mares 2004-10-16 14:51:31 UTC
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.
Comment 7 SpanKY gentoo-dev 2004-10-28 18:31:53 UTC
well you heard the man :)

make the patch flexible and we'll roll with it
Comment 8 Rémi Cardona (RETIRED) gentoo-dev 2009-08-20 14:35:58 UTC
Nothing we really care about anymore, removing CC.

Thanks