forked from DouglasFreshHabian/Bash_Scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAmdBugReport.sh
More file actions
34 lines (26 loc) · 846 Bytes
/
Copy pathAmdBugReport.sh
File metadata and controls
34 lines (26 loc) · 846 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/bash
# A Simple Bash Script to Automate the Gathering of Detailed Information On Amd GPU
LOGDIR=/home/douglas/AMD/LOGS/$(date +%F)
mkdir -p $LOGDIR
cd $LOGDIR
# Gather Basic Configuration Details
sudo lshw -c cpu | grep product >> basic.conf
lspci -nn | grep "AMD" >> basic.conf
sudo dmidecode -t BIOS | grep Version >> basic.conf
lsb_release -sd >> basic.conf
uname -a >> basic.conf
dkms status >> basic.conf
# Create Detailed Log Files
dkms status > dkms.status.log
lsmod | grep amdgpu > lsmod.amdgpu.log
sudo dmesg > dmesg.log
type -p dpkg && dpkg -l > package.log
# In Depth Analysis
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