dylanaraps / neofetch

🖼️ A command-line system information tool written in bash 3.2+
MIT License
21.63k stars 1.74k forks source link

Feature: Show GPU driver name / version #2332

Open axet opened 1 year ago

axet commented 1 year ago

Description

Hello!

Thanks! For the utility! Can netofetch show in additional to video card name also a driver and it's version?

It can be fetch from:

lshw -c video 2> /dev/null | awk '/configuration/{match($0,/driver=([^ ]*)/,m); print m[1]}'

and version from

xserver-xorg-video-$DRIVER

Also usefull:

1) vulkan api version. 2) DRI support 3) mesa version 4) opengl version 5) memory speed 6) bios version

Using:

VULKAN_VERSION=$(vulkaninfo 2> /dev/null | awk '/Vulkan Instance Version/{print $4}') || VULKAN_VERSION="failed" && echo "Vulkan: $VULKAN_VERSION"
glxinfo | awk '/Version:/{print "Mesa version: " $2}; /rendering/{print "DRI: " $3}; /OpenGL version/{print "OpenGL: " $4}'
sudo dmidecode -t memory
for D in date version release vendor; do
  T="/sys/devices/virtual/dmi/id/bios_$D"
  [ -e "$T" ] || continue
  echo -e "\t$D: " $(cat "$T")
done
uncomfyhalomacro commented 1 year ago

this utility is abandoned :) see #2288

uncomfyhalomacro commented 1 year ago

you can try https://github.com/fastfetch-cli/fastfetch. it seems to solve your question