r/linux • • Dec 01 '22

How can I pull an accurate GPU model number?

/r/linuxdev/comments/z9yrax/how_can_i_pull_an_accurate_gpu_model_number/
1 Upvotes

5 comments sorted by

1

u/whosdr Dec 02 '22

Are you using the -nn flag of lspci? The id in square brackets near the end is vendorId:deviceId. As far as I can tell that is the most accurate canonical identification for a specific piece of hardware.

I expect GPU-Z uses this and just has a database to map to.

1

u/[deleted] Dec 02 '22

I was using lshw which I think does the same thing basically. Problem is that sometimes it's just wrong. Like it'll say that it's a Xeon integrated graphics when it's clearly an i series. Similar problems for AMD and Nvidia

I did a hexdump of gpu-z, and I didn't see any database integrated into the program, but maybe it's pulling it from a server. I'll check it out with an interception proxy when I get a chance.

1

u/Anis-mit-I Dec 01 '22

Have you looked at the sysfs?

3

u/Stormfrosty Dec 01 '22

There’s no such thing as an accurate GPU model number. The Vendors GPU driver takes the PCIe ID and maps it to whatever it wants to display to you. Previously reading the name from the VBIOS was a thing, but then users were confused because the name didn’t correspond to the marketing material. This why AMDs “Radeon 7” also has reported names “Vega20”, “MI60”, “gfx906”. All these vary based on context the GPU is being used in.

1

u/AutoModerator Dec 02 '22

This submission has been removed due to receiving too many reports from users. The mods have been notified and will re-approve if this removal was inappropriate, or leave it removed.

This is most likely because:

  • Your post belongs in r/linuxquestions or r/linux4noobs

  • Your post belongs in r/linuxmemes

  • Your post is considered "fluff" - things like a Tux plushie or old Linux CDs are an example and, while they may be popular vote wise, they are not considered on topic

  • Your post is otherwise deemed not appropriate for the subreddit

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.