Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.