Skip to content

Instantly share code, notes, and snippets.

@JJediny
Last active May 21, 2020 18:29
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 JJediny/b0684caf97084b33420ed9713df839e0 to your computer and use it in GitHub Desktop.
Save JJediny/b0684caf97084b33420ed9713df839e0 to your computer and use it in GitHub Desktop.
Script based on documentation for logs to look at - for latest amdgpu ubuntu 18.04 20.04 driver https://www.amd.com/en/support/kb/release-notes/rn-amdgpu-unified-linux - debugging https://amdgpu-install.readthedocs.io/en/latest/install-bugrep.html#generating-a-bug-report. $ mkdir amdgpu-debug $ sudo bash generate-logs.sh
#!/bin/bash
LOGDIR=~/amdgpu-debug/logs/$timeNowLocal
# debug mode
set -euo pipefail
set -x
# Create folder for log session
mkdir -p $LOGDIR
cd $LOGDIR
#Gather basic configuration details.
sudo lshw -c cpu | grep product >> basic.conf
lspci -nn | grep "VGA\|Display" >> basic.conf
sudo dmidecode -t BIOS | grep Version >> basic.conf
lsb_release -sd >> basic.conf
uname -a >> basic.conf
dkms status | grep "amdgpu\|radeon" >> basic.conf
#Create detailed log files by running the following commands:
dkms status > dkms.status.log
lsmod | grep amdgpu > lsmod.amdgpu.log
dmesg > dmesg.log
cp /var/log/Xorg.0.log .
type -p dpkg && dpkg -l > package.log
type -p rpm && rpm -qa > package.log
#(Optional) To facilitate in-depth analysis, you can run the following commands:
lspci -vnn > lspci.vnn.log
lspci -nn > lspci.nn.log
sudo dmidecode > dmidecode.log
uname -a > uname.a.log
lsinitramfs /boot/initrd.img-`uname -r` > lsinitramfs.log
sudo lshw > lshw.log
modinfo amdgpu > modinfo.amdgpu.log
glxinfo > glxinfo.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment