Screen image distortion on resume

yes you can enable the compositor again, by pressing the same shortcut: alt + shift + f12 …now go to system settings/ compositor and uncheck 'allow applications to block compositing`, click apply, just in case reboot and try again

It was already turned off before I did the mentioned approach.

you can try ‘tweaks’ from this link and see
if you still have issues, try creating a new user and check with it

link is dead

try this link

After adding Device section in xconfig file and adding kwin.sh - the GUI does not load on reboot.
When switching to 2nd TTY on boot:
startx (as well as sddm) fails with Unable to connect to X server ...
startplasma_x11 fails with $DISPLAY is not set ...

Tried mhwd -a pci nonfree 0300 (with reinstalling nvidia-utils) - did not help.
The only startplasma_wayland allowed me to load GUI but that seems a limited workaround (lost/absent functionality/settings is clearly seen when opening nvidia-settings window)

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


> 0000:01:00.0 (0302:10de:1c20) Display controller nVidia Corporation:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
video-hybrid-intel-nvidia-prime            2021.12.18               false            PCI
video-hybrid-intel-nvidia-470xx-prime            2021.12.18               false            PCI
video-hybrid-intel-nvidia-390xx-bumblebee            2021.12.18               false            PCI
          video-nvidia            2021.12.18               false            PCI
    video-nvidia-470xx            2021.12.18               false            PCI
    video-nvidia-390xx            2021.12.18               false            PCI
           video-linux            2018.05.04                true            PCI


> 0000:00:02.0 (0300:8086:3e9b) Display controller Intel Corporation:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
video-hybrid-intel-nvidia-prime            2021.12.18               false            PCI
video-hybrid-intel-nvidia-470xx-prime            2021.12.18               false            PCI
video-hybrid-intel-nvidia-390xx-bumblebee            2021.12.18               false            PCI
           video-linux            2018.05.04                true            PCI
     video-modesetting            2020.01.13                true            PCI
            video-vesa            2017.03.12                true            PCI

so delete the kwin.sh
and post output from:
find /etc/X11/ -name "*.conf"

$ find /etc/X11/ -name "*.conf"
/etc/X11/xorg.conf.d/20-nvidia.conf
/etc/X11/xorg.conf.d/90-mhwd.conf
/etc/X11/xorg.conf.d/optimus.conf
/etc/X11/xorg.conf.d/00-keyboard.conf
/etc/X11/mhwd.d/nvidia.conf
/etc/X11/xorg.conf

P.S. when messing with “device section” I was relying on NVIDIA/Troubleshooting - ArchWiki

so delete this:
sudo rm /etc/X11/xorg.conf
reboot and see if you can normally boot, if not post again output from:
find /etc/X11/ -name "*.conf"

Deleted+rebooted, did not help.
The output now is the same excluding deleted item /etc/X11/xorg.conf

so try removing also this:
sudo rm /etc/X11/xorg.conf.d/20-nvidia.conf
reboot
did you have installed optimus before you made those changes?

it’s installed automatically with mhwd
Had some troubles messing with prime and bumblebee on hybrid configuration in previous years.

i mean optimus-manager package, because theres a config from it in the x11 folder…

$ sudo pacman -Q optimus-manager
error: package 'optimus-manager' was not found

very interesting that you have it there, so remove the conf also:
sudo rm /etc/X11/xorg.conf.d/optimus.conf
reboot

Nothing helped. Strange.

so remove also this one:
sudo rm /etc/X11/mhwd.d/nvidia.conf
then reboot
did you also removed this: 20-nvidia.conf

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.