Skip to content

Instantly share code, notes, and snippets.

@NullVoxPopuli
Created June 6, 2013 19:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NullVoxPopuli/5724159 to your computer and use it in GitHub Desktop.
Save NullVoxPopuli/5724159 to your computer and use it in GitHub Desktop.
Information needed to help people debug graphics problems on your linux machine
#!/bin/bash
echo -e "\e[01;33mGraphics Card(s): \e[00m";
lspci | grep VGA;
echo -e "\e[01;33mConnected Monitors: \e[00m";
egrep -i " connected|card detect|primary dev" /var/log/Xorg.0.log;
echo -e "\e[01;33mCurrent Video Driver: \e[00m";
lsmod | grep "kms\|drm";
echo -e "\e[01;33mVideo Output Locations: \e[00m";
find /dev -group video;
echo -e "\e[01;33mGrub boot command: \e[00m";
cat /proc/cmdline;
echo -e "\e[01;33mmodprobe.d drivers: \e[00m";
find /etc/modprobe.d/;
echo -e "\e[01;33mDo we have a xorg.conf file?\e[00m";
ls /etc/X11/xorg.conf;
echo -e "\e[01;33mglxinfo: \e[00m";
glxinfo | grep -i "vendor\|rendering";
echo -e "\e[01;33mDrivers loaded by Xorg: \e[00m";
grep LoadModule /var/log/Xorg.0.log;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment