Laptop shtudown on boot when unpluged

hello
this is my first post so sorry for possible mistakes!
when laptop is on AC power it would start normally but when laptop is unplugged it will shutdown when i turn it on. i added i915.modeset=1 to kernel parameter and it starts working normally but it again turn off after turning on from suspend and the Xorg.0.log was:
xf86CloseConsole: KDSETMODE failed: Input/output error
so i started messing around with nvidia drivers and now it is not turning on with i915.modeset=1 either. i re-installed manjaro and installed it with non-free drivers and it turned-on normally but my laptop starts hanging so i re-installed it with free drivers now the problem persists.
here is inxi -Gazy output:

Graphics:
Device-1: Intel UHD Graphics 630 vendor: Micro-Star MSI driver: i915 
v: kernel bus-ID: 00:02.0 chip-ID: 8086:3e9b class-ID: 0300 
Device-2: NVIDIA TU117M [GeForce GTX 1650 Mobile / Max-Q] 
vendor: Micro-Star MSI driver: nouveau v: kernel bus-ID: 01:00.0 
chip-ID: 10de:1f91 class-ID: 0302 
Display: x11 server: X.Org 1.20.10 compositor: picom v: git-dac85 driver: 
loaded: modesetting unloaded: intel alternate: fbdev,nouveau,nv,vesa 
display-ID: :0 screens: 1 
Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.0x11.2") 
s-diag: 582mm (22.9") 
Monitor-1: eDP-1 res: 1920x1080 hz: 60 dpi: 142 size: 344x193mm (13.5x7.6") 
diag: 394mm (15.5") 
OpenGL: renderer: Mesa Intel UHD Graphics 630 (CFL GT2) v: 4.6 Mesa 20.3.4 
direct render: Yes

I had this problem in arch as well before i install manjaro.