0

I've set system to hibernate when I close laptop in KDE settings, both for battery and cable. Hibernation works fine when I execute it from KDE menu but does not work when I close laptop despite system settings. Strange, but recently it was working correctly, don't know what happened and why now it is broken, I haven't touched anything related, only upgraded system from time to time. Grep dmesg by "hibernation" shows nothing interesting. Laptop - ThinkPad X1 Carbon Gen 8.

Could anybody help me get hibernation back to work?

UPD-1: Answers to some questions

Q1)

$ sudo ls /etc/polkit-1/localauthority/
10-vendor.d  20-org.d  30-site.d  50-local.d  90-mandatory.d

also there is

$ ls /etc/polkit-1/localauthority.conf.d/
50-localauthority.conf  51-ubuntu-admin.conf

Q2)

$ dpkg -l | grep -E 'pm-utils|hibernate'

shows nothing, packages not installed

Q3)

$ cat /sys/power/state
freeze mem disk
  • @sancho.sReinstateMonicaCellio, updated question and added answers to your questions – Dmitriy Vinokurov Feb 06 '21 at 05:43
  • @sancho.sReinstateMonicaCellio, one more thing from your link to another answer - executing sudo systemctl hibernate makes my laptop freeze. I see black screen and laptop didn't react to any buttons including short press on power button, I needed to long press power button for hard reset. It was definitely freeze and not hibernation because when in sleep mode LEDs on my laptop blinks and in this case they were enabled constantly like when it works normally (but it didn't react to anything as I've said). – Dmitriy Vinokurov Feb 06 '21 at 05:53
  • Did you manage to test what I proposed in the answer? – sancho.s ReinstateMonicaCellio Feb 10 '21 at 11:31
  • I've faced strange thing - problem started to appear non-constantly, even though I haven't done nothing with it, maybe only updated some packages. Sometimes sleep works, sometimes don't. So now it is harder to test solutions of this trouble. I appreciate your help and will sent you bounty for your answer, but I could say if it works only later. – Dmitriy Vinokurov Feb 10 '21 at 11:52
  • Good. Please post your results as you try. – sancho.s ReinstateMonicaCellio Feb 10 '21 at 13:38