So, if anyone curious I've managed to solve the problem with sleep.
First of all I'd recommend to read man page for
pmset, the part about
hibernatemode. Here is the link:
man pmset.
According to the man page, normally there can be used 3 keys: 0, 3, 25. There is a fix for those who has sleep issues in the installation guide:
Code:
sudo pmset -a hibernatemode 0
it makes hibernation act like on the desktop.
As for me, I had
hibernatemode already switched to 0. It can be easily checked via:
Code:
pmset -g | grep hibernatemode
I've decided that it would be normal if I switch to 3, as it's usually made on portable devices. Yes, it will store RAM contents to your disk, and it can be bad for SSD. But if you're ok with that, or you don't put your laptop to sleep very often, the code is:
Code:
sudo pmset -a hibernatemode 3
PS. I haven't tried this yet and I don' know how it will work for me, but there is also an option in
pmset to delay writing RAM to the storage. Here is the link with an explanation:
deep sleep in macos.
The corresponding code is:
Code:
sudo pmset -a standbydelay TIME_IN_SECONDS
, by default it's 4200=70 minutes (can be checked via
Code:
pmset -g | [COLOR=#000000]grep standbydelay[/COLOR]
but you can set a bigger one.
Hope it can help somebody