No eGPU attached display detected with open source drivers #82
-
I got the following issue when trying to switch to my AMD eGPU.
I can still boot the Xorg session but there's a lot of lag. Any idea @hertg? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 4 replies
-
Do you not have any monitors connected to the eGPU directly?
Unfortunately, I do not have an AMD GPU that fits into my eGPU enclosure, so I am not too familiar with this part of the script as it also was an external contribution in #14. Maybe check out the comments on the PR to get a better understanding what's going on. |
Beta Was this translation helpful? Give feedback.
-
You don't need to plug an external monitor on a eGPU if it's hooked up to a laptop. It The strange thing is the AMDGPU driver are loaded but it's very laggy and there doesn't seem to be a lot of workload on the AMD GPU. I'm guessing for some reason the GPU and the internal monitor aren't communicating properly and the graphics must be offloaded to the CPU internal GPU resulting in poor performance (lag). In any case, there's something going wrong there. Do you have more information on why the script can't swithc to the eGPU if there's no external monitor with the AMDGPU driver? That seems an odd requirement for a eGPU since the whole concept is to add a GPU to a laptop and that it works with an NVIDIA + proprietary driver or on Windows. Thanks for the link to the PR. I'll have a look at it next week when I get some free time :). |
Beta Was this translation helpful? Give feedback.
-
No unfortunately, as I've said, I do not really have more knowledge about how it works, and why it behaves like that. Maybe @ewagner12 might have more information, as they are the code owner of that specific piece of code. |
Beta Was this translation helpful? Give feedback.
-
I added this check and code to the script specifically because of the lag that you mentioned. The open source drivers (both amdgpu and nouveau) have this issue of lag when you try to switch to the eGPU without a display attached. The suggested way to use the eGPU instead is to add the DRI_PRIME=1 environment variable before any command or game you want to use the eGPU. In reality, manually adding the variable shouldn't even be necessary sometimes since applications like Steam and Lutris will pickup and use the eGPU by default. But if we wanted to add a way of switching to an AMD eGPU without this lag issue it might be possible to use the amdgpu.virtual_display module parameter to spoof a virtual display. https://docs.kernel.org/gpu/amdgpu/module-parameters.html |
Beta Was this translation helpful? Give feedback.
I added this check and code to the script specifically because of the lag that you mentioned. The open source drivers (both amdgpu and nouveau) have this issue of lag when you try to switch to the eGPU without a display attached. The suggested way to use the eGPU instead is to add the DRI_PRIME=1 environment variable before any command or game you want to use the eGPU. In reality, manually adding the variable shouldn't even be necessary sometimes since applications like Steam and Lutris will pickup and use the eGPU by default.
But if we wanted to add a way of switching to an AMD eGPU without this lag issue it might be possible to use the amdgpu.virtual_display module parameter to spoof a …