Issues after replacing a Nvidia GTX 960 gpu with an AMD radeon 6600 gpu

mhwd --listinstalled
> Installed PCI configs:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
           video-linux            2018.05.04                true            PCI
    video-nvidia-470xx            2021.12.18               false            PCI


Warning: No installed USB configs!

and


mhwd --list
> 0000:09:00.0 (0200:10ec:8168) Network controller Realtek Semiconductor Co., Ltd.:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
         network-r8168            2016.04.20                true            PCI


> 0000:05:00.0 (0300:1002:73ff) Display controller ATI Technologies Inc:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
           video-linux            2018.05.04                true            PCI
     video-modesetting            2020.01.13                true            PCI
            video-vesa            2017.03.12                true            PCI

I dont know if its relevant but I had to install a specific nvidia driver recently as I had issues with xrander Xrandr can no longer find my second monitor - #2 by megavolt

That’s definitely not the right driver for your new card. Remove it and reboot.

sudo mhwd -r pci video-nvidia-470xx
1 Like

Well, to start with, if you’re replacing the nvidia with an AMD, as your title says, then the nvidia drivers’ll do you no good. So you can remove them:

mhwd --remove pci video-nvidia-470xx

Followed by rebooting.

I removed video-nvidia-470xx rebooted and still the same issue, black screen, my monitor shows a message saying there’s no signal and I start lightdm with a terminal I accessed by doing ctrl alt f number

mhwd --listinstalled
> Installed PCI configs:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
           video-linux            2018.05.04                true            PCI


Warning: No installed USB configs!
mhwd --list
> 0000:09:00.0 (0200:10ec:8168) Network controller Realtek Semiconductor Co., Ltd.:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
         network-r8168            2016.04.20                true            PCI


> 0000:05:00.0 (0300:1002:73ff) Display controller ATI Technologies Inc:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
           video-linux            2018.05.04                true            PCI
     video-modesetting            2020.01.13                true            PCI
            video-vesa            2017.03.12                true            PCI

OK, let’s try removing and reinstalling the driver, then.

To remove it:

mhwd --remove pci video-linux

And then, as per the Wiki, install the free drivers again:

mhwd --auto pci free 0300

Then reboot again, and see.

I suggest looking for errors.

journalctl --boot=0 --priority=3 --catalog
* mhwd --remove pci video-linux

> 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...

:: lib32-libva optionally requires lib32-libva-vdpau-driver: vdpau back-end for nvidia

:: lib32-mesa optionally requires lib32-mesa-vdpau: for accelerated video playback

:: lib32-vulkan-icd-loader optionally requires lib32-vulkan-driver: packaged vulkan driver

:: libva optionally requires libva-vdpau-driver: backend for Nvidia and AMD GPUs

:: mesa optionally requires mesa-vdpau: for accelerated video playback

:: mesa optionally requires libva-mesa-driver: for accelerated video playback

:: steam-manjaro optionally requires vulkan-driver: packaged vulkan driver

:: steam-manjaro optionally requires lib32-vulkan-driver: packaged vulkan driver (32bit)

:: vlc optionally requires libva-vdpau-driver: vdpau backend nvidia

:: vulkan-icd-loader optionally requires vulkan-driver: packaged vulkan driver

Packages (14) lib32-libvdpau-1.4-2 lib32-libva-vdpau-driver-0.7.4-6 lib32-mesa-vdpau-21.3.7-2 lib32-vulkan-intel-21.3.7-2 lib32-vulkan-radeon-21.3.7-2 libva-mesa-driver-21.3.7-2 libva-vdpau-driver-0.7.4-6 mesa-vdpau-21.3.7-2 vulkan-intel-21.3.7-2 vulkan-radeon-21.3.7-2 xf86-video-amdgpu-22.0.0-1 xf86-video-ati-1:19.1.0.r9.g5eba006e-2 xf86-video-intel-1:2.99.917+916+g31486f40-2 xf86-video-nouveau-1.0.17-2

Total Removed Size: 76.63 MiB

:: Do you want to remove these packages? [Y/n]

:: Processing package changes...

removing lib32-mesa-vdpau...

removing lib32-libva-vdpau-driver...

removing lib32-libvdpau...

removing lib32-vulkan-radeon...

removing lib32-vulkan-intel...

removing mesa-vdpau...

removing libva-vdpau-driver...

removing libva-mesa-driver...

removing vulkan-radeon...

removing vulkan-intel...

removing xf86-video-nouveau...

removing xf86-video-intel...

removing xf86-video-amdgpu...

removing xf86-video-ati...

:: Running post-transaction hooks...

(1/1) Arming ConditionNeedsUpdate...

> Successfully removed video-linux

then

mhwd --auto pci free 0300
> Using config 'video-linux' for device: 0000:05:00.0 (0300:1002:73ff) Display controller ATI Technologies Inc Navi 23 [Radeon RX 6600/6600 XT/6600M]
> Installing video-linux...
Sourcing /etc/mhwd-x86_64.conf
Has lib32 support: true
Sourcing /var/lib/mhwd/db/pci/graphic_drivers/video-linux/MHWDCONFIG
Processing classid: 0300
Sourcing /var/lib/mhwd/scripts/include/0300
Processing classid: 0380
Processing classid: 0302
:: Synchronizing package databases...
 core downloading...
 extra downloading...
 community downloading...
 multilib downloading...
resolving dependencies...
looking for conflicting packages...
 
Packages (14) lib32-libvdpau-1.4-2  lib32-libva-vdpau-driver-0.7.4-6  lib32-mesa-vdpau-21.3.7-2  lib32-vulkan-intel-21.3.7-2  lib32-vulkan-radeon-21.3.7-2  libva-mesa-driver-21.3.7-2  libva-vdpau-driver-0.7.4-6  mesa-vdpau-21.3.7-2  vulkan-intel-21.3.7-2  vulkan-radeon-21.3.7-2  xf86-video-amdgpu-22.0.0-1  xf86-video-ati-1:19.1.0.r9.g5eba006e-2  xf86-video-intel-1:2.99.917+916+g31486f40-2  xf86-video-nouveau-1.0.17-2
 
Total Download Size:    0.04 MiB
Total Installed Size:  76.63 MiB
 
:: Proceed with installation? [Y/n] 
:: Retrieving packages...
 lib32-mesa-vdpau-21.3.7-2-x86_64 downloading...
 mesa-vdpau-21.3.7-2-x86_64 downloading...
 libva-mesa-driver-21.3.7-2-x86_64 downloading...
 vulkan-intel-21.3.7-2-x86_64 downloading...
 lib32-vulkan-intel-21.3.7-2-x86_64 downloading...
 lib32-vulkan-radeon-21.3.7-2-x86_64 downloading...
 vulkan-radeon-21.3.7-2-x86_64 downloading...
 xf86-video-intel-1:2.99.917+916+g31486f40-2-x86_64 downloading...
 xf86-video-ati-1:19.1.0.r9.g5eba006e-2-x86_64 downloading...
 xf86-video-nouveau-1.0.17-2-x86_64 downloading...
 xf86-video-amdgpu-22.0.0-1-x86_64 downloading...
 lib32-libva-vdpau-driver-0.7.4-6-x86_64 downloading...
 libva-vdpau-driver-0.7.4-6-x86_64 downloading...
 lib32-libvdpau-1.4-2-x86_64 downloading...
checking keyring...
checking package integrity...
loading package files...
checking for file conflicts...
checking available disk space...
:: Processing package changes...
installing xf86-video-ati...
installing xf86-video-amdgpu...
installing xf86-video-intel...
>>> This driver now uses DRI3 as the default Direct Rendering
    Infrastructure. You can try falling back to DRI2 if you run
    into trouble. To do so, save a file with the following 
    content as /etc/X11/xorg.conf.d/20-intel.conf :
      Section "Device"
        Identifier  "Intel Graphics"
        Driver      "intel"
        Option      "DRI" "2"             # DRI3 is now default 
        #Option      "AccelMethod"  "sna" # default
        #Option      "AccelMethod"  "uxa" # fallback
      EndSection
Optional dependencies for xf86-video-intel
    libxrandr: for intel-virtual-output [installed]
    libxinerama: for intel-virtual-output [installed]
    libxcursor: for intel-virtual-output [installed]
    libxtst: for intel-virtual-output [installed]
    libxss: for intel-virtual-output [installed]
installing xf86-video-nouveau...
installing vulkan-intel...
Optional dependencies for vulkan-intel
    vulkan-mesa-layers: additional vulkan layers
installing vulkan-radeon...
Optional dependencies for vulkan-radeon
    vulkan-mesa-layers: additional vulkan layers
installing libva-mesa-driver...
installing libva-vdpau-driver...
installing mesa-vdpau...
installing lib32-vulkan-intel...
Optional dependencies for lib32-vulkan-intel
    lib32-vulkan-mesa-layers: additional vulkan layers
installing lib32-vulkan-radeon...
Optional dependencies for lib32-vulkan-radeon
    lib32-vulkan-mesa-layers: additional vulkan layers
installing lib32-libvdpau...
installing lib32-libva-vdpau-driver...
installing lib32-mesa-vdpau...
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...
xf86-video-ati: install reason has been set to 'explicitly installed'
xf86-video-amdgpu: install reason has been set to 'explicitly installed'
xf86-video-intel: install reason has been set to 'explicitly installed'
xf86-video-nouveau: install reason has been set to 'explicitly installed'
vulkan-intel: install reason has been set to 'explicitly installed'
vulkan-radeon: install reason has been set to 'explicitly installed'
libva-mesa-driver: install reason has been set to 'explicitly installed'
libva-vdpau-driver: install reason has been set to 'explicitly installed'
mesa-vdpau: install reason has been set to 'explicitly installed'
lib32-vulkan-intel: install reason has been set to 'explicitly installed'
lib32-vulkan-radeon: install reason has been set to 'explicitly installed'
lib32-libva-vdpau-driver: install reason has been set to 'explicitly installed'
lib32-mesa-vdpau: install reason has been set to 'explicitly installed'
> Successfully installed video-linux

I rebooted, then maybe it was a blip but I got a black screen when grub should have come up, rebooted again, grub reappeared, and no change from previous situation, black screen.

In that case, let’s check the logs. In a terminal, run and provide the output of:

journalctl --boot --priority=3
journalctl --boot --priority=3
Mar 27 13:57:43 gregoire-x58aud3r kernel: sd 6:0:0:0: [sde] No Caching mode page found
Mar 27 13:57:43 gregoire-x58aud3r kernel: sd 6:0:0:0: [sde] Assuming drive cache: write through
Mar 27 13:57:46 gregoire-x58aud3r systemd[1]: Failed to start Light Display Manager.

Now about lightdm specifically:

journalctl --boot --unit=lightdm
journalctl --boot --unit=lightdm
Mar 27 13:57:44 gregoire-x58aud3r systemd[1]: Starting Light Display Manager...
Mar 27 13:57:44 gregoire-x58aud3r systemd[1]: Started Light Display Manager.
Mar 27 13:57:44 gregoire-x58aud3r systemd[1]: lightdm.service: Main process exited, code=exited, status=1/FAILURE
Mar 27 13:57:44 gregoire-x58aud3r systemd[1]: lightdm.service: Failed with result 'exit-code'.
Mar 27 13:57:45 gregoire-x58aud3r systemd[1]: lightdm.service: Scheduled restart job, restart counter is at 1.
Mar 27 13:57:45 gregoire-x58aud3r systemd[1]: Stopped Light Display Manager.
Mar 27 13:57:45 gregoire-x58aud3r systemd[1]: Starting Light Display Manager...
Mar 27 13:57:45 gregoire-x58aud3r systemd[1]: Started Light Display Manager.
Mar 27 13:57:45 gregoire-x58aud3r systemd[1]: lightdm.service: Main process exited, code=exited, status=1/FAILURE
Mar 27 13:57:45 gregoire-x58aud3r systemd[1]: lightdm.service: Failed with result 'exit-code'.
Mar 27 13:57:45 gregoire-x58aud3r systemd[1]: lightdm.service: Scheduled restart job, restart counter is at 2.
Mar 27 13:57:45 gregoire-x58aud3r systemd[1]: Stopped Light Display Manager.
Mar 27 13:57:45 gregoire-x58aud3r systemd[1]: Starting Light Display Manager...
Mar 27 13:57:45 gregoire-x58aud3r systemd[1]: Started Light Display Manager.
Mar 27 13:57:45 gregoire-x58aud3r systemd[1]: lightdm.service: Main process exited, code=exited, status=1/FAILURE
Mar 27 13:57:45 gregoire-x58aud3r systemd[1]: lightdm.service: Failed with result 'exit-code'.
Mar 27 13:57:45 gregoire-x58aud3r systemd[1]: lightdm.service: Scheduled restart job, restart counter is at 3.
Mar 27 13:57:45 gregoire-x58aud3r systemd[1]: Stopped Light Display Manager.
Mar 27 13:57:45 gregoire-x58aud3r systemd[1]: Starting Light Display Manager...
Mar 27 13:57:45 gregoire-x58aud3r systemd[1]: Started Light Display Manager.
Mar 27 13:57:45 gregoire-x58aud3r systemd[1]: lightdm.service: Main process exited, code=exited, status=1/FAILURE
Mar 27 13:57:45 gregoire-x58aud3r systemd[1]: lightdm.service: Failed with result 'exit-code'.
Mar 27 13:57:46 gregoire-x58aud3r systemd[1]: lightdm.service: Scheduled restart job, restart counter is at 4.
Mar 27 13:57:46 gregoire-x58aud3r systemd[1]: Stopped Light Display Manager.
Mar 27 13:57:46 gregoire-x58aud3r systemd[1]: Starting Light Display Manager...
Mar 27 13:57:46 gregoire-x58aud3r systemd[1]: Started Light Display Manager.
Mar 27 13:57:46 gregoire-x58aud3r systemd[1]: lightdm.service: Main process exited, code=exited, status=1/FAILURE
Mar 27 13:57:46 gregoire-x58aud3r systemd[1]: lightdm.service: Failed with result 'exit-code'.
Mar 27 13:57:46 gregoire-x58aud3r systemd[1]: lightdm.service: Scheduled restart job, restart counter is at 5.
Mar 27 13:57:46 gregoire-x58aud3r systemd[1]: Stopped Light Display Manager.
Mar 27 13:57:46 gregoire-x58aud3r systemd[1]: lightdm.service: Start request repeated too quickly.
Mar 27 13:57:46 gregoire-x58aud3r systemd[1]: lightdm.service: Failed with result 'exit-code'.
Mar 27 13:57:46 gregoire-x58aud3r systemd[1]: Failed to start Light Display Manager.

Can you try putting those files back?

1 Like

Or else, try reinstalling lightdm:

pamac reinstall lightdm

Reinstalled it, rebooted, no change.


pamac reinstall lightdm
Preparing...
Warning: lightdm-1:1.30.0-4 is up to date -- reinstalling
Resolving dependencies...
Checking inter-conflicts...

To reinstall (1):
  lightdm  1:1.30.0-4    extra  223.5 kB

Total download size: 223.5 kB

Apply transaction ? [y/N] y
Download of lightdm (1:1.30.0-4) started                                                                                                                                                      
Download of lightdm (1:1.30.0-4) finished                                                                                                                                                     
Checking keyring...                                                                                                                                                                      [1/1]
Checking integrity...                                                                                                                                                                    [1/1]
Loading packages files...                                                                                                                                                                [1/1]
Checking file conflicts...                                                                                                                                                               [1/1]
Checking available disk space...                                                                                                                                                         [1/1]
Reinstalling lightdm (1:1.30.0-4)...                                                                                                                                                     [1/1]
Running post-transaction hooks...
Creating system user accounts...                                                                                                                                                         [1/6]
Reloading system manager configuration...                                                                                                                                                [2/6]
Creating temporary files...                                                                                                                                                              [3/6]
Arming ConditionNeedsUpdate...                                                                                                                                                           [4/6]
Reloading system bus configuration...                                                                                                                                                    [5/6]
Checking which packages need to be rebuilt                                                                                                                                               [6/6]
foreign	chm2pdf-python3
foreign	python-casttube
foreign	python-proton-client
foreign	python-pychromecast6
foreign	python-sphinxcontrib-programoutput
foreign	python-vdf
Transaction successfully finished.

I put the files back, lightdm does not start after grub, and also I cant start lightdm from one of the ctrl alt f+number terminal but sway works (sort of).

Well, I honestly have no idea further then, except possibly forcing to overwrite conflicts on reinstall:

pamac reinstall --overwrite lightdm

that command is not working for me

pamac reinstall --overwrite lightdm
Reinstall packages



pamac reinstall <package(s),group(s)>

options:
  --overwrite <glob>  : overwrite conflicting files, multiple patterns can be specified by separating them with a comma
  --download-only, -w : download all packages but do not install/upgrade anything
  --as-deps           : mark all packages installed as a dependency
  --as-explicit       : mark all packages explicitly installed
  --no-confirm        : bypass any and all confirmation messages

Hmmm, the only other thing I can think of is:

pamac reinstall lightdm --overwrite  /etc/*

If that doesn’t work, I have NO idea further.

can you try in terminal or TTY

sudo mkinitcpio -P

LightDM failing without details is quite bothersome. I don’t have much clue either.

I spotted this in the documentation that might fit, maybe…
https://wiki.archlinux.org/title/LightDM#LightDM_does_not_appear_or_monitor_only_displays_TTY_output

3 Likes