Skip to content
This repository was archived by the owner on Aug 5, 2022. It is now read-only.
This repository was archived by the owner on Aug 5, 2022. It is now read-only.

Thunderbolt Attached Device Needs Rescan #52

Description

@Queuecumber

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions