[23253] in Athena Bugs
Re: linux 9.2.13: machtype -d
daemon@ATHENA.MIT.EDU (Garry Zacheiss)
Sat Jul 26 00:56:22 2003
Message-Id: <200307260456.h6Q4uKaZ025529@brad-majors.mit.edu>
To: Robert A Basch <rbasch@MIT.EDU>
cc: bugs@MIT.EDU
In-Reply-To: Your message of "Fri, 25 Jul 2003 17:12:47 EDT."
<200307252112.h6PLCl5U028088@abulia.mit.edu>
Date: Sat, 26 Jul 2003 00:56:20 -0400
From: Garry Zacheiss <zacheiss@MIT.EDU>
> When I run machtype -d as root on my machine, the only output is
> "XFree86 4.3.0"; X -showconfig does not seem to output anything
> else relevant to the machtype query. Rather than hack a way to
> avoid setuid privilege problems, my vote would be to try to find
> a way to change machtype to give more useful information.
Well, the obvious way of getting the card name seems to be to use
lspci and parse the output; we could make machtype -d do something like:
[zacheiss@frank-n-furter] ~$ lspci | awk -F: '/VGA/ {print $3}'
Matrox Graphics, Inc. MGA G400 AGP (rev 85)
which while not great is better than what we have now.
Garry