drivers – Ubuntu don’t boot up in battery mode only boot up when power is plugin

My Ubuntu screen does not open in battery mode, it just loads a black screen.

If a power cable is plugged in it works.

My laptop is ASUS TUF Gaming fx505 dd with dual boot uefi enabled.

The NVIDIA driver is properly installed and working so I guess its not a driver issue

nvidia terminal

nvidia dialog

I’m very new to Ubuntu and Linux