fastfetch-cli / fastfetch

A maintained, feature-rich and performance oriented, neofetch like system information tool.
MIT License
11.03k stars 426 forks source link

Impressive! Not sure if its feasible but thought I would ask: as you show version numbers it would be nice to see what Nividia driver version is in use. Thanks! #597

Closed EarBiteR closed 1 year ago

EarBiteR commented 1 year ago

Current state: Shows GPU type

Wanted state: Next to GPU type please show the Version of video driver in use for Nvidia users, possibly others

Why the change is sensible: It would save time having to load the Nvidia X server settings apps to find this detail

CarterLi commented 1 year ago

fastfetch -s gpu --gpu-format {3}

See fastfetch --help gpu-format for all available params

CarterLi commented 1 year ago

Driver version detection on Linux has been added in https://github.com/fastfetch-cli/fastfetch/commit/9d664e2b61ffada4c96aa7ecc2419c2e52f63541

EarBiteR commented 1 year ago

I cloned your github and ran run.sh and it failed. I then followed the cmake build instructions and succeeded. Running fastfetch now shows:

GPU: NVIDIA GeForce GTX 750 Ti (2.24 GiB) [Discrete]

So not actually showing nvidia driver version as expected.

ron@Ryzen7-3700X:~/Temp/fastfetch/build$ nvidia-smi Mon Oct 30 07:31:46 2023
+---------------------------------------------------------------------------------------+ | NVIDIA-SMI 535.113.01 Driver Version: 535.113.01 CUDA Version: 12.2 | |-----------------------------------------+----------------------+----------------------+

CarterLi commented 1 year ago

Try ./fastfetch -s gpu --gpu-format {3}

EarBiteR commented 1 year ago

Yes, that works - thank you. Is there a way for it to show it next to the GPU type? Like:

GPU: NVIDIA GeForce GTX 750 Ti (2.24 GiB) 535.113.01

Do I need to modify a preset and recompile?

CarterLi commented 1 year ago

See ./fastfetch --help gpu-format

EarBiteR commented 1 year ago

I gen-config and set the options so now works exactly as expected. Sorry to bother you! Thanks for your time.

GPU: NVIDIA GeForce GTX 750 Ti 535.113.01