Arch Linux Black screen on laptop, but second monitor (HDMI) works just fine

Hello all. Recently encountered a problem that i have not been able to resolve. I installed the NVIDIA driver on my laptop and everything was fine. However, after rebooting i saw black screen on my laptop. When i connected a second monitor (HDMI), i saw the login screen, but still my laptop screen was black. After that, i used ‘xrander --auto’ command and the laptop monitor came to life. It seems that somehow my second monitor has become the default. How to fix it?
nvidia-bug-report.log.gz (249.2 KB)

Please delete /etc/X11/xorg.conf. Furthermore, you’ve set the nvidia gpu as primary in /etc/X11/xorg.conf.d/20-nvidia.conf
In general, you always need to run xrandr command on startup on hybrid graphics systems: