First off I'm almost sure this isn't the best place to report this issue but I hope someone here can point me in the right direction, so sorry in advance.
I use a thunderbolt 3 attached nvidia GPU on my laptop running Ubuntu 17.10 (Dell XPS 15 9560). After resuming from sleep the external GPU has all kinds of problems, it is detected from lspci but if I try to use it, for example by running nvidia-smi the card is not detected, and passing it through to a VM just gives colored noise on the monitor. After some googling I found that running
$ sudo sh -c "echo 1 > /sys/bus/pci/rescan"
After resuming from sleep fixes the issue. I can set this up to run automatically after resume (probably) but I bet this is some sort of bug. Now the really weird thing is that this happens if the laptop has ever slept, not just when it sleeps with the GPU attached, replugging the thunderbolt cable doesnt help. In other words, if I cold boot the laptop undocked, do some things still undocked, sleep the laptop, then unsleep it and dock, the GPU is still unusable unless I reboot or run above command.
Anyway any thoughts would be appreciated and please let me know the right place to report this bug.
First off I'm almost sure this isn't the best place to report this issue but I hope someone here can point me in the right direction, so sorry in advance.
I use a thunderbolt 3 attached nvidia GPU on my laptop running Ubuntu 17.10 (Dell XPS 15 9560). After resuming from sleep the external GPU has all kinds of problems, it is detected from
lspcibut if I try to use it, for example by runningnvidia-smithe card is not detected, and passing it through to a VM just gives colored noise on the monitor. After some googling I found that runningAfter resuming from sleep fixes the issue. I can set this up to run automatically after resume (probably) but I bet this is some sort of bug. Now the really weird thing is that this happens if the laptop has ever slept, not just when it sleeps with the GPU attached, replugging the thunderbolt cable doesnt help. In other words, if I cold boot the laptop undocked, do some things still undocked, sleep the laptop, then unsleep it and dock, the GPU is still unusable unless I reboot or run above command.
Anyway any thoughts would be appreciated and please let me know the right place to report this bug.