A script to change Xorg config
That list is referring to the package with both the AMDGPU and AMDGPU-PRO drivers as it says just above on that page. Maybe the WX cards aren't unsupported with the open source driver only but I think they're clearly intended to be used with both the AMDGPU and AMDGPU-PRO drivers from the package on that page.
From the install overview:
- Pro: recommended for use with Radeon Pro graphics products.
I agree it's a tricky question, but reading the man page for amdgpu says:
"The amdgpu driver supports SI and newer families' video cards."
"SI" supposedly stands for Southern Islands, which looking at this wiki-page covers just about every card after AMD bought ATI:
How I interpret this, is if something's *not* working as intended with the open source amdgpu driver, a bug-report is in order. Because it should "just work".
I´m by no stretch an expert, I just shared what worked for me, and _may_ work for others, no guarantees!
I think your plan sounds sane, like what I do. I have added the graphics drivers PPA from here, perhaps the same one you have:
And installed the 410 version of the nvidia driver. Not sure if that was really needed but it´s done.
If I had an AMD card, I would´ve stuck with the driver that comes with the distro, as that seems to be reasonably up to date and more importantly supported and integrated with it. Adding unsupported PPA's is something I´m extremely weary of, since it may or may not break stuff down the line when the PPA maintainer finds another fancy or get hit by a bus, or whatever. I want my machine to be rock friggin solid. I´m too boring to sit and tinker with stuff now. I´ve grown past that learning part of my life when something like Arch would have been cool. Nowadays, I know how that stuff works, I concede to the wisdom of the distro's package maintainers (that mostly get stuff done "right" anyways) and just want to sit down and game or whatever 🙂 I have my FreeBSD servers to play with 🙂
You can use my xorg config just like it is, no additional config lines are necessary when using any Ubuntu derivative. Just make sure to change the "BusID" accordingly and use my script when you want to switch the graphics to the eGPU and back. Do you know how to get that going or do I need to explain in more detail?
Hi again, thanks for clarifying about drivers. Regarding the Xorg.conf and the script, yes if you could provide more details that would be great as I’m pretty new to Linux.
That´s quite alright, I figured as much 🙂
You don´t need any xorg.conf when you don´t want to use the eGPU, that´s what´s good about it. Regarding the dGPU, what you´re asking is how to disable it completely; that I don´t know. But that´s not how these things work either. In PC's, you can in BIOS/UEFI choose like "Hybrid Graphics" or "Discrete Graphics". Hybrid _enables_ both i- and d-GPU and then you just _use_ the iGPU and let the dGPU be, and that´s what you´ll be doing. You will not _use_ the i/d-GPU when you plug in the eGPU (after running the script), but they will be enabled. That´s the difference. Hope I explained that so it makes sense...
Since you´re a beginner. I´ve scripted the process for you to minimize the potential error:
Then you need to check what PCI BusID the eGPU gets _after_ plugging it in to the laptop:
If you are happy with the output, we store it in a variable and edit the xorg template:
After that you´re all set! When you want to use the eGPU, you just run:
The laptop will reboot, so make sure to save everything open before doing so! And when you´re done, you run:
It will reboot and you can disconnect the eGPU. Simple as that.
I tested your script last evening on Arch Linux and a HP Omen Graphics Accelerator. I didn't want to reboot so I thought that I basically just need to restart the XServer and this is done by restarting your display manager. So I replaced every "reboot" with a "`systemctl restart lightdm`" and it worked, kind of. It's interesting because I get all the monitors connected to my eGPU displayed and usable but they're fired by the Intel iGPU which is apparently too weak for FullHD + 2x WQHD or it's just the Plasma desktop being slow. The inserted AMD gpu is not used at all, tried with glxspheres64 on one external monitor.
What I would like to ask you, as your script is working for you otherwise: Could you do the same to the script(insert your displaymanager of course) and test what the outcome is for you? I didn't get to try the reboot method yet because I have to manually authorize the eGPU after connecting and ran out of time yesterday. Will try that probably this evening or some time over the weekend.
Edit: Ok, the reboot method doesn't change a thing. So restarting the display manager should be enough but my config doesn't fit the setup apparently.