Is there any way to configure Ubuntu 22.04 to hibernate on some critical battery percentage, say 5%, when already in sleep? Suppose you go to sleep at 20% battery and remain in sleep for a long time so the battery eventually drains. Is there any way to prevent that by hibernating while in sleep?
I know I can hibernate while in sleep after a predefined delay but that's not what I want.
hybrid-sleep
. It does not work exactly the way you want, but does pretty much the same thing. – user68186 Oct 17 '22 at 19:09