From NVIDIA to AMD

Hi all.

I have bought a AMD RX 570 card, for which the ultimate goal is to run along my NVIDIA GTX 1650 SUPER (but just one screen). However, the first step on that road is to just make the RX 570 work on its own I suppose.

Unfortunately, I already come short here. I’m met with a black screen instead of the login screen, and sometimes a light display manager failed error message.

What I have tried:

  1. sudo pacman-mirrors -f3 && sudo pacman -Syyu
  2. startx. Log file is posted below.
  3. Adding amdgpu in mkinitcpio.conf followed by sudo mkinitcpio -P.
  4. Running sudo mhwd -a pci nonfree 0300 which installed video-linux, althought it didn’t help so I have removed it again.

Output of Xorg.0.log.old:

[     5.177] 
X.Org X Server 1.20.11
X Protocol Version 11, Revision 0
[     5.177] Build Operating System: Linux Manjaro Linux
[     5.177] Current Operating System: Linux manjaro 5.10.36-2-MANJARO #1 SMP PREEMPT Tue May 11 19:38:44 UTC 2021 x86_64
[     5.177] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-5.10-x86_64 root=UUID=645004ec-4627-4665-8b18-fd6283c23424 rw quiet apparmor=1 security=apparmor resume=UUID=79b89e8c-ba5d-458b-bf51-550fbb86bcfe udev.log_priority=3
[     5.177] Build Date: 13 April 2021  04:11:08PM
[     5.177]  
[     5.177] Current version of pixman: 0.40.0
[     5.177] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[     5.177] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[     5.177] (==) Log file: "/var/log/Xorg.0.log", Time: Thu May 20 09:19:20 2021
[     5.177] (==) Using config file: "/etc/X11/xorg.conf"
[     5.177] (==) Using config directory: "/etc/X11/xorg.conf.d"
[     5.177] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[     5.177] (==) ServerLayout "layout"
[     5.177] (**) |-->Screen "Screen0" (0)
[     5.177] (**) |   |-->Monitor "Monitor0"
[     5.178] (**) |   |-->Device "Device0"
[     5.178] (**) |   |-->GPUDevice "Device0"
[     5.178] (**) |   |-->GPUDevice "Device0"
[     5.178] (==) Automatically adding devices
[     5.178] (==) Automatically enabling devices
[     5.178] (==) Automatically adding GPU devices
[     5.178] (==) Automatically binding GPU devices
[     5.178] (==) Max clients allowed: 256, resource mask: 0x1fffff
[     5.178] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/misc".
[     5.178] 	Entry deleted from font path.
[     5.178] 	(Run 'mkfontdir' on "/usr/share/fonts/misc").
[     5.178] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/TTF".
[     5.178] 	Entry deleted from font path.
[     5.178] 	(Run 'mkfontdir' on "/usr/share/fonts/TTF").
[     5.178] (WW) The directory "/usr/share/fonts/OTF" does not exist.
[     5.178] 	Entry deleted from font path.
[     5.178] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[     5.178] 	Entry deleted from font path.
[     5.178] (WW) The directory "/usr/share/fonts/100dpi" does not exist.
[     5.178] 	Entry deleted from font path.
[     5.178] (WW) The directory "/usr/share/fonts/75dpi" does not exist.
[     5.178] 	Entry deleted from font path.
[     5.178] (==) FontPath set to:
	
[     5.178] (==) ModulePath set to "/usr/lib/xorg/modules"
[     5.178] (**) Extension "COMPOSITE" is enabled
[     5.178] (II) The server relies on udev to provide the list of input devices.
	If no devices become available, reconfigure udev or disable AutoAddDevices.
[     5.178] (II) Module ABI versions:
[     5.178] 	X.Org ANSI C Emulation: 0.4
[     5.178] 	X.Org Video Driver: 24.1
[     5.178] 	X.Org XInput driver : 24.1
[     5.178] 	X.Org Server Extension : 10.0
[     5.178] (++) using VT number 7

[     5.178] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[     5.179] (II) xfree86: Adding drm device (/dev/dri/card0)
[     5.184] (--) PCI:*(38@0:0:0) 1002:67df:1462:341a rev 239, Mem @ 0xe0000000/268435456, 0xf0000000/2097152, 0xfcf00000/262144, I/O @ 0x0000e000/256, BIOS @ 0x????????/131072
[     5.184] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[     5.184] (II) LoadModule: "glx"
[     5.184] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[     5.185] (II) Module glx: vendor="X.Org Foundation"
[     5.185] 	compiled for 1.20.11, module version = 1.0.0
[     5.185] 	ABI class: X.Org Server Extension, version 10.0
[     5.185] (II) LoadModule: "nvidia"
[     5.185] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[     5.186] (II) Module nvidia: vendor="NVIDIA Corporation"
[     5.186] 	compiled for 1.6.99.901, module version = 1.0.0
[     5.186] 	Module class: X.Org Video Driver
[     5.186] (II) NVIDIA dlloader X Driver  460.80  Fri May  7 06:53:15 UTC 2021
[     5.186] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[     5.186] (EE) No devices detected.
[     5.186] (EE) 
Fatal server error:
[     5.186] (EE) no screens found(EE) 
[     5.186] (EE) 
Please consult the The X.Org Foundation support 
	 at http://wiki.x.org
 for help. 
[     5.186] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[     5.186] (EE) 
[     5.186] (EE) Server terminated with error (1). Closing log file.

Output of inxi -Ga with NVIDIA card seated:

Graphics:  Device-1: NVIDIA TU116 [GeForce GTX 1650 SUPER] vendor: Gigabyte driver: nvidia v: 460.80 
           alternate: nouveau,nvidia_drm bus-ID: 26:00.0 chip-ID: 10de:2187 class-ID: 0300 
           Display: x11 server: X.Org 1.20.11 driver: loaded: nvidia display-ID: :0.0 screens: 1 
           Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x286mm (20.0x11.3") s-diag: 583mm (23") 
           Monitor-1: DP-0 res: 1920x1080 hz: 120 dpi: 92 size: 531x299mm (20.9x11.8") diag: 609mm (24") 
           OpenGL: renderer: GeForce GTX 1650 SUPER/PCIe/SSE2 v: 4.6.0 NVIDIA 460.80 direct render: Yes

I found it odd, that when I had the AMD card seated and saw the output of inxi -F, then I noticed this line:

driver: loaded: nvidia

which I suspect could be a part of the error, although I don’t know.

Output of xrandr:

Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 32767 x 32767
DVI-D-0 disconnected (normal left inverted right x axis y axis)
HDMI-0 disconnected (normal left inverted right x axis y axis)
DP-0 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 531mm x 299mm
   1920x1080    119.98*+ 143.85   119.88   100.00    99.90    60.00    59.94    50.00    29.97    25.00    23.98  
   1680x1050     59.95  
   1600x1200     60.00  
   1440x900      59.89  
   1400x1050     59.98  
   1280x1024     75.02    60.02  
   1280x960      60.00  
   1280x720      60.00    59.94    50.00  
   1024x768      75.03    70.07    60.00  
   800x600       75.00    72.19    60.32    56.25  
   720x576       50.00  
   720x480       59.94  
   640x480       75.00    72.81    59.94    59.93  
DP-1 disconnected (normal left inverted right x axis y axis)

Output of inxi --admin --verbosity=7 --filter --no-host --width:

System:
  Kernel: 5.10.36-2-MANJARO x86_64 bits: 64 compiler: gcc v: 10.2.0 
  parameters: BOOT_IMAGE=/boot/vmlinuz-5.10-x86_64 
  root=UUID=645004ec-4627-4665-8b18-fd6283c23424 rw quiet apparmor=1 
  security=apparmor resume=UUID=79b89e8c-ba5d-458b-bf51-550fbb86bcfe 
  udev.log_priority=3 
  Desktop: Xfce 4.16.0 tk: Gtk 3.24.24 info: xfce4-panel wm: xfwm4 vt: 7 
  dm: LightDM 1.30.0 Distro: Manjaro Linux base: Arch Linux 
Machine:
  Type: Desktop Mobo: Micro-Star model: B450M MORTAR MAX (MS-7B89) v: 1.0 
  serial: <filter> UEFI: American Megatrends v: 2.60 date: 12/30/2019 
Battery:
  Message: No system battery data found. Is one present? 
Memory:
  RAM: total: 15.64 GiB used: 2.52 GiB (16.1%) 
  RAM Report: permissions: Unable to run dmidecode. Root privileges required. 
CPU:
  Info: 6-Core model: AMD Ryzen 5 3600 bits: 64 type: MT MCP arch: Zen 2 
  family: 17 (23) model-id: 71 (113) stepping: 0 microcode: 8701013 cache: 
  L2: 3 MiB bogomips: 86437 
  Speed: 2198 MHz min/max: 2200/3600 MHz boost: enabled Core speeds (MHz): 
  1: 2198 2: 2198 3: 2193 4: 2202 5: 2197 6: 2205 7: 2199 8: 2200 9: 2197 
  10: 2192 11: 2192 12: 2194 
  Flags: 3dnowprefetch abm adx aes aperfmperf apic arat avic avx avx2 bmi1 
  bmi2 bpext cat_l3 cdp_l3 clflush clflushopt clwb clzero cmov cmp_legacy 
  constant_tsc cpb cpuid cqm cqm_llc cqm_mbm_local cqm_mbm_total cqm_occup_llc 
  cr8_legacy cx16 cx8 de decodeassists extapic extd_apicid f16c flushbyasid 
  fma fpu fsgsbase fxsr fxsr_opt ht hw_pstate ibpb ibs irperf lahf_lm lbrv lm 
  mba mca mce misalignsse mmx mmxext monitor movbe msr mtrr mwaitx nonstop_tsc 
  nopl npt nrip_save nx osvw overflow_recov pae pat pausefilter pclmulqdq 
  pdpe1gb perfctr_core perfctr_llc perfctr_nb pfthreshold pge pni popcnt pse 
  pse36 rdpid rdpru rdrand rdseed rdt_a rdtscp rep_good sep sev sev_es sha_ni 
  skinit smap smca sme smep ssbd sse sse2 sse4_1 sse4_2 sse4a ssse3 stibp 
  succor svm svm_lock syscall tce topoext tsc tsc_scale umip v_vmsave_vmload 
  vgif vmcb_clean vme vmmcall wbnoinvd wdt xgetbv1 xsave xsavec xsaveerptr 
  xsaveopt xsaves 
  Vulnerabilities: Type: itlb_multihit status: Not affected 
  Type: l1tf status: Not affected 
  Type: mds status: Not affected 
  Type: meltdown status: Not affected 
  Type: spec_store_bypass 
  mitigation: Speculative Store Bypass disabled via prctl and seccomp 
  Type: spectre_v1 
  mitigation: usercopy/swapgs barriers and __user pointer sanitization 
  Type: spectre_v2 mitigation: Full AMD retpoline, IBPB: conditional, STIBP: 
  conditional, RSB filling 
  Type: srbds status: Not affected 
  Type: tsx_async_abort status: Not affected 
Graphics:
  Device-1: NVIDIA TU116 [GeForce GTX 1650 SUPER] vendor: Gigabyte 
  driver: nvidia v: 460.80 alternate: nouveau,nvidia_drm bus-ID: 26:00.0 
  chip-ID: 10de:2187 class-ID: 0300 
  Display: x11 server: X.Org 1.20.11 driver: loaded: nvidia display-ID: :0.0 
  screens: 1 
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x286mm (20.0x11.3") 
  s-diag: 583mm (23") 
  Monitor-1: DP-0 res: 1920x1080 hz: 120 dpi: 92 size: 531x299mm (20.9x11.8") 
  diag: 609mm (24") 
  OpenGL: renderer: GeForce GTX 1650 SUPER/PCIe/SSE2 v: 4.6.0 NVIDIA 460.80 
  direct render: Yes 
Audio:
  Device-1: NVIDIA TU116 High Definition Audio vendor: Gigabyte 
  driver: snd_hda_intel v: kernel bus-ID: 26:00.1 chip-ID: 10de:1aeb 
  class-ID: 0403 
  Device-2: AMD Starship/Matisse HD Audio vendor: Micro-Star MSI 
  driver: snd_hda_intel v: kernel bus-ID: 28:00.4 chip-ID: 1022:1487 
  class-ID: 0403 
  Sound Server-1: ALSA v: k5.10.36-2-MANJARO running: yes 
  Sound Server-2: JACK v: 0.125.0 running: no 
  Sound Server-3: PulseAudio v: 14.2 running: yes 
  Sound Server-4: PipeWire v: 0.3.27 running: no 
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
  vendor: Micro-Star MSI driver: r8169 v: kernel port: f000 bus-ID: 22:00.0 
  chip-ID: 10ec:8168 class-ID: 0200 
  IF: enp34s0 state: up speed: 1000 Mbps duplex: full mac: <filter> 
  IP v4: <filter> type: dynamic noprefixroute scope: global 
  broadcast: <filter> 
  IF-ID-1: tun0 state: unknown speed: 10 Mbps duplex: full mac: N/A 
  IP v4: <filter> scope: global 
  WAN IP: <filter> 
Bluetooth:
  Message: No bluetooth data found. 
Logical:
  Message: No logical block device data found. 
RAID:
  Message: No RAID data found. 
Drives:
  Local Storage: total: 465.76 GiB used: 157.48 GiB (33.8%) 
  SMART Message: Required tool smartctl not installed. Check --recommends 
  ID-1: /dev/sda maj-min: 8:0 vendor: Crucial model: CT500MX500SSD1 
  size: 465.76 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s 
  rotation: SSD serial: <filter> rev: 023 scheme: GPT 
  Message: No optical or floppy data found. 
Partition:
  ID-1: / raw-size: 228.99 GiB size: 224.4 GiB (97.99%) 
  used: 157.48 GiB (70.2%) fs: ext4 dev: /dev/sda7 maj-min: 8:7 label: N/A 
  uuid: 645004ec-4627-4665-8b18-fd6283c23424 
  ID-2: /boot/efi raw-size: 512 MiB size: 511 MiB (99.80%) 
  used: 340 KiB (0.1%) fs: vfat dev: /dev/sda6 maj-min: 8:6 label: N/A 
  uuid: 3528-0D9C 
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default) 
  ID-1: swap-1 type: partition size: 7.81 GiB used: 0 KiB (0.0%) priority: -2 
  dev: /dev/sda5 maj-min: 8:5 label: N/A 
  uuid: 79b89e8c-ba5d-458b-bf51-550fbb86bcfe 
Unmounted:
  ID-1: /dev/sda1 maj-min: 8:1 size: 529 MiB fs: ntfs label: N/A 
  uuid: 96A8D809A8D7E631 
  ID-2: /dev/sda2 maj-min: 8:2 size: 99 MiB fs: vfat label: N/A 
  uuid: 10E7-6F57 
  ID-3: /dev/sda3 maj-min: 8:3 size: 16 MiB fs: <superuser required> 
  label: N/A uuid: N/A 
  ID-4: /dev/sda4 maj-min: 8:4 size: 227.83 GiB fs: ntfs label: N/A 
  uuid: EE54ECC354EC901F 
USB:
  Hub-1: 1-0:1 info: Full speed (or root) Hub ports: 10 rev: 2.0 
  speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900 
  Device-1: 1-7:2 info: Logitech G203 Gaming Mouse type: Mouse,HID 
  driver: hid-generic,usbhid interfaces: 2 rev: 2.0 speed: 12 Mb/s 
  power: 300mA chip-ID: 046d:c084 class-ID: 0300 serial: <filter> 
  Device-2: 1-10:3 info: Apple Aluminium Keyboard (ANSI) type: Keyboard,HID 
  driver: apple,usbhid interfaces: 3 rev: 2.0 speed: 12 Mb/s power: 350mA 
  chip-ID: 05ac:024f class-ID: 0300 
  Hub-2: 2-0:1 info: Full speed (or root) Hub ports: 4 rev: 3.1 speed: 10 Gb/s 
  chip-ID: 1d6b:0003 class-ID: 0900 
  Hub-3: 3-0:1 info: Full speed (or root) Hub ports: 2 rev: 2.0 
  speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900 
  Hub-4: 4-0:1 info: Full speed (or root) Hub ports: 4 rev: 3.1 speed: 10 Gb/s 
  chip-ID: 1d6b:0003 class-ID: 0900 
  Hub-5: 5-0:1 info: Full speed (or root) Hub ports: 4 rev: 2.0 
  speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900 
  Hub-6: 6-0:1 info: Full speed (or root) Hub ports: 4 rev: 3.1 speed: 10 Gb/s 
  chip-ID: 1d6b:0003 class-ID: 0900 
Sensors:
  System Temperatures: cpu: 38.5 C mobo: 33.0 C gpu: nvidia temp: 41 C 
  Fan Speeds (RPM): fan-1: 0 fan-2: 1002 fan-3: 1017 fan-4: 1064 fan-5: 0 
  gpu: nvidia fan: 0% 
Info:
  Processes: 272 Uptime: 23m wakeups: 0 Init: systemd v: 247 tool: systemctl 
  Compilers: gcc: 10.2.0 alt: 9 clang: 11.1.0 Packages: 1330 pacman: 1321 
  lib: 410 flatpak: 9 Shell: Bash v: 5.1.8 running-in: xfce4-terminal 
  inxi: 3.3.04

Any help is appreciated :slight_smile:. Cheers.

you should have done

sudo mhwd -a pci free 0300
1 Like

Thank you for the answer @stephane.

I will try this when I have the opportunity. Should I leave the mkinitcpio.conf file as it is (nothing added atm), or should I add anything in there?

AFAI See he can see nothing on screen?!
He should do ==> boot a live medium, and install the correct driver - please explain to him how to…

I can enter tty when I encounter the black screen, and from there I can do what @stephane proposed, I think that is what he wants me to.

1 Like

You could use a live USB, tty is quicker though.

Also check if you have nvidia related xorg config that needs removing/changing (back it up first just in case), if it mentions nvidia then it’s in the way. If in doubt ask, or just ask anyway. :slight_smile:

ls /etc/X11/xorg.conf  
ls /etc/X11/xorg.conf.d

All I had to do to switch (GTX1050 → RX580) was install the new drivers, then remove nvidia drivers and nvidia related xorg config, then reboot. (not sure I needed to remove the nvidia driver, but was no point keeping it, only 1 slot)

Leave mkinicpio.conf alone, nothing to add. :slight_smile:

So what I hear you saying is that I can’t have both cards running and working at the same time? Either way, I could use some assistance regarding the xorg config! :slight_smile:

Nevertheless, I would prefer if I could keep both drivers and the opportunity to swap out cards if possible, or if possible, have both cards mounted and working at the same time.

I think I remember reading about people getting an nvidia and an amd card working together, but I’m not sure. It’s definitely the route less traveled.

Most links I can find are old and whilst some people say it’s possible, others say otherwise.

You can try leaving the nvidia driver installed, like I said there wasn’t any point for me to leave it. Never had a MB with two GPU slots, the RX580 is better than a GTX1050, not by much, but I needed it for the memory. Xorg may have to be a combined nvida and amd config, assuming it can even work.

Then post it. :slight_smile:

The last post is from someone who claimed to have done this, but in 2013.

I guess a start is to get the amd card up and running. Would you suggest installing the driver the same way @stephane proposed?

ls etc/X11/xorg.conf.d gives me these two files:
00-keyboard.conf
90-mhwd.conf

And then I assume you want me to cat xorg.conf which gives me:

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 455.28


Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Files"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "Interactive" "0"
    Option         "Coolbits" "4"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Yes. :slight_smile:

Ok that’s generated by the nvidia driver.

sudo mv /etc/X11/xorg.conf{,.bak}
# It will move the file to /etc/X11/xorg.conf.bak

Once the driver is installed, that should be it. :slight_smile:

If not then remove nvidia driver and cat /etc/X11/xorg.conf.d/90-mhwd.conf.

I will give it a try, thank you :slight_smile:

You’re welcome, good luck. :slight_smile:

EDIT:

Did you remove it and rebuild?

Sorry should’ve asked before, what are you planning to use each card for?

Yes I did remove it at rebuild it. I do some computation heavy projects in my spare time :slight_smile:.

After running sudo -a pci free 0300, the package video-linux got installed. I rebooted and did sudo mv /etc/X11/xorg.conf{,.bak}, rebooted again and still no screen.

I would prefer not to remove the nvidia driver if possible, anyhow here is 90-mhwd.conf, which seem like a nvidia config file as well:

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 455.45.01


Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Files"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
	Option "NoLogo" "1"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "Interactive" "0"
    Option         "Coolbits" "4"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Extensions"
    Option         "COMPOSITE" "Enable"
EndSection

Section "InputClass"
    Identifier          "Keyboard Defaults"
    MatchIsKeyboard        "yes"
    Option              "XkbOptions" "terminate:ctrl_alt_bksp"
EndSection

Which card do you want to use for your display? It may need to be in the primary slot.

I’m afraid I’m not gonna be much help with getting both cards working. However you need to pick one for your display, make sure the driver is installed and any needed xorg config is in place, and that there’s no conflicting xorg config.

The other may need some packages eg cuda or opencl, but maybe not the driver, and no xorg config. Then hopefully configure whatever you want to use on the second GPU.

If you want to use the AMD for your monitor then do what you need to get it working, if that means removing the nvidia driver then so be it, you can always reinstall it (assuming it’s in the repo or your cache) and you’ll have the config files backed up.

I’m pretty sure it’s just the nvidia xorg config that’s stopping you booting properly with AMD.

I assumed mhwd would take care of it, but assumptions are not good. Should you need it:

sudo mv /etc/X11/xorg.conf.d/90-mhwd.conf{,.bak}

Having said all that it may be out of my league (both cards).

As for now the RX 570 can be used for the display :slight_smile:. It would be nice if I would know how to switch though. I tried to rename the xorg.conf file to xorg.conf.bak, so I guess that was taken care of, however I still encountered a black screen.

I can’t easily remove the nvidia driver as cuda depends on it.

Oops I meant 90-mhwd.conf. :man_facepalming:

Well, assuming the card is seated properly and in the primary slot (not sure it makes a difference, but I remember it from somewhere), then try renaming the 90-mhwd.conf file. I’m fairly sure it’ll work.:slight_smile:

But if it doesn’t then it may be the driver. :frowning:
I take it you’re using cuda for your projects? You may need to stick with nvidia for now then. :man_shrugging:

Haha okay, I will try to rename that one too! The card works fine on Windows, so seating is isolated.
That is correct, however I would try and get OpenCL working for this card :slight_smile:.

Apart from 90-mhwd.conf, the only things I can think of are the other card and the other driver. :man_shrugging:

Did you add anything to the kernel cmdline in /etc/default/grub?

Renaming the 90-mhwd.conf didn’t work either. I just tried renaming everything nvidia related within /etc/X11/ and subfolders, e.g., xorg.conf.d and mhwd.d. I then tried this:

https://wiki.archlinux.org/title/AMDGPU#Xorg_configuration

Which seemed to load the amdgpu when executing inxi -F, however nvidia was also loaded.

Would it make sense to add blacklist nvidia to /etc/modprobe.d/mhwd-gpu.conf?

Output of cat /etc/modprobe.d/mhwd-gpu.conf:

##
## Generated by mhwd - Manjaro Hardware Detection
##
 
blacklist nouveau
blacklist ttm
blacklist drm_kms_helper
blacklist drm

No, I did not add anything to the kernel cmdline afaik, output of cat /etc/default/grub:

GRUB_DEFAULT=saved
GRUB_TIMEOUT=-1
GRUB_TIMEOUT_STYLE=hidden
GRUB_DISTRIBUTOR="Manjaro"
GRUB_CMDLINE_LINUX_DEFAULT="quiet apparmor=1 security=apparmor resume=UUID=79b89e8c-ba5d-458b-bf51-550fbb86bcfe udev.log_priority=3"
GRUB_CMDLINE_LINUX=""

# If you want to enable the save default function, uncomment the following
# line, and set GRUB_DEFAULT to saved.
GRUB_SAVEDEFAULT=true

# Preload both GPT and MBR modules so that they are not missed
GRUB_PRELOAD_MODULES="part_gpt part_msdos"

# Uncomment to enable booting from LUKS encrypted devices
#GRUB_ENABLE_CRYPTODISK=y

# Uncomment to use basic console
GRUB_TERMINAL_INPUT=console

# Uncomment to disable graphical terminal
#GRUB_TERMINAL_OUTPUT=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command 'videoinfo'
GRUB_GFXMODE=auto

# Uncomment to allow the kernel use the same resolution used by grub
GRUB_GFXPAYLOAD_LINUX=keep

# Uncomment if you want GRUB to pass to the Linux kernel the old parameter
# format "root=/dev/xxx" instead of "root=/dev/disk/by-uuid/xxx"
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
GRUB_DISABLE_RECOVERY=true

# Uncomment and set to the desired menu colors.  Used by normal and wallpaper
# modes only.  Entries specified as foreground/background.
GRUB_COLOR_NORMAL="light-gray/black"
GRUB_COLOR_HIGHLIGHT="green/black"

# Uncomment one of them for the gfx desired, a image background or a gfxtheme
#GRUB_BACKGROUND="/usr/share/grub/background.png"
GRUB_THEME="/usr/share/grub/themes/manjaro/theme.txt"

# Uncomment to get a beep at GRUB start
#GRUB_INIT_TUNE="480 440 1"

# Enable/Disable os-prober to find other systems
GRUB_DISABLE_OS_PROBER=false

It’s been so long since I blacklisted anything and I only did it once, so it’s not the first thing that comes to mind.

You could try adding module_blacklist=nvidia to GRUB_CMDLINE_LINUX_DEFAULT.

https://wiki.archlinux.org/title/Blacklist#Blacklisting

EDIT:

Or this, must’ve missed it.