Skip to content

Instantly share code, notes, and snippets.

@glazeus
Created April 29, 2018 19:54
Show Gist options
  • Select an option

  • Save glazeus/b14b569d02b0c2980d3349f1f6f7cdce to your computer and use it in GitHub Desktop.

Select an option

Save glazeus/b14b569d02b0c2980d3349f1f6f7cdce to your computer and use it in GitHub Desktop.
Check-GPU
lspci -k | grep -EA3 'VGA|3D|Display'
#Integrated
lspci | grep VGA
#00:02.0 VGA compatible controller: Intel Corporation Device 591b (rev 04)
glxinfo|egrep "OpenGL vendor|OpenGL renderer"
lspci | grep VGA ; lsmod | grep "kms\|drm" ; find /dev -group video ; \
cat /proc/cmdline ; find /etc/modprobe.d/; cat /etc/modprobe.d/*kms* ; \
ls /etc/X11/xorg.conf ; glxinfo | grep -i "vendor\|rendering" ; \
grep LoadModule /var/log/Xorg.0.log
#Dedicated
lspci | grep 3D
#00:02.0 VGA compatible controller: Intel Corporation Device 591b (rev 04)
optirun glxinfo|egrep "OpenGL vendor|OpenGL renderer"
lspci | grep 3D ; lsmod | grep "kms\|drm" ; find /dev -group video ; \
cat /proc/cmdline ; find /etc/modprobe.d/; cat /etc/modprobe.d/*kms* ; \
ls /etc/X11/xorg.conf ; glxinfo | grep -i "vendor\|rendering" ; \
grep LoadModule /var/log/Xorg.0.log
glxinfo | grep -i vendor
#server glx vendor string: SGI
#client glx vendor string: Mesa Project and SGI
# Vendor: Intel Open Source Technology Center (0x8086)
#OpenGL vendor string: Intel Open Source Technology Center
#install 'egrep'
sudo apt install pcregrep -y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment