[FEAT] Maybe we can output the model of the chip currently used by the graphics card?

オープン
#1,634 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
c

調査の方向性

このissueでは、実装ファイル、テスト、エントリポイントは特定されていません。まず、fastfetchに既存するグラフィックスカード情報モジュールと、そのプラットフォーム固有のハードウェア検出を見つけ、次にLinuxとWindowsで利用可能なlspciの出力を比較します。検出がサポートされている場合にグラフィックチップ名を報告し、既存のカード名とビデオメモリの出力を失わないことが完了条件です。

索引モデルが issue の本文から書いたものです。

説明

enhancement
Description

In most cases, the current information (graphics card name and video memory capacity) does indeed reflect all the information many people need to know. However, as an enhancement, maybe we can output the specific chip model of the graphics card? This would be useful in some scenarios, because graphics cards with the same marketing name may actually have different chip models (for example, RTX4060 uses AD107 and AD106 chips to provide the same specifications, while Radeon RX550 uses two chips (Lexa PRO (also known as Polaris 12) and Baffin LE) to offer two specifications (512SP and 640SP)).

This makes providing more information (such as chip name and the number of stream processors) useful. However, there seems to be no universal method to obtain the accurate number of stream processors, so I won’t make any comments or requests about this. But in most cases, outputting the chip name should be possible. On Linux, lspci can usually do this. For example, the following lspci line indicates that this is an RX550 series graphics card based on the Lexa PRO chip:

01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Lexa PRO [Radeon 540/540X/550/550X / RX 540X/550/550X] (rev c7)

And (at least for me), lspci on Windows is also effective. I downloaded lspci for Windows from here, and it correctly outputted my graphics card model (Radeon RX6500XT) and the chip it uses (Navi 24):

03:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Navi 24 [Radeon RX 6400/6500 XT/6500M] (rev c1)

Motivation

Custom modules should be able to achieve this, but I don’t think it would be inappropriate to incorporate it as part of fastfetch. fastfetch is already capable of retrieving a significant amount of hardware information, this proposal aligns with your requirements (“We only accept hardware or system level software feature requests.”) and should be feasible to implement.

Additional context

I also tested this on a computer with an Intel integrated graphics card. lspci outputs the code name of the current integrated graphics card, which is similar to my goal of “outputting the graphics card chip model” (used to distinguish graphics cards with different chips but the same marketing name). I think we should do this for Intel integrated graphics cards. Here is the output:

00:02.0 VGA compatible controller: Intel Corporation TigerLake-LP GT2 [Iris Xe Graphics] (rev 03)

I also tested AMD integrated graphics cards from different periods, and there were no issues.

00:01.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Wani [Radeon R5/R6/R7 Graphics] (rev e2)

c1:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Phoenix1 (rev c8)

Although I currently don’t have an environment to test Nvidia graphics cards, I vaguely remember that for Nvidia graphics cards, lspci also outputs the chip name.

(Sorry, I am using a translation service, so I might have inadvertently used an incorrect way to express my request. I hope you can understand and be tolerant of this. Thank you very much!)

主要言語
C
スター
25.4k
フォーク
947
平均マージ
1日 8時間
マージ済み PR(30日)
21

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

fastfetch-cli/fastfetch のほかの issue

fastfetch-cli/fastfetch の issue をすべて見る

似ている issue

C の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。