Switch from Nvidia gpu to Amd gpu


You will need to be a bit more explanatory than that.

What are you trying to do?

Maybe share system info:

inxi -Fazy

Please see this post on how to find information, format code, etc.

Kernel: 5.10.205-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 13.2.1
clocksource: tsc available: hpet,acpi_pm
parameters: BOOT_IMAGE=/boot/vmlinuz-5.10-x86_64
root=UUID=7fed2da7-3788-487f-9cab-16c56b8aff0a rw quiet apparmor=1
security=apparmor udev.log_priority=3
Desktop: KDE Plasma v: 5.27.10 tk: Qt v: 5.15.11 wm: kwin_x11 vt: 2
dm: SDDM Distro: Manjaro Linux base: Arch Linux
Type: Desktop Mobo: Gigabyte model: B550 GAMING X v: x.x
serial: UEFI: American Megatrends v: F10
date: 09/18/2020
Info: model: AMD Ryzen 5 5600X bits: 64 type: MT MCP arch: Zen 3+ gen: 4
level: v3 note: check built: 2022 process: TSMC n6 (7nm) family: 0x19 (25)
model-id: 0x21 (33) stepping: 0 microcode: 0xA201006
Topology: cpus: 1x cores: 6 tpc: 2 threads: 12 smt: enabled cache:
L1: 384 KiB desc: d-6x32 KiB; i-6x32 KiB L2: 3 MiB desc: 6x512 KiB L3: 32 MiB
desc: 1x32 MiB
Speed (MHz): avg: 2588 high: 4546 min/max: 2200/4650:5210:4932:5073:4791
boost: enabled scaling: driver: acpi-cpufreq governor: schedutil cores:
1: 3761 2: 2085 3: 2154 4: 2410 5: 2010 6: 4546 7: 2765 8: 2032 9: 2102
10: 2337 11: 2062 12: 2793 bogomips: 88668
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Type: gather_data_sampling status: Not affected
Type: itlb_multihit status: Not affected
Type: l1tf status: Not affected
Type: mds status: Not affected
Type: meltdown status: Not affected
Type: mmio_stale_data status: Not affected
Type: retbleed status: Not affected
Type: spec_rstack_overflow mitigation: safe RET, no microcode
Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
prctl and seccomp
Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
Type: spectre_v2 mitigation: Retpolines, IBPB: conditional, IBRS_FW,
STIBP: always-on, RSB filling, PBRSB-eIBRS: Not affected
Type: srbds status: Not affected
Type: tsx_async_abort status: Not affected
Device-1: NVIDIA TU106 [GeForce RTX 2060 Rev. A] vendor: ASUSTeK
driver: nvidia v: 545.29.06 alternate: nouveau,nvidia_drm non-free: 545.xx+
status: current (as of 2023-11; EOL~2026-12-xx) arch: Turing code: TUxxx
process: TSMC 12nm FF built: 2018-2022 pcie: gen: 3 speed: 8 GT/s lanes: 16
bus-ID: 09:00.0 chip-ID: 10de:1f08 class-ID: 0300
Display: x11 server: X.Org v: 21.1.10 compositor: kwin_x11 driver: X:
loaded: nvidia unloaded: modesetting,nouveau,vesa alternate: fbdev,nv
gpu: nvidia display-ID: :0 screens: 1
Screen-1: 0 s-res: 1920x1080 s-dpi: 81 s-size: 602x343mm (23.70x13.50")
s-diag: 693mm (27.28")
Monitor-1: HDMI-1 res: 1920x1080 hz: 60 dpi: 82
size: 598x336mm (23.54x13.23") diag: 686mm (27.01") modes: N/A
API: EGL v: 1.5 hw: drv: nvidia platforms: device: 0 drv: nvidia device: 2
drv: swrast gbm: drv: nvidia surfaceless: drv: nvidia x11: drv: nvidia
inactive: wayland,device-1
API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: nvidia mesa v: 545.29.06
glx-v: 1.4 direct-render: yes renderer: NVIDIA GeForce RTX 2060/PCIe/SSE2
memory: 5.86 GiB
API: Vulkan v: 1.3.274 layers: 7 device: 0 type: discrete-gpu
name: NVIDIA GeForce RTX 2060 driver: nvidia v: 545.29.06
device-ID: 10de:1f08 surfaces: xcb,xlib
Device-1: NVIDIA TU106 High Definition Audio vendor: ASUSTeK
driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16
bus-ID: 09:00.1 chip-ID: 10de:10f9 class-ID: 0403
Device-2: AMD Starship/Matisse HD Audio vendor: Gigabyte
driver: snd_hda_intel v: kernel pcie: gen: 4 speed: 16 GT/s lanes: 16
bus-ID: 0b:00.4 chip-ID: 1022:1487 class-ID: 0403
Device-3: Jieli USB Composite Device
driver: hid-generic,snd-usb-audio,usb-storage,usbhid type: USB rev: 1.1
speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 5-1:2 chip-ID: 4c4a:4155
class-ID: 0300 serial:
API: ALSA v: k5.10.205-1-MANJARO status: kernel-api with: aoss
type: oss-emulator tools: alsactl,alsamixer,amixer
Server-1: sndiod v: N/A status: off tools: aucat,midicat,sndioctl
Server-2: JACK v: 1.9.22 status: off tools: N/A
Server-3: PipeWire v: 1.0.0 status: off with: pipewire-media-session
status: active tools: pw-cli
Server-4: PulseAudio v: 16.1 status: active with: 1: pulseaudio-alsa
type: plugin 2: pulseaudio-jack type: module tools: pacat,pactl
Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
vendor: Gigabyte driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s
lanes: 1 port: f000 bus-ID: 08:00.0 chip-ID: 10ec:8168 class-ID: 0200
IF: enp8s0 state: up speed: 1000 Mbps duplex: full mac:
Local Storage: total: 4.09 TiB used: 964.44 GiB (23.0%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung model: SSD 970 EVO 500GB
size: 465.76 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s
lanes: 4 tech: SSD serial: fw-rev: 2B2QEXE7 temp: 27.9 C
scheme: GPT
ID-2: /dev/sda maj-min: 8:0 vendor: Seagate model: ST4000NM0035-1V4107
size: 3.64 TiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
tech: HDD rpm: 7200 serial: fw-rev: TN05 scheme: GPT
ID-1: / raw-size: 465.46 GiB size: 457.09 GiB (98.20%)
used: 425.66 GiB (93.1%) fs: ext4 dev: /dev/nvme0n1p2 maj-min: 259:2
ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
used: 296 KiB (0.1%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
Alert: No swap data was found.
System Temperatures: cpu: 51.2 C mobo: N/A
Fan Speeds (rpm): N/A
Processes: 286 Uptime: 14m wakeups: 0 Memory: total: 64 GiB note: est.
available: 62.79 GiB used: 2.55 GiB (4.1%) Init: systemd v: 254
default: graphical tool: systemctl Compilers: gcc: 13.2.1 alt: 12
clang: 16.0.6 Packages: pm: pacman pkgs: 1699 libs: 455 tools: pamac
pm: flatpak pkgs: 0 Shell: Zsh v: 5.9 default: Bash v: 5.2.21
running-in: yakuake inxi: 3.3.31
   ~ 

Still not very explanatory.

What have you done, what are you trying to do?

At least according to the inxi output you have the nvidia detected … possibly because thats the gfx profile still installed.

In any case you can try to gain ccess via TTY or runlevel3

From there I would check

mhwd -li -l

Both the kernel and the BIOS are pretty old.

1 Like

Sorry, I am new to all of this. What I am trying to do is remove the Nvidia driver so I can use the new amd gpu. Right now I have the nvidia card back in so I can access my desktop.

The entire problem started when I swapped the gpu to the amd and it wouldn’t boot up to get to the desktop. I was told that deleting the Nvidia driver would be the solution to that. However, didn’t know exactly where to look, or do to actually get rid of them entirely.

Ok please start with returning the output of

mhwd -li -l


mhwd-kernel -li

mhwd -li -l  :heavy_check_mark:

Installed PCI configs:

              NAME               VERSION          FREEDRIVER           TYPE

 video-modesetting            2020.01.13                true            PCI
        video-vesa            2017.03.12                true            PCI
      video-nvidia            2023.03.23               false            PCI
       video-linux            2018.05.04                true            PCI

Warning: No installed USB configs!

0000:09:00.0 (0300:10de:1f08) Display controller nVidia Corporation:

              NAME               VERSION          FREEDRIVER           TYPE

      video-nvidia            2023.03.23               false            PCI
video-nvidia-470xx            2023.03.23               false            PCI
       video-linux            2018.05.04                true            PCI
 video-modesetting            2020.01.13                true            PCI
        video-vesa            2017.03.12                true            PCI

0000:08:00.0 (0200:10ec:8168) Network controller Realtek Semiconductor Co., Ltd.:

              NAME               VERSION          FREEDRIVER           TYPE

     network-r8168            2023.09.12                true            PCI

   ~ 

Usage: mhwd [OPTIONS] <config(s)>

–pci list only pci devices and driver configs
–usb list only usb devices and driver configs
-h/–help show help
-v/–version show version of mhwd
-f/–force force reinstallation
-d/–detail show detailed info for -l/-li/-lh
-l/–list list available configs for devices
-la/–listall list all driver configs
-li/–listinstalled list installed driver configs
-lh/–listhardware list hardware information
-i/–install <usb/pci> <config(s)> install driver config(s)
-ic/–installcustom <usb/pci> install custom config(s)
-r/–remove <usb/pci> <config(s)> remove driver config(s)
-a/–auto <usb/pci> <free/nonfree> auto install configs for classid
–pmcachedir set package manager cache path
–pmconfig set package manager config
–pmroot set package manager root

Was this an attempt at mhwd-kernel ?
Please be careful of your spelling/input.
The code boxes here can also be easily copied.

mhwd-kernel -li

mhwd-kernel -li  127 ✘
Currently running: 5.10.205-1-MANJARO (linux510)
The following kernels are installed in your system:

  • linux510

Ok, another thing I notice is that you are in the danger zone of free space.

So please … take some time to clean as much as is comfortable to you.
The following steps will include some functions to clean, but with less than 10% free space it is important to alleviate some pressure.

Ok, we start with removing all the extra drivers (note: in future avoid vesa, and/or do not install random drivers just because they are available :wink:)

sudo mhwd -r pci video-vesa
sudo mhwd -r pci video-modesetting
sudo mhwd -r pci video-nvidia

Next we will purge the package cache to free up some space

paccache -rvk2
paccache -rvuk0

Next we will make sure your mirror is current, the system is up to date and install a modern kernel.

sudo pacman-mirrors -f && sudo pacman -Syu
sudo mhwd-kernel -i linux61 linux66

Now we will reinstall the open-source-umbrella profile

sudo mhwd -f -i pci video-linux

Now we can reboot.

If you want to remove the nvidia and/or replace with the AMD during this poweroff that should be OK.

We also want to select one of the new kernels to boot into.

If you have relatively new hardware, then it makes sense to aim for newer, but both 6.1 and 6.6 are LTS (long term support). You should be able to select one during boot (at grub, before login)
After login you can verify your kernel with

uname -a
1 Like

sudo mhwd -r pci video-nvidia  :heavy_check_mark:

Removing video-nvidia…
Sourcing /etc/mhwd-x86_64.conf
Has lib32 support: true
Sourcing /var/lib/mhwd/local/pci/video-nvidia/MHWDCONFIG
Processing classid: 0300
Sourcing /var/lib/mhwd/scripts/include/0300
Processing classid: 0302
checking dependencies…
error: failed to prepare transaction (could not satisfy dependencies)
:: removing nvidia-utils breaks dependency ‘nvidia-utils’ required by cuda
:: removing libxnvctrl breaks dependency ‘libxnvctrl’ required by psensor
Error: pacman failed!
Error: script failed!

It appears you have other nvidia-related packages installed.

sudo pacman -Rns cuda psensor

sudo mhwd -f -i pci video-linux  :heavy_check_mark:  50s 

Removing video-linux…
Sourcing /etc/mhwd-x86_64.conf
Has lib32 support: true
Sourcing /var/lib/mhwd/local/pci/video-linux/MHWDCONFIG
Processing classid: 0300
Sourcing /var/lib/mhwd/scripts/include/0300
Processing classid: 0380
Processing classid: 0302
checking dependencies…
error: failed to prepare transaction (could not satisfy dependencies)
:: removing xf86-video-amdgpu breaks dependency ‘xf86-video-amdgpu’ required by amdgpu-experimental
Error: pacman failed!
Error: script failed!

Please remove that as well.

sudo pacman -Rns amdgpu-experimental

(note: the only thing this package does is flip some switches to enable amdgpu on early GCN cards [southern islands and sea islands])

About to reboot. I’ll switch to the Amd card and see if everything works.

We may want to finalize some things afterwards.

If for whatever reason the gfx is not functional please see

To drop to TTY or boot to runlevel 3 where we can still interact with the console.

I’m back. AMD gpu is in an all is good. What is the next step?

Lets just check inxi again

inxi -Fazy

(see the kernel, driver, etc)

  • Do you see grub ?
  • Does a live manjaro work ?
  • Tip: Try to look into your UEFI.
    Sometimes there is a switch to select primary graphics-card.