Switching from NVIDIA to AMD

I have already asked this question here, but the solution didn’t work.

As NVIDIA not being perfectly support for Linux I’m thinking of moving from my old NVIDIA GeForce GTX 760 to an ATI Asus ROG STRIX RX560 (PC).

Manjaro won’t start with the new card. After GRUP, the screen goes black/blank.

Is there a way to install the GPU without reinstalling the OS? I’ve already made a new Manjaro bootable USB drive and saved the few local files to my NAS, so reinstalling isn’t a problem, but still I’d like to try.

Best, Edward

You dont have to install anything additional for AMD. I guess there are leftovers of Nvidia drivers.

When there is a black screen, can you switch to another TTY? If so, then my guess is right and you can remove anything related to Nvidia.

Didn’t try to access any TTY. (Silly me).

Do you know what needs to be removed precisely? This way I can prepare.
I use the GUI in 99% of the cases I need to add something, and only work on the CLI if absolutely necessary. This prevents me from doing stupid stuff, as I do not do this regularly there is always the chance to get something wrong or forget something.

This is what I would do:

pamac search nvidia | grep Installed

egl-wayland  4:1.1.13.1-1 [Installed]                                      extra
mhwd-nvidia-470xx  470.256.02-4 [Installed]                                extra
mhwd-nvidia-390xx  390.157-14 [Installed]                                  extra
mhwd-nvidia  550.107.02-1 [Installed]                                      extra
linux66-nvidia-470xx  470.256.02-18 [Installed]                            extra
lib32-nvidia-470xx-utils  470.256.02-1 [Installed]                      multilib
nvidia-470xx-utils  470.256.02-4 [Installed]                               extra
nvidia-470xx-settings  470.256.02-1 [Installed]                            extra

I’d then go and remove every package:
pamac remove

Not sure about wayland though.

That would not be the correct approach.

We use mhwd to handle drivers.

https://wiki.manjaro.org/index.php/Configure_Graphics_Cards

sudo mhwd -r pci video-nvidia-470xx

If that does not work then

sudo pacman -Rns linux66-nvidia-470xx lib32-nvidia-470xx-utils nvidia-470xx-utils nvidia-470xx-settings

Then you may wish to re-install the open drivers

sudo mhwd -f -i pci video-linux

Next you may wish to double check on your options in mkinitcpio and kernel/boot/grub

cat /etc/default/grub
head -n -0 /etc/mkinitcpio{*,.conf.d/*}.conf
head -n -0 /etc/X11/{xorg.conf,mhwd}.d/*

But I might suggest sending those to pastes;

cat /etc/default/grub | curl -F 'file=@-' https://0x0.st
head -n -0 /etc/mkinitcpio{*,.conf.d/*}.conf | curl -F 'file=@-' https://0x0.st
head -n -0 /etc/X11/{xorg.conf,mhwd}.d/* | curl -F 'file=@-' https://0x0.st

Depending on those files, especially after edits, you may eventually want to rebuild initram and update grub.

sudo mkinitcpio -P && sudo grub-mkconfig -o /boot/grub/grub.cfg
3 Likes

and… rm -f /etc/X11/xorg.conf.d/90-mhwd.conf /etc/X11/xorg.conf

1 Like

next would be the restart.

xorg.conf will rebuild itself?

Not needed for open source drivers. /usr/share/X11/xorg.conf.d/ will take place if you use xorg. Irrelevant for Wayland.

These 2 files will force instructing to use nvidia only, so you will be greeted with a black screen on boot time if you use X11/Xorg.

1 Like

What didn’t work was

head -n -0 /etc/mkinitcpio{,.conf.d/}.conf | curl -F ‘file=@-’ https://0x0.st

Subsequentially I didn’t do

sudo mkinitcpio -P

But as you can see, I’m up and running.

It was just to find configuration files and print them.

I must assume it ‘didnt work’ because of something or other with zsh. :person_shrugging:

'' != ‘’

I manually typed the command and used ' and not ´
20 years ago, I was more used to working on the CLI, today I do not have enough time to go into all the details and reading documentation for hours.
That’s why I’m not using Arch. My limited time and knowledge usually are enough for Manjaro to use it the way I need it.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.