How to solve occasionally getting logged out and black screen appears. I can log into it but GUI doesn't show up only in terminal

Hi all I am new to manjaro, just setup on my laptop yesterday. While using I get logged out to black screen with a blinking cusor. When I restart my laptop it works normally again. Here is log in /home/manjaro/.local/share/xorg/Xorg.0.log file. How to solve this issue?

[    64.830] (II) systemd-logind: took control of session /org/freedesktop/login1/session/_31
[    64.831] (II) xfree86: Adding drm device (/dev/dri/card0)
[    64.831] (II) Platform probe for /sys/devices/pci0000:00/0000:00:02.0/drm/card0
[    64.831] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 13 paused 0
[    64.833] (--) PCI:*(0@0:2:0) 8086:5916:1028:0741 rev 2, Mem @ 0xd0000000/16777216, 0xc0000000/268435456, I/O @ 0x0000f000/64, BIOS @ 0x????????/131072
[    64.833] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[    64.833] (II) LoadModule: "glx"
[    64.833] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[    64.834] (II) Module glx: vendor="X.Org Foundation"
[    64.834] 	compiled for 1.21.1.4, module version = 1.0.0
[    64.834] 	ABI class: X.Org Server Extension, version 10.0
[    64.834] (II) LoadModule: "vesa"
[    64.835] (II) Loading /usr/lib/xorg/modules/drivers/vesa_drv.so
[    64.835] (II) Module vesa: vendor="X.Org Foundation"
[    64.835] 	compiled for 1.21.1.3, module version = 2.5.0
[    64.835] 	Module class: X.Org Video Driver
[    64.835] 	ABI class: X.Org Video Driver, version 25.2
[    64.835] (II) VESA: driver for VESA chipsets: vesa
[    64.835] xf86EnableIO: failed to enable I/O ports 0000-03ff (Operation not permitted)
[    64.835] vesa: Refusing to run, Framebuffer or dri device present
[    64.835] vesa: Refusing to run, Framebuffer or dri device present
[    64.835] (EE) No devices detected.
[    64.835] (EE) 
Fatal server error:
[    64.835] (EE) no screens found(EE) 
[    64.835] (EE) 

this looks like you have installed vesa;
post output from:
mhwd -l && mhwd -li
find /etc/X11/ -name "*.conf"

manjaro@manjaro ->  mhwd -l && mhwd -li
> 0000:00:02.0 (0300:8086:5916) Display controller Intel Corporation:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
           video-linux            2018.05.04                true            PCI
     video-modesetting            2020.01.13                true            PCI
            video-vesa            2017.03.12                true            PCI


> Installed PCI configs:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
           video-linux            2018.05.04                true            PCI
Warning: No installed USB configs!
manjaro@manjaro -> find /etc/X11/ -name "*.conf"
/etc/X11/xorg.conf.d/00-keyboard.conf

Hi @avik, and welcome!

In addition to @brahma’s advice, please see:

Additionally, please provide the output of:

journalctl --boiot=-1 --no-pager --priority=3

Where the --boot argument is the number of boots ago this happened. So -1 for the previous boot, -2 for the one before that, and so on and so forth.

Edit:

So, we need more information. Please provide thee output of:

sudo inxi --admin --verbosity=7 --filter --no-host --width

the mhwd command show the correct drivers, so what happened to the vesa one, did you uninstalled them?