Created
August 23, 2023 15:24
-
-
Save FlyingFathead/8f0e5efa86fa514812970b4b3e0d4ceb to your computer and use it in GitHub Desktop.
Nvidia Ubuntu 22.04LTS driver troubleshooting / esp. for eGPU's
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# print term-width horizontal line | |
function viivo() { | |
printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' - | lolcat -f ; | |
} | |
# find nvidia related troubles | |
function nvidiatroubleshoot() { | |
sudo echo "" | |
viivo && | |
sudo dmesg | grep -i -e "nv-" -e "nvidia" -e "drm" && | |
viivo && | |
cat /proc/modules | grep -e nvidia; | |
viivo && | |
lsmod | grep nvidia; | |
viivo && | |
sudo modprobe nvidia -vv; | |
viivo && | |
lspci -k | grep -A 2 -E "(VGA|3D)"; | |
viivo && | |
dkms status; | |
viivo && | |
echo "::: Thunderbolt (eGPU) status on 'boltctl'" && | |
viivo && | |
boltctl; | |
viivo && | |
echo "::: Thunderbolt in 'dmesg' ..." && | |
viivo && | |
sudo dmesg | grep -i thunderbolt; | |
viivo && | |
echo "::: Displaying 'journalctl' for entries ..." && | |
viivo && | |
journalctl -b | grep -i "drm\|nvidia\|01:00.0"; | |
viivo && | |
echo "" | |
} | |
nvidiatroubleshoot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment