Low Battery Didn't Sleep/Hibernate Using Nvidia/Optimus-manager

Hello Guys, i have a notebook with Nvidia GTX 1650 and AMD Ryzen 7 4800H.
Im using Manjaro with KDE plasma and optimus-manager to switch between graphic cards.

The problem is, my notebook is not entering on sleep/hibernate mode when battery reaches a low critical amount of power, he keeps on until drain total battery.

To make optimus-manager work i commented two lines at /etc/sddm.conf

# DisplayCommand
# DisplayStopCommand

I cant post prints here, didnt know why, but this is my driver situation:

 TU117M(Nvidia Corporation)
    video-hybrid-amd-nvidia-prime          ()     (x)
    video-hybrid-amd-nvidia-470xx-prime    ()     ()
    video-nvidia                           ()     ()
    video-nvidia-470xx                     ()     ()
    video-linux                            (x)    (x)
    video-modesetting                      (x)    ()
    video-versa                            (x)    ()
Renoir(ATI Technologies Inc)
    video-hybrid-amd-nvidia-prime            ()   (x)
    video-hybrid-amd-nvidia-470xx-prime      ()   ()
    video-linux                              (x)  (x)
    video-modesetting                        (x)  () 
    video-versa                              (x)  ()

Another thing i wanted to do is abandon optimus-prime but if i didnt use optimus-prime my external monitor is detected but dont give image.

You can post it with this command:

mhwd -l && mhwd -li

Is there any reason you need the vesa mode?

hey, thanks for you repply.

I found the problem… During installation i didn’t created a swap partition and after installation also not created a swapfile.

Accordingly this documentation swapfile/partition is required to hibernate:
Power management/Suspend and hibernate - ArchWiki

TBH i don’t remember if energy config was set to sleep or hibernate but i after create a swapfile with 10 GB the hibernate starts to work like a charm.

working in researches before found swapfile solution i found other possible solution executing this command:

sudo systemctl sleep    
  Unknown command verb sleep.

as the ouput says the previous command didn’t work but sudo systemctl hibernate works.