Manjaro not booting in graphical environment after switching video card to AMD 6900 XT

Hey,
I switched from my nvidia 2070 super to an amd 6900 xt today.
It didn’t boot in graphical mode, so I went ahead and deleted what I thought to be Nvidia drivers (there was a package with kernel number - 515 - and nvidia in its name that I deleted and rebooted).
In any case all I get just a blinking cursor. I can switch to text cionsole with alt-f2.

Am I supposed to do something special? Card works in Windows 11 (dual boot).
I use kernel 5.15, am up to date with packages as far as I know.

Inxi says:

> inxi -SMGazy
System:
  Kernel: 5.15.76-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
    parameters: BOOT_IMAGE=/boot/vmlinuz-5.15-x86_64
    root=UUID=8439759c-3c04-4cc2-9bad-cd9cba6fafeb rw nouveau.modeset=0 quiet
    apparmor=1 security=apparmor
    resume=UUID=65a185dd-b267-47da-a62e-3678bbf4fab7 udev.log_priority=3
  Console: tty 2 DM: LightDM v: 1.32.0 Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Desktop Mobo: Micro-Star model: B450 GAMING PLUS MAX (MS-7B86) v: 3.0
    serial: <superuser required> UEFI: American Megatrends LLC. v: H.G0
    date: 07/26/2022
Graphics:
  Device-1: AMD Navi 21 [Radeon RX 6800/6800 XT / 6900 XT] vendor: Sapphire
    driver: amdgpu v: kernel arch: RDNA-2 code: Navi-2x process: TSMC n7 (7nm)
    built: 2020-22 pcie: gen: 4 speed: 16 GT/s lanes: 16 ports:
    active: DP-1,DP-3 empty: DP-2,HDMI-A-1 bus-ID: 28:00.0 chip-ID: 1002:73bf
    class-ID: 0300
  Display: server: X.org v: 1.21.1.4 driver: X: loaded: nvidia gpu: amdgpu
    tty: 240x67
  Monitor-1: DP-1 model: AOC AG322QWG4 serial: <filter> built: 2017
    res: 2560x1440 dpi: 93 gamma: 1.2 size: 697x392mm (27.44x15.43")
    diag: 800mm (31.5") ratio: 16:9 modes: max: 2560x1440 min: 720x400
  Monitor-2: DP-3 model: Dell U2419H serial: <filter> built: 2019
    res: 1920x1080 dpi: 93 gamma: 1.2 size: 527x296mm (20.75x11.65")
    diag: 604mm (23.8") ratio: 16:9 modes: max: 1920x1080 min: 720x400
  API: OpenGL Message: GL data unavailable in console. Try -G --display

try this from logged console

pacman -Syyu ( check internet is ok )
mhwd -a pci free 0300

reboot and fingers crossed

Thanks for the suggestions.
I didn’t have any new packages, but the second command did a bunch of stuff (couldn’t copy it as I think my mouse doesn’t really work in text mode, previously I redirected inxi to a file). Anyway it said something like succesfully installed ‘video-linux’.
I rebooted but I still have just a blinking cursor.

Right now:

:: Synchronizing package databases...
 core downloading...
 extra downloading...
 community downloading...
 multilib downloading...
:: Starting full system upgrade...
 there is nothing to do


> Skipping already installed config 'video-linux' for device: 0000:28:00.0 (0300:1002:73bf) Display controller ATI Technologies Inc Navi 21 [Radeon RX 6800/6800 XT / 6900 XT]

check for leftover configs:
ls /etc/modprobe.d
find /etc/X11/ -name "*.conf"

This sounds like something. The folder had a file, mhwd-gpu.conf that contains:

##
## Generated by mhwd - Manjaro Hardware Detection
##

blacklist nouveau
blacklist ttm
blacklist drm_kms_helper
blacklist drm

The second command gave the following:

/etc/X11/xorg.conf
/etc/X11/xorg.conf.d/90-mhwd.conf
/etc/X11/xorg.conf.d/00-keyboard.conf
/etc/X11/xorg.conf.d/30-touchpad.conf
/etc/X11/xorg.conf.d/10-monitor.conf
/etc/X11/mhwd.d/nvidia.conf

Edit: xorg.conf looks like:

# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 510.54


Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
    Option         "Xinerama" "0"
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"

    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "AOC AG322QWG4"
    HorizSync       230.0 - 230.0
    VertRefresh     48.0 - 146.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "NVIDIA GeForce RTX 2070 SUPER"
EndSection

Section "Screen"

# Removed Option "nvidiaXineramaInfoOrder" "DFP-3"
# Removed Option "metamodes" "DP-2: 2560x1440_144 +0+0 {ForceCompositionPipeline=On, ForceFullCompositionPipeline=On}, HDMI-0: nvidia-auto-select +2560+0 {ForceCompositionPipeline=On, ForceFullCompositionPipeline=On}"
# Removed Option "metamodes" "DP-4: 2560x1440_144 +0+0, DP-0: nvidia-auto-select +2560+0"
# Removed Option "nvidiaXineramaInfoOrder" "DFP-5"
# Removed Option "metamodes" "2560x1440_144 +0+0"
# Removed Option "metamodes" "2560x1440_144 +0+0 {ForceCompositionPipeline=On, ForceFullCompositionPipeline=On}"
Option "metamodes" "DP-2: 2560x1440_144 +0+0 {ForceCompositionPipeline=On, ForceFullCompositionPipeline=On}, DP-0: nvidia-auto-select +2560+0"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "nvidiaXineramaInfoOrder" "DFP-3"
#    Option         "metamodes" "DP-2: 2560x1440_144 +0+0 {ForceCompositionPipeline=On, ForceFullCompositionPipeline=On}, DP-0: nvidia-auto-select +2560+0; DP-2: nvidia-auto-select +0+0, DP-0: nvidia-auto-select +0+0; DP-2: 2560x1440_144 +0+0, DP-0: nvidia-auto-select +0+0; DP-2: 2560x1440_120 +0+0, DP-0: nvidia-auto-select +0+0; DP-2: 2560x1440_100 +0+0, DP-0: nvidia-auto-select +0+0; DP-2: 1920x1080 +0+0, DP-0: nvidia-auto-select +0+0; DP-2: 1920x1080_60_0 +0+0, DP-0: nvidia-auto-select +0+0; DP-2: 1920x1080_50 +0+0, DP-0: nvidia-auto-select +0+0; DP-2: 1440x900 +0+0, DP-0: nvidia-auto-select +0+0; DP-2: 1280x1440 +0+0, DP-0: nvidia-auto-select +0+0; DP-2: 1280x1024 +0+0, DP-0: nvidia-auto-select +0+0; DP-2: 1280x1024_60 +0+0, DP-0: nvidia-auto-select +0+0; DP-2: 1280x720 +0+0, DP-0: nvidia-auto-select +0+0; DP-2: 1280x720_50 +0+0, DP-0: nvidia-auto-select +0+0; DP-2: 1024x768 +0+0, DP-0: nvidia-auto-select +0+0; DP-2: 1024x768_100 +0+0, DP-0: nvidia-auto-select +0+0; DP-2: 1024x768_75 +0+0, DP-0: nvidia-auto-select +0+0; DP-2: 1024x768_70 +0+0, DP-0: nvidia-auto-select +0+0; DP-2: 1024x768_60 +0+0, DP-0: nvidia-auto-select +0+0; DP-2: 800x600 +0+0, DP-0: nvidia-auto-select +0+0; DP-2: 800x600_100 +0+0, DP-0: nvidia-auto-select +0+0; DP-2: 800x600_75 +0+0, DP-0: nvidia-auto-select +0+0; DP-2: 800x600_72 +0+0, DP-0: nvidia-auto-select +0+0; DP-2: 800x600_60 +0+0, DP-0: nvidia-auto-select +0+0; DP-2: 800x600_56 +0+0, DP-0: nvidia-auto-select +0+0; DP-2: 720x576 +0+0, DP-0: nvidia-auto-select +0+0; DP-2: 720x480 +0+0, DP-0: nvidia-auto-select +0+0; DP-2: 640x480 +0+0, DP-0: nvidia-auto-select +0+0; DP-2: 640x480_100 +0+0, DP-0: nvidia-auto-select +0+0; DP-2: 640x480_75 +0+0, DP-0: nvidia-auto-select +0+0; DP-2: 640x480_72 +0+0, DP-0: nvidia-auto-select +0+0; DP-2: 640x480_60 +0+0, DP-0: nvidia-auto-select +0+0; DP-2: 640x480_60_0 +0+0, DP-0: nvidia-auto-select +0+0; DP-2: nvidia-auto-select +0+0 {viewportin=1920x1200, viewportout=2304x1440+128+0}, DP-0: nvidia-auto-select +0+0; DP-2: nvidia-auto-select +0+0 {viewportin=1680x1050, viewportout=2304x1440+128+0}, DP-0: nvidia-auto-select +0+0; DP-2: nvidia-auto-select +0+0 {viewportin=1600x1200, viewportout=1920x1440+320+0}, DP-0: nvidia-auto-select +0+0; DP-2: nvidia-auto-select +0+0 {viewportin=1366x768, viewportout=2560x1439+0+0}, DP-0: nvidia-auto-select +0+0; DP-2: nvidia-auto-select +0+0 {viewportin=1280x800, viewportout=2304x1440+128+0}, DP-0: nvidia-auto-select +0+0"
    Option         "SLI" "Off"
    Option         "MultiGPU" "Off"
    Option         "BaseMosaic" "off"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

At some point I remember messing a bit with the configuration of how to arrange the 2 monitors and proper refresh rates I think in nvidia settings application. Could this suggest xorg tris to still use nvidia?

post also output from:
cat /etc/X11/xorg.conf.d/10-monitor.conf
then we remove the configs

 cat 10-monitor.conf
#Section "ServerFlags"
#       Option "StandbyTime" "60"
#       Option "SuspendTime" "70"
#       Option "OffTime" "90"
#EndSection

ok so remove the configs:
sudo rm /etc/X11/xorg.conf
sudo rm /etc/X11/mhwd.d/nvidia.conf
reboot

1 Like

Wow, that worked, stuff just works.
I do need to figure to switch refresh to 144hz as its 60 by default for primary monitor but basically everything works. I really appreciate it!

1 Like

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