eGPU and monitor hotplugging #12069
Unanswered
pauel3312
asked this question in
Bugs - DRM
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there!
I've been trying to get around this issue, but nothing on the wiki could get me a fix and people on the discord pointed me here, so here goes:
I've been trying to use a laptop with an eGPU and an external monitor plugged into it. It works great, except when I want to take my laptop on the go and not have it turn off. For that, I start by
hyprctl keyword monitor desc:$MON_DESC,disableecho 1 | sudo tee /sys/bus/pci/devices/$EGPU_PCI/removeUp till this point everything works great, no issues there.
The problem arises when I get back and try to plug it back in.
To this effect, I rescan PCI devices to get my eGPU back, with
echo 1 | sudo tee /sys/bus/pci/devices/$EGPU_PCI/removeAnd heres the core of the problem: when I previously unplugged the monitors, there is a stale monitor entry left over in
hyprctl monitors all. This is a problem because, when plugging the eGPU back in, the port assigned to the monitor (usuallyHDMI-A-2) changes (and ususally becomesHDMI-A-4). This is a problem, because the disabled monitor entry has not been removed, but it's description and parameters are still the same as the one I just plugged in.I use a quick script that finds the new monitors port flawlessly, but when I try to enable it by port with
hyprctl keyword monitor "$MON_PORT,1920x1080@60,2160x-570,1,transform,1", the monitor stays black, and any interaction with it whatsoever will cause hyprland to crash.I suspect this has to do with the old, stale monitor entry that still lingers in
hyprctl monitors all, but after hours of searching on the wiki, I could not find a fix, and I have now to assume this is some kind of bug or mishandling of hyprland.Beta Was this translation helpful? Give feedback.
All reactions