HDMI not detected

So I am using KDE and recently HDMI stopped being detected if i try xrandr only built in dispay works.
It is only working if i do: ctrl+alt+f3 and then write startx. When i do this on the second monitor appears three terminals if i try here xrandr only HDMI appears but not built in display.
I use optimus laptop with RTX4050 and Intel I5.

@Nixon
Plasma 6 uses wayland by default. There
kscreen-doctor -o
may help. Or Super + p
If you log in in X11 mode xrandr or arandr

So I decided to reinstall and switch to different DE and now it works.