#Hibernation / suspension issues - neither work properly

28 messages · Page 1 of 1 (latest)

radiant zinc
#

Just got a new laptop, only has Xfce Mint (not dual boot). I cannot get the laptop to suspend or hibernate. I went through the steps here that previous people asked about for enabling hibernation, and while my swap size is the correct size (32gb of ram, so 33gb of swap), I still get a "not enough suitable swap space" error.

Suspend has yet to work, either. When I try to suspend, it just locks the machine and sends me back the login, and does not actually suspend at all. Not sure what's causing it.

I'd prefer to hibernate (as I understand that keeps it from using as much battery as suspend) but I don't especially care which as long as it's not constantly running and / or I don't need to shut down every time I finish using the thing.

dim arch
#

hibernation is disabled by default on Ubuntu/Mint, also you may want to allocate more swap space if you really need it.

#

And it is not recommended due to the crazy amount of swap required

#

(in this case)

#

What laptop is this?

#

What kernel are you on ? [uname -r]

#

and full output of inxi -Fmxxxz and dmesg (after attempting to suspend)

radiant zinc
#

it's a laptopfromlinux one. 6.17.0-20-generic.

dim arch
#

nvidia GPU is failing to sleep

#

with error -5 (I/O error)

#

Your laptop seems to support S3 sleep state, but is not using it. Run echo deep > /sys/power/mem_sleep and try again

#

Maybe you could also downgrade the nvidia driver to version 580

radiant zinc
#

i originally had 580 and bumped to 590 to see if that fixed it

#

and 580 + that command fixed it! Thank you very much.

dim arch
#

The S3 sleep state config will be reverted when rebooting

#

hold on

#

sudo nano /etc/systemd/sleep.conf.d/mem-deep.conf and add the following:

#
MemorySleepMode=deep```
#

Then reboot and check that cat /sys/power/mem_sleep returns deep

radiant zinc
#

i'm getting no such file or directory when I try to save?

dim arch
#

hit ctrl + s to save and then ctrl + x to exit nano

radiant zinc
#

that's when I get that error.

dim arch
#

what does ls /etc/systemd/ show?

radiant zinc
#

coredump.conf journald.conf logind.conf network networkd.conf pstore.conf resolved.conf sleep.conf system system.conf system.conf.d system-generators timesyncd.conf user user.conf

dim arch
#

interesting

#

well then mkdir /etc/systemd/sleep.conf.d and recreate the file