[SOLVED] Switching from NVIDIA to AMD - need I install/uninstall anything?
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Switching from NVIDIA to AMD - need I install/uninstall anything?
I'm switching from an NVIDIA GPU (1650S) to an AMD (RX 6600) very soon, so I was wondering if there is anything driver-wise that I need to install (or uninstall) to make sure it'll work. I've heard generally that AMD is a much better Linux experience than NVIDIA (one reason I'm switching), so I'm not expecting too much trouble.
I looked this up in a few places, but I just wanted to check in with Slackware specifically to see if there's anything specific to my distro I've missed. I have mesa and mesa-compat32 installed and up to date on -current, and as far as I've been able to find I think that should be enough? Currently I'm running the NVIDIA proprietary driver, so I wasn't sure if I need to uninstall that or not before switching?
I also saw some people mention stuff about deleting xorg.conf, though I'm not sure where to find that file (or if I do even have to remove it?). In etc/X11 I have an xorg.conf-vesa, and an (empty) xorg.conf.d folder. Not sure if either of those are what I'm looking for, though.
AFAIK, there is no need to uninstall anything as long as xorg.conf, if it exists, calls for the appropriate driver, perhaps unless you require modesetting in runlevel3.
I switched to AMD when Slackware-current (pre-15.0) added kernel 5.4 with Polaris 10 (Raden RX590) and Navi (Radeon RX 5700 XT). Never looked back. This was after 10+ years maintaining the Nvidia buildscripts on Slackbuilds.org (new guy doing a GREAT job!).
Although you "can" just leave the nvidia bits installed, I recommend that you uninstall them and clear out all the debris from /etc/X11/xorg.conf.d/ and /usr/share/X11/xorg.conf.d/ ; also, that way the initial linux framebuffer goes back to normal. You can leave nouveau blacklisted since it doesn't matter. Don't leave random unused shit on the hard drive is my preference. Clear out anything you may have added to rc.local.
Make sure that /usr/share/X11/xorg.conf.d/10-amdgpu.conf still exists. This is what X11 (X.org) actually will look for by default, and is all that is needed for Xfce, KDE and other DE stuff to paint pretty GUI pix. The monitor applets in these DEs is pretty much all you need even for most multimonitor setups. No need to futz with mode line settings. If nvidia buggered things up, just reinstall mesa, xorg-server and xf86-video-amdgpu. You can leave /etc/X11/xorg.conf.d/ empty untill you need to tweak monitor or driver settings. For example, for AMD freesync monitors (kinda working on 5.15.38 kernel, almost, but not for dual monitor) my /etc/X11/xorg.conf.d/xorg.conf:
My dual 28" 2560x1440 IPS LCD/LED panels look very pretty. Bonus when swapping/upgrading kernels it just works. OpenCL (for compute such as Boinc etc) is still lacking. I'm working on getting the ROCm runtime sorted for that hopefully eventually- or maybe Mesa will finally finish there Clover OpenCL implementation.
I don't use xorg.conf anymore since Xorg can handle devices automatically using udev, upower, libinput, libdrm, kernel kms, etc. I think, the last time I'm using xorg.conf was in 2018. Now I prefer using wayland-based desktop instead of Xorg.
Reporting back with the RX 6600 installed and running very well. Lovely to finally be able to run Witcher 3 at a smooth 60FPS, and OBS VAAPI recording finally works.
Only small hiccup is that Folding@Home doesn't seem to like the new GPU or driver (complains about missing OpenCL support) -- is this a separate thing I'd need to install? If it's proprietary-driver-specific that's fine, I'm not too invested in having F@H.
@murdo,
as I mentioned above, OpenCL is still lacking for the open source amdgpu. The "clover" platform included in Mesa (essentially a partial OpenCL 1.1) doesn't really work for F@H and BOINC. To get that you'll need either open source ROCm or the proprietary AMDGPU-PRO drivers. As I said I'm still working on getting ROCm OpenCL runtime compiled. Their build system and dependencies are absolute chaos.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.