I have been running manjaro linux before on my laptop, but I decided to do a fresh install. I did all my steps as usual. Installed optimus-manager and optimus-manager-qt. However when trying to switch to nvidia gpu or another gpu its fails to do so and relogs me and I was on gpu I was using before. But if set it to use nvidia gpu on startup, I get a blank login screen (no blinking cursor), I found out I can type my password and login. After I do I get the splash screen and indeed it is using nvidia gpu. When it is set to use intel gpu (aka. intergrated) on startup I get the normal login screen. I did try few kernel versions linux515, linux517, linux518, linux519. But its all the same, and sometimes it just gets bricked and I need to do fresh install of os.
I really have no idea what is going on. On my previous install everything was working fine.
Ps. if i plug hdmi display, the login screen is displayed on it, but not on laptop screen.
CPU: Intel Core i7 11800H
GPU: nVidia geForce RTX 3060
KDE version: 5.24.5
KDE Framework version: 5.94.0
Qt version: 5.15.4
Kernel version: 5.15.46-1
Graphics platform: X11
ok, so now edit the file /etc/sddm.conf and simply put a # before the line starting with DisplayCommand and the one starting with DisplayStopCommand.
They will look like this: #DisplayCommand #DisplayStopCommand
then install again optimus: