Screen image distortion on resume

I did removed all previously mentioned files.

and what will potentially happen - will it make a config file on boot automatically?

yes it should recreate it …

Removed, all the same. All commands (startx, startplasma_x11, sddm) fail with errors.
No luck. Something bad seems to happen.
Is the only solution to downgrade nvidia driver?
Deleting configs or reinstalling video-nvidia* through mhwd does not help, I haven’t encounter such an issue for a long time.

so try removing also:
sudo rm /etc/X11/xorg.conf.d/90-mhwd.conf
reboot
and post output from:
mhwd -li

$ mhwd -li
> Installed PCI configs:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
     video-modesetting            2020.01.13                true            PCI
    video-nvidia-470xx            2021.12.18               false            PCI


Warning: No installed USB configs!

Login passed BUT, nvidia-settings does not work/open:

$ nvidia-settings 

(nvidia-settings:4553): Gtk-WARNING **: 11:24:00.725: Theme parsing error: gtk.css:73:46: The style property GtkScrolledWindow:scrollbars-within-bevel is deprecated and shouldn't be used anymore. It will be removed in a future version

ERROR: An internal driver error occurred


ERROR: Unable to load info from any available system

Also, plasma taskbar disappeared and NO video signal to external monitor.
(seems like one thing breaks another)

why do you have installed nvidia470xx, when there are available the latest hybrid drivers?
so uninstall nvidia:
sudo mhwd -r pci video-nvidia-470xx
and install these:
sudo mhwd -i pci video-hybrid-intel-nvidia-prime
then reboot

Would a general sudo mhwd -a pci nonfree 300 worth to try in this case?

you already tried that and look what it got you …

It backed to old scenario: stuck on boot with no login screen.
Bypassing with startplasma_wayland again (to write this message).
Does it require specific prime or optimus settings?
I remember that tried both of them in past years, but none seemed to work flawlessly: after some system or kernel update troubles with nvidia had floated anyway.

damn… you had at one time installed optimus, since there was a config of it…
so i suggest to try installing video linux drivers:
sudo mhwd -i pci video-linux
and uninstall the prime ones:
sudo mhwd -r pci video-hybrid-intel-nvidia-prime
then reboot and try only with intel video drivers, if you still have the same issue

Done, but no effect, no login screen.

$ mhwd -li
> Installed PCI configs:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
           video-linux            2018.05.04                true            PCI
     video-modesetting            2020.01.13                true            PCI


Warning: No installed USB configs!

the modesetting should be uninstalled with the prime drivers, very strange…
so uninstall it also:
sudo mhwd -r pci video-modesetting
reboot

that also seemed contradictory for me, as I remember, executing sudo mhwd -a pci nonfree 0300 (or 0302) pulls in modesetting automatically.

yes should be removed… so did it help?

No. No effect.

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


Warning: No installed USB configs!

and output from this:
find /etc/X11/ -name "*.conf"

$ find /etc/X11/ -name "*.conf"
/etc/X11/xorg.conf.d/00-keyboard.conf

try this:

  1. Log out of KDE
  2. Switch to TTY2:
  • CTRL + ALT + F2
  1. Login to this TTY2 terminal
  2. Stop the display-manager service:
  • sudo systemctl stop display-manager
  1. Move/delete the old kscreen config:
  • mv -v $HOME/.local/share/kscreen $HOME/.local/share/kscreen.bak
  1. Rebuild the KDE cache:
  • kbuildsycoca5 --noincremental
  1. Reboot:
  • systemctl reboot

Done. No change.
(though /.local/share/kscreen is a folder)
Really annoying trap.

yes i thought deleting the folder would help…
also whats the output from:
find $HOME/ -name ".Xauthority"